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
Removes the element from in front of queue and returns that element.
public int pop() { if (this.stack2.size() <= 0) { removeAllElementToStack2(); } return this.stack2.removeLast(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }", "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }", "public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }", "public Object dequeue()\n {\n return queue.removeFirst();\n }", "public E dequeue() {\n\t\treturn list.removeFirst();\n\t}", "@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }", "public T poll() {\n if (size == 0) {\n return null;\n }\n\n // set returned value to queue[0]\n T value = (T) array[0];\n\n // decrease size - we are removing element\n size--;\n\n // move queue 1 place left\n System.arraycopy(array, 1, array, 0, size);\n\n // clear last element\n array[size] = null;\n\n return value;\n }", "public E dequeue() {\n if (isEmpty()) return null; //nothing to remove.\n E item = first.item;\n first = first.next; //will become null if the queue had only one item.\n n--;\n if (isEmpty()) last = null; // special case as the queue is now empty. \n return item;\n }", "public Country removeFront() {\n\t\tCountry temp = null;\n\t\ttry {\n\t\t\tif (isEmpty()) {\n\t\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\t} else if (front != end) {\n\t\t\t\tfront.previous = null;\n\t\t\t\ttemp = front.data;\n\t\t\t\tfront = front.next;\n\t\t\t} else {\n\t\t\t\tfront = end = null;\n\t\t\t\ttemp = front.data;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\t;\n\t\t}\n\t\treturn temp;\n\t}", "@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}", "Node dequeue() {\n Node n = queue.removeFirst();\n queueSet.remove(n);\n return n;\n }", "public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }", "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "private E remove() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n size--;\n return (E) queue[startPos++];\n }", "public E dequeue() {\n return pop();\n }", "T getFront() throws EmptyQueueException;", "public T removeFromFront() {\n DoublyLinkedListNode<T> temp = head;\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, so there\"\n + \" is nothing to get.\");\n } else {\n if (head == tail) {\n head = tail;\n tail = null;\n return temp.getData();\n } else {\n head = head.getNext();\n head.setPrevious(null);\n size -= 1;\n return temp.getData();\n }\n }\n\n\n }", "public E removeFront() {\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE temp = head.value;\n\t\t\thead = head.next;\n\t\t\tcount--;\n\t\t\treturn temp;\n\t\t}\n\t}", "public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}", "public E dequeue() {\n if (size == 0){\n return null;\n }\n\n\n E result = (E) queue[0];\n queue[0] = null;\n --size;\n\n if (size != 0){\n shift();\n }\n return result;\n }", "public synchronized Object dequeue() throws EmptyListException {\r\n return removeFromFront();\r\n }", "public static Object dequeue() {\t \n if(queue.isEmpty()) {\n System.out.println(\"The queue is already empty. No element can be removed from the queue.\"); \n return -1;\n }\n return queue.removeFirst();\n }", "public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }", "public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}", "public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }", "public T front() throws EmptyQueueException;", "public E removeFront() {\r\n if (elem[front] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[front];\r\n elem[front] = null;\r\n front++;\r\n return temp;\r\n }\r\n }", "public int dequeueFront();", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }", "public Object dequeue(){\r\n return super.remove(size()-1);\r\n }", "public Object todequeue() {\n\t\tif(rear == 0)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject to_return = arr[front];\n\t\t\tfront++;\n\t\t\tsize--;\n\t\t\treturn to_return;\n\t\t}\n\t}", "public E poll() {\n\t\twhile (true) {\n\t\t\tlong f = front.get();\n\t\t\tint i = (int)(f % elements.length());\n\t\t\tE x = elements.get(i);\n\t\t\t//Did front change while we were reading x?\n\t\t\tif (f != front.get())\n\t\t\t\tcontinue;\n\t\t\t//Is the queue empty?\n\t\t\tif (f == rear.get())\n\t\t\t\treturn null; //Don't retry; fail the poll.\n\n\t\t\tif (x != null) {//Is the front nonempty?\n\t\t\t\tif (elements.compareAndSet(i, x, null)) {//Try to remove an element.\n\t\t\t\t\t//Try to increment front. If we fail, other threads will\n\t\t\t\t\t//also try to increment before any further removals, so we\n\t\t\t\t\t//don't need to loop.\n\t\t\t\t\tfront.compareAndSet(f, f+1);\n\t\t\t\t\treturn x;\n\t\t\t\t}\n\t\t\t} else //front empty. Try to help other threads.\n\t\t\t\tfront.compareAndSet(f, f+1);\n\n\t\t\t//If we get here, we failed at some point. Try again.\n\t\t}\n\t}", "public T dequeue(){\n T front = getFront(); // might throw exception, assumes firstNode != null\n firstNode = firstNode.getNext();\n\n if (firstNode == null){\n lastNode = null;\n } // end if\n return front;\n }", "public E removeFirst() {\n return pop();\n }", "public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }", "public T dequeue()\n\t{\n\t\tNode<T> eliminado = head;\n\t\thead = head.getNext();\n\t\tif(head == null)\n\t\t{\n\t\t\ttail = null;\n\t\t}\n\t\tsize--;\n\t\treturn eliminado.getElement();\n\t}", "public T dequeue() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to remove.\");\n } else if (front == backingArray.length - 1) {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = 0;\n size--;\n return data;\n } else {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = temp + 1;\n size--;\n return data;\n }\n }", "private GameAction pull() {\n if (this.queue.size() > 0) {\n return this.queue.remove(0);\n } else {\n return null;\n }\n }", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public Object getFront() throws Exception {\n if (!isEmpty()) {\n return queue[front];\n } else {\n // 对为空返回null\n return null;\n }\n }", "T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }", "public int pop() {\n int size=queue.size();\n for (int i = 0; i <size-1 ; i++) {\n int temp=queue.poll();\n queue.add(temp);\n }\n return queue.poll();\n }", "public int dequeue() {\n\t\tif (isEmpty()) throw new IllegalStateException(\"\\nQueue is empty!\\n\");\n\t\tint removedItem = bq[head];\n\t\tif (head == bq.length - 1) head = 0; // wraparound\n\t\telse head++;\n\t\tsize--;\n\t\treturn removedItem;\t\n\t}", "public T removeFromBack() {\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, \"\n + \"so there is nothing to get.\");\n }\n if (head == tail) {\n head.setNext(null);\n head.setPrevious(null);\n tail.setNext(null);\n tail.setPrevious(null);\n size -= 1;\n return tail.getData();\n } else {\n T temp = tail.getData();\n tail = tail.getPrevious();\n tail.setNext(null);\n size -= 1;\n return temp;\n\n }\n }", "public String pop() {\n if (queue.size() == 0) {\n return null;\n }\n\n String result = top();\n queue.remove(0);\n return result;\n }", "@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }", "public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}", "public Item removeFirst(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = first.item;\n\t\t\t//delete first node\n\t\t\tfirst = first.next;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tlast = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tfirst.prev = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}", "public T pop() {\r\n\t\tT ele = top.ele;\r\n\t\ttop = top.next;\r\n\t\tsize--;\r\n\t\t\r\n\t\treturn ele;\r\n\t}", "public Object peek()\n {\n if(this.isEmpty()){throw new QueueUnderflowException();}\n return front.getData();\n }", "public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }", "public E dequeue() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\t\r\n\t\tif (size() != 1) {\r\n\t\t\t//Node p = first; \r\n\t\t\tE item = first.item;\r\n\t\t\tremove(0);\r\n\t\t\t//first = p.next;\r\n\t\t\t//first.prev = null;\r\n\t\t\treturn item;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tE e = last.item;\r\n\t\t\tremove(last.item);\r\n\n\t\t\treturn e;\r\n\t\t}\n\t}", "public T peek()\n\t{\n\t\tT ret = list.removeFirst();\n\t\tlist.addFirst(ret);\n\t\treturn ret;\n\t}", "public IClause uncheckedPopFront() {\n assert back!=front : \"Deque is empty\";\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }", "@Override\n\tpublic E dequeue() {\n\t\tif(isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tE data = queue[pos];\n\t\tqueue[pos] = null;\n\t\tpos = (pos+1) % queue.length;\n\t\tsize--;\n\t\treturn data;\n\t}", "public int pop() {\n int size = queue.size();\n while (size > 2) {\n queue.offer(queue.poll());\n size--;\n }\n topElem = queue.peek();\n queue.offer(queue.poll());\n return queue.poll();\n }", "public T dequeue() {\n if (first != null) {\n size--;\n T data = first.data;\n first = first.next;\n\n if (first == null) {\n last = null; // avoid memory leak by removing reference\n }\n\n return data;\n }\n return null;\n }", "public void pop() {\n queue.remove();\n }", "@Override\r\n\tpublic T dequeue() {\r\n\t\tT element;\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new AssertionError(\"Queue is empty.\");\r\n\t\telement = arr[front].getData();\r\n\t\tif (front == rear) {\r\n\t\t\tfront = rear = -1;\r\n\t\t} else {\r\n\t\t\tfront++;\r\n\t\t}\r\n\t\treturn element;\r\n\t}", "public T pop() {\r\n T o = get(size() - 1);\r\n remove(size() - 1);\r\n return o;\r\n\t}", "@Override\n public T dequeue() {\n if (!isEmpty()) {\n return heap.remove();\n } else {\n throw new NoSuchElementException(\"Priority Queue is null\");\n }\n }", "public void pop() {\n queue.remove(0);\n }", "public E pop() {\n E value = head.prev.data;\n head.prev.delete();\n if (size > 0) size--;\n return value;\n }", "public Object dequeue() {\n\t\t\n\t\t// Check: Queue is empty\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException(\"Queue is empty. Cannot dequeue.\");\n\t\t}\n\t\t\n\t\t// Check: one element (tail = head)\n\t\t// If so, set tail to null\n\t\tif (tail == head) tail = null;\n\t\t\n\t\t// Save head's data to return\n\t\tObject first = head.data;\n\t\t\n\t\t// Remove head from queue and re-assign head to head.next\n\t\thead = head.next;\n\t\t\n\t\treturn first;\n\t}", "public int pop() {\n int size = queue.size();\n for (int i = 0; i < size - 1; i++) {\n Integer poll = queue.poll();\n queue.offer(poll);\n }\n return queue.poll();\n }", "@Override\n\tpublic E dequeue() {\n\t\tif (! isEmpty()) {\n\t\t\tNode temp = first;\n\t\t\tE e = temp.element;\n\t\t\tfirst = temp.next;\n\t\t\t\n\t\t\tif (temp == last)\n\t\t\t\tlast = null;\n\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }", "public Item peek(){\n if(isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\n return first.item;\n }", "T poll(){\n if(isEmpty()){\n return null;\n }\n T temp = (T) queueArray[0];\n for(int i=0; i<tail-1;i++){\n queueArray[i] = queueArray[i+1];\n }\n tail--;\n return temp;\n }", "public E pop(){\r\n\t\tObject temp = peek();\r\n\t\t/**top points to the penultimate element*/\r\n\t\ttop--;\r\n\t\treturn (E)temp;\r\n\t}", "public int top() {\n int size=queue.size();\n for (int i = 0; i < size-1; i++) {\n int temp=queue.poll();\n queue.add(temp);\n }\n int top=queue.poll();\n queue.add(top);\n return top;\n }", "public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}", "public E pop() {\n if (isEmpty()) {\n return null;\n } else {\n E e = head.item;\n head = head.next;\n size--;\n return e;\n }\n\n }", "public O popBack()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = last;\r\n last = last.getPrevious();\r\n\r\n count--;\r\n if (isEmpty()) first = null;\r\n else last.setNext(null);\r\n return l.getObject();\r\n } else\r\n return null;\r\n \r\n }", "public process dequeue() {\n\t\treturn queue.removeFirst();\n\t}", "public int pop() {\r\n if (queue1.size() == 0) {\r\n return -1;\r\n }\r\n int removed = top;\r\n while (queue1.peek() != removed) {\r\n top = queue1.remove();\r\n queue1.add(top);\r\n }\r\n return queue1.remove();\r\n }", "public T dequeue() {\n if (isEmpty()) {\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n T itemToReturn = rb[first];\n rb[first] = null;\n fillCount -= 1;\n if (isEmpty()) {\n first = 0;\n last = 0;\n return itemToReturn;\n }\n first = (first + 1) % capacity;\n return itemToReturn;\n\n // Dequeue the first item. Don't forget to decrease fillCount and update\n }", "@Override\n\tpublic E dequeue() {\n\t\tE temp=null;\n\t\tif(front==data.length-1){\n\t\t\ttemp=data[front];\n\t\t\tsize--;\n\t\t\tfront=(front+1)%data.length;\n\t\t}else{\n\t\t\tsize--;\n\t\t\ttemp=data[front++];\n\t\t}\n\t\treturn temp;\n\t}", "public Object pop() {\n\t\tObject lastElement = peek();\n\t\t\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tcollection.remove(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}", "public T peek() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to peek.\");\n } else {\n return backingArray[front];\n }\n\n }", "public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}", "public E element() {\n if (size == 0){\n return null;\n }\n return (E)queue[0];\n }", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public T popFront() {\n\t\tif(tamanio==0)\n\t\t\treturn null;\n\t\tNodo<T> aux= inicio.getSiguiente();\n\t\tT dato = inicio.getDato();\n\t\tinicio=null;\n\t\tinicio=aux;\n\t\ttamanio--;\n\t\treturn dato;\n\t}", "public Object popFront(){\n\t\tObject data = head.data;\n\t\thead = head.nextNode; \n\t\t--size; \n\t\t\n\t\treturn data; \n\t}", "public Bottle inputQueueTakeBottle() {\n\t\tsynchronized (inputQueue) {\n\t\t\tif (this.inputQueueSize() != 0) {\n\t\t\t\treturn inputQueue.remove();\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "public T getFront(){\n if (isEmpty()){\n throw new EmptyQueueException();\n }\n else {\n return firstNode.getData();\n }\n }", "public L removeFromFront(){\n\t\tif(isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" is empty\");\n\n\t\tL removedItem = (L) firstNode.data; //retrieve data being removed\n\n\t\t//update references firstNode and lastNode\n\t\tif(firstNode == lastNode)\n\t\tfirstNode = lastNode = null;\n\t\telse\n\t\tfirstNode = firstNode.getNext();\n\n\t\treturn removedItem; //return removed node data\n\t}", "public Object dequeue() {\n return queue.dequeue();\n }", "public String dequeue()\n\t{\n\t\tif (!isEmpty())\n\t\t{\n\t\t\tcounter--;\n\t\t\tString temp = list[front];\n\t\t\tfront = next(front);\n\t\t\treturn temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public E peek() {\n return (E)queue[0];\n }", "public T removeFromFront() throws EmptyListException \n\t{\n\t\tif (isEmpty()) // throw exception if List is empty\n\t\t\tthrow new EmptyListException(name);\n\n\t\tT removedItem = firstNode.data; // retrieve data being removed\n\n\t\t// update references firstNode and lastNode\n\t\tif (firstNode == lastNode)\n\t\t\tfirstNode = lastNode = null;\n\t\telse\n\t\t\tfirstNode = firstNode.nextNode;\n\t\tsize--;\n\t\treturn removedItem; // return removed node data\n\t}", "public E pop() \r\n {\r\n E o = list.get(getSize() - 1);\r\n list.remove(getSize() - 1);\r\n return o;\r\n }", "public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = last.item;\n if (size() == 1) {\n first = null;\n last = null;\n }\n else {\n last = last.prev;\n last.next = null;\n\n }\n size--;\n return a;\n\n\n }", "T dequeue() {\n return contents.removeFromTail();\n }", "public T removeFromFront() throws EmptyListException {\n if(isEmpty())\n throw new EmptyListException(name);\n\n // retrieve data being removed\n T removedItem = firstNode.data;\n\n // update references to firstNode and lastNode\n if(firstNode == lastNode)\n firstNode = lastNode = null;\n else\n firstNode = firstNode.nextNode;\n\n return removedItem;\n }", "public T removeFirst()\r\n {\r\n T removedData; // holds data from removed node\r\n\r\n if (numElements == 0)\r\n throw new NoSuchElementException(\r\n \"Remove attempted on empty list\\n\");\r\n removedData = front.data;\r\n front = front.next;\r\n if (numElements == 1)\r\n rear = null;\r\n \r\n numElements--;\r\n return removedData;\r\n }", "T pop();" ]
[ "0.77138", "0.76798576", "0.76327944", "0.7575122", "0.7531917", "0.7508478", "0.7497966", "0.745763", "0.74524933", "0.7437765", "0.743221", "0.74093735", "0.73924285", "0.7386138", "0.73585826", "0.7328084", "0.7324674", "0.73099446", "0.7304494", "0.73027235", "0.72960716", "0.72817963", "0.7280401", "0.72782725", "0.7269768", "0.7253211", "0.7238651", "0.72305036", "0.72263044", "0.72195446", "0.72148144", "0.72011524", "0.71892124", "0.71863025", "0.7175333", "0.7164795", "0.7138351", "0.71351826", "0.71338814", "0.71287054", "0.71169794", "0.71032405", "0.7092174", "0.70815724", "0.70810777", "0.70746845", "0.7066397", "0.7064701", "0.70579404", "0.70526147", "0.704614", "0.70333064", "0.7032169", "0.7024647", "0.70151114", "0.70098364", "0.7001923", "0.6993829", "0.6989775", "0.69836825", "0.69833475", "0.69823086", "0.69822735", "0.6972141", "0.69677335", "0.69547135", "0.6947001", "0.69468236", "0.69466907", "0.69376", "0.6935487", "0.6933604", "0.6916076", "0.6906485", "0.6903762", "0.6902752", "0.68934613", "0.68928516", "0.6885303", "0.68845886", "0.6882585", "0.68821084", "0.6880122", "0.68754846", "0.6875484", "0.6873936", "0.6872053", "0.6871424", "0.68703985", "0.6866755", "0.6865107", "0.68645155", "0.6861361", "0.68561125", "0.68544245", "0.6844123", "0.6839674", "0.68381345", "0.6837763", "0.6835641", "0.6830571" ]
0.0
-1
Get the front element.
public int peek() { if (this.stack2.size() <= 0) { removeAllElementToStack2(); } if (this.stack2.size() == 0) return -1; return this.stack2.getLast(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getFront() throws Exception {\n\t\tif(data[front]!=null)\n\t\t\n\t\t return data[front];\n\t\treturn null;\n\t}", "public int getFront() {\n return !isEmpty() ? elements[last - 1] : -1;\n }", "@Override\n\tpublic E getFront() {\n\t\treturn data[front];\n\t}", "public T getFront();", "public E front();", "public AnyType getFront() {\n\t\tif (empty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn header.next.data;\n\t\t// Running time is θ(1) because it's a constant operation.\n\t}", "public Object front() {\n ListNode p = this.l.start;\n while(p.next!=null)\n {\n p = p.next;\n }\n\t\treturn (Object) p.item;\n\t}", "public T front();", "public T getFront(){\n if (isEmpty()){\n throw new EmptyQueueException();\n }\n else {\n return firstNode.getData();\n }\n }", "public E peekFront() {\r\n if (front == rear) {\r\n throw new NoSuchElementException();\r\n } else {\r\n return elem[front];\r\n }\r\n }", "E getFront();", "public Object getFront() throws Exception {\n if (!isEmpty()) {\n return queue[front];\n } else {\n // 对为空返回null\n return null;\n }\n }", "public int getFront() {\n if (isEmpty()) {\n return -1;\n }\n return arr[front];\n }", "public E getFront() {\n return head.nextNode.data;\n }", "public Card front()\n {\n if (firstLink == null)\n return null;\n\n return firstLink.getCard();\n }", "public int getFront() {\n if (cnt == 0)\n return -1;\n return head.val;\n }", "@Override\n public T peekFront() {\n if (isEmpty()) {\n return null;\n }\n return head.peekFront();\n }", "public int getFront() {\n if (head == tail && size == 0)\n return -1;\n else {\n int head_num = elementData[head];//索引当前头指针的指向的位置\n return head_num;\n }\n // return true;\n }", "public E peekFront();", "public Node getFront(){\n return this.front;\n }", "public String front()\n {\n\treturn head.value;\n }", "public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }", "public E peek(){\n\t\treturn top.element;\n\t}", "public int front() {\n return data[first];\n }", "Object front()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call front() on empty List\");\n\t\t}\n\t\treturn front.data;\n\t}", "T front() throws RuntimeException;", "public int Front() {\n if(isEmpty()) return -1;\n return l.get(head);\n }", "public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return queue[head];\n }", "public int Front() {\n if (isEmpty())\n return -1;\n return buf[b];\n }", "public int Front() {\n if (this.count == 0)\n return -1;\n return this.queue[this.headIndex];\n }", "int front()\n {\n if (isEmpty())\n return Integer.MIN_VALUE;\n return this.array[this.front];\n }", "public T first() {\n \t\n \tT firstData = (T) this.front.data;\n \t\n \treturn firstData;\n \t\n }", "public DVDPackage front() {\n\t\treturn queue.peek();\n\t}", "public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public int Front() {\n if(queue[head] == null){\n return -1;\n }else{\n return queue[head];\n }\n }", "public int Front() {\n if (count == 0) {\n return -1;\n }\n return array[head];\n }", "public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }", "T getFront() throws EmptyQueueException;", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public int peekFront();", "public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }", "public T peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//returns the top element.\n\t\treturn elements.get(elements.size()-1);\n\t}", "public int peekFront() {\n int x = 0;\n if(head == null) {\n return Integer.MIN_VALUE;\n }\n\n return head.val;\n }", "public T front() throws EmptyQueueException;", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "int getFront()\n {\n // check whether Deque is empty or not \n if (isEmpty())\n {\n return -1 ;\n }\n return arr[front];\n }", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "public int getFront() {\n if(size == 0) return -1;\n \n return head.next.val;\n \n}", "public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }", "public T popFront() {\n\t\tif(tamanio==0)\n\t\t\treturn null;\n\t\tNodo<T> aux= inicio.getSiguiente();\n\t\tT dato = inicio.getDato();\n\t\tinicio=null;\n\t\tinicio=aux;\n\t\ttamanio--;\n\t\treturn dato;\n\t}", "public IClause front() {\n if (back==front)\n throw new BufferUnderflowException();\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "public E peek() {\n E item;\n try {\n item = element();\n } catch (NoSuchElementException e) {\n return null;\n }\n return item;\n }", "public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }", "public E getFirst() {\n return peek();\n }", "public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return nums[head];\n }", "public Point getFrontPoint() {\n\t\treturn this.gun;\n\t}", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }", "public E first() {\n if (isEmpty()) return null;\n return first.item;\n }", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "private Element peekElement() {\r\n return ((Element)this.elements.get(this.elements.size() - 1));\r\n }", "public T peek()\n {\n if (isEmpty())\n return null;\n \n return first.getData();\n }", "public T peek() {\n\t\tif (this.l.getHead() != null)\n\t\t\treturn this.l.getHead().getData();\n\t\telse {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}", "public T getFirst() {\n\treturn _front.getCargo();\n }", "public E getFirst(){\n return head.getNext().getElement();\n }", "public E peek() {\n\t\tif (isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn apq.get(1);\n\t}", "public E peek() \r\n {\r\n return list.get(getSize() - 1);\r\n }", "public Element first() {\n if(isEmpty()) return null;\n else return header.getNextNode().getContent();\n }", "public IClause uncheckedFront() {\n assert back!=front : \"Deque is empty\";\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "public Object peek() {\n\t\tcheckIfStackIsEmpty();\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tObject lastElement = collection.get(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}", "public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }", "public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}", "public boolean getFront()\n {\n return m_bFrontLock;\n }", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "public int top() {\n return topElem;\n }", "public Object firstElement() {\n return _queue.firstElement();\n }", "public Object firstElement();", "public T getHead() {\n return get(0);\n }", "@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public E peek()\n {\n return arrayList.get(0);\n }", "@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}", "public void offerFront(E elem);", "public T peek() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to peek.\");\n } else {\n return backingArray[front];\n }\n\n }", "@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}", "public E top() {\n return head.prev.data;\n }", "public T peek() {\n return top.getData();\n }", "public String getFrontName() {\n return frontName;\n }", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public T peek() {\n\t\treturn top.value;\n\t}", "public Node3 peek() {\n Node3 response = null;\n if (!isEmpty()) {\n response = new Node3(front.getData());\n }\n return response;\n }", "public E removeFront() {\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE temp = head.value;\n\t\t\thead = head.next;\n\t\t\tcount--;\n\t\t\treturn temp;\n\t\t}\n\t}", "public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }", "public E removeFront() {\r\n if (elem[front] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[front];\r\n elem[front] = null;\r\n front++;\r\n return temp;\r\n }\r\n }", "T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }", "public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}", "public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }", "public Atom getHead ()\r\n\t{\r\n\t\treturn _head.get(0);\r\n\t}", "public E peek(){\n return front!=rear?(E) data[(int)((front) & (max_size - 1))]:null;\n }", "public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}" ]
[ "0.77886313", "0.7760266", "0.77365255", "0.77095586", "0.76603127", "0.76504976", "0.7623654", "0.75686014", "0.7567856", "0.7549382", "0.75492996", "0.7547624", "0.7537493", "0.7534689", "0.7465438", "0.745354", "0.73278004", "0.73128647", "0.7310279", "0.73006713", "0.71959436", "0.71958375", "0.71527386", "0.7137825", "0.71188873", "0.7110849", "0.7085821", "0.70834005", "0.70743036", "0.70734304", "0.70612013", "0.7043435", "0.7010782", "0.70011854", "0.6998141", "0.6978234", "0.6971955", "0.69617236", "0.6953889", "0.6942821", "0.6919873", "0.691481", "0.68872905", "0.6821649", "0.68109834", "0.6791386", "0.6790597", "0.6770683", "0.6764172", "0.6753826", "0.6749611", "0.67221564", "0.6711534", "0.66989744", "0.6686843", "0.66775626", "0.66743964", "0.66646165", "0.6619282", "0.6615444", "0.6575267", "0.6538562", "0.6531193", "0.6529999", "0.65224683", "0.65170807", "0.6505375", "0.64807713", "0.6475231", "0.6470684", "0.6460611", "0.6443657", "0.64422715", "0.64398324", "0.6429673", "0.6427003", "0.64218324", "0.64162946", "0.6409013", "0.6406415", "0.6405277", "0.63965434", "0.63924664", "0.63897836", "0.63698184", "0.63490754", "0.63484424", "0.6341008", "0.6324751", "0.63229644", "0.630148", "0.63001084", "0.6299143", "0.62945706", "0.6289143", "0.62692755", "0.6258394", "0.62568974", "0.62568015", "0.62552583", "0.62457186" ]
0.0
-1
Returns whether the queue is empty.
public boolean empty() { return this.stack2.size() == 0 && this.stack1.size() == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return this.queue.size() == 0;\n }", "public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isEmpty() {\n return queue.isEmpty();\n }", "boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty()\n {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() \n {\n\treturn queue.size() == 0;\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\r\n return this.queueMain.isEmpty();\r\n }", "public boolean isEmpty(){\n\t\tif(queue.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n return holdingQueue.isEmpty();\n }", "public boolean isMessageQueueEmpty() {\r\n\t\treturn this.messages.size() == 0;\r\n\t}", "public static boolean isEmpty() {\n System.out.println();\t \n if(queue.isEmpty()) {\t \n System.out.println(\"The queue is currently empty and has no elements.\");\t \t \t \n }\n else {\n System.out.println(\"The queue is currently not empty.\");\t \t\t \n }\n return queue.isEmpty();\n }", "@Override\n public boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() {\r\n boolean z = false;\r\n if (!isUnconfinedQueueEmpty()) {\r\n return false;\r\n }\r\n DelayedTaskQueue delayedTaskQueue = (DelayedTaskQueue) this._delayed;\r\n if (delayedTaskQueue != null && !delayedTaskQueue.isEmpty()) {\r\n return false;\r\n }\r\n Object obj = this._queue;\r\n if (obj != null) {\r\n if (obj instanceof LockFreeTaskQueueCore) {\r\n z = ((LockFreeTaskQueueCore) obj).isEmpty();\r\n }\r\n return z;\r\n }\r\n z = true;\r\n return z;\r\n }", "public boolean empty() {\n return queue.isEmpty() && forReverse.isEmpty();\n }", "public boolean queueEmpty() {\r\n\t\tif (vehiclesInQueue.size() == 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isEmpty()\r\n\t{\n\t\tif(backIndex<0)\r\n\t\t{\r\n\t\t\tbackIndex=-1;\r\n\t\t\tSystem.out.println(\"Queue is Empty\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean empty() {\n return normalQueue.isEmpty() && reverseQueue.isEmpty();\n }", "public boolean isEmpty()\r\n {\r\n if(measurementQueue==null) return true;\r\n \r\n return measurementQueue.isEmpty();\r\n }", "public static boolean isEmpty() {\n\t\treturn resultQueue.isEmpty();\n\t}", "public boolean isEmpty() {\n return (head == tail) && (queue[head] == null);\n }", "public boolean empty() {\r\n return queue1.size() == 0;\r\n }", "public boolean empty() {\r\n return queue1.size() == 0;\r\n }", "public boolean isQueueEmpty(Queue objQueue){\r\n\t\treturn objQueue.getRare()==-1;\r\n\t}", "public boolean isFull() {\n int nexttail = (tail + 1 == queue.length) ? 0 : tail + 1;\n return (nexttail == head) && (queue[tail] != null);\n }", "public boolean empty() {\n return queue1.isEmpty();\n }", "public boolean empty() {\n return queueA.isEmpty() && queueB.isEmpty();\n }", "public boolean isEmpty() {\n return qSize == 0;\n }", "public boolean isFull(){\n return size == arrayQueue.length;\n }", "public boolean empty() {\n return q.isEmpty();\n }", "public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }", "public boolean isEmpty() { return (dequeSize == 0); }", "public boolean isEmpty(){\n\t\treturn ( startQueue.isEmpty() && finishQueue.isEmpty() && completedRuns.isEmpty() );\n\t}", "public boolean isEmpty() {\n return (fifoEmpty.getBoolean());\n }", "public boolean empty() {\n return q.isEmpty();\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}", "public boolean queueFull() {\r\n\t\tif (vehiclesInQueue.size() > maxQueueSize) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}", "public boolean isQueueFull(Queue objQueue){\r\n\t\treturn objQueue.getRare()==objQueue.getArrOueue().length;\r\n\t}", "public synchronized boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public synchronized boolean isEmpty() {\r\n return size == 0;\r\n }", "boolean isEmpty() {\n\t\t\n\t\t// array is empty if no elements can be polled from it\n\t\t// \"canPoll\" flag shows if any elements can be polled from queue\n\t\t// NOT \"canPoll\" means - empty\n\t\t\n\t\treturn !canPoll;\n\t}", "public boolean isEmpty() {\n\t\tboolean empty = true;\n\n\t\tfor(LinkedList<Passenger> queue : queues) { // loop through each queue to see if its empty.\n\t\t\tif(!queue.isEmpty()){\n\t\t\t\tempty = false;\n\t\t\t}\n \t}\n\t\treturn empty;\n }", "public final boolean isEmpty() {\r\n\t\treturn this.size == 0;\r\n\t}", "public boolean empty() {\n return size == 0;\n }", "public boolean isEmpty()\n {\n return heapSize == 0;\n }", "public boolean empty() {\n return size <= 0;\n }", "public boolean isHeapEmpty() {\n\t\treturn this.head == null;\n\t}", "public boolean empty() {\n return push.isEmpty();\n }", "public boolean empty() {\n\t if(q.size()==0) return true;\n\t return false;\n\t }", "public boolean isFull()\n\t{\n\t return (front==0 && rear==queueArray.length-1 || (front==rear+1));\n\t}", "public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean isEmpty() {\n return (this.size == 0);\n }", "public boolean empty()\r\n\t{\r\n\t\treturn currentSize == 0;\r\n\t}", "public boolean empty() {\r\n return size == 0;\r\n }", "public boolean empty() {\n return popStack.isEmpty();\n }", "public boolean isEmpty() {\r\n return (size == 0);\r\n }", "public boolean isEmpty() {\n return (size == 0);\n }", "public boolean isEmpty()\n {\n return this.size == 0;\n }", "public boolean isEmpty() {\n\t\treturn currentSize == 0;\n\t}", "public boolean empty() {\n if (queue1.isEmpty() && queue2.isEmpty()){\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return stack.isListEmpty();\n }", "public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean isEmpty() {\n\t\treturn(this.size == 0);\n\t}", "public final boolean isEmpty() {\n return mSize == 0;\n }", "public boolean isEmpty() {\n\t return size == 0;\n\t }", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "public boolean empty() {\r\n return this.stack.isEmpty();\r\n }", "public boolean empty() { \t \n\t\t return size <= 0;\t \n }", "public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\n return (size == 0);\n\n }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty()\r\n {\r\n return (size() == 0);\r\n }" ]
[ "0.9061608", "0.8914194", "0.8852499", "0.8852499", "0.8815682", "0.8810445", "0.87997335", "0.8791669", "0.8790852", "0.87563825", "0.87563825", "0.87563825", "0.87563825", "0.87563825", "0.87563825", "0.87563825", "0.8689962", "0.8680233", "0.8680233", "0.8680233", "0.8680233", "0.8680233", "0.86596245", "0.8641122", "0.8511726", "0.84806776", "0.84542674", "0.8385524", "0.8378889", "0.8364479", "0.8346542", "0.82825845", "0.82784426", "0.8268065", "0.8253015", "0.8234483", "0.8184286", "0.8184286", "0.81770444", "0.80846435", "0.8049837", "0.8026093", "0.8011978", "0.7999786", "0.79702705", "0.7955586", "0.79223824", "0.79216766", "0.79200023", "0.7915594", "0.7887438", "0.7869872", "0.7836723", "0.7836723", "0.78320444", "0.7816653", "0.7804123", "0.77974325", "0.77969646", "0.7787129", "0.7770162", "0.77511984", "0.7737748", "0.7727725", "0.7725545", "0.7722002", "0.77216065", "0.77190435", "0.77125424", "0.77112", "0.7698032", "0.7694233", "0.769125", "0.76807404", "0.7679825", "0.76794577", "0.7677999", "0.76767534", "0.7675818", "0.7675354", "0.7667826", "0.7667826", "0.7664082", "0.7651609", "0.7648444", "0.7648444", "0.7643296", "0.7633447", "0.7617566", "0.7616757", "0.76125884", "0.7610844", "0.76102734", "0.76068443", "0.7596903", "0.75918573", "0.75913", "0.75906634", "0.75906634", "0.75906634", "0.7590607" ]
0.0
-1
A listener for autocompletion events.
public interface AutocompletionListener<T> { /** * The user has activated a suggested item. * * This means the user has explicitly activate the item, i.e., pressed enter on or clicked the * item. * @param e the event describing the activation */ public void completionActivated(AutocompletionEvent<T> e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void completionActivated(AutocompletionEvent<T> e);", "public interface AutoCompleterCallback {\n /** Notification that an item is suggested. */\n void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);\n }", "public interface AutoCompleter {\n \n /** Sets the callback that will be notified when items are selected. */\n void setAutoCompleterCallback(AutoCompleterCallback callback);\n\n /** \n * Sets the new input to the autocompleter. This can change what is\n * currently visible as suggestions.\n * \n * The returned Future returns true if the lookup for autocompletions\n * completed succesfully. True does not indicate autocompletions are\n * available. It merely indicates that the lookup completed.\n * \n * Because AutoCompleters are allowed to be asynchronous, one should\n * use Future.get or listen to the future in order to see when\n * the future has completed.\n */\n ListeningFuture<Boolean> setInput(String input);\n\n /**\n * Returns true if any autocomplete suggestions are currently available, based the data\n * that was given to {@link #setInput(String)}.\n */\n boolean isAutoCompleteAvailable();\n\n /** Returns a component that renders the autocomplete items. */\n JComponent getRenderComponent();\n\n /** Returns the currently selected string. */\n String getSelectedAutoCompleteString();\n\n /** Increments the selection. */\n void incrementSelection();\n \n /** Decrements the selection. */\n void decrementSelection();\n \n /** A callback for users of autocompleter, so they know when items have been suggested. */\n public interface AutoCompleterCallback {\n /** Notification that an item is suggested. */\n void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);\n }\n\n}", "void setAutoCompleterCallback(AutoCompleterCallback callback);", "void autoCompleteSelectionChanged(Event event) {\n Events.sendEvent(new Event(\"onValueSelected\", this));\n }", "public synchronized void addCompletionListener(ActionListener l) {\n if (Trace.isTracing(Trace.MASK_APPLICATION))\n {\n Trace.record(Trace.MASK_APPLICATION, BEANNAME, \"addCompletionListener registered\");\n }\n completionListeners.addElement(l); //add listeners\n }", "public interface BookSearchListener {\r\n void onStart();\r\n void onFind(BookInfo info);\r\n void onEnd(int code);\r\n}", "interface SearchListener {\r\n void onSearch(String searchTerm);\r\n }", "private void initAutoCompleteAdapter(){\n adapterAcGeneric = new GenericAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_generics.setThreshold(0);\n ac_generics.setAdapter(adapterAcGeneric);\n ac_generics.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n genericName = adapterAcGeneric.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_generics.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n genericName = \"\";\n handlerGeneric.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerGeneric.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerGeneric = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_generics.getText())) {\n // Log.d(\"DEBUG\", \"in generic\");\n makeApiCall(ac_generics.getText().toString(), 1);\n }\n }\n return false;\n }\n });\n\n\n adapterAcCompany = new CompanyAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_companies.setThreshold(0);\n ac_companies.setAdapter(adapterAcCompany);\n ac_companies.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n companyName = adapterAcCompany.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_companies.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n companyName = \"\";\n handlerCompany.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerCompany.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerCompany = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_companies.getText())) {\n //Log.d(\"DEBUG\", \"in company\");\n makeApiCall(ac_companies.getText().toString(), 2);\n }\n }\n return false;\n }\n });\n\n\n ac_companies.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"1\");\n makeApiCall(\"\", 2);\n\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n ac_generics.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"2\");\n makeApiCall(\"\", 1);\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n\n }", "public interface CompletionListener {\n\n /** Notifies the completion of \"ConnectDevice\" command. */\n void onConnectDeviceComplete();\n\n /** Notifies the completion of \"SendMessage\" echo command. */\n void onSendMessageComplete(String message);\n\n /** Notifies that the device is ready to receive Wi-Fi network credentials. */\n void onNetworkCredentialsRequested();\n\n /** Notifies that the device is ready to receive operational credentials. */\n void onOperationalCredentialsRequested(byte[] csr);\n\n /** Notifies the pairing status. */\n void onStatusUpdate(int status);\n\n /** Notifies the completion of pairing. */\n void onPairingComplete(int errorCode);\n\n /** Notifies the deletion of pairing session. */\n void onPairingDeleted(int errorCode);\n\n /** Notifies that the Chip connection has been closed. */\n void onNotifyChipConnectionClosed();\n\n /** Notifies the completion of the \"close BLE connection\" command. */\n void onCloseBleComplete();\n\n /** Notifies the listener of the error. */\n void onError(Throwable error);\n }", "public void invokeCompletionListener() {\n if (completionListener == null) return;\n completionListener.onCompletion( player );\n }", "public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}", "public interface Listener {\n \tpublic void notifyDone(LookupTypeQuery q, boolean complete, Type.Promise type);\n }", "void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);", "@Override\r\n\tpublic void autoCompletedUpdated() {\r\n\t\tmAdapter = new ArrayAdapter<String>(this, R.layout.sdk_list_entry, R.id.sdk_list_entry_text, mModel.getAutocompleteSuggestions());\r\n\r\n\t\tmListView.setAdapter(mAdapter);\r\n\t\tmListView.invalidate();\r\n\t\t\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t}", "public void initListener() {\n this.mSearchView.setOnQueryTextListener(this);\n this.mTopDisplayAdapter.setOnItemClickListener(new BaseSearchContactActivity$$Lambda$2(this));\n this.mSearchAdapter.setOnItemClickListener(new BaseSearchContactActivity$$Lambda$3(this));\n }", "public EditableComboBoxAutoCompletion(JComboBox comboBox) {\n this.comboBox = comboBox;\n editor = (JTextField)comboBox.getEditor().getEditorComponent();\n editor.addKeyListener(this);\n editor.addFocusListener(focusHandler);\n }", "public interface OnSearchTextChangedListener {\n\n void onTextChanged(String text);\n\n}", "public interface onAddItemListener {\n void onAddItem(String item);\n}", "private void setupAutoComplete() {\n // Map between AutoCompleteTextViews and their Adapters. Some text fields have a custom\n // adapter whose data is updated dynamically (rather than being statically set)\n Map<AutoCompleteTextView, ArrayAdapter<String>> map = new HashMap<>();\n map.put(mBind.layoutWidthEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.layoutHeightEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.backgroundEdit, new ArrayAdapter<>(this, LAYOUT_DROPDOWN_ITEM, Data.getArrColors()));\n map.put(mBind.maxWidthEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.maxHeightEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n\n for (Map.Entry<AutoCompleteTextView, ArrayAdapter<String>> e : map.entrySet()) {\n e.getKey().setAdapter(e.getValue());\n // For the fields with custom adapters, set up listener, so that the data of the adapter\n // is updated on every keystroke (e.g. \"14\" -> {\"14dp\", \"14in\", \"14mm\", \"14px\", \"14sp\"})\n if (e.getValue() instanceof AutoComplAdapter) {\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n // Trigger filtering process on 's', which updates the data of this adapter\n e.getValue().getFilter().filter(s);\n }\n });\n }\n }\n }", "public interface SearchDialogListenerToken {\n void onFinishSearchDialogToken(List<Person> collabs);\n }", "public void addMySelectionListener(EventListener l);", "private void installListeners() {\r\n\t\tcboText.addActionListener(this);\r\n\r\n\t\tComponent c = cboText.getEditor().getEditorComponent();\r\n\t\tif (c instanceof JTextComponent) {\r\n\t\t\t((JTextComponent) c).getDocument().addDocumentListener(this);\r\n\t\t}\r\n\r\n\t\tbtnFind.addActionListener(this);\r\n\t\tbtnReplace.addActionListener(this);\r\n\t\tbtnReplaceAll.addActionListener(this);\r\n\t\tbtnReplaceFind.addActionListener(this);\r\n\r\n\t\trbAll.addActionListener(this);\r\n\t\trbSelectedLines.addActionListener(this);\r\n\r\n\t\tcbUseRegex.addItemListener(this);\r\n\t}", "public interface OnInputListener {\n public void OnInput(String text);\n}", "public static interface OnInteractionListener {\n\t\tpublic void onLetteringPopRequest();\n\t}", "interface URLEntryFieldListener {\n\n /**\n * A method to be called when the user has pressed the enter key indicating they wish to navigate to the URL they've\n * entered. Called only after URL verification is complete, so the url object is factually known to be a\n * genuine (by schema at least) URL that we can try to navigate to.\n */\n void urlFieldEnterKeyPressed();\n\n\n}", "public void onCompletion(Runnable callback)\n/* */ {\n/* 158 */ this.completionCallback = callback;\n/* */ }", "public static void setupAutoComplete(JComboBox comboBox)\n\t{\n\t\tcomboBox.setEditable(true);\n\t\tJTextComponent editor = (JTextComponent) comboBox.getEditor().getEditorComponent();\n\t\teditor.setDocument(new AutoComplete(comboBox));\n\t}", "@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {if(!updateFromSelectedValue) updateAutocomplete(e);}", "@Override\r\n protected void addListener() {\r\n menuItem.addActionListener(new ManualJMenuItemClickHandler());\r\n }", "public interface VocabularyListener {\r\n public void onVocabularyClickListener(String word);\r\n}", "public void generateList(SearchAutoCompleteListener searchAutoCompleteListener) {\n RequestQueue queue= RequestQueueSingleton.getInstance(this.context).getRequestQueue();\n queue.cancelAll(\"search\");\n if (this.nameOrCode.length() > 0) {\n StringRequest request = new StringRequest(Request.Method.GET,\n Api.autoCompleteString +\"?q=\"+this.nameOrCode,\n (String response) -> {\n try {\n JSONObject data = new JSONObject(response);\n JSONArray placearray = data.getJSONArray(\"places\");\n\n if (placearray.length() == 0) {\n Log.d(TAG,\"Place Not Found\");\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n } else {\n ArrayList<Place> searchPlaces = JsonUtils.getPlaces(placearray);\n searchAutoCompleteListener.onPlaceListReceived(searchPlaces);\n }\n } catch (JSONException e) {\n searchAutoCompleteListener.onFailure(JsonUtils.logError(TAG,response));\n }\n },\n error ->{\n Log.d(TAG,JsonUtils.handleResponse(error));\n searchAutoCompleteListener.onFailure(JsonUtils.handleResponse(error));\n }){\n };\n request.setTag(\"search\");\n queue.add(request);\n }\n }", "String getSelectedAutoCompleteString();", "public interface Listener {\n \n /** Fires as each character is received */\n void onCharacter(Terminal terminal, char data);\n \n /** Fires when new data is received\n * @param numChars the number of chars received. May be negative if more characters were deleted than added.\n * @param input the input received since the last EOL\n */\n void onInput(Terminal terminal, int numChars, String current);\n \n /** Fires when an EOL is received */\n void onLine(Terminal terminal, String line);\n }", "public interface IOnMySearchFinishedListener {\n\n void onDialog(String title, String msg);\n\n void onSuccessSearch(List<Search> searches);\n\n void onSuccessAdd(Search search);\n}", "public void fontNameListRegisterHandler( ListSelectionListener listSelectionListener )\r\n\t{\r\n\t\t// register event handler for the Font Names list\r\n\t\tfontNamesList.addListSelectionListener( listSelectionListener );\r\n\t}", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }", "public interface FriendAutoCompleterFactory {\n\n /**\n * Returns a FriendLibraryAutocompleter that will supply suggestions based\n * on category.\n */\n public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch);\n\n /**\n * Returns a FriendLibraryPropertyAutocompleter that will supply suggestions\n * based on category and FilePropertyKey combination.\n */\n public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch,\n FilePropertyKey filePropertyKey);\n\n}", "public interface CompletionsCallbacks {\n void onSubscribed();\n\n void onData(String data);\n\n void onError(Throwable error);\n\n void onComplete();\n\n void onCancelled();\n}", "@Override\n\tpublic void getListener(){\n\t}", "public interface PromptListener {\n /**\n * On Prompt\n * @param promptText String\n */\n void OnPrompt(String promptText);\n}", "private void setListener() {\n\t}", "public void onCompletion();", "public void add(InputChangedListener listener)\r\n {\r\n\r\n }", "public interface EdittextListener {\n void onQuery(String s);\n\n void onClear();\n\n void onContentChange(String s);\n}", "public void onSearchStarted();", "public interface NewNullStateModuleSuggestionsListener {\n void G_(int i);\n }", "public interface Listener {\n void onCredentialUpdateRequired();\n\n void onOneDriveRefreshTokenUpdated(String str);\n }", "public void complete() {\r\n\t\tcomplete(suggestBox.getText());\r\n\t}", "@Override\n public void addListener(ChangeListener<? super String> listener) {\n }", "public interface onFoundListener {\n void onFound(String result);\n}", "public void onCompletion(CountedCompleter<?> paramCountedCompleter) {}", "protected void inputListener(){\n }", "public static void autoComplete(final JTextField field, final String column) {\n\n field.addKeyListener(new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n\n String low = field.getText().toLowerCase();\n if (low.length() == 0\n || e.isActionKey()\n || e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n return;\n }\n\n ResultSet res = null;\n String sql = \"SELECT DISTINCT \" + column\n + \" FROM buch WHERE LOWER(\"\n + column + \") LIKE '\" + low + \"%' LIMIT 1\";\n try {\n res = BookDatabase.getInstance().query(sql);\n if (res.next()) {\n int pos = field.getCaretPosition();\n field.setText(res.getString(1));\n field.setSelectionStart(pos);\n field.setSelectionEnd(field.getText().length());\n }\n } catch (Exception ex) {\n // bewusst ignoriert\n } finally {\n try {\n if (res != null && res.getStatement() != null) {\n res.getStatement().close();\n }\n } catch (Exception ex2) {\n // bewusst ignoriert\n }\n }\n }\n });\n }", "public void add(InputChangedListener listener)\r\n\t{\r\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "private void notifyListSelectionListener()\r\n {\r\n \tif (listSelectionListeners != null && listSelectionListeners.size() > 0) \r\n \t{\r\n ListSelectionEvent event = new ListSelectionEvent(this, avatarIndex, avatarIndex, false);\r\n\r\n for (ListSelectionListener listener : listSelectionListeners)\r\n {\r\n listener.valueChanged(event);\r\n }\r\n \t}\r\n }", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public interface NameListener {\n\n void setSelectedItem (Movie item);\n}", "public interface EnqueteListListener {\n}", "public interface JsonInputListener {\n\n\n void onArrival(String json);\n}", "@Override\n public void onTextChanged(CharSequence userInput, int start, int before, int count) {\n System.out.println(\"User input: \" + userInput);\n\n MainActivity mainActivity = ((MainActivity) context);\n /*String query= \"\";\n if(who == 1)\n query = mainActivity.from;\n else if(who == 2)\n query = mainActivity.to;\n */\n ArrayList<String> ddlSuggestions = Map.getSimilarNamesFromName(userInput.toString());\n\n // update the adapater\n if(who == 1) {\n mainActivity.fromAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, ddlSuggestions);\n mainActivity.fromAdapter.notifyDataSetChanged();\n mainActivity.fromAutoComplete.setAdapter(mainActivity.fromAdapter);\n System.out.println(\"Called1\");\n } else if(who == 2) {\n mainActivity.toAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, ddlSuggestions);\n mainActivity.toAdapter.notifyDataSetChanged();\n mainActivity.toAutoComplete.setAdapter(mainActivity.toAdapter);\n System.out.println(\"Called2\");\n }\n }", "public interface OnSubmittedListFragmentInteractionListener {\n void onSubmittedConceptListFragmentInteraction(Concept concept);\n }", "@Override\n\tpublic void setListener() {\n\n\t}", "@Override\n\tpublic synchronized void registerEventListeners() {\n\t\tif (eventListeners != null) // already called\n\t\t\treturn;\n\t\teventListeners = EventListenerManagers.wrap(this);\n\t\tSelectionUpdateListener selectionUpdateListener = new SelectionUpdateListener();\n\t\tselectionUpdateListener.setHandler(this);\n\t\teventListeners.register(SelectionUpdateEvent.class, selectionUpdateListener);\n\n\t\tSelectionCommandListener selectionCommandListener = new SelectionCommandListener();\n\t\tselectionCommandListener.setHandler(this);\n\t\t// selectionCommandListener.setDataDomainID(dataDomain.getDataDomainID());\n\t\teventListeners.register(SelectionCommandEvent.class, selectionCommandListener);\n\n\t\tsuper.registerEventListeners();\n\n\n\t}", "private void fireSuggestionEvent(SuggestFieldSuggestionImpl selectedSuggestion) {\n \t\tSelectionEvent.fire(this, selectedSuggestion);\n \t}", "public interface OnListFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void AddNewCharacter();\n void onListFragmentInteraction(IPlayerCharacter item);\n }", "public CustomAutoCompleteTextChangedListener(Context context, int who){\n this.context = context;\n this.who = who;\n }", "public interface Listener {}", "public void showSuggestionsFromServer() {\n \t\tsuggestionReadyCallback.onSuggestionsReady();\n \t}", "private void initListener() {\n }", "public void onResponseReceived(Request request,\n\t\t\t\t\t\tResponse response) {\n\t\t\t\t\tint statusCode = response.getStatusCode();\n\t\t\t\t\tif (statusCode == 200) {\n\t\t\t\t\t\tString[] airportList = response.getText().split(\"\\n\");\n\n\t\t\t\t\t\tMultiWordSuggestOracle oracle = new MultiWordSuggestOracle();\n\t\t\t\t\t\toracle.addAll(Arrays.asList(airportList));\n\n\t\t\t\t\t\tairportSuggestBoxFrom = new SuggestBox(oracle);\n\t\t\t\t\t\tairportSuggestBoxTo = new SuggestBox(oracle);\n\t\t\t\t\t\tfTable.setWidget(0, 1, airportSuggestBoxFrom);\n\t\t\t\t\t\tfTable.setWidget(1, 1, airportSuggestBoxTo);\n\t\t\t\t\t}\n\t\t\t\t}", "public void setOnCompletionListener(IMediaPlayer.OnCompletionListener l) {\n mOnCompletionListener = l;\n }", "public void addCompletionListener(Runnable listener) {\n\t\tcompletionListeners.add(listener);\n\t\tif(isDone() || isCancelled()) {\n\t\t\tlistener.run();\n\t\t}\t\t\n\t}", "public interface OnEventRespondedListener {\n\t \t\n\t \t// boolean value to decide if let go next\n\t public void onEventResponded(int eventID, int qid, String qtype, String responseString);\n\t \n\t // CODE: CONTAINS A STRING OF FOUR VALUES\n\t // Event ID(int), QID(int), QUESTION_TYPE(\"S\"(single) or \"M\"(multiple)),\n\t // CHOICE_INDEX(int for Single, String for multiple)\n\t \n\t }", "public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}", "public interface PlacesFetchListener {\n\n void onPlacesFetchSuccess(List<Place> places);\n\n default void onPlaceFetchFail(String message) {\n Log.e(C.TAG, \"Something went wrong\");\n }\n\n }", "private void populateAutoComplete() {\n if (!mayRequestContacts()) {\n return;\n }\n\n getLoaderManager().initLoader(0, null, this);\n }", "public void initListener() {\n }", "@Override\n protected void initializeEventList()\n {\n }", "public interface JokeListener {\n void onJokeFetched(String joke);\n}", "public interface FlickrSearchHelperListener{\n void onSuccessResponseReceived(FlickrSearchResponse response);\n void onErrorResponseReceived(String errorMessage);\n void onResultsRefined(List<Photo> newList);\n }", "public interface StringListener {\n\t/**\n\t * Wird immer aufgerufen, wenn ein String weitergegeben werden soll.\n\t * @param evt Der String, der uebergeben werden soll.\n\t */\n\tpublic abstract void actionPerformed(String string);\n}", "public interface OnActionSelectedListener {\n\t\t\tpublic void onActionSelected(Tweet tweet, String action);\n\t}", "public void addListSelectionListener(ListSelectionListener listener)\r\n {\r\n listSelectionListeners.add(listener);\r\n }", "public interface TypingListener {\n void onTyping(String roomId, String user, Boolean istyping);\n}", "private void init() {\n\r\n\t\tmyTerminal.inputSource.addUserInputEventListener(this);\r\n//\t\ttextSource.addUserInputEventListener(this);\r\n\r\n\t}", "public static interface Listener {\n public void onClick(String letter);\n }", "public void addListener(EventListener listener);", "public void setAutoComplete(Boolean autoComplete) {\n this.autoComplete = autoComplete;\n }", "void pharmacyListener(){\n \n }", "private final void m88846e() {\n this.f62188b.addTextChangedListener(this.f62191e);\n }", "public interface OnInputFragmentInteractionListener {\n void onInputFragmentInteraction(ArrayList<RepositoryInfo> repositoryInfoArrayList);\n }", "public TraitGuiListener(){\n\t\tplugin = RacesAndClasses.getPlugin();\n\t\tBukkit.getPluginManager().registerEvents(this, plugin);\n\t}", "public interface Listener {\n}", "public interface Listener {\n}", "private void addListeners() {\n \t\tfHistoryListener= new HistoryListener();\n \t\tfHistory.addOperationHistoryListener(fHistoryListener);\n \t\tlistenToTextChanges(true);\n \t}" ]
[ "0.746079", "0.71064335", "0.70941705", "0.660406", "0.6311813", "0.59670365", "0.5951281", "0.59489965", "0.5800131", "0.5792776", "0.57739544", "0.5717078", "0.57111394", "0.56674856", "0.5652919", "0.56517273", "0.56455946", "0.5628301", "0.55497944", "0.54800063", "0.5470861", "0.545803", "0.5430963", "0.5408959", "0.5397318", "0.53835875", "0.5378425", "0.53770214", "0.53763527", "0.535814", "0.53493154", "0.5347094", "0.5332629", "0.5331327", "0.53216237", "0.5317537", "0.53080785", "0.53033", "0.5290436", "0.52878976", "0.52845824", "0.5283013", "0.5265206", "0.5262386", "0.52611053", "0.5258265", "0.52407765", "0.5238288", "0.52302", "0.5221223", "0.5204645", "0.5203555", "0.5201574", "0.5200652", "0.5197675", "0.519565", "0.51694536", "0.51694536", "0.516086", "0.51543987", "0.51543987", "0.51470715", "0.5144893", "0.5144037", "0.5137973", "0.51332057", "0.51304466", "0.5116039", "0.5111134", "0.51109225", "0.51000553", "0.50986904", "0.5095567", "0.50950444", "0.50927836", "0.5091489", "0.5089724", "0.50871277", "0.5081606", "0.50668836", "0.5055029", "0.5052649", "0.5043574", "0.50376064", "0.5032604", "0.503007", "0.5027533", "0.5024748", "0.50198823", "0.5017298", "0.50172275", "0.5008728", "0.50069934", "0.5002578", "0.5000364", "0.49981043", "0.4994487", "0.49938685", "0.49938685", "0.49931672" ]
0.780402
0
The user has activated a suggested item. This means the user has explicitly activate the item, i.e., pressed enter on or clicked the item.
public void completionActivated(AutocompletionEvent<T> e);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);", "public void onInteract(Item item, Character character) {\n }", "@Override \r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n if(!isSendingQuestion){\r\n List<String> topicList = mAdpater.getHotTopicArray();\r\n String question = topicList.get(arg2);\r\n mSearch.setText(question);\t\r\n mSearch.requestFocus();\r\n InputMethodManager inputManager =(InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE); \r\n inputManager.showSoftInput(mSearch, 0);\r\n }\r\n \r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_hints) {\n showHintsDialog();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public boolean onActivated(EntityPlayer player, QRayTraceResult hit, ItemStack item);", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n searchView.setSingleLine(true);\n searchView.setImeOptions(EditorInfo.IME_ACTION_GO);\n searchView.requestFocus();\n imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);\n searchView.setWidth((getWindowManager().getDefaultDisplay().getWidth()) - (int) searchView.getX() - 50);\n\n searchView.setThreshold(3);\n\n searchView.setOnItemClickListener(mAutocompleteClickListener);\n\n searchView.setAdapter(mPlaceArrayAdapter);\n\n return true; // Return true to expand action view\n }", "@Override\n\t\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\tif(item.toString() == \"Cancel Paired\")\n\t\t\t{\n\t\t\t\tpaired_cancel(mBtDevChosen);\n\t\t\t}\n\t\t\telse if(item.toString()== \"Pair and Connect\")\n\t\t\t{\n\t\t\t\tactivity_result_set(mBtDevChosen);\n\t\t\t}\n\t\t\treturn super.onContextItemSelected(item);\n\t\t}", "@Override\n\tpublic boolean activate() {\n\t\tfinal Component CANCEL_BUTTON = CONSTS.CANCEL_BUTTON;\n\t\treturn ctx.backpack.select().id(CONSTS.fletching.getId()).count() >= 1\n\t\t\t\t&& !CANCEL_BUTTON.valid() \n\t\t\t\t&& !CANCEL_BUTTON.visible();\n\t}", "void issuedClick(String item);", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n //handle up navigation by setting a result intent so that onActivityResult in SuggestionsActivity\n //receives a non-null intent\n Log.d(TAG, String.format(\"onOptionsItemSelected: Up button clicked.\"));\n\n //set the result along with the intent, and finish\n setResult(Activity.RESULT_OK, buildResultIntent());\n finish();\n return true;\n\n case R.id.action_select:\n Log.d(TAG, \"onOptionsItemSelected: Invite button clicked\");\n if (selectedIdsMap.size() == 0) {\n //create a snackbar to inform the user that a selection must be made before inviting friend\n final View rootView = findViewById(R.id.root_layout);\n if (rootView != null) {\n final Snackbar snackbar = Snackbar.make(rootView, R.string.snackbar_no_selections, Snackbar.LENGTH_LONG);\n snackbar.setAction(R.string.snackbar_action_ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n snackbar.dismiss();\n }\n });\n snackbar.show();\n }\n }\n else {\n //start invite activity\n startActivity(InvitationActivity.buildIntent(this,\n buildSelectedItemsList(), EventConstants.EVENT_PARAM_VIEW_PAGER));\n }\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\n\n return true;\n }", "public void useItem() {\n\t\tif (!hasItem()) return;\n\t\titem.activate();\n\t\titem = null;\n\t}", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\treturn super.onContextItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.add_task_menu:\n showInputDialog();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public interface AutocompletionListener<T> {\n\t/**\n\t * The user has activated a suggested item.\n\t * \n\t * This means the user has explicitly activate the item, i.e., pressed enter on or clicked the\n\t * item.\n\t * @param e the event describing the activation\n\t */\n\tpublic void completionActivated(AutocompletionEvent<T> e);\n}", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n\t\t// When setting CHOICE_MODE_SINGLE, ListView will automatically\n\t\t// give items the 'activated' state when touched.\n\t\tgetListView().setChoiceMode(\n\t\t\t\tactivateOnItemClick ? ListView.CHOICE_MODE_SINGLE\n\t\t\t\t\t\t: ListView.CHOICE_MODE_NONE);\n\t}", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n\t\t// When setting CHOICE_MODE_SINGLE, ListView will automatically\n\t\t// give items the 'activated' state when touched.\n\t\tgetListView().setChoiceMode(\n\t\t\t\tactivateOnItemClick ? ListView.CHOICE_MODE_SINGLE\n\t\t\t\t\t\t: ListView.CHOICE_MODE_NONE);\n\t}", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n\t\t// When setting CHOICE_MODE_SINGLE, ListView will automatically\n\t\t// give items the 'activated' state when touched.\n\t\tgetListView().setChoiceMode(\n\t\t\t\tactivateOnItemClick ? ListView.CHOICE_MODE_SINGLE\n\t\t\t\t\t\t: ListView.CHOICE_MODE_NONE);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.pesquisar:\n Toast.makeText(getApplicationContext(), \"Localizar\", Toast.LENGTH_LONG).show();\n return true;\n case R.id.adicionar:\n incluir(getCurrentFocus());\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\tpublic void processConfirmItemButtonClick(ProcessConfirmItemObjectEvent e) {\n\t\t\n\t}", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) (item\n .getMenuInfo());\n confirmRemovePosition(info.position);\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n TaskDatabase td = new TaskDatabase(this);\n if (item.getItemId() == android.R.id.home && !new_reward.getText().toString().equals(\"\") && Skb.getProgress() != 0 && test2 == -1) {\n td.open();\n td.insertGoal(new_reward.getText().toString(),Skb.getProgress(),hidden.getText().toString());\n } else if (item.getItemId() == android.R.id.home && !new_reward.getText().toString().equals(\"\") && Skb.getProgress() != 0) {\n td.open();\n td.update_goals(test2,new_reward.getText().toString(),Skb.getProgress(),hidden.getText().toString());\n }\n finish(); // close this activity and return to preview activity (if there is any)\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onItemSelected(OurPlace place) {\n\n Log.i(LOG_TAG, \"YES!\");\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n\n mStudiesList.setChoiceMode(\n activateOnItemClick ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n \n }", "@Override\r\n\tpublic void activate() {\n\t\tif(CID==true) {\r\n\t\t\tinter.setState(inter.getResults());\r\n\t\t}\r\n\t}", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == R.id.menu1) {\n alt.show();\n }\n return true;\n }", "public void activate() {\n\t\tactivated = true;\n\t}", "public boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.select_teacher_class_lesson:\n\t\t\tdisplayLessonSelectionDialog();\n\t\t\treturn true;\n\t\tcase R.id.menu_item_search:\n\t\t\tonSearchRequested();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(activateOnItemClick\n ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(activateOnItemClick\n ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(activateOnItemClick\n ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(\n activateOnItemClick ? AbsListView.CHOICE_MODE_SINGLE\n : AbsListView.CHOICE_MODE_NONE);\n }", "@Override\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tLog.i(TAG, \"onItemSelected()\");\n\n\t\t\tswitch (item.getItemId()) { \n\t\t\tcase R.id.idSearchNew:\n\t\t\t\t// start a new search \n\t\t\t\tMakeToast.makeToast(this, \"start a new search\",\n\t\t\t\t\t\t\t\t\tMakeToast.LEVEL_DEBUG);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.idSearchAgain:\n\t\t\t\t// search again in current results \n\t\t\t\tMakeToast.makeToast(this, \"start search in current result\",\n\t\t\t\t\t\t\t\t\tMakeToast.LEVEL_DEBUG);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.idEndSearch:\n\t\t\t\t// done searching\n\t\t\t\tfinish();\t\t// end this task\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(\n activateOnItemClick ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "public void itemStateChanged (ItemEvent event)\n {\n ((GroupItem)gbox.getSelectedItem()).activate();\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n switch(item.getItemId()) {\n case R.id.edit:\n editEntry(info.position);\n return true;\n case R.id.delete:\n deleteEntry(info.position);\n return true;\n }\n return super.onContextItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.send_result) {\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "public void playerHasUsedSuggestion() {\n suggestionMade = true;\n }", "public void setItemWanted(Item item) {\n itemWanted = item;\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t\treturn onMenuItemSelected(item.getItemId());\r\n\t}", "private void doItemVerification() {\n\t\tif (actor != null && !actor.attributes.getInventory().contains(Items.FISHING_ROD)) {\r\n\t\t\tactor.say(\"fishing.norod\", getAssigningPlayer());\r\n\t\t\treset();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tactor.setHeldItem(actor.attributes.getInventory()\r\n\t\t\t\t.getStackInSlot(actor.attributes.getInventory().getFirstSlotContainingItem(Items.FISHING_ROD))\r\n\t\t\t\t.getItem());\r\n\t}", "@Override\n public final void activateQuestion(final GameQuestion question) {\n this.activeQuestion = question;\n fireActiveQuestionUpdate();\n }", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\tif(arg0.getKeyCode()==KeyEvent.VK_SPACE) {\n\t\t\tJOptionPane.showMessageDialog(null, \"The objective of the game is to answer as many questions as possible in a row. If you get a streak of 3 questions in a row, you win. You can press '+' to get a hint\");\n\t\t}\n\t\t//if(arg0.getKeyCode()==KeyEvent.VK_SHIFT&&currentState==QUESTION) {\n\t\t\t//needHint=true;\n\t\t//}\n\t}", "public void itemOkay() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.action_help:\r\n Intent help = new Intent(facebookplaces.this,appinstr.class);\r\n startActivity(help);\r\n return true;\r\n default:\r\n // If we got here, the user's action was not recognized.\r\n // Invoke the superclass to handle it.\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_voice_input) {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n startActivityForResult(intent, 0);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "int promptOption(IMenu menu);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item){\n super.onOptionsItemSelected(item);\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_new_item_check) {\n\n updateBeacon();\n //執行更新beacon\n /* 切回到原本的畫面 */\n Intent intent = new Intent();\n intent.setClass(editBeacon.this, MainActivity.class);\n startActivity(intent);\n finish();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Intent myIntent = new Intent(getApplicationContext(), TodaysClassActivity.class);\n startActivityForResult(myIntent, 0);\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.miTweet:\n showTweetDialog();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n int lSelectedItemID = item.getItemId(); // 액션 메뉴 아이디 확인함.\n if(lSelectedItemID == R.id.action_example){\n // To-do something\n }\n return super.onMenuItemSelected(featureId, item);\n }", "public void activate()\n {\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tsuper.onOptionsItemSelected(item);\n\t\tswitch(item.getItemId()) {\n\t\tcase ADD_INGREDIENT_DIALOG:\n\t\t\taddIngredient.performClick();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn true;\n\t}", "public boolean activate() { //if true continue to execute\n\n if (Inventory.getCount(PowerFletch.LOG) >= 1) {\n System.out.println(\"cutting activated\");\n\n return true;\n }\n\n return false;\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tshowIndicator();\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\r\n\t}", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\n\t\tif(item.getTitle()==\"Ahmedabad\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Ahmedabad\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\tif(item.getTitle()==\"Baroda\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Baroda\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\tif(item.getTitle()==\"Rajkot\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Rajkot\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\tif(item.getTitle()==\"Bhavnagar\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Bhavnagar\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn super.onContextItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.option_get_place) {\n showCurrentPlace();\n }\n else if (item.getItemId() == R.id.option_author) {\n showAuthorDialog();\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if(t.onOptionsItemSelected(item))\n return true;\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n\tpublic void activate() {\n\t\tfindFood();\n\t\t_status = GoalEnum.active;\n\t\t_fsm.reset();\n\t\t_fsm.activate();\n\t}", "@Override\r\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\r\n // TODO Auto-generated method stub\r\n return false;\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case R.id.action_geolocate:\n\n // COMMENTED OUT UNTIL WE DEFINE THE METHOD\n // Present the current place picker\n pickCurrentPlace();\n return true;\n\n case R.id.action_done:\n Intent intent = new Intent();\n if(places!=null)\n intent.putExtra(\"selected_place\", selectedPlaceName);\n setResult(RESULT_OK, intent);\n finish();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()){\n // Respond to a click on the \"done\" menu option\n case R.id.menu_done_add_client : {\n boolean isValid = isInputValid();\n if (isValid && firstName == null && location == null) {\n storeInputInDatabase();\n finish();\n }\n if (isValid && firstName != null && location != null) {\n storeInputInDatabase();\n finish();\n }\n return true;\n }\n case android.R.id.home: {\n // If the product hasn't changed, continue with navigating up to parent activity\n // which is the {@link MainActivity}.\n if (!mHasProductInfoChanged) {\n NavUtils.navigateUpFromSameTask(AddNewClient.this);\n return true;\n }\n\n // Otherwise if there are unsaved changes, setup a dialog to warn the user.\n // Create a click listener to handle the user confirming that\n // changes should be discarded.\n DialogInterface.OnClickListener discardButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Discard\" button, navigate to parent activity.\n NavUtils.navigateUpFromSameTask(AddNewClient.this);\n }\n };\n\n // Show a dialog that notifies the user they have unsaved changes\n showUnsavedChangesDialog(discardButtonClickListener);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n \tif (item.getItemId() == R.id.gotoNotes) {\r\n \t\tIntent i = new Intent(this, NotepadList.class);\r\n \t\ti.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\t\tstartActivity(i);\r\n\t\t\treturn true;\r\n \t}\r\n \tif (onMenuIndexSelected(item.getItemId())) return true;\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem mItem) {\n int id = mItem.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_filter) {\n alertSingleChoiceItems();\n return true;\n }\n\n return super.onOptionsItemSelected(mItem);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.okay:\n if(mFragment.index < 2){\n mFragment.getNewSentence();\n }else{\n if(current_state < 2){\n Intent intent = new Intent();\n intent.setClass(this, TestConditionOrder.TESTCASE.get(testcase % 6).get(current_state+1));\n intent.putExtra(\"testcase\", testcase);\n intent.putExtra(\"current_state\", current_state + 1);\n startActivity(intent);\n }else{\n Intent intent = new Intent();\n intent.setClass(this, EndActivity.class);\n startActivity(intent);\n }\n }\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case R.id.action_help:\n Toast.makeText(AddCity.this, \"Enter zip code and press SEARCH\",\n Toast.LENGTH_LONG).show();\n return true;\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "public void hintButtonPressed() {\n\t\tif (dtView != null) {\n\t\t\tif ((PrefClass.getHint() == 0)) {\n\t\t\t\t// Show Activity to get hints\n\t\t\t\tstartActivity(new Intent(context, GetHints.class));\n\t\t\t} else {\n\t\t\t\tdtView.showHint();\n\t\t\t\tconsumeHint();\n\t\t\t\tupdateUI();\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item)\n\t{\n\t\tsuper.onOptionsItemSelected(item);\n\t\treturn visitor.handleMenuItemSelection(item);\n\t}", "public boolean onOptionsItemSelected(MenuItem item){\n\t\t//field by ZAIFU\n Intent intent = new Intent();\n \n\t switch(item.getItemId()){\n\t case R.id.UserHelp:\n\t intent = new Intent(ResultActivity.this,InstructionActivity.class);\n\t startActivity(intent);\n\t return true; \n\t \n\t }\n\t return false;\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle your other action bar items...\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.add_note:\n\t\t\tnewNote();\n\t\t\treturn true;\n\t\tcase R.id.search:\n\t\t\tsv.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onQueryTextSubmit(String query) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\t\tfilter(currentTab, newText);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "private void approveItem(final int position){\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\n\t\tswitch (item.getItemId()) {\n\t\t\n\t\tdefault:\n\t\t\t\n\t\t\tbreak;\n\n\t\t}//switch (item.getItemId())\n\n\t\t\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onSuggestionSelect(int position) {\n return true;\n }" ]
[ "0.6575054", "0.62319297", "0.6123305", "0.6053418", "0.6038379", "0.59855103", "0.5952951", "0.58402467", "0.5820094", "0.58151495", "0.5805579", "0.57987463", "0.57946366", "0.57394093", "0.5714793", "0.5701985", "0.56815195", "0.56803", "0.56803", "0.56803", "0.5667237", "0.5666702", "0.5647762", "0.56363386", "0.5635829", "0.5633428", "0.5631767", "0.56213015", "0.56061524", "0.56030905", "0.56022143", "0.56022143", "0.56022143", "0.55972326", "0.5593155", "0.558503", "0.5579771", "0.5579771", "0.55737716", "0.55542165", "0.5538559", "0.5533047", "0.5525648", "0.55196583", "0.5509002", "0.55064934", "0.5500251", "0.5489022", "0.5488233", "0.54772615", "0.5477214", "0.5474317", "0.5472155", "0.54676574", "0.54670453", "0.5459671", "0.54582876", "0.5457048", "0.54464716", "0.5445478", "0.54443914", "0.54410875", "0.54390234", "0.5429771", "0.54229087", "0.54171306", "0.5416519", "0.54145294", "0.5413211", "0.5413211", "0.54104984", "0.54098415", "0.54061586", "0.5404657", "0.5402608", "0.5392064", "0.5391182", "0.53824824", "0.53824824", "0.53824824", "0.53824824", "0.53824824", "0.53824824", "0.53815025", "0.53772396", "0.53771716", "0.537631", "0.53762347", "0.53762233", "0.53717875", "0.53667283", "0.53667283", "0.53667283", "0.53667283", "0.53667283", "0.53667283", "0.53667283", "0.53667283", "0.53589326", "0.5357563" ]
0.5630433
27
Transforms one string into another string.
public interface Transformer { /** * Transform a string into another string * @param input string to be transformed * @return transformed string */ public String transform(String input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String transform(String input);", "public String makeConversion(String value);", "public static CharSequence translate(StringValue sv0, StringValue sv1, StringValue sv2) {\n\n // if any string contains surrogate pairs, expand everything to 32-bit characters\n if (sv0.containsSurrogatePairs() || sv1.containsSurrogatePairs() || sv2.containsSurrogatePairs()) {\n return translateUsingMap(sv0, buildMap(sv1, sv2));\n }\n\n // if the size of the strings is above some threshold, use a hash map to avoid O(n*m) performance\n if (sv0.getStringLength() * sv1.getStringLength() > 1000) {\n // Cut-off point for building the map based on some simple measurements\n return translateUsingMap(sv0, buildMap(sv1, sv2));\n }\n\n CharSequence cs0 = sv0.getStringValueCS();\n CharSequence cs1 = sv1.getStringValueCS();\n CharSequence cs2 = sv2.getStringValueCS();\n\n String st1 = cs1.toString();\n FastStringBuffer sb = new FastStringBuffer(cs0.length());\n int s2len = cs2.length();\n int s0len = cs0.length();\n for (int i = 0; i < s0len; i++) {\n char c = cs0.charAt(i);\n int j = st1.indexOf(c);\n if (j < s2len) {\n sb.cat(j < 0 ? c : cs2.charAt(j));\n }\n }\n return sb;\n }", "public String transform(String value){\n return value;\n }", "public static String transform(final String aString) {\n String result = aString;\n result = WHITESPACE.matcher(aString).replaceAll(\"$1\");\n result = unescapeHtml4(result);\n result = transliterator.transliterate(result);\n// result = HYPHEN.matcher(result).replaceAll(\"-\");\n result = result.trim();\n return result;\n }", "public void concat2Strings(String s1, String s2)\r\n {\r\n // s1.concat(s2);\r\n ///sau\r\n s1=s1+s2;\r\n System.out.println(\"Stringurile concatenate sunt \"+s1);\r\n }", "public String replaceString(String s, String one, String another) {\n if (s.equals(\"\")) return \"\";\n String res = \"\";\n int i = s.indexOf(one,0);\n int lastpos = 0;\n while (i != -1) {\n res += s.substring(lastpos,i) + another;\n lastpos = i + one.length();\n i = s.indexOf(one,lastpos);\n }\n res += s.substring(lastpos); // the rest\n return res;\n }", "private String prepare(String originStr)\r\n {\r\n String result=originStr.toLowerCase();\r\n result = result.replace('ä','a');\r\n result = result.replace('ö','o');\r\n result = result.replace('ü','u');\r\n// result = result.replace(':',' ');\r\n// result = result.replace(';',' ');\r\n// result = result.replace('<',' ');\r\n// result = result.replace('>',' ');\r\n// result = result.replace('=',' ');\r\n// result = result.replace('?',' ');\r\n// result = result.replace('[',' ');\r\n// result = result.replace(']',' ');\r\n// result = result.replace('/',' ');\r\n return result;\r\n }", "private CharSequence replacewithUni(String uni1, String myString2) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "private CharSequence replacewithSan(String uni1, String myString2) {\n try {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n myString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "public String transformString( String inputString) {\n char c[]=inputString.toCharArray();\n String transformedString=\"\";\n \n for (int i =c.length-1; i>=0; i--) { \n transformedString +=c[i];\n }\n return transformedString;\n }", "T translate(final String stringRepresentation);", "static String changeStr(StringFunc sf, String s){\n return sf.func(s);\n }", "String mo3176a(String str, String str2);", "void mo1886a(String str, String str2);", "void mo131986a(String str, String str2);", "void mo1342w(String str, String str2);", "void mo13161c(String str, String str2);", "public static String replace(final String s, \n\t\t\t final String v1, \n\t\t\t final String v2) {\n \n // return quick when nothing to do\n if(s == null \n || v1 == null \n || v2 == null \n || v1.length() == 0 \n || v1.equals(v2)) {\n return s;\n }\n\n int ix = 0;\n int v1Len = v1.length(); \n int n = 0;\n\n // count number of occurances to be able to correctly size\n // the resulting output char array\n while(-1 != (ix = s.indexOf(v1, ix))) {\n n++;\n ix += v1Len;\n }\n\n // No occurances at all, just return source string\n if(n == 0) {\n return s;\n }\n\n // Set up an output char array of correct size\n int start = 0;\n int v2Len = v2.length();\n char[] r = new char[s.length() + n * (v2Len - v1Len)];\n int rPos = 0;\n\n // for each occurance, copy v2 where v1 used to be\n while(-1 != (ix = s.indexOf(v1, start))) {\n while(start < ix) r[rPos++] = s.charAt(start++);\n for(int j = 0; j < v2Len; j++) {\n\tr[rPos++] = v2.charAt(j);\n }\n start += v1Len;\n }\n\n // ...and add all remaining chars\n ix = s.length(); \n while(start < ix) r[rPos++] = s.charAt(start++);\n \n // ..ouch. this hurts.\n return new String(r);\n }", "public interface StringTransformer\r\n{\r\n String transform(String source, Matcher matcher);\r\n}", "public String substituteSrc(String workString, String oldStr, String newStr) {\n int oldStrLen = oldStr.length();\n int newStrLen = newStr.length();\n String tempString = \"\";\n \n int i = 0, j = 0;\n while (j > -1) {\n j = workString.indexOf(oldStr, i);\n if (j > -1) {\n tempString = workString.substring(0, j) + newStr + workString.substring(j+oldStrLen);\n workString = tempString;\n i = j + newStrLen;\n }\n }\n \n return workString;\n }", "public String concate(String x, String y)\n\t{\n\t\treturn x.concat(y);\n\t}", "public String mapString(String originalString) {\n\t\treturn originalString;\n\t}", "static public String normalize(String s){\n\t\treturn s;\n\t}", "void mo1340v(String str, String str2);", "void mo1329d(String str, String str2);", "public static ArthurString minus(ArthurString one, ArthurString two) {\n return new ArthurString(one.str.replace(two.str, \"\"));\n }", "static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}", "public abstract void getStringImpl(String str, String str2, Resolver<String> resolver);", "public String replace(String input);", "private String replace(String str, String from, String to) {\n int index = str.indexOf(from);\n\n if (index == -1) {\n return str;\n } else {\n int endIndex = index + from.length();\n\n return str.substring(0, index) + to + str.substring(endIndex);\n }\n }", "public static void main(String[] args) {\n StringBuilder sb = new StringBuilder(\"Eu Programando\");\r\n StringBuilder sb2 = sb.append(\" nessa aula\");\r\n sb.append(\" mais uma coisa\");\r\n sb.append(\" e mais outra\");\r\n sb2.append(\" e mais uma pra finalizar\");\r\n\r\n // \"Eu programando\"\r\n // \"Eu programando nessa aula\"\r\n // \"Eu \"\r\n // \"Amando\"\r\n String s1 = \"Eu programando\";\r\n String s2 = s1.concat(\" nessa aula\");\r\n s1.substring(0,2);\r\n s1.replace(\"Eu Progra\", \"A\");\r\n\r\n System.out.println(\"#####################################\");\r\n System.out.println(\"StringBuilder sb: \" + sb);\r\n System.out.println(\"StringBuilder sb2: \" + sb2);\r\n System.out.println(\"String s1: \" + s1);\r\n System.out.println(\"String s2: \" + s2);\r\n }", "private String mergeStrings(String s1, String s2) {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tif (!s1.isEmpty()) {\n\t\t\tsb.append(s1);\n\t\t}\n\t\tif (!s2.isEmpty() && !s2.equalsIgnoreCase(s1)) {\n\t\t\tif (sb.toString().isEmpty()) sb.append(\" \");\n\t\t\tsb.append(s2);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String transform(String value) {\n return function.apply(value);\n }", "public String transform(String text){\n for(int i=0; i<transforms.length; i++)\n {\n if(transforms[i].contains(\"fromabbreviation\")){\n text = textTransformerAbbreviation.fromAbbreviation(text);\n }\n if(transforms[i].contains(\"toabbreviation\")){\n text = textTransformerAbbreviation.toAbbreviation(text);\n }\n if(transforms[i].contains(\"inverse\")){\n text = textTransformerInverse.inverse(text);\n }\n if(transforms[i].contains(\"upper\")){\n text = textTransformerLetterSize.upper(text);\n }\n if(transforms[i].contains(\"lower\")){\n text = textTransformerLetterSize.lower(text);\n }\n if(transforms[i].contains(\"capitalize\")) {\n text = textTransformerLetterSize.capitalize(text);\n }\n if(transforms[i].contains(\"latex\")){\n text = textTransformerLatex.toLatex(text);\n }\n if(transforms[i].contains(\"numbers\")){\n text = textTransformerNumbers.toText(text);\n }\n if(transforms[i].contains(\"repetitions\")){\n text = textTransformerRepetition.deleteRepetitions(text);\n }\n logger.debug(\"Text after \" + (i+1) + \" transform: \" + text);\n }\n\n logger.debug(\"Final form: \" + text);\n return text;\n }", "public static String oneTwo(String str) {\n String a = \"\";\n String b = \"\";\n String c = \"\";\n StringBuilder result = new StringBuilder();\n\n for (int i = 0; i < str.length(); i++) {\n if (!a.equals(\"\") && !b.equals(\"\") && !c.equals(\"\")) {\n result.append(b).append(c).append(a);\n a = \"\";\n b = \"\";\n c = \"\";\n } else if (i == 0 || a.equals(\"\")) {\n a = String.valueOf(str.charAt(i));\n } else if (b.equals(\"\")) {\n b = String.valueOf(str.charAt(i));\n } else if (c.equals(\"\")) {\n c = String.valueOf(str.charAt(i));\n }\n }\n if (!a.equals(\"\") && !b.equals(\"\") && !c.equals(\"\")) {\n result.append(b).append(c).append(a);\n }\n return String.valueOf(result);\n }", "private static String zzty(String string2) {\n StringBuffer stringBuffer = new StringBuffer();\n int n = 0;\n while (n < string2.length()) {\n char c = string2.charAt(n);\n if (n == 0) {\n stringBuffer.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n stringBuffer.append('_').append(Character.toLowerCase(c));\n } else {\n stringBuffer.append(c);\n }\n ++n;\n }\n return stringBuffer.toString();\n }", "private void Trans(String s) {\n }", "public String swap(String s1,int i,int j) {\n\t\t//storing string into char array\n\t\tchar []str=s1.toCharArray();\n\t\tchar temp;\n\t\ttemp=str[i];\n\t\tstr[i]=str[j];\n\t\tstr[j]=temp;\n\t\treturn String.valueOf(str);\n\t\t\n\t}", "private String getEncodedString(String original, String encoding_in, String encoding_out) {\r\n\t\tString encoded_string;\r\n\t\tif (encoding_in.compareTo(encoding_out) != 0) {\r\n\t\t\tbyte[] encoded_bytes;\r\n\t\t\ttry {\r\n\t\t\t\tencoded_bytes = original.getBytes(encoding_in);\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_in);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tencoded_string = new String(encoded_bytes, encoding_out);\r\n\t\t\t\treturn encoded_string;\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\t//e.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_out);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn original;\r\n\t}", "public ConversionMoneda(String moneda1, String moneda2){\n this.moneda1 = moneda1;\n this.moneda2 = moneda2;\n }", "public static final String reverseString2(final String inString){\n\t\tif (inString==null || inString.length()==0) return inString;\r\n\t\tchar[] cStringArray=inString.toCharArray();\r\n\t\tchar first;\r\n\t\tfor (int i=0;i<(cStringArray.length/2);i++){\r\n\t\t\tfirst = cStringArray[ i ];\r\n\t\t\tcStringArray[ i ] = cStringArray[ cStringArray.length - i - 1 ];\r\n\t\t\tcStringArray[ cStringArray.length - i - 1 ] = first;\r\n\t\t}\r\n\t\treturn String.valueOf(cStringArray);\r\n\t}", "public String comboString(String a, String b) {\r\n return a.length() > b.length() ? b + a + b : a + b + a;\r\n }", "public static ArthurString add(ArthurString one, ArthurString two) {\n return new ArthurString(one.str + two.str);\n }", "public static String myConcatenator(String str1, String str2)\r\n {\r\n str1 += str2;\r\n return str1;\r\n }", "static String doit(final String string1, final String string2) {\n String shorterString; // a\n String longerString; // b\n if (string1.length() > string2.length()) {\n shorterString = string2;\n longerString = string1;\n } else {\n longerString = string2;\n shorterString = string1;\n }\n String r = \"\";\n\n for (int i = 0; i < shorterString.length(); i++) {\n for (int j = shorterString.length() - i; j > 0; j--) {\n for (int k = 0; k < longerString.length() - j; k++) {\n if (shorterString.regionMatches(i, longerString, k, j) && j > r.length()) {\n r = shorterString.substring(i, i + j);\n }\n }\n } // Ah yeah\n }\n return r;\n\n }", "public static String reverseString2(String s) {\n\t\tint length = s.length();\n\t\tchar[] arr = s.toCharArray();\n\t\t\n\t\tfor(int i=0; i< length / 2; i++){\n\t\t\tchar temp = arr[i];\n\t\t\tarr[i] = arr[length-1-i];\n\t\t\tarr[length-1-i] = temp;\n\t\t}\n\t\t\n\t\n\t\treturn new String(arr);\n\t\t\t\n\t}", "public static Value makeStr(String s) {\n Value r = new Value();\n r.str = s;\n return canonicalize(r);\n }", "public static String normalizeString(String string) {\n return parse(string).toString();\n }", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "int mo23353w(String str, String str2);", "public static String replace(String str, String subStr1, String subStr2) {\n\t\t\n\t\tfor(int i = 0; i < str.length() - subStr1.length(); i++) {\n\t\t\tString strNew = str;\n\t\t\tif(str.substring(i, i + subStr1.length()).equals(subStr1)) {\n\t\t\t\tfor(int j = 0; j < str.length() - subStr1.length(); j++) {\n\t\t\t\t\tstrNew = str.substring(0, i) + subStr2 + str.substring(i + subStr1.length());\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = strNew;\n\t\t}\n\t\treturn str;\n\t}", "public static String replaceString(String mainString, String oldString, String newString) {\n return StringUtil.replaceString(mainString, oldString, newString);\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "public String conCat(String a, String b) {\r\n String res = \"\";\r\n\r\n if (a.length() > 0 && b.length() > 0) {\r\n if (a.charAt(a.length() - 1) == b.charAt(0)) {\r\n res = a + b.substring(1);\r\n } else {\r\n res = a + b;\r\n }\r\n } else {\r\n res = a + b;\r\n }\r\n\r\n return res;\r\n }", "public String swap(String text){\n\t\treturn text.substring(text.length()/2,text.length())+text.substring(0, text.length()/2);\n\t}", "public static String longerString(String s1, String s2) {\n\t\tif(s1.length()>s2.length()) {\n\t\t\treturn s1;\n\t\t}else {\n\t\t\treturn s2;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString str1=\"Hello\";//5\n\t\tString str2=\"World\";// length=5\n\t\tstr1=str1+str2;// HelloWord->10- 5\n\t\tstr2=str1.substring(0, str1.length()-str2.length());//Hello\n\t\tstr1=str1.substring(str2.length());// World\n\t\tSystem.out.println(\"The value of str1=\"+str1+\" and the value of str2=\"+str2);\nSystem.out.println(\"-----------------------------------------------------------------------------2nd way\");\n\n\t\tstr1=str1+str2;\n str2=str1.replaceAll(str2,\"\");\n str1=str1.replaceAll(str2, \"\");\n System.out.println(str2);\n System.out.println(str1);\n System.out.println(\"----------------------------------------------------------------------------2nd example\");\n \n String a=\"Sekander\";\n String b=\"Salihi\";\n a=a+b;//SekanderSalihi\n b=a.substring(0, a.length()-b.length());//Sekander\n a=a.substring(b.length());//Salihi\n System.out.println(\"The value of a=\"+a+\" and the value of b=\"+b);\n System.out.println(\"----------------------------------------------------------------------------2nd way\");\n a=a+b;\n b=a.replaceAll(b, \"\");\n a=a.replaceAll(b, \"\");\n System.out.println(b);\n System.out.println(a);\n \t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str= \"Hello Dear Dan, how are you Dan, How you been?\";\n\t\tString str1= \"Honesty, I dont care bro\";\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(str.replace('e', 'z')); // we used .replace and replaced all 'e', to 'z' \n\t\t\n\t\tSystem.out.println(str.replace(\"Dear\", \"Love\")); // we used .replace target, replacement to replace specific words. Here I replaced \"Dear with Love\"\n\t\tSystem.out.println(str.replaceFirst(\"Dan\", \"Sir\")); //This replaces the FIRST Dan, and leaves the rest \n\n\t\tString str2=\"12-22-1990\"; // 12/22/1990\n\t\t\n\t\tSystem.out.println(str2.replace('-', '/'));\n\t\t\n\t\t\n\t\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static String makeTransformedStringFromString(String theString, URI transUri, \n HashMap<String, String> parameters,String encoding)\n throws Exception {\n if(encoding==null)\n encoding=default_encoding;\n try {\n Document doc=makeTransformedDomFromString(theString, false, transUri, parameters, encoding); \n String res=saveDomToString(doc, default_encoding, false, \"text\");\n return res;\n } catch (Exception ex) {\n throw new Exception(ex);\n }\n }", "void mo1334i(String str, String str2);", "public static String replaceFirst(String src, String from, String to) {\n StringBuffer sb = new StringBuffer(src);\n int idx = src.indexOf(from);\n int len = from.length();\n if (idx != -1) {\n sb = sb.replace(idx, idx + len, to);\n }\n return new String(sb);\n }", "ILoLoString translate();", "private static String flipEndChars(String str) {\n if (str.length() < 2) {\n return \"Incompatible.\";\n }\n char firstChar = str.charAt(0);\n char lastChar = str.charAt(str.length() - 1);\n if (firstChar == lastChar) {\n return \"Two\\'s a pair.\";\n }\n return lastChar + str.substring(1, str.length() - 1) + firstChar;\n }", "public static String replaceFirst\r\n (String strIn, String strFrom, String strTo)\r\n {\r\n int intFromLength = strFrom.length();\r\n if (intFromLength <= 0)\r\n {\r\n return strIn;\r\n }\r\n\r\n StringBuffer sbRC = new StringBuffer();\r\n\r\n //-- Find the next occurrence of strFrom in strIn.\r\n int intMatchPos = strIn.indexOf(strFrom);\r\n if (intMatchPos > -1)\r\n {\r\n //-- Copy the chars we just scanned past.\r\n sbRC.append(strIn.substring(0, intMatchPos));\r\n\r\n //-- Copy strTo instead of the matched strFrom.\r\n sbRC.append(strTo);\r\n\r\n //-- Advance past the matched strFrom.\r\n sbRC.append(strIn.substring(intMatchPos + intFromLength));\r\n return sbRC.toString();\r\n }\r\n else\r\n {\r\n return strIn;\r\n }\r\n }", "private static void encodeStringForAuditFieldReplaceString(StringBuilder sb, String oldString, String newString) {\n\n\t\tint index = sb.indexOf(oldString);\n\t\twhile (index >= 0) {\n\t\t\tsb.delete(index, index + oldString.length());\n\t\t\tsb.insert(index, newString);\n\t\t\tindex = sb.indexOf(oldString, index + newString.length());\n\t\t}\n\n\t}", "T convert(String value);", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "int mo23352v(String str, String str2);", "private static String zzgr(String string2) {\n int n = string2.length();\n StringBuilder stringBuilder = new StringBuilder(n);\n int n2 = 0;\n while (n2 < n) {\n char c = string2.charAt(n2);\n if (c >= ' ' && c <= '~' && c != '\\\"' && c != '\\'') {\n stringBuilder.append(c);\n } else {\n stringBuilder.append(String.format(\"\\\\u%04x\", c));\n }\n ++n2;\n }\n return stringBuilder.toString();\n }", "public String transform(String input) throws Exception {\n StringWriter outWriter = new StringWriter();\n StringReader reader = new StringReader(input);\n Result result = new StreamResult(outWriter);\n myTransformer.transform(\n new javax.xml.transform.stream.StreamSource(reader), result);\n return outWriter.toString();\n }", "int mo54403a(String str, String str2);", "public static void main(String[] args) {\n\t\tString s = \"twckwuyvbihajbmhmodminftgpdcbquupwflqfiunpuwtigfwjtgzzcfofjpydjnzqysvgmiyifrrlwpwpyvqadefmvfshsrxsltbxbziiqbvosufqpwsucyjyfbhauesgzvfdwnloojejdkzugsrksakzbrzxwudxpjaoyocpxhycrxwzrpllpwlsnkqlevjwejkfxmuwvsyopxpjmbuexfwksoywkhsqqevqtpoohpd\";\n\t\tString s2 = convert(s, 4);\n\t\tSystem.out.println(s2);\n\t}", "public static String normalizeString(String str) {\n\t\tlog.trace(\"Entering normalizeString: str='\" + str + \"'\");\n\t\treturn str.replace(':', '-').replace(' ', '_');\n\t}", "public\n\tABSwap (\n\t\t\tString newAString,\n\t\t\tString newBString) {\n\n\t\taString =\n\t\t\tnewAString;\n\n\t\tbString =\n\t\t\tnewBString;\n\n\t}", "public static String convert1(String input) {\n\t\tString sRes = \"\";\n\t\tString[] splitInput = input.split(\"\\n\");\n\n\t\tfor (String s : splitInput) {\n\t\t\tString[] splitStr = s.split(\" \");\n\t\t\tfor (int i = 0; i < splitStr.length; i++) {\n\t\t\t\tsplitStr[i] = firstUpperCase(splitStr[i].toLowerCase());\n\t\t\t\tsRes = sRes.concat(splitStr[i] + \" \");\n\t\t\t}\n\t\t\tsRes += \"\\n\";\n\t\t}\n\n\t\treturn sRes;\n\t}", "static String stringCutter2(String s) {\n int value = s.length() % 2 == 0 ? s.length() / 2 : s.length() / 2 + 1;\n // pemotongan string untuk kelompok ke dua\n String sentence2 = s.substring(value, s.length());\n\n // perulangan untuk membalik setiap karakter pada kelompok kata ke dua\n String sentence2reverse = \"\";\n for (int i = sentence2.length() - 1; i >= 0; i--) {\n sentence2reverse += sentence2.toUpperCase().charAt(i);\n }\n return sentence2reverse;\n }", "public abstract void setStringImpl(String str, String str2, Resolver<Void> resolver);", "public static void main(String[] args) {\r\n String str = \"Filesystem 1K-blocks Used Available Use% Mounted on\\n\";\r\n str += \"/dev/sda1 7850996 1511468 5940716 21% /\\n\";\r\n str += \"tmpfs 258432 0 258432 0% /lib/init/rw\\n\";\r\n str += \"udev 10240 52 10188 1% /dev\\n\";\r\n str += \"tmpfs 258432 0 258432 0% /dev/shm\\n\";\r\n \r\n System.out.println(str);\r\n \r\n System.out.println(\"StringEscapeUtils.unescapeHtml(str):\");\r\n System.out.println(StringEscapeUtils.unescapeHtml(str));\r\n \r\n System.out.println(\"StringEscapeUtils.escapeHtml(str):\");\r\n System.out.println(StringEscapeUtils.escapeHtml(str));\r\n \r\n System.out.println(\"StringEscapeUtils.unescapeJava(str):\");\r\n System.out.println(StringEscapeUtils.unescapeJava(str));\r\n \r\n System.out.println(\"StringEscapeUtils.escapeJava(str):\");\r\n System.out.println(StringEscapeUtils.escapeJava(str));\r\n \r\n System.out.println(\"StringUtils.replace(str, \\\"\\n\\\", \\\"<br>\\\"):\");\r\n System.out.println(StringUtils.replace(str, \"\\n\", \"<br>\"));\r\n \r\n System.out.println(\"StringUtils.replace(str, \\\" \\\", \\\"&nbsp;\\\"):\");\r\n System.out.println(StringUtils.replace(str, \" \", \"&nbsp;\"));\r\n }", "public String normalize(String word);", "@Test\n public void givenStringShouldReturnTheTransposedString() {\n assertTrue(transpose.setString(\"This is the given text\"));\n String expectedOutput = \"sihT si eht nevig txet\";\n assertEquals(expectedOutput, transpose.getTransposedString());\n }", "public static String merge(String str1, String str2)\r\n {\r\n return (str1==null?\"\":str1)+(str2==null?\"\":str2);\r\n }", "public static String interleave(CharSequence a, CharSequence b) {\n StringBuilder sb = new StringBuilder();\n int maxA = a.length();\n int maxB = b.length();\n int max = Math.max(maxA, maxB);\n for (int i = 0; i < max; i++) {\n if (i < maxA) {\n sb.append(a.charAt(i));\n }\n if (i < maxB) {\n sb.append(b.charAt(i));\n }\n }\n return sb.toString();\n }", "private String swapTwo(int a,int b,char[]word1,char[]word2){\n \n word1[a]=word2[b];\n return new String(word1);\n }", "public abstract void fromString(String s, String context);", "private static String m19460a(String str, String str2, String str3) {\n if (TextUtils.isEmpty(str3)) {\n str3 = \"\";\n }\n return str.replaceAll(str2, str3);\n }", "void mo1331e(String str, String str2);", "public static String reverseString(String a) {\n StringBuilder stringBuilder = new StringBuilder();\n char[] masiiv = a.toCharArray();\n char[] newchar = new char[a.length()];\n int j = 0;\n for (int i = masiiv.length - 1; i >= 0; i--) {\n stringBuilder.append(newchar[j] = masiiv[i]);\n j++;\n }\n String joinedString = stringBuilder.toString();\n return joinedString;\n }", "private static String m12563a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "public EncodeAndDecodeStrings() {}", "@Test\n public void reverseString_passString_ReturnReversedString() {\n String output = Java8Streams.reverseString(\"java interview\");\n\n assertThat(output).isEqualTo(\"weivretni avaj\");\n }", "public String transform(String str) {\n char[] char_array = str.toCharArray();\n // 2. Caret is set to the first element of the character array.\n // This ensures the first element as visited in the array.\n char caret = char_array[0];\n // 3. Captures the occurrences of the character.\n // Since we defaulted current character to the first element, current counter is set to 1.\n int current_counter = 1;\n StringBuilder sb = new StringBuilder();\n\n // 4. Start from the second element in the character array\n for(int i = 1; i < char_array.length; i++) {\n // 4.1 IF: Increment the current counter if the current element matches with the caret\n // This means we are still seeing the occurrences of the caret.\n if(char_array[i] == caret) {\n current_counter += 1;\n }\n // 4.2 ELSE: If the current element does not match with the caret, push the number of occurrences and the caret to the string builder.\n else {\n sb.append(Integer.toString(current_counter));\n sb.append(caret);\n // 4.3 Initialize the caret to the current element and increment the current_counter.\n caret = char_array[i];\n current_counter = 1;\n }\n }\n\n // 5. Last element will be unvisited from 4.3.\n // Capturing the caret and current counter as it is.\n sb.append(Integer.toString(current_counter));\n sb.append(caret);\n\n // 6. Form a string.\n return sb.toString();\n }", "private static String alterString(String string) {\n\t\t/*\n\t\t * creating the character array by converting string to charArry()\n\t\t */\n\t\t char name[]=string.toCharArray();\n\t\t /*\n\t\t * creating character array for storing elements\n\t\t */\n\t\t\t char arr[]=new char[name.length];\n\t\t\t \n\t\t\t /*\n\t\t\t * Creating character array for alphabets\n\t\t\t */\n\t\t\t char alphabets[]= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\t\t \n\t\t\t for(int i=0;i<name.length;i++) {\n\t\t\t\t /*\n\t\t\t\t * if vowels are present add it to storing array\n\t\t\t\t */\n\t\t\t\t if(name[i]=='a' || name[i]=='e' || name[i]=='i' || name[i]=='o' || name[i]=='u') {\n\t\t\t\t\t arr[i]=name[i];\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t for(int j=0;j<alphabets.length;j++) {\n\t\t\t\t\t\t /*\n\t\t\t\t\t\t * after looping through alphabet array if the element consonant is found replace it next element in alphabet array \n\t\t\t\t\t\t */\n\t\t\t\t\t\t if(name[i]==alphabets[j]) {\n\t\t\t\t\t\t\t arr[i]=alphabets[j+1];\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\t /*\n\t\t\t * converting character array to string;\n\t\t\t */\n\t\t\t String string1=new String(arr); \n\t\t\t /*\n\t\t\t * returning the string\n\t\t\t */\n\t\t\treturn string1;\n\t}", "public static void main(String[] args) {\n String s1 = \"01724-063642\";\n String s2 = s1.replace('i', 'j');\n\n System.out.println(s2);\n \n //String[] sp = s1.split(\" \");\n //String[] sp = s1.split(\"_\");\n String[] sp = s1.split(\"-\");\n for (String s:sp) {\n System.out.println(s);\n }\n \n }", "public static void main(String[] args) {\n\t\tString str=\"Sneha is a good girl\";\n\t\tString finalStr=\"\";\n\t\tString str1=str;\n\t\tString str2=str.replace(\" \", \"\");\n\t\t\n\t\tSystem.out.println(\"Final string is \"+str2);\n\n\t}", "static String m60358a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "static String convert(String str)\n {\n char ch[] = str.toCharArray();\n for (int i = 0; i < str.length(); i++) {\n \n // If first character of a word is found\n if (i == 0 && ch[i] != ' ' || \n ch[i] != ' ' && ch[i - 1] == ' ') {\n \n // If it is in lower-case\n if (ch[i] >= 'a' && ch[i] <= 'z') {\n \n // Convert into Upper-case\n ch[i] = (char)(ch[i] - 'a' + 'A');\n }\n }\n \n // If apart from first character\n // Any one is in Upper-case\n else if (ch[i] >= 'A' && ch[i] <= 'Z') \n \n // Convert into Lower-Case\n ch[i] = (char)(ch[i] + 'a' - 'A'); \n }\n \n // Convert the char array to equivalent String\n String st = new String(ch);\n return st;\n }", "String str(String strR) {\n\t\tString rev = \"\";\n\t\tfor (int i = strR.length(); i >0; i--) {\n\t\t\trev = rev + strR.substring(i - 1, i);\n\t\t}\n\t\treturn rev;\n\t}", "public static String canonicalDecomposeWithSingleQuotation(String paramString)\n/* */ {\n/* 2506 */ char[] arrayOfChar1 = paramString.toCharArray();\n/* 2507 */ int i = 0;\n/* 2508 */ int j = arrayOfChar1.length;\n/* 2509 */ Object localObject1 = new char[arrayOfChar1.length * 3];\n/* 2510 */ int k = 0;\n/* 2511 */ int m = localObject1.length;\n/* */ \n/* 2513 */ char[] arrayOfChar2 = new char[3];\n/* */ \n/* */ \n/* */ \n/* 2517 */ int i2 = 4;\n/* */ \n/* */ \n/* 2520 */ int i6 = (char)indexes[8];\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2527 */ int i1 = 0xFF00 | i2;\n/* 2528 */ int i3 = 0;\n/* 2529 */ int i8 = 0;\n/* 2530 */ long l = 0L;\n/* 2531 */ int i5 = 0;\n/* 2532 */ int i10 = 0;\n/* */ int i9;\n/* 2534 */ int i7 = i9 = -1;\n/* */ for (;;) {\n/* 2536 */ int n = i;\n/* */ \n/* 2538 */ while ((i != j) && (((i5 = arrayOfChar1[i]) < i6) || \n/* */ \n/* 2540 */ (((l = getNorm32(i5)) & i1) == 0L) || ((i5 >= 44032) && (i5 <= 55203))))\n/* */ {\n/* */ \n/* 2543 */ i8 = 0;\n/* 2544 */ i++;\n/* */ }\n/* */ \n/* */ int i4;\n/* 2548 */ if (i != n) {\n/* 2549 */ i4 = i - n;\n/* 2550 */ if (k + i4 <= m) {\n/* 2551 */ System.arraycopy(arrayOfChar1, n, localObject1, k, i4);\n/* */ }\n/* */ \n/* 2554 */ k += i4;\n/* 2555 */ i3 = k;\n/* */ }\n/* */ \n/* */ \n/* 2559 */ if (i == j) {\n/* */ break;\n/* */ }\n/* */ \n/* 2563 */ i++;\n/* */ char c2;\n/* 2565 */ if (isNorm32Regular(l)) {\n/* 2566 */ c2 = '\\000';\n/* 2567 */ i4 = 1;\n/* */ \n/* */ }\n/* 2570 */ else if ((i != j) && \n/* 2571 */ (Character.isLowSurrogate(c2 = arrayOfChar1[i]))) {\n/* 2572 */ i++;\n/* 2573 */ i4 = 2;\n/* 2574 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ } else {\n/* 2576 */ c2 = '\\000';\n/* 2577 */ i4 = 1;\n/* 2578 */ l = 0L;\n/* */ }\n/* */ \n/* */ char[] arrayOfChar3;\n/* */ char c1;\n/* 2583 */ if ((l & i2) == 0L)\n/* */ {\n/* 2585 */ i7 = i9 = (int)(0xFF & l >> 8);\n/* 2586 */ arrayOfChar3 = null;\n/* 2587 */ i10 = -1;\n/* */ } else {\n/* 2589 */ localObject2 = new DecomposeArgs(null);\n/* */ \n/* */ \n/* 2592 */ i10 = decompose(l, i2, (DecomposeArgs)localObject2);\n/* 2593 */ arrayOfChar3 = extraData;\n/* 2594 */ i4 = ((DecomposeArgs)localObject2).length;\n/* 2595 */ i7 = ((DecomposeArgs)localObject2).cc;\n/* 2596 */ i9 = ((DecomposeArgs)localObject2).trailCC;\n/* 2597 */ if (i4 == 1)\n/* */ {\n/* 2599 */ c1 = arrayOfChar3[i10];\n/* 2600 */ c2 = '\\000';\n/* 2601 */ arrayOfChar3 = null;\n/* 2602 */ i10 = -1;\n/* */ }\n/* */ }\n/* */ \n/* 2606 */ if (k + i4 * 3 >= m)\n/* */ {\n/* 2608 */ localObject2 = new char[m * 2];\n/* 2609 */ System.arraycopy(localObject1, 0, localObject2, 0, k);\n/* 2610 */ localObject1 = localObject2;\n/* 2611 */ m = localObject1.length;\n/* */ }\n/* */ \n/* */ \n/* 2615 */ Object localObject2 = k;\n/* 2616 */ if (arrayOfChar3 == null)\n/* */ {\n/* 2618 */ if (needSingleQuotation(c1))\n/* */ {\n/* */ \n/* 2621 */ localObject1[(k++)] = 39;\n/* 2622 */ localObject1[(k++)] = c1;\n/* 2623 */ localObject1[(k++)] = 39;\n/* 2624 */ i9 = 0;\n/* 2625 */ } else if ((i7 != 0) && (i7 < i8))\n/* */ {\n/* */ \n/* 2628 */ k += i4;\n/* 2629 */ i9 = insertOrdered((char[])localObject1, i3, localObject2, k, c1, c2, i7);\n/* */ }\n/* */ else\n/* */ {\n/* 2633 */ localObject1[(k++)] = c1;\n/* 2634 */ if (c2 != 0) {\n/* 2635 */ localObject1[(k++)] = c2;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* 2641 */ else if (needSingleQuotation(arrayOfChar3[i10])) {\n/* 2642 */ localObject1[(k++)] = 39;\n/* 2643 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2644 */ localObject1[(k++)] = 39;\n/* 2645 */ i4--;\n/* */ do {\n/* 2647 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2648 */ i4--; } while (i4 > 0);\n/* */ }\n/* 2650 */ else if ((i7 != 0) && (i7 < i8)) {\n/* 2651 */ k += i4;\n/* 2652 */ i9 = mergeOrdered((char[])localObject1, i3, localObject2, arrayOfChar3, i10, i10 + i4);\n/* */ }\n/* */ else\n/* */ {\n/* */ do {\n/* 2657 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2658 */ i4--; } while (i4 > 0);\n/* */ }\n/* */ \n/* */ \n/* 2662 */ i8 = i9;\n/* 2663 */ if (i8 == 0) {\n/* 2664 */ i3 = k;\n/* */ }\n/* */ }\n/* 2667 */ return new String((char[])localObject1, 0, k);\n/* */ }", "public static String cutOut(String str1, String str2)\n {\n if(str1.indexOf(str2) == -1)\n return str1;\n int n = str1.indexOf(str2);\n return str1.substring(0, n) + str1.substring(n + str2.length());\n }" ]
[ "0.6989296", "0.6348367", "0.6200172", "0.6168362", "0.6115752", "0.59966934", "0.59880406", "0.5929482", "0.5914297", "0.59095544", "0.5880361", "0.58372194", "0.5789198", "0.5744622", "0.5694687", "0.5682008", "0.5628232", "0.56104195", "0.55891234", "0.55667776", "0.5548416", "0.5539307", "0.55126894", "0.5468024", "0.5457429", "0.5449765", "0.5415327", "0.54009753", "0.5399848", "0.5396577", "0.5392204", "0.5359988", "0.5332707", "0.53321534", "0.5319999", "0.53181565", "0.530514", "0.529141", "0.5291137", "0.52848965", "0.5268401", "0.5257778", "0.5254638", "0.52463704", "0.5232995", "0.52189225", "0.52034587", "0.5191885", "0.5189115", "0.5164915", "0.51627535", "0.5157686", "0.5156389", "0.5151331", "0.5137596", "0.51354724", "0.5129372", "0.51283175", "0.5127601", "0.5127535", "0.51225317", "0.5114882", "0.5104592", "0.50852174", "0.508073", "0.50709283", "0.50709146", "0.50654066", "0.50633687", "0.5048489", "0.50419885", "0.5041729", "0.5038882", "0.50341266", "0.50304437", "0.50268024", "0.5024047", "0.5021275", "0.50212234", "0.5018756", "0.5002816", "0.49956855", "0.49956036", "0.49935973", "0.49840897", "0.49816957", "0.49778765", "0.49761105", "0.4972234", "0.49708208", "0.496409", "0.49634814", "0.49618667", "0.49607807", "0.49605593", "0.49576685", "0.49564272", "0.49398965", "0.49355793", "0.49285415" ]
0.5365853
31
Transform a string into another string
public String transform(String input);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String transform(String value){\n return value;\n }", "public String transformString( String inputString) {\n char c[]=inputString.toCharArray();\n String transformedString=\"\";\n \n for (int i =c.length-1; i>=0; i--) { \n transformedString +=c[i];\n }\n return transformedString;\n }", "public static String transform(final String aString) {\n String result = aString;\n result = WHITESPACE.matcher(aString).replaceAll(\"$1\");\n result = unescapeHtml4(result);\n result = transliterator.transliterate(result);\n// result = HYPHEN.matcher(result).replaceAll(\"-\");\n result = result.trim();\n return result;\n }", "public String makeConversion(String value);", "static String changeStr(StringFunc sf, String s){\n return sf.func(s);\n }", "public interface StringTransformer\r\n{\r\n String transform(String source, Matcher matcher);\r\n}", "private String prepare(String originStr)\r\n {\r\n String result=originStr.toLowerCase();\r\n result = result.replace('ä','a');\r\n result = result.replace('ö','o');\r\n result = result.replace('ü','u');\r\n// result = result.replace(':',' ');\r\n// result = result.replace(';',' ');\r\n// result = result.replace('<',' ');\r\n// result = result.replace('>',' ');\r\n// result = result.replace('=',' ');\r\n// result = result.replace('?',' ');\r\n// result = result.replace('[',' ');\r\n// result = result.replace(']',' ');\r\n// result = result.replace('/',' ');\r\n return result;\r\n }", "public String transform(String value) {\n return function.apply(value);\n }", "T translate(final String stringRepresentation);", "public static Value makeStr(String s) {\n Value r = new Value();\n r.str = s;\n return canonicalize(r);\n }", "public String transform(String input) throws Exception {\n StringWriter outWriter = new StringWriter();\n StringReader reader = new StringReader(input);\n Result result = new StreamResult(outWriter);\n myTransformer.transform(\n new javax.xml.transform.stream.StreamSource(reader), result);\n return outWriter.toString();\n }", "public String replace(String input);", "public static String normalizeString(String string) {\n return parse(string).toString();\n }", "public interface Transformer {\n /**\n * Transform a string into another string\n * @param input string to be transformed\n * @return transformed string\n */\n public String transform(String input);\n}", "static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}", "public String transform(String str) {\n char[] char_array = str.toCharArray();\n // 2. Caret is set to the first element of the character array.\n // This ensures the first element as visited in the array.\n char caret = char_array[0];\n // 3. Captures the occurrences of the character.\n // Since we defaulted current character to the first element, current counter is set to 1.\n int current_counter = 1;\n StringBuilder sb = new StringBuilder();\n\n // 4. Start from the second element in the character array\n for(int i = 1; i < char_array.length; i++) {\n // 4.1 IF: Increment the current counter if the current element matches with the caret\n // This means we are still seeing the occurrences of the caret.\n if(char_array[i] == caret) {\n current_counter += 1;\n }\n // 4.2 ELSE: If the current element does not match with the caret, push the number of occurrences and the caret to the string builder.\n else {\n sb.append(Integer.toString(current_counter));\n sb.append(caret);\n // 4.3 Initialize the caret to the current element and increment the current_counter.\n caret = char_array[i];\n current_counter = 1;\n }\n }\n\n // 5. Last element will be unvisited from 4.3.\n // Capturing the caret and current counter as it is.\n sb.append(Integer.toString(current_counter));\n sb.append(caret);\n\n // 6. Form a string.\n return sb.toString();\n }", "public String transform(String text){\n for(int i=0; i<transforms.length; i++)\n {\n if(transforms[i].contains(\"fromabbreviation\")){\n text = textTransformerAbbreviation.fromAbbreviation(text);\n }\n if(transforms[i].contains(\"toabbreviation\")){\n text = textTransformerAbbreviation.toAbbreviation(text);\n }\n if(transforms[i].contains(\"inverse\")){\n text = textTransformerInverse.inverse(text);\n }\n if(transforms[i].contains(\"upper\")){\n text = textTransformerLetterSize.upper(text);\n }\n if(transforms[i].contains(\"lower\")){\n text = textTransformerLetterSize.lower(text);\n }\n if(transforms[i].contains(\"capitalize\")) {\n text = textTransformerLetterSize.capitalize(text);\n }\n if(transforms[i].contains(\"latex\")){\n text = textTransformerLatex.toLatex(text);\n }\n if(transforms[i].contains(\"numbers\")){\n text = textTransformerNumbers.toText(text);\n }\n if(transforms[i].contains(\"repetitions\")){\n text = textTransformerRepetition.deleteRepetitions(text);\n }\n logger.debug(\"Text after \" + (i+1) + \" transform: \" + text);\n }\n\n logger.debug(\"Final form: \" + text);\n return text;\n }", "static public String normalize(String s){\n\t\treturn s;\n\t}", "private static String alterString(String string) {\n\t\t/*\n\t\t * creating the character array by converting string to charArry()\n\t\t */\n\t\t char name[]=string.toCharArray();\n\t\t /*\n\t\t * creating character array for storing elements\n\t\t */\n\t\t\t char arr[]=new char[name.length];\n\t\t\t \n\t\t\t /*\n\t\t\t * Creating character array for alphabets\n\t\t\t */\n\t\t\t char alphabets[]= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\t\t \n\t\t\t for(int i=0;i<name.length;i++) {\n\t\t\t\t /*\n\t\t\t\t * if vowels are present add it to storing array\n\t\t\t\t */\n\t\t\t\t if(name[i]=='a' || name[i]=='e' || name[i]=='i' || name[i]=='o' || name[i]=='u') {\n\t\t\t\t\t arr[i]=name[i];\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t for(int j=0;j<alphabets.length;j++) {\n\t\t\t\t\t\t /*\n\t\t\t\t\t\t * after looping through alphabet array if the element consonant is found replace it next element in alphabet array \n\t\t\t\t\t\t */\n\t\t\t\t\t\t if(name[i]==alphabets[j]) {\n\t\t\t\t\t\t\t arr[i]=alphabets[j+1];\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\t /*\n\t\t\t * converting character array to string;\n\t\t\t */\n\t\t\t String string1=new String(arr); \n\t\t\t /*\n\t\t\t * returning the string\n\t\t\t */\n\t\t\treturn string1;\n\t}", "public String mapString(String originalString) {\n\t\treturn originalString;\n\t}", "public static String makeTransformedStringFromString(String theString, URI transUri, \n HashMap<String, String> parameters,String encoding)\n throws Exception {\n if(encoding==null)\n encoding=default_encoding;\n try {\n Document doc=makeTransformedDomFromString(theString, false, transUri, parameters, encoding); \n String res=saveDomToString(doc, default_encoding, false, \"text\");\n return res;\n } catch (Exception ex) {\n throw new Exception(ex);\n }\n }", "T transform(String line);", "static String convert(String str)\n {\n char ch[] = str.toCharArray();\n for (int i = 0; i < str.length(); i++) {\n \n // If first character of a word is found\n if (i == 0 && ch[i] != ' ' || \n ch[i] != ' ' && ch[i - 1] == ' ') {\n \n // If it is in lower-case\n if (ch[i] >= 'a' && ch[i] <= 'z') {\n \n // Convert into Upper-case\n ch[i] = (char)(ch[i] - 'a' + 'A');\n }\n }\n \n // If apart from first character\n // Any one is in Upper-case\n else if (ch[i] >= 'A' && ch[i] <= 'Z') \n \n // Convert into Lower-Case\n ch[i] = (char)(ch[i] + 'a' - 'A'); \n }\n \n // Convert the char array to equivalent String\n String st = new String(ch);\n return st;\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "public String replaceString(String s, String one, String another) {\n if (s.equals(\"\")) return \"\";\n String res = \"\";\n int i = s.indexOf(one,0);\n int lastpos = 0;\n while (i != -1) {\n res += s.substring(lastpos,i) + another;\n lastpos = i + one.length();\n i = s.indexOf(one,lastpos);\n }\n res += s.substring(lastpos); // the rest\n return res;\n }", "private void Trans(String s) {\n }", "String mo3176a(String str, String str2);", "private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}", "private String getConvertedWord(String word) {\r\n\t\tString newWord = \"\";\r\n\t\tif(word == null || word.length() == 0)\r\n\t\t\tnewWord = \"\";\r\n\t\telse if(word.length() < 3)\r\n\t\t\tnewWord = word;\r\n\t\telse \r\n\t\t\tnewWord = \"\"+word.charAt(0) + (word.length() - 2) + word.charAt(word.length() - 1);\r\n\t\t\t\r\n\t\tif(DEBUG)\r\n\t\t\tSystem.out.printf(\"Converted %s to %s\\n\", word, newWord);\r\n\t\treturn newWord;\r\n\r\n\t}", "private CharSequence replacewithSan(String uni1, String myString2) {\n try {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n myString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "private static String modifyString(String input) {\n final StringBuilder stringBuilder = new StringBuilder(input);\n\n for (int index = 0; index < stringBuilder.length();) {\n if (stringBuilder.charAt(index) == ' ') {\n stringBuilder.replace(index, index + 1, \"%20\");\n index = index + 3;\n } else {\n index++;\n }\n }\n return stringBuilder.toString();\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "private static void encodeStringForAuditFieldReplaceString(StringBuilder sb, String oldString, String newString) {\n\n\t\tint index = sb.indexOf(oldString);\n\t\twhile (index >= 0) {\n\t\t\tsb.delete(index, index + oldString.length());\n\t\t\tsb.insert(index, newString);\n\t\t\tindex = sb.indexOf(oldString, index + newString.length());\n\t\t}\n\n\t}", "@Override\r\n\tpublic String desencriptar(String string) {\n\r\n\t\tString palabra = string;\r\n\t\tString[] parts = string.split(\",\");\r\n String newName=\"\";\r\n for (int i = 0; i < parts.length; i++) {\r\n // instrucción switch con tipo de datos int\r\n switch (parts[i]) \r\n {\r\n case \"1\" : newName+=\"a\";\r\n break;\r\n case \"2\" : newName+=\"b\";\r\n break;\r\n case \"3\" : newName+=\"c\";\r\n break;\r\n case \"4\" : newName+=\"d\";\r\n break;\r\n case \"5\" : newName+=\"e\";\r\n break;\r\n case \"6\" : newName+=\"f\";\r\n break;\r\n case \"7\" : newName+=\"g\";\r\n break;\r\n case \"8\" : newName+=\"h\";\r\n break;\r\n case \"9\" : newName+=\"i\";\r\n break;\r\n case \"10\" : newName+=\"j\";\r\n break;\r\n case \"11\" : newName+=\"k\";\r\n break;\r\n case \"12\" : newName+=\"l\";\r\n break;\r\n case \"13\" : newName+=\"m\";\r\n break;\r\n case \"14\" : newName+=\"n\";\r\n break;\r\n case \"15\" : newName+=\"ñ\";\r\n break;\r\n case \"16\" : newName+=\"o\";\r\n break;\r\n case \"17\" : newName+=\"p\";\r\n break;\r\n case \"18\" : newName+=\"q\";\r\n break;\r\n case \"19\" : newName+=\"r\";\r\n break;\r\n case \"20\" : newName+=\"s\";\r\n break;\r\n case \"21\" : newName+=\"t\";\r\n break;\r\n case \"22\" : newName+=\"u\";\r\n break;\r\n case \"23\" : newName+=\"v\";\r\n break;\r\n case \"24\" : newName+=\"w\";\r\n break;\r\n case \"25\" : newName+=\"x\";\r\n break;\r\n case \"26\" : newName+=\"y\";\r\n break;\r\n case \"27\" : newName+=\"z\";\r\n break;\r\n case \"0\" : newName+=\" \";\r\n break;\r\n case \"28\" : newName+=\" \";\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n return newName ;\r\n\t}", "public static String normalizeString(String str) {\n\t\tlog.trace(\"Entering normalizeString: str='\" + str + \"'\");\n\t\treturn str.replace(':', '-').replace(' ', '_');\n\t}", "public static String convert1(String input) {\n\t\tString sRes = \"\";\n\t\tString[] splitInput = input.split(\"\\n\");\n\n\t\tfor (String s : splitInput) {\n\t\t\tString[] splitStr = s.split(\" \");\n\t\t\tfor (int i = 0; i < splitStr.length; i++) {\n\t\t\t\tsplitStr[i] = firstUpperCase(splitStr[i].toLowerCase());\n\t\t\t\tsRes = sRes.concat(splitStr[i] + \" \");\n\t\t\t}\n\t\t\tsRes += \"\\n\";\n\t\t}\n\n\t\treturn sRes;\n\t}", "private CharSequence replacewithUni(String uni1, String myString2) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "T convert(String value);", "String mo2801a(String str);", "ILoLoString translate();", "public String normalize(String word);", "private String composeCharacterString(String string) {\n return null;\r\n }", "public static String reverseString(String a) {\n StringBuilder stringBuilder = new StringBuilder();\n char[] masiiv = a.toCharArray();\n char[] newchar = new char[a.length()];\n int j = 0;\n for (int i = masiiv.length - 1; i >= 0; i--) {\n stringBuilder.append(newchar[j] = masiiv[i]);\n j++;\n }\n String joinedString = stringBuilder.toString();\n return joinedString;\n }", "public static CharSequence translate(StringValue sv0, StringValue sv1, StringValue sv2) {\n\n // if any string contains surrogate pairs, expand everything to 32-bit characters\n if (sv0.containsSurrogatePairs() || sv1.containsSurrogatePairs() || sv2.containsSurrogatePairs()) {\n return translateUsingMap(sv0, buildMap(sv1, sv2));\n }\n\n // if the size of the strings is above some threshold, use a hash map to avoid O(n*m) performance\n if (sv0.getStringLength() * sv1.getStringLength() > 1000) {\n // Cut-off point for building the map based on some simple measurements\n return translateUsingMap(sv0, buildMap(sv1, sv2));\n }\n\n CharSequence cs0 = sv0.getStringValueCS();\n CharSequence cs1 = sv1.getStringValueCS();\n CharSequence cs2 = sv2.getStringValueCS();\n\n String st1 = cs1.toString();\n FastStringBuffer sb = new FastStringBuffer(cs0.length());\n int s2len = cs2.length();\n int s0len = cs0.length();\n for (int i = 0; i < s0len; i++) {\n char c = cs0.charAt(i);\n int j = st1.indexOf(c);\n if (j < s2len) {\n sb.cat(j < 0 ? c : cs2.charAt(j));\n }\n }\n return sb;\n }", "private String replace(String str, String from, String to) {\n int index = str.indexOf(from);\n\n if (index == -1) {\n return str;\n } else {\n int endIndex = index + from.length();\n\n return str.substring(0, index) + to + str.substring(endIndex);\n }\n }", "private static String zzty(String string2) {\n StringBuffer stringBuffer = new StringBuffer();\n int n = 0;\n while (n < string2.length()) {\n char c = string2.charAt(n);\n if (n == 0) {\n stringBuffer.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n stringBuffer.append('_').append(Character.toLowerCase(c));\n } else {\n stringBuffer.append(c);\n }\n ++n;\n }\n return stringBuffer.toString();\n }", "static String stringCutter2(String s) {\n int value = s.length() % 2 == 0 ? s.length() / 2 : s.length() / 2 + 1;\n // pemotongan string untuk kelompok ke dua\n String sentence2 = s.substring(value, s.length());\n\n // perulangan untuk membalik setiap karakter pada kelompok kata ke dua\n String sentence2reverse = \"\";\n for (int i = sentence2.length() - 1; i >= 0; i--) {\n sentence2reverse += sentence2.toUpperCase().charAt(i);\n }\n return sentence2reverse;\n }", "void mo1342w(String str, String str2);", "String unescStr(String pSource) throws Exception;", "public String substituteSrc(String workString, String oldStr, String newStr) {\n int oldStrLen = oldStr.length();\n int newStrLen = newStr.length();\n String tempString = \"\";\n \n int i = 0, j = 0;\n while (j > -1) {\n j = workString.indexOf(oldStr, i);\n if (j > -1) {\n tempString = workString.substring(0, j) + newStr + workString.substring(j+oldStrLen);\n workString = tempString;\n i = j + newStrLen;\n }\n }\n \n return workString;\n }", "private static String zzgr(String string2) {\n int n = string2.length();\n StringBuilder stringBuilder = new StringBuilder(n);\n int n2 = 0;\n while (n2 < n) {\n char c = string2.charAt(n2);\n if (c >= ' ' && c <= '~' && c != '\\\"' && c != '\\'') {\n stringBuilder.append(c);\n } else {\n stringBuilder.append(String.format(\"\\\\u%04x\", c));\n }\n ++n2;\n }\n return stringBuilder.toString();\n }", "String str(String strR) {\n\t\tString rev = \"\";\n\t\tfor (int i = strR.length(); i >0; i--) {\n\t\t\trev = rev + strR.substring(i - 1, i);\n\t\t}\n\t\treturn rev;\n\t}", "String convertStringForStorage(String value);", "public final static String transformUrl(String url) {\n \n int c = url.indexOf('?');\n if (c > -1) {\n url = url.substring(0, c);\n }\n \n // temporary work around to enable authorization on opendap URLs\n url = url.replace(\"dodsC\", \"fileServer\").replace(\".ascii\", \"\").replace(\".dods\", \"\").replace(\".das\", \"\").replace(\".ddds\", \"\");\n \n return url;\n }", "public static String reverseString2(String s) {\n\t\tint length = s.length();\n\t\tchar[] arr = s.toCharArray();\n\t\t\n\t\tfor(int i=0; i< length / 2; i++){\n\t\t\tchar temp = arr[i];\n\t\t\tarr[i] = arr[length-1-i];\n\t\t\tarr[length-1-i] = temp;\n\t\t}\n\t\t\n\t\n\t\treturn new String(arr);\n\t\t\t\n\t}", "void mo131986a(String str, String str2);", "public static String oneTwo(String str) {\n String a = \"\";\n String b = \"\";\n String c = \"\";\n StringBuilder result = new StringBuilder();\n\n for (int i = 0; i < str.length(); i++) {\n if (!a.equals(\"\") && !b.equals(\"\") && !c.equals(\"\")) {\n result.append(b).append(c).append(a);\n a = \"\";\n b = \"\";\n c = \"\";\n } else if (i == 0 || a.equals(\"\")) {\n a = String.valueOf(str.charAt(i));\n } else if (b.equals(\"\")) {\n b = String.valueOf(str.charAt(i));\n } else if (c.equals(\"\")) {\n c = String.valueOf(str.charAt(i));\n }\n }\n if (!a.equals(\"\") && !b.equals(\"\") && !c.equals(\"\")) {\n result.append(b).append(c).append(a);\n }\n return String.valueOf(result);\n }", "String reverseMyInput(String input);", "public static String decode (String original){\n\n // WRITE YOUR RECURSIVE CODE HERE\n int length = original.length();\n if (length == 0){\n\t\t\treturn \"\";\n\t\t}\n String decodeString = new String();\n\t\tchar a = original.charAt(0);\n\t\tif (Character.isDigit(a)){\n\t\t\tint index = a-'0';\n\t\t\tif (index == 0){\n\t\t\t\treturn decode(original.substring(2));\n\t\t\t}else{\n\t\t\t\tint preIndex = index-1; \n\t\t\t\treturn original.charAt(1)+decode(preIndex+original.substring(1));\t\n\t\t\t}\n\t\t}else{\n\t\t\treturn a + decode(original.substring(1));\n\t\t\t}\n\t\t}", "public abstract void fromString(String s, String context);", "void mo1886a(String str, String str2);", "void mo1329d(String str, String str2);", "public String makeOutWord(String out, String word) {\r\n String outFrontPart = out.substring(0, 2);\r\n String outRightPart = out.substring(2, 4);\r\n\r\n return outFrontPart + word + outRightPart;\r\n }", "private String getEncodedString(String original, String encoding_in, String encoding_out) {\r\n\t\tString encoded_string;\r\n\t\tif (encoding_in.compareTo(encoding_out) != 0) {\r\n\t\t\tbyte[] encoded_bytes;\r\n\t\t\ttry {\r\n\t\t\t\tencoded_bytes = original.getBytes(encoding_in);\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_in);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tencoded_string = new String(encoded_bytes, encoding_out);\r\n\t\t\t\treturn encoded_string;\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\t//e.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_out);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn original;\r\n\t}", "private String process(String str) {\r\n\t\t\tArrayList a = new ArrayList();\r\n\t\t\tArrayList b = new ArrayList();\r\n\t\t\tchar[] qq = str.toCharArray();\r\n\t\t\tfor (int i = 0; i < qq.length; i++) { \r\n\t\t\t\tif (((int)qq[i])==159 || ((int)qq[i])==143) a.add(i);\r\n\t\t\t if (((int)qq[i])==150) b.add(i);\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < a.size(); i++) {\r\n\t\t\t\tstr = str.replace(str.charAt(Integer.valueOf(a.get(i).toString())), '\\\"');\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < b.size(); i++) {\r\n\t\t\t\tstr = str.replace(str.charAt(Integer.valueOf(b.get(i).toString())), '-');\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}", "@Test\n public void givenStringShouldReturnTheTransposedString() {\n assertTrue(transpose.setString(\"This is the given text\"));\n String expectedOutput = \"sihT si eht nevig txet\";\n assertEquals(expectedOutput, transpose.getTransposedString());\n }", "private String transformPath(String pathStr, String pathPrefix) {\n String result = pathStr;\n if (DEBUG) {\n System.out.println(\" IN pathStr : \" + result);\n }\n Matcher m;\n for (int i = 0; i < LdmlConvertRules.PATH_TRANSFORMATIONS.length; i++) {\n m = LdmlConvertRules.PATH_TRANSFORMATIONS[i].pattern.matcher(pathStr);\n if (m.matches()) {\n result = m.replaceFirst(LdmlConvertRules.PATH_TRANSFORMATIONS[i].replacement);\n break;\n }\n }\n result = result.replaceFirst(\"/ldml/\", pathPrefix);\n result = result.replaceFirst(\"/supplementalData/\", pathPrefix);\n\n if (DEBUG) {\n System.out.println(\"OUT pathStr : \" + result);\n }\n return result;\n }", "void mo13161c(String str, String str2);", "public String convertString() {\n\t\tString urlToConvert = tfURL.getText();\n\t\tString is_youtube_link_s = \"youtu.be\";\n\t\tif (urlToConvert.contains(\"watch?v=\")) {\n\t\t\tnew_URL = urlToConvert.replace(\"watch?v=\", \"embed/\");\n\t\t} else if (urlToConvert.contains(is_youtube_link_s)) {\n\t\t\tnew_URL = urlToConvert.replace(\"youtu.be\", \"youtube.com/embed\");\n\t\t}\n\t\ttfNewURL.setText(new_URL);\n\t\tSystem.out.println(new_URL);\n\t\treturn new_URL;\n\t}", "public static final String reverseString2(final String inString){\n\t\tif (inString==null || inString.length()==0) return inString;\r\n\t\tchar[] cStringArray=inString.toCharArray();\r\n\t\tchar first;\r\n\t\tfor (int i=0;i<(cStringArray.length/2);i++){\r\n\t\t\tfirst = cStringArray[ i ];\r\n\t\t\tcStringArray[ i ] = cStringArray[ cStringArray.length - i - 1 ];\r\n\t\t\tcStringArray[ cStringArray.length - i - 1 ] = first;\r\n\t\t}\r\n\t\treturn String.valueOf(cStringArray);\r\n\t}", "public static String encode(String string){\n\t\treturn new String(encode(string.getBytes()));\n\t}", "String escStr(String pSource) throws Exception;", "private String convertStringToUuid(String input) {\n String[] uuid = new String[5];\n uuid[0] = input.substring(0, 8);\n uuid[1] = input.substring(8, 12);\n uuid[2] = input.substring(12, 16);\n uuid[3] = input.substring(16, 20);\n uuid[4] = input.substring(20, 32);\n return String.join(\"-\", uuid);\n }", "void mo1340v(String str, String str2);", "public static String canonicalDecomposeWithSingleQuotation(String paramString)\n/* */ {\n/* 2506 */ char[] arrayOfChar1 = paramString.toCharArray();\n/* 2507 */ int i = 0;\n/* 2508 */ int j = arrayOfChar1.length;\n/* 2509 */ Object localObject1 = new char[arrayOfChar1.length * 3];\n/* 2510 */ int k = 0;\n/* 2511 */ int m = localObject1.length;\n/* */ \n/* 2513 */ char[] arrayOfChar2 = new char[3];\n/* */ \n/* */ \n/* */ \n/* 2517 */ int i2 = 4;\n/* */ \n/* */ \n/* 2520 */ int i6 = (char)indexes[8];\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2527 */ int i1 = 0xFF00 | i2;\n/* 2528 */ int i3 = 0;\n/* 2529 */ int i8 = 0;\n/* 2530 */ long l = 0L;\n/* 2531 */ int i5 = 0;\n/* 2532 */ int i10 = 0;\n/* */ int i9;\n/* 2534 */ int i7 = i9 = -1;\n/* */ for (;;) {\n/* 2536 */ int n = i;\n/* */ \n/* 2538 */ while ((i != j) && (((i5 = arrayOfChar1[i]) < i6) || \n/* */ \n/* 2540 */ (((l = getNorm32(i5)) & i1) == 0L) || ((i5 >= 44032) && (i5 <= 55203))))\n/* */ {\n/* */ \n/* 2543 */ i8 = 0;\n/* 2544 */ i++;\n/* */ }\n/* */ \n/* */ int i4;\n/* 2548 */ if (i != n) {\n/* 2549 */ i4 = i - n;\n/* 2550 */ if (k + i4 <= m) {\n/* 2551 */ System.arraycopy(arrayOfChar1, n, localObject1, k, i4);\n/* */ }\n/* */ \n/* 2554 */ k += i4;\n/* 2555 */ i3 = k;\n/* */ }\n/* */ \n/* */ \n/* 2559 */ if (i == j) {\n/* */ break;\n/* */ }\n/* */ \n/* 2563 */ i++;\n/* */ char c2;\n/* 2565 */ if (isNorm32Regular(l)) {\n/* 2566 */ c2 = '\\000';\n/* 2567 */ i4 = 1;\n/* */ \n/* */ }\n/* 2570 */ else if ((i != j) && \n/* 2571 */ (Character.isLowSurrogate(c2 = arrayOfChar1[i]))) {\n/* 2572 */ i++;\n/* 2573 */ i4 = 2;\n/* 2574 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ } else {\n/* 2576 */ c2 = '\\000';\n/* 2577 */ i4 = 1;\n/* 2578 */ l = 0L;\n/* */ }\n/* */ \n/* */ char[] arrayOfChar3;\n/* */ char c1;\n/* 2583 */ if ((l & i2) == 0L)\n/* */ {\n/* 2585 */ i7 = i9 = (int)(0xFF & l >> 8);\n/* 2586 */ arrayOfChar3 = null;\n/* 2587 */ i10 = -1;\n/* */ } else {\n/* 2589 */ localObject2 = new DecomposeArgs(null);\n/* */ \n/* */ \n/* 2592 */ i10 = decompose(l, i2, (DecomposeArgs)localObject2);\n/* 2593 */ arrayOfChar3 = extraData;\n/* 2594 */ i4 = ((DecomposeArgs)localObject2).length;\n/* 2595 */ i7 = ((DecomposeArgs)localObject2).cc;\n/* 2596 */ i9 = ((DecomposeArgs)localObject2).trailCC;\n/* 2597 */ if (i4 == 1)\n/* */ {\n/* 2599 */ c1 = arrayOfChar3[i10];\n/* 2600 */ c2 = '\\000';\n/* 2601 */ arrayOfChar3 = null;\n/* 2602 */ i10 = -1;\n/* */ }\n/* */ }\n/* */ \n/* 2606 */ if (k + i4 * 3 >= m)\n/* */ {\n/* 2608 */ localObject2 = new char[m * 2];\n/* 2609 */ System.arraycopy(localObject1, 0, localObject2, 0, k);\n/* 2610 */ localObject1 = localObject2;\n/* 2611 */ m = localObject1.length;\n/* */ }\n/* */ \n/* */ \n/* 2615 */ Object localObject2 = k;\n/* 2616 */ if (arrayOfChar3 == null)\n/* */ {\n/* 2618 */ if (needSingleQuotation(c1))\n/* */ {\n/* */ \n/* 2621 */ localObject1[(k++)] = 39;\n/* 2622 */ localObject1[(k++)] = c1;\n/* 2623 */ localObject1[(k++)] = 39;\n/* 2624 */ i9 = 0;\n/* 2625 */ } else if ((i7 != 0) && (i7 < i8))\n/* */ {\n/* */ \n/* 2628 */ k += i4;\n/* 2629 */ i9 = insertOrdered((char[])localObject1, i3, localObject2, k, c1, c2, i7);\n/* */ }\n/* */ else\n/* */ {\n/* 2633 */ localObject1[(k++)] = c1;\n/* 2634 */ if (c2 != 0) {\n/* 2635 */ localObject1[(k++)] = c2;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* 2641 */ else if (needSingleQuotation(arrayOfChar3[i10])) {\n/* 2642 */ localObject1[(k++)] = 39;\n/* 2643 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2644 */ localObject1[(k++)] = 39;\n/* 2645 */ i4--;\n/* */ do {\n/* 2647 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2648 */ i4--; } while (i4 > 0);\n/* */ }\n/* 2650 */ else if ((i7 != 0) && (i7 < i8)) {\n/* 2651 */ k += i4;\n/* 2652 */ i9 = mergeOrdered((char[])localObject1, i3, localObject2, arrayOfChar3, i10, i10 + i4);\n/* */ }\n/* */ else\n/* */ {\n/* */ do {\n/* 2657 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2658 */ i4--; } while (i4 > 0);\n/* */ }\n/* */ \n/* */ \n/* 2662 */ i8 = i9;\n/* 2663 */ if (i8 == 0) {\n/* 2664 */ i3 = k;\n/* */ }\n/* */ }\n/* 2667 */ return new String((char[])localObject1, 0, k);\n/* */ }", "public String reFormatStringForURL(String string) {\n\t\t string = string.toLowerCase().replaceAll(\" \", \"-\").replaceAll(\"--\", \"-\");\n\t\t if(string.endsWith(\"-\")) { string = string.substring(0, (string.length() - 1)); }\n\t\t return string;\n\t\t }", "private CharSequence replacewithZawgyi(String zawgyi, String myString1) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(zawgyi);\n int max_loop = rule_array.length();\n \n myString1 = myString1.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString1 = myString1.replaceAll(from, to);\n myString1 = myString1.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString1 = myString1.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString1;\n \n\t}", "String processing();", "public String getProcessedString() {\r\n String processedString = originalString;\r\n\r\n for (IStringTransform transform : stringTransforms) {\r\n processedString = transform.applyTransform(processedString);\r\n }\r\n\r\n return processedString;\r\n }", "public String tweakFront(String str) {\n\n if(str.substring(0, 1).equalsIgnoreCase(\"a\")){\n\n if(!str.substring(1, 2).equalsIgnoreCase(\"b\")){\n str = str.substring(0, 1) + str.substring(2,str.length());\n }\n \n }else{\n str = str.substring(1);\n \n if(str.substring(0, 1).equalsIgnoreCase(\"b\")){\n \n }else{\n str = str.substring(1);\n }\n }\n \n \n \n return str;\n \n}", "public static String decodeToString(String string){\n\t\treturn new String(decode(string.getBytes()));\n\t}", "private static Document doTransformString(String theString, String systemId,\n URI transUri, HashMap<String, String> parameters)\n throws Exception {\n\n try {\n TransformerFactory transFac = TransformerFactory.newInstance();\n DocumentBuilder docBuilder = makeDocBuilder(true);\n\n Document xslDoc = docBuilder.parse(transUri.toString());\n //xslDoc.setXmlStandalone(true); \n DOMSource xslDomSource = new DOMSource(xslDoc,null);\n \n DOMResult xmlDomResult = new DOMResult();\n \n StreamSource inStream = new StreamSource(new StringReader(theString));\n inStream.setSystemId(systemId);\n Transformer trans = transFac.newTransformer(xslDomSource);\n\n if (parameters != null) {\n for (Iterator<String> it = parameters.keySet().iterator(); it.hasNext();) {\n String key = it.next();\n trans.setParameter(key, parameters.get(key));\n }\n }\n trans.transform(inStream, xmlDomResult);\n return (Document) xmlDomResult.getNode();\n \n } catch (FactoryConfigurationError f) {\n throw new Exception(f.getMessage());\n } catch (IOException ioe) {\n throw ioe;\n } catch (SAXException saxe) {\n throw new Exception(saxe.getMessage());\n } catch (IllegalArgumentException iae) {\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n throw new Exception(e.getMessage());\n }\n }", "public static void main(String[] args) {\n\t\tString s = \"twckwuyvbihajbmhmodminftgpdcbquupwflqfiunpuwtigfwjtgzzcfofjpydjnzqysvgmiyifrrlwpwpyvqadefmvfshsrxsltbxbziiqbvosufqpwsucyjyfbhauesgzvfdwnloojejdkzugsrksakzbrzxwudxpjaoyocpxhycrxwzrpllpwlsnkqlevjwejkfxmuwvsyopxpjmbuexfwksoywkhsqqevqtpoohpd\";\n\t\tString s2 = convert(s, 4);\n\t\tSystem.out.println(s2);\n\t}", "public static String hackerSpeak(String str) {\n\n String replace = str.replace(\"a\", \"4\").replace(\"e\", \"3\").replace(\"i\", \"1\").replace(\"o\", \"0\").replace(\"s\", \"5\");\n return replace;\n }", "String replaceInString(String s) {\n\t\tString newS = s.replaceAll(\"[a-zA-Z]+\", \"WORT\");\n\t\tif (newS == s) {\n\t\t\tSystem.out.println(\"gleich\");\n\t\t}\n\t\treturn newS;\n\t}", "public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }", "void mo1334i(String str, String str2);", "public static String Converterback(String z)\n\t{\n\n\t\t\n\t\tswitch(z)\n\t\t{\n\t\tcase \"10\":\n\t\t\treturn \"A\";\n\t\tcase \"11\":\n\t\t\treturn \"B\";\n\t\tcase \"12\":\n\t\t\treturn \"C\";\n\t\tcase \"13\":\n\t\t\treturn \"D\";\n\t\tcase \"14\":\n\t\t\treturn \"E\";\n\t\tcase \"15\":\n\t\t\treturn \"F\";\n\t\t}\n\t\treturn z;\n\t}", "private String compressString(String input) throws IOException {\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\tGZIPOutputStream gzip = new GZIPOutputStream(output);\n\n\t\tgzip.write(input.getBytes(\"UTF-8\"));\n\t\tgzip.close();\n\t\toutput.close();\n\n\t\treturn Base64.encodeBase64String(output.toByteArray());\n\t}", "protected String normalize(String s) \n{\n StringBuffer str = new StringBuffer();\n\n int len = (s != null) ? s.length() : 0;\n for (int i = 0; i < len; i++) \n {\n char ch = s.charAt(i);\n switch (ch) \n {\n case '<': \n {\n str.append(\"&lt;\");\n break;\n }\n case '>': \n {\n str.append(\"&gt;\");\n break;\n }\n case '&': \n {\n str.append(\"&amp;\");\n break;\n }\n case '\"': \n {\n str.append(\"&quot;\");\n break;\n }\n case '\\r':\n case '\\n': \n {\n if (canonical) \n {\n str.append(\"&#\");\n str.append(Integer.toString(ch));\n str.append(';');\n break;\n }\n // else, default append char\n }\n default: \n {\n str.append(ch);\n }\n }\n }\n\n return (str.toString());\n\n}", "public String stringSplosion(String str) {\n if (str.length() < 2) return str;\n return stringSplosion(str.substring(0, str.length() - 1)) + str;\n }", "private static String convert(String word) {\n\n char[] charArray = word.toCharArray();\n\n for (int letter = 0; letter < word.length(); letter++) {\n // Finding the first letter of a word.\n if (letter == 0 && charArray[letter] != ' ' || charArray[letter] != ' ' && charArray[letter - 1] == ' ') {\n // Checking if the first letter is lower case.\n if (charArray[letter] >= 'a' && charArray[letter] <= 'z') {\n // Converting first letter to upper case\n charArray[letter] = (char)(charArray[letter] - 'a' + 'A');\n }\n }\n // Checking if the letters other than the first letter are capital\n else if (charArray[letter] >= 'A' && charArray[letter] <= 'Z')\n // Converting uppercase other letters to lower case.\n charArray[letter] = (char)(charArray[letter] + 'a' - 'A');\n }\n // Returning a Title cased String.\n return new String(charArray);\n }", "String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}", "public void concat2Strings(String s1, String s2)\r\n {\r\n // s1.concat(s2);\r\n ///sau\r\n s1=s1+s2;\r\n System.out.println(\"Stringurile concatenate sunt \"+s1);\r\n }", "public static String convertString(String string) {\n return string.replaceAll(\"\\n\", \"<br>\");\n }", "private String normolize(String str) {\n String str1 = str.replaceAll(\"<div class=\\\"cl\\\"/></div>\", \"\");\n //str1 = new String(str1.getBytes(), \"\");\n return str1;\n }", "String transcribe(String dnaStrand) {\n\t\tStringBuilder rnaStrand = new StringBuilder();\n\t\t\n\t\tfor(int i=0; i<dnaStrand.length(); i++)\n\t\t{\n\t\t\t//using append function to add the characters in rnaStrand\n\t\t\trnaStrand.append(hm.get(dnaStrand.charAt(i)));\n\t\t}\n\t\t\n\t\t//return rnaStrand as String.\n\t\treturn rnaStrand.toString();\n\t}", "private String normalizeTmapText(String text) {\n return text.substring(1, text.length() - 1);\n }", "private String getNormalizedNumberString(String originalStr) {\n String numberStr = normalizationPreprocessing(originalStr);\n\n String normalized = null;\n try {\n normalized = normalizer.normalize(numberStr);\n if (commonNumberMappings.containsKey(normalized)) {\n normalized = commonNumberMappings.get(normalized);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return normalized;\n }", "static String PalindromDecomposition_Helper(String str, String result, int num) {\n\n if (str.isEmpty()) return result;\n\n if (str.length() == 1) {\n result += \"|\"+str;\n str = \"\";\n return result;\n }\n \n if (str.length() >= num && isPalindrome(str.substring(0, num))) {\n result += \"|\"+str.substring(0, num); \n\n str = str.substring(1, str.length());\n } else {\n result += \"|\"+str.charAt(0);\n str = str.substring(1, str.length());\n }\n\n \n\n return PalindromDecomposition_Helper(str, result, num);\n }" ]
[ "0.6701977", "0.66881806", "0.66549546", "0.65929234", "0.60779315", "0.60446715", "0.6040718", "0.60188764", "0.5932092", "0.59004676", "0.58767134", "0.58567643", "0.5850812", "0.5831119", "0.57893366", "0.5757185", "0.574029", "0.56738096", "0.56412065", "0.5621362", "0.55865574", "0.55691594", "0.55079544", "0.5503757", "0.5503169", "0.5493195", "0.5488914", "0.54711074", "0.5466314", "0.5443729", "0.54173297", "0.5399729", "0.538144", "0.53717583", "0.5358645", "0.5352112", "0.53519726", "0.53515995", "0.5348865", "0.5346112", "0.5331192", "0.532855", "0.53266966", "0.53136384", "0.53114486", "0.5298716", "0.52816767", "0.5276147", "0.5272575", "0.5268414", "0.5262393", "0.52443784", "0.5239084", "0.5225643", "0.52092147", "0.52049", "0.5187784", "0.5182002", "0.5164861", "0.51428694", "0.51396364", "0.5139054", "0.5136755", "0.5136035", "0.51324487", "0.51199526", "0.51180923", "0.5113489", "0.51009715", "0.5085694", "0.50702536", "0.5065752", "0.5060107", "0.5059116", "0.50515795", "0.50488174", "0.5038191", "0.5020768", "0.50164807", "0.50126624", "0.5012504", "0.5006332", "0.5005987", "0.500592", "0.5003609", "0.500253", "0.50021267", "0.50012815", "0.5000082", "0.4996681", "0.49963564", "0.4995556", "0.49840143", "0.49812555", "0.49780238", "0.49774498", "0.4976547", "0.4971985", "0.4971982", "0.49689195" ]
0.7835902
0
This interface defines methods to configure channel admin.
public interface IChannelAdminConfiguration { /** * Configures the number of IO threads. * * @param numberOfIoThreads * the number of IO threads to configure * @return this object * @throws IllegalArgumentException * if {@code numberOfIoThreads < 0} */ IChannelAdminConfiguration numberOfIoThreads(Integer numberOfIoThreads); /** * Returns the number of IO threads, or {@code null} which means the number * is calculated based on the number of CPU cores. * * @return the number of IO threads */ Integer numberOfIoThreads(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ChannelConfiguration {\n\n\t/**\n\t * Channel manager should use driver in listening mode\n\t */\n\tpublic static final long LISTEN_FOR_UPDATE = -1;\n\n\t/**\n\t * ChannelManager should use driver in comand mode, with no periodic reading or listening.\n\t */\n\tpublic static final long NO_READ_NO_LISTEN = 0;\n\n\t/**\n\t * Get the ChannelLocator associated with this ChannelConfiguration\n\t * \n\t * @return ChannelLocator\n\t */\n\tpublic ChannelLocator getChannelLocator();\n\n\t/**\n\t * Get the DeviceLocator associated with this ChannelConfiguration\n\t * \n\t * @return DeviceLocator\n\t */\n\tpublic DeviceLocator getDeviceLocator();\n\n\t/**\n\t * Direction of the Channel, <br>\n\t * INPUT = read the values from channel <br>\n\t * OUTPUT = write values at the channel\n\t */\n\tpublic enum Direction {\n\t\tDIRECTION_INPUT, /* from gateways point of view */\n\t\tDIRECTION_OUTPUT, DIRECTION_INOUT\n\t}\n\n\t/**\n\t * Get the sampling period (in milliseconds)\n\t * @return the sampling period in ms\n\t */\n\tpublic long getSamplingPeriod();\n\n\t/**\n\t * \n\t * @return the Direction of Channel\n\t */\n\tpublic Direction getDirection();\n}", "public PanelAdminConfig getAdminConfig(){\n return adminConfig;\n }", "public UTIL_SET_CHANNELS() {\n }", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of RedisManager that exposes Cache management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing Cache management API entry points that work across subscriptions\n */\n RedisManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of SqlVirtualMachineManager that exposes SqlVirtualMachine management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing SqlVirtualMachine management API entry points that work across subscriptions\n */\n SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public interface ChannelBuilder {\n\n /**\n * Configure this class with the given key-value pairs\n */\n void configure(Map<String, ?> configs) throws KafkaException;\n\n\n /**\n * returns a Channel with TransportLayer and Authenticator configured.\n * @param id channel id\n * @param key SelectionKey\n */\n KafkaChannel buildChannel(String id, SelectionKey key, int maxReceiveSize) throws KafkaException;\n\n\n /**\n * Closes ChannelBuilder\n */\n void close();\n\n}", "public interface Channels {\n \n public void createChannel();\n\n}", "public ChannelManager getChannelManager() {\n return channelMgr;\n }", "public interface ChannelManager {\n int createChannel(String channel, long ttlInSeconds);\n int publishToChannel(String channel, String msg);\n}", "public interface GroupChannel extends ChannelBase {\n\n /**\n * Gets all of the admins in the group.\n *\n * @return A {@link List} containing the admins of the group.\n */\n List<User> getAdmins();\n\n /**\n * Gets the topic of the channel.\n *\n * @return A string containing the topic of the channel.\n */\n String getTopic();\n\n /**\n * Sets the topic of the channel.\n *\n * @param topic The topic to set.\n */\n void setTopic(String topic);\n\n /**\n * Gets the join url of the channel.\n *\n * @return A string containing the join url of the channel, could be <code>null</code>\n */\n String getJoinUrl();\n\n /**\n * Gets the image url of the channel.\n *\n * @return A string containing the URL of the channel's image, code be <code>null</code>\n */\n String getImage();\n\n /**\n * Sets the image of the channel.\n *\n * @param image The direct URL of the image to set.\n */\n void setImage(String image);\n\n /**\n * Makes the {@link me.diax.jsa.core.Skype} leave the channel.\n */\n void leave();\n\n /**\n * Adds multiple contacts to the channel.\n *\n * @param contact The first {@link Contact} to add.\n * @param contacts The rest of the {@link Contact}s to add.\n */\n void addContacts(Contact contact, Contact... contacts);\n\n /**\n * Adds a single contact to the channel.\n *\n * @param contact The {@link Contact} to add to the channel.\n */\n void addContact(Contact contact);\n}", "public interface AdminController {\n\n Admin login(Admin admin) throws SQLException;\n\n List<Admin> listAdmin(String adminName, String adminRole) throws SQLException;\n\n int addAdmin(Admin admin) throws SQLException;\n\n boolean delete(Long id) throws SQLException;\n\n boolean updateAdmin(Admin admin) throws SQLException;\n}", "void setChannel(EzyChannel channel);", "@Bean\n AmqpAdmin amqpAdmin() {\n return new RabbitAdmin(connectionFactory());\n }", "public ChannelSettingsWindow(MainWindow m) {\n initComponents(); \n \n mainWin = m;\n channelList = m.getChannelList();\n \n //update the channel selection JComboBox with correct channel options\n updateChannelSelection();\n }", "public interface AdminToolConfig \n{\n\tpublic static final String WEBJARS_CDN_PREFIX = \"https://cdn.jsdelivr.net/webjars/\";\n\t\n\tpublic static final String WEBJARS_CDN_PREFIX_BOWER = WEBJARS_CDN_PREFIX + \"org.webjars.bower/\";\n\t\n\tpublic static final String WEBJARS_LOCAL_PREFIX = \"/webjars/\";\n\t\n\t/**\n\t * should print the configuration to log\n\t */\n\tpublic void printConfig();\n\t\n\t/**\n\t * should return if component is active or deactivated\n\t * @return\n\t */\n\tpublic boolean isEnabled();\n}", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of SqlServer that exposes Compute resource management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription\n * @return the SqlServer\n */\n SqlServerManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public static Configurable configure() {\n return new RedisManager.ConfigurableImpl();\n }", "public admin() {\n\t\tsuper();\n\t}", "public interface ClientConfig\n{\n /**\n * Allow IRC version 3 capabilities.\n *\n * @return returns <tt>true</tt> if IRC version 3 capabilities are allowed,\n * or <tt>false</tt> if we explicitly disallow anything related to\n * IRCv3. (Disabling may regress the connection to \"classic\" IRC\n * (RFC1459).)\n */\n boolean isVersion3Allowed();\n\n /**\n * Enable contact presence periodic task for keeping track of contact\n * presence (offline or online).\n *\n * @return returns <tt>true</tt> to use contact presence task or\n * <tt>false</tt> otherwise.\n */\n boolean isContactPresenceTaskEnabled();\n\n /**\n * Enable channel presence periodic task for keeping track of channel\n * members presence (available or away).\n *\n * @return returns <tt>true</tt> to use channel presence task or\n * <tt>false</tt> otherwise.\n */\n boolean isChannelPresenceTaskEnabled();\n\n /**\n * Use a SOCKS proxy to connect to the configured IRC server.\n *\n * The proxy may be <tt>null</tt> which means that no proxy will be used\n * when connecting to the IRC server.\n *\n * @return returns Proxy configuration or <tt>null</tt> if no proxy should\n * be used.\n */\n Proxy getProxy();\n\n /**\n * Resolve addresses through the proxy, instead of using a (local) DNS\n * resolver.\n *\n * @return returns <tt>true</tt> if addresses should be resolved through\n * proxy, or <tt>false</tt> if it should NOT be resolved through\n * proxy\n */\n boolean isResolveByProxy();\n\n /**\n * Get the configured SASL authentication data.\n *\n * @return Returns the SASL authentication data if set, or null if no\n * authentication data is set. If no authentication data is set,\n * this would mean SASL authentication need not be used.\n */\n SASL getSASL();\n\n /**\n * SASL authentication data.\n *\n * @author Danny van Heumen\n */\n static interface SASL\n {\n /**\n * Get user name.\n *\n * @return Returns the user name.\n */\n String getUser();\n\n /**\n * Get password.\n *\n * @return Returns the password.\n */\n String getPass();\n\n /**\n * Get authorization role.\n *\n * @return Returns the authorization role if set. (Optional)\n */\n String getRole();\n }\n}", "public MainFrameAdmin() {\n\t\tsuper(\"Stock Xtreme: Administrador\");\n\t}", "public ConfigurationAdmin getConfigurationAdmin() {\n\t\tif (configurationAdmin == null) {\n\t\t\t// Get all Services implement ConfigurationAdmin interface\n\t\t\ttry {\n\t\t\t\tServiceReference<?>[] references = context\n\t\t\t\t\t\t.getAllServiceReferences(\n\t\t\t\t\t\t\t\tConfigurationAdmin.class.getName(), null);\n\n\t\t\t\tfor (ServiceReference<?> ref : references) {\n\t\t\t\t\tconfigurationAdmin = (ConfigurationAdmin) context.getService(ref);\n\t\t\t\t\treturn configurationAdmin;\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\n\t\t\t} catch (InvalidSyntaxException e) {\n\t\t\t\tLOGGER.warning(\"Cannot load ConfigurationAdmin on ObrRepositoryOperationsImpl.\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else {\n\t\t\treturn configurationAdmin;\n\t\t}\n\t}", "public void SetChannel(int channel);", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of RecoveryServicesManager that exposes RecoveryServices management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing RecoveryServices management API entry points that work across subscriptions\n */\n RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of RecoveryServicesManager that exposes RecoveryServices management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing RecoveryServices management API entry points that work across subscriptions\n */\n RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "public interface ConsumerAdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CosEventChannelAdmin.ProxyPushSupplier obtain_push_supplier();\n\torg.omg.CosEventChannelAdmin.ProxyPullSupplier obtain_pull_supplier();\n}", "public int getChannelConfig() {\n return 0;\n }", "public interface ReplicationChannel {\n\n void handleReplicationEvents(ReplicationEventQueueWorkItem event);\n\n void destroy();\n\n void reload(CentralConfigDescriptor newDescriptor, CentralConfigDescriptor oldDescriptor);\n\n ChannelType getChannelType();\n\n String getOwner();\n}", "public abstract ManagedChannelBuilder<?> delegate();", "public interface Configurable {\n void setConf(Configuration conf);\n Configuration getConf();\n}", "public Admin createAdmin(){\n\t\ttry {\n\t\t\treturn conn.getAdmin();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "AdminConsole createAdminConsole();", "public void clickChannelsAdminLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Channels Admin\",GlobalVariables.configuration.getAttrSearchList(), \"Channels Admin\");\r\n\t\tUIActions.click(fileName,\"Channels Admin\",GlobalVariables.configuration.getAttrSearchList(), \"Channels Admin\");\r\n\t\t\r\n\t\t// Assertion : Check Title of Page\r\n \tString title=dataController.getPageDataElements(fileName, \"Admin Page Title\", \"Title\");\r\n \tUIActions.waitForTitle(title,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}", "public void addAdmin(Admin admin);", "EzyChannel getChannel();", "public URI getAdminURL() {\n return adminURL;\n }", "Channel channel() {\n return channel;\n }", "@Override\r\n\tpublic void configEngine(Engine me) {\n\r\n\t}", "public EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelConfig config, ChannelHandler... handlers) {\n/* 182 */ super(null, channelId);\n/* 183 */ this.metadata = metadata(hasDisconnect);\n/* 184 */ this.config = (ChannelConfig)ObjectUtil.checkNotNull(config, \"config\");\n/* 185 */ setup(true, handlers);\n/* */ }", "@PreAuthorize(\"hasRole('superman')\")\n\tpublic abstract boolean updateChannel(Channel channel);", "public void configureClientOutboundChannel(ChannelRegistration registration) {\n\t\t\r\n\t}", "public void setAdminURL(URI adminURL) {\n this.adminURL = adminURL;\n }", "public interface ChannelListType\n {\n /**\n * not show\n */\n String SYSTEM_CHANNEL = \"1\";\n\n /**\n * show\n */\n String CUSTOMIZE_CHANNEL = \"2\";\n }", "public abstract Composite getConfigurationGUI(Composite parent,\n\t\t\tZoomingInterfaceManager<Graph, GraphItem> gm, ExpandItem ei);", "void connect(String channelConfig) throws IOException;", "public void setChannel(Channel channel)\n {\n this.channel = channel;\n }", "@PreAuthorize(\"hasRole('superman')\")\n\tpublic abstract Channel getChannel(String name);", "public EmbeddedChannel(ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers) {\n/* 164 */ super(null, channelId);\n/* 165 */ this.metadata = metadata(hasDisconnect);\n/* 166 */ this.config = (ChannelConfig)new DefaultChannelConfig((Channel)this);\n/* 167 */ setup(register, handlers);\n/* */ }", "public void setAdmin(boolean admin) {\n this.admin = admin;\n }", "public MesanaConfigurator()\n\t{ \n\t\tsetGui();\n\t\tif (ConnectionManager.getInstance().connectionState)\n\t\t{\n\t\t\t// initialize customer data and SensorData to GUI if sensor connected\n\t\t\ttry\n\t\t\t{\n\t\t\t\t//setData();\n\t\t\t\tstatusBar.setText(\"Sensor \" + ConnectionManager.getInstance().currentSensor(0).getSensorPath()\n\t\t\t\t\t\t+ \" has been connected successfully!\");\n\t\t\t\tfor(SensorData element :sCollect.getList())\n\t\t\t\t{\t\n\t\t\t\t\tif(element.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!element.getState().equals(Constants.SENSOR_STATE_STOCK))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tconfigButton.setEnabled(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SensorNotFoundException e)\n\t\t\t{\n\t\t\t\tstatusBar.setText(e.getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\tsetGuiListeners();\n\t\tshell.pack();\n\n\t\twhile (!shell.isDisposed())\n\t\t{\n\t\t\tif (!display.readAndDispatch())\n\t\t\t\tdisplay.sleep();\n\t\t}\n\t\tdisplay.dispose();\n\n\t}", "void addChannel(IChannel channel);", "public void setAdmin( boolean admin )\n {\n this.admin = admin;\n }", "public Channel getChannel() {\n return channel;\n }", "@Bean\n public AmqpAdmin amqpAdmin(CachingConnectionFactory connectionFactory) {\n return new RabbitAdmin(connectionFactory);\n }", "public interface ChannelsService {\n\n /**\n * Gets the Facebook data-ref to create send to messenger button.\n *\n * @param callback Callback with the result.\n */\n void createFbOptInState(@Nullable Callback<ComapiResult<String>> callback);\n }", "protected Channel getChannel()\n {\n return mChannel;\n }", "protected void configureClient(ChannelHandlerContext ctx) {\n\t\tSystem.out.println(\"Checking auth\");\n\t\t\n\t\tWebSession sess = ctx.channel().attr(WebSession.webSessionKey).get();\n\t\t\n\t\tif (sess == null) {\n\t\t\tSystem.out.println(\"Closing websocket connection, no session found\");\n\t\t\tctx.writeAndFlush(new CloseWebSocketFrame(400, \"NO SESSION FOUND\")).addListener(ChannelFutureListener.CLOSE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Got session id: \"+sess.getSessionId());\n\t\t\n\t\tAppRunner ar = ctx.channel().attr(AppPlugHandler.appPlugKey).get();\n\t\tar.addCtx(ctx);\n\t\t\n\t\tci = new ClientInvocation(ctx, ar)\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void invoke(String val)\n\t\t\t{\n\t\t\t\tthis.sendToAll(val);\n\t\t\t}\n\t\t};\n\t}", "public void setAdmin(int admin) {\n this.admin = admin;\n }", "public EmbeddedChannel(ChannelId channelId) {\n/* 91 */ this(channelId, EMPTY_HANDLERS);\n/* */ }", "@Override\r\n\tpublic void configPlugin(Plugins me) {\n\r\n\t}", "public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}", "void configure (CallbackUtilities cus) throws RootException;", "public Channel getChannel()\n {\n return channel;\n }", "public interface GlobalServerConfiguration {\n\n /**\n * Gets the location for the AdapterConfig for the specified namespace\n */\n public String getAdapterConfigLocation(String namespace);\n\n /**\n * Gets the location of the FeedConfig for the specified namespace\n */\n public String getFeedConfigLocation(String namespace);\n\n /**\n * Gets the Feed Configuration suffix\n */\n public String getFeedConfigSuffix();\n\n /**\n * Gets the namespace\n */\n public String getFeedNamespace(String namespace);\n\n /**\n * Gets the namespace prefix\n */\n public String getFeedNamespacePrefix(String namespace);\n\n /**\n * Gets the Server port\n */\n public int getPort();\n\n /**\n * Gets the URI for the feedserver with the specified namespace\n */\n public String getServerUri(String namespace);\n\n /**\n * Gets URI prefix for Feeds\n */\n public String getFeedPathPrefix();\n\n /**\n * Gets the {@link FeedConfiguration} for the specified feed in the namespace\n * \n * @param namespace The namespace the feed is in\n * @param feedId The feed to get the {@link FeedConfiguration} for\n * @param userId User email of per user feed requested; null if not per user feed\n */\n public FeedConfiguration getFeedConfiguration(String namespace, String feedId, String userId)\n throws FeedConfigStoreException;\n\n /**\n * Get the fully qualified class name for adapter wrapper manager.\n * \n * @return fully qualified class name for adapter wrapper manager.\n */\n public String getWrapperManagerClassName();\n\n /**\n * Gets the {@link FeedConfigStore} for the Server Configuration\n */\n public FeedConfigStore getFeedConfigStore();\n\n /**\n * Get the fully qualified class name of the provider that will be used for\n * this server.\n * \n * @return fully qualified class name of the Provider.\n */\n public String getProviderClassName();\n\n @SuppressWarnings(\"unchecked\")\n public AdapterBackendPool getAdapterBackendPool(String poolId);\n\n @SuppressWarnings(\"unchecked\")\n public void setAdapterBackendPool(String poolId, AdapterBackendPool pool);\n\n public AclValidator getAclValidator();\n\n public void setAclValidator(AclValidator aclValidator);\n\n}", "public AntConfiguration(){\n this.channelID1 = new ChannelID(); //initially set all parameters of Channel ID to 0\n this.channelID2 = new ChannelID(); //initially set all parameters of Channel ID to 0\n\n this.channelAssigned1 = new Channel(); //initially do not assign any cha\n this.channelAssigned2 = new Channel(); //initially do not assign any channel\n\n this.channelPeriod = 4; //set to 4Hz by default\n this.level = PowerLevel.NEGTWENTY; //set to -20dB as default\n this.state1 = ChannelState.UNASSIGNED;\n this.state2 = ChannelState.UNASSIGNED;\n\n }", "abstract Configurable<?> getConfigurable();", "public void setAdminUsername(String adminUsername) {\n\tthis.adminUsername = adminUsername;\n}", "public static Configurable configure() {\n return new SqlServerManager.ConfigurableImpl();\n }", "private boolean testConfig(Window parent, Channel ch) {\n if (mConfig.getExternalChannel(ch) == null) {\n int ret = JOptionPane.showConfirmDialog(parent, mLocalizer.msg(\"channelAssign\", \"Please assign Channel first\"), mLocalizer.msg(\"channelAssignTitle\", \"Assign Channel\"), JOptionPane.YES_NO_OPTION);\n\n if (ret == JOptionPane.YES_OPTION) {\n SimpleConfigDialog dialog = new SimpleConfigDialog(parent, this,\n mConnection, mConfig);\n UiUtilities.centerAndShow(dialog);\n\n if (dialog.wasOkPressed()) {\n mConfig = dialog.getConfig();\n mName = dialog.getName();\n }\n }\n return false;\n }\n\n return true;\n }", "public EmbeddedChannel(ChannelId channelId, ChannelHandler... handlers) {\n/* 135 */ this(channelId, false, handlers);\n/* */ }", "public interface Configurable {\n\n void configure(Properties properties);\n}", "public Channel() {\n this(DSL.name(\"channel\"), null);\n }", "public interface ChannelGeneratorExtension {\n\n /**\n * Generates a {@link PhysicalChannel} for the channel.\n *\n * @param channel the logical channel to generate\n * @param contributionUri the contribution this channel is being provisioned under. This may be different than the contribution where the channel is\n * defined, e .g. if the channel is provisioned for a producer or consumer in another deployable\n * @return the physical channel definition\n * @throws Fabric3Exception if there is an error generating the channel\n */\n PhysicalChannel generate(LogicalChannel channel, URI contributionUri) throws Fabric3Exception;\n}", "void setEventAdmin(EventAdmin eventAdminService) {\n\t\tthis.eventAdmin = eventAdminService;\n\t}", "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }", "public ChannelConfig method_4104() {\n return null;\n }", "public interface AdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.jacorb.imr.HostInfo[] list_hosts();\n\torg.jacorb.imr.ServerInfo[] list_servers();\n\torg.jacorb.imr.ServerInfo get_server_info(java.lang.String name) throws org.jacorb.imr.UnknownServerName;\n\tvoid shutdown(boolean _wait);\n\tvoid save_server_table() throws org.jacorb.imr.AdminPackage.FileOpFailed;\n\tvoid register_server(java.lang.String name, java.lang.String command, java.lang.String host) throws org.jacorb.imr.AdminPackage.IllegalServerName,org.jacorb.imr.AdminPackage.DuplicateServerName;\n\tvoid unregister_server(java.lang.String name) throws org.jacorb.imr.UnknownServerName;\n\tvoid edit_server(java.lang.String name, java.lang.String command, java.lang.String host) throws org.jacorb.imr.UnknownServerName;\n\tvoid hold_server(java.lang.String name) throws org.jacorb.imr.UnknownServerName;\n\tvoid release_server(java.lang.String name) throws org.jacorb.imr.UnknownServerName;\n\tvoid start_server(java.lang.String name) throws org.jacorb.imr.ServerStartupFailed,org.jacorb.imr.UnknownServerName;\n\tvoid unregister_host(java.lang.String name) throws org.jacorb.imr.AdminPackage.UnknownHostName;\n}", "interface DmaController\n{\n\t/**\n\t * Return the number of channel installed.\n\t */\n\tpublic int getChannelCount();\n\n\t/**\n\t * Return a specific DMA channel\n\t */\n\tpublic DmaChannel getChannelAt(int i);\n}", "public void setPanelAdminConfig(PanelAdminConfig panel) {\n \tadminConfig = panel;\n }", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "public void setAdmin(boolean value) {\r\n this.admin = value;\r\n }", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "public Admin() {\n initComponents();\n }", "public Admin() {\n initComponents();\n }", "public Admin() {\n initComponents();\n }", "@Bean\n public RabbitAdmin admin(ConnectionFactory connectionFactory) {\n \t\n \tlogger.info(\"Kicking off Declarations\");\n \t\n \tRabbitAdmin rabbitAdmin = new RabbitAdmin(connectionFactory);\n \t\n \t/* \n \t * *********************IMPORTANT********************************\n \t * \n \t * None of the other declarations take effect unless at least one \n \t * declaration is executed by RabbitAdmin.\n \t * \n \t * *********************IMPORTANT******************************** \n \t */\n \trabbitAdmin.declareExchange(topicExchange());\n \t\n return new RabbitAdmin(connectionFactory);\n }", "public ChannelDetails() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public interface AdminService {\n\n}", "public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}", "interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next update stage\n */\n Update withChainerSettings(ChainerSettings chainerSettings);\n }", "public PanelCenterAdmin getPanelCenterAdmin() {\n\t\tif(panelCenterAdmin==null){\n\t\t\tpanelCenterAdmin = new PanelCenterAdmin();\n\t\t}\n\t\treturn panelCenterAdmin;\n\t}", "public void configure(Entity entity, boolean canChangePermission);", "public EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelHandler... handlers) {\n/* 148 */ this(channelId, true, hasDisconnect, handlers);\n/* */ }", "public String getChannel() {\r\n return channel;\r\n }", "@Override\n public int getChannel()\n {\n return channel;\n }", "@Override\n\tpublic void creatConfigUI(Composite parent, Map<String, String> params) {\n\n\t}", "public interface Channel {\n\n\t/**\n\t * Call this to send an article to its destination.\n\t * @param article the article to send\n\t */\t\n\tvoid accept(Article article);\n}", "public interface NodeAdmin {\n\n /** Start/stop NodeAgents and schedule next NodeAgent ticks with the given NodeAgentContexts */\n void refreshContainersToRun(Set<NodeAgentContext> nodeAgentContexts);\n\n /** Update node admin metrics */\n void updateMetrics(boolean isSuspended);\n\n /**\n * Attempts to freeze/unfreeze all NodeAgents and itself. To freeze a NodeAgent means that\n * they will not pick up any changes from NodeRepository.\n *\n * @param frozen whether NodeAgents and NodeAdmin should be frozen\n * @return True if all the NodeAgents and NodeAdmin has converged to the desired state\n */\n boolean setFrozen(boolean frozen);\n\n /**\n * Returns whether NodeAdmin itself is currently frozen, meaning it will not pick up any changes\n * from NodeRepository.\n */\n boolean isFrozen();\n\n /**\n * Returns an upper bound on the time some or all parts of the node admin (including agents)\n * have been frozen. Returns 0 if not frozen, nor trying to freeze.\n */\n Duration subsystemFreezeDuration();\n\n /**\n * Stop all services on these nodes\n */\n void stopNodeAgentServices();\n\n /**\n * Start node-admin schedulers.\n */\n void start();\n\n /**\n * Stop the NodeAgents. Will not delete the storage or stop the container.\n */\n void stop();\n}", "public interface ChannelServiceI {\r\n Channel createChannel(Channel channel);\r\n\r\n int updateChannelUser(int id);\r\n\r\n int minusChannelUser(int id);\r\n\r\n List<Channel> getChannelPage(Channel channel);\r\n\r\n int count();\r\n\r\n Channel getChannel(String channelToken);\r\n\r\n List<Channel> getUserChannel(Channel channel);\r\n\r\n int deleteUser(Integer id);\r\n\r\n List<Channel> getUserChannelTotal(Channel channel);\r\n\r\n int updateChannel(Channel channel);\r\n}", "public String getChannelId()\n {\n return channelId;\n }", "public Builder setAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n admin_ = value;\n onChanged();\n return this;\n }" ]
[ "0.61874384", "0.59884566", "0.5970888", "0.59446275", "0.58890307", "0.58248097", "0.5814177", "0.5802416", "0.5735214", "0.5709052", "0.56087047", "0.5606326", "0.557594", "0.5559297", "0.5548318", "0.55048054", "0.5485637", "0.5458645", "0.545459", "0.5428412", "0.5423746", "0.54213566", "0.5417232", "0.5417232", "0.5416109", "0.539376", "0.53933084", "0.53850514", "0.5373953", "0.53650767", "0.5355373", "0.5349881", "0.53480166", "0.53450775", "0.5325951", "0.53180563", "0.5314509", "0.5314087", "0.5313115", "0.5312985", "0.5301292", "0.52943563", "0.5263755", "0.5259073", "0.52370006", "0.5225357", "0.5221922", "0.521585", "0.52096194", "0.5201553", "0.5198081", "0.5190446", "0.51721555", "0.5169801", "0.5150137", "0.5148041", "0.5145559", "0.5136558", "0.51296514", "0.51288515", "0.51257974", "0.5125211", "0.51250875", "0.51095647", "0.50957894", "0.50841", "0.5084014", "0.507032", "0.506974", "0.5065772", "0.50654435", "0.5063955", "0.5061768", "0.5058417", "0.50546", "0.5051596", "0.505055", "0.5047159", "0.504666", "0.5042128", "0.5042113", "0.50420636", "0.50420636", "0.50420636", "0.50356925", "0.503496", "0.5034574", "0.5030951", "0.5023669", "0.50201386", "0.5019981", "0.50198513", "0.50174016", "0.50163", "0.50121087", "0.5009024", "0.5008744", "0.50030404", "0.49981755", "0.4995015" ]
0.741072
0
Creates a new binding label provider with default text and image flags
public BindingLabelProvider() { this(DEFAULT_TEXTFLAGS, DEFAULT_IMAGEFLAGS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLabelProvider(ILabelProvider labelProvider) throws Exception;", "public TreeLabelProvider() {\n \t\timageMap = new HashMap();\n \t}", "@Override\n\tpublic IBaseLabelProvider getLabelProvider() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}", "public LabelFactory() {\n this(0);\n }", "@Override\n public void addListener(ILabelProviderListener listener) {\n\n }", "@Override\n public void addListener(ILabelProviderListener listener) {\n \n }", "private Widget getLabel(String text, final List defList) {\n Image newField = getNewFieldButton(defList);\n\n HorizontalPanel h = new HorizontalPanel();\n h.add(new SmallLabel(text)); h.add(newField);\n return h;\n\t}", "private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }", "private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }", "DataBinding createDataBinding();", "DataBinding createDataBinding();", "com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();", "ComponentBuilder named(String label);", "@Override\n\tpublic void addListener(ILabelProviderListener arg0) {\n\t\t\n\t}", "public Label newLabel(String labelStr, int options) {\r\n return newLabel(labelStr);\r\n }", "public BLabel(String text, Icon image, Position align, Position textPos)\n {\n component = createComponent(text, image);\n setAlignment(align);\n setTextPosition(textPos);\n }", "private Label initGridLabel(GridPane container, DraftKit_PropertyType labelProperty, String styleClass, int col, int row, int colSpan, int rowSpan) {\n Label label = initLabel(labelProperty, styleClass);\n container.add(label, col, row, colSpan, rowSpan);\n return label;\n }", "public TextWithLabel(Context context, AttributeSet attrs)\r\n {\r\n \r\n // Call the super class constructor to create a basic Textbox: \r\n super(context, attrs);\r\n \r\n // Generate new TextView for the label: \r\n labelView = new TextView(context, attrs);\r\n \r\n // Get custom attributes from XML file:\r\n getCustomAttributes(attrs);\r\n\r\n \r\n /**** Set some attributes: **********************\r\n * Could add more attributes?\r\n ************************************************/\r\n labelView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PT, labelSize);\r\n labelView.setGravity( android.view.Gravity.RIGHT );\r\n \r\n /**** Set text colour... ************************/\r\n //Resources res = getResources();\r\n //int color = res.getColor(R.color.normal_text);\r\n //labelView.setTextColor(color);\r\n //itemView.setTextColor(color);\r\n \r\n // Add the new text boxes to this layout: \r\n addView(labelView);\r\n \r\n }", "private IBaseLabelProvider getRunningChainViewDefaultLP() {\n\t\tChainContentProvider cp = PlatformRepoService.getInstance().getContentProvider();\n\t\treturn new GraphLabelProvider(cp);\n\t}", "private Label initVBoxLabel(VBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "@Inject\n public ImageBindingAdapter() {\n }", "@Override\n\tpublic void addListener(ILabelProviderListener ilabelproviderlistener) {\n\t\t\n\t}", "private JLabel _createNewLabel(String sCaption_) \n{\n Util.panicIf( sCaption_ == null );\n\n JLabel lblNew = new JLabel(sCaption_);\n lblNew.setFont( _pFont );\n \n return lblNew;\n }", "@Override\r\n\tpublic void addListener(ILabelProviderListener listener) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void addListener(ILabelProviderListener listener) {\n\r\n\t}", "@Override\r\n\tpublic void addListener(ILabelProviderListener listener) {\n\r\n\t}", "public ColumnLabelProvider create() throws CoreException {\n\t\treturn (ColumnLabelProvider) getConfiguration().createExecutableExtension(\"class\");\n\t}", "@Override\n\tpublic void addListener(ILabelProviderListener listener) {\n\n\t}", "@Override\n\tpublic void addListener(ILabelProviderListener listener) {\n\n\t}", "@Override\n\tpublic void addListener(ILabelProviderListener listener) {\n\n\t}", "public BLabel(Icon image, Position align)\n {\n component = createComponent(null, image);\n setAlignment(align);\n }", "public final DecoratorBuilder withLabel(String labelText) {\n\t\treturn withLabel(Model.of(labelText));\n\t}", "public BLabel()\n {\n this((String) null, WEST);\n }", "public void bindTo(Flag flag) {\n this.name.setText(flag.getInfoPanel().getName());\n\n String description = flag.getInfoPanel().getDescription();\n if(description.length() > 50) {\n this.description.setText(flag.getInfoPanel().getName().substring(0, 47) + \"...\");\n }\n else {\n this.description.setText(flag.getInfoPanel().getName());\n }\n\n this.image.setImageURI(Uri.parse(String.valueOf(flag.getInfoPanel().getImage())));\n }", "private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}", "private void _initLabels() \n {\n _lblName = _createNewLabel( \"Mother Teres@ Practice Management System\");\n _lblVersion = _createNewLabel(\"Version 1.0.1 (Beta)\");\n _lblAuthor = _createNewLabel( \"Company: Valkyrie Systems\" );\n _lblRealAuthor = _createNewLabel( \"Author: Hein Badenhorst\" );\n _lblDate = _createNewLabel( \"Build Date:\" );\n _lblRealDate = _createNewLabel( \"31 October 2010\");\n }", "public BLabel(Icon image)\n {\n this(image, WEST);\n }", "public interface ILabelProvider<N> {\r\n\r\n\t/**\r\n\t * Returns a label for the given rectangle.\r\n\t * @param model the model the rectangle belongs to, never {@code null}\r\n\t * @param rectangle the rectangle for which to return a color, never {@code null}\r\n\t * @return a label, may be {@code null} if no label is to be displayed\r\n\t */\r\n\tString getLabel(ITreeModel<IRectangle<N>> model, IRectangle<N> rectangle);\r\n\r\n}", "@Override\r\n\tprotected void onInitialize() {\n\t\tsuper.onInitialize();\r\n\t\tadd(new MultiLineLabel(LABEL_ID, LABEL_TEXT));\r\n\t}", "public LabeledImageObjectAdapter() {\n\t\tsuper();\n\t\to = null; \n\t}", "public static ComponentBuilder<?, ?> createCustomTitleComponent(String label) {\n\n StyleBuilder bold12CenteredStyle = stl.style(boldStyle).setFontSize(12);\n StyleBuilder bold16CenteredStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0));\n //StyleBuilder italicStyle = stl.style(rootStyle).italic();\n ComponentBuilder<?, ?> logoComponent = cmp.verticalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 60),\n cmp.text(label).setStyle(bold16CenteredStyle).setHorizontalAlignment(HorizontalAlignment.CENTER) \n );\n return logoComponent;\n }", "public BLabel(String text, Position align)\n {\n component = createComponent(text, null);\n setAlignment(align);\n }", "private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }", "private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "ReadOnlyStringProperty labelProperty();", "private void createLabels() {\n\n // Add status labels\n infoItem = new ToolItem(toolbar, SWT.SEPARATOR);\n infoComposite = new Composite(toolbar, SWT.NONE);\n infoItem.setControl(infoComposite);\n infoComposite.setLayout(null);\n\n labelAttribute = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelAttribute.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelAttribute.pack(); \n labelTransformations = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelTransformations.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelTransformations.pack();\n labelSelected = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelSelected.setText(Resources.getMessage(\"MainToolBar.31\")); //$NON-NLS-1$\n labelSelected.pack();\n labelApplied = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelApplied.setText(Resources.getMessage(\"MainToolBar.32\")); //$NON-NLS-1$\n labelApplied.pack();\n \n // Copy info to clip board on right-click\n Menu menu = new Menu(toolbar);\n MenuItem itemCopy = new MenuItem(menu, SWT.NONE);\n itemCopy.setText(Resources.getMessage(\"MainToolBar.42\")); //$NON-NLS-1$\n itemCopy.addSelectionListener(new SelectionAdapter(){\n public void widgetSelected(SelectionEvent arg0) {\n if (tooltip != null) {\n Clipboard clipboard = new Clipboard(toolbar.getDisplay());\n TextTransfer textTransfer = TextTransfer.getInstance();\n clipboard.setContents(new String[]{tooltip}, \n new Transfer[]{textTransfer});\n clipboard.dispose();\n }\n }\n });\n labelSelected.setMenu(menu);\n labelApplied.setMenu(menu);\n labelTransformations.setMenu(menu);\n \n // Add listener for layout\n toolbar.addControlListener(new ControlAdapter() {\n @Override\n public void controlResized(final ControlEvent arg0) {\n layout();\n }\n });\n }", "void addLabel(Object newLabel);", "void addLabel(Object newLabel);", "public abstract void addLabel(String str);", "com.microsoft.schemas.xrm._2011.contracts.Label addNewDescription();", "void setShapeLabel(String Label);", "public ImageAdapter(Context c, Provider provide, TextView namelandtext, TextView pricelandtext, ImageButton lb, ImageButton db) {\n Log.i(TAG, \"Constructor called\");\n \t mContext = c;\n this.provide = provide;\n this.namelandtext = namelandtext;\n this.pricelandtext = pricelandtext;\n this.likeb = lb;\n this.dislikeb = db;\n \n provide.getItemCache().clear();\n provide.fillItemCache();\n \n TypedArray a = mContext.obtainStyledAttributes(R.styleable.HelloGallery);\n mGalleryItemBackground = a.getResourceId(\n R.styleable.HelloGallery_android_galleryItemBackground, 0);\n a.recycle();\n \n }", "public abstract String getLabel();", "private void createTextFieldLabels() {\n // initialize empty textfield\n this.name = new TextField();\n this.id = new TextField();\n this.fiber = new TextField();\n this.calories = new TextField();\n this.fat = new TextField();\n this.carbohydrate = new TextField();\n this.protein = new TextField();\n // initialize labels\n this.nameLabel = new Label(\"Name:\");\n this.idLabel = new Label(\"ID:\");\n this.fiberLabel = new Label(\"Fiber:\");\n this.caloriesLabel = new Label(\"Calories:\");\n this.fatLabel = new Label(\"Fat:\");\n this.carbohydrateLabel = new Label(\"Carbohydrate:\");\n this.proteinLabel = new Label(\"Protein:\");\n }", "protected void addLabel(AeIconLabel aLabel) {\r\n }", "public BLabel(String text)\n {\n this(text, WEST);\n }", "private void initializeLabels() {\n labelVertexA = new Label(\"Vertex A\");\n labelVertexB = new Label(\"Vertex B\");\n labelVertexA.setTextFill(Color.web(\"#ffffff\"));\n labelVertexB.setTextFill(Color.web(\"#ffffff\"));\n }", "java.lang.String getLabel();", "String getLabel();", "String getLabel();", "public LabelModel getLabel(String aName);", "private void createGrpLabel() {\n\n\t\tgrpLabel = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpLabel.setText(\"Preview of Label\");\n\t\tgrpLabel.setBounds(new Rectangle(390, 40, 310, 230));\n\t\tgrpLabel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\tcanvasLabel = new Canvas(grpLabel, SWT.NONE);\n\t\tcanvasLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 18,\n\t\t\t\t285, 200));\n\t\tcanvasLabel.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcreateCanvasBorders();\n\n\t\tlblCanvasPharmName = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmName.setText(\"Facility Name\");\n\t\tlblCanvasPharmName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmName.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmName.setBounds(5, 6, 273, 20);\n\t\tlblCanvasPharmName\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmName.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasPharmacist = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmacist.setText(\"Pharmacist\");\n\t\tlblCanvasPharmacist\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmacist.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmacist.setBounds(5, 27, 273, 20);\n\t\tlblCanvasPharmacist.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmacist.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasAddress = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasAddress.setText(\"Physical Address\");\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasAddress\n\t\t.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tlblCanvasAddress.setBounds(5, 49, 273, 20);\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasAddress.setAlignment(SWT.CENTER);\n\n\t}", "public void initDynamicI18NBindings() {\n }", "Builder addProvider(String value);", "public interface ILabel {\n\n String getLabelKey();\n\n void setLabel(String label);\n\n}", "public abstract Code addLabel(String label);", "public Builder setLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n label_ = value;\n onChanged();\n return this;\n }", "public ProductTypeChangeLabelActionBuilder label(\n Function<com.commercetools.api.models.common.LocalizedStringBuilder, com.commercetools.api.models.common.LocalizedStringBuilder> builder) {\n this.label = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build();\n return this;\n }", "public void update() {\r\n icon = new SimpleIcon(layout.tag, layout.color, DiagramElement.getGlobalFontRenderer());\r\n icon.setIsModule(component.getType() != TemplateComponent.TYPE_CHANNEL);\r\n icon.setFlagged(component.hasModel() && component.getModel().hasAnnotation(FLAG_MARK));\r\n int maxWidth = 3 * icon.getIconWidth();\r\n String[] words = layout.label.split(\" \");\r\n Vector<String> lines = new Vector<String>();\r\n int wordsConsumed = 0;\r\n while (wordsConsumed < words.length) {\r\n String line = \"\";\r\n int i;\r\n for (i = wordsConsumed; i < words.length; ++i) {\r\n line += words[i];\r\n if (getGlobalFontMetrics().stringWidth(line) > maxWidth) {\r\n break;\r\n }\r\n line += \" \";\r\n }\r\n if (i == words.length) // all left-over words fit\r\n {\r\n line = line.substring(0, line.length() - 1);\r\n lines.add(line);\r\n wordsConsumed = words.length;\r\n } else\r\n // some left-over words didn't fit\r\n {\r\n if (i == wordsConsumed) // the first left-over word was too long\r\n {\r\n lines.add(line);\r\n wordsConsumed++;\r\n } else\r\n // at least one left-over word fit\r\n {\r\n line = line.substring(0, line.lastIndexOf(\" \"));\r\n lines.add(line);\r\n wordsConsumed = i;\r\n }\r\n }\r\n }\r\n labelBox = new LabelBox(lines);\r\n int deltaX = -(labelBox.width / 2);\r\n int deltaY = icon.getIconHeight() / 2 + LABEL_SPACING;\r\n labelBox.x = layout.location.x + deltaX;\r\n labelBox.y = layout.location.y + deltaY;\r\n ports[0] = new Ellipse2D.Float(layout.location.x - icon.getIconWidth() / 2 - 2 * PORT_RADIUS - 1,\r\n layout.location.y - PORT_RADIUS, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[1] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS,\r\n layout.location.y - icon.getIconHeight() / 2 - 2 * PORT_RADIUS - 1, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[2] = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 2 + 1, layout.location.y - PORT_RADIUS,\r\n 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[3] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS, (int) labelBox.getMaxY() + 1, 2 * PORT_RADIUS,\r\n 2 * PORT_RADIUS);\r\n if (component.getType() == TemplateComponent.TYPE_CHANNEL) {\r\n supHalo = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 4,\r\n layout.location.y - icon.getIconHeight() / 4 - 2 * HALO_RADIUS, 2 * HALO_RADIUS, 2 * HALO_RADIUS);\r\n haloDX = -getGlobalFontMetrics().stringWidth(HALO_LABEL) / 2 + 1;\r\n haloDY = getGlobalFontMetrics().getAscent() / 2;\r\n }\r\n computeBounds();\r\n }", "private Label initChildLabel(Pane container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "public UiLabelsFactory getLabels() {\n if (getLabels == null)\n getLabels = new UiLabelsFactory(jsBase + \".labels()\");\n\n return getLabels;\n }", "protected JLabel createComponent(String text, Icon image)\n {\n return new JLabel(text, image, SwingConstants.RIGHT);\n }", "private Label addNewLabel() {\n getElement().getChildren().forEach(e -> getElement().removeChild(e));\n // Create and add a new slotted label\n Label label = new Label();\n label.getElement().setAttribute(\"slot\", \"label\");\n this.getElement().appendChild(label.getElement());\n return label;\n }", "ILinkDeleterActionBuilder<SOURCE_BEAN_TYPE, LINKED_BEAN_TYPE> setLinkedEntityLabelSingular(String label);", "private GestionnaireLabelsProperties() {\r\n\t\tsuper();\r\n\t}", "public abstract String getLabelText();", "DatasetLabel getLabel();", "String addLabel(String label);", "public LabelProviderEntry(IConfigurationElement configuration) {\n\t\tsuper(configuration);\n\t}", "void setLabel(String label);", "private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\n }", "public LLabel() {\n this(\"\");\n }", "public Command createLabelCommand(String identifier, int type, Qualifier qualifier);", "public XYItemLabelGenerator createItemLabelGenerator() {\n\n MyXYItemLabelGenerator gen = new MyXYItemLabelGenerator();\n\n return gen;\n }", "protected Label newLabel(String id, IModel<String> model) {\n\t\tLabel label = new Label(id, model);\n\t\treturn label;\n\t}", "public void setLabel(String label) {\n this.label = label;\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public java.lang.String getLabel();", "public CustomLabel(String text){\n setHorizontalAlignment(JLabel.LEFT);\n Font font = new Font(\"Bold\", Font.BOLD, 20);\n setFont(font);\n setText(\" \" + text);\n }", "@Override\n public void setLabel(String arg0)\n {\n \n }", "public BindingConfigurationPanel() {\n initComponents();\n initGUI();\n }", "public Label() {\n\t\tthis(\"L\");\n\t}", "public WidgetLabelPanel(String labelText, Widget widget){\n\t\tsuper();\n\t\tthis.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tLabel myLabel = new Label(labelText);\n\t\tmyLabel.addStyleName(\"widgetLabel\");\n\t\tthis.add(myLabel);\n\t\tthis.add(widget);\n\t}", "private Label createLabel(String text, int offset) {\n\t\tLabel label = new Label(text);\n\t\t//label.setFont(Font.font(40));\n\t\tlabel.setTextFill(Color.YELLOW);\n\t\tlabel.getTransforms().add(new Rotate(-50, 300, 400, 20, Rotate.X_AXIS));\n\t\tlabel.setLayoutX(canvas.getWidth() / 2);\n\t\tlabel.setLayoutY(canvas.getHeight() / 2 + offset);\n\t\tlabel.setId(\"chooseFile\");\n\t\t\n\t\treturn label;\n\n\t}", "public LabeledImageObjectAdapter( ImageObject imageObject ) \n\t{\n\t\tsuper(imageObject);\n\t\to = getImageObject();\n\t}", "public ProductTypeChangeLabelActionBuilder withLabel(\n Function<com.commercetools.api.models.common.LocalizedStringBuilder, com.commercetools.api.models.common.LocalizedString> builder) {\n this.label = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of());\n return this;\n }" ]
[ "0.6042406", "0.5862237", "0.57609314", "0.5625217", "0.5617067", "0.5567473", "0.55157787", "0.54425985", "0.5427454", "0.5417168", "0.5414608", "0.5414608", "0.54140294", "0.5389329", "0.53834105", "0.53783876", "0.5375755", "0.5363241", "0.53350633", "0.5330469", "0.5318389", "0.52879363", "0.52578473", "0.5255955", "0.524473", "0.5235623", "0.5235623", "0.5233335", "0.52210075", "0.52210075", "0.52210075", "0.5215289", "0.51993704", "0.5196088", "0.5183861", "0.5168221", "0.5154696", "0.51519203", "0.5135232", "0.5135139", "0.51209563", "0.50953555", "0.50732374", "0.50671107", "0.506253", "0.50608885", "0.5055862", "0.50460875", "0.50460875", "0.50237453", "0.50228226", "0.5007118", "0.50053567", "0.5000117", "0.49979115", "0.49838027", "0.49809343", "0.49796763", "0.49781814", "0.49753988", "0.49753988", "0.49748152", "0.4971062", "0.4967131", "0.4959579", "0.49582937", "0.49551865", "0.4954945", "0.49527162", "0.49523428", "0.4951485", "0.49430403", "0.4933897", "0.4921856", "0.4916318", "0.49149784", "0.49128604", "0.49119765", "0.49056366", "0.4880002", "0.48788065", "0.48709676", "0.48700014", "0.48693892", "0.4865716", "0.48646712", "0.48523638", "0.48506358", "0.48506358", "0.48506358", "0.48506358", "0.48394862", "0.483779", "0.48347458", "0.48344728", "0.48309916", "0.48302767", "0.4827864", "0.48218107", "0.4815532" ]
0.8408095
0
TODO Autogenerated method stub
public static void main(String[] args) { LinkedListNode a = new LinkedListNode(1); LinkedListNode b = new LinkedListNode(2); LinkedListNode c = new LinkedListNode(3); LinkedListNode d = new LinkedListNode(2); LinkedListNode e = new LinkedListNode(6); LinkedListNode f = new LinkedListNode(5); a.next = b; b.next = c; c.next = d; d.next = e; e.next = f; findLocalMaxima(a); }
{ "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 was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public SesToolDatabaseJobPropertyruleExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getProperty();", "java.lang.String getRule();", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "public String getRuleId() {\n return this.RuleId;\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRule() {\r\n return rule;\r\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 }", "Object getPropertytrue();", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public R getRule() {\n return this.rule;\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.60996294", "0.5975225", "0.5659944", "0.5560696", "0.54269165", "0.533714", "0.51842797", "0.50247276", "0.500921", "0.49423498", "0.4876827", "0.48542002", "0.48444676", "0.48407155", "0.48362058", "0.4779195", "0.4779102", "0.47743773", "0.476344", "0.47617984", "0.47615516", "0.47602603", "0.47563916", "0.47560883", "0.4735551", "0.4720714", "0.4713883", "0.47117728", "0.47111517", "0.4707135", "0.4706957", "0.47041982", "0.4689623", "0.46845272", "0.46746203", "0.46746182", "0.46692303", "0.46526465", "0.46513873", "0.46450457", "0.4643221", "0.46398908", "0.46215236", "0.46215236", "0.46151426", "0.46135658", "0.46080798", "0.45927086", "0.45921737", "0.4590525", "0.45855916", "0.45818496", "0.45633295", "0.45429936", "0.45389646", "0.45369297", "0.45305473", "0.45279354", "0.45270538", "0.45172215", "0.45079854", "0.45066267", "0.45066267", "0.45002127", "0.44981328", "0.4472327", "0.44659418", "0.4451167", "0.4451167", "0.44505027", "0.44346488", "0.4434492", "0.44279808", "0.44239843", "0.44213653", "0.4420701", "0.44159225", "0.44152617", "0.43987417", "0.43977106", "0.43963802", "0.43937755", "0.43924993", "0.43902346", "0.43897778", "0.43849075", "0.4379806", "0.43775293", "0.43694982", "0.43678972", "0.43663093", "0.43651527", "0.43612874", "0.43565595", "0.4348285", "0.43479776", "0.43440866", "0.43366924", "0.43323025", "0.43323025" ]
0.65838474
0
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getRule();", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "java.lang.String getProperty();", "public String getRuleId() {\n return this.RuleId;\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public String getRule() {\r\n return rule;\r\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 }", "Object getPropertytrue();", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public R getRule() {\n return this.rule;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.6582365", "0.60992026", "0.5973674", "0.56583536", "0.55613923", "0.5426823", "0.5336789", "0.51845735", "0.50238395", "0.5010588", "0.49403766", "0.4878161", "0.48527682", "0.48432302", "0.48411688", "0.48379725", "0.47777742", "0.4777052", "0.47737068", "0.47631186", "0.47628438", "0.47620517", "0.47617486", "0.47575605", "0.4755286", "0.47368795", "0.47210786", "0.47127175", "0.47110796", "0.47110516", "0.4708612", "0.47078377", "0.4705254", "0.4688013", "0.46853387", "0.46755219", "0.46735653", "0.46708715", "0.46540296", "0.46503448", "0.4643665", "0.46424547", "0.4641541", "0.4622575", "0.4622575", "0.46160468", "0.46114555", "0.460728", "0.45933172", "0.45931077", "0.4591216", "0.4584752", "0.45833835", "0.4561077", "0.45413452", "0.45404992", "0.45384187", "0.4531199", "0.4528965", "0.45258492", "0.45166084", "0.45091876", "0.450542", "0.450542", "0.4501719", "0.44963345", "0.44724357", "0.44637802", "0.44495702", "0.44495702", "0.44487357", "0.44367823", "0.44324484", "0.44269267", "0.44238824", "0.44220617", "0.44219047", "0.44163212", "0.44140404", "0.43986794", "0.43984073", "0.43966994", "0.43954146", "0.43922508", "0.4391172", "0.43903694", "0.4387672", "0.43813637", "0.43774733", "0.43687707", "0.43676674", "0.43664008", "0.43650028", "0.4359534", "0.43554956", "0.43475688", "0.43460682", "0.4341785", "0.4334838", "0.4333156", "0.4333156" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "java.lang.String getRule();", "public String getRuleId() {\n return this.RuleId;\n }", "java.lang.String getProperty();", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public String getRule() {\r\n return rule;\r\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 int getRuleId() {\n\t\treturn ruleId;\n\t}", "Object getPropertytrue();", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public R getRule() {\n return this.rule;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.6582644", "0.60979515", "0.5973737", "0.56574816", "0.5561305", "0.542573", "0.5337626", "0.51845294", "0.502285", "0.50087845", "0.4941367", "0.48774207", "0.48521587", "0.4842773", "0.48405975", "0.48370117", "0.47781393", "0.47761074", "0.47733438", "0.47622862", "0.4761003", "0.47604167", "0.4759796", "0.47567412", "0.47564816", "0.47373936", "0.47213247", "0.47126338", "0.47116312", "0.4711056", "0.4707479", "0.4707011", "0.47043818", "0.46873683", "0.468354", "0.46735665", "0.46722987", "0.46694988", "0.46535087", "0.46492106", "0.46427798", "0.46420145", "0.4640691", "0.46206185", "0.46206185", "0.46145314", "0.46103758", "0.4609338", "0.4592358", "0.45910352", "0.45893037", "0.4584056", "0.45831528", "0.456019", "0.45394343", "0.45393273", "0.45372462", "0.4532452", "0.45273915", "0.4525487", "0.4515202", "0.45092404", "0.4503051", "0.4503051", "0.45022458", "0.44951743", "0.44733095", "0.44632986", "0.44491702", "0.44491702", "0.44482124", "0.4436574", "0.4432051", "0.44247928", "0.4422697", "0.44210035", "0.44198912", "0.44167605", "0.44136876", "0.4396946", "0.439615", "0.43957636", "0.4394767", "0.43923032", "0.4389463", "0.43887392", "0.43867415", "0.4380244", "0.43764916", "0.43674716", "0.43673435", "0.43643767", "0.43639502", "0.4358984", "0.43541765", "0.4347118", "0.4346318", "0.4342124", "0.43337432", "0.43321422", "0.43321422" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getRule();", "public String getRuleId() {\n return this.RuleId;\n }", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "java.lang.String getProperty();", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\r\n return rule;\r\n }", "public String getRuleId() {\n return ruleId;\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "Object getPropertytrue();", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public R getRule() {\n return this.rule;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "StatementRule createStatementRule();", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "com.google.protobuf.ByteString\n getRuleBytes();" ]
[ "0.65834427", "0.60995626", "0.59720665", "0.56563", "0.555803", "0.5423561", "0.5334851", "0.5181285", "0.50223553", "0.5012847", "0.49378887", "0.48789757", "0.48515013", "0.48432064", "0.48416188", "0.48403534", "0.4778591", "0.4776449", "0.4769373", "0.4766553", "0.4764955", "0.4763749", "0.47613958", "0.47578716", "0.47533754", "0.473614", "0.47255123", "0.47133732", "0.4712503", "0.47118324", "0.4711153", "0.47088864", "0.47074804", "0.46890876", "0.46848908", "0.4679276", "0.46742716", "0.46724534", "0.46552676", "0.46522793", "0.46451598", "0.46396965", "0.46392292", "0.46237242", "0.46237242", "0.46193585", "0.46118215", "0.46065488", "0.45973936", "0.45966825", "0.4590505", "0.45874602", "0.4582971", "0.45611274", "0.45439792", "0.45402935", "0.45374632", "0.4532144", "0.4531313", "0.45240593", "0.4514756", "0.45075497", "0.45010766", "0.45010766", "0.44995877", "0.44967395", "0.44693893", "0.44622308", "0.44459146", "0.44459146", "0.4445514", "0.44366565", "0.4430553", "0.44261685", "0.44244125", "0.44201103", "0.4418177", "0.4414307", "0.4414257", "0.44019032", "0.4398365", "0.43979958", "0.43940988", "0.43930188", "0.4391088", "0.4390337", "0.43893564", "0.43848956", "0.4378909", "0.43731073", "0.43693537", "0.4365064", "0.4362102", "0.43556464", "0.43518686", "0.43456087", "0.43448466", "0.4338177", "0.43352804", "0.43352804", "0.43345362" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getProperty();", "java.lang.String getRule();", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "public String getRuleId() {\n return this.RuleId;\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRule() {\r\n return rule;\r\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 }", "Object getPropertytrue();", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public R getRule() {\n return this.rule;\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.65838474", "0.60996294", "0.5975225", "0.5659944", "0.5560696", "0.54269165", "0.533714", "0.51842797", "0.50247276", "0.500921", "0.49423498", "0.4876827", "0.48542002", "0.48444676", "0.48407155", "0.48362058", "0.4779195", "0.4779102", "0.47743773", "0.476344", "0.47617984", "0.47615516", "0.47602603", "0.47563916", "0.47560883", "0.4735551", "0.4720714", "0.4713883", "0.47117728", "0.47111517", "0.4707135", "0.4706957", "0.47041982", "0.4689623", "0.46845272", "0.46746203", "0.46746182", "0.46692303", "0.46526465", "0.46513873", "0.46450457", "0.4643221", "0.46398908", "0.46215236", "0.46215236", "0.46151426", "0.46135658", "0.46080798", "0.45927086", "0.45921737", "0.4590525", "0.45855916", "0.45818496", "0.45633295", "0.45429936", "0.45389646", "0.45369297", "0.45305473", "0.45279354", "0.45270538", "0.45172215", "0.45079854", "0.45066267", "0.45066267", "0.45002127", "0.44981328", "0.4472327", "0.44659418", "0.4451167", "0.4451167", "0.44505027", "0.44346488", "0.4434492", "0.44279808", "0.44239843", "0.44213653", "0.4420701", "0.44159225", "0.44152617", "0.43987417", "0.43977106", "0.43963802", "0.43937755", "0.43924993", "0.43902346", "0.43897778", "0.43849075", "0.4379806", "0.43775293", "0.43694982", "0.43678972", "0.43663093", "0.43651527", "0.43612874", "0.43565595", "0.4348285", "0.43479776", "0.43440866", "0.43366924", "0.43323025", "0.43323025" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getRule();", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "java.lang.String getProperty();", "public String getRuleId() {\n return this.RuleId;\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public String getRule() {\r\n return rule;\r\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 }", "Object getPropertytrue();", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public R getRule() {\n return this.rule;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.6582365", "0.60992026", "0.5973674", "0.56583536", "0.55613923", "0.5426823", "0.5336789", "0.51845735", "0.50238395", "0.5010588", "0.49403766", "0.4878161", "0.48527682", "0.48432302", "0.48411688", "0.48379725", "0.47777742", "0.4777052", "0.47737068", "0.47631186", "0.47628438", "0.47620517", "0.47617486", "0.47575605", "0.4755286", "0.47368795", "0.47210786", "0.47127175", "0.47110796", "0.47110516", "0.4708612", "0.47078377", "0.4705254", "0.4688013", "0.46853387", "0.46755219", "0.46735653", "0.46708715", "0.46540296", "0.46503448", "0.4643665", "0.46424547", "0.4641541", "0.4622575", "0.4622575", "0.46160468", "0.46114555", "0.460728", "0.45933172", "0.45931077", "0.4591216", "0.4584752", "0.45833835", "0.4561077", "0.45413452", "0.45404992", "0.45384187", "0.4531199", "0.4528965", "0.45258492", "0.45166084", "0.45091876", "0.450542", "0.450542", "0.4501719", "0.44963345", "0.44724357", "0.44637802", "0.44495702", "0.44495702", "0.44487357", "0.44367823", "0.44324484", "0.44269267", "0.44238824", "0.44220617", "0.44219047", "0.44163212", "0.44140404", "0.43986794", "0.43984073", "0.43966994", "0.43954146", "0.43922508", "0.4391172", "0.43903694", "0.4387672", "0.43813637", "0.43774733", "0.43687707", "0.43676674", "0.43664008", "0.43650028", "0.4359534", "0.43554956", "0.43475688", "0.43460682", "0.4341785", "0.4334838", "0.4333156", "0.4333156" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "java.lang.String getRule();", "public String getRuleId() {\n return this.RuleId;\n }", "java.lang.String getProperty();", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public String getRule() {\r\n return rule;\r\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 int getRuleId() {\n\t\treturn ruleId;\n\t}", "Object getPropertytrue();", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public R getRule() {\n return this.rule;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.6582644", "0.60979515", "0.5973737", "0.56574816", "0.5561305", "0.542573", "0.5337626", "0.51845294", "0.502285", "0.50087845", "0.4941367", "0.48774207", "0.48521587", "0.4842773", "0.48405975", "0.48370117", "0.47781393", "0.47761074", "0.47733438", "0.47622862", "0.4761003", "0.47604167", "0.4759796", "0.47567412", "0.47564816", "0.47373936", "0.47213247", "0.47126338", "0.47116312", "0.4711056", "0.4707479", "0.4707011", "0.47043818", "0.46873683", "0.468354", "0.46735665", "0.46722987", "0.46694988", "0.46535087", "0.46492106", "0.46427798", "0.46420145", "0.4640691", "0.46206185", "0.46206185", "0.46145314", "0.46103758", "0.4609338", "0.4592358", "0.45910352", "0.45893037", "0.4584056", "0.45831528", "0.456019", "0.45394343", "0.45393273", "0.45372462", "0.4532452", "0.45273915", "0.4525487", "0.4515202", "0.45092404", "0.4503051", "0.4503051", "0.45022458", "0.44951743", "0.44733095", "0.44632986", "0.44491702", "0.44491702", "0.44482124", "0.4436574", "0.4432051", "0.44247928", "0.4422697", "0.44210035", "0.44198912", "0.44167605", "0.44136876", "0.4396946", "0.439615", "0.43957636", "0.4394767", "0.43923032", "0.4389463", "0.43887392", "0.43867415", "0.4380244", "0.43764916", "0.43674716", "0.43673435", "0.43643767", "0.43639502", "0.4358984", "0.43541765", "0.4347118", "0.4346318", "0.4342124", "0.43337432", "0.43321422", "0.43321422" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getRule();", "public String getRuleId() {\n return this.RuleId;\n }", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "java.lang.String getProperty();", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\r\n return rule;\r\n }", "public String getRuleId() {\n return ruleId;\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "Object getPropertytrue();", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public R getRule() {\n return this.rule;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "StatementRule createStatementRule();", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "com.google.protobuf.ByteString\n getRuleBytes();" ]
[ "0.65834427", "0.60995626", "0.59720665", "0.56563", "0.555803", "0.5423561", "0.5334851", "0.5181285", "0.50223553", "0.5012847", "0.49378887", "0.48789757", "0.48515013", "0.48432064", "0.48416188", "0.48403534", "0.4778591", "0.4776449", "0.4769373", "0.4766553", "0.4764955", "0.4763749", "0.47613958", "0.47578716", "0.47533754", "0.473614", "0.47255123", "0.47133732", "0.4712503", "0.47118324", "0.4711153", "0.47088864", "0.47074804", "0.46890876", "0.46848908", "0.4679276", "0.46742716", "0.46724534", "0.46552676", "0.46522793", "0.46451598", "0.46396965", "0.46392292", "0.46237242", "0.46237242", "0.46193585", "0.46118215", "0.46065488", "0.45973936", "0.45966825", "0.4590505", "0.45874602", "0.4582971", "0.45611274", "0.45439792", "0.45402935", "0.45374632", "0.4532144", "0.4531313", "0.45240593", "0.4514756", "0.45075497", "0.45010766", "0.45010766", "0.44995877", "0.44967395", "0.44693893", "0.44622308", "0.44459146", "0.44459146", "0.4445514", "0.44366565", "0.4430553", "0.44261685", "0.44244125", "0.44201103", "0.4418177", "0.4414307", "0.4414257", "0.44019032", "0.4398365", "0.43979958", "0.43940988", "0.43930188", "0.4391088", "0.4390337", "0.43893564", "0.43848956", "0.4378909", "0.43731073", "0.43693537", "0.4365064", "0.4362102", "0.43556464", "0.43518686", "0.43456087", "0.43448466", "0.4338177", "0.43352804", "0.43352804", "0.43345362" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getProperty();", "java.lang.String getRule();", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "public String getRuleId() {\n return this.RuleId;\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRule() {\r\n return rule;\r\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 }", "Object getPropertytrue();", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public R getRule() {\n return this.rule;\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.65838474", "0.60996294", "0.5975225", "0.5659944", "0.5560696", "0.54269165", "0.533714", "0.51842797", "0.50247276", "0.500921", "0.49423498", "0.4876827", "0.48542002", "0.48444676", "0.48407155", "0.48362058", "0.4779195", "0.4779102", "0.47743773", "0.476344", "0.47617984", "0.47615516", "0.47602603", "0.47563916", "0.47560883", "0.4735551", "0.4720714", "0.4713883", "0.47117728", "0.47111517", "0.4707135", "0.4706957", "0.47041982", "0.4689623", "0.46845272", "0.46746203", "0.46746182", "0.46692303", "0.46526465", "0.46513873", "0.46450457", "0.4643221", "0.46398908", "0.46215236", "0.46215236", "0.46151426", "0.46135658", "0.46080798", "0.45927086", "0.45921737", "0.4590525", "0.45855916", "0.45818496", "0.45633295", "0.45429936", "0.45389646", "0.45369297", "0.45305473", "0.45279354", "0.45270538", "0.45172215", "0.45079854", "0.45066267", "0.45066267", "0.45002127", "0.44981328", "0.4472327", "0.44659418", "0.4451167", "0.4451167", "0.44505027", "0.44346488", "0.4434492", "0.44279808", "0.44239843", "0.44213653", "0.4420701", "0.44159225", "0.44152617", "0.43987417", "0.43977106", "0.43963802", "0.43937755", "0.43924993", "0.43902346", "0.43897778", "0.43849075", "0.4379806", "0.43775293", "0.43694982", "0.43678972", "0.43663093", "0.43651527", "0.43612874", "0.43565595", "0.4348285", "0.43479776", "0.43440866", "0.43366924", "0.43323025", "0.43323025" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "java.lang.String getRule();", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "java.lang.String getProperty();", "public String getRuleId() {\n return this.RuleId;\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public String getRule() {\r\n return rule;\r\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 }", "Object getPropertytrue();", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public R getRule() {\n return this.rule;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.6582365", "0.60992026", "0.5973674", "0.56583536", "0.55613923", "0.5426823", "0.5336789", "0.51845735", "0.50238395", "0.5010588", "0.49403766", "0.4878161", "0.48527682", "0.48432302", "0.48411688", "0.48379725", "0.47777742", "0.4777052", "0.47737068", "0.47631186", "0.47628438", "0.47620517", "0.47617486", "0.47575605", "0.4755286", "0.47368795", "0.47210786", "0.47127175", "0.47110796", "0.47110516", "0.4708612", "0.47078377", "0.4705254", "0.4688013", "0.46853387", "0.46755219", "0.46735653", "0.46708715", "0.46540296", "0.46503448", "0.4643665", "0.46424547", "0.4641541", "0.4622575", "0.4622575", "0.46160468", "0.46114555", "0.460728", "0.45933172", "0.45931077", "0.4591216", "0.4584752", "0.45833835", "0.4561077", "0.45413452", "0.45404992", "0.45384187", "0.4531199", "0.4528965", "0.45258492", "0.45166084", "0.45091876", "0.450542", "0.450542", "0.4501719", "0.44963345", "0.44724357", "0.44637802", "0.44495702", "0.44495702", "0.44487357", "0.44367823", "0.44324484", "0.44269267", "0.44238824", "0.44220617", "0.44219047", "0.44163212", "0.44140404", "0.43986794", "0.43984073", "0.43966994", "0.43954146", "0.43922508", "0.4391172", "0.43903694", "0.4387672", "0.43813637", "0.43774733", "0.43687707", "0.43676674", "0.43664008", "0.43650028", "0.4359534", "0.43554956", "0.43475688", "0.43460682", "0.4341785", "0.4334838", "0.4333156", "0.4333156" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table ses_tool_database_job_propertyrule
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "PropertyRule createPropertyRule();", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "JobDetails properties();", "@Override\n public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n // Not yet implemented...\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n int ruleProperty_StartIndex = input.index();\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token lv_value_2_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:450:28: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:1: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= RULE_STRING ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:451:2: ( (lv_name_0_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:452:1: (lv_name_0_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:453:3: lv_name_0_0= RULE_ID\n {\n lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleProperty834); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getPropertyAccess().getNameIDTerminalRuleCall_0_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_0_0, \n \t\t\"ID\");\n \t \n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleProperty852); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:474:1: ( (lv_value_2_0= RULE_STRING ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:475:1: (lv_value_2_0= RULE_STRING )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:476:3: lv_value_2_0= RULE_STRING\n {\n lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleProperty868); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_2_0, grammarAccess.getPropertyAccess().getValueSTRINGTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, ruleProperty_StartIndex); }\n }\n return current;\n }", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "private static void transferProperty(final Properties tableProperties,\n final Map<String, String> jobProperties, Keys propertyToTransfer, boolean required) {\n String value = tableProperties.getProperty(propertyToTransfer.getKey());\n if (value != null) {\n jobProperties.put(propertyToTransfer.getKey(), value);\n } else if (required) {\n throw new IllegalArgumentException(\"Property \" + propertyToTransfer.getKey()\n + \" not found in the table properties.\");\n }\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public final com.raizlabs.android.dbflow.sql.language.property.Property getProperty(java.lang.String r2) {\n /*\n r1 = this;\n r2 = com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(r2);\n r0 = r2.hashCode();\n switch(r0) {\n case -2119176604: goto L_0x0052;\n case -1436943838: goto L_0x0048;\n case -1332609558: goto L_0x003e;\n case -1194979166: goto L_0x0034;\n case -423721887: goto L_0x002a;\n case 2964037: goto L_0x0020;\n case 138244702: goto L_0x0016;\n case 1181221320: goto L_0x000c;\n default: goto L_0x000b;\n };\n L_0x000b:\n goto L_0x005c;\n L_0x000c:\n r0 = \"`adDistance`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0014:\n r2 = 5;\n goto L_0x005d;\n L_0x0016:\n r0 = \"`sortTimeFrame`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x001e:\n r2 = 2;\n goto L_0x005d;\n L_0x0020:\n r0 = \"`id`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0028:\n r2 = 0;\n goto L_0x005d;\n L_0x002a:\n r0 = \"`before`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0032:\n r2 = 3;\n goto L_0x005d;\n L_0x0034:\n r0 = \"`listingType`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = 7;\n goto L_0x005d;\n L_0x003e:\n r0 = \"`username`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0046:\n r2 = 6;\n goto L_0x005d;\n L_0x0048:\n r0 = \"`sort`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x0050:\n r2 = 1;\n goto L_0x005d;\n L_0x0052:\n r0 = \"`after`\";\n r2 = r2.equals(r0);\n if (r2 == 0) goto L_0x005c;\n L_0x005a:\n r2 = 4;\n goto L_0x005d;\n L_0x005c:\n r2 = -1;\n L_0x005d:\n switch(r2) {\n case 0: goto L_0x007d;\n case 1: goto L_0x007a;\n case 2: goto L_0x0077;\n case 3: goto L_0x0074;\n case 4: goto L_0x0071;\n case 5: goto L_0x006e;\n case 6: goto L_0x006b;\n case 7: goto L_0x0068;\n default: goto L_0x0060;\n };\n L_0x0060:\n r2 = new java.lang.IllegalArgumentException;\n r0 = \"Invalid column name passed. Ensure you are calling the correct table's column\";\n r2.<init>(r0);\n throw r2;\n L_0x0068:\n r2 = listingType;\n return r2;\n L_0x006b:\n r2 = username;\n return r2;\n L_0x006e:\n r2 = adDistance;\n return r2;\n L_0x0071:\n r2 = after;\n return r2;\n L_0x0074:\n r2 = before;\n return r2;\n L_0x0077:\n r2 = sortTimeFrame;\n return r2;\n L_0x007a:\n r2 = sort;\n return r2;\n L_0x007d:\n r2 = id;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reddit.datalibrary.frontpage.data.model.ListingDataModel_Table.getProperty(java.lang.String):com.raizlabs.android.dbflow.sql.language.property.Property\");\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "public final IRuleBuilderOptions<Map> ruleFor(String propertyPrefix, String propertyName){\n PropertyRule rule = PropertyRule.create(Map.class, propertyName, getCascadeMode());\n rule.setDisplayName( propertyPrefix != null ? propertyPrefix + \".\" + propertyName : propertyName);\n addRule(rule);\n RuleBuilder<Map> ruleBuilder = new RuleBuilder<>(rule);\n return ruleBuilder;\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "java.lang.String getRule();", "public String getRuleId() {\n return this.RuleId;\n }", "java.lang.String getProperty();", "@Override\n public void configureInputJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n Properties tableProperties = tableDesc.getProperties();\n\n transferProperty(tableProperties, jobProperties, Keys.TABLE_NAME, true);\n transferProperty(tableProperties, jobProperties, Keys.ACCOUNT_URI, true);\n transferProperty(tableProperties, jobProperties, Keys.STORAGE_KEY, true);\n transferProperty(tableProperties, jobProperties, Keys.PARTITIONER_CLASS, false);\n transferProperty(tableProperties, jobProperties, Keys.REQUIRE_FIELD_EXISTS, false);\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "public DqcTableRuleConfig() {\n this(DSL.name(\"dqc_table_rule_config\"), null);\n }", "@Override\n\tpublic Jobprop findByJobprop(int jobpropId) {\n\t\treturn jobpropDAO.findById(jobpropId);\n\t}", "@Override\r\n\tprotected String getSqlPropertiesPath() {\n\t\treturn null;\r\n\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public String getRule() {\r\n return rule;\r\n }", "public static void validateProperty(RuleTemplateProperty ruleTemplateProperty) throws TemplateManagerException { //todo: conversion null pointer exception\n if (ruleTemplateProperty.getDefaultValue() == null) {\n // todo: throw exception\n }\n if (ruleTemplateProperty.getType().equals(\"option\") && (ruleTemplateProperty.getOptions() == null || ruleTemplateProperty.getOptions().size() < 1)) {\n // todo: throw exception\n }\n }", "public String getRuleId() {\n return ruleId;\n }", "public DqcTableRuleConfig(Name alias) {\n this(alias, DQC_TABLE_RULE_CONFIG);\n }", "public void addPropertyRule(String propertyName, ValidationRule propertyRule) {\n addPropertyGlobalRule(propertyName, new PropertyValidationRule(propertyName, propertyRule));\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}", "public String getUpdateRule () {\n return updateRule;\n }", "public String getUpdateRule () {\n return updateRule;\n }", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProperty = null;\n\n\n try {\n // InternalMyDsl.g:168:49: (iv_ruleProperty= ruleProperty EOF )\n // InternalMyDsl.g:169:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public void configureTableJobProperties(TableDesc tableDesc,\n Map<String, String> jobProperties) {\n String datasetName = tableDesc.getProperties().getProperty(Constants.Explore.DATASET_NAME);\n jobProperties.put(Constants.Explore.DATASET_NAME, datasetName);\n LOG.debug(\"Got dataset {} for external table {}\", datasetName, tableDesc.getTableName());\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public java.lang.String getRule() {\n return rule;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "public final EObject rulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject lv_expr_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:4500:2: ( (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon ) )\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n {\n // InternalSafetyParser.g:4501:2: (otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon )\n // InternalSafetyParser.g:4502:3: otherlv_0= Property ( (lv_name_1_0= RULE_ID ) ) otherlv_2= EqualsSign ( (lv_expr_3_0= ruleExpr ) ) otherlv_4= Semicolon\n {\n otherlv_0=(Token)match(input,Property,FollowSets000.FOLLOW_4); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPropertyStatementAccess().getPropertyKeyword_0());\n \t\t\n }\n // InternalSafetyParser.g:4506:3: ( (lv_name_1_0= RULE_ID ) )\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n {\n // InternalSafetyParser.g:4507:4: (lv_name_1_0= RULE_ID )\n // InternalSafetyParser.g:4508:5: lv_name_1_0= RULE_ID\n {\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_1_0, grammarAccess.getPropertyStatementAccess().getNameIDTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_1_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.ID\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,EqualsSign,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getPropertyStatementAccess().getEqualsSignKeyword_2());\n \t\t\n }\n // InternalSafetyParser.g:4528:3: ( (lv_expr_3_0= ruleExpr ) )\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n {\n // InternalSafetyParser.g:4529:4: (lv_expr_3_0= ruleExpr )\n // InternalSafetyParser.g:4530:5: lv_expr_3_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyStatementAccess().getExprExprParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_expr_3_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyStatementRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expr\",\n \t\t\t\t\t\tlv_expr_3_0,\n \t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getPropertyStatementAccess().getSemicolonKeyword_4());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }", "public final EObject entryRuleProperty() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleProperty = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:438:49: (iv_ruleProperty= ruleProperty EOF )\r\n // InternalNestDsl.g:439:2: iv_ruleProperty= ruleProperty EOF\r\n {\r\n newCompositeNode(grammarAccess.getPropertyRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleProperty=ruleProperty();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleProperty; \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 int getRuleId() {\n\t\treturn ruleId;\n\t}", "Object getPropertytrue();", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "String getSchemaProperty(Context context,String sSymbolicName) throws Exception{\n \tString strMQLCommand=\"print program $1 select $2 dump $3\";\r\n\t\tString strResults = MqlUtil.mqlCommand(context,strMQLCommand,\"eServiceSchemaVariableMapping.tcl\",\"property[\"+ sSymbolicName +\"]\",\"|\");\r\n\r\n StringTokenizer token = new StringTokenizer(strResults,\"|\");\r\n String val = null;\r\n while (token.hasMoreTokens()){\r\n String preParse = token.nextToken();\r\n\r\n\t\t //property returned as 'relationsip_xyz to relationship xyz'\r\n\t\t int toIndex = preParse.indexOf(\" to \");\r\n\t\t if (toIndex > -1){\r\n\r\n\t\t\t//split on \" to \"\r\n\t\t\tval = preParse.substring(toIndex+4,preParse.length());\r\n\t\t\tif (val != null){\r\n\t\t\t val.trim();\r\n\r\n\t\t\t //split on space and place result in hashtable\r\n\t\t\t val = val.substring(val.indexOf(' ')+1,val.length());\r\n\t\t\t }\r\n\t\t }\r\n\t\t}\r\n\r\n \treturn val;\r\n }", "@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();", "Property getProperty();", "Property getProperty();", "@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);", "public final EObject entryRuleProperty() throws RecognitionException {\n EObject current = null;\n int entryRuleProperty_StartIndex = input.index();\n EObject iv_ruleProperty = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:439:2: (iv_ruleProperty= ruleProperty EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:440:2: iv_ruleProperty= ruleProperty EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyRule()); \n }\n pushFollow(FOLLOW_ruleProperty_in_entryRuleProperty782);\n iv_ruleProperty=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleProperty; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleProperty792); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 7, entryRuleProperty_StartIndex); }\n }\n return current;\n }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public TableRule(String name, String zoneIn, String zoneOut, String service, String action, String addressIn, String addressOut, Boolean log) {\n this.name = new SimpleStringProperty(name);\n this.zoneIn = new SimpleStringProperty(zoneIn);\n this.zoneOut = new SimpleStringProperty(zoneOut);\n this.service = new SimpleStringProperty(service);\n this.action = new SimpleStringProperty(action);\n this.addressIn = new SimpleStringProperty(addressIn);\n this.addressOut = new SimpleStringProperty(addressOut);\n this.logged = new SimpleBooleanProperty(log);\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected abstract String getFactPropertyType(Object property);", "@Override\n\t\t protected String formatPropertyValue(Object rowId,\n\t\t Object colId, Property property) {\n\t\t if (property.getType() == Date.class && property.getValue() != null) {\n\t\t SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t return df.format((Date)property.getValue());\n\t\t }\n\t\t \n//\t\t if (property.getType()==Boolean.class){\n\t//\t\t \tif ((Boolean) property.getValue()==true) {\n\t//\t\t \t\treturn \"Active\";\n\t//\t\t \t} else {\n\t//\t\t \t\treturn \"-\";\n\t//\t\t \t}\n//\t\t }\n\t\t return super.formatPropertyValue(rowId, colId, property);\n\t\t }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public R getRule() {\n return this.rule;\n }", "@Override\n public String foreignKeyColumnName(\n String propertyName,\n String propertyEntityName,\n String propertyTableName,\n String referencedColumnName\n ) {\n\n String header = propertyName != null ? StringHelper.unqualify(\n propertyName) : propertyTableName;\n if (header == null)\n throw new AssertionFailure(\"NamingStrategy not properly filled\");\n\n String col = \"\\\"\" + columnName(header + StringUtils.capitalize(\n referencedColumnName)) + \"\\\"\";\n // System.out.println(\"++++referencedColumnNameMod \" +\n // col);\n return col;\n // return super.foreignKeyColumnName(\n // propertyName,\n // propertyEntityName,\n // propertyTableName,\n // referencedColumnName\n // );\n }", "public final EObject entryRulePropertyStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePropertyStatement = null;\n\n\n try {\n // InternalSafetyParser.g:4487:58: (iv_rulePropertyStatement= rulePropertyStatement EOF )\n // InternalSafetyParser.g:4488:2: iv_rulePropertyStatement= rulePropertyStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPropertyStatementRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_rulePropertyStatement=rulePropertyStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePropertyStatement; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CellProfile getRules();", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public List<BatchJob> findByProperty(String propertyName, Object propertyValue) {\r\n\t\treturn dao.findByProperty(propertyName, propertyValue);\r\n\t}", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public final EObject ruleAnnotationProperty() throws RecognitionException {\n EObject current = null;\n int ruleAnnotationProperty_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n EObject lv_value_2_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 148) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6222:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= KEYWORD_15 ( (lv_value_2_0= ruleLiteral ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6223:2: ( (otherlv_0= RULE_ID ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6224:1: (otherlv_0= RULE_ID )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6225:3: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n \n \t\t /* */ \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getAnnotationPropertyRule());\n \t }\n \n }\n otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationProperty12746); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(otherlv_0, grammarAccess.getAnnotationPropertyAccess().getDeclAnnotationPropertyDeclCrossReference_0_0()); \n \t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_ruleAnnotationProperty12759); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getAnnotationPropertyAccess().getEqualsSignKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6244:1: ( (lv_value_2_0= ruleLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6245:1: (lv_value_2_0= ruleLiteral )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:6246:3: lv_value_2_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getAnnotationPropertyAccess().getValueLiteralParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleLiteral_in_ruleAnnotationProperty12779);\n lv_value_2_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getAnnotationPropertyRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_2_0, \n \t\t\"Literal\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 148, ruleAnnotationProperty_StartIndex); }\n }\n return current;\n }", "StatementRule createStatementRule();", "void setRule(Rule rule);", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "public String getPropertyId() {\n return propertyId;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }", "public void setUpdateRule (String updateRule) {\n this.updateRule = updateRule;\n }" ]
[ "0.6582644", "0.60979515", "0.5973737", "0.56574816", "0.5561305", "0.542573", "0.5337626", "0.51845294", "0.502285", "0.50087845", "0.4941367", "0.48774207", "0.48521587", "0.4842773", "0.48405975", "0.48370117", "0.47781393", "0.47761074", "0.47733438", "0.47622862", "0.4761003", "0.47604167", "0.4759796", "0.47567412", "0.47564816", "0.47373936", "0.47213247", "0.47126338", "0.47116312", "0.4711056", "0.4707479", "0.4707011", "0.47043818", "0.46873683", "0.468354", "0.46735665", "0.46722987", "0.46694988", "0.46535087", "0.46492106", "0.46427798", "0.46420145", "0.4640691", "0.46206185", "0.46206185", "0.46145314", "0.46103758", "0.4609338", "0.4592358", "0.45910352", "0.45893037", "0.4584056", "0.45831528", "0.456019", "0.45394343", "0.45393273", "0.45372462", "0.4532452", "0.45273915", "0.4525487", "0.4515202", "0.45092404", "0.4503051", "0.4503051", "0.45022458", "0.44951743", "0.44733095", "0.44632986", "0.44491702", "0.44491702", "0.44482124", "0.4436574", "0.4432051", "0.44247928", "0.4422697", "0.44210035", "0.44198912", "0.44167605", "0.44136876", "0.4396946", "0.439615", "0.43957636", "0.4394767", "0.43923032", "0.4389463", "0.43887392", "0.43867415", "0.4380244", "0.43764916", "0.43674716", "0.43673435", "0.43643767", "0.43639502", "0.4358984", "0.43541765", "0.4347118", "0.4346318", "0.4342124", "0.43337432", "0.43321422", "0.43321422" ]
0.0
-1
In order for all the other configurations to take effect there must be at least one decleration by the rabbitAdmin
@Bean public RabbitAdmin admin(ConnectionFactory connectionFactory) { logger.info("Kicking off Declarations"); RabbitAdmin rabbitAdmin = new RabbitAdmin(connectionFactory); /* * *********************IMPORTANT******************************** * * None of the other declarations take effect unless at least one * declaration is executed by RabbitAdmin. * * *********************IMPORTANT******************************** */ rabbitAdmin.declareExchange(topicExchange()); return new RabbitAdmin(connectionFactory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void validateConfiguration() {\n\n\t\tsuper.validateConfiguration();\n\n\t\tAssert.state(\n\t\t\t\t!(getAcknowledgeMode().isAutoAck() && getTransactionManager() != null),\n\t\t\t\t\"The acknowledgeMode is NONE (autoack in Rabbit terms) which is not consistent with having an \"\n\t\t\t\t\t\t+ \"external transaction manager. Either use a different AcknowledgeMode or make sure \" +\n\t\t\t\t\t\t\"the transactionManager is null.\");\n\n\t}", "void acknowledgeConfiguration() {\n // First ensure that both players have their correct color\n Player player0 = game.getPlayers().get(0);\n Player player1 = game.getPlayers().get(1);\n player1.setStone(player0.getStone() == Stone.BLACK ? 2 : 1);\n\n leader.acknowledgeConfig();\n opponent.acknowledgeConfig();\n }", "@Override\n public boolean hasAdditionalConfig() { return true; }", "@Override\n public void checkConfiguration() {\n }", "private void checkConfig() {\n\t\t\n\t\tif (config.getDouble(\"configversion\", 0.0) - configVersion > .001) {\n\t\t\tString name = config.getString(QuestConfigurationField.NAME.getKey(), \"NO NAME\");\n\t\t\tQuestManagerPlugin.questManagerPlugin.getLogger().warning(\"The quest [\" + name + \"] has an invalid version!\\n\"\n\t\t\t\t\t+ \"QuestManager Configuration Version: \" + configVersion + \" doesn't match quest's: \" \n\t\t\t\t\t+ config.getDouble(\"configversion\", 0.0));\n\t\t\t\n\t\t}\n\t\t\n\t\t//Check each field and put in defaults if they aren't there (niave approach)\n\t\tfor (QuestConfigurationField field : QuestConfigurationField.values()) {\n\t\t\tif (!config.contains(field.getKey())) {\n\t\t\t\tQuestManagerPlugin.questManagerPlugin.getLogger().warning(\"[\" + getName() + \"] \"\n\t\t\t\t\t\t+ \"Failed to find field information: \" + field.name());\n\t\t\t\tQuestManagerPlugin.questManagerPlugin.getLogger().info(\"Adding default value...\");\n\t\t\t\tconfig.set(field.getKey(), field.getDefault());\n\t\t\t}\n\t\t}\n\t}", "@PostConstruct\n private void init() {\n if(properties != null && properties.getOverride()) {\n LOGGER.info(\"############# Override Rabbit MQ Settings #############\");\n\n amqpAdmin.deleteExchange(DIRECT_EXCHANGE);\n amqpAdmin.declareExchange(\n new DirectExchange(DIRECT_EXCHANGE, true, false));\n\n bindingQueue(DIRECT_EXCHANGE, REGISTER_QUEUE,\n DIRECT_REGISTER_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SEND_TEMPLATE_EMAIL_QUEUE,\n SEND_TEMPLATE_EMAIL_QUEUE_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SUBJECT_REQUEST_VOTE_QUEUE,\n SUBJECT_REQUEST_VOTE_QUEUE_ROUTER_KEY);\n }\n }", "private void config() {\n\t}", "protected void checkConfiguration() {\n \tsuper.checkConfiguration();\n \t\n if (this.customizations == null) {\n this.customizations = new ArrayList<String>();\n }\n if (this.options == null) {\n this.options = new HashMap<String, String>();\n }\n if (this.sourceDirectories == null) {\n \tthis.sourceDirectories = new ArrayList<String>();\n \tthis.sourceDirectories.add(DEFAULT_SOURCE_DIRECTORY);\n }\n }", "public void verifyConfig() {\r\n if (getProcessErpManager() == null)\r\n throw new ConfigurationException(\"The required property 'processErpManager' is missing.\");\r\n if (getAnchorColumnName() == null)\r\n throw new ConfigurationException(\"The required property 'anchorColumnName' is missing.\");\r\n }", "public void verifyConfig() {\r\n if (getSpecialHandlingManager() == null)\r\n throw new ConfigurationException(\"The required property 'specialHandlingManager' is missing.\");\r\n }", "@Override\n\tpublic void setConfigChanged(boolean changed) {\n\t\t//do nothing\n\t}", "public void verifyConfig() {\r\n if (getAnchorColumnName() == null)\r\n throw new ConfigurationException(\"The required property 'anchorColumnName' is missing.\");\r\n }", "@Override\n\tpublic boolean hasExtraConfigs()\n\t{\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean hasConfigChanged() {\n\t\treturn false;\n\t}", "protected void additionalConfig(ConfigType config){}", "@Override\r\n protected boolean validateSystemSettings() {\n return true;\r\n }", "@Override\n public void reconfigure()\n {\n }", "public void updateConfig() {\n conf.set(\"racetype\", raceType.name());\n conf.set(\"perkpoints\", perkpoints);\n conf.set(\"health\", getHealth());\n\n if (conf.isSet(\"binds\")) {\n conf.set(\"binds\", null);\n }\n\n if (!binds.getBinds().isEmpty()) {\n for (Bind b : binds.getBinds()) {\n String key = b.getItem().name().toLowerCase() + b.getData();\n conf.set(\"binds.\" + key + \".item\", b.getItem().name());\n conf.set(\"binds.\" + key + \".data\", b.getData());\n List<String> abilities = Lists.newArrayList();\n b.getAbilityTypes().stream().forEach(a -> abilities.add(a.name()));\n conf.set(\"binds.\" + key + \".abilities\", abilities);\n }\n }\n\n\n AbilityFileManager.saveAbilities(this);\n }", "@Override\n public boolean isConfigured()\n {\n return (config != null) && config.isValid() &&!config.isDisabled();\n }", "public void verifyConfig() {\r\n if (getIbnrRiskManager() == null)\r\n throw new ConfigurationException(\"The required property 'ibnrRiskManager' is missing.\");\r\n }", "public void fixConfigValues() {\n String cooldown = getConfig().getString(\"Config.Default-Cooldown\");\n if (cooldown.equalsIgnoreCase(\"-1\")) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Cooldown\", \"0\");\n }\n double price = getConfig().getDouble(\"Config.Default-Price\");\n if (price == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Price\", 0);\n }\n int limit = getConfig().getInt(\"Config.Default-Kit-Limit\");\n if (limit == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Kit-Limit\", 0);\n }\n }", "public void preOnConfigurationChanged() {\n if (getDockedDividerController() != null) {\n getDockedDividerController().onConfigurationChanged();\n }\n if (getPinnedStackController() != null) {\n getPinnedStackController().onConfigurationChanged();\n }\n }", "public void refreshGUIConfiguration() {\n\t\tcbxFEP.setSelectedItem(Initializer.getFEPname());\n\t\ttxtPort.setText(String.valueOf(Initializer.getPortNumber()));\n\t\t\n\t\tfor(Map.Entry<String, String> value : Initializer.getConfigurationTracker().getFepPropertiesMap().entrySet()) {\n\t\t\tif(value.getKey().equals(\"valueOfBitfield76\")) {\n\t\t\t\tSystem.out.println(value.getValue());\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().sendResponseVariableName).equalsIgnoreCase(\"No\")) {\n\t\t\trdbtnDontSendResponse.setSelected(true);\n\t\t} else {\n\t\t\trdbtnSendResponse.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().authorizationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnAuthorizationApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().authorizationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnAuthorizationDecline.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().authorizationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().partialApprovalValue)) {\n\t\t\trdbtnAuthorizationPartiallyapprove.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialSalesResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnFinancialSalesApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialSalesResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnFinancialSalesDecline.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialSalesResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().partialApprovalValue)) {\n\t\t\trdbtnFinancialSalesPartiallyapprove.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialForceDraftResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnFinancialForceDraftApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialForceDraftResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnFinancialForceDraftDecline.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reconciliationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnReconciliationApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reconciliationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnReconciliationDecline.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reversalResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnReversalApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reversalResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnReversalDecline.setSelected(true);\n\t\t}\n\n\t\ttxtDeclineCode\n\t\t\t\t.setText(Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"ValueOfBitfield39Decline\"));\n\t\ttxtApprovalAmount.setText(Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"valueOfBitfield4\"));\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"isHalfApprovalRequired\")\n\t\t\t\t.equalsIgnoreCase(\"true\")) {\n\t\t\tchckbxApproveForHalf.setSelected(true);\n\t\t\ttxtApprovalAmount.setEnabled(false);\n\t\t} else {\n\t\t\tchckbxApproveForHalf.setSelected(false);\n\t\t\ttxtApprovalAmount.setEnabled(true);\n\t\t}\n\t\t\n\t\tlogger.debug(\"GUI configuration updated based on the FEP properties configured\");\n\t}", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "public Conf() {\n createIfNotExists = false;\n deleteInputOnSuccess = false;\n }", "protected void validateConfiguration() {}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tpublic void validateConfigurationWithoutLogin() {\n\t\tcheckAuthorization();\n\t}", "void configurationUpdated();", "@Bean\n AmqpAdmin amqpAdmin() {\n return new RabbitAdmin(connectionFactory());\n }", "@Override\n public boolean hasConfig() {\n return config_ != null;\n }", "@Override\r\n public void onConfigurationChanged(Configuration newConfig){\r\n super.onConfigurationChanged(newConfig);\r\n ExamManager.activateTicket();\r\n }", "boolean hasNewConfig();", "protected void checkIfConfigurationModificationIsAllowed() {\r\n\t\tif (isCompiled()) {\r\n\t\t\tthrow new InvalidDataAccessApiUsageException(\"Configuration can't be altered once the class has been compiled or used.\");\r\n\t\t}\r\n\t}", "@Override\n public void onDestroy(boolean isChangingConfiguration) {\n\n }", "@Override\n\tpublic void onConfigurationUpdate() {\n\t}", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n\n helpPopulate(defaultIndex);\n }", "private void controladorAdminConfig(Controlador controlador) {\n \tthis.contAdminUsuarios = controlador.getAdminUsuarios();\n \tadminConfig.setControlAdminUsuarios(contAdminUsuarios);\n \t\n \tthis.contAdminProyectos = controlador.getAdminProyectos();\n \tadminConfig.setControlAdminProyectos(contAdminProyectos);\n \t\n \tthis.contAdminConfigVotes = controlador.getAdminConfigVotes();\n \tadminConfig.setControlAdminConfigVotes(contAdminConfigVotes);\n \t\n \tthis.contAdminConfigCaducidad = controlador.getAdminConfigCaducidad();\n adminConfig.setControlAdminConfigCaducidad(contAdminConfigCaducidad);\n }", "private RelayConfig () {}", "public static void readConfig() {\n\t\tint[] defaultBanned = Loader.isModLoaded(\"twilightforest\") ? new int[]{7} : new int[0];\n\t\t\n\t\tDIMENSION_LIST = ConfigHelpers.getIntArray(config, \"dimensionIdList\", \"general\", defaultBanned, \"The list of dimension IDs, used as a allow-list or deny-list, depending on your other config settings. Internal numeric IDs, please.\");\n\t\t\n\t\tMODE = ConfigHelpers.getEnum(config, \"mode\", \"general\", ListMode.DENY_LIST, \"What mode should Broken Wings operate under?\", (mode) -> {\n\t\t\tswitch (mode) {\n\t\t\t\tcase DENY_LIST: return \"Flying is disabled in only the dimensions listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALLOW_LIST: return \"Flying is disabled in all dimensions, except the ones listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALWAYS_DENY: return \"Flying is always disabled, regardless of dimension ID.\";\n\t\t\t\tcase ALWAYS_ALLOW: return \"Flying is never disabled (it's like the mod isn't even installed)\";\n\t\t\t\tdefault: return \"h\";\n\t\t\t}\n\t\t}, ListMode.class);\n\t\t\n\t\tARMOR_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyArmor\", \"general\", new ItemList(), \"A player wearing one of these armor pieces will be immune to the no-flight rule.\");\n\t\t\n\t\tINVENTORY_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyInventory\", \"general\", new ItemList(), \"A player with one of these items in their inventory will be immune to the no-flight rule.\");\n\t\t\n\t\tif(Loader.isModLoaded(\"baubles\")) {\n\t\t\tBUBBLE_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyBauble\", \"general\", new ItemList(), \"A player wearing one of these Baubles will be immune to the no-flight rule.\");\n\t\t} else {\n\t\t\tBUBBLE_BYPASS_KEYS = new ItemList();\n\t\t}\n\t\t\n\t\t//Countermeasures\n\t\tCountermeasures.readConfig(config);\n\t\t\n\t\t//Effects\n\t\tPRINT_TO_LOG = config.getBoolean(\"printToLog\", \"effects\", true, \"Should a message be printed to the server console when a player is dropped from the sky?\");\n\t\t\n\t\tSEND_STATUS_MESSAGE = config.getBoolean(\"sendStatusMessage\", \"effects\", true, \"Should players receive a status message when they are dropped from the sky?\");\n\t\t\n\t\tSHOW_PARTICLES = config.getBoolean(\"showParticles\", \"effects\", true, \"Should players create particle effects when they are dropped from the sky?\");\n\t\t\n\t\tEFFECT_INTERVAL = config.getInt(\"effectInterval\", \"effects\", 3, 0, Integer.MAX_VALUE, \"To prevent spamming players and the server console, how many seconds will need to pass before performing another effect? (Players will still drop out of the sky if they try to fly faster than this interval.)\");\n\t\t\n\t\tFIXED_MESSAGE = config.getString(\"fixedStatusMessage\", \"effects\", \"\", \"Whatever you enter here will be sent to players when they are dropped out of the sky if 'effects.sendStatusMessage' is enabled. If this is empty, I'll choose from my own internal list of (tacky) messages.\").trim();\n\t\t\n\t\t//Client\n\t\tSHOW_BYPASS_KEY_TOOLTIP = config.getBoolean(\"showBypassKeyTooltip\", \"client\", true, \"Show a tooltip on items that are bypass-keys informing the player that they can use this item to bypass the rule.\");\n\t\t\n\t\tif(config.hasChanged()) config.save();\n\t}", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "@Override\r\n\tprotected void configure() {\n\t\t\r\n\t}", "protected AmqpTransportConfig() {\n\t\tsuper();\n\t}", "public AntConfiguration(){\n this.channelID1 = new ChannelID(); //initially set all parameters of Channel ID to 0\n this.channelID2 = new ChannelID(); //initially set all parameters of Channel ID to 0\n\n this.channelAssigned1 = new Channel(); //initially do not assign any cha\n this.channelAssigned2 = new Channel(); //initially do not assign any channel\n\n this.channelPeriod = 4; //set to 4Hz by default\n this.level = PowerLevel.NEGTWENTY; //set to -20dB as default\n this.state1 = ChannelState.UNASSIGNED;\n this.state2 = ChannelState.UNASSIGNED;\n\n }", "public void reConfigure();", "public void init() {\n if (getConfig().isEnabled()) {\n super.init();\n }\n }", "@Override\n public AbstractConfiguration getEmptyConfiguration(\n DefaultConfigurationBuilder.ConfigurationDeclaration decl) throws Exception\n {\n throw new Exception(\"Unable to create configuration!\");\n }", "public admin() {\n\t\tsuper();\n\t}", "@Override\r\n public void checkConfiguration() throws ContestServicesConfigurationException {\r\n super.checkConfiguration();\r\n ServicesHelper.checkConfigObject(upcomingContestsManager, \"upcomingContestsManager\");\r\n }", "public void notifyConfigChange() {\n }", "@Override\n\tprotected boolean configure(ConsoleManager cm, Host host, PhpBuild build, ScenarioSet scenario_set, String app_dir) {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean configure(ConsoleManager cm, Host host, PhpBuild build, ScenarioSet scenario_set, String app_dir) {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean configure(ConsoleManager cm, Host host, PhpBuild build, ScenarioSet scenario_set, String app_dir) {\n\t\treturn false;\n\t}", "@Override\n public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {\n }", "private void actionChangedEstimatorSettingsAuto ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t}", "@Override\n\tprotected void configure() {\n\n\t}", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "@Override\n\tpublic void initSettings() {\n\n\t}", "public void admin_enable_auto() {\n\t\tautomerge = true; // merges every time new crystals are added\n\t\tautoidentify = true; // identifies every time merge occurs\n\t\tautodust = true; \n\t\tautosell = false;// cannot have autosell and autodust enabled\n\t}", "public ConfigurationMaintainer() {\n\t}", "protected void validate() {\n super.validate();\n\n if (durableConsumers && durableSubscriptionName == null) {\n // JMS topic consumer for JMS destination ''{0}'' is configured to use durable subscriptions but it does not have a durable subscription name.\n ConfigurationException ce = new ConfigurationException();\n ce.setMessage(JMSConfigConstants.MISSING_DURABLE_SUBSCRIPTION_NAME, new Object[]{destinationJndiName});\n throw ce;\n }\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Incorrect Configuration: \"+super.toString();\r\n\t}", "boolean hasOldConfig();", "private void chargeConfiguration() {\n\t\tgetConfig().options().copyDefaults(true);\n\t\tFile config = new File(getDataFolder(), \"config.yml\");\n\t\tFile lang = new File(getDataFolder(), \"lang.properties\");\n\t\ttry {\n\t\t\tif (!config.exists()) {\n\t\t\t\tsaveDefaultConfig();\n\t\t\t}\n\t\t\tif (!lang.exists()) {\n\t\t\t\tsaveResource(\"lang.properties\", false);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthis.error(\"Can not load the configuration\", e);\n\t\t}\n\t}", "public boolean getConfiguration() throws FlooringMasteryDaoException {\n boolean isProduction = false;\n\n try {\n\n String production = dao.openConfig();\n if (\"production\".equalsIgnoreCase(production)) {\n isProduction = true;\n }\n } catch (FlooringMasteryDaoException e) {\n\n }\n\n return isProduction;\n }", "@java.lang.Override\n public boolean hasConfig() {\n return config_ != null;\n }", "boolean hasConfigConnectorConfig();", "protected void configClient() throws IOException, InterruptedException {\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeGreen.getDeckNumber(),deckProductionCardThreeGreen.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeBlu.getDeckNumber(),deckProductionCardThreeBlu.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeYellow.getDeckNumber(),deckProductionCardThreeYellow.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeViolet.getDeckNumber(),deckProductionCardThreeViolet.getDeck()));\n\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoGreen.getDeckNumber(),deckProductionCardTwoGreen.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoBlu.getDeckNumber(),deckProductionCardTwoBlu.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoYellow.getDeckNumber(),deckProductionCardTwoYellow.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoViolet.getDeckNumber(),deckProductionCardTwoViolet.getDeck()));\n\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneGreen.getDeckNumber(),deckProductionCardOneGreen.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneBlu.getDeckNumber(),deckProductionCardOneBlu.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneYellow.getDeckNumber(),deckProductionCardOneYellow.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneViolet.getDeckNumber(),deckProductionCardOneViolet.getDeck()));\n\n notifyObserver(new ConfigurationMarketMessage(market.getInitialMarbleList()));\n\n\n }", "private boolean testConfig(Window parent, Channel ch) {\n if (mConfig.getExternalChannel(ch) == null) {\n int ret = JOptionPane.showConfirmDialog(parent, mLocalizer.msg(\"channelAssign\", \"Please assign Channel first\"), mLocalizer.msg(\"channelAssignTitle\", \"Assign Channel\"), JOptionPane.YES_NO_OPTION);\n\n if (ret == JOptionPane.YES_OPTION) {\n SimpleConfigDialog dialog = new SimpleConfigDialog(parent, this,\n mConnection, mConfig);\n UiUtilities.centerAndShow(dialog);\n\n if (dialog.wasOkPressed()) {\n mConfig = dialog.getConfig();\n mName = dialog.getName();\n }\n }\n return false;\n }\n\n return true;\n }", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "protected Container completeConfigurationWindow() {\n\t\treturn null;\n\t}", "ConfigBlock getConfig();", "private void configureConnectionPerms() throws ConfigurationException\n {\n boolean hasAllows= false, hasDenies= false;\n\n String[] allows= cfg.getAll (\"allow\");\n if (allows != null && allows.length > 0) {\n hasAllows= true;\n\n for (String allowIP : allows) {\n allowIP= allowIP.trim();\n\n if (allowIP.indexOf('*') == -1) { // specific IP with no wildcards\n specificIPPerms.put(allowIP, true);\n } else { // there's a wildcard\n wildcardAllow= (wildcardAllow == null) ? new ArrayList<>() : wildcardAllow;\n String[] parts= allowIP.split(\"[*]\");\n wildcardAllow.add(parts[0]); // keep only the first part\n }\n }\n }\n\n String[] denies= cfg.getAll (\"deny\");\n if (denies != null && denies.length > 0) {\n hasDenies= true;\n\n for (String denyIP : denies) {\n boolean conflict= false; // used for a little sanity check\n\n denyIP= denyIP.trim();\n if (denyIP.indexOf('*') == -1) { // specific IP with no wildcards\n Boolean oldVal= specificIPPerms.put(denyIP, false);\n conflict= (oldVal == Boolean.TRUE);\n } else { // there's a wildcard\n wildcardDeny= (wildcardDeny == null) ? new ArrayList<>() : wildcardDeny;\n String[] parts= denyIP.split(\"[*]\");\n if (wildcardAllow != null && wildcardAllow.contains(parts[0]))\n conflict= true;\n else\n wildcardDeny.add(parts[0]); // keep only the first part\n }\n\n if (conflict) {\n throw new ConfigurationException(\n \"Conflicting IP permission in '\"+getName()+\"' configuration: 'deny' \"\n +denyIP+\" while having an identical previous 'allow'.\");\n }\n }\n }\n\n // sum up permission policy and logging type\n ipPermLogPolicy= (!hasAllows && !hasDenies) ? PermLogPolicy.ALLOW_NOLOG : // default when no permissions specified\n ( hasAllows && !hasDenies) ? PermLogPolicy.DENY_LOG :\n (!hasAllows && hasDenies) ? PermLogPolicy.ALLOW_LOG :\n PermLogPolicy.DENY_LOGWARNING; // mixed allows & denies, if nothing matches we'll DENY and log a warning\n }", "private void outputConfig() {\n //output config info to the user\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Input configuration: {0} items, {1} transactions, \", new Object[]{numItems, numTransactions});\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"minsup = {0}%\", minSup);\n }", "public NBodiesConfigurationView() {\n\t\tinitializeGUI();\n\t}", "@Test\n public void configurationChanged_ClearsCurrentAdapters() {\n mDiffRequestManagerHolder.configurationChanged();\n\n // Then\n then(mDiffRequestManager).should().swapAdapter(null);\n }", "public void initialConfig() {\n }", "@Override\n\tpublic void configure() {\n\n\t}", "private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }", "public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}", "public void setConfigurations() {\n configurations = jsonManager.getConfigurationsFromJson();\n }", "public boolean configSet() {\n return config != null;\n }", "public interface AdminToolConfig \n{\n\tpublic static final String WEBJARS_CDN_PREFIX = \"https://cdn.jsdelivr.net/webjars/\";\n\t\n\tpublic static final String WEBJARS_CDN_PREFIX_BOWER = WEBJARS_CDN_PREFIX + \"org.webjars.bower/\";\n\t\n\tpublic static final String WEBJARS_LOCAL_PREFIX = \"/webjars/\";\n\t\n\t/**\n\t * should print the configuration to log\n\t */\n\tpublic void printConfig();\n\t\n\t/**\n\t * should return if component is active or deactivated\n\t * @return\n\t */\n\tpublic boolean isEnabled();\n}", "protected void validate() throws ConfigurationException\n {\n\n }", "@Override\n\tpublic void configure() {\n\t\t\n\t}", "private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}", "private void actionChangedEstimatorSettingsManual ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t}", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "public abstract void updatePendingConfiguration(Configuration config);", "public static void resetConfiguration() {\n\t\t// Ignore\n\t}", "private void preSyncConfiguration() {\n customPreSyncConfiguration.accept(caller, listener);\n }", "@Override\n public void configure() {\n }", "@Override\n protected void configure() {\n }", "public abstract boolean updateConfig();", "private void configureNode() {\n\t\twaitConfigData();\n\t\tpropagateConfigData();\n\n\t\tisConfigured = true;\n\t}", "public LimitConfiguration() {\n try {\n yellowLimit = new AlertLimit((float) 0.75);\n redLimit = new AlertLimit((float)0.9);\n } catch(Exception e){\n //This exception should not happen\n System.out.println(e.getMessage());\n }\n }", "@Override\r\n\tpublic void configHandler(Handlers me) {\n\r\n\t}", "boolean requiresConfigSchema();", "private Config() {\n }", "public ValidateConfiguration() {\n super();\n }" ]
[ "0.6181239", "0.6145979", "0.60686535", "0.5866051", "0.58380526", "0.5819316", "0.5803859", "0.5771466", "0.57652146", "0.571393", "0.56476265", "0.5594197", "0.5593568", "0.55763227", "0.5560751", "0.55376655", "0.5535459", "0.55329543", "0.5529645", "0.5520608", "0.5520474", "0.55083644", "0.5483952", "0.5470212", "0.54679525", "0.540311", "0.53886545", "0.5388041", "0.5346846", "0.531663", "0.53040105", "0.52970934", "0.52961856", "0.5293441", "0.52818716", "0.52512044", "0.5248926", "0.5247747", "0.5240486", "0.5231115", "0.5209", "0.51641494", "0.5158418", "0.5158163", "0.5151616", "0.5135081", "0.512834", "0.51177365", "0.51173395", "0.5113751", "0.5107221", "0.5107221", "0.5107221", "0.50976074", "0.5092401", "0.50899166", "0.5084409", "0.5079768", "0.5077483", "0.50766724", "0.5074536", "0.5074375", "0.50614095", "0.5061098", "0.5059694", "0.50549775", "0.50475836", "0.5046476", "0.50413775", "0.50342107", "0.5026931", "0.50219274", "0.5019581", "0.5019375", "0.501415", "0.50079376", "0.49995553", "0.49991542", "0.49962282", "0.4994263", "0.4994248", "0.4993413", "0.4992655", "0.49858734", "0.49820185", "0.49817392", "0.4980124", "0.49781957", "0.49745637", "0.4972819", "0.4964241", "0.49548987", "0.49541852", "0.49459484", "0.4939789", "0.49378613", "0.493222", "0.4930011", "0.49293032", "0.4927646" ]
0.59456253
3
private constructor for the SettingsWindow class.
private SettingsWindow() { loadData(); createListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "private Settings() { }", "private Settings() {}", "public SettingsPanel() {\n initComponents();\n }", "public Settings(){}", "private Settings()\n {}", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "public MainWindow()\n\t{\n\t\tsettingsWindow = new SettingsWindow(this);\n\t\t\n\t\tplayingField = null;\n\t\t\n\t\tthis.setTitle(\"Minesweeper\");\n\t\tthis.setResizable(false);\n\t\tthis.setJMenuBar(createMenuBar());\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tthis.newGame();\n\t\t\n\t\tthis.setVisible(true);\n\t}", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "public WorkspaceSettings() {\n super();\n }", "Settings ()\n {\n }", "public SettingsMenu(ChatWindow chatWindow)\n {\n super(Messages.getI18NString(\"settings\").getText());\n \n this.chatWindow = chatWindow;\n \n typingNotificationsItem.setName(\"typingNotifications\");\n sendingMessageCommandItem.setName(\"sendingMessageCommand\");\n autoPopupItem.setName(\"autopopup\");\n \n this.setMnemonic(Messages.getI18NString(\"settings\").getMnemonic());\n \n this.typingNotificationsItem.setMnemonic(\n typingNotifString.getMnemonic());\n \n this.sendingMessageCommandItem.setMnemonic(\n useCtrlEnterString.getMnemonic());\n \n this.autoPopupItem.setMnemonic(\n autoPopupString.getMnemonic());\n \n this.add(typingNotificationsItem);\n this.add(sendingMessageCommandItem);\n this.add(autoPopupItem);\n \n this.typingNotificationsItem.addActionListener(this);\n this.sendingMessageCommandItem.addActionListener(this);\n this.autoPopupItem.addActionListener(this);\n \n this.autoPopupItem.setSelected(\n ConfigurationManager.isAutoPopupNewMessage());\n \n this.typingNotificationsItem.setSelected(\n ConfigurationManager.isSendTypingNotifications());\n \n if(ConfigurationManager.getSendMessageCommand()\n == ConfigurationManager.ENTER_COMMAND) \n this.sendingMessageCommandItem.setSelected(true);\n else\n this.sendingMessageCommandItem.setSelected(false);\n \n }", "public static synchronized void getSettingsWindow() {\n if (WINDOW == null) {\n WINDOW = new JFrame(\"Settings\");\n WINDOW.setContentPane(new SettingsWindow().settingsPanel);\n WINDOW.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n WINDOW.pack();\n }\n WINDOW.setVisible(true);\n WINDOW.requestFocus();\n }", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "public SettingsForm() {\n initComponents();\n }", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "public PreferencesPanel() {\n initComponents();\n }", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "public Window() {\n initComponents();\n SetIcon();\n \n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "private TabPane createSettingsWindow() {\r\n\t\tint tabHeight = 380, tabWidth = 318, textfieldWidth = 120;\r\n\t\tColor settingsTitleColor = Color.DODGERBLUE;\r\n\t\tColor settingsTextColor = Color.ORANGE;\r\n\t\tFont settingsTitleFont = new Font(\"Aria\", 20);\r\n\t\tFont settingsFont = new Font(\"Aria\", 18);\r\n\t\tFont infoFont = new Font(\"Aria\", 16);\r\n\t\tInsets settingsInsets = new Insets(0, 0, 5, 0);\r\n\t\tInsets topSettingsInsets = new Insets(5, 0, 5, 0);\r\n\t\tInsets paddingAllAround = new Insets(5, 5, 5, 5);\r\n\t\tInsets separatorInsets = new Insets(5, 0, 5, 0);\r\n\t\tfeedbackSettingsLabel.setFont(settingsFont);\r\n\t\tfeedbackSimulationLabel.setFont(settingsFont);\r\n\t\tString updateHelp = \"Enter new values into the textfields\" + System.lineSeparator() + \"and click [enter] to update current values.\";\r\n\r\n//\t\t*** Settings>informationTab ***\r\n\t\tTab infoTab = new Tab(\"Information\");\r\n\t\tinfoTab.setClosable(false);\r\n\t\t\r\n\t\tVBox infoContent = new VBox();\r\n\t\tinfoContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tfinal Label proxim8Version = new Label(\"Proxim8 v3.3\");\r\n\t\tproxim8Version.setTextFill(settingsTitleColor);\r\n\t\tproxim8Version.setFont(new Font(\"Aria\", 24));\r\n\t\tfinal Label driveModeLabel = new Label(\"Drive mode:\");\r\n\t\tdriveModeLabel.setTextFill(settingsTitleColor);\r\n\t\tdriveModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text driveModeInfo = new Text(\"- measures the distance to the car infront of you\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t \t + \"- checks if your brakedistance < current distance\");\r\n\t\tdriveModeInfo.setFill(settingsTextColor);\r\n\t\tdriveModeInfo.setFont(infoFont);\r\n\t\tfinal Label blindspotLabel = new Label(\"Blindspot mode:\");\r\n\t\tblindspotLabel.setTextFill(settingsTitleColor);\r\n\t\tblindspotLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text blindspotModeInfo = new Text(\"- checks if there's a car in your blindzone\");\r\n\t\tblindspotModeInfo.setFill(settingsTextColor);\r\n\t\tblindspotModeInfo.setFont(infoFont);\r\n\t\tfinal Label parkingModeLabel = new Label(\"Parking mode:\");\r\n\t\tparkingModeLabel.setTextFill(settingsTitleColor);\r\n\t\tparkingModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text parkingModeInfo = new Text(\"- measures the distances around the car\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"- gives a warning incase the distance < door length\");\r\n\t\tparkingModeInfo.setFill(settingsTextColor);\r\n\t\tparkingModeInfo.setFont(infoFont);\r\n\t\t\r\n\t\tinfoContent.getChildren().addAll(proxim8Version, driveModeLabel, driveModeInfo, blindspotLabel, blindspotModeInfo, parkingModeLabel, parkingModeInfo);\r\n\t\tinfoTab.setContent(infoContent);\r\n\t\t\r\n//\t\t*** Settings>settingsTab ***\r\n\t\tTab settingsTab = new Tab(\"Settings\");\r\n\t\tsettingsTab.setClosable(false);\r\n\t\t\r\n\t\tVBox settingsContent = new VBox();\r\n\t\tsettingsContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tHBox getAndSetValues = new HBox();\r\n\t\tgetAndSetValues.setPadding(paddingAllAround);\r\n//\t\tSettings>settingsTab>currentValues\r\n\t\tGridPane currentValues = new GridPane();\r\n\t\tfinal Label currentValuesLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label door = new Label(DOOR_LENGTH + \": \");\r\n\t\tdoor.setTextFill(settingsTextColor);\r\n\t\tdoor.setFont(settingsFont);\r\n\t\tdoor.setPadding(topSettingsInsets);\r\n\t\tfinal Label doorValue = new Label(String.valueOf(carData.getDoorLength()) + \"m\");\r\n\t\tdoorValue.setTextFill(settingsTextColor);\r\n\t\tdoorValue.setFont(settingsFont);\r\n\t\tfinal Label rearDoor = new Label(REAR_DOOR_LENGTH + \": \");\r\n\t\trearDoor.setTextFill(settingsTextColor);\r\n\t\trearDoor.setFont(settingsFont);\r\n\t\trearDoor.setPadding(settingsInsets);\r\n\t\tfinal Label rearDoorValue = new Label(String.valueOf(carData.getRearDoorLength()) + \"m\");\r\n\t\trearDoorValue.setTextFill(settingsTextColor);\r\n\t\trearDoorValue.setFont(settingsFont);\r\n\t\tfinal Label blindZone = new Label(BLIND_ZONE_VALUE + \": \");\r\n\t\tblindZone.setTextFill(settingsTextColor);\r\n\t\tblindZone.setFont(settingsFont);\r\n\t\tblindZone.setPadding(settingsInsets);\r\n\t\tfinal Label blindZoneValue = new Label(String.valueOf(carData.getBlindZoneValue()) + \"m\");\r\n\t\tblindZoneValue.setTextFill(settingsTextColor);\r\n\t\tblindZoneValue.setFont(settingsFont);\r\n\t\tfinal Label frontParkDist = new Label(FRONT_PARK_DISTANCE + \": \");\r\n\t\tfrontParkDist.setTextFill(settingsTextColor);\r\n\t\tfrontParkDist.setFont(settingsFont);\r\n\t\tfrontParkDist.setPadding(settingsInsets);\r\n\t\tfinal Label frontParkDistValue = new Label(String.valueOf(carData.getFrontDistParking()) + \"m\");\r\n\t\tfrontParkDistValue.setTextFill(settingsTextColor);\r\n\t\tfrontParkDistValue.setFont(settingsFont);\r\n\t\tfrontParkDistValue.setPadding(settingsInsets);\r\n\t\t\r\n\t\tcurrentValues.add(currentValuesLabel, 0, 0);\r\n\t\tcurrentValues.add(door, 0, 1);\r\n\t\tcurrentValues.add(doorValue, 1, 1);\r\n\t\t\r\n\t\tcurrentValues.add(rearDoor, 0, 2);\r\n\t\tcurrentValues.add(rearDoorValue, 1, 2);\r\n\t\t\r\n\t\tcurrentValues.add(blindZone, 0, 3);\r\n\t\tcurrentValues.add(blindZoneValue, 1, 3);\r\n\t\t\r\n\t\tcurrentValues.add(frontParkDist, 0, 4);\r\n\t\tcurrentValues.add(frontParkDistValue, 1, 4);\r\n\t\t\r\n//\t\tSettings>settingTab>updateFields\r\n\t\tVBox updateFields = new VBox();\r\n\t\tupdateFields.setPadding(paddingAllAround);\r\n\t\tfinal Label updateLabel = new Label(\"Set new value:\");\r\n\t\tupdateLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField doorLengthField = new TextField();\r\n\t\tdoorLengthField.setPromptText(\"meter\");\r\n\t\tdoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\tdoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(doorValue, feedbackSettingsLabel, doorLengthField, DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField rearDoorLengthField = new TextField();\r\n\t\trearDoorLengthField.setPromptText(\"meter\");\r\n\t\trearDoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\trearDoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(rearDoorValue, feedbackSettingsLabel, rearDoorLengthField, REAR_DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField blindZoneValueField = new TextField();\r\n\t\tblindZoneValueField.setMaxWidth(textfieldWidth);\r\n\t\tblindZoneValueField.setPromptText(\"meter\");\r\n\t\tblindZoneValueField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(blindZoneValue, feedbackSettingsLabel, blindZoneValueField, BLIND_ZONE_VALUE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField frontParkDistField = new TextField();\r\n\t\tfrontParkDistField.setMaxWidth(textfieldWidth);\r\n\t\tfrontParkDistField.setPromptText(\"meter\");\r\n\t\tfrontParkDistField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(frontParkDistValue, feedbackSettingsLabel, frontParkDistField, FRONT_PARK_DISTANCE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFields.getChildren().addAll(updateLabel, doorLengthField, rearDoorLengthField, blindZoneValueField, frontParkDistField);\r\n\t\t\r\n\t\tRegion regionSettings = new Region();\r\n\t\tregionSettings.setPrefWidth(25);\r\n\t\tgetAndSetValues.getChildren().addAll(currentValues, regionSettings, updateFields);\r\n\t\t\r\n\t\tSeparator settingsSeparator = new Separator();\r\n\t\tsettingsSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text howToUpdate = new Text(updateHelp);\r\n\t\thowToUpdate.setFill(settingsTextColor);\r\n\t\thowToUpdate.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator settingsSeparator2 = new Separator();\r\n\t\tsettingsSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsettingsContent.getChildren().addAll(getAndSetValues, settingsSeparator, howToUpdate, settingsSeparator2, feedbackSettingsLabel);\r\n\t\tsettingsTab.setContent(settingsContent);\r\n\t\t\r\n//\t\t*** Settings>simulate ***\r\n\t\tTab simulateTab = new Tab(\"Simulation\");\r\n\t\tsimulateTab.setClosable(false);\r\n\t\t\r\n\t\tVBox simulateContent = new VBox();\r\n\t\tsimulateContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\t\r\n\t\tHBox getAndSetSim = new HBox();\r\n\t\tgetAndSetSim.setPadding(paddingAllAround);\r\n//\t\tSettings>simulate>currentValues\r\n\t\tGridPane currentValuesSim = new GridPane();\r\n\t\tfinal Label currentValuesSimLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesSimLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label topSpeed = new Label(TOP_SPEED + \": \");\r\n\t\ttopSpeed.setTextFill(settingsTextColor);\r\n\t\ttopSpeed.setFont(settingsFont);\r\n\t\ttopSpeed.setPadding(topSettingsInsets);\r\n\t\tfinal Label topSpeedValue = new Label(String.valueOf(carData.getTopSpeed()) + \"km/h\");\r\n\t\ttopSpeedValue.setTextFill(settingsTextColor);\r\n\t\ttopSpeedValue.setFont(settingsFont);\r\n\t\t\r\n\t\tcurrentValuesSim.add(currentValuesSimLabel, 0, 0);\r\n\t\tcurrentValuesSim.add(topSpeed, 0, 1);\r\n\t\tcurrentValuesSim.add(topSpeedValue, 1, 1);\r\n\t\t\r\n//\t\tSettings>simulate>updateFields\r\n\t\tVBox updateFieldsSim = new VBox();\r\n\t\tfinal Label updateSimLabel = new Label(\"Set new value:\");\r\n\t\tupdateSimLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField topSpeedField = new TextField();\r\n\t\ttopSpeedField.setMaxWidth(textfieldWidth);\r\n\t\ttopSpeedField.setPromptText(\"km/h\");\r\n\t\ttopSpeedField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(topSpeedValue, feedbackSimulationLabel, topSpeedField, TOP_SPEED, Double.valueOf(carSpeed), 999.0);\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFieldsSim.getChildren().addAll(updateSimLabel, topSpeedField);\r\n\t\t\r\n\t\tRegion simulateRegion = new Region();\r\n\t\tsimulateRegion.setPrefWidth(25);\r\n\t\tgetAndSetSim.getChildren().addAll(currentValuesSim, simulateRegion, updateFieldsSim);\r\n\t\t\r\n\t\tSeparator simulationSeparator = new Separator();\r\n\t\tsimulationSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text simulateInfo = new Text(updateHelp);\r\n\t\tsimulateInfo.setFill(settingsTextColor);\r\n\t\tsimulateInfo.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator simulationSeparator2 = new Separator();\r\n\t\tsimulationSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsimulateContent.getChildren().addAll(getAndSetSim, simulationSeparator, simulateInfo, simulationSeparator2, feedbackSimulationLabel);\r\n\t\tsimulateTab.setContent(simulateContent);\r\n\t\t\r\n//\t\t*** Settings>checkBoxTab ***\r\n\t\tTab extraFeaturesTab = new Tab(\"Extra features\");\r\n\t\textraFeaturesTab.setClosable(false);\r\n\t\t\r\n\t\tVBox extraFeaturesContent = new VBox();\r\n\t\textraFeaturesContent.setPrefSize(tabWidth, tabHeight);\r\n\t\textraFeaturesContent.setPadding(paddingAllAround);\r\n\t\t\r\n\t\tfinal Label extraFeaturesLabel = new Label(\"Extra features\");\r\n\t\textraFeaturesLabel.setTextFill(settingsTitleColor);\r\n\t\textraFeaturesLabel.setFont(settingsTitleFont);\r\n\t\textraFeaturesLabel.setPadding(topSettingsInsets);\r\n\t\t\r\n\t\tSeparator separatorExtraFeatures = new Separator();\r\n\t\tseparatorExtraFeatures.setPadding(separatorInsets);\r\n\t\t\r\n\t\tInsets checkInsets = new Insets(5, 0, 5, 5);\r\n\t\tfinal CheckBox smartBrake = new CheckBox(\"Smart brake\");\r\n\t\tsmartBrake.setSelected(smartBrakeActivated);\r\n\t\tsmartBrake.setFont(settingsFont);\r\n\t\tsmartBrake.setTextFill(settingsTextColor);\r\n\t\tsmartBrake.setPadding(checkInsets);\r\n\t\tsmartBrake.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tsmartBrakeActivated = ! smartBrakeActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox blindspotAlways = new CheckBox(\"Blindspot always\");\r\n\t\tblindspotAlways.setSelected(blindspotAlwaysActivated);\r\n\t\tblindspotAlways.setFont(settingsFont);\r\n\t\tblindspotAlways.setTextFill(settingsTextColor);\r\n\t\tblindspotAlways.setPadding(checkInsets);\r\n\t\tblindspotAlways.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tblindspotAlwaysActivated = ! blindspotAlwaysActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox audioWarning = new CheckBox(\"Audio warning\");\r\n\t\taudioWarning.setSelected(audioWarningActivated);\r\n\t\taudioWarning.setFont(settingsFont);\r\n\t\taudioWarning.setTextFill(settingsTextColor);\r\n\t\taudioWarning.setPadding(checkInsets);\r\n\t\taudioWarning.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\taudioWarningActivated = ! audioWarningActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\textraFeaturesContent.getChildren().addAll(extraFeaturesLabel, separatorExtraFeatures, smartBrake, blindspotAlways); //, audioWarning);\r\n\t\textraFeaturesTab.setContent(extraFeaturesContent);\r\n\t\t\r\n\t\t\r\n\t\tTabPane settingsWindow = new TabPane();\r\n\t\tsettingsWindow.setVisible(false);\r\n\t\tsettingsWindow.getTabs().addAll(infoTab, settingsTab, simulateTab, extraFeaturesTab);\r\n\t\treturn settingsWindow;\r\n\t}", "protected Main(Settings settings) {\r\n this.settings = settings; \r\n configureUI();\r\n build();\r\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n }", "public SettingsFragment(){}", "public PreferencesDialog() {\r\n\t\tWindow window;\r\n\t\t// if is mac\r\n\t\tif (SystemInfo.isMac()) {\r\n\t\t\twindow = new JFrame(ResourceManager.getString(\"preferences.title\"));\r\n\t\t\t// dispose this dialog if presse close button\r\n\t\t\t((JFrame) window).setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\t// no resizable\r\n\t\t\t((JFrame) window).setResizable(false);\r\n\t\t} else {\r\n\t\t\twindow = new JDialog(MainWindow.getInstance(), ResourceManager.getString(\"preferences.title\"), true);\r\n\t\t\t// dispose this dialog if presse close button\r\n\t\t\t((JDialog) window).setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\r\n\t\t\t// no resizable\r\n\t\t\t((JDialog) window).setResizable(false);\r\n\t\t}\r\n\r\n\t\t// set dialog icon\r\n\t\twindow.setIconImage(ResourceManager.getIcon(\"/icons/16x16/preferences.png\").getImage());\r\n\t\t// contruct dialog UI\r\n\t\tinitComponents(window);\r\n\t\twindow.setMinimumSize(new Dimension(300, 300));\r\n\t\t// adjust window preferred size\r\n\t\twindow.pack();\r\n\t\t// center of screen\r\n\t\twindow.setLocationRelativeTo(null);\r\n\t\t// show\r\n\t\twindow.setVisible(true);\r\n\t}", "private NKE_BrowserWindow() {}", "public ChannelSettingsWindow(MainWindow m) {\n initComponents(); \n \n mainWin = m;\n channelList = m.getChannelList();\n \n //update the channel selection JComboBox with correct channel options\n updateChannelSelection();\n }", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LetterSettingView() {\r\n initComponents();\r\n }", "public FDRSettingsPanel() {\n initComponents();\n }", "public Setting() {\n }", "public Setting() {\n\t}", "public JpSetting() {\n initComponents();\n fillThongtin();\n }", "public PreferencesPanel()\n {\n initComponents();\n CB_CHECK_NEW.setSelected( Main.get_long_prop(Preferences.CHECK_NEWS) > 0);\n CB_CACHE_MAILS.setSelected( Main.get_long_prop(Preferences.CACHE_MAILFILES) > 0);\n\n\n\n COMBO_UI.removeAllItems();\n ArrayList<String> ui_names = UI_Generic.get_ui_names();\n for (int i = 0; i < ui_names.size(); i++)\n {\n String string = ui_names.get(i);\n COMBO_UI.addItem(string);\n }\n\n last_ui = (int)Main.get_long_prop(Preferences.UI, 0l);\n if (last_ui < COMBO_UI.getItemCount())\n COMBO_UI.setSelectedIndex( last_ui );\n else\n COMBO_UI.setSelectedIndex( 0 );\n\n String ds = Main.get_prop( Preferences.DEFAULT_STATION );\n if (ds != null && ds.length() > 0)\n {\n ParseToken pt = new ParseToken(ds);\n String ip = pt.GetString(\"IP:\");\n long po = pt.GetLongValue(\"PO:\");\n boolean only_this = pt.GetBoolean(\"OT:\");\n TXT_SERVER_IP.setText(ip);\n if (po > 0)\n TXT_SERVER_PORT.setText(Long.toString(po) );\n CB_NO_SCANNING.setSelected(only_this);\n }\n\n String l_code = Main.get_prop( Preferences.COUNTRYCODE, \"DE\");\n\n if (l_code.compareTo(\"DE\") == 0)\n COMBO_LANG.setSelectedIndex(0);\n if (l_code.compareTo(\"EN\") == 0)\n COMBO_LANG.setSelectedIndex(1); \n }", "void openSettings() {\n\t}", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "public SettingsFragment() {\n // Empty constructor required for fragment subclasses\n }", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "@Override\n protected void windowInit ()\n {\n }", "public PreferencesUI(FileObject serviceXml) {\n super(WindowManager.getDefault().getMainWindow(), true);\n Frame parent = WindowManager.getDefault().getMainWindow();\n initComponents();\n setLocation(parent.getX() +\n (parent.getWidth() - getWidth()) / 2, parent.getY() + \n (parent.getHeight() - getHeight()) / 2);\n \n getRootPane().setDefaultButton(cancelButton);\n initData(serviceXml);\n \n setVisible(true);\n }", "public void init() {\n this.window = new PWWindow(this.project);\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "@Override\n protected void initSettings (GameSettings settings) {\n settings.setWidth(15 * 70);\n settings.setHeight(10* 70);\n settings.setVersion(\"0.1\");\n settings.setTitle(\"Platformer Game\");\n settings.setMenuEnabled(true);\n settings.setMenuKey(KeyCode.ESCAPE);\n }", "public ToolsPaletteWindow()\n {\n super( TOOLS, false, false );\n setContentPane( this.content );\n createUI();\n }", "public HeaderSettingsPage()\n {\n initialize();\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "public XmlSettingsDialog(java.awt.Frame parent) {\n\t\tsuper(parent, true);\n\t\tinitComponents(); UIUtil.initComponents(this);\n\t\tsetModal(true);\n\t\tUIUtil.setInitialWindowLocation(this, parent, 100, 150);\n\t\tOk.setIcon(UIUtil.scaleIcon(Ok, okIcon));\n\t\tcancelButton.setIcon(UIUtil.scaleIcon(cancelButton, cancelIcon));\n\t\tdatePattern.getEditor().addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdateExamples();\n\t\t\t}\n\t\t});\n\t\ttimestampPattern.getEditor().addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdateExamples();\n\t\t\t}\n\t\t});\n\t\tdatePattern.setModel(new DefaultComboBoxModel(datePatternOptions));\n\t\ttimestampPattern.setModel(new DefaultComboBoxModel(timePatternOptions));\n\t\ttimestampPattern.getEditor().setItem(\"yyyy.MM.dd.-H.mm.ss \");\n\t\ttimestampExample.setText(\"yyyy.MM.dd.-H.mm.ss \");\n\t\tpack();\n\t}", "public GroupChatPreferencePanel() {\n // Build the UI\n createUI();\n }", "public Window()\n\t{\n\t\t//Appel du constructeur de jFrame\n\t\tsuper();\n\n\t\tsetTitle(\"Administration des livres\");\n\t\tsetSize(nWindowWidth, nWindowHeight);\n\t\tsetLocationRelativeTo(null);// Centré\n\t\tsetResizable(false); // non redimentionnable\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// Action du bouton close\n\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tsetContentPane(panel);\n\t\t\n\n\t\t//Mise en place des onglets\n\t\tpConfig = new PageConfig();\n\t\tpBookPage = new PageBook();\n\t\t\n\t\tptTabs = new JTabbedPane();\n\t\tptTabs.setBounds(0, 0, nWindowWidth, nWindowHeight - 29);\n\t\tptTabs.add(\"Configuration\", pConfig);\n\t\tptTabs.add(\"Livres\", pBookPage);\n\t\tptTabs.addChangeListener(this);\n\t\tpanel.add(ptTabs);\n\t\t//\n\n\t\t// Actualisation de la page de configuration\n\t\tpConfig.update();\n\t}", "TvShowSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n\n // UI initializations\n initComponents();\n initDataBindings();\n\n // logic initializations\n btnClearTraktTvShows.addActionListener(e -> {\n Object[] options = { BUNDLE.getString(\"Button.yes\"), BUNDLE.getString(\"Button.no\") };\n int confirm = JOptionPane.showOptionDialog(null, BUNDLE.getString(\"Settings.trakt.cleartvshows.hint\"),\n BUNDLE.getString(\"Settings.trakt.cleartvshows\"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);\n if (confirm == JOptionPane.YES_OPTION) {\n TmmTask task = new ClearTraktTvTask(false, true);\n TmmTaskManager.getInstance().addUnnamedTask(task);\n }\n });\n\n btnPresetXbmc.addActionListener(evt -> settings.setDefaultSettingsForXbmc());\n btnPresetKodi.addActionListener(evt -> settings.setDefaultSettingsForKodi());\n btnPresetMediaPortal1.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetMediaPortal2.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetPlex.addActionListener(evt -> settings.setDefaultSettingsForPlex());\n\n buildCheckBoxes();\n }", "public PaperSettingsJPanel() {\n initComponents();\n }", "public GetSettings() {\r\n }", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "private SettingsGroupManager() {}", "public SwitchYardSettingsPropertyPage() {\n super();\n noDefaultAndApplyButton();\n }", "public StatisticsWindow() {\n initComponents();\n }", "private PreferencesModule() {\n }", "public MainWindow() {\n\t\t\tthis.initUI();\n\t\t\t\n\t\t}", "protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private BluetoothSettings() {\n }", "private void setupSettingWindow()\n {\n setGUI.setWindowListener(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n player1Color = setGUI.getPlayer1Color();\n player2Color = setGUI.getPlayer2Color();\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "public UserSettingsActivity(){\r\n\r\n }", "public Window()\n {\n // sets title\n super(\"Awesome Calculator\");\n\n // generated design code\n initComponents();\n\n conversions.addListSelectionListener(this);\n\n // sets up the map\n buttons = new JButton[]{\n zero, one, two, three, four,\n five, six, seven, eight, nine\n };\n\n // stores the initial button color\n init = zero.getBackground();\n\n // center frame on screen\n setLocationRelativeTo(null);\n\n // don't have to worry about component focus\n KeyboardFocusManager.getCurrentKeyboardFocusManager()\n .addKeyEventDispatcher(new KeyEventDispatcher()\n {\n @Override\n public boolean dispatchKeyEvent(KeyEvent event)\n {\n if (event.getID() == KeyEvent.KEY_PRESSED)\n {\n keyPressed(event);\n }\n\n return false;\n }\n }\n );\n }", "public PowerContactSettings () {\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "public SearchSettings() { }", "public MainWindow() {\r\n\t\tinitialize();\r\n\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "public client_settings_Fragment()\n {\n }", "private void init_settings() {\n\t\tSettings.setDifficulty(Difficulty.NORMAL);\n\t\tSettings.setGravity(BowmanConstants.DEFAULT_GRAVITY);\n\t}", "private UI()\n {\n this(null, null);\n }", "private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public MainWindow() {\n\t\tsuper(\"Petri Networks\");\n\n\t\tthis.createMenuBar();\n\n\t\tthis.createToolbar();\n\n\t\tthis.createOperationsPanel();\n\n\t\tthis.createNetworksPanel();\n\n\t}", "static public void initSettings() {\n iSettings = BitmapSettings.getSettings();\n iSettings.load();\n }", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public DeviceSettingsPanel(JDialog creator) {\n\n this.creator = creator;\n\n $$$setupUI$$$();\n setLayout(new BorderLayout());\n add(contentPane, BorderLayout.CENTER);\n\n /* Warning label */\n warningLabel.setFont(warningLabel.getFont().deriveFont(Font.BOLD, 14.0F));\n warningLabel.setForeground(new Color(0x993333));\n\n /* load values from Setting */\n this.acceleration.setValue(Settings.getHandlerAcceleration());\n this.deceleration.setValue(Settings.getHandlerDeceleration());\n this.axialAFPosition.setValue(Settings.getHandlerAxialAFPosition());\n this.transverseYAFPosition.setValue(Settings.getHandlerTransverseYAFPosition());\n this.measurementPosition.setValue(Settings.getHandlerMeasurementPosition());\n this.velocity.setValue(Settings.getHandlerVelocity());\n this.measurementVelocity.setValue(Settings.getHandlerMeasurementVelocity());\n this.xAxisCalibration.setValue(Settings.getMagnetometerXAxisCalibration());\n this.yAxisCalibration.setValue(Settings.getMagnetometerYAxisCalibration());\n this.zAxisCalibration.setValue(Settings.getMagnetometerZAxisCalibration());\n this.demagRamp.addItem(new Integer(3));\n this.demagRamp.addItem(new Integer(5));\n this.demagRamp.addItem(new Integer(7));\n this.demagRamp.addItem(new Integer(9));\n int rampValue = Settings.getDegausserRamp();\n if (rampValue == 3 || rampValue == 5 || rampValue == 7 || rampValue == 9) {\n demagRamp.setSelectedItem(new Integer(rampValue));\n } else {\n demagRamp.setSelectedItem(new Integer(3));\n }\n for (int i = 1; i < 10; i++) {\n this.demagDelay.addItem(new Integer(i));\n }\n this.demagDelay.setSelectedItem(new Integer(Settings.getDegausserDelay()));\n this.sampleLoadPosition.setValue(Settings.getHandlerSampleLoadPosition());\n this.backgroundPosition.setValue(Settings.getHandlerBackgroundPosition());\n this.rotation.setValue(Settings.getHandlerRotation());\n this.rotationVelocity.setValue(Settings.getHandlerRotationVelocity());\n this.rotationAcc.setValue(Settings.getHandlerAcceleration());\n this.rotationDec.setValue(Settings.getHandlerDeceleration());\n this.maximumField.setValue(Settings.getDegausserMaximumField());\n\n /* Format Number-only Text Fields */\n MyFormatterFactory factory = new MyFormatterFactory();\n acceleration.setFormatterFactory(factory);\n deceleration.setFormatterFactory(factory);\n velocity.setFormatterFactory(factory);\n measurementVelocity.setFormatterFactory(factory);\n transverseYAFPosition.setFormatterFactory(factory);\n axialAFPosition.setFormatterFactory(factory);\n sampleLoadPosition.setFormatterFactory(factory);\n backgroundPosition.setFormatterFactory(factory);\n measurementPosition.setFormatterFactory(factory);\n rotation.setFormatterFactory(factory);\n rotationVelocity.setFormatterFactory(factory);\n rotationAcc.setFormatterFactory(factory);\n rotationDec.setFormatterFactory(factory);\n xAxisCalibration.setFormatterFactory(factory);\n yAxisCalibration.setFormatterFactory(factory);\n zAxisCalibration.setFormatterFactory(factory);\n maximumField.setFormatterFactory(factory);\n\n /* Find all ports system has */\n Enumeration ports = CommPortIdentifier.getPortIdentifiers();\n\n ArrayList<String> portList = new ArrayList<String>();\n\n if (!ports.hasMoreElements()) {\n System.err.println(\"No comm ports found!\");\n } else {\n while (ports.hasMoreElements()) {\n /*\n * Get the specific port\n */\n CommPortIdentifier portId = (CommPortIdentifier) ports.nextElement();\n\n if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {\n portList.add(portId.getName());\n }\n }\n }\n Collections.sort(portList);\n\n /* Add all port to lists */\n for (int i = 0; i < portList.size(); i++) {\n this.magnetometerPort.addItem(portList.get(i));\n this.handlerPort.addItem(portList.get(i));\n this.demagnetizerPort.addItem(portList.get(i));\n }\n\n /* Select currently used port */\n this.magnetometerPort.setSelectedItem(Settings.getMagnetometerPort());\n this.handlerPort.setSelectedItem(Settings.getHandlerPort());\n this.demagnetizerPort.setSelectedItem(Settings.getDegausserPort());\n\n /* Buttons */\n saveButton.setAction(this.getSaveAction());\n getSaveAction().setEnabled(false);\n cancelButton.setAction(this.getCancelAction());\n\n /* Update listener for FormattedTextFields */\n DocumentListener saveListener = new DocumentListener() {\n public void insertUpdate(DocumentEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n\n public void removeUpdate(DocumentEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n\n public void changedUpdate(DocumentEvent e) {\n }\n };\n\n /* Update listener for Comboboxes */\n ActionListener propertiesActionListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n };\n\n /* Lets set all listeners for changes */\n magnetometerPort.addActionListener(propertiesActionListener);\n demagnetizerPort.addActionListener(propertiesActionListener);\n handlerPort.addActionListener(propertiesActionListener);\n\n xAxisCalibration.getDocument().addDocumentListener(saveListener);\n yAxisCalibration.getDocument().addDocumentListener(saveListener);\n zAxisCalibration.getDocument().addDocumentListener(saveListener);\n\n demagRamp.addActionListener(propertiesActionListener);\n demagDelay.addActionListener(propertiesActionListener);\n\n acceleration.getDocument().addDocumentListener(saveListener);\n deceleration.getDocument().addDocumentListener(saveListener);\n velocity.getDocument().addDocumentListener(saveListener);\n measurementVelocity.getDocument().addDocumentListener(saveListener);\n\n transverseYAFPosition.getDocument().addDocumentListener(saveListener);\n axialAFPosition.getDocument().addDocumentListener(saveListener);\n sampleLoadPosition.getDocument().addDocumentListener(saveListener);\n backgroundPosition.getDocument().addDocumentListener(saveListener);\n measurementPosition.getDocument().addDocumentListener(saveListener);\n\n rotation.getDocument().addDocumentListener(saveListener);\n rotationVelocity.addActionListener(propertiesActionListener);\n rotationAcc.addActionListener(propertiesActionListener);\n rotationDec.addActionListener(propertiesActionListener);\n\n maximumField.addActionListener(propertiesActionListener);\n\n saveButton.setEnabled(correctValues());\n }", "public PreferencesDialog (JFrame owner)\n {\n this (owner, \"OPENMARKOV User Preferences\",\n OpenMarkovPreferences.OPENMARKOV_NODE_PREFERENCES, true/*\n * ,\n * OpenMarkovPreferences\n * .\n * OPENMARKOV_KERNEL_PREFERENCES\n * , false\n */);\n }", "public TutorialWindow() {\n initComponents();\n }", "HeaderSettingsPage(SettingsContainer container)\n {\n super(container);\n initialize();\n }", "private WindowManager() \r\n\t{\r\n\t\tinitFrame();\r\n\t}", "protected void createSettingsComponents() {\r\n periodTimeComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_PERIOD_TIME, MIN_PERIOD_TIME, MAX_PERIOD_TIME, 1 ) );\r\n maxNumberOfPlayersComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAX_NUMBER_OF_PLAYERS, MIN_MAX_NUMBER_OF_PLAYERS, MAX_MAX_NUMBER_OF_PLAYERS, 1 ) );\r\n mapWidthComponent = new JComboBox( MAP_WIDTH_NAMES );\r\n mapHeightComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAP_HEIGHT, MIN_MAP_HEIGHT, MAX_MAP_HEIGHT, 1 ) );\r\n welcomeMessageComponent = new JTextArea( 10, 20 );\r\n gameTypeComponent = new JComboBox( GAME_TYPE_NAMES );\r\n isKillLimitComponent = new JCheckBox( \"Kill limit:\" );\r\n killLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_KILL_LIMIT, MIN_KILL_LIMIT, MAX_KILL_LIMIT, 1 ) );\r\n isTimeLimitComponent = new JCheckBox( \"Time limit:\" );\r\n timeLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_TIME_LIMIT, MIN_TIME_LIMIT, MAX_TIME_LIMIT, 1 ) );\r\n passwordComponent = new JTextField( 10 );\r\n amountOfWallRubblesComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL_RUBBLES, MIN_AMOUNT_OF_WALL_RUBBLES, MAX_AMOUNT_OF_WALL_RUBBLES, 1 ) );\r\n amountOfBloodComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_BLOOD, MIN_AMOUNT_OF_BLOOD, MAX_AMOUNT_OF_BLOOD, 1 ) );\r\n amountOfWallComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL, MIN_AMOUNT_OF_WALL, MAX_AMOUNT_OF_WALL, 1 ) );\r\n amountOfStoneComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_STONE, MIN_AMOUNT_OF_STONE, MAX_AMOUNT_OF_STONE, 1 ) );\r\n amountOfWaterComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WATER, MIN_AMOUNT_OF_WATER, MAX_AMOUNT_OF_WATER, 1 ) );\r\n }", "void setSettings(ControlsSettings settings);", "private SettingConfirmationHelper() {\n }", "public ChatWindow()\n {\n if (!ConfigurationUtils.isWindowDecorated())\n this.setUndecorated(true);\n\n this.addWindowFocusListener(this);\n\n this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\n //If in mode TABBED_CHAT_WINDOW initialize the tabbed pane\n if(ConfigurationUtils.isMultiChatWindowEnabled())\n chatTabbedPane = new ConversationTabbedPane();\n\n menuBar = new MessageWindowMenuBar(this);\n\n contactPhotoPanel = new ContactPhotoPanel();\n\n this.setJMenuBar(menuBar);\n\n toolbarPanel = createToolBar();\n\n this.getContentPane().add(toolbarPanel, BorderLayout.NORTH);\n this.getContentPane().add(mainPanel, BorderLayout.CENTER);\n this.getContentPane().add(statusBarPanel, BorderLayout.SOUTH);\n\n this.initPluginComponents();\n\n this.setKeybindingInput(KeybindingSet.Category.CHAT);\n this.addKeybindingAction( \"chat-nextTab\",\n new ForwardTabAction());\n this.addKeybindingAction( \"chat-previousTab\",\n new BackwordTabAction());\n this.addKeybindingAction( \"chat-copy\",\n new CopyAction());\n this.addKeybindingAction( \"chat-paste\",\n new PasteAction());\n this.addKeybindingAction( \"chat-openSmileys\",\n new OpenSmileyAction());\n this.addKeybindingAction( \"chat-openHistory\",\n new OpenHistoryAction());\n this.addKeybindingAction( \"chat-close\",\n new CloseAction());\n\n this.addWindowListener(new ChatWindowAdapter());\n\n int width = GuiActivator.getResources()\n .getSettingsInt(\"impl.gui.CHAT_WINDOW_WIDTH\");\n int height = GuiActivator.getResources()\n .getSettingsInt(\"impl.gui.CHAT_WINDOW_HEIGHT\");\n\n this.setSize(width, height);\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "public CatalogSettings() {\n init();\n }", "public MainWindow() {\r\n\t\tsuper(null);\r\n try {\r\n FileVersionUtil.initializeVersionMap();\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(null, \"读取年度生产二维码数目错误\", \"启动出错\", JOptionPane.WARNING_MESSAGE);\r\n System.exit(0);\r\n return;\r\n }\r\n\t\tsetShellStyle(SWT.CLOSE | SWT.TITLE | SWT.MIN);\r\n\t\tcreateActions();\r\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\r\n\t\taddMenuBar();\r\n\t\taddStatusLine();\r\n\t}", "public StandardDialog() {\n super();\n init();\n }", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "public GameWindow() {\n\t\tthis.initWindow();\n\t}", "public MaintenanceWindowsProperties() {\n }", "void getSettings(ControlsSettings settings);", "public BaciWindow() {\r\n}", "public OptionsPanel() {\n initComponents();\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(BaseActivity.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 }", "private SystemPropertiesRemoteSettings() {}" ]
[ "0.82723075", "0.77874386", "0.77874386", "0.7678926", "0.7665038", "0.74947155", "0.74775773", "0.7346051", "0.73008037", "0.7259311", "0.7205227", "0.71077645", "0.7101889", "0.70955503", "0.6964701", "0.69579834", "0.6868823", "0.6823173", "0.6816366", "0.68073803", "0.6752812", "0.67458624", "0.6716924", "0.6692173", "0.66774046", "0.6636432", "0.6628583", "0.6616692", "0.65129536", "0.65087324", "0.6493519", "0.6485035", "0.64633983", "0.64496255", "0.6446068", "0.64408153", "0.64237326", "0.6423371", "0.6399665", "0.6398485", "0.6397929", "0.6389348", "0.63850486", "0.63807607", "0.6377428", "0.6330901", "0.63144577", "0.6313858", "0.63135356", "0.6306674", "0.6289167", "0.6288655", "0.6273856", "0.6267936", "0.6266667", "0.6249508", "0.6248617", "0.6248288", "0.62469125", "0.6226271", "0.6223389", "0.62134886", "0.6206637", "0.6204271", "0.6189181", "0.61691767", "0.6162962", "0.6161572", "0.61599773", "0.6158277", "0.6155544", "0.6145129", "0.61417484", "0.61391133", "0.61374396", "0.6130889", "0.61138153", "0.61109656", "0.6103811", "0.609895", "0.6079786", "0.60778576", "0.6077422", "0.60667515", "0.60609436", "0.6054755", "0.60542446", "0.60541743", "0.60525423", "0.605175", "0.6048573", "0.60176086", "0.6010621", "0.60059726", "0.600411", "0.5965369", "0.5958935", "0.59456104", "0.5945051", "0.59421045" ]
0.8744482
0
Returns the SettingsWindow, will create one if there is none.
public static synchronized void getSettingsWindow() { if (WINDOW == null) { WINDOW = new JFrame("Settings"); WINDOW.setContentPane(new SettingsWindow().settingsPanel); WINDOW.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); WINDOW.pack(); } WINDOW.setVisible(true); WINDOW.requestFocus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SettingsWindow() {\n loadData();\n createListeners();\n }", "public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}", "public static Window getInstance() {\n if (mInstance == null) {\n mInstance = new Window();\n }\n return mInstance;\n }", "public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }", "private TabPane createSettingsWindow() {\r\n\t\tint tabHeight = 380, tabWidth = 318, textfieldWidth = 120;\r\n\t\tColor settingsTitleColor = Color.DODGERBLUE;\r\n\t\tColor settingsTextColor = Color.ORANGE;\r\n\t\tFont settingsTitleFont = new Font(\"Aria\", 20);\r\n\t\tFont settingsFont = new Font(\"Aria\", 18);\r\n\t\tFont infoFont = new Font(\"Aria\", 16);\r\n\t\tInsets settingsInsets = new Insets(0, 0, 5, 0);\r\n\t\tInsets topSettingsInsets = new Insets(5, 0, 5, 0);\r\n\t\tInsets paddingAllAround = new Insets(5, 5, 5, 5);\r\n\t\tInsets separatorInsets = new Insets(5, 0, 5, 0);\r\n\t\tfeedbackSettingsLabel.setFont(settingsFont);\r\n\t\tfeedbackSimulationLabel.setFont(settingsFont);\r\n\t\tString updateHelp = \"Enter new values into the textfields\" + System.lineSeparator() + \"and click [enter] to update current values.\";\r\n\r\n//\t\t*** Settings>informationTab ***\r\n\t\tTab infoTab = new Tab(\"Information\");\r\n\t\tinfoTab.setClosable(false);\r\n\t\t\r\n\t\tVBox infoContent = new VBox();\r\n\t\tinfoContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tfinal Label proxim8Version = new Label(\"Proxim8 v3.3\");\r\n\t\tproxim8Version.setTextFill(settingsTitleColor);\r\n\t\tproxim8Version.setFont(new Font(\"Aria\", 24));\r\n\t\tfinal Label driveModeLabel = new Label(\"Drive mode:\");\r\n\t\tdriveModeLabel.setTextFill(settingsTitleColor);\r\n\t\tdriveModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text driveModeInfo = new Text(\"- measures the distance to the car infront of you\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t \t + \"- checks if your brakedistance < current distance\");\r\n\t\tdriveModeInfo.setFill(settingsTextColor);\r\n\t\tdriveModeInfo.setFont(infoFont);\r\n\t\tfinal Label blindspotLabel = new Label(\"Blindspot mode:\");\r\n\t\tblindspotLabel.setTextFill(settingsTitleColor);\r\n\t\tblindspotLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text blindspotModeInfo = new Text(\"- checks if there's a car in your blindzone\");\r\n\t\tblindspotModeInfo.setFill(settingsTextColor);\r\n\t\tblindspotModeInfo.setFont(infoFont);\r\n\t\tfinal Label parkingModeLabel = new Label(\"Parking mode:\");\r\n\t\tparkingModeLabel.setTextFill(settingsTitleColor);\r\n\t\tparkingModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text parkingModeInfo = new Text(\"- measures the distances around the car\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"- gives a warning incase the distance < door length\");\r\n\t\tparkingModeInfo.setFill(settingsTextColor);\r\n\t\tparkingModeInfo.setFont(infoFont);\r\n\t\t\r\n\t\tinfoContent.getChildren().addAll(proxim8Version, driveModeLabel, driveModeInfo, blindspotLabel, blindspotModeInfo, parkingModeLabel, parkingModeInfo);\r\n\t\tinfoTab.setContent(infoContent);\r\n\t\t\r\n//\t\t*** Settings>settingsTab ***\r\n\t\tTab settingsTab = new Tab(\"Settings\");\r\n\t\tsettingsTab.setClosable(false);\r\n\t\t\r\n\t\tVBox settingsContent = new VBox();\r\n\t\tsettingsContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tHBox getAndSetValues = new HBox();\r\n\t\tgetAndSetValues.setPadding(paddingAllAround);\r\n//\t\tSettings>settingsTab>currentValues\r\n\t\tGridPane currentValues = new GridPane();\r\n\t\tfinal Label currentValuesLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label door = new Label(DOOR_LENGTH + \": \");\r\n\t\tdoor.setTextFill(settingsTextColor);\r\n\t\tdoor.setFont(settingsFont);\r\n\t\tdoor.setPadding(topSettingsInsets);\r\n\t\tfinal Label doorValue = new Label(String.valueOf(carData.getDoorLength()) + \"m\");\r\n\t\tdoorValue.setTextFill(settingsTextColor);\r\n\t\tdoorValue.setFont(settingsFont);\r\n\t\tfinal Label rearDoor = new Label(REAR_DOOR_LENGTH + \": \");\r\n\t\trearDoor.setTextFill(settingsTextColor);\r\n\t\trearDoor.setFont(settingsFont);\r\n\t\trearDoor.setPadding(settingsInsets);\r\n\t\tfinal Label rearDoorValue = new Label(String.valueOf(carData.getRearDoorLength()) + \"m\");\r\n\t\trearDoorValue.setTextFill(settingsTextColor);\r\n\t\trearDoorValue.setFont(settingsFont);\r\n\t\tfinal Label blindZone = new Label(BLIND_ZONE_VALUE + \": \");\r\n\t\tblindZone.setTextFill(settingsTextColor);\r\n\t\tblindZone.setFont(settingsFont);\r\n\t\tblindZone.setPadding(settingsInsets);\r\n\t\tfinal Label blindZoneValue = new Label(String.valueOf(carData.getBlindZoneValue()) + \"m\");\r\n\t\tblindZoneValue.setTextFill(settingsTextColor);\r\n\t\tblindZoneValue.setFont(settingsFont);\r\n\t\tfinal Label frontParkDist = new Label(FRONT_PARK_DISTANCE + \": \");\r\n\t\tfrontParkDist.setTextFill(settingsTextColor);\r\n\t\tfrontParkDist.setFont(settingsFont);\r\n\t\tfrontParkDist.setPadding(settingsInsets);\r\n\t\tfinal Label frontParkDistValue = new Label(String.valueOf(carData.getFrontDistParking()) + \"m\");\r\n\t\tfrontParkDistValue.setTextFill(settingsTextColor);\r\n\t\tfrontParkDistValue.setFont(settingsFont);\r\n\t\tfrontParkDistValue.setPadding(settingsInsets);\r\n\t\t\r\n\t\tcurrentValues.add(currentValuesLabel, 0, 0);\r\n\t\tcurrentValues.add(door, 0, 1);\r\n\t\tcurrentValues.add(doorValue, 1, 1);\r\n\t\t\r\n\t\tcurrentValues.add(rearDoor, 0, 2);\r\n\t\tcurrentValues.add(rearDoorValue, 1, 2);\r\n\t\t\r\n\t\tcurrentValues.add(blindZone, 0, 3);\r\n\t\tcurrentValues.add(blindZoneValue, 1, 3);\r\n\t\t\r\n\t\tcurrentValues.add(frontParkDist, 0, 4);\r\n\t\tcurrentValues.add(frontParkDistValue, 1, 4);\r\n\t\t\r\n//\t\tSettings>settingTab>updateFields\r\n\t\tVBox updateFields = new VBox();\r\n\t\tupdateFields.setPadding(paddingAllAround);\r\n\t\tfinal Label updateLabel = new Label(\"Set new value:\");\r\n\t\tupdateLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField doorLengthField = new TextField();\r\n\t\tdoorLengthField.setPromptText(\"meter\");\r\n\t\tdoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\tdoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(doorValue, feedbackSettingsLabel, doorLengthField, DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField rearDoorLengthField = new TextField();\r\n\t\trearDoorLengthField.setPromptText(\"meter\");\r\n\t\trearDoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\trearDoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(rearDoorValue, feedbackSettingsLabel, rearDoorLengthField, REAR_DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField blindZoneValueField = new TextField();\r\n\t\tblindZoneValueField.setMaxWidth(textfieldWidth);\r\n\t\tblindZoneValueField.setPromptText(\"meter\");\r\n\t\tblindZoneValueField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(blindZoneValue, feedbackSettingsLabel, blindZoneValueField, BLIND_ZONE_VALUE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField frontParkDistField = new TextField();\r\n\t\tfrontParkDistField.setMaxWidth(textfieldWidth);\r\n\t\tfrontParkDistField.setPromptText(\"meter\");\r\n\t\tfrontParkDistField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(frontParkDistValue, feedbackSettingsLabel, frontParkDistField, FRONT_PARK_DISTANCE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFields.getChildren().addAll(updateLabel, doorLengthField, rearDoorLengthField, blindZoneValueField, frontParkDistField);\r\n\t\t\r\n\t\tRegion regionSettings = new Region();\r\n\t\tregionSettings.setPrefWidth(25);\r\n\t\tgetAndSetValues.getChildren().addAll(currentValues, regionSettings, updateFields);\r\n\t\t\r\n\t\tSeparator settingsSeparator = new Separator();\r\n\t\tsettingsSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text howToUpdate = new Text(updateHelp);\r\n\t\thowToUpdate.setFill(settingsTextColor);\r\n\t\thowToUpdate.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator settingsSeparator2 = new Separator();\r\n\t\tsettingsSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsettingsContent.getChildren().addAll(getAndSetValues, settingsSeparator, howToUpdate, settingsSeparator2, feedbackSettingsLabel);\r\n\t\tsettingsTab.setContent(settingsContent);\r\n\t\t\r\n//\t\t*** Settings>simulate ***\r\n\t\tTab simulateTab = new Tab(\"Simulation\");\r\n\t\tsimulateTab.setClosable(false);\r\n\t\t\r\n\t\tVBox simulateContent = new VBox();\r\n\t\tsimulateContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\t\r\n\t\tHBox getAndSetSim = new HBox();\r\n\t\tgetAndSetSim.setPadding(paddingAllAround);\r\n//\t\tSettings>simulate>currentValues\r\n\t\tGridPane currentValuesSim = new GridPane();\r\n\t\tfinal Label currentValuesSimLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesSimLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label topSpeed = new Label(TOP_SPEED + \": \");\r\n\t\ttopSpeed.setTextFill(settingsTextColor);\r\n\t\ttopSpeed.setFont(settingsFont);\r\n\t\ttopSpeed.setPadding(topSettingsInsets);\r\n\t\tfinal Label topSpeedValue = new Label(String.valueOf(carData.getTopSpeed()) + \"km/h\");\r\n\t\ttopSpeedValue.setTextFill(settingsTextColor);\r\n\t\ttopSpeedValue.setFont(settingsFont);\r\n\t\t\r\n\t\tcurrentValuesSim.add(currentValuesSimLabel, 0, 0);\r\n\t\tcurrentValuesSim.add(topSpeed, 0, 1);\r\n\t\tcurrentValuesSim.add(topSpeedValue, 1, 1);\r\n\t\t\r\n//\t\tSettings>simulate>updateFields\r\n\t\tVBox updateFieldsSim = new VBox();\r\n\t\tfinal Label updateSimLabel = new Label(\"Set new value:\");\r\n\t\tupdateSimLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField topSpeedField = new TextField();\r\n\t\ttopSpeedField.setMaxWidth(textfieldWidth);\r\n\t\ttopSpeedField.setPromptText(\"km/h\");\r\n\t\ttopSpeedField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(topSpeedValue, feedbackSimulationLabel, topSpeedField, TOP_SPEED, Double.valueOf(carSpeed), 999.0);\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFieldsSim.getChildren().addAll(updateSimLabel, topSpeedField);\r\n\t\t\r\n\t\tRegion simulateRegion = new Region();\r\n\t\tsimulateRegion.setPrefWidth(25);\r\n\t\tgetAndSetSim.getChildren().addAll(currentValuesSim, simulateRegion, updateFieldsSim);\r\n\t\t\r\n\t\tSeparator simulationSeparator = new Separator();\r\n\t\tsimulationSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text simulateInfo = new Text(updateHelp);\r\n\t\tsimulateInfo.setFill(settingsTextColor);\r\n\t\tsimulateInfo.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator simulationSeparator2 = new Separator();\r\n\t\tsimulationSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsimulateContent.getChildren().addAll(getAndSetSim, simulationSeparator, simulateInfo, simulationSeparator2, feedbackSimulationLabel);\r\n\t\tsimulateTab.setContent(simulateContent);\r\n\t\t\r\n//\t\t*** Settings>checkBoxTab ***\r\n\t\tTab extraFeaturesTab = new Tab(\"Extra features\");\r\n\t\textraFeaturesTab.setClosable(false);\r\n\t\t\r\n\t\tVBox extraFeaturesContent = new VBox();\r\n\t\textraFeaturesContent.setPrefSize(tabWidth, tabHeight);\r\n\t\textraFeaturesContent.setPadding(paddingAllAround);\r\n\t\t\r\n\t\tfinal Label extraFeaturesLabel = new Label(\"Extra features\");\r\n\t\textraFeaturesLabel.setTextFill(settingsTitleColor);\r\n\t\textraFeaturesLabel.setFont(settingsTitleFont);\r\n\t\textraFeaturesLabel.setPadding(topSettingsInsets);\r\n\t\t\r\n\t\tSeparator separatorExtraFeatures = new Separator();\r\n\t\tseparatorExtraFeatures.setPadding(separatorInsets);\r\n\t\t\r\n\t\tInsets checkInsets = new Insets(5, 0, 5, 5);\r\n\t\tfinal CheckBox smartBrake = new CheckBox(\"Smart brake\");\r\n\t\tsmartBrake.setSelected(smartBrakeActivated);\r\n\t\tsmartBrake.setFont(settingsFont);\r\n\t\tsmartBrake.setTextFill(settingsTextColor);\r\n\t\tsmartBrake.setPadding(checkInsets);\r\n\t\tsmartBrake.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tsmartBrakeActivated = ! smartBrakeActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox blindspotAlways = new CheckBox(\"Blindspot always\");\r\n\t\tblindspotAlways.setSelected(blindspotAlwaysActivated);\r\n\t\tblindspotAlways.setFont(settingsFont);\r\n\t\tblindspotAlways.setTextFill(settingsTextColor);\r\n\t\tblindspotAlways.setPadding(checkInsets);\r\n\t\tblindspotAlways.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tblindspotAlwaysActivated = ! blindspotAlwaysActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox audioWarning = new CheckBox(\"Audio warning\");\r\n\t\taudioWarning.setSelected(audioWarningActivated);\r\n\t\taudioWarning.setFont(settingsFont);\r\n\t\taudioWarning.setTextFill(settingsTextColor);\r\n\t\taudioWarning.setPadding(checkInsets);\r\n\t\taudioWarning.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\taudioWarningActivated = ! audioWarningActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\textraFeaturesContent.getChildren().addAll(extraFeaturesLabel, separatorExtraFeatures, smartBrake, blindspotAlways); //, audioWarning);\r\n\t\textraFeaturesTab.setContent(extraFeaturesContent);\r\n\t\t\r\n\t\t\r\n\t\tTabPane settingsWindow = new TabPane();\r\n\t\tsettingsWindow.setVisible(false);\r\n\t\tsettingsWindow.getTabs().addAll(infoTab, settingsTab, simulateTab, extraFeaturesTab);\r\n\t\treturn settingsWindow;\r\n\t}", "@Override\n\tpublic ISettingsView getSettingsView() {\n\t\tLog.debug(\"getSettingsView is null ......................\");\n\t\treturn null;\n\t}", "public static Window getWindow() {\r\n\t\treturn window;\r\n\t}", "private JPanel getBalloonSettingsButtonPane() {\n if (balloonSettingsButtonPane == null) {\n FlowLayout flowLayout = new FlowLayout();\n flowLayout.setHgap(25);\n balloonSettingsButtonPane = new JPanel();\n balloonSettingsButtonPane.setLayout(flowLayout);\n balloonSettingsButtonPane.setPreferredSize(new java.awt.Dimension(35, 35));\n balloonSettingsButtonPane.add(getAddButton(), null);\n balloonSettingsButtonPane.add(getCopyButton(), null);\n balloonSettingsButtonPane.add(getEditButton(), null);\n }\n return balloonSettingsButtonPane;\n }", "public SettingsScreen getSettingsScreen() {\n return settingsScreen;\n }", "public Window getWindow() {\n Window w = null;\n if(this instanceof Container) {\n Node root = ((Container)this).getRoot();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n if(this instanceof Widget) {\n Node root = ((Widget)this).getGraphics();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n return w==null ? Window.getActive() : w;\n }", "public static SettingsFragment newInstance() {\n return new SettingsFragment();\n }", "public static Settings get() {\n return INSTANCE;\n }", "public static SettingsFragment newInstance() {\n SettingsFragment fragment = new SettingsFragment();\n return fragment;\n }", "public static SettingsFragment newInstance() {\n SettingsFragment fragment = new SettingsFragment();\n return fragment;\n }", "@Override\n\tpublic Window createWindow() {\n\t\tLightVisualThemeWindow lightVisualThemeWindow = new LightVisualThemeWindow();\n\t\treturn lightVisualThemeWindow;\n\t}", "public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public final TWindow getWindow() {\n return window;\n }", "public window get(String sname) {\n return getWindow(sname);\n }", "GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }", "public Java2DGameWindow getGameWindow() {\r\n\t\t// if we've yet to create the game window, create the appropriate one\r\n\t\tif (window == null) {\r\n\t\t\twindow = new Java2DGameWindow();\r\n\t\t}\r\n\t\treturn window;\r\n\t}", "public static PreferencesView createPreferencesView() {\n // Retrieve application preferences and attach them to their view\n // (This instance must be instanciated after dependencies)\n final LinkedHashMap<String, JPanel> panels = new LinkedHashMap<String, JPanel>(2);\n panels.put(\"General settings\", new PreferencePanel());\n\n final PreferencesView preferencesView = new PreferencesView(getFrame(), Preferences.getInstance(), panels);\n preferencesView.init();\n\n return preferencesView;\n }", "public RegWindow getRegisterWindow()\n {\n synchronized (this.lock)\n {\n return this.registerWindow;\n }\n }", "public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }", "public MainWindow()\n\t{\n\t\tsettingsWindow = new SettingsWindow(this);\n\t\t\n\t\tplayingField = null;\n\t\t\n\t\tthis.setTitle(\"Minesweeper\");\n\t\tthis.setResizable(false);\n\t\tthis.setJMenuBar(createMenuBar());\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tthis.newGame();\n\t\t\n\t\tthis.setVisible(true);\n\t}", "public static WindowManager getInstance()\r\n\t{\r\n\t\treturn instance;\r\n\t}", "public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }", "public Window getWindow() {\n return window;\n }", "public Window getWindow() {\r\n return window;\r\n }", "void getSettings(ControlsSettings settings);", "public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}", "public Window getWindow() { return window; }", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "public PreferencesDialog() {\r\n\t\tWindow window;\r\n\t\t// if is mac\r\n\t\tif (SystemInfo.isMac()) {\r\n\t\t\twindow = new JFrame(ResourceManager.getString(\"preferences.title\"));\r\n\t\t\t// dispose this dialog if presse close button\r\n\t\t\t((JFrame) window).setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\t// no resizable\r\n\t\t\t((JFrame) window).setResizable(false);\r\n\t\t} else {\r\n\t\t\twindow = new JDialog(MainWindow.getInstance(), ResourceManager.getString(\"preferences.title\"), true);\r\n\t\t\t// dispose this dialog if presse close button\r\n\t\t\t((JDialog) window).setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\r\n\t\t\t// no resizable\r\n\t\t\t((JDialog) window).setResizable(false);\r\n\t\t}\r\n\r\n\t\t// set dialog icon\r\n\t\twindow.setIconImage(ResourceManager.getIcon(\"/icons/16x16/preferences.png\").getImage());\r\n\t\t// contruct dialog UI\r\n\t\tinitComponents(window);\r\n\t\twindow.setMinimumSize(new Dimension(300, 300));\r\n\t\t// adjust window preferred size\r\n\t\twindow.pack();\r\n\t\t// center of screen\r\n\t\twindow.setLocationRelativeTo(null);\r\n\t\t// show\r\n\t\twindow.setVisible(true);\r\n\t}", "public static InitImageWindow getSingleton() {\n if (singleton == null) {\n singleton = new InitImageWindow();\n }\n\n return singleton;\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}", "private Window getWindow() {\r\n return root.getScene().getWindow();\r\n }", "public JDialog getWindow() {\n\t\treturn window;\n\t}", "public static SimpleChatUI connectWindow(Conversation convo) {\n SimpleChatUI useWindow = windows.get(0);\n if (useWindow.convo != null) {\n // need a new window\n useWindow = new SimpleChatUI();\n useWindow.setVisible(true);\n windows.add(useWindow);\n }\n useWindow.convo = convo;\n return useWindow;\n }", "public static MainWindow getInstance ()\r\n {\r\n return INSTANCE;\r\n }", "public MainWindow getMainWindow() {\n\t\treturn mainWindow;\n\t}", "@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}", "Settings getSettings();", "public static synchronized SettingsStore getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SettingsStore();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }", "public window getWindow(String sname) {\n return (window) windows.getObject(sname);\n }", "@Override\n public WindowFactory getWindowFactory() {\n return null;\n }", "public String getMainWindow() {\r\n\t\treturn null;\r\n\t}", "public static SingleSettingsEditor createSingleSettingsEditor(\n Map<Settings.SettingKey, Object> settingsToEdit) {\n GenericObjectEditor.registerEditors();\n PropertyEditorManager.registerEditor(Color.class, ColorEditor.class);\n return new SingleSettingsEditor(settingsToEdit);\n }", "public static MainWindow getInstance(GUIManager manager, int width, int height, BufferedImage defaultBackgroundImage){\n\t\tif(mainWindow == null)\n\t\t\tmainWindow = new MainWindow(manager, width, height, defaultBackgroundImage);\n\t\treturn mainWindow;\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(getString(R.string.dialog_permission_title));\n builder.setMessage(getString(R.string.dialog_permission_message));\n builder.setPositiveButton(getString(R.string.go_to_settings), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(android.R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(BaseActivity.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 void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(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 public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Add_Event.this.openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "public static int showSingleSettingsEditor(Settings settings,\n String settingsID, String settingsName, JComponent parent, int width,\n int height) throws IOException {\n final SingleSettingsEditor sse =\n createSingleSettingsEditor(settings.getSettings(settingsID));\n sse.setPreferredSize(new Dimension(width, height));\n\n final JOptionPane pane = new JOptionPane(sse, JOptionPane.PLAIN_MESSAGE,\n JOptionPane.OK_CANCEL_OPTION);\n\n // There appears to be a bug in Java > 1.6 under Linux that, more often than\n // not, causes a sun.awt.X11.XException to occur when the following code\n // to make the dialog resizable is used. A workaround is to set the\n // suppressSwingDropSupport property to true (but this has to be done\n // at JVM startup, and setting it programatically, no matter how early,\n // does not seem to work). The hacky workaround here is to check for\n // a nix OS and disable the resizing, unless the user has specifically\n // used the -DsuppressSwingDropSupport=true JVM flag.\n //\n // See: http://bugs.java.com/view_bug.do?bug_id=7027598\n // and: http://mipav.cit.nih.gov/pubwiki/index.php/FAQ:_Why_do_I_get_an_exception_when_running_MIPAV_via_X11_forwarding_on_Linux%3F\n String os = System.getProperty(\"os.name\").toLowerCase();\n String suppressSwingDropSupport =\n System.getProperty(\"suppressSwingDropSupport\", \"false\");\n boolean nix = os.contains(\"nix\") || os.contains(\"nux\") || os.contains(\"aix\");\n if (!nix || suppressSwingDropSupport.equalsIgnoreCase(\"true\")) {\n pane.addHierarchyListener(new HierarchyListener() {\n @Override public void hierarchyChanged(HierarchyEvent e) {\n Window window = SwingUtilities.getWindowAncestor(pane);\n if (window instanceof Dialog) {\n Dialog dialog = (Dialog) window;\n if (!dialog.isResizable()) {\n dialog.setResizable(true);\n }\n }\n }\n });\n }\n JDialog dialog =\n pane.createDialog((JComponent) parent, settingsName + \" Settings\");\n dialog.show();\n Object resultO = pane.getValue();\n\n /*\n * int result = JOptionPane.showConfirmDialog(parent, sse, settingsName +\n * \" Settings\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE,\n * wekaIcon);\n */\n\n int result = -1;\n if (resultO == null) {\n result = JOptionPane.CLOSED_OPTION;\n } else if (resultO instanceof Integer) {\n result = (Integer) resultO;\n }\n\n if (result == JOptionPane.OK_OPTION) {\n sse.applyToSettings();\n settings.saveSettings();\n }\n\n if (result == JOptionPane.OK_OPTION) {\n sse.applyToSettings();\n settings.saveSettings();\n }\n\n return result;\n }", "public Class<?> getSettingsClass()\n {\n return null;\n }", "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 }", "com.google.apps.alertcenter.v1beta1.Settings getSettings();", "public SharedPreferences GetSettings() {\n return mSettings;\n }", "public static JFrame getWindow()\r\n {\r\n\treturn window;\r\n }", "private Pane createSettings() {\n HBox row = new HBox(20);\n row.setAlignment(Pos.CENTER);\n Label langIcon = createIcon(\"icons/language.png\");\n Label themeIcon = createIcon(\"icons/theme.png\");\n\n ComboBox<Language> langSelect = new ComboBox<>();\n langSelect.getItems().addAll(UIController.Language.values());\n langSelect.setValue(UIController.Language.values()[0]);\n langSelect.setOnAction(e -> changeLanguage(langSelect.getValue()));\n\n ComboBox<Theme> themeSelect = new ComboBox<>();\n themeSelect.getItems().addAll(UIController.Theme.values());\n themeSelect.setValue(UIController.Theme.values()[0]);\n themeSelect.setOnAction(e -> changeTheme(themeSelect.getValue()));\n\n row.getChildren().addAll(langIcon, langSelect, themeIcon, themeSelect);\n\n return row;\n }", "IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();", "public static int showSingleSettingsEditor(Settings settings,\n String settingsID, String settingsName, JComponent parent)\n throws IOException {\n return showSingleSettingsEditor(settings, settingsID, settingsName, parent,\n 600, 300);\n }", "static NKE_BrowserWindow fromId(int id) {\n return windowArray.get(id);\n }", "public SettingsPanel() {\n initComponents();\n }", "public Window getWindow() {\n\t\treturn selectionList.getScene().getWindow();\n\t}", "public MainWindow getMainWindow(){\n\t\treturn mainWindow;\n\t}", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Settings loadDefault() {\n return new Settings();\n }", "public static GameWindow getGame() {\n return _gameWindow;\n }", "private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "public static int showApplicationSettingsEditor(Settings settings,\n GUIApplication application) throws IOException {\n\n final SettingsEditor settingsEditor =\n new SettingsEditor(settings, application);\n settingsEditor.setPreferredSize(new Dimension(800, 350));\n\n final JOptionPane pane = new JOptionPane(settingsEditor,\n JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);\n\n // There appears to be a bug in Java > 1.6 under Linux that, more often than\n // not, causes a sun.awt.X11.XException to occur when the following code\n // to make the dialog resizable is used. A workaround is to set the\n // suppressSwingDropSupport property to true (but this has to be done\n // at JVM startup, and setting it programatically, no matter how early,\n // does not seem to work). The hacky workaround here is to check for\n // a nix OS and disable the resizing, unless the user has specifically\n // used the -DsuppressSwingDropSupport=true JVM flag.\n //\n // See: http://bugs.java.com/view_bug.do?bug_id=7027598\n // and: http://mipav.cit.nih.gov/pubwiki/index.php/FAQ:_Why_do_I_get_an_exception_when_running_MIPAV_via_X11_forwarding_on_Linux%3F\n String os = System.getProperty(\"os.name\").toLowerCase();\n String suppressSwingDropSupport =\n System.getProperty(\"suppressSwingDropSupport\", \"false\");\n boolean nix = os.contains(\"nix\") || os.contains(\"nux\") || os.contains(\"aix\");\n if (!nix || suppressSwingDropSupport.equalsIgnoreCase(\"true\")) {\n pane.addHierarchyListener(new HierarchyListener() {\n @Override public void hierarchyChanged(HierarchyEvent e) {\n Window window = SwingUtilities.getWindowAncestor(pane);\n if (window instanceof Dialog) {\n Dialog dialog = (Dialog) window;\n if (!dialog.isResizable()) {\n dialog.setResizable(true);\n }\n }\n }\n });\n }\n JDialog dialog = pane.createDialog((JComponent) application,\n application.getApplicationName() + \" Settings\");\n dialog.show();\n Object resultO = pane.getValue();\n int result = -1;\n if (resultO == null) {\n result = JOptionPane.CLOSED_OPTION;\n } else if (resultO instanceof Integer) {\n result = (Integer) resultO;\n }\n\n if (result == JOptionPane.OK_OPTION) {\n settingsEditor.applyToSettings();\n settings.saveSettings();\n }\n\n return result;\n }", "void createWindow();", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "public Window getParentWindow() {\r\n\t\t// // I traverse the windows hierarchy to find this component's parent\r\n\t\t// window\r\n\t\t// // if it's in an application, then it'll be that frame\r\n\t\t// // if it's in an applet, then it'll be the browser window\r\n\r\n\t\t// // unfortunately if it's an applet, the popup window will have \"Java\r\n\t\t// Applet Window\" label\r\n\t\t// // at the bottom...nothing i can do (for now)\r\n\r\n\t\tWindow window = null;\r\n\r\n\t\tComponent component = this;\r\n\t\twhile (component.getParent() != null) {\r\n\r\n\t\t\tif (component instanceof Window)\r\n\t\t\t\tbreak;\r\n\t\t\tcomponent = component.getParent();\r\n\t\t}\r\n\r\n\t\tif (component instanceof Window)\r\n\t\t\twindow = (Window) component;\r\n\r\n\t\treturn (window);\r\n\t}", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public GuiStem getGuiFolderWithSettings() {\n if (this.grouperObjectTypesAttributeValue == null) {\n return null;\n }\n \n String stemId = this.grouperObjectTypesAttributeValue.getObjectTypeOwnerStemId();\n Stem stem = GrouperDAOFactory.getFactory().getStem().findByUuid(stemId, false);\n \n if (stem == null) {\n return null;\n }\n \n return new GuiStem(stem);\n }", "@Override\n public GeneralOrthoMclSettingsVisualPanel getComponent() {\n if (component == null) {\n component = new GeneralOrthoMclSettingsVisualPanel();\n\n }\n return component;\n }", "private Menu createSettingsMenu() {\r\n\t\tMenu serviceMenu = new Menu(\"Settings\");\r\n\r\n\t\tMenuItem networkSettings = new MenuItem(\"Service\");\r\n\t\tnetworkSettings.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tDaemon.editRunningService(localPeer);\r\n\t\t\t\tchangeDispatcher.stateChanged(new ChangeEvent(localPeer));\r\n\t\t\t}\r\n\t\t});\r\n\t\tserviceMenu.add(networkSettings);\r\n\r\n\t\tMenuItem securitySettings = new MenuItem(\"Backup\");\r\n\t\tsecuritySettings.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tserviceMenu.add(securitySettings);\r\n\r\n\t\treturn serviceMenu;\r\n\t}", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "private Window getDialogOwner(final Node node)\n {\n if (node != null) {\n final Scene scene = node.getScene();\n if (scene != null) {\n final Window window = scene.getWindow();\n if (window != null) return window;\n }\n }\n return task.getPrimaryStage();\n }", "public void createPopupWindow() {\r\n \t//\r\n }", "public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }", "public WindowState getParentWindow() {\n return this.mParentWindow;\n }", "private AlertDialog getWirelessSettingsDialog(final String message, final String buttonText) {\n\t\tfinal AlertDialog.Builder builder = new AlertDialog.Builder(NFCMediaShare.this);\n\t\tbuilder.setMessage(message).setCancelable(true)\n\t\t\t\t.setPositiveButton(buttonText, new DialogInterface.OnClickListener() {\n//\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final DialogInterface arg0, final int arg1) {\n\t\t\t\t\t\tstartActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnCancelListener(new OnCancelListener() {\n//\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancel(final DialogInterface arg0) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\treturn builder.create();\n\t}", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "public JFrame getWindow() {\n\t\treturn window;\n\t}", "public void openSettingsPage(Class<? extends SettingsPanel> settingClass) {\n\t\topenTab(FS2Tab.SETTINGS);\n\t\t((SettingsTab)instantiatedTabs.get(FS2Tab.SETTINGS)).showSetting(settingClass);\n\t}", "static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}", "public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}" ]
[ "0.6849998", "0.6836359", "0.6580317", "0.65514064", "0.6420975", "0.62767535", "0.62634075", "0.62191546", "0.61740094", "0.6162664", "0.6142389", "0.6108356", "0.6095771", "0.59891665", "0.5987086", "0.5987086", "0.5961905", "0.5913773", "0.5879011", "0.58645093", "0.58590525", "0.5857977", "0.5852582", "0.5843933", "0.584175", "0.58352757", "0.5818538", "0.5749622", "0.5748174", "0.5737689", "0.5715459", "0.57126933", "0.57053363", "0.5699367", "0.56817824", "0.56817824", "0.56817824", "0.56817824", "0.56817824", "0.56817824", "0.56817824", "0.5676646", "0.5646992", "0.56370497", "0.56079125", "0.56051475", "0.560034", "0.5588411", "0.55708605", "0.55668485", "0.5544386", "0.5537857", "0.5537315", "0.55284065", "0.54963195", "0.5494657", "0.5463436", "0.5460255", "0.5457916", "0.5450005", "0.5447479", "0.5443319", "0.54428697", "0.5435868", "0.54340273", "0.54280615", "0.5428055", "0.5419758", "0.5405872", "0.5366548", "0.53631747", "0.53608024", "0.5355741", "0.53434485", "0.5337922", "0.53286797", "0.5327431", "0.5319031", "0.5317016", "0.52970916", "0.5294997", "0.52908325", "0.52869713", "0.52869713", "0.5284523", "0.5282691", "0.5264976", "0.52528226", "0.523261", "0.5211385", "0.5210098", "0.5205364", "0.5200266", "0.51981175", "0.5197027", "0.5170619", "0.51694995", "0.5168127", "0.5167846", "0.515836" ]
0.78779465
0
Adds button functionality to the GUI
private void createListeners() { btGeneralSave.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { saveGeneralData(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }", "public void buttonClicked();", "private void setAddButtonUI() {\n addButton = new JButton(\"Add\");\n addButton.setForeground(new Color(247, 37, 133));\n addButton.addActionListener(this);\n addButton.setContentAreaFilled(false);\n addButton.setFocusPainted(false);\n addButton.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n addButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n }", "private void createButton(){\n addButton();\n addStartButton();\n }", "private void addButton()\n {\n JButton button = new JButton();\n button.setSize(200, 30);\n button.setName(\"login\");\n button.setAction(new CreateUserAction());\n add(button);\n button.setText(\"Login\");\n }", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "void configureButtonListener();", "@Override\n\tprotected void buildButton() {\n\t\t\n\t}", "private void showSubmitBtn(){\n\t\tmainWindow.addLayer(submitBtn, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t}", "public void makeObtainButton() {\r\n JButton obtain = new JButton(\"Obtain a new champion using Riot Points\");\r\n new Button(obtain, main);\r\n// obtain.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// obtain.setPreferredSize(new Dimension(2500, 100));\r\n// obtain.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n obtain.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n obtainChampionUsingRiotPoints();\r\n }\r\n });\r\n// main.add(obtain);\r\n }", "@Override\n\tprotected void initAddButton() {\n addBtn = addButton(\"newBtn\", TwlLocalisationKeys.ADD_BEAT_TYPE_TOOLTIP, new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tnew AddEditBeatTypePanel(true, null, BeatTypesList.this).run(); // adding\n\t\t\t\t}\n\t }); \t\t\n\t}", "private void showButtonDemo(){\n Button submitButton = new Button(\"Submit\");\n\n Button cancelButton = new Button(\"Cancel\");\n\n submitButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Question2Query ans = new Question2Query();\n String val= \"Sorry, we are unable to answer\";\n try {\n val = ans.ask(text.getText());\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n statusLabel.setText(\"\\n\"+val);\n }\n });\n\n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n statusLabel.setText(\"Cancel Button clicked.\");\n }\n });\n\n //controlPanel.add(okButton);\n controlPanel.add(submitButton);\n controlPanel.add(cancelButton);\n mainFrame.setVisible(true);\n }", "private void buttonInitiation() {\n submit = new JButton(\"Submit\");\n submit.setBounds(105, 250, 90, 25);\n this.add(submit);\n goBack = new JButton(\"Return to Main Menu\");\n goBack.setBounds(205, 250, 200, 25);\n this.add(goBack);\n }", "public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }", "public void sButton() {\n\n\n\n }", "@Override\n\tpublic void setButtonAction() {\n\t}", "void createButton(Button main){\n\t\tActions handler = new Actions();\r\n\t\tmain.setOnAction(handler);\r\n\t\tmain.setFont(font);\r\n\t\t//sets button preference dimensions and label \r\n\t\tmain.setPrefWidth(100);\r\n\t\tmain.setPrefHeight(60);\r\n\t\tmain.setText(\"Close\");\r\n\t}", "ButtonDemo() \n {\n // construct a Button\n bChange = new JButton(\"Click Me!\"); \n\n // add the button to the JFrame\n getContentPane().add( bChange ); \n }", "@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }", "void enablButtonListener();", "@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "private JButton getJButtonInto() {\r\n\t\tif (jButtonInto == null) {\r\n\t\t\tjButtonInto = new JButton();\r\n\t\t\tjButtonInto.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonInto.setText(\"数据入库\");\r\n\t\t\tjButtonInto.setBounds(new Rectangle(512, 517, 70, 23));\r\n\t\t\tjButtonInto.addMouseListener(new MouseAdapter() {\r\n\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\r\n\t\t\t\t\tDataIntoGui.this.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonInto;\r\n\t}", "private void displaySubmitButton() {\n RegularButton submitButton = new RegularButton(\"SUBMIT\", 1000, 600);\n submitButton.setOnAction(e -> handleSubmit());\n\n sceneNodes.getChildren().add(submitButton);\n }", "public void clickAddButton() {\n\t\tfilePicker.fileManButton(locAddButton);\n\t}", "public void makeAcquireButton() {\r\n JButton acquire = new JButton(\"Acquire a new champion with Blue Essence\");\r\n new Button(acquire, main);\r\n// acquire.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// acquire.setPreferredSize(new Dimension(2500, 100));\r\n// acquire.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n acquire.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n acquireChampionUsingBlueEssence();\r\n }\r\n });\r\n// main.add(acquire);\r\n }", "public void actionButton(String text);", "public void settingBtnClick() {\n\t}", "private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}", "public void makeGetRPButton() {\r\n JButton getRP = new JButton(\"Check if a champion can be purchased with Riot Points\");\r\n new Button(getRP, main);\r\n// getRP.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// getRP.setPreferredSize(new Dimension(2500, 100));\r\n// getRP.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n getRP.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n getRiotPointsBalanceDifference();\r\n }\r\n });\r\n// main.add(getRP);\r\n }", "private void setupAddToReviewButton() {\n\t\tImageIcon addreview_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"addtoreview.png\");\n\t\tJButton add_to_review = new JButton(\"\", addreview_button_image);\n\t\tadd_to_review.setBounds(374, 598, 177, 100);\n\t\tadd_to_review.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\twords_to_add_to_review.add(words_to_spell.get(current_word_number));\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tadd_to_review.addMouseListener(new VoxMouseAdapter(add_to_review,null));\n\t\tadd(add_to_review);\n\t}", "protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}", "Button createButton();", "public void createFinishedButton() {\n\t\tJButton finished = new JButton(\"Click here when finished inputting selected champions\");\n\t\tfinished.setName(\"finished\");\n\t\tfinished.setBackground(Color.GRAY);\n\t\tfinished.setForeground(Color.WHITE);\n\t\tfinished.setBorderPainted(false);\n\t\tfinished.addActionListener(this);\n\t\tfinished.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(finished, new Integer(4));\n\t}", "private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}", "private void addButtons() {\r\n\t\troot.getChildren().add(button); // creating the Easy button \r\n\t\tb1 = new Button(\"Easy\");\r\n\t\tb1.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Easy\";\r\n\t\t\t}\r\n\t\t});\r\n\t\troot.getChildren().add(b1); // creating the Normal button\r\n\t\tb2 = new Button(\"Normal\");\r\n\t\tb2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Normal\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb2.setLayoutX(50);\r\n\t\troot.getChildren().add(b2); // creating the Hard button\r\n\t\tb3 = new Button(\"Hard\");\r\n\t\tb3.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Hard\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb3.setLayoutX(115);\r\n\t\troot.getChildren().add(b3);\r\n\t}", "public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseListener(this);\n setVisible(true);\n }", "public void setupButton() {\n\t\tHBox buttonPane = new HBox();\n\t\tbuttonPane.setPrefHeight(20);\n\t\t_root.setBottom(buttonPane);\n\t\tButton b1 = new Button(\"Quit\");\t\n\t buttonPane.getChildren().addAll(b1);\n\t b1.setOnAction(new QuitHandler()); // register the button with QuitHandler\n\t buttonPane.setAlignment(Pos.CENTER);\n\t buttonPane.setFocusTraversable(false);\n\t\tbuttonPane.setStyle(\"-fx-background-color: darkblue;\");\n\n\t\n\t}", "@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}", "private void createJButtonActionPerformed( ActionEvent event )\r\n {\r\n \r\n }", "protected void actionPerformed(GuiButton par1GuiButton)\n {\n if (par1GuiButton.id == 0)\n {\n this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 5)\n {\n this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 1)\n {\n this.mc.displayGuiScreen(new GuiSelectWorld(this));\n }\n\n if (par1GuiButton.id == 2)\n {\n this.mc.displayGuiScreen(new GuiMultiplayer(this));\n }\n\n if (par1GuiButton.id == 3)\n {\n this.mc.displayGuiScreen(new GuiTexturePacks(this));\n }\n\n if (par1GuiButton.id == 4)\n {\n this.mc.shutdown();\n }\n }", "protected void actionPerformed(GuiButton par1GuiButton)\n {\n for (int var2 = 0; var2 < this.options.keyBindings.length; ++var2)\n {\n ((GuiButton)this.controlList.get(var2)).displayString = this.options.getOptionDisplayString(var2);\n }\n\n if (par1GuiButton.id == 200)\n {\n this.mc.displayGuiScreen(this.parentScreen);\n }\n else\n {\n this.buttonId = par1GuiButton.id;\n par1GuiButton.displayString = \"> \" + this.options.getOptionDisplayString(par1GuiButton.id) + \" <\"; // what is this even for.. it gets overwritten in drawScreen\n }\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 static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "private void devBtnActionPerformed(ActionEvent evt) {\n }", "public void makeReceiveButton() {\r\n JButton receive = new JButton(\"Receive a new champion recommendation\");\r\n new Button(receive, main);\r\n// receive.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// receive.setPreferredSize(new Dimension(2500, 100));\r\n// receive.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n receive.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n receiveChampionRecommendation();\r\n }\r\n });\r\n// main.add(receive);\r\n }", "public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }", "private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }", "public abstract void executeRunButton();", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 129);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Bouton vert\");\n\t\tbtnNewButton.setBackground(new Color(0, 255, 127));\n\t\tbtnNewButton.setForeground(Color.WHITE);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnNewButton_1.isEnable(true);\n\t\t\t\tbtnNewButton_1.isEnable();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(10, 32, 128, 23);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Bouton bleu\");\n\t\tbtnNewButton_1.setBackground(new Color(30, 144, 255));\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\n\t\tbtnNewButton_1.setBounds(148, 32, 128, 23);\n\t\tpanel.add(btnNewButton_1);\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnNewButton.isEnable(true);\n\t\t\t\tbtnNewButton.isEnable();\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnQuitter = new JButton(\"Quitter\");\n\t\tbtnQuitter.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tbtnQuitter.setAction(action);\n\t\tbtnQuitter.setBackground(new Color(255, 0, 0));\n\t\tbtnQuitter.setForeground(Color.WHITE);\n\t\tbtnQuitter.setBounds(283, 32, 128, 23);\n\t\tpanel.add(btnQuitter);\n\t}", "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "@Override\n\tprotected void createCompButtons() {\n\t\tbtnExcelReport = new Button(getCompButtons(), SWT.NONE);\n\t\tbtnExcelReport.setText(\"Excel Report\");\n\t\tbtnExcelReport.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tbtnExcelReport\n\t\t.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(\n\t\t\t\t\torg.eclipse.swt.events.SelectionEvent e) {\n\t\t\t\tcmdExcelReportWidgetSelected();\n\t\t\t}\n\t\t});\n\t}", "private void button1MouseClicked(MouseEvent e) {\n\t}", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "@Override\n public void addToggleButton(Component button)\n {\n button.addFeature(new AddToggleButtonFeature(this, button));\n }", "public void start() {\n\n /*\n Set up the button\n */\n\n //Instantiate button\n JButton button = new JButton();\n //set up the centroid and dimension of button\n button.setBounds(90, 65, 300, 300);\n //add button to the components for an action event\n button.addActionListener(this);\n //use lambda expression to print \"Hello User!\"\n button.addActionListener(e -> System.out.println(\"Hello User!\"));\n //set button's title to \"Click me\"\n button.setText(\"Click me\");\n //hide text focus on button\n button.setFocusable(false); //to hide border around the text in button\n //set up the font\n button.setFont(new Font(\"Comic Sans\", Font.BOLD, 45));\n\n /*\n Set up the frame\n */\n\n //add button into the frame\n this.add(button);\n //Instantiate icon\n ImageIcon icon = new ImageIcon(\"src/main/resources/gui/icon.png\");\n //add icon to frame\n this.setIconImage(icon.getImage());\n //set exit condition to the frame\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //set window's title\n this.setTitle(\"Click the button\");\n //set frame size (width 500, height 500)\n this.setSize(500, 500);\n //set frame layout (null)\n this.setLayout(null);\n //set window show up in the middle of screen\n this.setLocationRelativeTo(null);\n //set frame visibility (true)\n this.setVisible(true);\n\n }", "private void mymethods() {\n\t\tNew.addActionListener(new ActionListener()\r\n\t\t{\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tta1.setText(\" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t}", "public abstract void executeBagButton();", "public void addKeys() {\n\t\tbtnDot = new JButton(\".\");\n\t\tbtnDot.setBounds(42, 120, 40, 40);\n\t\tthis.add(btnDot); //Handle case\n\t\t\n\t\tbtn0 = new JButton(\"0\");\n\t\tbtn0.setBounds(81, 120, 40, 40);\n\t\tthis.add(btn0);\n\t\tnumberButtonList = new ArrayList<JButton>(10);\n\t\tnumberButtonList.add(btn0);\n\t\t\n\t\tbtnC = new JButton(\"C\");\n\t\tbtnC.setBounds(120, 120, 40, 40);\n\t\tthis.add(btnC);\n\t\t\n\t\tbtnStar = new JButton(\"*\");\n\t\tbtnStar.setBounds(159, 120, 40, 40);\n\t\tthis.add(btnStar);\n\t\toperationButtonList = new ArrayList<JButton>(10);\n\t\toperationButtonList.add(btnStar);\n\t\t\n\t\tbtnPi = new JButton(\"π\");\n\t\tbtnPi.setBounds(198, 120, 40, 40);\n\t\tthis.add(btnPi);\n\t\t//numberButtonList.add(btnPi); //Special case\n\t\tvalueButtons.add(btnPi);\n\t\t\n\t\tbtnLn = new JButton(\"ln\");\n\t\tbtnLn.setBounds(237, 120, 40, 40);\n\t\tthis.add(btnLn);\n\t\tresultOperations.add(btnLn);\n\t\t\n\t\t//Row 2\n\t\t\n\t\tbtn3 = new JButton(\"3\");\n\t\tbtn3.setBounds(42, 80, 40, 40);\n\t\tthis.add(btn3);\n\t\tnumberButtonList.add(btn3);\n\t\t\n\t\tbtn2 = new JButton(\"2\");\n\t\tbtn2.setBounds(81, 80, 40, 40);\n\t\tthis.add(btn2);\n\t\tnumberButtonList.add(btn2);\n\t\t\n\t\tbtn1 = new JButton(\"1\");\n\t\tbtn1.setBounds(120, 80, 40, 40);\n\t\tthis.add(btn1);\n\t\tnumberButtonList.add(btn1);\n\t\t\n\t\tbtnDivide = new JButton(\"/\");\n\t\tbtnDivide.setBounds(159, 80, 40, 40);\n\t\tthis.add(btnDivide);\n\t\toperationButtonList.add(btnDivide);\n\t\t\n\t\tbtnE = new JButton(\"e\");\n\t\tbtnE.setBounds(198, 80, 40, 40);\n\t\tthis.add(btnE);\n\t\tvalueButtons.add(btnE);\n\t\t//numberButtonList.add(btnE); //Special case\n\t\t\n\t\tbtnTan = new JButton(\"tan\");\n\t\tbtnTan.setBounds(237, 80, 40, 40);\n\t\tthis.add(btnTan);\n\t\tresultOperations.add(btnTan);\n\t\t\n\t\t//Row 3\n\t\t\n\t\tbtn6 = new JButton(\"6\");\n\t\tbtn6.setBounds(42, 40, 40, 40);\n\t\tthis.add(btn6);\n\t\tnumberButtonList.add(btn6);\n\t\t\n\t\tbtn5 = new JButton(\"5\");\n\t\tbtn5.setBounds(81, 40, 40, 40);\n\t\tthis.add(btn5);\n\t\tnumberButtonList.add(btn5);\n\t\t\n\t\tbtn4 = new JButton(\"4\");\n\t\tbtn4.setBounds(120, 40, 40, 40);\n\t\tthis.add(btn4);\n\t\tnumberButtonList.add(btn4);\n\t\t\n\t\tbtnMinus = new JButton(\"-\");\n\t\tbtnMinus.setBounds(159, 40, 40, 40);\n\t\tthis.add(btnMinus);\n\t\toperationButtonList.add(btnMinus);\n\t\t\n\t\tbtnSqRt = new JButton(\"√\");\n\t\tbtnSqRt.setBounds(198, 40, 40, 40);\n\t\tthis.add(btnSqRt);\n\t\tresultOperations.add(btnSqRt);\n\t\t\n\t\tbtnCos = new JButton(\"cos\");\n\t\tbtnCos.setBounds(237, 40, 40, 40);\n\t\tthis.add(btnCos);\n\t\tresultOperations.add(btnCos);\n\t\t\n\t\t//Row 4\n\t\t\n\t\tbtn9 = new JButton(\"9\");\n\t\tbtn9.setBounds(42, 0, 40, 40);\n\t\tthis.add(btn9);\n\t\tnumberButtonList.add(btn9);\n\t\t\n\t\tbtn8 = new JButton(\"8\");\n\t\tbtn8.setBounds(81, 0, 40, 40);\n\t\tthis.add(btn8);\n\t\tnumberButtonList.add(btn8);\n\t\t\n\t\tbtn7 = new JButton(\"7\");\n\t\tbtn7.setBounds(120, 0, 40, 40);\n\t\tthis.add(btn7);\n\t\tnumberButtonList.add(btn7);\n\t\t\n\t\tbtnPlus = new JButton(\"+\");\n\t\tbtnPlus.setBounds(159, 0, 40, 40);\n\t\tthis.add(btnPlus);\n\t\toperationButtonList.add(btnPlus);\n\t\t\n\t\tbtnPower = new JButton(\"^\");\n\t\tbtnPower.setBounds(198, 0, 40, 40);\n\t\tthis.add(btnPower);\n\t\toperationButtonList.add(btnPower);\n\t\t\n\t\tbtnSin = new JButton(\"sin\");\n\t\tbtnSin.setBounds(237, 0, 40, 40);\n\t\tthis.add(btnSin);\n\t\tresultOperations.add(btnSin);\n\t}", "private void button1MouseClicked(MouseEvent e) {\n }", "private JButton createButtonAddProduct() {\n\n JButton btn = new JButton(\"Add Product\");\n btn.setEnabled(false);\n btn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n // new NewProductDialog(DemonstrationApplication.this);\n }\n });\n\n return btn;\n }", "public void actionPerformed (ActionEvent e)\n \t\t{\n \t\t\tjP.add(textField);\n \t\t\tjP.add(label);\n \t\t\t\n \t\t\t// Set position of TExt Field\n \t \ttextField.setBounds(350, 463, 125, 25);\n \t \t\n \t \tlabel.setBounds(15, 450, 500, 50);\n \t \tlabel.setFont(arial);\n \t\t\t\n \t \t// Remove the 2 Buttons\n \t\t\tjP.remove(call);\n \t\t\tjP.remove(raise);\n \t\t\t\n \t\t\t// Add a 2nd raise Button\n \t\t\tjP.add(raise2);\n \t\t\traise2.setBounds(500, 460, 80, 30);\n \t\t\t\n \t\t\t// Repaint and update the J Panel\n \t\t\tjP.repaint();\n \t\t}", "protected void createButtonActionPerformed(ActionEvent evt) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttextArea.append(\"My mark is X\\n\");\r\n\t\tmyMark =\"X\";\r\n\t\tyourMark=\"O\";\r\n\t\tnew CreateButtonThread(\"CreateButton\");\t\t\t\t\t\r\n\t}", "private void addBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n addBtnActionPerformed();\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJButton btn = (JButton) e.getSource();\n\t lev_no = (int) btn.getClientProperty(\"column\") + 3 * ((int) btn.getClientProperty(\"row\"));\n\t\t\tselect.setVisible(false);\n\t\t\ttitle.setVisible(true);\n\t\t\tstart.setVisible(true);\n\t\t\texit.setVisible(true);\n\t\t\tlev_button.setVisible(true);\n\t \n\t\t}", "public void actionPerformed(ActionEvent e) {\r\n canvas.refresh();\r\n addNodeButton.setEnabled(true);\r\n rmvNodeButton.setEnabled(true);\r\n addEdgeButton.setEnabled(true);\r\n rmvEdgeButton.setEnabled(true);\r\n chgTextButton.setEnabled(true);\r\n chgDistButton.setEnabled(true);\r\n BFSButton.setEnabled(true);\r\n DFSButton.setEnabled(true);\r\n spButton.setEnabled(true);\r\n TPSButton.setEnabled(true);\r\n instr.setText(\"Try functions by clicking buttons.\");\r\n }", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "public void buttonPressed(){\r\n\t\tsetBorder(new BevelBorder(10));\r\n\t}", "void mainButtonPressed();", "public abstract void buttonPressed();", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}", "private JButton makePrgRunButton() {\r\n\t\tJButton tprgRunButton = new JButton();\r\n\t\ttprgRunButton.setBackground(new Color(250, 250, 250));\r\n\t\ttprgRunButton.setForeground(new Color(51, 51, 51));\r\n\t\ttprgRunButton.setIcon(new ImageIcon(getClass().getResource(\"/org/colombbus/tangara/control_play_blue.png\"))); //$NON-NLS-1$\r\n\t\ttprgRunButton.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 13)); //$NON-NLS-1$\r\n\t\ttprgRunButton.setPreferredSize(new Dimension(120, 30));\r\n\t\ttprgRunButton.setText(Messages.getString(\"EditorFrame.button.execute\")); //$NON-NLS-1$\r\n\t\ttprgRunButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tparentFrame.executeProgram(getCurrentPane().getText(), getSelectedIndex());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\treturn tprgRunButton;\r\n\t}", "public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}", "public void makeCheckBEButton() {\r\n JButton checkBE = new JButton(\"Check if a champion can be purchased with Blue Essence\");\r\n new Button(checkBE, main);\r\n// checkBE.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// checkBE.setPreferredSize(new Dimension(2500, 100));\r\n// checkBE.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n checkBE.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n checkBlueEssenceBalanceDifference();\r\n }\r\n });\r\n// main.add(checkBE);\r\n }", "protected void createButtons(Panel panel) {\n panel.add(new Filler(24,20));\n\n Choice drawingChoice = new Choice();\n drawingChoice.addItem(fgUntitled);\n\n\t String param = getParameter(\"DRAWINGS\");\n\t if (param == null)\n\t param = \"\";\n \tStringTokenizer st = new StringTokenizer(param);\n while (st.hasMoreTokens())\n drawingChoice.addItem(st.nextToken());\n // offer choice only if more than one\n if (drawingChoice.getItemCount() > 1)\n panel.add(drawingChoice);\n else\n panel.add(new Label(fgUntitled));\n\n\t\tdrawingChoice.addItemListener(\n\t\t new ItemListener() {\n\t\t public void itemStateChanged(ItemEvent e) {\n\t\t if (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t loadDrawing((String)e.getItem());\n\t\t }\n\t\t }\n\t\t }\n\t\t);\n\n panel.add(new Filler(6,20));\n\n Button button;\n button = new CommandButton(new DeleteCommand(\"Delete\", fView));\n panel.add(button);\n\n button = new CommandButton(new DuplicateCommand(\"Duplicate\", fView));\n panel.add(button);\n\n button = new CommandButton(new GroupCommand(\"Group\", fView));\n panel.add(button);\n\n button = new CommandButton(new UngroupCommand(\"Ungroup\", fView));\n panel.add(button);\n\n button = new Button(\"Help\");\n\t\tbutton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n\t\t showHelp();\n\t\t }\n\t\t }\n\t\t);\n panel.add(button);\n\n fUpdateButton = new Button(\"Simple Update\");\n\t\tfUpdateButton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n if (fSimpleUpdate)\n setBufferedDisplayUpdate();\n else\n setSimpleDisplayUpdate();\n\t\t }\n\t\t }\n\t\t);\n\n // panel.add(fUpdateButton); // not shown currently\n }", "JButton createTranslateButton(ParagraphTranslateGUI app) {\n ImageIcon translateIcon = new ImageIcon(\"resources/TranslateButton.png\");\n translateButton = new JButton(resizeIcon(translateIcon, this.width, this.height));\n translateButton.setBounds(this.posX, this.posY, this.width, this.height);\n\n addMouseListener(app);\n\n return translateButton;\n }", "private void initButton() {\r\n\t\tthis.panelButton = new JPanel();\r\n\t\tthis.panelButton.setLayout(new BoxLayout(this.panelButton,\r\n\t\t\t\tBoxLayout.LINE_AXIS));\r\n\t\tthis.modifyButton = new JButton(\"Modify\");\r\n\t\tthis.buttonSize(this.modifyButton);\r\n\t\tthis.deleteButton = new JButton(\"Delete\");\r\n\t\tthis.buttonSize(this.deleteButton);\r\n\t\tthis.cancelButton = new JButton(\"Cancel\");\r\n\t\tthis.buttonSize(this.cancelButton);\r\n\r\n\t\tthis.modifyButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.deleteButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.cancelButton.addActionListener(this.editWeaponControl);\r\n\r\n\t\tthis.panelButton.add(this.modifyButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.deleteButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.cancelButton);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic buttonQuit() {\n\t\tbutton = new Button(\"Quit\");\n\t\tbutton.setPrefSize(100, 20);\n\t\tbutton.setStyle(\"-fx-background-color: black\");\n\t\tbutton.setTextFill(Color.YELLOW);\n\t\tbutton.addEventHandler(MouseEvent.MOUSE_CLICKED, quit);\n\n\t}", "private void setButtons()\n\t{\n\t\tstartSim = new JButton(\"Start Sim\");\n\t\tstartSim.addActionListener(this);\n\t\tpauseSim = new JButton(\"Pause Sim\");\n\t\tpauseSim.addActionListener(this);\n\t\taddEat = new JButton(\"Add Eatery\");\n\t\taddEat.addActionListener(this);\n\t\tsubEat = new JButton(\"Subtract Eatery\");\n\t\tsubEat.addActionListener(this);\n\t\taddCash = new JButton(\"Add Cashier\");\n\t\taddCash.addActionListener(this);\n\t\tsubCash = new JButton(\"Subtract Cashier\");\n\t\tsubCash.addActionListener(this);\n\t}", "public static void setButton(String nameOfButton,int x,int y,int width,int heigth, JFrame frame) {\r\n //tozi metod suzdava butonut s negovite parametri - ime,koordinati,razmeri,frame\r\n\t JButton Button = new JButton(nameOfButton);\r\n\t Button.setBounds(x, y, width, heigth);\r\n\t colorOfButton(153,204,255,Button); //izpolzvam metodite ot po-gore\r\n\t colorOfTextInButton(60,0,150,Button);\r\n\t frame.getContentPane().add(Button);\r\n Button.addActionListener(new ActionListener(){ \r\n \tpublic void actionPerformed(ActionEvent e){ \r\n\t frame.setVisible(false);\r\n\t if(nameOfButton == \"Action\") { //kogato imeto na butona suvpada sus Stringa \"Action\",to tova e nashiqt janr\r\n\t \t Genre action = new Genre(\"Action\", //chrez klasa Genre zadavam vseki buton kakuv nov prozorec shte otvori\r\n\t \t\t\t \"Black Panther (2018)\", //kakvi filmi shte sudurja vseki janr \r\n\t \t\t\t \"Avengers: Endgame (2019)\",\r\n\t \t\t\t \" Mission: Impossible - Fallout (2018)\",\r\n\t \t\t\t \"Mad Max: Fury Road (2015)\",\r\n\t \t\t\t \"Spider-Man: Into the Spider-Verse (2018)\", \"MoviesWindow.png\" //kakvo fonovo izobrajenie shte ima\r\n);\r\n\t\t \t\r\n\t\t \taction.displayWindow(); \r\n//chrez metoda showWindow(); ,koito vseki obekt ot klasa Genre ima, otvarqme sledvashtiq(posleden) prozorec\r\n\t\t \t\r\n\t\t \t\r\n\t }else if (nameOfButton == \"Comedy\") { //i taka za vsichki filmovi janri\r\n\t \t Genre comedy = new Genre(\"Comedy\",\r\n\t \t\t\t \"The General (1926)\",\r\n\t \t\t\t \"It Happened One Night (1934)\",\r\n\t \t\t\t \"Bridesmaids (2011)\",\r\n\t \t\t\t \"Eighth Grade (2018)\",\r\n\t \t\t\t \"We're the Millers (2013)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tcomedy.displayWindow();\r\n\t }else if (nameOfButton == \"Drama\") {\r\n\t \t Genre drama2 = new Genre(\"Drama\",\r\n\t \t\t\t \"Parasite (Gisaengchung) (2019)\",\r\n\t\t \t\t\t \" Moonlight (2016)\",\r\n\t\t \t\t\t \" A Star Is Born (2018)\",\r\n\t\t \t\t\t \" The Shape of Water (2017)\",\r\n\t\t \t\t\t \" Marriage Story (2019)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tdrama2.displayWindow();\r\n\t }else if (nameOfButton == \"Fantasy\") {\r\n\t \t Genre fantasy2 = new Genre(\"Fantasy\",\r\n\t \t\t\t \"The Lord of the Rings Trilogy\",\r\n\t \t\t\t \"Metropolis (2016)\",\r\n\t \t\t\t \"Gravity (2013)\",\r\n\t \t\t\t \" Pan's Labyrinth (2006)\",\r\n\t \t\t\t \"The Shape of Water (2017)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tfantasy2.displayWindow();\r\n\t }else if (nameOfButton == \"Horror\") {\r\n\t \t Genre horror = new Genre(\"Horror\",\r\n\t \t\t\t \" Host (2020)\",\r\n\t \t\t\t \" Saw (2004)\",\r\n\t \t\t\t \" The Birds (1963)\",\r\n\t \t\t\t \" Dawn of the Dead (1978)\",\r\n\t \t\t\t \" Shaun of the Dead (2004)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \thorror.displayWindow();\r\n\t }else if (nameOfButton == \"Romance\") {\r\n\t \tGenre romance2 = new Genre(\"Romance\",\r\n\t \t\t\t\"Titanic (1997)\",\r\n\t \t\t\t\"La La Land(2016)\",\r\n\t \t\t\t\"The Vow (2012)\",\r\n\t \t\t\t\"The Notebook (2004)\",\r\n\t \t\t\t\"Carol (2015)\",\"MoviesWindow.png\");\r\n\t \t\r\n\t \tromance2.displayWindow();\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t }else if (nameOfButton == \"Mystery\") {\r\n\t \t Genre mystery = new Genre(\"Mystery\",\r\n\t \t\t\t \" Knives Out (2019)\",\r\n\t \t\t\t \" The Girl With the Dragon Tattoo (2011)\",\r\n\t \t\t\t \" Before I Go to Sleep (2014)\",\r\n\t \t\t\t \" Kiss the Girls (1997)\",\r\n\t \t\t\t \" The Girl on the Train (2016)\",\"MoviesWindow.png\"\r\n\t \t\t\t );\r\n\t\t \t\r\n\t\t \tmystery.displayWindow();\r\n\t }\r\n\r\n \t}\r\n });\r\n\t}", "protected JButton createAddButton() {\n JButton butAdd = new JButton();\n butAdd.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/add.jpg\")));\n butAdd.setToolTipText(\"Add a new item\");\n butAdd.addActionListener(new AddItemListener());\n return butAdd;\n }", "public void makeFavouriteButton() {\r\n JButton favourite = new JButton(\"Favourite a champion\");\r\n new Button(favourite, main);\r\n// favourite.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// favourite.setPreferredSize(new Dimension(2500, 100));\r\n// favourite.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n favourite.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n favouriteChampion();\r\n }\r\n });\r\n// main.add(favourite);\r\n }", "private void configureButtons() {\n\n backToMenu = new JButton(\"Menu\");\n if(isWatching){\n backToMenu.setBounds(575, 270, 100, 50);\n }\n else{\n backToMenu.setBounds(30, 800, 100, 50);\n }\n backToMenu.setFont(new Font(\"Broadway\", Font.PLAIN, 20));\n backToMenu.setBackground(Color.RED);\n backToMenu.setFocusable(false);\n backToMenu.addActionListener(this);\n add(backToMenu);\n }", "private void addBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMousePressed\n addBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }", "public void start(Stage myStage) { \n \n // Give the stage a title. \n myStage.setTitle(\"Use JavaFX Buttons and Events.\"); \n \n // Use a FlowPane for the root node. In this case, \n // vertical and horizontal gaps of 10. \n FlowPane rootNode = new FlowPane(10, 10); \n \n // Center the controls in the scene. \n rootNode.setAlignment(Pos.CENTER); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 100); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Create a label. \n response = new Label(\"Push a Button\"); \n \n // Create two push buttons. \n Button btnUp = new Button(\"Up\"); \n Button btnDown = new Button(\"Down\"); \n \n // Handle the action events for the Up button. \n btnUp.setOnAction(new EventHandler<ActionEvent>() { \n public void handle(ActionEvent ae) { \n response.setText(\"You pressed Up.\"); \n } \n }); \n \n // Handle the action events for the Down button. \n btnDown.setOnAction(new EventHandler<ActionEvent>() { \n public void handle(ActionEvent ae) { \n response.setText(\"You pressed Down.\"); \n } \n }); \n \n // Add the label and buttons to the scene graph. \n rootNode.getChildren().addAll(btnUp, btnDown, response); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }", "private void addButton(final FrameContainer<?> source) {\n final JToggleButton button = new JToggleButton(source.toString(),\n IconManager.getIconManager().getIcon(source.getIcon()));\n button.addActionListener(this);\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setMinimumSize(new Dimension(0,buttonHeight));\n button.setMargin(new Insets(0, 0, 0, 0));\n buttons.put(source, button);\n }", "private void addDemoButtons(int p_73972_1_, int p_73972_2_)\r\n\t{\r\n\t\tthis.buttonList.add(new GuiButton(11, this.width / 2 - 100, p_73972_1_, I18n.format(\"menu.playdemo\")));\r\n\t\tthis.buttonResetDemo = this.addButton(new GuiButton(12, this.width / 2 - 100, p_73972_1_ + p_73972_2_ * 1, I18n.format(\"menu.resetdemo\")));\r\n\t\tISaveFormat isaveformat = this.mc.getSaveLoader();\r\n\t\tWorldInfo worldinfo = isaveformat.getWorldInfo(\"Demo_World\");\r\n\r\n\t\tif (worldinfo == null)\r\n\t\t{\r\n\t\t\tthis.buttonResetDemo.enabled = false;\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddBtn.setEnabled(true);\n\t\t\t}", "private Button addButton(Configuration config, String name) {\r\n Button button = new HintedButton(config, name);\r\n button.addActionListener(this);\r\n add(button);\r\n return button;\r\n }", "private void button1ActionPerformed(ActionEvent e) {\n }", "private void setupHelpButton() {\n\t\tImageIcon help_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"help.png\");\n\t\tJButton help_button = new JButton(\"\",help_button_image);\n\t\thelp_button.setBorderPainted(false);\n\t\thelp_button.setBounds(1216, 24, 100, 100);\n\t\thelp_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tHelp help_frame=new Help(PanelID.Quiz);\n\t\t\t\thelp_frame.setVisible(true);\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\thelp_button.addMouseListener(new VoxMouseAdapter(help_button,null));\n\t\tadd(help_button);\n\t}", "private void createUIComponents() {\n bt1 = new JButton(\"Hola\");\n }", "private void buttonInit() {\n panel.add(createButton);\n panel.add(editButton);\n panel.add(changeButton);\n createButton.addActionListener(this);\n editButton.addActionListener(this);\n changeButton.addActionListener(this);\n submitNewUser.addActionListener(this);\n editAccTypeBtn.addActionListener(this);\n changePassBtn.addActionListener(this);\n }", "private void setupButtons() {\n\t\tsetupCreateCourse();\n\t\tsetupRemoveCourse();\n\t\tsetupCreateOffering();\n\t\tsetupRemoveOffering();\n\t\tsetupAddPreReq();\n\t\tsetupRemovePreReq();\n\t\tsetupBack();\n\t}", "public void actionPerformed( ActionEvent event )\r\n {\r\n createJButtonActionPerformed( event );\r\n }", "private void addQuitButtonFunction() {\n\t\tquitButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGUIQuit quit = new GUIQuit();\n\t\t\t\tcloseFrame();\n\t\t\t}\t\t\n\t\t});\n\t}", "private JButton addOKButton(){\n\t\tJButton okButton = new JButton(\"OK\");\n\t\tokButton.addActionListener(arg0 -> {\n\t\t\tinfo = new ChannelInfo(nameT.getText(), passwordT.getText(), null);\n\t\t\tsetVisible(false);\n\t\t});\n\t\treturn okButton;\n\t}" ]
[ "0.7696044", "0.74146146", "0.7397237", "0.73509187", "0.7337135", "0.71889037", "0.7155358", "0.7095997", "0.70403063", "0.70317525", "0.70205903", "0.698512", "0.6947725", "0.6942889", "0.6931416", "0.6916396", "0.69111705", "0.68991643", "0.687677", "0.68693024", "0.6866081", "0.6849543", "0.68404555", "0.6837038", "0.68236077", "0.6823106", "0.68129724", "0.68098456", "0.68088496", "0.68080276", "0.6801828", "0.6781964", "0.6767858", "0.67671794", "0.6761473", "0.67333627", "0.6733183", "0.6729891", "0.67286664", "0.67262375", "0.6723145", "0.6706202", "0.67014164", "0.6693327", "0.66868865", "0.6685267", "0.6679908", "0.66605496", "0.66548604", "0.66452587", "0.6634231", "0.66282326", "0.66202724", "0.6618455", "0.6611687", "0.66072506", "0.66053283", "0.65949726", "0.6586283", "0.6578298", "0.65738547", "0.6573553", "0.657298", "0.657199", "0.65700334", "0.6568244", "0.65494716", "0.65488136", "0.65418905", "0.65408117", "0.6533216", "0.65297395", "0.6528754", "0.65281755", "0.65212554", "0.6521133", "0.65157413", "0.6508963", "0.6501916", "0.64999986", "0.6496157", "0.6489015", "0.6488771", "0.648691", "0.6484023", "0.6482379", "0.6480797", "0.64798903", "0.6478405", "0.6469927", "0.64698523", "0.6469559", "0.64659387", "0.64617854", "0.6457539", "0.64528185", "0.64494", "0.6448535", "0.6441595", "0.64404804", "0.6439528" ]
0.0
-1
Loads the Data for the GUI from the Settings class.
private void loadData() { //load general data Settings.loadSettings(); this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000); this.spRetryPolicy.setValue(Settings.RETRY_POLICY); this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000); this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SettingsWindow() {\n loadData();\n createListeners();\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "@Override\n public void readSettings(Object settings) {\n ((WizardDescriptor) settings).putProperty(\"WizardPanel_image\", ImageUtilities.loadImage(\"net/phyloviz/core/TypingImage.png\", true));\n sDBName = (String) ((WizardDescriptor) settings).getProperty(\"dbName\");\n\t sDBNameShort = (String) ((WizardDescriptor) settings).getProperty(\"dbNameShort\");\n ((PubMLSTVisualPanel2) getComponent()).setDatabase(sDBNameShort, sDBName);\n tf = new MLSTypingFactory();\n }", "private static void loadSettings() {\n try {\n File settings = new File(\"settings.txt\");\n //Options\n BufferedReader reader = new BufferedReader(new FileReader(settings));\n defaultSliderPosition = Double.parseDouble(reader.readLine());\n isVerticalSplitterPane = Boolean.parseBoolean(reader.readLine());\n verboseCompiling = Boolean.parseBoolean(reader.readLine());\n warningsEnabled = Boolean.parseBoolean(reader.readLine());\n clearOnMethod = Boolean.parseBoolean(reader.readLine());\n compileOptions = reader.readLine();\n runOptions = reader.readLine();\n //Colors\n for(int i = 0; i < colorScheme.length; i++) \n colorScheme[i] = new Color(Integer.parseInt(reader.readLine()));\n\n for(int i = 0; i < attributeScheme.length; i++) {\n attributeScheme[i] = new SimpleAttributeSet();\n attributeScheme[i].addAttribute(StyleConstants.Foreground, colorScheme[i]);\n }\n\n theme = reader.readLine();\n\n reader.close(); \n } catch (FileNotFoundException f) {\n println(\"Couldn't find the settings. How the hell.\", progErr);\n } catch (IOException i) {\n println(\"General IO exception when loading settings.\", progErr);\n } catch (Exception e) {\n println(\"Catastrophic failure when loading settings.\", progErr);\n println(\"Don't mess with the settings file, man!\", progErr);\n }\n }", "private void loadSettings() {\n \tLog.i(\"T4Y-Settings\", \"Load mobile settings\");\n \tmobileSettings = mainApplication.getMobileSettings();\n \t\n \t//update display\n autoSynchronizationCheckBox.setChecked(mobileSettings.isAllowAutoSynchronization());\n autoScanCheckBox.setChecked(mobileSettings.isAllowAutoScan());\n autoSMSNotificationCheckBox.setChecked(mobileSettings.isAllowAutoSMSNotification());\n }", "public void loadDefaultSettings(){\r\n try{\r\n File propFile;\r\n String curLine;\r\n CodeSource codeSource = EMSimulationSettingsView.class.getProtectionDomain().getCodeSource();\r\n File jarFile = new File(codeSource.getLocation().toURI().getPath());\r\n File jarDir = jarFile.getParentFile();\r\n \r\n propFile = new File(jarDir, \"default_EMSettings.txt\");\r\n FileReader fr = new FileReader(propFile);//reads in the pdb\r\n BufferedReader br = new BufferedReader(fr);\r\n while ((curLine = br.readLine()) != null) {\r\n String[] setting = curLine.split(\"[\\t]+\");//split by whitespace into an array to read\r\n if(setting[0].toString().compareTo(\"Minim Method\")==0){\r\n jComboBox1.setSelectedIndex(Integer.parseInt(setting[1]));\r\n }\r\n\t\t\t \r\n if(setting[0].compareTo(\"Step Size\")==0){\r\n if(setting[1].compareTo(\"0.0\")!=0&&setting[1].compareTo(\"0\")!=0)jTextField1.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Numsteps\")==0){\r\n jTextField2.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Convergence\")==0){\r\n jTextField3.setText(setting[1]);\r\n }\r\n\t\t\t \r\n\t\tif(setting[0].compareTo(\"Interval\")==0){\r\n jTextField4.setText(setting[1]);\r\n }\r\n }\r\n this.setVisible(true);\r\n br.close();\r\n fr.close();\r\n }\r\n catch (Exception e){\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n }", "public void loadSettings(String settingsName){\r\n try{\r\n String curLine;\r\n FileReader fr = new FileReader(settingsName+\".txt\");//reads in the pdb\r\n BufferedReader br = new BufferedReader(fr);\r\n //populate the fields in the settings view from the default settings file\r\n while ((curLine = br.readLine()) != null) {\r\n String[] setting = curLine.split(\"[\\t]+\");//split by whitespace into an array to read\r\n if(setting[0].toString().compareTo(\"Minim Method\")==0){\r\n jComboBox1.setSelectedIndex(Integer.parseInt(setting[1]));\r\n }\r\n\t\t\t \r\n if(setting[0].compareTo(\"Step Size\")==0){\r\n if(setting[1].compareTo(\"0.0\")!=0&&setting[1].compareTo(\"0\")!=0)jTextField1.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Numsteps\")==0){\r\n jTextField2.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Convergence\")==0){\r\n jTextField3.setText(setting[1]);\r\n }\r\n\t\t\t \r\n\t\tif(setting[0].compareTo(\"Interval\")==0){\r\n jTextField4.setText(setting[1]);\r\n }\r\n }\r\n this.setVisible(true);\r\n br.close();\r\n fr.close();\r\n }\r\n catch (Exception e){\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n }", "private void initialize() {\n\t\tfrmSettings = new JFrame();\n\t\tfrmSettings.setTitle(\"Settings\");\n\t\tfrmSettings.setBounds(100, 100, 594, 420);\n\t\tfrmSettings.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmSettings.getContentPane().setLayout(null);\n\n\t\tJLabel lblSettings = new JLabel(\"Check the appropriate checkbox to change the values\");\n\t\tlblSettings.setBounds(10, 8, 558, 14);\n\t\tfrmSettings.getContentPane().add(lblSettings);\n\n\t\tstorage_panel = new JPanel();\n\t\tstorage_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Storage\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tstorage_panel.setBounds(20, 33, 548, 65);\n\t\tfrmSettings.getContentPane().add(storage_panel);\n\t\tstorage_panel.setLayout(null);\n\n\t\tJLabel lblDefaultPathfor = new JLabel(\"Default path (for reports):\");\n\t\tlblDefaultPathfor.setBounds(10, 27, 149, 14);\n\t\tstorage_panel.add(lblDefaultPathfor);\n\n\t\treport_path = new JTextField();\n\t\treport_path.setText(AppConfigInfo.getDefaultStorage());\n\t\treport_path.setBounds(171, 23, 367, 20);\n\t\tstorage_panel.add(report_path);\n\t\treport_path.setColumns(10);\n\n\t\twork_hours_panel = new JPanel();\n\t\twork_hours_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Work-hours\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\twork_hours_panel.setBounds(20, 112, 548, 90);\n\t\tfrmSettings.getContentPane().add(work_hours_panel);\n\t\twork_hours_panel.setLayout(null);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Full-day hours (hh:mm:ss):\");\n\t\tlblNewLabel.setBounds(10, 26, 161, 14);\n\t\twork_hours_panel.add(lblNewLabel);\n\n\t\tJLabel lblHalfdayHours = new JLabel(\"Half-day hours (hh:mm:ss):\");\n\t\tlblHalfdayHours.setBounds(10, 54, 161, 14);\n\t\twork_hours_panel.add(lblHalfdayHours);\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tDate df = new Date(), dh = new Date();\n\t\ttry {\n\t\t\tdf = sdf.parse(AppConfigInfo.getFullWorkingHours());\n\t\t\tdh = sdf.parse(AppConfigInfo.getHalfWorkingHours());\n\t\t} catch (Exception ex) {\n\n\t\t}\n\t\tfull_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\tfull_day_spinner.setEditor(new JSpinner.DateEditor(full_day_spinner, sdf.toPattern()));\n\t\tfull_day_spinner.setValue(df);\n\t\tfull_day_spinner.setBounds(171, 23, 122, 20);\n\t\twork_hours_panel.add(full_day_spinner);\n\n\t\thalf_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\thalf_day_spinner.setEditor(new JSpinner.DateEditor(half_day_spinner, sdf.toPattern()));\n\t\thalf_day_spinner.setValue(dh);\n\t\thalf_day_spinner.setBounds(171, 51, 122, 20);\n\t\twork_hours_panel.add(half_day_spinner);\n\n\t\tadmin_profile_panel = new JPanel();\n\t\tadmin_profile_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Admin profile\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tadmin_profile_panel.setBounds(20, 211, 548, 123);\n\t\tfrmSettings.getContentPane().add(admin_profile_panel);\n\t\tadmin_profile_panel.setLayout(null);\n\n\t\tlblNewLabel_1 = new JLabel(\"Existing password:\");\n\t\tlblNewLabel_1.setBounds(10, 28, 151, 14);\n\t\tadmin_profile_panel.add(lblNewLabel_1);\n\n\t\tlblNewPassword = new JLabel(\"New password:\");\n\t\tlblNewPassword.setBounds(10, 54, 151, 14);\n\t\tadmin_profile_panel.add(lblNewPassword);\n\n\t\tlblReenterPassword = new JLabel(\"Re-enter password:\");\n\t\tlblReenterPassword.setBounds(10, 79, 151, 14);\n\t\tadmin_profile_panel.add(lblReenterPassword);\n\n\t\texisting_password = new JPasswordField();\n\t\texisting_password.setBounds(171, 25, 159, 20);\n\t\tadmin_profile_panel.add(existing_password);\n\n\t\tnew_password = new JPasswordField();\n\t\tnew_password.setBounds(171, 51, 159, 20);\n\t\tadmin_profile_panel.add(new_password);\n\n\t\tre_entered_password = new JPasswordField();\n\t\tre_entered_password.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif (!re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"Password does not match.\");\n\t\t\t\t} else if (re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tre_entered_password.setBounds(171, 76, 159, 20);\n\t\tadmin_profile_panel.add(re_entered_password);\n\n\t\tpassword_status_label = new JLabel(\"\");\n\t\tpassword_status_label.setBounds(340, 79, 198, 14);\n\t\tadmin_profile_panel.add(password_status_label);\n\n\t\tstorage_check = new JCheckBox(\"\");\n\t\tstorage_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tstorage_panel.setEnabled(true);\n\t\t\t\t\tenableReportPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tstorage_panel.setEnabled(false);\n\t\t\t\t\tdisableReportPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tstorage_check.setBounds(0, 56, 21, 23);\n\t\tfrmSettings.getContentPane().add(storage_check);\n\n\t\twork_hours_check = new JCheckBox(\"\");\n\t\twork_hours_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\twork_hours_panel.setEnabled(true);\n\t\t\t\t\tenableWorkHourPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\twork_hours_panel.setEnabled(false);\n\t\t\t\t\tdisableWorkHourPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\twork_hours_check.setBounds(0, 149, 21, 23);\n\t\tfrmSettings.getContentPane().add(work_hours_check);\n\n\t\tadmin_profile_check = new JCheckBox(\"\");\n\t\tadmin_profile_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tadmin_profile_panel.setEnabled(true);\n\t\t\t\t\tenableAdminProfilePanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tadmin_profile_panel.setEnabled(false);\n\t\t\t\t\tdisableAdminProfilePanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadmin_profile_check.setBounds(0, 263, 21, 23);\n\t\tfrmSettings.getContentPane().add(admin_profile_check);\n\n\t\tapply_button = new JButton(\"Apply\");\n\t\tapply_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tif (report_path.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the storage path.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treport_status = UpdateAppSettings.updateStoragePath(report_path.getText());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\tif (full_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the full day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (half_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the half day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twork_hours_status = UpdateAppSettings.updateWorkigHours((Date) full_day_spinner.getValue(),\n\t\t\t\t\t\t\t\t(Date) half_day_spinner.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tif (existing_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter your existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (new_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please re-enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (!new_password.getText().equals(re_entered_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Re-entered password does not match.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(existing_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings,\n\t\t\t\t\t\t\t\t\"New password cannot be same as the existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadmin_password_status = UpdateAppSettings.updateAdminPassword(existing_password.getText(),\n\t\t\t\t\t\t\t\tre_entered_password.getText());\n\t\t\t\t\t\tif (!admin_password_status) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Wrong password entered.\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (report_status || work_hours_status || admin_password_status) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Settings applied successfully.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tapply_button.setBounds(239, 348, 89, 23);\n\t\tfrmSettings.getContentPane().add(apply_button);\n\n\t\tlabel = new JLabel(\"\\u00A9 Copyright 2017. Saraswat Infotech Ltd\");\n\t\tlabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 9));\n\t\tlabel.setBounds(363, 368, 205, 14);\n\t\tfrmSettings.getContentPane().add(label);\n\t}", "public static void load()\n throws IOException, ClassNotFoundException {\n FileInputStream f_in = new\n FileInputStream (settingsFile);\n ObjectInputStream o_in = new\n ObjectInputStream(f_in);\n SettingsSaver loaded = (SettingsSaver) o_in.readObject();\n advModeUnlocked = loaded.set[0];\n LIM_NOTESPERLINE = loaded.set[1];\n LIM_96_MEASURES = loaded.set[2];\n LIM_VOLUME_LINE = loaded.set[3];\n LIM_LOWA = loaded.set[4];\n LIM_HIGHD = loaded.set[5];\n LOW_A_ON = loaded.set[6];\n NEG_TEMPO_FUN = loaded.set[7];\n LIM_TEMPO_GAPS = loaded.set[8];\n RESIZE_WIN = loaded.set[9];\n ADV_MODE = loaded.set[10];\n o_in.close();\n f_in.close();\n }", "private void loadSettings() {\n\t\ttry {\n\t\t\tFile file = new File(SETTINGS_CONF);\n\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file));\n\t\t\tObject[] o = (Object[]) in.readObject();\n\n\t\t\tJob[] jobs = (Job[]) o[0];\n\t\t\tfileOne.setText((String) o[1]);\n\t\t\tsettings.getRarPath().setText((String) o[2]);\n\t\t\tsettings.getBasePath().setText((String) o[3]);\n\t\t\ttrackers.getList().setItems((String[]) o[4]);\n\n\t\t\tTreeItem root = tree.getItem(0);\n\n\t\t\tfor (Job job : jobs) {\n\t\t\t\tif (job != null) {\n\t\t\t\t\t// job.printAll();\n\t\t\t\t\tTreeItem item = new TreeItem(root, SWT.NATIVE);\n\t\t\t\t\t\n\t\t\t\t\titem.setText(job.getName());\n\t\t\t\t\titem.setData(job);\n\t\t\t\t\titem.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (job.isEnabled() ? GEAR_ICON : GEAR_DISABLED_ICON)));\n\t\t\t\t\t\n\t\t\t\t\tif(!(job.getPrefix() == null || job.getPrefix().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getPrefix());\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (UNDERSCORE_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getPassword() == null || job.getPassword().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(\"[with password]\");\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getFileTwo() == null || job.getFileTwo().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getFileTwo());\t\t\t\t\t\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\tTreeItem iprefix = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ipassword = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ifileTwo = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tiprefix.setText(job.getPrefix() == null || job.getPrefix().isEmpty() ? \"[no prefix]\" : job.getPrefix());\n\t\t\t\t\tipassword.setText(job.getPassword() == null || job.getPassword().isEmpty() ? \"[no password]\" : \"[with password]\");\n\t\t\t\t\t\n\t\t\t\t\tipassword.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\tiprefix.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\tifileTwo.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t\n\t\t\t\t\t// ifileOne.setText(job.getFileOne() == null ||\n\t\t\t\t\t// job.getFileOne().isEmpty() ? \"[no file]\" :\n\t\t\t\t\t// job.getFileOne());\n\t\t\t\t\tifileTwo.setText(job.getFileTwo() == null || job.getFileTwo().isEmpty() ? \"[no file]\" : job.getFileTwo());\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "void getSettings(ControlsSettings settings);", "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 Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "public void updateSettings(){\n\n // load in configuration variables\n layout = plugin.getConfig().getString(\"layout\");\n enabled = plugin.getConfig().getBoolean(\"enabled\");\n minTemp = plugin.getConfig().getInt(\"min-temperature\");\n maxTemp = plugin.getConfig().getInt(\"max-temperature\");\n peakTime = plugin.getConfig().getInt(\"peak-time\");\n tickrate = plugin.getConfig().getLong(\"tickrate\");\n worldName = plugin.getConfig().getString(\"world-name\");\n\n }", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }", "private Settings manageSettings(Data loadedData) {\n Dialog<Settings> dialog = new Dialog<>();\n dialog.setTitle(\"Settings\");\n dialog.setHeaderText(\"Please specify the settings for the file you are uploading.\");\n\n Label label1 = new Label(\"ZAMS phase is: \");\n Label label2 = new Label(\"Include phases: \");\n\n //ZAMS\n ChoiceBox choiceBox = new ChoiceBox();\n choiceBox.getItems().add(\"-\");\n choiceBox.setValue(\"-\");\n choiceBox.getItems().addAll(loadedData.getCurrentPhases());\n\n //Phases\n List<CheckBox> phaseBoxes = new ArrayList<>();\n List<Short> availablePhases = new ArrayList<>(loadedData.getCurrentPhases());\n GridPane allowedPhasesPane = new GridPane();\n availablePhases.sort(Comparator.naturalOrder());\n if (Data.getCurrentData().getCurrentPhases().size() > 12) {\n allowedPhasesPane.add(new Label(\"Too many\"), 0, 0);\n allowedPhasesPane.add(new Label(\"phases!\"), 0, 1);\n } else {\n for (int i = 0; i < availablePhases.size(); i++) {\n CheckBox checkBox = new CheckBox(availablePhases.get(i).toString());\n phaseBoxes.add(checkBox);\n allowedPhasesPane.add(checkBox, i % 3, i / 3);\n checkBox.setSelected(true);\n }\n }\n\n GridPane grid = new GridPane();\n grid.add(label1, 1, 1);\n grid.add(choiceBox, 2, 1);\n grid.add(label2, 1, 2);\n grid.add(allowedPhasesPane, 2, 2);\n dialog.getDialogPane().setContent(grid);\n\n ButtonType buttonTypeOk = new ButtonType(\"Upload file\", ButtonBar.ButtonData.OK_DONE);\n dialog.getDialogPane().getButtonTypes().add(buttonTypeOk);\n\n dialog.setResultConverter(new Callback<ButtonType, Settings>() {\n @Override\n public Settings call(ButtonType b) {\n if (b==buttonTypeOk) {\n HashSet<Short> selectedPhases = new HashSet<>();\n for (CheckBox checkBox : phaseBoxes) {\n if (checkBox.isSelected()) { selectedPhases.add(Short.parseShort(checkBox.getText())); }\n }\n Short zams = null;\n if (choiceBox.getValue() != \"-\") {\n zams = Short.parseShort(choiceBox.getValue().toString());\n }\n return new Settings(selectedPhases, zams, false);\n }\n return null;\n }\n });\n\n Stage stage = (Stage) dialog.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(this.getClass().getResource(\"/settings.png\").toString()));\n\n dialog.getDialogPane().getChildren().stream().filter(node -> node instanceof Label).forEach(node\n -> ((Label)node).setMinHeight(Region.USE_PREF_SIZE)); //fix for broken linux dialogues\n Optional<Settings> result = dialog.showAndWait();\n return result.orElse(null);\n }", "public void loadSettings(Properties properties) {\r\n mSettings = new TvBrowserDataServiceSettings(properties);\r\n\r\n String[] levelIds=mSettings.getLevelIds();\r\n ArrayList<TvDataLevel> levelList=new ArrayList<TvDataLevel>();\r\n for (int i=0;i<DayProgramFile.getLevels().length;i++) {\r\n if (DayProgramFile.getLevels()[i].isRequired()) {\r\n levelList.add(DayProgramFile.getLevels()[i]);\r\n }\r\n else{\r\n for (String levelId : levelIds) {\r\n if (levelId.equals(DayProgramFile.getLevels()[i].getId())) {\r\n levelList.add(DayProgramFile.getLevels()[i]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n setTvDataLevel(levelList.toArray(new TvDataLevel[levelList.size()]));\r\n\r\n\r\n /* load channel groups settings */\r\n refreshAvailableChannelGroups();\r\n\r\n setWorkingDirectory(mDataDir);\r\n }", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "private void loadData(com.sun.star.awt.XWindow aWindow)\n throws com.sun.star.uno.Exception\n {\n // Determine the name of the window. This serves two purposes. First, if this\n // window is supported by this handler and second we use the name two locate\n // the corresponding data in the registry.\n String sWindowName = getWindowName(aWindow);\n if (sWindowName == null)\n throw new com.sun.star.lang.IllegalArgumentException(\n \"The window is not supported by this handler\", this, (short) -1);\n\n // To acces the separate controls of the window we need to obtain the\n // XControlContainer from window implementation\n XControlContainer xContainer = (XControlContainer) UnoRuntime.queryInterface(\n XControlContainer.class, aWindow);\n if (xContainer == null)\n throw new com.sun.star.uno.Exception(\n \"Could not get XControlContainer from window.\", this);\n\n // This is an implementation which will be used for several options pages\n // which all have the same controls. m_arStringControls is an array which\n // contains the names.\n for (int i = 0; i < ControlNames.length; i++)\n {\n // load the values from the registry\n // To access the registry we have previously created a service instance\n // of com.sun.star.configuration.ConfigurationUpdateAccess which supports\n // com.sun.star.container.XNameAccess. We obtain now the section\n // of the registry which is assigned to this options page.\n XPropertySet xLeaf = (XPropertySet) UnoRuntime.queryInterface(\n XPropertySet.class, this.accessLeaves.getByName(sWindowName));\n if (xLeaf == null)\n throw new com.sun.star.uno.Exception(\"XPropertySet not supported.\", this);\n\n // The properties in the registry have the same name as the respective\n // controls. We use the names now to obtain the property values.\n Object aValue = xLeaf.getPropertyValue(ControlNames[i]);\n\n // Now that we have the value we need to set it at the corresponding\n // control in the window. The XControlContainer, which we obtained earlier\n // is the means to get hold of all the controls.\n XControl xControl = xContainer.getControl(ControlNames[i]);\n\n // This generic handler and the corresponding registry schema support\n // up to five text controls. However, if a options page does not use all\n // five controls then we will not complain here.\n if (xControl == null)\n continue;\n\n // From the control we get the model, which in turn supports the\n // XPropertySet interface, which we finally use to set the data at the\n // control\n XPropertySet xProp = (XPropertySet) UnoRuntime.queryInterface(\n XPropertySet.class, xControl.getModel());\n\n if (xProp == null)\n throw new com.sun.star.uno.Exception(\"Could not get XPropertySet from control.\", this);\n\n // Some default handlings: you can freely adapt the behaviour to your\n // needs, this is only an example.\n // For text controls we set the \"Text\" property.\n if(ControlNames[i].startsWith(\"txt\"))\n {\n xProp.setPropertyValue(\"Text\", aValue);\n }\n // The available properties for a checkbox are defined in file\n // offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl\n else if(ControlNames[i].startsWith(\"chk\"))\n {\n xProp.setPropertyValue(\"State\", aValue);\n }\n // The available properties for a checkbox are defined in file\n // offapi/com/sun/star/awt/UnoControlListBoxModel.idl\n else if(ControlNames[i].startsWith(\"lst\"))\n {\n xProp.setPropertyValue(\"StringItemList\", aValue);\n \n aValue = xLeaf.getPropertyValue(ControlNames[i] + \"Selected\");\n xProp.setPropertyValue(\"SelectedItems\", aValue);\n }\n }\n }", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "private void loadInfo() {\n fname.setText(prefs.getString(\"fname\", null));\n lname.setText(prefs.getString(\"lname\", null));\n email.setText(prefs.getString(\"email\", null));\n password.setText(prefs.getString(\"password\", null));\n spinner_curr.setSelection(prefs.getInt(\"curr\", 0));\n spinner_stock.setSelection(prefs.getInt(\"stock\", 0));\n last_mod_date.setText(\" \" + prefs.getString(\"date\", getString(R.string.na)));\n }", "public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }", "private void initData() {\n Resources resources = context.getResources();\n settingTitles = resources.getStringArray(R.array.setting_array);\n selectAccent = resources.getStringArray(R.array.accent_array);\n selectAccentDisplay = resources.getStringArray(R.array.accent_display_array);\n selectSpeaker = resources.getStringArray(R.array.speaker_array);\n selectSpeakerDisplay = resources.getStringArray(R.array.speaker_display_array);\n\n positive = resources.getString(R.string.positive);\n negative = resources.getString(R.string.negative);\n answerUnKnown = resources.getString(R.string.unknown);\n answerCalling = resources.getString(R.string.calling);\n answerOpen = resources.getString(R.string.opening);\n answerFound = resources.getString(R.string.founded);\n answerNotFound = resources.getString(R.string.not_found);\n\n String systemLanguage = Util.getSystemLanguage(context).toLowerCase();\n if (systemLanguage.equalsIgnoreCase(\"zh_cn\")) {\n isEnglishEnvironment = false;\n }\n }", "private void loadData() {\n reminderData.loadDataFromSharedPreferences();\n reminderText.setText(reminderData.getNotificationText());\n timePicker.setMinute(reminderData.getMinutes());\n timePicker.setHour(reminderData.getHours());\n }", "public PreferencesPanel()\n {\n initComponents();\n CB_CHECK_NEW.setSelected( Main.get_long_prop(Preferences.CHECK_NEWS) > 0);\n CB_CACHE_MAILS.setSelected( Main.get_long_prop(Preferences.CACHE_MAILFILES) > 0);\n\n\n\n COMBO_UI.removeAllItems();\n ArrayList<String> ui_names = UI_Generic.get_ui_names();\n for (int i = 0; i < ui_names.size(); i++)\n {\n String string = ui_names.get(i);\n COMBO_UI.addItem(string);\n }\n\n last_ui = (int)Main.get_long_prop(Preferences.UI, 0l);\n if (last_ui < COMBO_UI.getItemCount())\n COMBO_UI.setSelectedIndex( last_ui );\n else\n COMBO_UI.setSelectedIndex( 0 );\n\n String ds = Main.get_prop( Preferences.DEFAULT_STATION );\n if (ds != null && ds.length() > 0)\n {\n ParseToken pt = new ParseToken(ds);\n String ip = pt.GetString(\"IP:\");\n long po = pt.GetLongValue(\"PO:\");\n boolean only_this = pt.GetBoolean(\"OT:\");\n TXT_SERVER_IP.setText(ip);\n if (po > 0)\n TXT_SERVER_PORT.setText(Long.toString(po) );\n CB_NO_SCANNING.setSelected(only_this);\n }\n\n String l_code = Main.get_prop( Preferences.COUNTRYCODE, \"DE\");\n\n if (l_code.compareTo(\"DE\") == 0)\n COMBO_LANG.setSelectedIndex(0);\n if (l_code.compareTo(\"EN\") == 0)\n COMBO_LANG.setSelectedIndex(1); \n }", "public SettingsPanel() {\n initComponents();\n }", "public GUI() {\n this.game = new Game();\n String[] levels = {\"assets/TxtTestLevel.txt\", \"assets/TxtTestLevel2.txt\", \"assets/TxtTestLevel4.txt\", \"assets/TxtTestLevel5.txt\"};\n this.gameLevels = Level.getListOfLevels(levels);\n this.game.loadLevel(gameLevels.get(0));\n this.bottomMenu = new BottomMenu(this);\n this.topMenu = new TopMenu(this);\n this.sidePanel = new SidePanel(this);\n this.keyListener = new KeyboardListener(this);\n this.msgWindow = new PopUpWindow();\n }", "public void setSettings(UserPrefs prefs) {\n tfDataPath.setText(prefs.getProperty(UserPrefs.DATA_ROOT));\n // Save this for a comparison later\n existingDataPath = prefs.getProperty(UserPrefs.DATA_ROOT);\n\n String backup = prefs.getProperty(UserPrefs.BACKUP_FOLDER);\n // Nothing there, so add default based on username - this is OK\n if(backup == null || backup.length() == 0) {\n backup = DataFiler.getDefaultBackupFolder(prefs.getUserName());\n }\n tfBackupPath.setText(backup);\n\n cbBackUpOnExit.setSelected(prefs.getBooleanProperty(UserPrefs.BACKUP));\n\n tfNagSave.setText(prefs.getProperty(UserPrefs.SAVE_NAG_MINS));\n\n cbIncludeText.setSelected(prefs.getBooleanProperty(UserPrefs.MESSAGE_QUOTE));\n\n // L&F\n String lf = prefs.getProperty(UserPrefs.APP_LOOK_FEEL);\n cbLookAndFeel.setSelectedItem(lf);\n\n UIManager.LookAndFeelInfo[] systemLookAndFeels = UIManager.getInstalledLookAndFeels();\n for(int i = 0; i < systemLookAndFeels.length; i++) {\n if(systemLookAndFeels[i].getClassName().equals(lf)) {\n cbLookAndFeel.setSelectedIndex(i);\n break;\n }\n }\n\n cbShowStatusMessages.setSelected(prefs.getBooleanProperty(UserPrefs.STATUS_MESSAGES));\n }", "private void initSettingsPanel() {\n JLabel lblName = new JLabel(\"Name:\");\n lblName.setForeground(StyleCompat.textColor());\n\n JTextField fieldName = new JTextField(20);\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblName, fieldName));\n\n JLabel lblVirtOutput = new JLabel(\"VirtualOutput:\");\n lblVirtOutput.setForeground(StyleCompat.textColor());\n\n JComboBox<String> comboVirtOutputs = new JComboBox<>();\n for(Device device : instance.getInterface().getDeviceManager().getDevices()) {\n if(device instanceof VirtualOutput) {\n if(handler != null && instance.getHandlerByVirtualOutput(device.getId()) == handler) {\n comboVirtOutputs.addItem(device.getId());\n comboVirtOutputs.setSelectedIndex(comboVirtOutputs.getItemCount() - 1);\n } else if(!instance.isVirtualOutputUsed(device.getId())) {\n comboVirtOutputs.addItem(device.getId());\n }\n }\n }\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblVirtOutput, comboVirtOutputs));\n\n JLabel lblDeviceId = new JLabel(\"OpenRGB Device ID (index):\");\n lblDeviceId.setForeground(StyleCompat.textColor());\n\n JFormattedTextField fieldDeviceId = new JFormattedTextField(UserInterfaceUtil.getIntFieldFormatter());\n fieldDeviceId.setColumns(5);\n JButton btnAddDeviceId = new JButton(\"Add device\");\n UiUtilsCompat.configureButton(btnAddDeviceId);\n btnAddDeviceId.addActionListener(e -> {\n if(fieldDeviceId.getValue() == null) return;\n int value = (int) fieldDeviceId.getValue();\n if(value < 0 || listDevices.contains(value)) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Invalid ID or list contains already ID.\"));\n return;\n }\n listDevices.add(value);\n fieldDeviceId.setText(\"\");\n updateDeviceListPanel();\n });\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblDeviceId, fieldDeviceId, btnAddDeviceId));\n\n if(instance.getOpenRGB().isConnected()) {\n // show info label, remove all and add all button\n int deviceCount = instance.getOpenRGB().getControllerCount();\n\n JLabel lblCountInfo = new JLabel(\"There are \" + deviceCount + \" devices available.\");\n lblCountInfo.setForeground(StyleCompat.textColor());\n\n JButton btnAddAll = new JButton(\"Add all\");\n UiUtilsCompat.configureButton(btnAddAll);\n btnAddAll.addActionListener(e -> {\n for(int i = 0; i < deviceCount; i++) {\n if(!listDevices.contains(i))\n listDevices.add(i);\n }\n updateDeviceListPanel();\n });\n\n JButton btnRemoveAll = new JButton(\"Remove all\");\n UiUtilsCompat.configureButton(btnRemoveAll);\n btnRemoveAll.addActionListener(e -> {\n listDevices.clear();\n updateDeviceListPanel();\n });\n\n // add components to panel\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblCountInfo, btnAddAll, btnRemoveAll));\n } else {\n // show hint message\n JLabel lblHint = new JLabel(\"(i) Go back and connect the client to receive live data from the SDK server.\");\n lblHint.setForeground(StyleCompat.textColorDarker());\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblHint));\n }\n\n panelDeviceList = new JPanel();\n panelDeviceList.setBackground(StyleCompat.panelDarkBackground());\n panelDeviceList.setLayout(new BoxLayout(panelDeviceList, BoxLayout.Y_AXIS));\n panelDeviceList.setAlignmentX(Component.LEFT_ALIGNMENT);\n panelSettings.add(Box.createVerticalStrut(10));\n panelSettings.add(panelDeviceList);\n updateDeviceListPanel();\n\n if(handler != null) {\n // set stored values\n fieldName.setText(handler.getName());\n }\n\n JButton btnAdd = new JButton(handler == null ? \"Add OpenRGB Device\" : \"Save OpenRGB Device\");\n UiUtilsCompat.configureButton(btnAdd);\n btnAdd.setAlignmentX(Component.LEFT_ALIGNMENT);\n btnAdd.setMaximumSize(new Dimension(Integer.MAX_VALUE, 50));\n btnAdd.setMinimumSize(new Dimension(100, 50));\n\n btnAdd.addActionListener(e -> {\n // create value holder\n ValueHolder holder = new ValueHolder(\n fieldName.getText(),\n (String) comboVirtOutputs.getSelectedItem(),\n listDevices);\n\n if(validateInput(holder.getName(), holder.getOutputId())) {\n // get output\n VirtualOutput output = OpenRgbPlugin.getVirtualOutput(instance.getInterface().getDeviceManager(), holder.getOutputId());\n if (output == null) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Could not find virtual output for id \" + holder.getOutputId()));\n return;\n }\n\n if(handler != null) { // set values to output handler\n handler.setName(holder.getName());\n handler.setDevices(listDevices);\n handler.setVirtualOutput(output);\n } else { // create new output handler\n // create new handler\n OutputHandler handler = instance.createHandler(holder, output);\n // add handler to set\n instance.addHandler(handler);\n }\n\n // go back\n context.navigateDown();\n }\n });\n\n panelSettings.add(Box.createVerticalGlue());\n panelSettings.add(btnAdd);\n }", "private void LoadSavedPreferences() {\n\t\tString value;\n\t\tSharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t// tab 3 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tempSzad\", \"22\");\n\t\tettempSzad_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPmaxdop\", \"70\");\n\t\tettempPmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempZmaxdop\", \"22\");\n\t\tettempZmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPumpaON\", \"50\");\n\t\tettempPumpaON_.setText(value);\n\n\t\t// tab 1 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tv1\", \"20.20\");\n\t\ttvS1.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv2\", \"44.22\");\n\t\ttvS2.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv3\", \"19.22\");\n\t\ttvS3.setText(value);\n\t}", "@Override\n public void initializeData() throws STException {\n\n // Load the current values and populate the UI controls with the values.\n final IUserPreferenceSvc userPrefSvc = ServiceMgr.getUserPrefSvc() ;\n\n this.useProxy = userPrefSvc.getBoolean( ConfigKey.USE_PROXY, false ) ;\n this.proxyHost = userPrefSvc.getUserPref( ConfigKey.PROXY_HOST, null ) ;\n this.proxyPort = userPrefSvc.getInt( ConfigKey.PROXY_PORT, 80 ) ;\n this.useAuth = userPrefSvc.getBoolean( ConfigKey.USE_AUTH, false ) ;\n this.userName = userPrefSvc.getUserPref( ConfigKey.PROXY_USER, \"\" ) ;\n this.password = userPrefSvc.getUserPref( ConfigKey.PROXY_PWD, \"\" ) ;\n\n super.useProxyCB.setSelected( this.useProxy ) ;\n super.proxyHostTF.setText( this.proxyHost ) ;\n super.proxyPortTF.setText( String.valueOf( this.proxyPort ) ) ;\n super.useProxyAuthCB.setSelected( this.useAuth ) ;\n super.userIdTF.setText( this.userName ) ;\n super.passwordTF.setText( this.password ) ;\n\n // Now attach input verifiers with the UI elements.\n super.proxyHostTF.setInputVerifier( new StringValidator ( super.proxyHostTF ) ) ;\n super.proxyPortTF.setInputVerifier( new IntegerValidator( super.proxyPortTF ) ) ;\n super.userIdTF.setInputVerifier( new StringValidator ( super.userIdTF ) ) ;\n super.passwordTF.setInputVerifier( new StringValidator ( super.passwordTF ) ) ;\n }", "protected void loadGUIs()\n {\n guiMap.put(\"game\", new GuiGame(this));\n }", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "static public void initSettings() {\n iSettings = BitmapSettings.getSettings();\n iSettings.load();\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "public void initialize(){\n\n //load Settings\n settings = new Settings(settingsFile);\n if (settings.isExcludeCupboard()){\n cupboardCheckBox.setSelected(true);\n }\n\n //The first pane to see when the program starts is the meals Browse pane\n mealsBtnClicked();\n\n //set up focus and out of focus styling for all the Panes\n styleIngredientBrowsePane();\n styleIngredientAddPane();\n styleMealAddPane();\n styleMealBrowsePane();\n stylePlanShoppingListPane();\n stylePlanWeeklyPlanner();\n stylePlanCupboard();\n\n //setup the Ingredients Browse Pane\n setupBrowseIngredientsPane();\n\n //setup up the main menu hoover button effects\n setupHoverMainMenuButtons();\n\n //setup the meal Add Pane\n MealAddPaneSetUp();\n\n //setup the meal Browse Pane\n mealBrowsePaneSetup();\n\n //setup up the meal planner weekly pane\n weeklyPlannerSetup();\n\n //setup the planner shopping list pane\n plannerShoppingListSetup();\n\n //setup the planner cupboard pane\n plannerCupboardSetup();\n\n //Load the meals from the database\n loadMeals();\n\n //set up the focus styling for the minimise and exit buttons\n setupWindowButtons();\n\n //when the program loads, load the shopping list and meal planner from previous usage\n loadShoppingList();\n loadMealPlanner();\n\n //Set up the information boxes instance for ingredient pane, meal pane and planner pane\n plannerBox = new InformationBox(PlannerPlanPane, plannerColor, plannerColorDark,\n \"images/icons8_planner_96px_Black.png\");\n mealBox = new InformationBox(MealsBrowsePane, mealColor, mealColorDark,\n \"images/icons8_cutlery_96px_Black.png\");\n ingredientBox = new InformationBox(IngredientsBrowsePane, ingredientColor, ingredientColorDark,\n \"images/icons8_apple_96px_Black.png\");\n\n }", "public ConfigurationAppGUI() {\n super(\"TalkBox\");\n player = new SoundEngine();\n String[] audioFileNames = findFiles(AUDIO_DIR, null);\n try {\n UIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\n if(sounds.exists()) {\n //Deserialization\n SaveData data = (SaveData) ResourceManager.load(fileName);\n //Populating InitialList from TalkBoxConfig.save file.\n initialListModel = new DefaultListModel();\n initialList = new JList(initialListModel);\n\n for (int i = 0; i < data.finalList.getModel().getSize(); i++)\n initialListModel.addElement(data.finalList.getModel().getElementAt(i));\n\n //Populating Order ComboBox from TalkBoxConfig.save file.\n orderModel = new DefaultComboBoxModel();\n order = new JComboBox<>(orderModel);\n for (int i = 0; i < data.order.getModel().getSize(); i++)\n orderModel.addElement(data.order.getModel().getElementAt(i));\n }\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (UnsupportedLookAndFeelException e) {\n e.printStackTrace();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n makeFrame(audioFileNames);\n\n //--Testing interface methods.\n// this.getNumberOfAudioButtons();\n// this.getNumberOfAudioSets();\n// this.getTotalNumberOfButtons();\n// this.getRelativePathToAudioFiles();\n// this.getAudioFileNames();\n }", "private void loadSettings() throws NumberFormatException, SQLException {\n\t\tmaximumRequests = Integer.parseInt(getSetting(\"maximum_requests\"));\n\t\trequestCount = Integer.parseInt(getSetting(\"requests\"));\n\t}", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "public void saveSettings() {\n try {\n Settings.setDegausserPort((String) this.demagnetizerPort.getSelectedItem());\n Settings.setDegausserDelay(((Number) this.demagDelay.getSelectedItem()).intValue());\n Settings.setDegausserRamp(((Number) this.demagRamp.getSelectedItem()).intValue());\n Settings.setDegausserMaximumField(((Number) this.maximumField.getValue()).doubleValue());\n Settings.setHandlerPort((String) this.handlerPort.getSelectedItem());\n Settings.setHandlerAcceleration(((Number) this.acceleration.getValue()).intValue());\n Settings.setHandlerAxialAFPosition(((Number) this.axialAFPosition.getValue()).intValue());\n Settings.setHandlerBackgroundPosition(((Number) this.backgroundPosition.getValue()).intValue());\n Settings.setHandlerDeceleration(((Number) this.deceleration.getValue()).intValue());\n Settings.setHandlerMeasurementPosition(((Number) this.measurementPosition.getValue()).intValue());\n Settings.setHandlerMeasurementVelocity(((Number) this.measurementVelocity.getValue()).intValue());\n Settings.setHandlerRotation(((Number) this.rotation.getValue()).intValue());\n Settings.setHandlerSampleLoadPosition(((Number) this.sampleLoadPosition.getValue()).intValue());\n Settings.setHandlerTransverseYAFPosition(((Number) this.transverseYAFPosition.getValue()).intValue());\n Settings.setHandlerVelocity(((Number) this.velocity.getValue()).intValue());\n Settings.setHandlerRotationVelocity(((Number) this.rotationVelocity.getValue()).intValue());\n Settings.setHandlerRotationDeceleration(((Number) this.rotationDec.getValue()).intValue());\n Settings.setHandlerRotationAcceleration(((Number) this.rotationAcc.getValue()).intValue());\n\n Settings.setMagnetometerPort((String) this.magnetometerPort.getSelectedItem());\n Settings.setMagnetometerXAxisCalibration(((Number) this.xAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerYAxisCalibration(((Number) this.yAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerZAxisCalibration(((Number) this.zAxisCalibration.getValue()).doubleValue());\n creator.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void LoadSettingsIntoArray() {\r\n\t\t// Node gameSettings = document.getElementById(\"GameSettings\");\r\n\t\tNodeList settingsNodeList = document.getElementsByTagName(\"Setting\");\r\n\r\n\t\tfor (int i = 0; i < settingsNodeList.getLength(); i++) {\r\n\t\t\tNode node = settingsNodeList.item(i);\r\n\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\r\n\t\t\t\tElement eElement = (Element) node;\r\n\t\t\t\tsettings.add(eElement);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "private void settingsParameters(){\n String settings = Settings.System.getString(context.getContentResolver(), this.watchface+\"Settings\");\n if (settings == null || settings.equals(\"\")) {settings = \"{}\";}\n\n // Extract data from JSON\n JSONObject json_settings;\n try {\n json_settings = new JSONObject(settings);\n\n // Circles Widget\n if (json_settings.has(\"battery\")) {this.batteryBool = json_settings.getBoolean(\"battery\");}\n if (json_settings.has(\"steps\")) {this.stepsBool = json_settings.getBoolean(\"steps\");}\n if (json_settings.has(\"todayDistance\")) {this.todayDistanceBool = json_settings.getBoolean(\"todayDistance\");}\n if (json_settings.has(\"totalDistance\")) {this.totalDistanceBool = json_settings.getBoolean(\"totalDistance\");}\n if (json_settings.has(\"batteryCircle\")) {this.batteryCircleBool = json_settings.getBoolean(\"batteryCircle\");}\n if (json_settings.has(\"stepsCircle\")) {this.stepCircleBool = json_settings.getBoolean(\"stepsCircle\");}\n if (json_settings.has(\"todayDistanceCircle\")) {this.todayDistanceCircleBool = json_settings.getBoolean(\"todayDistanceCircle\");}\n if(isCircles()){\n if(batteryBool){\n\n\n }\n\n }\n\n } catch (JSONException e) {\n //Settings.System.putString(getContentResolver(), this.watchface+\"Settings\", \"{}\");//reset wrong settings data\n }\n }", "private void loadSettings() {\n//\t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_NAME, 0);\n//\t\t\n//\t\tString fileData = prefs.getString(Defs.PREFS_KEY_PREV_RATES_FILE, \"\");\n//\t\tLog.d(TAG, \"Loaded last \" + fileData);\n//\t\tif ( fileData.length() > 0 ) {\n//\t\t\tByteArrayInputStream bias = new ByteArrayInputStream(fileData.getBytes());\n//\t\t\t_oldRates = new ExchangeRate();\n//\t\t\tparseRates(bias, _oldRates);\n//\t\t}\n\t}", "private void load() { \n\t\tmannschaft_name.setText(helper.getTeamName(mannschaftId));\n\t\tmannschaft_kuerzel.setText(helper.getTeamKuerzel(mannschaftId));\t\t \n\t}", "public void load() throws IOException {\r\n File file = new File(this.filename);\r\n //if file exist.\r\n if (file.exists() && !file.isDirectory()) {\r\n ObjectInputStream is = null;\r\n try {\r\n //opening and reaind the source file\r\n is = new ObjectInputStream(new FileInputStream(this.filename));\r\n SettingsFile temp = (SettingsFile) is.readObject();\r\n //import the loaded file data to the current core.SettingsFile\r\n this.boardSize = temp.getBoardSize();\r\n this.firstPlayer = temp.getFirstPlayer();\r\n this.secondPlayer = temp.getSecondPlayer();\r\n this.player1Color = temp.getPlayer1Color();\r\n this.player2Color = temp.getPlayer2Color();\r\n } catch (IOException e) {\r\n System.out.println(\"Error while loading\");\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(\"Problem with class\");\r\n } finally {\r\n if (is != null) {\r\n is.close();\r\n }\r\n }\r\n }\r\n //if no file, set default settings.\r\n else {\r\n save(SIZE, FIRST_PLAYER, SECOND_PLAYER, PLAYER1COLOR, PLAYER2COLOR);\r\n }\r\n }", "protected void createSettingsComponents() {\r\n periodTimeComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_PERIOD_TIME, MIN_PERIOD_TIME, MAX_PERIOD_TIME, 1 ) );\r\n maxNumberOfPlayersComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAX_NUMBER_OF_PLAYERS, MIN_MAX_NUMBER_OF_PLAYERS, MAX_MAX_NUMBER_OF_PLAYERS, 1 ) );\r\n mapWidthComponent = new JComboBox( MAP_WIDTH_NAMES );\r\n mapHeightComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAP_HEIGHT, MIN_MAP_HEIGHT, MAX_MAP_HEIGHT, 1 ) );\r\n welcomeMessageComponent = new JTextArea( 10, 20 );\r\n gameTypeComponent = new JComboBox( GAME_TYPE_NAMES );\r\n isKillLimitComponent = new JCheckBox( \"Kill limit:\" );\r\n killLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_KILL_LIMIT, MIN_KILL_LIMIT, MAX_KILL_LIMIT, 1 ) );\r\n isTimeLimitComponent = new JCheckBox( \"Time limit:\" );\r\n timeLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_TIME_LIMIT, MIN_TIME_LIMIT, MAX_TIME_LIMIT, 1 ) );\r\n passwordComponent = new JTextField( 10 );\r\n amountOfWallRubblesComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL_RUBBLES, MIN_AMOUNT_OF_WALL_RUBBLES, MAX_AMOUNT_OF_WALL_RUBBLES, 1 ) );\r\n amountOfBloodComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_BLOOD, MIN_AMOUNT_OF_BLOOD, MAX_AMOUNT_OF_BLOOD, 1 ) );\r\n amountOfWallComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL, MIN_AMOUNT_OF_WALL, MAX_AMOUNT_OF_WALL, 1 ) );\r\n amountOfStoneComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_STONE, MIN_AMOUNT_OF_STONE, MAX_AMOUNT_OF_STONE, 1 ) );\r\n amountOfWaterComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WATER, MIN_AMOUNT_OF_WATER, MAX_AMOUNT_OF_WATER, 1 ) );\r\n }", "private void loadPreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n\n int entreeIndex = sp.getInt(\"entreeIndex\", 0);\n int drinkIndex = sp.getInt(\"drinkIndex\", 0);\n int dessertIndex = sp.getInt(\"dessertIndex\", 0);\n\n // Setting inputs from SharedPreferences\n spEntree.setSelection(entreeIndex);\n spDrink.setSelection(drinkIndex);\n spDessert.setSelection(dessertIndex);\n\n edtTxtEntreePrice.setText(alEntreePrices.get(entreeIndex));\n edtTxtDrinkPrice.setText(alDrinkPrices.get(drinkIndex));\n edtTxtDessertPrice.setText(alDessertPrices.get(dessertIndex));\n }", "protected Main(Settings settings) {\r\n this.settings = settings; \r\n configureUI();\r\n build();\r\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n }", "void loadConfig() {\r\n\t\tFile file = new File(\"open-ig-mapeditor-config.xml\");\r\n\t\tif (file.canRead()) {\r\n\t\t\ttry {\r\n\t\t\t\tElement root = XML.openXML(file);\r\n\t\t\t\t\r\n\t\t\t\t// reposition the window\r\n\t\t\t\tElement eWindow = XML.childElement(root, \"window\");\r\n\t\t\t\tif (eWindow != null) {\r\n\t\t\t\t\tsetBounds(\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"x\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"y\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"width\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"height\"))\r\n\t\t\t\t\t);\r\n\t\t\t\t\tsetExtendedState(Integer.parseInt(eWindow.getAttribute(\"state\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eLanguage = XML.childElement(root, \"language\");\r\n\t\t\t\tif (eLanguage != null) {\r\n\t\t\t\t\tString langId = eLanguage.getAttribute(\"id\");\r\n\t\t\t\t\tif (\"hu\".equals(langId)) {\r\n\t\t\t\t\t\tui.languageHu.setSelected(true);\r\n\t\t\t\t\t\tui.languageHu.doClick();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tui.languageEn.setSelected(true);\r\n\t\t\t\t\t\tui.languageEn.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSplitters = XML.childElement(root, \"splitters\");\r\n\t\t\t\tif (eSplitters != null) {\r\n\t\t\t\t\tsplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"main\")));\r\n\t\t\t\t\ttoolSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"preview\")));\r\n\t\t\t\t\tfeaturesSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"surfaces\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tElement eTabs = XML.childElement(root, \"tabs\");\r\n\t\t\t\tif (eTabs != null) {\r\n\t\t\t\t\tpropertyTab.setSelectedIndex(Integer.parseInt(eTabs.getAttribute(\"selected\")));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eLights = XML.childElement(root, \"lights\");\r\n\t\t\t\tif (eLights != null) {\r\n\t\t\t\t\talphaSlider.setValue(Integer.parseInt(eLights.getAttribute(\"preview\")));\r\n\t\t\t\t\talpha = Float.parseFloat(eLights.getAttribute(\"map\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eMode = XML.childElement(root, \"editmode\");\r\n\t\t\t\tif (eMode != null) {\r\n\t\t\t\t\tif (\"true\".equals(eMode.getAttribute(\"type\"))) {\r\n\t\t\t\t\t\tui.buildButton.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eView = XML.childElement(root, \"view\");\r\n\t\t\t\tif (eView != null) {\r\n\t\t\t\t\tui.viewShowBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"buildings\"))) {\r\n\t\t\t\t\t\tui.viewShowBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewSymbolicBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"minimap\"))) {\r\n\t\t\t\t\t\tui.viewSymbolicBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\trenderer.scale = Double.parseDouble(eView.getAttribute(\"zoom\"));\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewStandardFonts.setSelected(\"true\".equals(eView.getAttribute(\"standard-fonts\")));\r\n\t\t\t\t\tui.viewPlacementHints.setSelected(!\"true\".equals(eView.getAttribute(\"placement-hints\")));\r\n\t\t\t\t\tui.viewPlacementHints.doClick();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSurfaces = XML.childElement(root, \"custom-surface-names\");\r\n\t\t\t\tif (eSurfaces != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eSurfaces, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomSurfaceNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eBuildigns = XML.childElement(root, \"custom-building-names\");\r\n\t\t\t\tif (eBuildigns != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eBuildigns, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomBuildingNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tElement eFilter = XML.childElement(root, \"filter\");\r\n\t\t\t\tif (eFilter != null) {\r\n\t\t\t\t\tfilterSurface.setText(eFilter.getAttribute(\"surface\"));\r\n\t\t\t\t\tfilterBuilding.setText(eFilter.getAttribute(\"building\"));\r\n\t\t\t\t}\r\n\t\t\t\tElement eAlloc = XML.childElement(root, \"allocation\");\r\n\t\t\t\tif (eAlloc != null) {\r\n\t\t\t\t\tui.allocationPanel.availableWorkers.setText(eAlloc.getAttribute(\"worker\"));\r\n\t\t\t\t\tui.allocationPanel.strategies.setSelectedIndex(Integer.parseInt(eAlloc.getAttribute(\"strategy\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eRecent = XML.childElement(root, \"recent\");\r\n\t\t\t\tif (eRecent != null) {\r\n\t\t\t\t\tfor (Element r : XML.childrenWithName(eRecent, \"entry\")) {\r\n\t\t\t\t\t\taddRecentEntry(r.getAttribute(\"file\")); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setupGUI() {\n\t\tcollapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsingToolbarLayout);\n\t\tlogo = (SmartImageView) findViewById(R.id.logoo);\n\t\tnomePosto = (TextView) findViewById(R.id.nomeposto);\n\t\tdescrizione = (TextView) findViewById(R.id.descrizioneposto);\n\t\twebsite = (TextView) findViewById(R.id.websiteposto);\n\t\tnumtelefono = (TextView) findViewById(R.id.telefonoposto);\n\t\tcitta = (TextView) findViewById(R.id.cittaposto);\n\t\tbtnMappa = (FloatingActionButton) findViewById(R.id.fabbuttonmappa);\n\t\tgallery = (LinearLayout) findViewById(R.id.gallery);\n\t\tgalleryContainer = (CardView) findViewById(R.id.cv1);\n\t\t// rvofferte = (RecyclerView) findViewById(R.id.rvofferte);\n\t\t// LinearLayoutManager llm = new\n\t\t// LinearLayoutManager(DetPlaActivity.this);\n\t\t// rvofferte.setLayoutManager(llm);\n\t\t// rvofferte.setSaveEnabled(false);\n\t}", "private void loadSettings(){\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE);\n notificationSwtich = sharedPreferences.getBoolean(SWITCH, false);\n reminderOnOff.setChecked(notificationSwtich);\n }", "public void loadValues() {\n color.setText(bluej.getExtensionPropertyString(PROFILE_LABEL, \"\"));\r\n }", "public void loadData() {\n if (this.model != null) {\n\n this.dataLayout.setVisibility(View.VISIBLE);\n this.emptyText.setVisibility(View.GONE);\n\n\n if (this.model.getSolution() != null) {\n this.solutionView.setText(this.model.getSolution());\n }\n if (this.model.getArguments() != null) {\n this.argumentsView.setText(this.model.getArguments());\n }\n if (this.model.getQuestion() != null) {\n this.questionView.setText(\n String.valueOf(this.model.getQuestion().getId()));\n }\n } else {\n this.dataLayout.setVisibility(View.GONE);\n this.emptyText.setVisibility(View.VISIBLE);\n }\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "private static void initAndShowGUI() {\n }", "private void initUI () {\n\t\t\t\n\t\t\tJFrame error = new JFrame();\n\t\t\tJFrame tmp = new JFrame();\n\t\t\ttmp.setSize(50, 50);\n\t\t\tString select = \"cheese\";\n\t\t\tboolean boolTemp = false;\n\t\t\tif(new File(\"prefFile.txt\").exists() == false){ //if this is the first run\n\t\t\t\twhile(select.equals(\"cheese\")){\n\t\t\t\t\tselect = JOptionPane.showInputDialog(tmp, \"It appears this is your first run. \"\n\t\t\t\t\t\t\t+ \"Enter the city name of your current location:\"); //prompts user for their current location\n\t\t\t\t\tif(select != null){\n\t\t\t\t\t\tboolTemp = searchBoxUsedTwo(select); //used the search function\n\t\t\t\t\t}\n\t\t\t\t\tif(boolTemp == false){\n\t\t\t\t\t\tselect = \"cheese\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tapp.setCurrentLocation(app.getVisibleLocation()); //sets the current location\n\t\t\t}\n\t\t\telse{ //if it's been run before\n\t\t\t\tlocation tmpLoc = new location();\n\t\t\t\ttry {\n\t\t\t\t\ttmpLoc = app.loadPref(); //load the location from memory\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t\tapp.setCurrentLocation(tmpLoc); //and set it as the current location\n\t\t\t\tapp.setVisibleLocation(tmpLoc);\n\t\t\t\t\n\t\t\t}\n\t\t\tthis.setTitle(\"Weather Application\"); //sets title of frame \n\t\t\tthis.setSize(1300, 600); //sets size of frame\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE); //initiates exit on close command\n\t\t\tthis.setJMenuBar(this.createMenubar()); \n\t\t\t\n\t\t\tcreateFormCalls();\n\t\t\t\n\t\t\ttabbedPane.addTab(\"Current\", null, currentPanel); //fills a tab window with current data\n\t\t\ttabbedPane.addTab(\"Short Term\", null, shortPanel); //fills a tab window with short term data\n\t\t\ttabbedPane.addTab(\"Long Term\", null, longPanel); //fills a tab window with short term data\n\t\t\ttabbedPane.addTab(\"Mars Weather\", null, marsPanel); //fills a tab window with short term data\n\t\t\t\n\t\t\tGroupLayout layout = new GroupLayout(this.getContentPane());\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) \n\t\t\t\t\t\t\t\t.addComponent(tabbedPane)\n\t\t\t\t\t\t\t\t.addComponent(refreshLabel)\n\t\t\t\t\t\t)\n\n\t\t\t);\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t\n\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) \n\t\t\t\t\t\t\t.addComponent(tabbedPane)\n\t\t\t\t\t)\n\t\t\t\t\t.addComponent(refreshLabel)\n\n\t\t\t);\n\t\t\t\n\t\t\tthis.getContentPane().setLayout(layout);\n\t\t}", "private void initData() {\n\t\tSetTopBarTitle(getString(R.string.os_jsh_wdj_add_ldss));\r\n\t\tregFliter();\r\n\t}", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\tm_DatasetTable.prefWidthProperty().bind(m_MainPane.widthProperty().divide(40).multiply(23));\r\n\t\tm_DatasetTable.prefHeightProperty().bind(m_MainPane.heightProperty().subtract(m_TopHBox.heightProperty()));\r\n\t\tm_ConceptTable.prefWidthProperty().bind(m_MainPane.widthProperty().divide(40).multiply(17));\r\n\t\tm_ConceptTable.prefHeightProperty().bind(m_MainPane.heightProperty().subtract(m_TopHBox.heightProperty()));\r\n\t\tm_PortalList.prefWidthProperty().bind(m_MainPane.widthProperty().divide(4));\r\n\t\tm_menuBar.prefWidthProperty().bind(m_MainPane.widthProperty());\r\n\t\t//Setting up the menu bar\r\n\t\tm_saveMenu.setOnAction(new EventHandler<ActionEvent>() {\r\n\t public void handle(ActionEvent e) {\r\n\t\t\t\t//Set the configuration of the categorizer to the input fields.\r\n\t\t\t\t//If input is invalid do nothing.\r\n\t\t\t\tif(!setConfiguration()) return;\r\n\t \t\r\n\t FileChooser fileChooser = new FileChooser();\r\n\t fileChooser.setTitle(\"Save Settings\");\r\n\t fileChooser.setInitialFileName(\"Settings\");\r\n\t fileChooser.getExtensionFilters().add(new ExtensionFilter(\"Categorizer Settings\", \"*.csf\"));\r\n\t File file = fileChooser.showSaveDialog(new Stage());\r\n\t if(file == null) return;\r\n\t try {\r\n\t\t\t\t\tm_Categorizer.saveSettings(file);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\t\talert.setContentText(\"Cannot save file\");\r\n\t\t\t\t\talert.showAndWait();\r\n\t\t\t\t}\r\n\r\n\t }\r\n\t });\r\n\t\tm_loadMenu.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override public void handle(ActionEvent e) {\r\n\t FileChooser fileChooser = new FileChooser();\r\n\t fileChooser.setTitle(\"Load Settings\");\r\n\t fileChooser.getExtensionFilters().add(new ExtensionFilter(\"Categorizer Settings\", \"*.csf\"));\r\n\t File file = fileChooser.showOpenDialog(new Stage());\r\n\t if(file == null) return;\r\n\t if(!file.canRead()) return;\r\n\t try {\r\n\t\t\t\t\tm_Categorizer.loadSettings(file);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\t\talert.setContentText(\"Cannot load file\");\r\n\t\t\t\t\talert.showAndWait();\r\n\t\t\t\t}\r\n\t refreshUI();\r\n\t }\r\n\t });\r\n\t\t//The export results as csv menu item first lets the user select one or more portals \r\n\t\t//and then runs categorization on each portal saving the resulting category frequencies to a csv file\r\n\t\tCategorizerWindow thisWindow = this;\r\n\t\tm_ExportCSV.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t\t@Override public void handle(ActionEvent e) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t//Set the configuration of the categorizer to the input fields.\r\n\t\t\t\t\t\t//If input is invalid do nothing.\r\n\t\t\t\t\t\tif(!setConfiguration()) return;\r\n\t\t\t\t\t\t//Let the user select any number of portals\r\n\t\t\t\t\t\tSelectPortalWindow w = new SelectPortalWindow();\r\n\t\t\t\t\t\tList<String> selectedPortals = w.selectPortals(m_Database.getAllPortals());\r\n\t\t\t\t\t\t//Let the user chose a destination file\r\n\t\t\t\t\t\tFileChooser fileChooser = new FileChooser();\r\n\t\t\t\t fileChooser.setTitle(\"Export category frequencies\");\r\n\t\t\t\t fileChooser.setInitialFileName(\"category frequencies\");\r\n\t\t\t\t fileChooser.getExtensionFilters().add(new ExtensionFilter(\"CSV File\", \"*.csv\"));\r\n\t\t\t\t File file = fileChooser.showSaveDialog(new Stage());\r\n\t\t\t\t if(file == null) return;\r\n\t\t\t\t //Run categorization on the selected portals and save the results to the selected file\r\n\t\t\t\t ExportCsvWindow exportWindow = new ExportCsvWindow(selectedPortals);\r\n\t\t\t\t exportWindow.display(m_Database, m_Categorizer, file);\r\n\t\t\t\t \r\n\r\n\t\t\t\t\t} catch (StorageException e1){\r\n\t\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\t\t\talert.setContentText(\"Cannot connect to Database\");\r\n\t\t\t\t\t\talert.showAndWait();\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\t\t\talert.setContentText(\"Cannot write to this file\");\r\n\t\t\t\t\t\talert.showAndWait();\r\n\t\t\t\t\t}\r\n\t\t\t\t }\r\n\t\t});\r\n\t\t//Save current categories to database\r\n\t\tm_saveCatsDB.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override public void handle(ActionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tm_Database.updateCategories(m_data);\r\n\t\t\t\t} catch (StorageException e1) {\r\n\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\t\talert.setContentText(\"Cannot connect to Database\");\r\n\t\t\t\t\talert.showAndWait();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t//Setting up the columns for the Dataset table\r\n\t\tm_LinkColumn.setCellValueFactory(new Callback<CellDataFeatures<Dataset, String>, ObservableValue<String>>() {\r\n\t\t public ObservableValue<String> call(CellDataFeatures<Dataset, String> arg) {\r\n\t\t\t return new SimpleStringProperty(arg.getValue().ID().value());\r\n\t\t }\r\n\t\t});\r\n\t\tm_PortalColumn.setCellValueFactory(new Callback<CellDataFeatures<Dataset, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Dataset, String> arg) {\r\n\t\t\t\t return new SimpleStringProperty(arg.getValue().Portal());\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_TitleColumn.setCellValueFactory(new Callback<CellDataFeatures<Dataset, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Dataset, String> arg) {\r\n\t\t\t\t return new ReadOnlyStringWrapper(arg.getValue().Title());\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_TitleColumn.setCellFactory(new Callback<TableColumn<Dataset, String>, TableCell<Dataset, String>>() {\r\n\t\t\t public TableCell<Dataset, String> call(TableColumn<Dataset, String> arg) {\r\n\t\t\t\t return getTextWrappingCell();\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_KeywordsColumn.setCellValueFactory(new Callback<CellDataFeatures<Dataset, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Dataset, String> arg) {\r\n\t\t\t\t String keywords = \"\";\r\n\t\t\t\t \r\n\t\t\t\t for(String keyword : arg.getValue().Keywords()){\r\n\t\t\t\t \t keywords += \"\\u25B8 \" + keyword + System.getProperty(\"line.separator\");\r\n\t\t\t\t }\r\n\t\t\t\t if(keywords != \"\") keywords = keywords.substring(0, keywords.length()-2);\r\n\t\t\t\t \r\n\t\t\t\t return new SimpleStringProperty(keywords);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_CategoriesColumn.setCellValueFactory(new Callback<CellDataFeatures<Dataset, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Dataset, String> arg) {\r\n\t\t\t String categories = \"\";\r\n\t\t\t \r\n\t\t\t for(Map.Entry<BabelDomain, Float> category : Globals.entriesSortedByValues(arg.getValue().Categories())){\r\n\t\t\t \t categories = \"\\u25B8 \" + category.getKey() + System.getProperty(\"line.separator\") + categories;\r\n\t\t\t }\r\n\t\t\t if(categories != \"\") categories = categories.substring(0, categories.length()-2);\r\n\t\t\t \r\n\t\t\t return new SimpleStringProperty(categories);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ScoreColumn.setCellValueFactory(new Callback<CellDataFeatures<Dataset, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Dataset, String> arg) {\r\n\t\t\t String categories = \"\";\r\n\t\t\t \r\n\t\t\t for(Map.Entry<BabelDomain, Float> category : Globals.entriesSortedByValues(arg.getValue().Categories())){\r\n\t\t\t \t categories = \"\\u25B8 \" + category.getValue() + System.getProperty(\"line.separator\") + categories;\r\n\t\t\t }\r\n\t\t\t if(categories != \"\") categories = categories.substring(0, categories.length()-2);\r\n\t\t\t \r\n\t\t\t return new SimpleStringProperty(categories);\r\n\t\t\t }\r\n\t\t});\r\n\t\t//Setting up the columns for the Concept table\r\n\t\tm_ConceptNameColumn.setCellValueFactory(new Callback<CellDataFeatures<Concept, String>, ObservableValue<String>>() {\r\n\t\t\t\t public ObservableValue<String> call(CellDataFeatures<Concept, String> arg) {\r\n\t\t\t\t\t return new SimpleStringProperty(arg.getValue().Name());\r\n\t\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptNameColumn.setCellFactory(new Callback<TableColumn<Concept, String>, TableCell<Concept, String>>() {\r\n\t\t\t public TableCell<Concept, String> call(TableColumn<Concept, String> arg) {\r\n\t\t\t\t\t return new ConceptTableCell(CellType.nonEditable);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptCatColumn.setCellValueFactory(new Callback<CellDataFeatures<Concept, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Concept, String> arg) {\r\n\t\t\t\t //Concepts may or may not have categories\r\n\t\t\t\t String category = arg.getValue().Category() != null ? arg.getValue().Category().toString() : \"\"; \r\n\t\t\t\t return new SimpleStringProperty(category);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptCatColumn.setCellFactory(new Callback<TableColumn<Concept, String>, TableCell<Concept, String>>() {\r\n\t\t\t public TableCell<Concept, String> call(TableColumn<Concept, String> arg) {\r\n\t\t\t\t\t return new ConceptTableCell(CellType.category);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptCatConfColumn.setCellValueFactory(new Callback<CellDataFeatures<Concept, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Concept, String> arg) {\r\n\t\t\t\t return new SimpleStringProperty(String.valueOf(arg.getValue().CatConfidence()));\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptCatConfColumn.setCellFactory(new Callback<TableColumn<Concept, String>, TableCell<Concept, String>>() {\r\n\t\t\t public TableCell<Concept, String> call(TableColumn<Concept, String> arg) {\r\n\t\t\t\t\t return new ConceptTableCell(CellType.confidence);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptRelScoreColumn.setCellValueFactory(new Callback<CellDataFeatures<Concept, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Concept, String> arg) {\r\n\t\t\t\t //Remove digist after 2. decimal place\r\n\t\t\t\t float relScore = arg.getValue().Scores().RelevanceScore();\r\n\t\t\t\t relScore = Math.round(relScore*100)/100.0f;\r\n\t\t\t\t return new SimpleStringProperty(String.valueOf(relScore));\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptRelScoreColumn.setCellFactory(new Callback<TableColumn<Concept, String>, TableCell<Concept, String>>() {\r\n\t\t\t public TableCell<Concept, String> call(TableColumn<Concept, String> arg) {\r\n\t\t\t\t\t return new ConceptTableCell(CellType.nonEditable);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptCohScoreColumn.setCellValueFactory(new Callback<CellDataFeatures<Concept, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Concept, String> arg) {\r\n\t\t\t\t //Remove digist after 2. decimal place\r\n\t\t\t\t float cohScore = arg.getValue().Scores().CoherenceScore();\r\n\t\t\t\t cohScore = Math.round(cohScore*100)/100.0f;\r\n\t\t\t\t return new SimpleStringProperty(String.valueOf(cohScore));\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptCohScoreColumn.setCellFactory(new Callback<TableColumn<Concept, String>, TableCell<Concept, String>>() {\r\n\t\t\t public TableCell<Concept, String> call(TableColumn<Concept, String> arg) {\r\n\t\t\t\t\t return new ConceptTableCell(CellType.nonEditable);\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptWeightColumn.setCellValueFactory(new Callback<CellDataFeatures<Concept, String>, ObservableValue<String>>() {\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<Concept, String> arg) {\r\n\t\t\t\t //Remove digist after 2. decimal place\r\n\t\t\t\t float weight = m_Categorizer.ConceptIDsToFeatures().get(arg.getValue().ID()).Weight();\r\n\t\t\t\t weight = Math.round(weight*100)/100.0f;\r\n\t\t\t\t return new SimpleStringProperty(String.valueOf(weight));\r\n\t\t\t }\r\n\t\t});\r\n\t\tm_ConceptWeightColumn.setCellFactory(new Callback<TableColumn<Concept, String>, TableCell<Concept, String>>() {\r\n\t\t\t public TableCell<Concept, String> call(TableColumn<Concept, String> arg) {\r\n\t\t\t\t\t return new ConceptTableCell(CellType.weight);\r\n\t\t\t }\r\n\t\t});\r\n\t\t\r\n\t\t//Ctrl + C in Dataset table copies dataset id to clipboard\r\n\t\tm_DatasetTable.setOnKeyPressed(new EventHandler<KeyEvent>() {\r\n\t\t @Override\r\n\t\t public void handle(KeyEvent t) {\r\n\t\t \tif(t.isControlDown() && t.getCode() == KeyCode.C){\r\n\t\t\t \tDataset selectedDataset = m_DatasetTable.getSelectionModel().getSelectedItem();\r\n\t\t\t \tif(selectedDataset == null) return;\r\n\r\n\t\t\t final Clipboard clipboard = Clipboard.getSystemClipboard();\r\n\t\t\t final ClipboardContent content = new ClipboardContent();\r\n\t\t content.putString(selectedDataset.ID().value());\r\n\t\t\t clipboard.setContent(content);\r\n\t\t\t }\r\n\t\t }\r\n\t\t});\r\n\t\t//Ctrl + C in Concepts table copies url to babelnet synset to clipboard\r\n\t\tm_ConceptTable.setOnKeyPressed(new EventHandler<KeyEvent>() {\r\n\t\t @Override\r\n\t\t public void handle(KeyEvent t) {\r\n\t\t \tif(t.isControlDown() && t.getCode() == KeyCode.C){\r\n\t\t\t \tConcept selectedConcept = m_ConceptTable.getSelectionModel().getSelectedItem();\r\n\t\t\t \tif(selectedConcept == null) return;\r\n\r\n\t\t\t final Clipboard clipboard = Clipboard.getSystemClipboard();\r\n\t\t\t final ClipboardContent content = new ClipboardContent();\r\n\t\t content.putString(\"http://babelnet.org/synset?word=\" + selectedConcept.ID().value());\r\n\t\t\t clipboard.setContent(content);\r\n\t\t\t }\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\tm_DatasetTable.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Dataset>() {\r\n\t\t @Override\r\n\t\t public void changed(ObservableValue<? extends Dataset> observableValue, Dataset oldValue, Dataset newValue) {\r\n\t\t //Check whether item is selected\r\n\t\t if(m_DatasetTable.getSelectionModel().getSelectedItem() != null){\r\n\t\t \t//Update the Concept table with the concepts of the selected dataset\r\n\t\t \tm_Conceptsdata.clear();\r\n\t\t \t//First add keyword concepts\r\n\t\t \tfor(Concept c : newValue.Concepts())\r\n\t\t \t\tif(c.Mark().startsWith(\"1\")) m_Conceptsdata.add(c);\r\n\t\t \t//Then add non-keyword concepts\r\n\t\t \tfor(Concept c : newValue.Concepts())\r\n\t\t \t\tif(c.Mark().startsWith(\"0\")) m_Conceptsdata.add(c);\r\n\t\t }\r\n\t\t }\r\n\t\t});\r\n\r\n\t\t//The load button opens a new window which lets the user select from all available portals\r\n\t\tm_LoadBtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override public void handle(ActionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSelectPortalWindow w = new SelectPortalWindow();\r\n\t\t\t\t\tloadPortals(w.selectPortals(m_Database.getAllPortals()));\r\n\t\t\t\t} catch (StorageException e1){\r\n\t\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\t\talert.setContentText(\"Cannot connect to Database\");\r\n\t\t\t\t\talert.showAndWait();\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\t//The unload button removes the selected portal from the list and removes all datasets belonging to the corresponding portal\r\n\t\tm_UnloadBtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override public void handle(ActionEvent e) {\r\n\t\t\t\tint selectedPortalIndex = m_PortalList.getSelectionModel().getSelectedIndex();\r\n\t\t\t\t//Only do something if a portal is selected\r\n\t\t\t\tif(selectedPortalIndex < 0) return;\r\n\t\t\t\t//Remove the portal from the categorizer and the tableview\r\n\t\t\t\tm_data.removeAll(m_Categorizer.unloadPortal(m_PortalList.getItems().get(selectedPortalIndex)));\r\n\t\t\t\tm_DatasetTable.refresh();\r\n\t\t\t\t//Clear the concept tableview\r\n\t\t\t\tm_Conceptsdata.clear();\r\n\t\t\t\t//Remove the portal from the listview\r\n\t\t\t\tm_PortalList.getItems().remove(selectedPortalIndex);\r\n\t\t\t\t//Label for number of datasets\r\n\t\t\t\tm_numDatasetsLabel.setText(m_Categorizer.Datasets().size() + \" Datasets loaded.\");\r\n\t\t //Refresh the statistics window\r\n\t\t\t\tm_StatisticsWindow.refresh();\r\n\t\t\t\t//Update the filter choicebox\r\n\t\t\t\tupdateFilterChoiceBox();\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t//Setup the statistics window\r\n\t\t//Load the new window\r\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getClassLoader().getResource(\"Statistics.fxml\"));\r\n\t\tParent root1;\r\n\t\ttry {\r\n\t\t\troot1 = (Parent) loader.load();\r\n\t\t} catch (IOException e2) {\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(\"Cannot access statistics.fxml resource!\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n Stage stage = new Stage();\r\n stage.initModality(Modality.NONE);\r\n stage.initStyle(StageStyle.DECORATED);\r\n stage.setTitle(\"Statistics\");\r\n stage.setScene(new Scene(root1)); \r\n //Keep the statistics window\r\n m_StatisticsWindow = loader.<StatisticsWindow>getController();\r\n //Register the callback with the statistics window\r\n m_StatisticsWindow.registerResultListener(thisWindow);\r\n\t\t\r\n\t\t//The statistics button brings up the statistics window for the current categorization\r\n\t\tm_StatsButton.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override public void handle(ActionEvent e) {\r\n\t\t //Populate UI of statistics window\r\n\t\t m_StatisticsWindow.refresh(); \r\n\t\t\t stage.show();\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\t//The categorize button performs the categorization of all active datasets using the settings entered in the textfields\r\n\t\tm_CategorizeBtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override public void handle(ActionEvent e) {\r\n\t\t\t\t//Set the configuration of the categorizer to the input fields.\r\n\t\t\t\t//If input is invalid do nothing.\r\n\t\t\t\tif(!setConfiguration()) return;\r\n\t\t\t\t//Clear the concept tableview\r\n\t\t\t\tm_Conceptsdata.clear();\r\n\t\t\t\t//Run the categorization algorithm\r\n\t\t\t\tm_Categorizer.categorize();\r\n\t\t\t\t//Refresh the dataset table\r\n\t\t\t\tm_DatasetTable.refresh();\r\n\t\t\t\t//Refresh statistics window\r\n\t\t\t\tm_StatisticsWindow.refresh();\r\n\t\t\t\t//Update the filter choicebox\r\n\t\t\t\tupdateFilterChoiceBox();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//When a filter is selected in the choicebox the tableview is update accordingly\r\n\t\tm_FilterChoice.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\r\n\t\t @Override\r\n\t\t public void changed(ObservableValue<? extends String> observableValue, String oldVal, String newVal) {\r\n\t\t \tif(newVal == null){\r\n\t\t\t \tm_numDisplayedLabel.setText(m_data.size() + \" Datasets displayed\");\r\n\t\t\t \treturn;\r\n\t\t\t }\r\n\t\t \tm_data.clear();\r\n\t\t \t\r\n\t\t \tif(newVal.equals(\"All\")){\r\n\t \t\t\tm_data.addAll(m_Categorizer.Datasets());\t\r\n\t\t \t}else{\r\n\t\t\t \t//Only display datasets that belong to the selected category\r\n\t\t\t \tfor(Dataset dataset : m_Categorizer.Datasets())\r\n\t\t\t \t\tif(dataset.Categories().containsKey(BabelDomain.valueOf(newVal)))\r\n\t\t\t \t\t\tm_data.add(dataset);\r\n\t\t\t }\r\n\t\t \tm_numDisplayedLabel.setText(m_data.size() + \" Datasets displayed\");\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\t//Populate tables and choicebox\r\n\t\tm_DatasetTable.setItems(m_data);\r\n\t\tm_ConceptTable.setItems(m_Conceptsdata);\r\n\t\tm_FilterChoice.setItems(m_FilterChoices);\r\n\t}", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "public void setUIsettingPane(PropertyFileWrapper pfw) {\n\n int col = 0, row = 0;\n\n GridPane uistatusgrid = new GridPane();\n uistatusgrid.setHgap(20);\n uistatusgrid.setVgap(5);\n uistatusgrid.setPadding(new Insets(20, 10, 10, 10));\n timeZone = new JFXTextField();\n timeZone.setPromptText(\"Enter the Time Zone\");\n if (!pfw.getTimeZone().isEmpty() || !pfw.getTimeZone().equals(\"\") || pfw.getTimeZone() != null) {\n timeZone.setText(pfw.getTimeZone());\n }\n\n timeFormat = new JFXTextField();\n timeFormat.setPromptText(\"Enter the time format\");\n if (!pfw.getTimeFormat().isEmpty() || !pfw.getTimeFormat().equals(\"\") || pfw.getTimeFormat() != null) {\n timeFormat.setText(pfw.getTimeFormat());\n }\n fetchTime = new JFXTextField();\n fetchTime.setPromptText(\"Enter Refresh Rate\");\n if (!pfw.getFetchTime().isEmpty() || !pfw.getFetchTime().equals(\"\") || pfw.getFetchTime() != null) {\n fetchTime.setText(pfw.getFetchTime());\n }\n statusPath = new JFXTextField();\n statusPath.setPromptText(\"Please select the Status folder\");\n statusPath.setDisable(true);\n if (!pfw.getStatusPath().isEmpty() || !pfw.getStatusPath().equals(\"\") || pfw.getStatusPath() != null) {\n statusPath.setText(pfw.getStatusPath());\n }\n statusFileLoad = new Button(\"Browse\");\n\n statusFileLoad.setOnAction((ActionEvent event) -> {\n\n try {\n\n Stage mainstage = (Stage) mainvbox.getScene().getWindow();\n File fileName = fileChooser.showOpenDialog(mainstage);\n\n if (fileName != null) {\n\n if (fileName.getAbsoluteFile().exists()) {\n statusPath.setText(fileName.getAbsolutePath());\n\n if (!statusPath.getText().isEmpty()) {\n schedularConf.setDisable(false);\n fileConf.setDisable(false);\n mailAlerts.setDisable(false);\n smtpConf.setDisable(false);\n ftptp.setDisable(false);\n try {\n statusProperties = new StatusProperties(statusPath.getText());\n setConnProperties(statusProperties.getConnFile());\n setSmtpProperties(statusProperties.getMailFile());\n\n } catch (IOException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n } else {\n throw new FileNotFoundException(fileName.getAbsolutePath() + \" does not exists.\");\n }\n }\n } catch (Exception ex) {\n\n ex.printStackTrace();\n new ExceptionUI(ex);\n }\n\n });\n\n if (statusPath.getText().isEmpty()) {\n schedularConf.setDisable(true);\n fileConf.setDisable(true);\n mailAlerts.setDisable(true);\n smtpConf.setDisable(true);\n ftptp.setDisable(true);\n } else {\n schedularConf.setDisable(false);\n fileConf.setDisable(false);\n mailAlerts.setDisable(false);\n smtpConf.setDisable(false);\n ftptp.setDisable(false);\n }\n\n uistatusgrid.add(new Label(\"Time Zone\"), col, row);\n uistatusgrid.add(timeZone, col + 1, row, 2, 1);\n uistatusgrid.add(new Label(\"Date & Time Format\"), col, ++row);\n uistatusgrid.add(timeFormat, col + 1, row, 2, 1);\n uistatusgrid.add(new Label(\"Refresh Rate\"), col, ++row);\n uistatusgrid.add(fetchTime, col + 1, row, 2, 1);\n uistatusgrid.add(new Label(\"Status File\"), col, ++row);\n uistatusgrid.add(statusPath, col + 1, row, 2, 1);\n uistatusgrid.add(statusFileLoad, col + 3, row, 3, 1);\n// uistatusgrid.add(validate, col + 1, ++row, 2, 1);\n uiStatus.setContent(uistatusgrid);\n }", "public static void load() {\n\t\t// manager.load(camp_fire);\r\n\t\t// manager.load(camp_fire_burntout);\r\n\t\t//\r\n\t\t// manager.load(fire_stick);\r\n\t\t// manager.load(fire_stick_burntout);\r\n\t\t//\r\n\t\t// manager.load(stockpile);\r\n\t\t// manager.load(worker);\r\n\t\t//\r\n\t\t// manager.load(icon_wood);\r\n\t\t//\r\n\t\tmanager.load(worker_ant);\r\n\t\tmanager.setLoader(FreeTypeFontGenerator.class,\r\n\t\t\t\tnew FreeTypeFontGeneratorLoader(new InternalFileHandleResolver()));\r\n\t\tmanager.load(dialog);\r\n\t}", "public UI() \n {\n // initiate attributs\n loadedDictionaryFilename = \"\";\n lexiNodeTrees = new ArrayList<>();\n \n // initiate window component\n initComponents();\n setTitle(\"Dictio\");\n \n // empty lists\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n this.getAllWordsList().setModel( new DefaultListModel() );\n }", "public MainTabWindow(Fitbit fitbit1) throws Exception\n\t{\n\n\t\tsuper(new GridLayout(1, 1));\n\n\t\tthis.fitbit = fitbit1;\n\n\t\t// //////////////TESTING OBJECT SERIALIZATION//////////////\n\t\tuserSettings = new UserSettings();\n\t\t// userSettings.setUnits(\"imperial\");\n\t\t// setPointArray(Point (1,1),2,3,4,5)\n\t\tobjSerial = new ObjectSerialization(userSettings);\n\t\t// objSerial.storeUserSettings();\n\t\tuserSettings = objSerial.loadUserSettings();\n\n\t\t\n\t\tSystem.out.println(userSettings + \"\\n TEST\");\n\t\tPoint[] savedPointArray = userSettings.getPointArray();\n\t\tif (savedPointArray != null) {\n\t\t\tsetPointArray(savedPointArray[1], savedPointArray[2], savedPointArray[3], savedPointArray[4]);\n\t\t\tSystem.out.println(savedPointArray[0] + \" hello\");\n\t\t}\n\t\tRefreshTokens.setUnits(userSettings.getUnits());\n\t\t// //////////////TESTING OBJECT SERIALIZATION//////////////\n\t\t\n \n String curYear = Calendar.getInstance().get(Calendar.YEAR) + \"\";\n\t\tint intMonth = Calendar.getInstance().get(Calendar.MONTH)+1;\n\t\t\n\t\tint intDay = Calendar.getInstance().get(Calendar.DAY_OF_MONTH) ;\n\t\tString curMonth=\"\";\n\t\tString curDay=\"\";\n\t\tif (intMonth<10)\n\t\t\tcurMonth = \"0\"+intMonth;\n\t\telse\n\t\t\tcurMonth = intMonth +\"\";\n\t\t\t\t\n\n\t\tif (intDay<10)\n\t\t\tcurDay = \"0\"+intDay;\n\t\telse\n\t\t\tcurDay = intDay +\"\";\n\t\t\t\n\t\n\t\t\t\n\t\t// Create the API classes and the relevant variables associated with each\n\t\t heartrate = fitbit.getHeartActivity(curYear, curMonth, curDay);\n\t\t outOfRange = heartrate.getOutOfRange();\n\t\t fatBurn = heartrate.getFatBurn();\n\t\t cardio = heartrate.getCardio();\n\t\t peak = heartrate.getPeak();\n\t\t restHeartRate = heartrate.getRestHeartRate();\n\n\t\t bestlife = fitbit.getBestLifeActivity();\n\t\t bestDistance = bestlife.getBestDistance();\n\t\t bestDistanceDate = bestlife.getBestDistanceDate();\n\t\t bestFloor = bestlife.getBestFloor();\n\t\t bestFloorDate = bestlife.getBestFloorDate();\n\t\t bestStep = bestlife.getBestStep();\n\t\t bestStepDate = bestlife.getBestStepDate();\n\t\t lifeDistance = bestlife.getLifeDistance();\n\t\t lifeFloors = bestlife.getLifeFloors();\n\t\t lifeSteps = bestlife.getLifeSteps();\n\n\t\t daily = fitbit.getDailyActivity(curYear, curMonth, curDay);\n\t\t floors = daily.getFloors();\n\t\t steps = daily.getSteps();\n\t\t distance = daily.getDistance();\n\t\t calories = daily.getCalories();\n\t\t sedentaryMins = daily.getSedentaryMins();\n\t\t lightActiveMins = daily.getLightActiveMins();\n\t\t fairlyActiveMins = daily.getFairlyActiveMins();\n\t\t veryActiveMins = daily.getVeryActiveMins();\n\t\t activeMinGoals = daily.getActiveMinGoals();\n\t\t caloriesOutGoals = daily.getCaloriesOutGoals();\n\t\t distanceGoals = daily.getDistanceGoals();\n\t\t floorGoals = daily.getFloorGoals();\n\t\t stepGoals = daily.getStepGoals();\n\n\n\n\t\t// create a tabbed pane that will hold the contents.\n\t\tfinal JTabbedPane tabbedPane = new ClosableTabbedPane();\n\n\t\t/**\n\t\t * Dashboard\n\t\t */\n\n\t\tJComponent panel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout());\n\n\t\t// A top menu bar that appears when the user first uses the Dashboard Menu\n\t\tfinal JMenuBar desktopMenuBar = new JMenuBar();\n\t\tdesktopMenuBar.setBackground(new Color(100, 100, 100));\n\t\tdesktopMenuBar.setBorderPainted(false);\n\n\t\t// Add the menu bar\n\t\tpanel1.add(desktopMenuBar, BorderLayout.NORTH);\n\n\t\t// Adding the JDesktopPane into the \"Dashboard\" Panel\n\t\tfinal JDesktopPane desktop = new JDesktopPane();\n\t\tdesktop.setPreferredSize(new java.awt.Dimension(600, 400));\n\t\t/*\n\t\t * //add a panel that we the elements are going to be added on final JPanel panelback1 = new JPanel();\n\t\t * panelback1.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35))); panelback1.setBackground(new\n\t\t * Color(40, 40, 40)); panelback1.setForeground(new Color(40, 40, 40)); panelback1.setBounds(0, 0, 1128, 644);\n\t\t * panel1.add(panelback1, BorderLayout.WEST); panelback1.setLayout(null);\n\t\t */\n\n\t\tdesktop.setBackground(new Color(40, 40, 40));\n\n\t\t/*\n\t\t * Elements needed: Map HeartRate Zone Calories Burned Daily Activity Records // Sedentary Minutes //\n\t\t *\n\t\t * Note: The point array is in this order\n\t\t * \t\tthis.pointArray[0] = mapPoint;\n\t\t\t\tthis.pointArray[1] = heartPoint; 720, 200, 485, 355, true, true\n\t\t\t\tthis.pointArray[2] = calPoint;\t\t490, 0, 235, 520, true, true, true\n\t\t\t\tthis.pointArray[3] = activePoint; 0, 0, 510, 520, true, true, true\n\t\t\t\tthis.pointArray[4] = sedPoint;\t720, 0, 475, 210, true, true, true\n\t\t */\n\t\n\t\t// Add the mapFrame one with Metric distance and one with imperial distance and set the imperial one to false\n\n\t\t/*\n\t\t * final JInternalFrame mapFrameImperial = makeInternalFrame(\"Interactive Map\", 400, 0, 200, 200, true, true, true);\n\t\t * MapFrame mapContent2 = new MapFrame(bestDistanceImperialnum, bestDistanceDate, lifeDistanceImperial,\"mile\");\n\t\t * mapFrameImperial.add( mapContent2); mapFrameImperial.setVisible(false); desktop.add( mapFrameImperial );\n\t\t */\n\n\t\t// The Heart Rate Zone element\n\t\tthis.heartRateFrame = makeInternalFrame(\"Heart Rate Zone\", getPointArray()[1].x, getPointArray()[1].y, 485, 355, true, true,\n\t\t\t\ttrue);\n\t\tHeartRateZoneFrame heartRateContent = new HeartRateZoneFrame(outOfRange, fatBurn, cardio, peak, restHeartRate);\n\t\theartRateFrame.add(heartRateContent);\n\t\tdesktop.add(heartRateFrame);\n\n\t\t// The Calories Burne Element\n\t\tthis.calBurnFrame = makeInternalFrame(\"Calories Burned\", getPointArray()[2].x, getPointArray()[2].y, 235, 520, true, true, true);\n\t\tCaloriesBurnedFrame calBurnContent = new CaloriesBurnedFrame(calories, caloriesOutGoals);\n\t\tcalBurnFrame.add(calBurnContent);\n\t\tdesktop.add(calBurnFrame);\n\n\t\t\n\t\t// The Active Minutes element\n\t\tthis.activeMinFrame = makeInternalFrame(\"Daily Goals\", getPointArray()[3].x, getPointArray()[3].y, 510, 520, true, true, true);\n\t\tActiveMinutesFrame activeMinContent = new ActiveMinutesFrame(lightActiveMins, fairlyActiveMins, veryActiveMins,\n\t\t\t\tactiveMinGoals, floors, steps, distance, floorGoals, stepGoals, distanceGoals);\n\n\t\tactiveMinFrame.add(activeMinContent);\n\t\tdesktop.add(activeMinFrame);\n\n\t\t// Create the UserInput Text Box\n\t\tfinal JFormattedTextField userInput = new JFormattedTextField(createFormatter(\"####/##/##\"));\n\t\tuserInput.setBounds(0, 0, 150, 20);\n\t\t\n\n\t\t// Create a refresh button\n\t\tJButton desiredDate = new JButton(\"Input Desired Date\");\n\t\tdesiredDate.setBackground(new Color(250, 150, 150));\n\t\tdesiredDate.setBorderPainted(false);\n\t\tdesiredDate.setBounds(400, 0, 100, 20);\n\t\tdesiredDate.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tuserDate[0] = userInput.getText().substring(0, 4);\n\t\t\t\tuserDate[1] = userInput.getText().substring(5, 7);\n\t\t\tuserDate[2] = userInput.getText().substring(8, 10);\n\t\tSystem.out.println(userDate[0].toString());\n\t\tSystem.out.println(userDate[1].toString());\n\t\tSystem.out.println(userDate[2].toString());\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t desktopMenuBar.add(desiredDate);\n\t\tdesktopMenuBar.add(userInput);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t// Add a refresh button\n\t\tfinal JButton refreshbutn = new JButton(\"\");\n\t\trefreshbutn.setIcon(new ImageIcon(\"src/main/resources/refreshbutton.png\"));\n\t\trefreshbutn.setBackground(new Color(150, 150, 150));\n\t\trefreshbutn.setBorderPainted(false);\n\t\tdesktopMenuBar.add(Box.createHorizontalGlue());\n\t\tdesktopMenuBar.add(refreshbutn);\n\n\t\tJLabel thankYou = new JLabel(\"\");\n\t\tthankYou.setText(\"<html>Credits to FitBit for their services</html>\");\n\t\tthankYou.setFont(new Font(\"Courier New\", Font.BOLD, 12));\n\t\tthankYou.setForeground(Color.LIGHT_GRAY);\n\t\tthankYou.setBounds(420, 510, 728, 93);\n\t\tpanel1.add(thankYou);\n\n\t\t// Add the elements for the top Menu bar\n\t\t// this.add(userInput);\n\t\tdesktopMenuBar.add(Box.createHorizontalGlue());\n\t\tdesktopMenuBar.add(refreshbutn);\n\t\t// Add the menu bar\n\n\t\t// The Sedentary Minutes element\n\t\tthis.sedMinFrame = makeInternalFrame(\"Sedentary Minutes\", getPointArray()[4].x, getPointArray()[4].y, 475, 210, true, true, true);\n\t\tSedentaryMinutesFrame sedMinContent = new SedentaryMinutesFrame(sedentaryMins);\n\t\tsedMinFrame.add(sedMinContent);\n\t\tdesktop.add(sedMinFrame);\n\n\t\tpanel1.add(desktop);\n\n\t\t\n\t\t// add the the panel to the tabbed pane\n\t\ttabbedPane.addTab(\"Dashboard\", null, panel1, \"tmp1\"); // Add the desktop pane to the tabbedPane\n\t\ttabbedPane.setMnemonicAt(0, KeyEvent.VK_1);\n\t\ttabbedPane.setBackgroundAt(0, Color.WHITE);\n\t\ttime = new JLabel(\" \" + new Date());\n\n\t\t// Retrieve the locations of all the frame elements from the desktop screen.\n\t\tPoint heartRateFramePoint = heartRateFrame.getLocation();\n\t\tPoint calBurnFramePoint = calBurnFrame.getLocation();\n\t\tPoint activeMinFramePoint = activeMinFrame.getLocation();\n\t\tPoint sedMinFramePoint = sedMinFrame.getLocation();\n\n\t\t// Add these points to the pointArray for the object serialization.\n\t\tpointArray = new Point[5];\n\t\tthis.setPointArray(heartRateFramePoint, calBurnFramePoint, activeMinFramePoint, sedMinFramePoint);\n\t\t\n\t\t//Now that the point Array has been updated, we set the values for the object seriealization\n\t\t// //////////////TESTING OBJECT SERIALIZATION//////////////\n\t\tuserSettings.setPointArray(this.getPointArray());\n\t\t\n\t\tuserSettings.setUnits(\"metric\");\n\t\tobjSerial.storeUserSettings(userSettings);\n\t\tSystem.out.println(\"//////////////////\\n\" + userSettings + \"\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\n\t\t\n\t\t\n\t\t\n\t\tRefreshTokens.setUnits(userSettings.getUnits());\n\t\t\n\t\t// //////////////TESTING OBJECT SERIALIZATION//////////////\n\t\t/**\n\t\t * Dashboard Menu\n\t\t */\n\t\tJComponent panel2 = makeTextPanel(\"Dashboard Menu\");\n\t\t// create a label named dashboard menu and add it to the panel\n\n\t\tJLabel lblmenu = new JLabel(\"Dashboard Menu\");\n\t\tlblmenu.setForeground(SystemColor.inactiveCaption);\n\t\tlblmenu.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 49));\n\t\tlblmenu.setBounds(44, 6, 543, 72);\n\t\tpanel2.add(lblmenu);\n\t\t// add a scroll pane\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBackground(new Color(40, 40, 40));\n\t\tscrollPane.setForeground(new Color(40, 40, 40));\n\t\tscrollPane.setBounds(18, 77, 1110, 567);\n\n\t\tpanel2.add(scrollPane);\n\t\t// add a panel on top of the scroll pane to add the elements easier\n\t\tJPanel panelscroll = new JPanel();\n\t\tpanelscroll.setBounds(79, 100, 945, 300);\n\t\tpanelscroll.setBackground(new Color(40, 40, 40));\n\t\tpanelscroll.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35)));\n\t\tscrollPane.setViewportView(panelscroll);\n\n\t\t// Interactive Map description and button add\n\t\t\n\n\t\t// add a check box for map\n\t\t\n\t\tpanelscroll.setLayout(null);\n\t\t\n\n\t\t/*\n\t\t * TMP - commented out since the time series is not needed as of 2016.03.01 // Time Series description and button add\n\t\t * JLabel tsDescript = new JLabel(\"\"); tsDescript.setText(\n\t\t * \"<html>The Time Series displays <BR>the information for all your <BR>accumulated progress,data like: <BR>total steps,calories,distance,<BR>and heart rate.</html>\"\n\t\t * ); tsDescript.setFont(new Font (\"Courier New\",Font.BOLD,16)); tsDescript.setForeground(Color.LIGHT_GRAY);\n\t\t * tsDescript.setBounds(430, 120, 728, 93); panelscroll.add(tsDescript); //add a check box for time series final\n\t\t * JCheckBox chckbxTimeSeries = new JCheckBox(\"Time Series\"); chckbxTimeSeries.setBounds(460, 220, 128, 23);\n\t\t * chckbxTimeSeries.setFont(new Font(\"Lucida Grande\", Font.BOLD, 15)); chckbxTimeSeries.setForeground(Color.WHITE);\n\t\t * chckbxTimeSeries.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) {\n\t\t * btnadd.setVisible(chckbxTimeSeries.isSelected()==false);\n\t\t * //timeSeriesPanel.setVisible(chckbxTimeSeries.isSelected()); } }); panelscroll.add(chckbxTimeSeries);\n\t\t */\n\n\t\t// Heart Rate Zone description and button add\n\t\tJLabel hrDescript = new JLabel(\"\");\n\t\thrDescript.setText(\n\t\t\t\t\"<html>The Heart Rate displays <BR> your daily heart zone <BR>information and resting <BR>heart rate.</html>\");\n\t\thrDescript.setFont(new Font(\"Courier New\", Font.BOLD, 16));\n\t\thrDescript.setForeground(Color.LIGHT_GRAY);\n\t\thrDescript.setBounds(850, 80, 728, 93);\n\t\tpanelscroll.add(hrDescript);\n\t\t// add a check box for heart rate\n\t\tfinal JCheckBox chckbxHeartRate = new JCheckBox(\"Heart Rate\");\n\t\tchckbxHeartRate.setSelected(true);\n\t\tchckbxHeartRate.setBounds(900, 180, 128, 23);\n\t\tchckbxHeartRate.setFont(new Font(\"Lucida Grande\", Font.BOLD, 15));\n\t\tchckbxHeartRate.setForeground(Color.WHITE);\n\t\tchckbxHeartRate.setBackground(new Color(40, 40, 40));\n\t\tchckbxHeartRate.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\theartRateFrame.setVisible(chckbxHeartRate.isSelected());\n\t\t\t}\n\t\t});\n\t\tpanelscroll.add(chckbxHeartRate);\n\n\t\t// Calorie Zone description and button add\n\t\tJLabel cbDescript = new JLabel(\"\");\n\t\tcbDescript.setText(\"<html>The Calories Burned displays <BR>that amount of calories <BR>you burned</html>\");\n\t\tcbDescript.setFont(new Font(\"Courier New\", Font.BOLD, 16));\n\t\tcbDescript.setForeground(Color.LIGHT_GRAY);\n\t\tcbDescript.setBounds(30, 320, 728, 93);\n\t\tpanelscroll.add(cbDescript);\n\n\t\tfinal JCheckBox caloriesBurned = new JCheckBox(\"Calories Burned\");\n\t\tcaloriesBurned.setSelected(true);\n\t\tcaloriesBurned.setBounds(60, 430, 157, 23);\n\t\tcaloriesBurned.setFont(new Font(\"Lucida Grande\", Font.BOLD, 15));\n\t\tcaloriesBurned.setForeground(Color.WHITE);\n\t\tcaloriesBurned.setBackground(new Color(40, 40, 40));\n\t\tcaloriesBurned.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tcalBurnFrame.setVisible(caloriesBurned.isSelected());\n\t\t\t}\n\t\t});\n\t\tpanelscroll.add(caloriesBurned);\n\n\t\t// Sedentary Minutes description and button add\n\t\tJLabel smDescript = new JLabel(\"\");\n\t\tsmDescript.setText(\"<html>The Sedentary Min displays <BR> the time you are <BR>not in active state.</html>\");\n\t\tsmDescript.setFont(new Font(\"Courier New\", Font.BOLD, 16));\n\t\tsmDescript.setForeground(Color.LIGHT_GRAY);\n\t\tsmDescript.setBounds(30, 80, 328, 93);\n\t\tpanelscroll.add(smDescript);\n\n\t\tfinal JCheckBox sedMin = new JCheckBox(\"Sedentary Min\");\n\t\tsedMin.setSelected(true);\n\n\t\tsedMin.setBounds(60, 180, 160, 50);\n\t\tsedMin.setFont(new Font(\"Lucida Grande\", Font.BOLD, 15));\n\t\tsedMin.setForeground(Color.WHITE);\n\t\tsedMin.setBackground(new Color(40, 40, 40));\n\t\tsedMin.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tsedMinFrame.setVisible(sedMin.isSelected());\n\t\t\t}\n\t\t});\n\t\tpanelscroll.add(sedMin);\n\n\t\t// Active Minutes description and button add\n\t\tJLabel daDescript = new JLabel(\"\");\n\t\tdaDescript.setText(\n\t\t\t\t\"<html>The Daily Activity <BR>records your daily <BR> activity and progress<BR> you worked with FitBit.</html>\");\n\t\tdaDescript.setFont(new Font(\"Courier New\", Font.BOLD, 16));\n\t\tdaDescript.setForeground(Color.LIGHT_GRAY);\n\t\tdaDescript.setBounds(860, 320, 728, 93);\n\t\tpanelscroll.add(daDescript);\n\n\t\tfinal JCheckBox dailyAct = new JCheckBox(\"Daily Activity\");\n\t\tdailyAct.setSelected(true);\n\t\tdailyAct.setBounds(900, 430, 157, 23);\n\t\tdailyAct.setFont(new Font(\"Lucida Grande\", Font.BOLD, 15));\n\t\tdailyAct.setForeground(Color.WHITE);\n\t\tdailyAct.setBackground(new Color(40, 40, 40));\n\t\tdailyAct.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tactiveMinFrame.setVisible(dailyAct.isSelected());\n\t\t\t}\n\t\t});\n\t\tpanelscroll.add(dailyAct);\n\n\t\t// add the panel to the tabbed pane\n\t\ttabbedPane.addTab(\"Menu\", null, panel2, \"tmp2\");\n\t\ttabbedPane.setMnemonicAt(1, KeyEvent.VK_2);\n\n\t\ttabbedPane.setBackgroundAt(1, Color.WHITE);\n\n\t\t/**\n\t\t * Stats page\n\t\t */\n\t\t// create a panel and add it to the tabbed pane\n\t\tImageIcon icon3 = new ImageIcon(\"stats_icon.png\");\n\t\tJComponent panel3 = makeTextPanel(\"Stats\");\n\t\ttabbedPane.addTab(\"Stats\", icon3, panel3, \"tmp3\");\n\t\ttabbedPane.setMnemonicAt(2, KeyEvent.VK_3);\n\t\ttabbedPane.setBackgroundAt(2, Color.WHITE);\n\t\tpanel3.setPreferredSize(new Dimension(410, 50));\n\n\t\t// panel of the life time button\n\t\tfinal JPanel panelLifeTime = new JPanel();\n\t\tpanelLifeTime.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35)));\n\t\tpanelLifeTime.setBackground(new Color(40, 40, 40));\n\t\tpanelLifeTime.setForeground(new Color(40, 40, 40));\n\t\tpanelLifeTime.setBounds(150, 6, 1000, 639);\n\t\tpanel3.add(panelLifeTime, BorderLayout.CENTER);\n\t\tpanelLifeTime.setLayout(null);\n\t\tJLabel lblLifetime = new JLabel(\"Lifetime Totals\");\n\t\tlblLifetime.setForeground(SystemColor.inactiveCaption);\n\t\tlblLifetime.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 49));\n\t\tlblLifetime.setBounds(44, 6, 382, 72);\n\n\t\tJLabel distancelifetime = new JLabel(\"Distance\");\n\t\tdistancelifetime.setForeground(Color.WHITE);\n\t\tdistancelifetime.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\tdistancelifetime.setBounds(60, 65, 382, 72);\n\t\tpanelLifeTime.add(distancelifetime);\n\n\t\tJLabel lifetimeDistanceMetric = new JLabel(\"Total distance Travelled:\" + Double.toString(lifeDistance) + \"km\");\n\t\tlifetimeDistanceMetric.setForeground(Color.WHITE);\n\t\tlifetimeDistanceMetric.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 16));\n\t\tlifetimeDistanceMetric.setBounds(90, 95, 382, 72);\n\t\tlifetimeDistanceMetric.setVisible(true);\n\t\tpanelLifeTime.add(lifetimeDistanceMetric);\n\n\t\n\n\t\tJLabel floorsTitleLifetime = new JLabel(\"Floors\");\n\t\tfloorsTitleLifetime.setForeground(Color.WHITE);\n\t\tfloorsTitleLifetime.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\tfloorsTitleLifetime.setBounds(60, 180, 382, 72);\n\t\tpanelLifeTime.add(floorsTitleLifetime);\n\n\t\tJLabel totalFloorsLifeTime = new JLabel(\"Total Floors Climbed: \" + lifeFloors + \" floors\");\n\t\ttotalFloorsLifeTime.setForeground(Color.WHITE);\n\t\ttotalFloorsLifeTime.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 16));\n\t\ttotalFloorsLifeTime.setBounds(90, 210, 382, 72);\n\t\tpanelLifeTime.add(totalFloorsLifeTime);\n\n\t\tJLabel lifeTimestepsTitle = new JLabel(\"Steps\");\n\t\tlifeTimestepsTitle.setForeground(Color.WHITE);\n\t\tlifeTimestepsTitle.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\tlifeTimestepsTitle.setBounds(60, 295, 382, 72);\n\t\tpanelLifeTime.add(lifeTimestepsTitle);\n\n\t\tJLabel lifeTimeStepsTotal = new JLabel(\"Total Steps taken: \" + lifeSteps + \" steps\");\n\t\tlifeTimeStepsTotal.setForeground(Color.WHITE);\n\t\tlifeTimeStepsTotal.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 16));\n\t\tlifeTimeStepsTotal.setBounds(90, 325, 382, 72);\n\t\tpanelLifeTime.add(lifeTimeStepsTotal);\n\t\tpanelLifeTime.add(lblLifetime);\n\n\t\t// panel of the best days button\n\t\tfinal JPanel panelBestDays = new JPanel();\n\t\tpanelBestDays.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35)));\n\t\tpanelBestDays.setBackground(new Color(40, 40, 40));\n\t\tpanelBestDays.setForeground(new Color(40, 40, 40));\n\t\tpanelBestDays.setBounds(150, 6, 1000, 639);\n\t\tpanel3.add(panelBestDays, BorderLayout.CENTER);\n\t\tpanelBestDays.setLayout(null);\n\n\t\t// these are the labels for the best days we're gonna add the test data when we write the data... I know how to do\n\t\t// that i still didn't add it because it doesn't run it on my elcipse but it works\n\t\tJLabel lblBestDays = new JLabel(\"Best Days\");\n\t\tlblBestDays.setForeground(SystemColor.inactiveCaption);\n\t\tlblBestDays.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 49));\n\t\tlblBestDays.setBounds(44, 6, 382, 72);\n\t\tpanelBestDays.add(lblBestDays);\n\n\t\tJLabel distance2 = new JLabel(\"Distance\");\n\t\tdistance2.setForeground(Color.WHITE);\n\t\tdistance2.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\tdistance2.setBounds(60, 65, 382, 72);\n\t\tpanelBestDays.add(distance2);\n\n\t\tJLabel bestDistancedate2 = new JLabel(\"Best Day: \" + bestDistanceDate);\n\t\tbestDistancedate2.setForeground(Color.WHITE);\n\t\tbestDistancedate2.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 16));\n\t\tbestDistancedate2.setBounds(90, 95, 382, 72);\n\t\tpanelBestDays.add(bestDistancedate2);\n\n\t\tJLabel bestDistanceMetric = new JLabel(\"Best Distance: \" + bestDistance+\"km\");\n\t\tbestDistanceMetric.setForeground(Color.WHITE);\n\t\tbestDistanceMetric.setVisible(true);\n\t\tbestDistanceMetric.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 14));\n\t\tbestDistanceMetric.setBounds(110, 130, 382, 72);\n\t\tpanelBestDays.add(bestDistanceMetric);\n\n\n\t\tJLabel bestFloorstitle = new JLabel(\"Floors\");\n\t\tbestFloorstitle.setForeground(Color.WHITE);\n\t\tbestFloorstitle.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\tbestFloorstitle.setBounds(60, 180, 382, 72);\n\t\tpanelBestDays.add(bestFloorstitle);\n\n\t\tJLabel bestFloorDtlbl = new JLabel(\"Best Floor Date: \" + bestFloorDate);\n\t\tbestFloorDtlbl.setForeground(Color.WHITE);\n\t\tbestFloorDtlbl.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 16));\n\t\tbestFloorDtlbl.setBounds(90, 210, 382, 72);\n\t\tpanelBestDays.add(bestFloorDtlbl);\n\n\t\tJLabel bestfloorlbl = new JLabel(\"Best Floor: \" + bestFloor + \" floors\");\n\t\tbestfloorlbl.setForeground(Color.WHITE);\n\t\tbestfloorlbl.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 14));\n\t\tbestfloorlbl.setBounds(110, 245, 382, 72);\n\t\tpanelBestDays.add(bestfloorlbl);\n\n\t\tJLabel bestStepstitle = new JLabel(\"Steps\");\n\t\tbestStepstitle.setForeground(Color.WHITE);\n\t\tbestStepstitle.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\tbestStepstitle.setBounds(60, 295, 382, 72);\n\t\tpanelBestDays.add(bestStepstitle);\n\n\t\tJLabel bestStepsDtlbl = new JLabel(\"Best Steps Date: \" + bestStepDate);\n\t\tbestStepsDtlbl.setForeground(Color.WHITE);\n\t\tbestStepsDtlbl.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 16));\n\t\tbestStepsDtlbl.setBounds(90, 325, 382, 72);\n\t\tpanelBestDays.add(bestStepsDtlbl);\n\n\t\tJLabel bestStepslbl = new JLabel(\"Best Steps: \" + bestStep + \" steps\");\n\t\tbestStepslbl.setForeground(Color.WHITE);\n\t\tbestStepslbl.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 14));\n\t\tbestStepslbl.setBounds(110, 360, 382, 72);\n\t\tpanelBestDays.add(bestStepslbl);\n\n\t\t// panel of the accolades button\n\t\tfinal JPanel panelAccolades = new JPanel();\n\t\tpanelAccolades.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35)));\n\t\tpanelAccolades.setBackground(new Color(40, 40, 40));\n\t\tpanelAccolades.setForeground(new Color(40, 40, 40));\n\t\tpanelAccolades.setBounds(150, 6, 1000, 639);\n\t\tpanel3.add(panelAccolades, BorderLayout.CENTER);\n\t\tpanelAccolades.setLayout(null);\n\n\t\tJLabel lblAccolades = new JLabel(\"Accolades\");\n\t\tlblAccolades.setForeground(SystemColor.inactiveCaption);\n\t\tlblAccolades.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 49));\n\t\tlblAccolades.setBounds(44, 6, 382, 72);\n\t\tpanelAccolades.add(lblAccolades);\n\n\t\t/// ACColades\n\t\tAccolades accolades = new Accolades();\n\t\taccolades.set_accolades(0, bestlife, daily, heartrate);\n\t\t// accolades.getCheck(index)\n\n\t\tJLabel lock1Accold = new JLabel(\"\");\n\t\tlock1Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock1Accold.setBounds(30, 110, 106, 72);\n\t\tlock1Accold.setToolTipText(accolades.getTitle(0));\n\t\tpanelAccolades.add(lock1Accold);\n\t\tif (accolades.getCheck(0) == true)\n\t\t{\n\t\t\tlock1Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_1rsz_badge0.png\"));\n\t\t\tlock1Accold.setBounds(30, 90, 106, 110);\n\t\t\tlock1Accold.setToolTipText(accolades.getDescription(0));\n\n\t\t}\n\n\t\tJLabel lock2Accold = new JLabel(\"\");\n\t\tlock2Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock2Accold.setBounds(150, 110, 106, 72);\n\t\tpanelAccolades.add(lock2Accold);\n\t\tlock2Accold.setToolTipText(accolades.getTitle(1));\n\t\tif (accolades.getCheck(1) == true)\n\t\t{\n\t\t\tlock2Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_1rsz_badge1.png\"));\n\t\t\tlock2Accold.setBounds(150, 90, 106, 110);\n\t\t\tlock2Accold.setToolTipText(accolades.getDescription(1));\n\n\t\t}\n\n\t\tJLabel lock3Accold = new JLabel(\"\");\n\t\tlock3Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock3Accold.setBounds(270, 110, 106, 72);\n\t\tlock3Accold.setToolTipText(accolades.getTitle(2));\n\t\tpanelAccolades.add(lock3Accold);\n\t\tif (accolades.getCheck(2) == true)\n\t\t{\n\t\t\tlock3Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge2.png\"));\n\t\t\tlock3Accold.setBounds(270, 90, 120, 110);\n\t\t\tlock3Accold.setToolTipText(accolades.getDescription(2));\n\n\t\t}\n\n\t\tJLabel lock4Accold = new JLabel(\"\");\n\t\tlock4Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock4Accold.setBounds(390, 110, 106, 72);\n\t\tlock4Accold.setToolTipText(accolades.getTitle(3));\n\t\tpanelAccolades.add(lock4Accold);\n\t\tif (accolades.getCheck(3) == true)\n\t\t{\n\t\t\tlock4Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge3.png\"));\n\t\t\tlock4Accold.setBounds(390, 90, 120, 110);\n\t\t\tlock4Accold.setToolTipText(accolades.getDescription(3));\n\n\t\t}\n\n\t\tJLabel lock5Accold = new JLabel(\"\");\n\t\tlock5Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock5Accold.setBounds(500, 110, 106, 72);\n\t\tlock5Accold.setToolTipText(accolades.getTitle(4));\n\t\tpanelAccolades.add(lock5Accold);\n\t\tif (accolades.getCheck(4) == true)\n\t\t{\n\n\t\t\tlock5Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge4.png\"));\n\t\t\tlock5Accold.setBounds(500, 90, 120, 110);\n\n\t\t\tlock5Accold.setToolTipText(accolades.getDescription(4));\n\n\t\t}\n\n\t\tJLabel lock6Accold = new JLabel(\"\");\n\t\tlock6Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock6Accold.setBounds(610, 110, 106, 72);\n\t\tlock6Accold.setToolTipText(accolades.getTitle(5));\n\t\tpanelAccolades.add(lock6Accold);\n\t\tif (accolades.getCheck(5) == true)\n\t\t{\n\t\t\tlock6Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge5.png\"));\n\t\t\tlock6Accold.setBounds(610, 90, 120, 110);\n\t\t\tlock6Accold.setToolTipText(accolades.getDescription(5));\n\n\t\t}\n\n\t\tJLabel lock7Accold = new JLabel(\"\");\n\t\tlock7Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock7Accold.setBounds(720, 110, 106, 72);\n\t\tlock7Accold.setToolTipText(accolades.getTitle(6));\n\n\t\tpanelAccolades.add(lock7Accold);\n\t\tif (accolades.getCheck(6) == true)\n\t\t{\n\t\t\tlock7Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge6.png\"));\n\t\t\tlock7Accold.setBounds(720, 90, 120, 110);\n\t\t\tlock7Accold.setToolTipText(accolades.getDescription(6));\n\n\t\t}\n\n\t\tJLabel lock8Accold = new JLabel(\"\");\n\t\tlock8Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock8Accold.setBounds(830, 110, 106, 72);\n\t\tlock8Accold.setToolTipText(accolades.getTitle(7));\n\t\tpanelAccolades.add(lock8Accold);\n\n\t\tif (accolades.getCheck(7) == true)\n\t\t{\n\t\t\tlock8Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge7.png\"));\n\t\t\tlock8Accold.setBounds(830, 90, 120, 110);\n\t\t\tlock8Accold.setToolTipText(accolades.getDescription(7));\n\n\t\t}\n\n\t\tJLabel lock9Accold = new JLabel(\"\");\n\t\tlock9Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock9Accold.setBounds(30, 240, 382, 72);\n\t\tlock9Accold.setToolTipText(accolades.getTitle(8));\n\t\tlock9Accold.setVisible(true);\n\t\tpanelAccolades.add(lock9Accold);\n\t\tif (accolades.getCheck(8) == true)\n\t\t{\n\t\t\tlock9Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge8.png\"));\n\t\t\tlock9Accold.setBounds(30, 240, 120, 110);\n\t\t\tlock9Accold.setToolTipText(accolades.getDescription(8));\n\n\t\t}\n\n\t\tJLabel lock10Accold = new JLabel(\"\");\n\t\tlock10Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock10Accold.setBounds(150, 240, 382, 72);\n\t\tlock10Accold.setToolTipText(accolades.getTitle(9));\n\t\tpanelAccolades.add(lock10Accold);\n\t\tif (accolades.getCheck(9) == true)\n\t\t{\n\t\t\tlock10Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge9.png\"));\n\t\t\tlock10Accold.setBounds(150, 240, 120, 110);\n\t\t\tlock10Accold.setToolTipText(accolades.getDescription(9));\n\n\t\t}\n\n\t\tJLabel lock11Accold = new JLabel(\"\");\n\t\tlock11Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock11Accold.setBounds(280, 240, 382, 72);\n\t\tlock11Accold.setToolTipText(accolades.getTitle(10));\n\t\tpanelAccolades.add(lock11Accold);\n\t\tif (accolades.getCheck(10) == true)\n\t\t{\n\t\t\tlock11Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge10.png\"));\n\t\t\tlock11Accold.setBounds(280, 240, 120, 110);\n\t\t\tlock1Accold.setToolTipText(accolades.getDescription(10));\n\n\t\t}\n\n\t\tJLabel lock12Accold = new JLabel(\"\");\n\t\tlock12Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock12Accold.setBounds(390, 240, 382, 72);\n\t\tlock12Accold.setToolTipText(accolades.getTitle(11));\n\t\tpanelAccolades.add(lock12Accold);\n\t\tif (accolades.getCheck(11) == true)\n\t\t{\n\t\t\tlock12Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge11.png\"));\n\t\t\tlock12Accold.setBounds(390, 240, 120, 110);\n\t\t\tlock12Accold.setToolTipText(accolades.getDescription(11));\n\n\t\t}\n\n\t\tJLabel lock13Accold = new JLabel(\"\");\n\t\tlock13Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock13Accold.setBounds(500, 240, 382, 72);\n\t\tlock13Accold.setToolTipText(accolades.getTitle(12));\n\t\tpanelAccolades.add(lock13Accold);\n\t\tif (accolades.getCheck(12) == true)\n\t\t{\n\t\t\tlock13Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge12.png\"));\n\t\t\tlock13Accold.setBounds(500, 240, 120, 110);\n\t\t\tlock13Accold.setToolTipText(accolades.getDescription(12));\n\n\t\t}\n\n\t\tJLabel lock14Accold = new JLabel(\"\");\n\t\tlock14Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock14Accold.setBounds(610, 240, 382, 72);\n\t\tlock14Accold.setToolTipText(accolades.getTitle(13));\n\t\tpanelAccolades.add(lock14Accold);\n\t\tif (accolades.getCheck(13) == true)\n\t\t{\n\t\t\tlock14Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge13.png\"));\n\t\t\tlock14Accold.setBounds(610, 240, 120, 110);\n\t\t\tlock14Accold.setToolTipText(accolades.getDescription(13));\n\n\t\t}\n\n\t\tJLabel lock15Accold = new JLabel(\"\");\n\t\tlock15Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock15Accold.setBounds(720, 240, 382, 72);\n\t\tlock15Accold.setToolTipText(accolades.getTitle(14));\n\t\tpanelAccolades.add(lock15Accold);\n\t\tif (accolades.getCheck(14) == true)\n\t\t{\n\t\t\tlock15Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge14.png\"));\n\t\t\tlock15Accold.setBounds(720, 240, 120, 110);\n\t\t\tlock15Accold.setToolTipText(accolades.getDescription(14));\n\n\t\t}\n\n\t\tJLabel lock16Accold = new JLabel(\"\");\n\t\tlock16Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock16Accold.setBounds(830, 240, 382, 72);\n\t\tlock16Accold.setToolTipText(accolades.getTitle(15));\n\t\tpanelAccolades.add(lock16Accold);\n\t\tif (accolades.getCheck(15) == true)\n\t\t{\n\t\t\tlock16Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge15.png\"));\n\t\t\tlock16Accold.setBounds(830, 240, 120, 110);\n\t\t\tlock16Accold.setToolTipText(accolades.getDescription(15));\n\n\t\t}\n\n\t\tJLabel lock17Accold = new JLabel(\"\");\n\t\tlock17Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock17Accold.setBounds(30, 400, 382, 72);\n\t\tlock17Accold.setToolTipText(accolades.getTitle(16));\n\t\tpanelAccolades.add(lock17Accold);\n\t\tif (accolades.getCheck(16) == true)\n\t\t{\n\t\t\tlock17Accold.setIcon(new ImageIcon(\"src/main/resources/Badges/Accolades/rsz_badge16.png\"));\n\t\t\tlock17Accold.setBounds(30, 410, 120, 110);\n\t\t\tlock17Accold.setToolTipText(accolades.getDescription(16));\n\n\t\t}\n\n\t\tJLabel lock18Accold = new JLabel(\"\");\n\t\tlock18Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock18Accold.setBounds(150, 400, 382, 72);\n\t\tlock18Accold.setToolTipText(accolades.getTitle(17));\n\t\tpanelAccolades.add(lock18Accold);\n\t\tif (accolades.getCheck(17) == true)\n\t\t{\n\t\t\tlock18Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge17.png\"));\n\t\t\tlock18Accold.setBounds(150, 410, 382, 110);\n\t\t\tlock18Accold.setToolTipText(accolades.getDescription(17));\n\n\t\t}\n\n\t\tJLabel lock19Accold = new JLabel(\"\");\n\t\tlock19Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock19Accold.setBounds(270, 400, 382, 72);\n\t\tlock19Accold.setToolTipText(accolades.getTitle(18));\n\t\tpanelAccolades.add(lock19Accold);\n\t\tif (accolades.getCheck(18) == true)\n\t\t{\n\t\t\tlock19Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge18.png\"));\n\t\t\tlock19Accold.setBounds(270, 410, 120, 110);\n\n\t\t\tlock19Accold.setToolTipText(accolades.getDescription(18));\n\n\t\t}\n\n\t\tJLabel lock20Accold = new JLabel(\"\");\n\t\tlock20Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_lock.png\"));\n\t\tlock20Accold.setBounds(390, 400, 382, 72);\n\t\tlock20Accold.setToolTipText(accolades.getTitle(19));\n\t\tpanelAccolades.add(lock20Accold);\n\t\tif (accolades.getCheck(19) == true)\n\t\t{\n\t\t\tlock20Accold.setIcon(new ImageIcon(\"src/main/resources/Accolades/rsz_badge19.png\"));\n\t\t\tlock20Accold.setBounds(390, 410, 120, 110);\n\t\t\tlock20Accold.setToolTipText(accolades.getDescription(19));\n\n\t\t}\n\n\t\t// panel where the buttons are added\n\t\tfinal JPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35)));\n\t\tpanel_1.setBackground(new Color(51, 51, 51));\n\t\tpanel_1.setForeground(new Color(40, 40, 40));\n\t\tpanel_1.setBounds(6, 6, 118, 583);\n\t\tpanel3.add(panel_1, BorderLayout.CENTER);\n\t\tpanel3.add(panel_1, BorderLayout.WEST);\n\t\tpanel_1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\n // Panel of the Map button\n final JPanel panelMap = new JPanel();\n panelMap.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35)));\n panelMap.setBackground(new Color(40, 40, 40));\n panelMap.setForeground(new Color(40, 40, 40));\n panelMap.setBounds(150, 6, 1000, 639);\n panel3.add(panelMap, BorderLayout.CENTER);\n panelMap.setLayout(new BorderLayout());\n\n\n JLabel lblMap= new JLabel(\"Scale of Lifetime Distances\");\n lblMap.setForeground(SystemColor.inactiveCaption);\n lblMap.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 49));\n lblMap.setBounds(44, 6, 382, 72);\n panelMap.add(lblMap, BorderLayout.PAGE_START);\n\n // Create map object\n\n this.map = new Map(fitbit);\n this.map.calculateDistances();\n\n\n final JPanel mapButtonPanel = new JPanel();\n final JPanel mapPanel = new JPanel();\n final JLabel worldMap = new JLabel();\n final JTextArea locations = new JTextArea(40,20);\n worldMap.setForeground(Color.WHITE);\n locations.setForeground(Color.WHITE);\n locations.setBackground(new Color(40,40,40));\n worldMap.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n locations.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\n\n final JButton zoomOut = new JButton(\"Zoom -\");\n final JButton zoomIn = new JButton(\"Zoom +\");\n final JButton setLocation = new JButton(\"Set Location\"); \n final JButton refreshLocation = new JButton(\"Refresh\"); \n\n mapButtonPanel.setLayout(new BoxLayout(mapButtonPanel,BoxLayout.Y_AXIS));\n mapButtonPanel.add(zoomOut);\n mapButtonPanel.add(zoomIn); \n mapButtonPanel.add(setLocation);\n mapButtonPanel.add(refreshLocation); \n mapButtonPanel.setPreferredSize(new Dimension(115,400));\n mapButtonPanel.setBackground(new Color(40, 40, 40));\n\n mapPanel.setLayout(new BorderLayout());\n mapPanel.setPreferredSize(new Dimension(600,400));\n mapPanel.setMaximumSize(new Dimension(600,400));\n mapPanel.setBackground(new Color(40, 40, 40));\n mapImage = displayMap(mapZoomLevel,map);\n if(mapImage != null) worldMap.setIcon(displayMap(mapZoomLevel, map));\n else worldMap.setText(\"Sorry, the map could not be displayed due to an error.\"); \n mapPanel.add(worldMap, BorderLayout.NORTH);\n\n\n\n\n final JPanel mapListPanel = new JPanel();\n mapListPanel.setBackground(new Color(40, 40, 40));\n locations.setText(map.getAchievedLocations());\n locationList = new JScrollPane(locations); \n locationList.setBackground(new Color(40,40,40));\n mapListPanel.add(locationList);\n\n panelMap.add(mapListPanel, BorderLayout.LINE_START); \n panelMap.add(mapPanel, BorderLayout.CENTER);\n panelMap.add(mapButtonPanel, BorderLayout.LINE_END);\n\n\n // Listen for map button events\n zoomOut.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if(mapZoomLevel > 1) {\n mapZoomLevel--;\n mapImage = displayMap(mapZoomLevel,map);\n if(mapImage != null) worldMap.setIcon(displayMap(mapZoomLevel, map));\n else worldMap.setText(\"Sorry, the map could not be displayed due to an error.\"); \n mapPanel.add(worldMap, BorderLayout.NORTH);\n panelMap.add(mapPanel, BorderLayout.CENTER);\n locations.setText(map.getAchievedLocations());\n mapListPanel.add(locationList);\n panelMap.add(mapListPanel, BorderLayout.LINE_START); \n } \n }\n });\n zoomIn.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if(mapZoomLevel < 8) { \n mapZoomLevel++;\n mapImage = displayMap(mapZoomLevel,map);\n if(mapImage != null) worldMap.setIcon(displayMap(mapZoomLevel, map));\n else worldMap.setText(\"Sorry, the map could not be displayed due to an error.\"); \n mapPanel.add(worldMap, BorderLayout.NORTH);\n panelMap.add(mapPanel, BorderLayout.CENTER);\n locations.setText(map.getAchievedLocations());\n mapListPanel.add(locationList);\n panelMap.add(mapListPanel, BorderLayout.LINE_START); \n } \n }\n });\n setLocation.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n\n public void run () {\n MapLocationSetWindow newLocation = new MapLocationSetWindow(map);\n newLocation.setVisible(true);\n }\n });\n mapImage = displayMap(mapZoomLevel,map);\n try {\n if(mapImage != null) worldMap.setIcon(displayMap(mapZoomLevel, map));\n else worldMap.setText(\"Sorry, the map could not be displayed due to an error.\");\n map.writeToJSONFile(); \n } catch (Exception ex) {\n worldMap.setText(\"Sorry, the map could not be displayed due to an error.\");\n }\n mapPanel.add(worldMap, BorderLayout.NORTH);\n panelMap.add(mapPanel, BorderLayout.CENTER);\n locations.setText(map.getAchievedLocations());\n mapListPanel.add(locationList);\n panelMap.add(mapListPanel, BorderLayout.LINE_START);\n }\n });\n refreshLocation.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n mapImage = displayMap(mapZoomLevel,map);\n if(mapImage != null) worldMap.setIcon(displayMap(mapZoomLevel, map));\n else worldMap.setText(\"Sorry, the map could not be displayed due to an error.\"); \n mapPanel.add(worldMap, BorderLayout.NORTH);\n panelMap.add(mapPanel, BorderLayout.CENTER);\n locations.setText(map.getAchievedLocations());\n mapListPanel.add(locationList);\n panelMap.add(mapListPanel, BorderLayout.LINE_START); \n }\n });\n\t\t\n // add button lifetime toals\n\t\tJToggleButton tglbtnNewToggleButton;\n\t\tJToggleButton tglbtnNewToggleButton_1;\n\t\tJToggleButton tglbtnAccolades;\n JToggleButton tglbtnMap;\n\t\tfinal ButtonGroup buttonGroupobj = new ButtonGroup();\n\t\ttglbtnNewToggleButton = new JToggleButton(\"Lifetime Totals \");\n\t\ttglbtnNewToggleButton.setSelected(true);\n\t\t// show the lifetime total panel and hide the rest\n\t\ttglbtnNewToggleButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tpanelBestDays.setVisible(false);\n\t\t\t\tpanelAccolades.setVisible(false);\n\t\t\t\tpanelLifeTime.setVisible(true);\n panelMap.setVisible(false);\n\n\t\t\t}\n\t\t});\n\t\tpanel_1.add(tglbtnNewToggleButton);\n\t\ttglbtnNewToggleButton.setBackground(new Color(55, 55, 55));\n\t\ttglbtnNewToggleButton.setOpaque(true);\n\t\tbuttonGroupobj.add(tglbtnNewToggleButton);\n\n\t\t// add button Best days\n\t\ttglbtnNewToggleButton_1 = new JToggleButton(\"Best Days \");\n\t\ttglbtnNewToggleButton_1.addActionListener(new ActionListener()\n\t\t{\n\t\t\t// show the best days panel and hide the rest\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tpanelBestDays.setVisible(true);\n\t\t\t\tpanelAccolades.setVisible(true);\n\t\t\t\tpanelLifeTime.setVisible(false);\n panelMap.setVisible(false);\n\n\t\t\t}\n\t\t});\n\t\ttglbtnNewToggleButton_1.setBackground(new Color(55, 55, 55));\n\t\ttglbtnNewToggleButton_1.setOpaque(true);\n\t\tpanel_1.add(tglbtnNewToggleButton_1);\n\t\tbuttonGroupobj.add(tglbtnNewToggleButton_1);\n\n\t\t// add button Accolades\n\t\ttglbtnAccolades = new JToggleButton(\"Accolades \");\n\t\tpanel_1.add(tglbtnAccolades);\n\t\ttglbtnAccolades.setBackground(new Color(55, 55, 55));\n\t\t// show the Accolades panel and hide the rest\n\t\ttglbtnAccolades.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tpanelBestDays.setVisible(false);\n\t\t\t\tpanelAccolades.setVisible(true);\n\t\t\t\tpanelLifeTime.setVisible(false);\n panelMap.setVisible(false);\n\n\t\t\t}\n\t\t});\n\t\ttglbtnAccolades.setOpaque(true);\n\t\tbuttonGroupobj.add(tglbtnAccolades);\n\n // add button Map\n tglbtnMap = new JToggleButton(\"Map \");\n panel_1.add(tglbtnMap);\n tglbtnMap.setBackground(new Color(55, 55, 55));\n // show the Accolades panel and hide the rest\n tglbtnMap.addActionListener(new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n\n panelBestDays.setVisible(false);\n panelAccolades.setVisible(false);\n panelLifeTime.setVisible(false);\n panelMap.setVisible(true);\n\n }\n });\n tglbtnMap.setOpaque(true);\n buttonGroupobj.add(tglbtnMap);\n\n\t\t\n\t\t// PLace the tab to the left\n\t\ttabbedPane.setTabPlacement(tabbedPane.LEFT);\n\n\t\t// The following line enables to use scrolling tabs.\n\t\ttabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);\n\n\t\t// Set the Attributes\n\t\ttabbedPane.setOpaque(true);\n\n\t\t// tabbedPane.setForeground(Color.WHITE); Discuss the colors we want with the tabs\n\t\ttabbedPane.setBackground(new Color(70, 70, 70));\n\n\t\t// Add the tabbed pane to this panel.\n\t\tthis.add(tabbedPane);\t\n\n\t\ttmp = true;\n\n\n\t\trefreshbutn.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@SuppressWarnings({ \"deprecation\", \"static-access\" })\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\t//SwingUtilities.updateComponentTreeUI(heartRateFrame);\n\t\t\t\t\t try {\n\t\t\t\t\t\theartrate = fitbit.getHeartActivity(userDate[0], userDate[1], userDate[2]);\n\t\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t outOfRange = heartrate.getOutOfRange();\n\t\t\t\t\t fatBurn = heartrate.getFatBurn();\n\t\t\t\t\t cardio = heartrate.getCardio();\n\t\t\t\t\t peak = heartrate.getPeak();\n\t\t\t\t\t restHeartRate = heartrate.getRestHeartRate();\n\n\t\t\t\t\t// try {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdaily = fitbit.getDailyActivity(userDate[0], userDate[1], userDate[2]);\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t floors = daily.getFloors();\n\t\t\t\t\t steps = daily.getSteps();\n\t\t\t\t\t distance = daily.getDistance();\n\t\t\t\t\t calories = daily.getCalories();\n\t\t\t\t\t sedentaryMins = daily.getSedentaryMins();\n\t\t\t\t\t lightActiveMins = daily.getLightActiveMins();\n\t\t\t\t\t fairlyActiveMins = daily.getFairlyActiveMins();\n\t\t\t\t\t veryActiveMins = daily.getVeryActiveMins();\n\t\t\t\t\t activeMinGoals = daily.getActiveMinGoals();\n\t\t\t\t\t caloriesOutGoals = daily.getCaloriesOutGoals();\n\t\t\t\t\t distanceGoals = daily.getDistanceGoals();\n\t\t\t\t\t floorGoals = daily.getFloorGoals();\n\t\t\t\t\t stepGoals = daily.getStepGoals();\n\n\t\t\t\t\n\n\t\t\t\t\t\tJComponent panel1 = new JPanel();\n\t\t\t\t\t\tpanel1.setLayout(new BorderLayout());\n\n\t\t\t\t\t\t// A top menu bar that appears when the user first uses the Dashboard Menu\n\t\t\t\t\t\tfinal JMenuBar desktopMenuBar = new JMenuBar();\n\t\t\t\t\t\tdesktopMenuBar.setBackground(new Color(100, 100, 100));\n\t\t\t\t\t\tdesktopMenuBar.setBorderPainted(false);\n\n\t\t\t\t\t\t// Add the menu bar\n\t\t\t\t\t\tpanel1.add(desktopMenuBar, BorderLayout.NORTH);\n\n\t\t\t\t\t\t// Adding the JDesktopPane into the \"Dashboard\" Panel\n\t\t\t\t\t\tfinal JDesktopPane desktop = new JDesktopPane();\n\t\t\t\t\t\tdesktop.setPreferredSize(new java.awt.Dimension(600, 400));\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * //add a panel that we the elements are going to be added on final JPanel panelback1 = new JPanel();\n\t\t\t\t\t\t * panelback1.setBorder(new MatteBorder(5, 5, 5, 5, (Color) new Color(35, 35, 35))); panelback1.setBackground(new\n\t\t\t\t\t\t * Color(40, 40, 40)); panelback1.setForeground(new Color(40, 40, 40)); panelback1.setBounds(0, 0, 1128, 644);\n\t\t\t\t\t\t * panel1.add(panelback1, BorderLayout.WEST); panelback1.setLayout(null);\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tdesktop.setBackground(new Color(40, 40, 40));\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Elements needed: Map HeartRate Zone Calories Burned Daily Activity Records // Sedentary Minutes //\n\t\t\t\t\t\t */\n\t\t\t\t\t\t// Add the mapFrame one with Metric distance and one with imperial distance and set the imperial one to false\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * final JInternalFrame mapFrameImperial = makeInternalFrame(\"Interactive Map\", 400, 0, 200, 200, true, true, true);\n\t\t\t\t\t\t * MapFrame mapContent2 = new MapFrame(bestDistanceImperialnum, bestDistanceDate, lifeDistanceImperial,\"mile\");\n\t\t\t\t\t\t * mapFrameImperial.add( mapContent2); mapFrameImperial.setVisible(false); desktop.add( mapFrameImperial );\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\t// The Heart Rate Zone element\n\t\t\t\t\t\tfinal JInternalFrame heartRateFrame = makeInternalFrame(\"Heart Rate Zone\", 720, 200, 485, 355, true, true,\n\t\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t\tHeartRateZoneFrame heartRateContent = new HeartRateZoneFrame(outOfRange, fatBurn, cardio, peak, restHeartRate);\n\t\t\t\t\t\theartRateFrame.add(heartRateContent);\n\t\t\t\t\t\tdesktop.add(heartRateFrame);\n\n\t\t\t\t\t\t// The Calories Burne Element\n\t\t\t\t\t\tfinal JInternalFrame calBurnFrame = makeInternalFrame(\"Calories Burned\", 493, 0, 243, 520, true, true, true);\n\t\t\t\t\t\tCaloriesBurnedFrame calBurnContent = new CaloriesBurnedFrame(calories, caloriesOutGoals);\n\t\t\t\t\t\tcalBurnFrame.add(calBurnContent);\n\t\t\t\t\t\tdesktop.add(calBurnFrame);\n\n\t\t\t\t\t\t// The Active Minutes element\n\t\t\t\t\t\tfinal JInternalFrame activeMinFrame = makeInternalFrame(\"Daily Goals\", 0, 0, 510, 520, true, true, true);\n\n\t\t\t\t\t\tActiveMinutesFrame activeMinContent = new ActiveMinutesFrame(lightActiveMins, fairlyActiveMins, veryActiveMins,\n\t\t\t\t\t\t\t\tactiveMinGoals, floors, steps, distance, floorGoals, stepGoals, distanceGoals);\n\n\t\t\t\t\t\tactiveMinFrame.add(activeMinContent);\n\t\t\t\t\t\tdesktop.add(activeMinFrame);\n\n\t\t\t\t\t\t// Create the UserInput Text Box\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\t// The Sedentary Minutes element\n\t\t\t\t\t\tfinal JInternalFrame sedMinFrame = makeInternalFrame(\"Sedentary Minutes\", 720, 0, 475, 210, true, true, true);\n\t\t\t\t\t\tSedentaryMinutesFrame sedMinContent = new SedentaryMinutesFrame(sedentaryMins);\n\t\t\t\t\t\tsedMinFrame.add(sedMinContent);\n\t\t\t\t\t\tdesktop.add(sedMinFrame);\n\n\t\t\t\t\t\tpanel1.add(desktop);\n\n\t\t\t\t\t\t// add the the panel to the tabbed pane\n\t\t\t\t\t\ttabbedPane.addTab(getUserDateString(), null, panel1, \"tmp1\"); // Add the desktop pane to the tabbedPane\n\t\t\t\t\t\ttabbedPane.setMnemonicAt(0, KeyEvent.VK_1);\n\t\t\t\t\t\ttabbedPane.setBackgroundAt(0, Color.WHITE);\n\t\t\t\t\t\ttime = new JLabel(\" \" + new Date());\n\n//\t\t\t\t\t\tSystem.out.println(getUserDateString());\n\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\n\t\t\t\tfinal Date date = new Date();\n\t\t\t\tint day = date.getDay();\n\t\t\t\tint hours = date.getHours();\n\t\t\t\tif (hours > 12 && tmp == true)\n\t\t\t\t{\n\t\t\t\t\tdate.setHours(hours - 12);\n\t\t\t\t}\n\t\t\t\ttime.setText(\"\" + date);\n\n\t\t\t\t\n\t\t\t\tdesktopMenuBar.add(time);\n\n\t\t\t}\n\t\t});\n\t}", "private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}", "private void setupData() {\n locale = Locale.getDefault();\n userUIPreferences.setAnimation(AnimationUtils.loadAnimation(context, R.anim.fadein));\n\n }", "@Override\r\n protected void loadStrings() {\r\n \r\n mfile = settings.getProperty( \"mfile\" );\r\n rmode = settings.getProperty( \"rmode\" );\r\n cmap = settings.getProperty( \"cmap\" );\r\n cmapMin = Double.parseDouble( settings.getProperty( \"cmapMin\" ) );\r\n cmapMax = Double.parseDouble( settings.getProperty( \"cmapMax\" ) );\r\n \r\n }", "private void loadStaticData(){\n this.specialisaties = this.dbFacade.getAllSpecialisaties();\n this.jComboBoxSpecialisatie.setModel(new DefaultComboBoxModel(this.specialisaties.toArray()));\n this.SpecialisatieSitueert = this.dbFacade.getAllSitueert();\n this.jComboBoxSitueert.setModel(new DefaultComboBoxModel(this.SpecialisatieSitueert.toArray()));\n }", "public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }", "private void setupSettings() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "void setSettings(ControlsSettings settings);", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public DeviceSettingsPanel(JDialog creator) {\n\n this.creator = creator;\n\n $$$setupUI$$$();\n setLayout(new BorderLayout());\n add(contentPane, BorderLayout.CENTER);\n\n /* Warning label */\n warningLabel.setFont(warningLabel.getFont().deriveFont(Font.BOLD, 14.0F));\n warningLabel.setForeground(new Color(0x993333));\n\n /* load values from Setting */\n this.acceleration.setValue(Settings.getHandlerAcceleration());\n this.deceleration.setValue(Settings.getHandlerDeceleration());\n this.axialAFPosition.setValue(Settings.getHandlerAxialAFPosition());\n this.transverseYAFPosition.setValue(Settings.getHandlerTransverseYAFPosition());\n this.measurementPosition.setValue(Settings.getHandlerMeasurementPosition());\n this.velocity.setValue(Settings.getHandlerVelocity());\n this.measurementVelocity.setValue(Settings.getHandlerMeasurementVelocity());\n this.xAxisCalibration.setValue(Settings.getMagnetometerXAxisCalibration());\n this.yAxisCalibration.setValue(Settings.getMagnetometerYAxisCalibration());\n this.zAxisCalibration.setValue(Settings.getMagnetometerZAxisCalibration());\n this.demagRamp.addItem(new Integer(3));\n this.demagRamp.addItem(new Integer(5));\n this.demagRamp.addItem(new Integer(7));\n this.demagRamp.addItem(new Integer(9));\n int rampValue = Settings.getDegausserRamp();\n if (rampValue == 3 || rampValue == 5 || rampValue == 7 || rampValue == 9) {\n demagRamp.setSelectedItem(new Integer(rampValue));\n } else {\n demagRamp.setSelectedItem(new Integer(3));\n }\n for (int i = 1; i < 10; i++) {\n this.demagDelay.addItem(new Integer(i));\n }\n this.demagDelay.setSelectedItem(new Integer(Settings.getDegausserDelay()));\n this.sampleLoadPosition.setValue(Settings.getHandlerSampleLoadPosition());\n this.backgroundPosition.setValue(Settings.getHandlerBackgroundPosition());\n this.rotation.setValue(Settings.getHandlerRotation());\n this.rotationVelocity.setValue(Settings.getHandlerRotationVelocity());\n this.rotationAcc.setValue(Settings.getHandlerAcceleration());\n this.rotationDec.setValue(Settings.getHandlerDeceleration());\n this.maximumField.setValue(Settings.getDegausserMaximumField());\n\n /* Format Number-only Text Fields */\n MyFormatterFactory factory = new MyFormatterFactory();\n acceleration.setFormatterFactory(factory);\n deceleration.setFormatterFactory(factory);\n velocity.setFormatterFactory(factory);\n measurementVelocity.setFormatterFactory(factory);\n transverseYAFPosition.setFormatterFactory(factory);\n axialAFPosition.setFormatterFactory(factory);\n sampleLoadPosition.setFormatterFactory(factory);\n backgroundPosition.setFormatterFactory(factory);\n measurementPosition.setFormatterFactory(factory);\n rotation.setFormatterFactory(factory);\n rotationVelocity.setFormatterFactory(factory);\n rotationAcc.setFormatterFactory(factory);\n rotationDec.setFormatterFactory(factory);\n xAxisCalibration.setFormatterFactory(factory);\n yAxisCalibration.setFormatterFactory(factory);\n zAxisCalibration.setFormatterFactory(factory);\n maximumField.setFormatterFactory(factory);\n\n /* Find all ports system has */\n Enumeration ports = CommPortIdentifier.getPortIdentifiers();\n\n ArrayList<String> portList = new ArrayList<String>();\n\n if (!ports.hasMoreElements()) {\n System.err.println(\"No comm ports found!\");\n } else {\n while (ports.hasMoreElements()) {\n /*\n * Get the specific port\n */\n CommPortIdentifier portId = (CommPortIdentifier) ports.nextElement();\n\n if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {\n portList.add(portId.getName());\n }\n }\n }\n Collections.sort(portList);\n\n /* Add all port to lists */\n for (int i = 0; i < portList.size(); i++) {\n this.magnetometerPort.addItem(portList.get(i));\n this.handlerPort.addItem(portList.get(i));\n this.demagnetizerPort.addItem(portList.get(i));\n }\n\n /* Select currently used port */\n this.magnetometerPort.setSelectedItem(Settings.getMagnetometerPort());\n this.handlerPort.setSelectedItem(Settings.getHandlerPort());\n this.demagnetizerPort.setSelectedItem(Settings.getDegausserPort());\n\n /* Buttons */\n saveButton.setAction(this.getSaveAction());\n getSaveAction().setEnabled(false);\n cancelButton.setAction(this.getCancelAction());\n\n /* Update listener for FormattedTextFields */\n DocumentListener saveListener = new DocumentListener() {\n public void insertUpdate(DocumentEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n\n public void removeUpdate(DocumentEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n\n public void changedUpdate(DocumentEvent e) {\n }\n };\n\n /* Update listener for Comboboxes */\n ActionListener propertiesActionListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (correctValues()) {\n getSaveAction().setEnabled(true);\n } else {\n getSaveAction().setEnabled(false);\n }\n }\n };\n\n /* Lets set all listeners for changes */\n magnetometerPort.addActionListener(propertiesActionListener);\n demagnetizerPort.addActionListener(propertiesActionListener);\n handlerPort.addActionListener(propertiesActionListener);\n\n xAxisCalibration.getDocument().addDocumentListener(saveListener);\n yAxisCalibration.getDocument().addDocumentListener(saveListener);\n zAxisCalibration.getDocument().addDocumentListener(saveListener);\n\n demagRamp.addActionListener(propertiesActionListener);\n demagDelay.addActionListener(propertiesActionListener);\n\n acceleration.getDocument().addDocumentListener(saveListener);\n deceleration.getDocument().addDocumentListener(saveListener);\n velocity.getDocument().addDocumentListener(saveListener);\n measurementVelocity.getDocument().addDocumentListener(saveListener);\n\n transverseYAFPosition.getDocument().addDocumentListener(saveListener);\n axialAFPosition.getDocument().addDocumentListener(saveListener);\n sampleLoadPosition.getDocument().addDocumentListener(saveListener);\n backgroundPosition.getDocument().addDocumentListener(saveListener);\n measurementPosition.getDocument().addDocumentListener(saveListener);\n\n rotation.getDocument().addDocumentListener(saveListener);\n rotationVelocity.addActionListener(propertiesActionListener);\n rotationAcc.addActionListener(propertiesActionListener);\n rotationDec.addActionListener(propertiesActionListener);\n\n maximumField.addActionListener(propertiesActionListener);\n\n saveButton.setEnabled(correctValues());\n }", "private void loadDatabaseSettings() {\r\n\r\n\t\tint dbID = BundleHelper.getIdScenarioResultForSetup();\r\n\t\tthis.getJTextFieldDatabaseID().setText(dbID + \"\");\r\n\t}", "public void init() {\n initComponents();\n initData();\n }", "public void settings() {\n btSettings().push();\n }", "private void loadGUI() {\n JMenuItem tmp;\n Font font = new Font(\"Arial\", Font.ITALIC, 10);\n \n // Project menu\n projectMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Selected project\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n projectMenu.add(tmp);\n projectMenu.addSeparator();\n \n properties = new JMenuItem(\"Properties\");\n properties.addActionListener(this);\n projectMenu.add(properties);\n \n reimport = new JMenuItem(\"Re-Import Files\");\n reimport.addActionListener(this);\n projectMenu.add(reimport);\n \n removeProject = new JMenuItem(\"Remove project\");\n removeProject.addActionListener(this);\n projectMenu.add(removeProject);\n \n // Directory menu\n dirMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Selected directory\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n dirMenu.add(tmp);\n dirMenu.addSeparator();\n \n removeDir = new JMenuItem(\"Remove from project\");\n removeDir.addActionListener(this);\n dirMenu.add(removeDir);\n \n deleteDir = new JMenuItem(\"Delete from disk\");\n deleteDir.addActionListener(this);\n dirMenu.add(deleteDir);\n \n renameDir = new JMenuItem(\"Rename\");\n renameDir.addActionListener(this);\n dirMenu.add(renameDir);\n \n // File menu\n fileMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Selected file\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n fileMenu.add(tmp);\n fileMenu.addSeparator();\n \n removeFile = new JMenuItem(\"Remove from project\");\n removeFile.addActionListener(this);\n fileMenu.add(removeFile);\n \n deleteFile = new JMenuItem(\"Delete from disk\");\n deleteFile.addActionListener(this);\n fileMenu.add(deleteFile);\n \n renameFile = new JMenuItem(\"Rename\");\n renameFile.addActionListener(this);\n fileMenu.add(renameFile);\n\t\n\t // sutter2k: need to tap in here for preview in browser\n miLaunchBrowser= new JMenuItem(\"Preview in Browser\");\n miLaunchBrowser.addActionListener(this);\n fileMenu.add(miLaunchBrowser);\n\t\n // Menu to show when multiple nodes are selected\n multipleSelMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Multiple selection\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n multipleSelMenu.add(tmp);\n multipleSelMenu.addSeparator();\n \n removeMulti = new JMenuItem(\"Remove from project\");\n removeMulti.addActionListener(this);\n multipleSelMenu.add(removeMulti);\n \n deleteMulti = new JMenuItem(\"Delete from disk\");\n deleteMulti.addActionListener(this);\n multipleSelMenu.add(deleteMulti);\n \n }", "public void printSettingsContents() {\n String fileName = \"collect.settings\";\n try {\n ClassLoader classLoader = getClass().getClassLoader();\n FileInputStream fin = new FileInputStream(\n classLoader.getResource(fileName).getFile());\n ObjectInputStream ois = new ObjectInputStream(fin);\n Map<?, ?> user_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : user_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"user.\" + key.toString() + \"=\" + v.toString());\n }\n Map<?, ?> admin_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : admin_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"admin.\" + key.toString() + \"=\" + v.toString());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public static void initSettings () {\r\n waitBoolean = false;\r\n configValue = new String[] \r\n {\"5\", \"10\", \"1000\", \"1\", \"10\", \"120\", \"0\", \"5\", \"2\"};\r\n String [] configTitle = \r\n { \"Number of elevators \",\r\n \"Number of floors \",\r\n \"Number of Passengers\",\r\n \"Riding frequency for one hour \", \r\n \"Elevator capacity \", \r\n \"Simulation Duration in minute\", \r\n \"Elevator call algorithm [0~2]\", \r\n \"Passenger patience \", \r\n \"Resolution: [1-normal, 2-high]\"\r\n };\r\n\r\n // Frame init\r\n JFrame initFrame = new JFrame();\r\n initFrame.setLayout(new BorderLayout());\r\n initFrame.setSize(1000, 800);\r\n\r\n // title area\r\n JLabel title = new JLabel (\"Configure your simulation !\"); \r\n title.setFont(new Font(\"Times\", Font.BOLD, 50));\r\n title.setBackground(Color.CYAN);\r\n JPanel titlePanel = new JPanel(); \r\n titlePanel.setLayout(new GridLayout(1,1));\r\n titlePanel.add(title);\r\n\r\n // config area\r\n JPanel initConfig = new JPanel();\r\n initConfig.setLayout(new GridLayout(configTitle.length,1));\r\n Font f = new Font (\"Times\", Font.BOLD, 30); \r\n\r\n for (int i=0; i < configTitle.length; i++) {\r\n JLabel label = new JLabel(configTitle[i]+\": \");\r\n label.setFont(f);\r\n configTextField[i] = new JTextField (configValue[i]); \r\n configTextField[i].setFont(f);\r\n initConfig.add(label); \r\n initConfig.add(configTextField[i]);\r\n }\r\n\r\n // command\r\n doIt = new JButton (\"Do It!\");\r\n doIt.setFont(new Font(\"Times\", Font.BOLD, 30));\r\n doIt.setActionCommand(\"DO\");\r\n doIt.addActionListener (new ButtonClickListener());\r\n\r\n JPanel doItPanel = new JPanel();\r\n doItPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\r\n doItPanel.add(doIt);\r\n\r\n initFrame.add(titlePanel, BorderLayout.NORTH);\r\n initFrame.add(initConfig, BorderLayout.CENTER);\r\n initFrame.add(doItPanel, BorderLayout.SOUTH);\r\n initFrame.setVisible(true);\r\n \r\n while (waitBoolean == false ) {\r\n try {\r\n Thread.sleep(200);\r\n } catch (Exception e) {}\r\n }\r\n initFrame.setVisible(false);\r\n }", "public Data() {\n initComponents();\n getData();\n }", "public void load() {\n notification = \"Hi \" + reader.getusername() + \"!\"\n + \"\\n\\n Latest nofitications:\\n\" + reader.notificationsToString();\n label.setText(notification);\n }", "private void populateGUI(TideParameters tideParameters) {\n\n if (tideParameters.getMinPeptideLength() != null) {\n minPepLengthTxt.setText(tideParameters.getMinPeptideLength() + \"\");\n }\n if (tideParameters.getMaxPeptideLength() != null) {\n maxPepLengthTxt.setText(tideParameters.getMaxPeptideLength() + \"\");\n }\n if (tideParameters.getMinPrecursorMass() != null) {\n minPrecursorMassTxt.setText(tideParameters.getMinPrecursorMass() + \"\");\n }\n if (tideParameters.getMaxPrecursorMass() != null) {\n maxPrecursorMassTxt.setText(tideParameters.getMaxPrecursorMass() + \"\");\n }\n if (tideParameters.getMonoisotopicPrecursor() != null) {\n if (tideParameters.getMonoisotopicPrecursor()) {\n monoPrecursorCmb.setSelectedIndex(0);\n } else {\n monoPrecursorCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getClipNtermMethionine() != null) {\n if (tideParameters.getClipNtermMethionine()) {\n removeMethionineCmb.setSelectedIndex(0);\n } else {\n removeMethionineCmb.setSelectedIndex(1);\n }\n }\n// if (tideParameters.getMinVariableModificationsPerPeptide() != null) {\n// minPtmsPerPeptideTxt.setText(tideParameters.getMinVariableModificationsPerPeptide() + \"\");\n// }\n if (tideParameters.getMaxVariableModificationsPerPeptide() != null) {\n maxPtmsPerPeptideTxt.setText(tideParameters.getMaxVariableModificationsPerPeptide() + \"\");\n }\n if (tideParameters.getMaxVariableModificationsPerTypePerPeptide() != null) {\n maxVariablePtmsPerTypeTxt.setText(tideParameters.getMaxVariableModificationsPerTypePerPeptide() + \"\");\n }\n if (tideParameters.getDigestionType() != null) {\n enzymeTypeCmb.setSelectedItem(tideParameters.getDigestionType());\n }\n if (tideParameters.getPrintPeptides() != null) {\n if (tideParameters.getPrintPeptides()) {\n peptideListCmb.setSelectedIndex(0);\n } else {\n peptideListCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getDecoyFormat() != null) {\n decoyFormatCombo.setSelectedItem(tideParameters.getDecoyFormat());\n }\n if (tideParameters.getKeepTerminalAminoAcids() != null) {\n keepTerminalAaCombo.setSelectedItem(tideParameters.getKeepTerminalAminoAcids());\n }\n if (tideParameters.getDecoySeed() != null) {\n decoySeedTxt.setText(tideParameters.getDecoySeed() + \"\");\n }\n if (tideParameters.getRemoveTempFolders() != null) {\n if (tideParameters.getRemoveTempFolders()) {\n removeTempFoldersCmb.setSelectedIndex(0);\n } else {\n removeTempFoldersCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getComputeExactPValues() != null) {\n if (tideParameters.getComputeExactPValues()) {\n exactPvalueCombo.setSelectedIndex(0);\n } else {\n exactPvalueCombo.setSelectedIndex(1);\n }\n }\n if (tideParameters.getComputeSpScore() != null) {\n if (tideParameters.getComputeSpScore()) {\n spScoreCombo.setSelectedIndex(0);\n } else {\n spScoreCombo.setSelectedIndex(1);\n }\n }\n if (tideParameters.getMinSpectrumMz() != null) {\n minSpectrumMzTxt.setText(tideParameters.getMinSpectrumMz() + \"\");\n }\n if (tideParameters.getMaxSpectrumMz() != null) {\n maxSpectrumMzTxt.setText(tideParameters.getMaxSpectrumMz() + \"\");\n }\n if (tideParameters.getMinSpectrumPeaks() != null) {\n minPeaksTxt.setText(tideParameters.getMinSpectrumPeaks() + \"\");\n }\n if (tideParameters.getSpectrumCharges() != null) {\n chargesCombo.setSelectedItem(tideParameters.getSpectrumCharges());\n }\n if (tideParameters.getRemovePrecursor() != null) {\n if (tideParameters.getRemovePrecursor()) {\n removePrecursorPeakCombo.setSelectedIndex(0);\n } else {\n removePrecursorPeakCombo.setSelectedIndex(1);\n }\n }\n if (tideParameters.getRemovePrecursorTolerance() != null) {\n removePrecursorPeakToleranceTxt.setText(\"\" + tideParameters.getRemovePrecursorTolerance());\n }\n if (tideParameters.getUseFlankingPeaks() != null) {\n if (tideParameters.getUseFlankingPeaks()) {\n useFlankingCmb.setSelectedIndex(0);\n } else {\n useFlankingCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getUseNeutralLossPeaks() != null) {\n if (tideParameters.getUseNeutralLossPeaks()) {\n useNeutralLossCmb.setSelectedIndex(0);\n } else {\n useNeutralLossCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getMzBinWidth() != null) {\n mzBinWidthTxt.setText(\"\" + tideParameters.getMzBinWidth());\n }\n if (tideParameters.getMzBinOffset() != null) {\n mzBinOffsetTxt.setText(\"\" + tideParameters.getMzBinOffset());\n }\n if (tideParameters.getNumberOfSpectrumMatches() != null) {\n numberMatchesTxt.setText(\"\" + tideParameters.getNumberOfSpectrumMatches());\n }\n if (tideParameters.getTextOutput()) {\n outputFormatCombo.setSelectedItem(\"Text\");\n } else if (tideParameters.getSqtOutput()) {\n outputFormatCombo.setSelectedItem(\"SQT\");\n } else if (tideParameters.getPepXmlOutput()) {\n outputFormatCombo.setSelectedItem(\"pepxml\");\n } else if (tideParameters.getMzidOutput()) {\n outputFormatCombo.setSelectedItem(\"mzIdentML\");\n } else if (tideParameters.getPinOutput()) {\n outputFormatCombo.setSelectedItem(\"Percolator input file\");\n }\n }" ]
[ "0.6897466", "0.66846806", "0.6669453", "0.66071206", "0.660236", "0.659485", "0.658317", "0.65509635", "0.65463746", "0.6532988", "0.64682096", "0.64682096", "0.64682096", "0.64682096", "0.64682096", "0.64682096", "0.64682096", "0.6431186", "0.6353508", "0.62799317", "0.62799317", "0.62368786", "0.6235846", "0.6223109", "0.61904466", "0.6169967", "0.61681753", "0.61624324", "0.6160038", "0.6148971", "0.61443466", "0.61443466", "0.61443466", "0.61443466", "0.61443466", "0.61443466", "0.61443466", "0.61334705", "0.6129875", "0.61058605", "0.60843307", "0.6082085", "0.60276115", "0.60107094", "0.5991771", "0.59861124", "0.5980595", "0.5980237", "0.5978489", "0.59455746", "0.59389126", "0.5938883", "0.59296674", "0.5917159", "0.58955216", "0.58883333", "0.5884487", "0.587788", "0.5875693", "0.5874785", "0.5863489", "0.5863469", "0.5856394", "0.5855374", "0.5849722", "0.5840287", "0.58358127", "0.5829839", "0.58201134", "0.58168447", "0.58155453", "0.5787904", "0.5777682", "0.5769378", "0.57689786", "0.5768511", "0.57567185", "0.57482016", "0.5746447", "0.5743979", "0.57362014", "0.5731344", "0.5726325", "0.57111937", "0.5711051", "0.57055277", "0.57027787", "0.56923234", "0.56909144", "0.5689932", "0.56890893", "0.567557", "0.56686306", "0.5661283", "0.56601983", "0.5657005", "0.5646756", "0.56399745", "0.5636765", "0.56359977" ]
0.6586305
6
Saves the data currently in the GUI to the Settings class
private void saveGeneralData() { Settings.CRAWL_TIMEOUT = Integer.parseInt(spCrawlTimeout.getValue().toString()) * 1000; Settings.RETRY_POLICY = Integer.parseInt(spRetryPolicy.getValue().toString()); Settings.RECRAWL_TIME = Integer.parseInt(spRecrawlInterval.getValue().toString()) * 3600000; Settings.RECRAWL_CHECK_TIME = Integer.parseInt(spRecrawlCheckTime.getValue().toString()) * 60000; Settings.saveSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void saveSettings() {\n try {\n Settings.setDegausserPort((String) this.demagnetizerPort.getSelectedItem());\n Settings.setDegausserDelay(((Number) this.demagDelay.getSelectedItem()).intValue());\n Settings.setDegausserRamp(((Number) this.demagRamp.getSelectedItem()).intValue());\n Settings.setDegausserMaximumField(((Number) this.maximumField.getValue()).doubleValue());\n Settings.setHandlerPort((String) this.handlerPort.getSelectedItem());\n Settings.setHandlerAcceleration(((Number) this.acceleration.getValue()).intValue());\n Settings.setHandlerAxialAFPosition(((Number) this.axialAFPosition.getValue()).intValue());\n Settings.setHandlerBackgroundPosition(((Number) this.backgroundPosition.getValue()).intValue());\n Settings.setHandlerDeceleration(((Number) this.deceleration.getValue()).intValue());\n Settings.setHandlerMeasurementPosition(((Number) this.measurementPosition.getValue()).intValue());\n Settings.setHandlerMeasurementVelocity(((Number) this.measurementVelocity.getValue()).intValue());\n Settings.setHandlerRotation(((Number) this.rotation.getValue()).intValue());\n Settings.setHandlerSampleLoadPosition(((Number) this.sampleLoadPosition.getValue()).intValue());\n Settings.setHandlerTransverseYAFPosition(((Number) this.transverseYAFPosition.getValue()).intValue());\n Settings.setHandlerVelocity(((Number) this.velocity.getValue()).intValue());\n Settings.setHandlerRotationVelocity(((Number) this.rotationVelocity.getValue()).intValue());\n Settings.setHandlerRotationDeceleration(((Number) this.rotationDec.getValue()).intValue());\n Settings.setHandlerRotationAcceleration(((Number) this.rotationAcc.getValue()).intValue());\n\n Settings.setMagnetometerPort((String) this.magnetometerPort.getSelectedItem());\n Settings.setMagnetometerXAxisCalibration(((Number) this.xAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerYAxisCalibration(((Number) this.yAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerZAxisCalibration(((Number) this.zAxisCalibration.getValue()).doubleValue());\n creator.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void saveSettings() {\n SettingsModel settingsModel = new SettingsModel();\n settingsModel.saveState(NJNPStartActivity.this);\n\n File NJNPSettingsDirectory = new File(NJNPConstants.DIRECTORY_PATH + NJNPConstants.SETTINGS_FOLDER);\n NJNPSettingsDirectory.mkdirs();\n\n File file = new File(NJNPSettingsDirectory.getPath(), NJNPConstants.SETTINGS_FILE_NAME);\n\n FileOutputStream fos = null;\n ObjectOutputStream os = null;\n try {\n fos = new FileOutputStream(file);\n os = new ObjectOutputStream(fos);\n os.writeObject(settingsModel);\n os.close();\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"File not found exception when saving settings: \" + e.getMessage());\n } catch (IOException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"IO Exception when saving settings: \" + e.getMessage());\n }\n\n }", "private static void saveSettings() {\n try {\n File settings = new File(\"settings.txt\");\n FileWriter writer = new FileWriter(settings);\n //Options\n writer.append(defaultSliderPosition + \"\\n\");\n writer.append(isVerticalSplitterPane + \"\\n\");\n writer.append(verboseCompiling + \"\\n\");\n writer.append(warningsEnabled + \"\\n\");\n writer.append(clearOnMethod + \"\\n\");\n writer.append(compileOptions + \"\\n\");\n writer.append(runOptions + \"\\n\");\n //Colors\n for(int i = 0; i < colorScheme.length; i++) \n writer.append(colorScheme[i].getRGB() + \"\\n\");\n writer.append(theme + \"\\n\");\n\n writer.close(); \n } catch (IOException i) {\n println(\"IO exception when saving settings.\", progErr);\n }\n }", "@Override\n\tpublic void saveSettings() {\n\n\t}", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }", "public synchronized static void saveSettings() {\n try {\n ObjectOutputStream objectOutputStream = null;\n try {\n objectOutputStream = new ObjectOutputStream(new FileOutputStream(settingsfile));\n objectOutputStream.writeUnshared(transferITModel.getProperties());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getHostHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsernameHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getPasswordHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsers());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUserRights());\n objectOutputStream.reset();\n objectOutputStream.flush();\n } catch (IOException ex1) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex1);\n }\n objectOutputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void saveSettings(Settings settings)\n {\n \tMainActivity.settings = settings;\n \t\n \t// Write the application settings\n \tSharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n \tSharedPreferences.Editor editor = sharedPref.edit();\n \teditor.putInt(MainActivity.SETTINGS_HALF_TIME, settings.getHalfTimeDuration() );\n \teditor.putString(MainActivity.SETTINGS_TEAM_NAME, settings.getTeamName() );\n \teditor.commit();\n }", "private void saveSettings() {\n \tLog.i(\"T4Y-Settings\", \"Save mobile settings\");\n \t\n \tmobileSettings.setAllowAutoSynchronization(autoSynchronizationCheckBox.isChecked());\n mobileSettings.setAllowAutoScan(autoScanCheckBox.isChecked());\n mobileSettings.setAllowAutoSMSNotification(autoSMSNotificationCheckBox.isChecked());\n \n \tmainApplication.setMobileSettings(mobileSettings);\n }", "public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@FXML\n\tprivate void onSaveBtn() {\n\t\tSettings settings = Settings.getSingleton();\n\t\t//Set rule setting\n\t\tif(ruleBox.getValue() == \"Standard\") {\n\t\t\tsettings.setRuleType(RuleType.STANDARD);\n\t\t} else {\n\t\t\tsettings.setRuleType(RuleType.CHALLENGE);\n\t\t}\n\t\t\n\t\t//Set number of walls setting\n\t\tsettings.setWalls(wallBox.getValue());\n\t\t//Set show label\n\t\tsettings.setShowLabels(indicateLabel.isSelected());\n\t\t//Set show ghost trails\n\t\t//settings.setShowTrail(ghostTrail.isSelected());\n\t\t\n\t\t//Set board height and width\n\t\tswitch(boardBox.getValue()) {\n\t\tcase \"7x7\":\n\t\t\tsettings.setBoardHeight(7);\n\t\t\tsettings.setBoardWidth(7);\t\t\t\n\t\t\tbreak;\n\t\tcase \"9x9\":\n\t\t\tsettings.setBoardHeight(9);\n\t\t\tsettings.setBoardWidth(9);\t\t\t\n\t\t\tbreak;\n\t\tcase \"11x11\":\n\t\t\tsettings.setBoardHeight(11);\n\t\t\tsettings.setBoardWidth(11);\t\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsettings.setBoardHeight(9);\n\t\t\t\tsettings.setBoardWidth(9);\n\t\t\t\tbreak;\n\t\t}\n\t\t//Set tile size\n\t\tsettings.setTileSize(tileBox.getValue());\n\t}", "public static void save() throws IOException {\n FileOutputStream f_out = new\n FileOutputStream(settingsFile);\n ObjectOutputStream o_out = new\n ObjectOutputStream(f_out);\n SettingsSaver s = new SettingsSaver();\n o_out.writeObject(s);\n o_out.close();\n f_out.close();\n }", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "public static void saveSettings() {\n\n Writer output = null;\n try {\n output = new BufferedWriter(new FileWriter(getConfigFile()));\n final Set<String> set = m_Settings.keySet();\n final Iterator<String> iter = set.iterator();\n while (iter.hasNext()) {\n final String sKey = iter.next();\n final String sValue = m_Settings.get(sKey);\n output.write(sKey + \"=\" + sValue + \"\\n\");\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n finally {\n if (output != null) {\n try {\n output.close();\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n }\n\n }", "public static void saveOptions() {\r\n\t\tMain.bagValue = GameOptions.bagValue.getSelectedItem();\r\n\t\tMain.nilValue = GameOptions.nilValueTextField.getText();\r\n\t\tMain.doubleNilValue = GameOptions.doubleNilValueTextField.getText();\r\n\t\tMain.winScore = GameOptions.winScoreTextField.getText();\r\n\t\tMain.loseScore = GameOptions.loseScoreTextField.getText();\r\n\t}", "private void exportSettings() {\n\t\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\t\tint returnVal = chooser.showSaveDialog(null);\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\tFile saved = chooser.getSelectedFile();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(saved));\n\t\t\t\t\twriter.write(mySettings);\n\t\t\t\t\twriter.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t }\n\t}", "public void saveSettings(View view){\n SharedPreferences.Editor editor = settings.edit();\n\n // Write the values from the views to the editor\n editor.putInt(\"vocablesNumber\",Integer.parseInt(vocablesNumber.getSelectedItem().toString()));\n editor.putBoolean(\"screenOn\", screenOnSwitch.isChecked());\n editor.putFloat(\"delayBetweenVocables\",Float.valueOf(editTextDelay.getText().toString()));\n // Commit the edits\n editor.commit();\n\n // Send the user a message of success\n Toast.makeText(Settings.this,\"Settings saved!\",Toast.LENGTH_SHORT).show();\n // Go back to previous activity\n finish();\n }", "public void saveMixerSettingsLocally() {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tExtensionFilter filter = new ExtensionFilter(\"TXT files (*.txt)\", \"*.txt\");\n\t\tfileChooser.getExtensionFilters().add(filter);\n\t\tFile file = fileChooser.showSaveDialog(mainContainer.getScene().getWindow());\n\t\tString fullPath;\n\t\ttry {\n\t\t\tfullPath = file.getAbsolutePath();\n\t\t\tif (!fullPath.endsWith(\".txt\")) {\n\t\t\t\tfullPath = fullPath + \".txt\";\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tFileWriter writeFile = new FileWriter(fullPath);\n\t\t\t\twriteFile.write(Double.toString(sliderPitch.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderEchoLength.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderDecay.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderGain.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderFlangerLength.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderWetness.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderLfoFrequency.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Float.toString((float) sliderLowPass.getValue()) + \"\\n\");\n\t\t\t\twriteFile.close();\n\t\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\t\talert.setTitle(bundle.getString(\"sMSsaveAlert1Title\"));\n\t\t\t\talert.setHeaderText(bundle.getString(\"sMSsaveAlert1Header\"));\n\t\t\t\talert.showAndWait();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(bundle.getString(\"mSSaveAlertTitle\"));\n\t\t\t\talert.setHeaderText(bundle.getString(\"mSSaveAlertHeader\"));\n\t\t\t\talert.setContentText(bundle.getString(\"mSSaveAlertContent\"));\n\t\t\t\talert.showAndWait();\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public void save() {\n savePrefs();\n }", "private void saveConfigurationSettings() {\n _settings.setMultipleTargets( _multi.isSelected() );\n if ( _buttons != null && _multi.isSelected() ) {\n TreeSet btns = new TreeSet( new Comparator() {\n public int compare( Object a, Object b ) {\n AbstractButton btna = ( AbstractButton ) a;\n AbstractButton btnb = ( AbstractButton ) b;\n String aname = btna.getText();\n String bname = btnb.getText();\n aname = aname.substring( 0, aname.length() - 1 );\n aname = aname.substring( aname.lastIndexOf( '(' ) + 1 );\n bname = bname.substring( 0, bname.length() - 1 );\n bname = bname.substring( bname.lastIndexOf( '(' ) + 1 );\n int aint = Integer.parseInt( aname );\n int bint = Integer.parseInt( bname );\n if ( aint < bint )\n return -1;\n if ( aint == bint )\n return 0;\n return 1;\n }\n }\n );\n Iterator it = _buttons.iterator();\n while ( it.hasNext() ) {\n AbstractButton btn = ( AbstractButton ) it.next();\n if ( btn.isSelected() )\n btns.add( btn );\n }\n it = btns.iterator();\n ArrayList target_list = new ArrayList();\n while ( it.hasNext() ) {\n String target_name = ( ( AbstractButton ) it.next() ).getActionCommand();\n target_list.add( target_name );\n }\n _settings.setMultipleTargetList( target_list );\n }\n if ( _prefs != null ) {\n try {\n //_settings.save();\n //PREFS.flush();\n _prefs.flush();\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n }", "@FXML\n private void saveSettings()\n {\n boolean changes = false;\n String newUsername = changeUsernameField.getText();\n\n if (checkChangeUsernameValidity(newUsername) && checkUsername(newUsername, changeUsernameErrorLabel)) {\n changeUsername(newUsername);\n changeUsernameField.setPromptText(newUsername);\n updateProfileLabels();\n changes = true;\n }\n if (bufferImage != null)\n {\n controllerComponents.getAccount().setProfilePicture(bufferImage);\n updateProfilePictures();\n changes = true;\n }\n bufferImage = null;\n if (changes)\n {\n saveFeedbackLabel.setText(\"Changes saved.\");\n } else\n {\n saveFeedbackLabel.setText(\"You have not made any changes.\");\n }\n }", "public boolean saveSettings() {\r\n\t\treturn settings.save();\r\n\t}", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "public void saveUserSettings() {\n\t}", "public void saveSettings(View v) {\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE); // get shared preferences\n SharedPreferences.Editor editor = sharedPref.edit();\n int seconds_rec = Integer.parseInt(time_recording.getText().toString());\n int notif_occ = Integer.parseInt(time_occurance.getText().toString());\n\n editor.putInt(getString(R.string.time_recording_seconds), seconds_rec); // save values to a sp\n editor.putInt(getString(R.string.time_notification_minutes), notif_occ);\n editor.commit(); // commit the differences\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public static void SavePreferences()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(preferences_file_name, \"UTF-8\");\n \n writer.print(Utilities.BoolToInt(MusicManager.enable_music) + \"\\r\\n\");\n writer.print(Utilities.BoolToInt(PassiveDancer.englishMode) + \"\\r\\n\");\n \n writer.close();\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + preferences_file_name + \".\"); }\n }", "private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition());\n editor.putInt(\"dessertIndex\", spDessert.getSelectedItemPosition());\n\n editor.apply();\n }", "void savePreferences() throws OntimizeJEERuntimeException;", "public void save() {\n\t\tpreferences().flush();\n\t}", "private synchronized void storeAppSettings() {\n\t \n\t\n \tif(_appSettings != null){\t\n \t\tAppLogger.debug2(\"AppFrame.storeAppSettings saving.\");\n\n \t\ttry {\t \n \t\t\tFileOutputStream oFile = new FileOutputStream(_configFile);\n\t\t\tOutputStream setupOutput = new DataOutputStream(oFile);\t\t \t\t\t\t\n\t\t\t_appSettings.store(setupOutput, \"\");\t\t\n \t\t}catch(Exception oEx){\n \t\tAppLogger.error(oEx);\n \t\t}\t\t \t\t\t\t\t\t\n\t}\t\t\t\t \t\n }", "public void makeSettingsFile() {\n settingsData = new File (wnwData,\"settings.dat\");\n try {\n if (!settingsData.exists()) {\n settingsData.createNewFile();\n BufferedWriter bufferedWriter = new BufferedWriter(\n new FileWriter(settingsData));\n bufferedWriter.write(\"1 0\");\n bufferedWriter.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n settingsData.setWritable(true);\n }", "private void saveSettings() {\n // Serialize the mIncludes map into a compact String. The mIncludedBy map can be\n // inferred from it.\n String encoded = encodeMap(mIncludes);\n\n try {\n if (encoded.length() >= 2048) {\n // The maximum length of a setting key is 2KB, according to the javadoc\n // for the project class. It's unlikely that we'll\n // hit this -- even with an average layout root name of 20 characters\n // we can still store over a hundred names. But JUST IN CASE we run\n // into this, we'll clear out the key in this name which means that the\n // information will need to be recomputed in the next IDE session.\n mProject.setPersistentProperty(CONFIG_INCLUDES, null);\n } else {\n String existing = mProject.getPersistentProperty(CONFIG_INCLUDES);\n if (!encoded.equals(existing)) {\n mProject.setPersistentProperty(CONFIG_INCLUDES, encoded);\n }\n }\n } catch (CoreException e) {\n AdtPlugin.log(e, \"Can't store include settings\");\n }\n }", "protected void actionPerformedSave ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.syncSave ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.syncSave ();\n this.setVisible (false);\n this.dispose ();\n }", "public SettingsSaver() {\n set[0] = advModeUnlocked;\n set[1] = LIM_NOTESPERLINE;\n set[2] = LIM_96_MEASURES;\n set[3] = LIM_VOLUME_LINE;\n set[4] = LIM_LOWA;\n set[5] = LIM_HIGHD;\n set[6] = LOW_A_ON;\n set[7] = NEG_TEMPO_FUN;\n set[8] = LIM_TEMPO_GAPS;\n set[9] = RESIZE_WIN;\n set[10] = ADV_MODE;\n }", "public void settings() {\n btSettings().push();\n }", "public static void save(){\n\t\tif(GUIReferences.currentFile != null) {\n\t\t\txml.XMLSaver.saveSensorList(GUIReferences.currentFile);\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t} else {\n\t\t\tsaveAs();\n\t\t}\n\t}", "public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }", "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "private void saveButtonActionPerformed(java.awt.event.ActionEvent evt)\n {\n if (validationIsOK()) {\n \tsaveSettings();\n autosave.saveSettings();\n if (this.autosaveListener != null\n ) {\n \tthis.autosaveListener.reloadSettings();\n }\n dispose();\n }\n }", "public void setSettings(UserPrefs prefs) {\n tfDataPath.setText(prefs.getProperty(UserPrefs.DATA_ROOT));\n // Save this for a comparison later\n existingDataPath = prefs.getProperty(UserPrefs.DATA_ROOT);\n\n String backup = prefs.getProperty(UserPrefs.BACKUP_FOLDER);\n // Nothing there, so add default based on username - this is OK\n if(backup == null || backup.length() == 0) {\n backup = DataFiler.getDefaultBackupFolder(prefs.getUserName());\n }\n tfBackupPath.setText(backup);\n\n cbBackUpOnExit.setSelected(prefs.getBooleanProperty(UserPrefs.BACKUP));\n\n tfNagSave.setText(prefs.getProperty(UserPrefs.SAVE_NAG_MINS));\n\n cbIncludeText.setSelected(prefs.getBooleanProperty(UserPrefs.MESSAGE_QUOTE));\n\n // L&F\n String lf = prefs.getProperty(UserPrefs.APP_LOOK_FEEL);\n cbLookAndFeel.setSelectedItem(lf);\n\n UIManager.LookAndFeelInfo[] systemLookAndFeels = UIManager.getInstalledLookAndFeels();\n for(int i = 0; i < systemLookAndFeels.length; i++) {\n if(systemLookAndFeels[i].getClassName().equals(lf)) {\n cbLookAndFeel.setSelectedIndex(i);\n break;\n }\n }\n\n cbShowStatusMessages.setSelected(prefs.getBooleanProperty(UserPrefs.STATUS_MESSAGES));\n }", "public void savePreferences() {\n\t\ttry\t{\n\t\t\tFile temp = new File(\"dropbox.ini\");\n\t\t\tif (temp.exists()) {\n\t\t\t\tdboxini.load(\"dropbox.ini\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception in loading dropbox.ini\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Save window size.\n\t\tPoint sl = getLocationOnScreen();\n\t\tDimension sz = getSize();\n\t\tConfigSection wp = new ConfigSection(\"WindowState\");\n\t\twp.setIntProperty(\"xLoc\",sl.x);\n\t\twp.setIntProperty(\"yLoc\",sl.y);\n\t\twp.setIntProperty(\"width\",sz.width);\n\t\twp.setIntProperty(\"height\",sz.height);\n\t\tdboxini.removeSection(wp.getName());\n\t\tdboxini.addSection(wp);\n\n\t\t// Save ini file to disk.\n\t\ttry {\n\t\t\tdboxini.store(\"dropbox.ini\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to save preferences as dropbox.ini\");\n\t\t}\n\t}", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "void store() {\n UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, agencyLogoPathField.getText());\n }\n } else {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, \"\");\n }\n UserPreferences.setMaxSolrVMSize((int)solrMaxHeapSpinner.getValue());\n if (memField.isEnabled()) { //if the field could of been changed we need to try and save it\n try {\n writeEtcConfFile();\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unable to save config file to \" + PlatformUtil.getUserDirectory() + \"\\\\\" + ETC_FOLDER_NAME, ex);\n }\n }\n }", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "private void saveData() {\n // Save data to ReminderData class\n reminderData.setMinutes(timePicker.getMinute());\n reminderData.setDataHours(timePicker.getHour());\n reminderData.setNotificationText(reminderText.getText().toString());\n reminderData.saveDataToSharedPreferences();\n }", "void doSaveAs() {\r\n\t\tMapOpenSaveDialog dlg = new MapOpenSaveDialog(true, labels, saveSettings);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.saveSettings != null) {\r\n\t\t\tsaveSettings = dlg.saveSettings;\r\n\t\t\tfinal String fn = dlg.saveSettings.fileName.getPath();\r\n\t\t\taddRecentEntry(fn);\r\n\t\t\tdoSave();\r\n\t\t}\r\n\t}", "void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\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}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}", "public void saveValues() {\n bluej.setExtensionPropertyString(PROFILE_LABEL, color.getText());\r\n }", "@Override\n public void storeSettings() {\n\n // Set the default value:\n Globals.prefs.put(JabRefPreferences.DEFAULT_BIBTEX_KEY_PATTERN, defaultPat.getText());\n Globals.prefs.putBoolean(JabRefPreferences.WARN_BEFORE_OVERWRITING_KEY, warnBeforeOverwriting.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.AVOID_OVERWRITING_KEY, dontOverwrite.isSelected());\n\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REGEX, keyPatternRegex.getText());\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REPLACEMENT, keyPatternReplacement.getText());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_AFTER_INSPECTION, autoGenerateOnImport.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_BEFORE_SAVING, generateOnSave.isSelected());\n\n if (alwaysAddLetter.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, true);\n } else if (letterStartA.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, true);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n else {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, false);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n\n // fetch entries from GUI\n GlobalBibtexKeyPattern keypatterns = getKeyPatternAsGlobalBibtexKeyPattern();\n // store new patterns globally\n prefs.putKeyPattern(keypatterns);\n }", "private void saveData() {\r\n\t\tif(mFirstname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmLastname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmEmail.getText().toString().trim().length() > 0) {\r\n\t\t\tmPrefs.setFirstname(mFirstname.getText().toString().trim());\r\n\t\t\tmPrefs.setLastname(mLastname.getText().toString().trim());\r\n\t\t\tmPrefs.setEmail(mEmail.getText().toString().trim());\r\n\t\t\tif(mMaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(0);\r\n\t\t\telse if(mFemaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(1);\r\n\t\t\tif(!mCalendarSelected.after(mCalendarCurrent)) \r\n\t\t\t\tmPrefs.setDateOfBirth(mCalendarSelected.get(Calendar.YEAR), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.MONTH), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.DAY_OF_MONTH));\r\n\t\t\tToast.makeText(getActivity(), R.string.msg_changes_saved, Toast.LENGTH_LONG).show();\r\n\t\t} else \r\n\t\t\tToast.makeText(getActivity(), R.string.msg_registration_empty_field, Toast.LENGTH_LONG).show();\r\n\t}", "private static void saveJsonFile() {\n Log.println(Log.INFO, \"FileAccessing\", \"Writing settings file.\");\n JsonObject toSave = new JsonObject();\n JsonArray mappingControls = new JsonArray();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n JsonObject individualMapping = new JsonObject();\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n byte combinedAction = (byte) TaskDetail.actionToTask.keyAt(i);\n assert detail != null;\n int outerControl = detail.getTask();\n individualMapping.addProperty(\"combinedAction\", combinedAction);\n individualMapping.addProperty(\"task\", outerControl);\n mappingControls.add(individualMapping);\n }\n toSave.add(\"mappingControls\", mappingControls);\n\n JsonArray generalSettings = new JsonArray();\n for (SettingDetail setting : SettingDetail.settingDetails) {\n JsonObject individualSetting = new JsonObject();\n int status = setting.getCurrentIdx();\n individualSetting.addProperty(\"status\", status);\n generalSettings.add(individualSetting);\n }\n toSave.add(\"generalSettings\", generalSettings);\n\n JsonArray deviceList = new JsonArray();\n for (DeviceDetail device : DeviceDetail.deviceDetails) {\n JsonObject individualDevice = new JsonObject();\n individualDevice.addProperty(\"name\", device.deviceName);\n individualDevice.addProperty(\"mac\", device.macAddress);\n deviceList.add(individualDevice);\n }\n toSave.add(\"devices\", deviceList);\n\n JsonArray sensitivityList = new JsonArray();\n for (SensitivitySetting sensitivity : SensitivitySetting.sensitivitySettings) {\n JsonObject individualSensitivity = new JsonObject();\n individualSensitivity.addProperty(\"factor\", sensitivity.multiplicativeFactor);\n individualSensitivity.addProperty(\"sensitivity\", sensitivity.sensitivity);\n sensitivityList.add(individualSensitivity);\n }\n toSave.add(\"sensitivities\", sensitivityList);\n\n toSave.addProperty(\"currentlySelected\", DeviceDetail.getIndexSelected());\n\n try {\n FileOutputStream outputStreamWriter = context.openFileOutput(\"settingDetails.json\", Context.MODE_PRIVATE);\n outputStreamWriter.write(toSave.toString().getBytes());\n outputStreamWriter.close();\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file writing error.\");\n }\n }", "public void SaveButtonOnClickListener(View view) {\n String defaultObjectOwner = ((EditText)findViewById(R.id.settings_default_object_owner_field)).getText().toString().trim();\n presenter.SaveSettings(defaultObjectOwner);\n }", "public void writeback(){\r\n \tthis.settings.genChainLength = Integer.parseInt(genChainLengthField.getText());\r\n \tthis.settings.genChainLengthFlux = Integer.parseInt(genChainLengthFluxField.getText());\r\n \tthis.settings.stepGenDistance = Integer.parseInt(stepGenDistanceField.getText());\r\n \tthis.settings.rows = Integer.parseInt(rowsField.getText());\r\n \tthis.settings.cols = Integer.parseInt(colsField.getText());\r\n \tthis.settings.cellWidth = Integer.parseInt(cellWidthField.getText());\r\n \tthis.settings.startRow = Integer.parseInt(startRowField.getText());\r\n \tthis.settings.startCol = Integer.parseInt(startColField.getText());\r\n \tthis.settings.endRow = Integer.parseInt(endRowField.getText());\r\n \tthis.settings.endCol = Integer.parseInt(endColField.getText());\r\n \tthis.settings.progRevealRadius = Integer.parseInt(progRevealRadiusField.getText());\r\n \tthis.settings.progDraw = progDrawCB.isSelected();\r\n \tthis.settings.progDrawSpeed = Integer.parseInt(progDrawSpeedField.getText());\r\n }", "private static void persistSettings() {\n\t\ttry {\n\t\t\tBufferedWriter userConf = new BufferedWriter(new FileWriter(\n\t\t\t\t\tconf.getAbsolutePath()));\n\t\t\tproperties.store(userConf, null);\n\t\t\t// flush and close streams\n\t\t\tuserConf.flush();\n\t\t\tuserConf.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"Couldn't save config file.\");\n\t\t}\n\t}", "private void guardarPreferences() {\n\n\t\t// se capturan aqui, solo es leer los editText, no tienen metodos\n\t\t// propios en esta clase\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tEditText emailText = (EditText) findViewById(R.id.emailEditText);\n\n\t\tstrNickname = nicknameText.getText().toString();\n\t\tstrEmail = emailText.getText().toString();\n\t\t\n\t\t\n\t\tEditor editor = mGameSettings.edit();\n\t\t\n\t\t\t\teditor.putString(Constants.GAME_PREFERENCES_NICKNAME, strNickname);\n\t\t\t\teditor.putString(Constants.GAME_PREFERENCES_EMAIL, strEmail);\n\t\t\t\t\n\t\t\t\t//editor.putString(Constants.GAME_PREFERENCES_PASSWORD, strPassword);\n\t\t\t\t//editor.putLong(Constants.GAME_PREFERENCES_DOB, dayOfBirth);\n\t\t\t\teditor.putInt(Constants.GAME_PREFERENCES_GENDER, gender);\n\t\t\t\t//editor.putString(Constants.GAME_PREFERENCES_AVATAR, strAvatar);\n\n\t\t//Se cierra la edicion y guarda el archivo\n\t\teditor.commit();\n\t}", "public static void saveDefaultOptions() {\r\n\t\t//Save the skin that was selected.\r\n\t\tif (IniSetup.skin.getSelectedItem() == \"ISU\") {\r\n\t\t\tMain.skinIsIowaState = true;\r\n\t\t\tMain.skinIsIowa = false;\r\n\t\t\tMain.skinIsNorthernIowa = false;\r\n\t\t} else if (IniSetup.skin.getSelectedItem() == \"Iowa\") {\r\n\t\t\tMain.skinIsIowaState = false;\r\n\t\t\tMain.skinIsIowa = true;\r\n\t\t\tMain.skinIsNorthernIowa = false;\r\n\t\t} else if (IniSetup.skin.getSelectedItem() == \"UNI\") {\r\n\t\t\tMain.skinIsIowaState = false;\r\n\t\t\tMain.skinIsIowa = false;\r\n\t\t\tMain.skinIsNorthernIowa = true;\r\n\t\t}\r\n\t\t\r\n\t\t//Save the entered values.\r\n\t\tMain.winScore = IniSetup.winScore.getText();\r\n\t\tMain.loseScore = IniSetup.loseScore.getText();\r\n\t\t\r\n\t\t//Check if the soundPath is a folder.\r\n\t\tString str = IniSetup.enterSoundPath.getText();\r\n\t\tFile file = new File(str);\r\n\t\tif (file.isDirectory()) Main.soundDir = str;\r\n\t\t\t\t\r\n\t\t//Save the state of sounds being enabled or not.\r\n\t\tif (IniSetup.soundsEnabled.getState()) {\r\n\t\t\tMain.sounds = true;\r\n\t\t} else {\r\n\t\t\tMain.sounds = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Save the options as numbers.\r\n\t\tconvertOptionsToNumbers();\r\n\t}", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "public void writeSettings(String name){\r\n try{\r\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(name + \"_EMSettings.txt\")));\r\n out.println(\"Minim Method\\t\"+jComboBox1.getSelectedIndex()); \r\n\r\n if(jTextField1.getText().equals(\"\")){\r\n out.println(\"Step Size\\t0\");\r\n }\r\n else{\r\n out.println(\"Step Size\\t\"+jTextField1.getText().trim());\r\n }\r\n\r\n if(jTextField2.getText().equals(\"\")){\r\n out.println(\"Numsteps\\t0\");\r\n }\r\n else{\r\n out.println(\"Numsteps\\t\"+jTextField2.getText().trim());\r\n }\r\n\r\n if(jTextField3.getText().equals(\"\")){\r\n out.println(\"Convergence\\t0\");\r\n }\r\n else{\r\n out.println(\"Convergence\\t\"+jTextField3.getText().trim());\r\n }\r\n\r\n if(jTextField4.getText().equals(\"\")){\r\n out.println(\"Interval\\t0\");\r\n }\r\n else{\r\n out.println(\"Interval\\t\"+jTextField4.getText().trim());\r\n } \r\n out.close();\r\n \r\n }\r\n catch(Exception e){\r\n System.out.println(\"Exception caught writting settings\");\r\n e.printStackTrace();\r\n }\r\n \r\n }", "void saveUserSetting(UserSetting userSetting);", "public void run() {\n \t\t\tlogger.info(\"Saving settings ...\");\n \n \t\t\tif (exitSavables != null) {\n \t\t\t\tEnumeration enumeration = exitSavables.elements();\n \t\t\t\twhile (enumeration.hasMoreElements()) {\n \t\t\t\t\tSavable savable = (Savable) enumeration.nextElement();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tsavable.save();\n \t\t\t\t\t} catch (StorageException se) {\n \t\t\t\t\t\tlogger.log(Level.SEVERE,\n \t\t\t\t\t\t\t\t\"Error while saving a resource inside the shutdown hook.\", se);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tFileAccess.cleanKeypool(MainFrame.keypool);\n \n \t\t\tlogger.info(\"Bye!\");\n \t\t}", "@Override\r\n protected void saveStrings() {\r\n \r\n settings.setProperty(\"mfile\" , mfile);\r\n settings.setProperty( \"rmode\", rmode);\r\n settings.setProperty( \"cmap\" , cmap );\r\n settings.setProperty(\"cmapMin\", Double.toString( cmapMin ) ); \r\n settings.setProperty(\"cmapMax\", Double.toString( cmapMax ) ); \r\n \r\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 static void saveSettings( JFormattedTextField[] tf_verotiedot, \n\t\t\t \t\t\t\t JFormattedTextField[] tf_lisat,\n\t \t\t\t\t \t\t JCheckBox[] cb_omalisa,\n\t \t\t\t\t \t\t JFormattedTextField[] tf_omalisa) {\n \t\n \t// CREATE A STRING FROM VALUES THAT IS SAVED TO THE FILE\n \tString str = \"\";\n \t\n \ttry {\n\t \t// VEROTIEDOT\n\t \tfor(int i=0; i<8; i++)\n\t \t\tstr = str + tf_verotiedot[i].getText() + dataSep;\n\t \t\n\t \t// LISÄT\n\t \tfor(int i=0; i<13; i++) \n \t\t\tstr = str + tf_lisat[i].getText() + dataSep;\n\t \t\n\t \t// OMALISÄ PÄIVÄT\n\t \tfor(int i=0; i<7; i++) \n\t \t\tstr = str + Boolean.toString( cb_omalisa[i].isSelected() ) + dataSep;\n\t \t\n\t \t// OMALISÄ MUUT\n\t \tfor(int i=0; i<3; i++) \n\t \tstr = str + tf_omalisa[i].getText() + dataSep;\n\t \tstr = str + Boolean.toString( cb_omalisa[7].isSelected() );\n\t \t\n\t \t\n\t \tstr = str.replace(',', '.');\n\t \t\n \t} catch (Exception e) {\n \t\tsysMsg.newErrorMessage(\tnull,\n \t\t\t\t\t\t\t\t\"Tietojen tallentaminen ei onnistunut\" , \n\t\t\t\t\t\t\t\t\t\"VIRHE: Verotiedot\");\n \t}\n \t\n \t\n \t// SAVE STRING TO A FILE\n \tBufferedWriter bw;\n \t\n\t\ttry {\n\t\t\tbw = new BufferedWriter( new FileWriter(\"cfg\\\\saved.dat\"));\n\t\t\tbw.write(str);\n\t\t\tbw.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tsysMsg.newErrorMessage(\tnull,\n\t\t\t\t\t\t\t\t\t\"Tietojen tallentaminen ei onnistunut\" , \n\t\t\t\t\t\t\t\t\t\"VIRHE: Verotiedot\");\n\t\t}\n\n }", "private void saveDatabaseSettings() {\r\n\r\n\t\t// --- Get new database ID --------------------------------------------\r\n\t\tint newID = 0;\r\n\t\tString newIDString = this.getJTextFieldDatabaseID().getText();\r\n\t\tif (newIDString!=null && newIDString.isEmpty()==false) {\r\n\t\t\ttry {\r\n\t\t\t\tnewID = Integer.parseInt(newIDString); \r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// --- Save in the preferences ----------------------------------------\r\n\t\tBundleHelper.setIdScenarioResultForSetup(newID);\r\n\t}", "private void saveOption() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n SharedPreferences.Editor editor = filterSetting.edit();\n editor.putBoolean(\"myMostRecent\",myMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"myDisplayAll\",myDisplayAllCheckbox.isChecked());\n editor.putBoolean(\"foMostRecent\",foMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"foDisplayAll\",foDisplayAllCheckbox.isChecked());\n editor.putString(\"myReason\",myReasonEditText.getText().toString());\n editor.putString(\"foReason\",foReasonEditText.getText().toString());\n editor.putInt(\"mySpinner\",myEmotionalStateSpinner.getSelectedItemPosition());\n editor.putInt(\"foSpinner\",foEmotionalStateSpinner.getSelectedItemPosition());\n\n editor.commit();\n }", "public void saveSettings(View v) {\n EditText apikeytext = (EditText) findViewById(R.id.editapi);\n EditText redcapurltext = (EditText) findViewById(R.id.editredcapurl);\n UserDBHelper udb = new UserDBHelper(this);\n User currentUser = udb.getActiveUser();\n\n String inputApiKey = apikeytext.getText().toString().trim();\n currentUser.setAPIKEY(inputApiKey);\n\n String inputRedcapURL = redcapurltext.getText().toString().trim();\n currentUser.setRedcapURL(inputRedcapURL);\n\n udb.updateUser(currentUser);\n\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration config = res.getConfiguration();\n\n String targetLanguage;\n\n CheckBox cb_en = (CheckBox) findViewById(R.id.cb_english);\n CheckBox cb_pt = (CheckBox) findViewById(R.id.cb_port);\n\n if( cb_en.isChecked() ) {\n targetLanguage = \"en-US\";\n } else {\n targetLanguage = \"pt\";\n }\n\n Locale newLang = new Locale(targetLanguage);\n\n config.locale = newLang;\n res.updateConfiguration(config, dm);\n\n try {\n Intent i = new Intent(getBaseContext(), MainActivity.class);\n startActivity(i);\n finish();\n } catch (Exception e) {}\n }", "public void save() {\n SharedPreferences settings = activity.getSharedPreferences(\"Preferences\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putLong(\"bestDistance\", values.bestDistance);\n\n // Commit the edits!\n editor.commit();\n\n }", "private void savePreferences() {\n SharedPrefStatic.mJobTextStr = mEditTextJobText.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobSkillStr = mEditTextSkill.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobLocationStr = mEditTextLocation.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobAgeStr = mEditTextAge.getText().toString().replace(\" \", \"\");\n\n SharedPreferences sharedPref = getSharedPreferences(AppConstants.PREF_FILENAME, 0);\n SharedPreferences.Editor editer = sharedPref.edit();\n editer.putString(AppConstants.PREF_KEY_TEXT, SharedPrefStatic.mJobTextStr);\n editer.putString(AppConstants.PREF_KEY_SKILL, SharedPrefStatic.mJobSkillStr);\n editer.putString(AppConstants.PREF_KEY_LOCATION, SharedPrefStatic.mJobLocationStr);\n editer.putString(AppConstants.PREF_KEY_AGE, SharedPrefStatic.mJobAgeStr);\n\n // The commit runs faster.\n editer.apply();\n\n // Run this every time we're building a query.\n SharedPrefStatic.buildUriQuery();\n SharedPrefStatic.mEditIntentSaved = true;\n }", "public void onGuiClosed() {\n \tthis.options.saveAll();\n }", "private void saveFieldnameSettingsButtonActionPerformed(ActionEvent e) {\n FieldnameDuplicatePresets fdp = PreferencesManager.getFieldnameDupliatePresets();\n fdp.setFieldname(defaultFieldnamePrefixTextField.getText().trim());\n fdp.setCounterStart((Integer) fieldnameCounterSpinner.getValue());\n fdp.setHorizontalDuplicates((Integer) horizontalDuplicatesSpinner.getValue());\n fdp.setVerticalDuplicates((Integer) verticalDuplicatesSpinner.getValue());\n fdp.setHorizontalSpacing((Integer) horizontalSpacingSpinner.getValue());\n fdp.setVerticalSpacing((Integer) verticalSpacingSpinner.getValue());\n if (tblrButton.isSelected()) {\n fdp.setNamingDirection(FieldnameDuplicatePresets.DIRECTION_TOP_TO_BOTTOM_LEFT_TO_RIGHT);\n } else {\n fdp.setNamingDirection(FieldnameDuplicatePresets.DIRECTION_LEFT_TO_RIGHT_TOP_TO_BOTTOM);\n }\n try {\n PreferencesManager.savePreferences(Main.getXstream());\n Misc.showSuccessMsg(this,\n Localizer.localize(\"Util\", \"CapturePreferencesSavedSuccessfullyMessage\"));\n } catch (IOException e1) {\n Misc.showErrorMsg(this, Localizer.localize(\"Util\", \"ErrorSavingPreferencesMessage\"),\n Localizer.localize(\"Util\", \"ErrorSavingPreferencesTitle\"));\n com.ebstrada.formreturn.manager.util.Misc.printStackTrace(e1);\n return;\n }\n }", "private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }", "public void writeDefaultSettings(){\r\n try{\r\n File propFile;\r\n CodeSource codeSource = EMSimulationSettingsView.class.getProtectionDomain().getCodeSource();\r\n File jarFile = new File(codeSource.getLocation().toURI().getPath());\r\n File jarDir = jarFile.getParentFile();\r\n propFile = new File(jarDir, \"default_EMSettings.txt\");\r\n\r\n // Does the file already exist \r\n if(!propFile.exists()){ \r\n try{ \r\n // Try creating the file \r\n propFile.createNewFile(); \r\n }\r\n catch(IOException ioe) { \r\n ioe.printStackTrace(); \r\n } \r\n }\r\n try{\r\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(propFile)));\r\n out.println(\"Minim Method\\t\"+jComboBox1.getSelectedIndex()); \r\n\r\n if(jTextField1.getText().equals(\"\")){\r\n out.println(\"Step Size\\t0\");\r\n }\r\n else{\r\n out.println(\"Step Size\\t\"+jTextField1.getText().trim());\r\n }\r\n\r\n if(jTextField2.getText().equals(\"\")){\r\n out.println(\"Numsteps\\t0\");\r\n }\r\n else{\r\n out.println(\"Numsteps\\t\"+jTextField2.getText().trim());\r\n }\r\n\r\n if(jTextField3.getText().equals(\"\")){\r\n out.println(\"Convergence\\t0\");\r\n }\r\n else{\r\n out.println(\"Convergence\\t\"+jTextField3.getText().trim());\r\n }\r\n\r\n if(jTextField4.getText().equals(\"\")){\r\n out.println(\"Interval\\t0\");\r\n }\r\n else{\r\n out.println(\"Interval\\t\"+jTextField4.getText().trim());\r\n } \r\n out.close();\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Exception caught writting settings\");\r\n e.printStackTrace();\r\n }\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Exception caught writting settings\");\r\n e.printStackTrace();\r\n }\r\n \r\n }", "private void saveValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n // If the field is disabled, add the DEACTIVATED marker to the value of the field\n if (e.getKey().isEnabled())\n Pref.put(this, e.getValue(), e.getKey().getText().toString());\n else\n Pref.put(this, e.getValue(), Data.DEACTIVATED_MARKER + e.getKey().getText().toString());\n }\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(saveSettings()) {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"设置保存成功\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tSettingsActivity.this.setResult(RESULT_SAVE_SUCCESS);\n\t\t\t\t\tSettingsActivity.this.finish();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void pause() {\n Settings.save();\r\n\t\t\r\n\t}", "private void saveSettings(String lastUpdate) {\n\t\t// save last update nfo\n\t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_NAME, 0);\n\t\tSharedPreferences.Editor editor = prefs.edit();\n\n\t\teditor.putString(Defs.PREFS_KEY_LASTUPDATE, lastUpdate);\n\t\tString theDate = DateFormat.format(\"yyyyMMdd\", Calendar.getInstance()).toString();\n\t\teditor.putString(Defs.PREFS_KEY_LASTUPDATE_TIME, theDate);\n\t\t\n\t\teditor.commit();\n\t}", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\tboolean saveTitle = saveTile();\r\n\t\tPlotConfiguration config = plot.getPlotConfiguration();\r\n\t\tFile file = FileChooserUtilities.getSaveFile(Tools.getConfigFolder(config));\r\n\r\n\t\tif (file != null) {\r\n\t\t\ttry {\r\n\t\t\t\tconfig.save(file, saveTitle);\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tLogger.error(\"Error saving configuration \" + ex.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void acceptSettings() throws Exception{\n try {\n File myObj = new File(\"settings.conf\");\n myObj.createNewFile();\n String[] toWrite = new String[]{\"protocol\", \"dnsmanagement\", \"dnstype\", \"customdns\", \"killswitch\", \"lanaccess\", \"splittunneling\"};\n FileWriter settingsWriter = new FileWriter(\"settings.conf\");\n for (int i = 0; i < 7; i++) {\n switch (i){\n case 0:\n RadioButton selectedProtocol = (RadioButton) protocol.getSelectedToggle(); //need to have this in order to use .getText()\n String protocolValue = selectedProtocol.getText();\n settingsWriter.write(toWrite[i] + \"=\" + protocolValue.toLowerCase() + \"\\n\");\n break;\n case 1:\n String dnsEnabled = String.valueOf(dnsToggle.isSelected());\n settingsWriter.write(toWrite[i] + \"=\" + dnsEnabled + \"\\n\");\n break;\n case 2:\n RadioButton selectedDns = (RadioButton) dnsGroup.getSelectedToggle();\n String dnsValue;\n if(selectedDns.getText().equals(\"Use ProtonVPN DNS (DNS Leak Protection)\")){\n dnsValue = \"proton\";\n }\n else{\n dnsValue = \"custom\";\n }\n settingsWriter.write(toWrite[i] + \"=\" + dnsValue + \"\\n\");\n break;\n case 3:\n String customDNS = dnsEntry.getText();\n if(customDNS.equals(\"\")){\n customDNS = \"null\";\n }\n settingsWriter.write(toWrite[i] + \"=\" + customDNS + \"\\n\");\n break;\n case 4:\n String killSwitchEnabled = String.valueOf(killSwitch.isSelected());\n settingsWriter.write(toWrite[i] + \"=\" + killSwitchEnabled + \"\\n\");\n break;\n case 5:\n String lanAccessEnabled = String.valueOf(lanAccess.isSelected());\n settingsWriter.write(toWrite[i] + \"=\" + lanAccessEnabled + \"\\n\");\n break;\n case 6:\n String splitTunnelingEnabled = String.valueOf(splitTunneling.isSelected());\n settingsWriter.write(toWrite[i] + \"=\" + splitTunnelingEnabled + \"\\n\");\n break;\n }\n }\n settingsWriter.close();\n// }\n// else {\n// System.out.println(\"File already exists.\");\n// }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void saveInfoFields() {\n\n\t\tString name = ((EditText) getActivity().findViewById(R.id.profileTable_name))\n\t\t\t\t.getText().toString();\n\t\tint weight = Integer\n\t\t\t\t.parseInt(((EditText) getActivity().findViewById(R.id.profileTable_weight))\n\t\t\t\t\t\t.getText().toString());\n\t\tboolean isMale = ((RadioButton) getActivity().findViewById(R.id.profileTable_male))\n\t\t\t\t.isChecked();\n\t\tboolean smoker = ((CheckBox) getActivity().findViewById(R.id.profileTable_smoker))\n\t\t\t\t.isChecked();\n\t\tint drinker = (int) ((RatingBar) getActivity().findViewById(R.id.profileTable_drinker))\n\t\t\t\t.getRating();\n\n\t\tif (!name.equals(storageMan.PrefsName)) {\n\t\t\tstorageMan = new StorageMan(getActivity(), name);\n\t\t}\n\n\t\tstorageMan.saveProfile(new Profile(weight, drinker, smoker, isMale));\n\t\t\n\t\ttoast(\"pref saved\");\n\t}", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }", "private void save() {\n Tile[][] field = gameController.grid.field;\n Tile[][] undoField = gameController.grid.undoField;\n// SharedPreferenceUtil.put(this, SpConstant.WIDTH, field.length);\n// SharedPreferenceUtil.put(this, SpConstant.HEIGHT, field.length);\n for (int xx = 0; xx < field.length; xx++) {\n for (int yy = 0; yy < field[0].length; yy++) {\n if (field[xx][yy] != null) {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, field[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, 0);\n }\n\n if (undoField[xx][yy] != null) {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, undoField[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, 0);\n }\n }\n }\n SharedPreferenceUtil.put(this, SpConstant.SCORE, gameController.currentScore);\n SharedPreferenceUtil.put(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n SharedPreferenceUtil.put(this, SpConstant.CAN_UNDO, gameController.canUndo);\n SharedPreferenceUtil.put(this, SpConstant.GAME_STATE, gameController.gameState);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n SharedPreferenceUtil.put(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n }", "private void saveCurrentPreferences() {\n\t\toldUnitType = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH.getId());\n\t\toldPrecision = preferences.getInt(\"precision\", 16);\n\t\toldRounding = preferences.getBoolean(\"roundUp\", true);\n\t\toldDisplayOptions = preferences.getString(\"displayOptions\", context.getString(R.string.displayAutomatic));\n\t}", "public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "public void savingPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n\n //tao doi tuong editer\n SharedPreferences.Editor editor = sharedPreferences.edit();\n String user = txtUserName.getText().toString();\n String pass = txtPassWord.getText().toString();\n\n boolean bchk = chkSave.isChecked();\n\n\n if(!bchk)\n {\n //xoa du lieu luu truoc do\n editor.clear();\n }\n else\n {\n editor.putString(\"user\",user);\n editor.putString(\"pass\",pass);\n editor.putBoolean(\"checked\",bchk);\n }\n\n editor.commit();\n\n\n }" ]
[ "0.7833475", "0.78271145", "0.7686139", "0.7515994", "0.74719745", "0.7469128", "0.74208015", "0.7276594", "0.72744024", "0.7239363", "0.7237908", "0.7233078", "0.72190934", "0.719354", "0.71588624", "0.7105278", "0.70981866", "0.70903265", "0.7035804", "0.6968239", "0.6904949", "0.6893829", "0.68536717", "0.6808012", "0.67212236", "0.6708021", "0.66958636", "0.66948915", "0.6684918", "0.6683605", "0.6644893", "0.6595792", "0.6590791", "0.65877026", "0.65669507", "0.6557466", "0.6555349", "0.6528653", "0.65126395", "0.65019053", "0.6501361", "0.6496799", "0.6491437", "0.64741635", "0.64741635", "0.64741635", "0.64741635", "0.64741635", "0.64741635", "0.64741635", "0.6433058", "0.64299256", "0.641335", "0.64123535", "0.6408402", "0.6389562", "0.6382285", "0.6377496", "0.6375654", "0.63736945", "0.635247", "0.6346061", "0.6345543", "0.63432115", "0.6334948", "0.63288915", "0.63247645", "0.63217694", "0.6309726", "0.6309302", "0.6290684", "0.6283267", "0.6278504", "0.6261947", "0.6254098", "0.62532324", "0.62513906", "0.6246537", "0.6239856", "0.6233483", "0.62292176", "0.62243503", "0.6214427", "0.61947954", "0.6194296", "0.6186353", "0.6177722", "0.6171383", "0.6163964", "0.61522514", "0.61501956", "0.6134943", "0.61347616", "0.61347616", "0.61347616", "0.61347616", "0.61347616", "0.61347616", "0.61347616", "0.6124953" ]
0.6795813
24
check that all attributes have a type
public static void check(Model model) { model.classes.values().forEach(aClass -> { if (aClass.name.equals("Node")) { //noop } else { aClass.properties().forEach(o -> { if (o instanceof Attribute) { Attribute attribute = (Attribute) o; if (attribute.type() == null) { throw new RuntimeException("Untyped attribute " + attribute.name() + " contained in " + attribute.parent()); } if (reserved.contains(((Attribute) o).name())) { throw new RuntimeException("Usage of a reserved attribute name : " + ((Attribute) o).name()); } } else if (o instanceof Constant) { final Constant constant = (Constant) o; if (constant.type().equals("Task") && constant.value() != null) { checkTask(constant.value()); } } }); } }); model.constants.values().forEach(constant -> { if (constant.type().equals("Task") && constant.value() != null) { checkTask(constant.value()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAttributes();", "boolean hasAttributes();", "boolean isAttribute();", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "public void getAllAttributeTypes(List<IAttributeType<?>> all);", "public void getAllAttributeTypes(List<IAttributeType<?>> all, ItemFilter<IAttributeType<?>> filter);", "private boolean checkAttributes(ExportPkg ep, ImportPkg ip) {\n /* Mandatory attributes */\n if (!ip.checkMandatory(ep.mandatory)) {\n return false;\n }\n /* Predefined attributes */\n if (!ip.okPackageVersion(ep.version) ||\n (ip.bundleSymbolicName != null &&\n !ip.bundleSymbolicName.equals(ep.bpkgs.bundle.symbolicName)) ||\n !ip.bundleRange.withinRange(ep.bpkgs.bundle.version)) {\n return false;\n }\n /* Other attributes */\n for (Iterator i = ip.attributes.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n String a = (String)ep.attributes.get(e.getKey());\n if (a == null || !a.equals(e.getValue())) {\n return false;\n }\n }\n return true;\n }", "boolean isAttribute(Object object);", "@SuppressWarnings(\"deprecation\")\n\t@Test\n public void test_TCM__Attribute_setAttributeType_int() {\n final Attribute attribute = new Attribute(\"test\", \"value\");\n\n for(int attributeType = -10; attributeType < 15; attributeType++) {\n if (\n Attribute.UNDECLARED_TYPE.ordinal() <= attributeType &&\n attributeType <= Attribute.ENUMERATED_TYPE.ordinal()\n ) {\n \tattribute.setAttributeType(attributeType);\n \tassertTrue(attribute.getAttributeType().ordinal() == attributeType);\n continue;\n }\n try {\n attribute.setAttributeType(attributeType);\n fail(\"set unvalid attribute type: \"+ attributeType);\n }\n catch(final IllegalDataException ignore) {\n // is expected\n }\n catch(final Exception exception) {\n \texception.printStackTrace();\n fail(\"unknown exception throws: \"+ exception);\n }\n }\n }", "private void validateTypes() {\r\n\t\tfor (int i = 0; i < types.length; i++) {\r\n\t\t\tString type = types[i];\r\n\t\t\tif (!TypedItem.isValidType(type))\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\"The monster type %s is invalid\", type));\r\n\t\t\tfor (int j = i + 1; j < types.length; j++) {\r\n\t\t\t\tif (type.equals(types[j])) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"The monster cant have two similar types..\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public boolean isValidType() {\n return this.type == RADIUS_ATTR_USERNAME ||\n this.type == RADIUS_ATTR_NAS_IP ||\n this.type == RADIUS_ATTR_NAS_PORT ||\n this.type == RADIUS_ATTR_VENDOR_SPECIFIC ||\n this.type == RADIUS_ATTR_CALLING_STATION_ID ||\n this.type == RADIUS_ATTR_NAS_ID ||\n this.type == RADIUS_ATTR_ACCT_SESSION_ID ||\n this.type == RADIUS_ATTR_NAS_PORT_TYPE ||\n this.type == RADIUS_ATTR_EAP_MESSAGE ||\n this.type == RADIUS_ATTR_MESSAGE_AUTH ||\n this.type == RADIUS_ATTR_NAS_PORT_ID;\n }", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "public IAttributeType<?>[] getAllAttributeTypes();", "public Class getAttributeType();", "private void verifyContentTypeAttributeValue()\n throws CMSException\n {\n ASN1Primitive validContentType = getSingleValuedSignedAttribute(\n CMSAttributes.contentType, \"content-type\");\n if (validContentType == null)\n {\n if (!isCounterSignature && signedAttributeSet != null)\n {\n throw new CMSException(\"The content-type attribute type MUST be present whenever signed attributes are present in signed-data\");\n }\n }\n else\n {\n if (isCounterSignature)\n {\n throw new CMSException(\"[For counter signatures,] the signedAttributes field MUST NOT contain a content-type attribute\");\n }\n\n if (!(validContentType instanceof ASN1ObjectIdentifier))\n {\n throw new CMSException(\"content-type attribute value not of ASN.1 type 'OBJECT IDENTIFIER'\");\n }\n\n ASN1ObjectIdentifier signedContentType = (ASN1ObjectIdentifier)validContentType;\n\n if (!signedContentType.equals(contentType))\n {\n throw new CMSException(\"content-type attribute value does not match eContentType\");\n }\n }\n }", "public void getAllAttributeTypes(Map<String, IAttributeType<?>> all, boolean keepLastAttribute);", "@Test\n public void requireKeysForAttributes() {\n Set<Attribute> attributes = EnumSet.copyOf(Arrays.asList(Attribute.values()));\n Set<Attribute> implementedAttributes = Arrays.stream(AttributeManager.Key.values())\n .map(AttributeManager.Key::getAttribute)\n .collect(() -> EnumSet.noneOf(Attribute.class), AbstractCollection::add, AbstractCollection::addAll);\n\n attributes.removeAll(implementedAttributes);\n\n if (!attributes.isEmpty()) {\n throw new RuntimeException(\"Some Attributes are not supported by glowstone: \" + attributes);\n }\n }", "private boolean isNodeTypeAttribute(String attributeName, String attributeValue) {\r\n boolean match = false;\r\n if (!StringUtils.isBlank(attributeName) && !StringUtils.isBlank(attributeValue) && !StringUtils.isBlank(getJsonTypeAttributeName())) {\r\n if (attributeName.equalsIgnoreCase(getJsonTypeAttributeName())) {\r\n if (attributeValue.equalsIgnoreCase(\"boolean\")) {\r\n _current.setType(XML2JSONObject.Type.Boolean);\r\n }\r\n else if (attributeValue.equalsIgnoreCase(\"number\")) {\r\n _current.setType(XML2JSONObject.Type.Number);\r\n }\r\n else if (attributeValue.equalsIgnoreCase(\"array\")) {\r\n _current.setType(XML2JSONObject.Type.Array);\r\n }\r\n match = true;\r\n\r\n }\r\n }\r\n return match;\r\n }", "private boolean validateAttributes(ScanningContext context) {\n // We only need to check if it's a non-framework file (and an XML file; skip .png's)\n if (!isFramework() && SdkUtils.endsWith(getFile().getName(), DOT_XML)) {\n ValidatingResourceParser parser = new ValidatingResourceParser(context, false);\n try {\n IAbstractFile file = getFile();\n return parser.parse(file.getOsLocation(), file.getContents());\n } catch (Exception e) {\n context.needsFullAapt();\n }\n\n return false;\n }\n\n return true;\n }", "boolean isNilAttributeTypeDisplayName();", "@Override\n public Set<String> validTypes() {\n return factory.validTypes();\n }", "public void checkAttribute(String arg1) {\n\t\t\n\t}", "public abstract boolean isTypeCorrect();", "abstract protected boolean checkType(String myType);", "static boolean model_field_type_and_attrs(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"model_field_type_and_attrs\")) return false;\n if (!nextTokenIs(b, ENTITY_NAME)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = field_type(b, l + 1);\n r = r && model_field_type_and_attrs_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "protected static boolean checkTypeReferences() {\n Map<Class<?>, LinkedList<Class<?>>> missingTypes = new HashMap<>();\n for (Map.Entry<String, ClassProperties> entry : classToClassProperties.entrySet()) {\n String className = entry.getKey();\n Class<?> c = lookupClass(className);\n Short n = entry.getValue().typeNum;\n if (marshalledTypeNum(n)) {\n Class<?> superclass = getValidSuperclass(c);\n if (superclass != null)\n checkClassPresent(c, superclass, missingTypes);\n LinkedList<Field> fields = getValidClassFields(c);\n for (Field f : fields) {\n Class<?> fieldType = getFieldType(f);\n checkClassPresent(c, fieldType, missingTypes);\n }\n }\n }\n if (missingTypes.size() > 0) {\n for (Map.Entry<Class<?>, LinkedList<Class<?>>> entry : missingTypes.entrySet()) {\n Class<?> c = entry.getKey();\n LinkedList<Class<?>> refs = entry.getValue();\n String s = \"\";\n for (Class<?> ref : refs) {\n if (s != \"\")\n s += \", \";\n s += \"'\" + getSimpleClassName(ref) + \"'\";\n }\n Log.error(\"Missing type '\" + getSimpleClassName(c) + \"' is referred to by type(s) \" + s);\n }\n Log.error(\"Aborting code generation due to missing types\");\n return false;\n }\n else\n return true;\n }", "abstract public boolean isTyped();", "public abstract boolean isTypeOf(ItemType type);", "private boolean areCompatible( String id, AttributeType attributeType )\n {\n // First, get rid of the options, if any\n int optPos = id.indexOf( ';' );\n String idNoOption = id;\n\n if ( optPos != -1 )\n {\n idNoOption = id.substring( 0, optPos );\n }\n\n // Check that we find the ID in the AT names\n for ( String name : attributeType.getNames() )\n {\n if ( name.equalsIgnoreCase( idNoOption ) )\n {\n return true;\n }\n }\n\n // Not found in names, check the OID\n return Oid.isOid( id ) && attributeType.getOid().equals( id );\n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }", "private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}", "public boolean getSourceAttributeType(int i){\n \treturn source.getAttr(i).isNumber();\n }", "private boolean checkColumnTypes(ArrayList<String> types, ArrayList<Object> values) {\n boolean isType = true;\n for (int i = 0; i < values.size(); i++) {\n isType = this.isType(types.get(i), values.get(i));\n if (!isType) break;\n }\n return isType;\n }", "protected boolean isApplicableType(Datatype type) {\n\t\treturn true;\n\t}", "private static boolean checkExpressionAttributes(final Expression e, final Map<String, String> tables,\n\t\t\tfinal Map<String, TableData> catalog)\n\t{\n\t\tfinal String type = e.getType();\n\n\t\t// Base case - type is an identifier\n\t\tif(type.equals(\"identifier\"))\n\t\t{\n\t\t\tfinal String value = e.getValue();\n\t\t\treturn attributeExists(tables, catalog, value);\n\t\t}\n\n\t\t// Unary Operator case\n\t\tfor(final String unaryType : Expression.unaryTypes)\n\t\t{\n\t\t\tif(e.getType().equals(unaryType))\n\t\t\t{\n\t\t\t\treturn checkExpressionAttributes(e.getSubexpression(), tables, catalog);\n\t\t\t}\n\t\t}\n\n\t\t// Binary Operator case\n\t\tfor(final String binaryType : Expression.binaryTypes)\n\t\t{\n\t\t\tif(e.getType().equals(binaryType))\n\t\t\t{\n\t\t\t\tif(!checkExpressionAttributes(e.getSubexpression(\"left\"), tables, catalog))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn checkExpressionAttributes(e.getSubexpression(\"right\"), tables, catalog);\n\t\t\t}\n\t\t}\n\n\t\t// Other identifiers are non recursive and can't include attributes\n\t\treturn true;\n\t}", "boolean hasPropType();", "private boolean attributeAnalyzerLR(List<Token> lineLexTokens) {\r\n\t\tToken attrTkn = lineLexTokens.get(0);\r\n\t\t// attributes declaration must have NUM_PARAM_ATTR parameters\r\n\t\tif (lineLexTokens.size() != NUM_PARAMS_ATTR) {\r\n\t\t\tlog.error(\"Attribute declaration '\" + attrTkn.value + \r\n\t\t\t\t\t\"' must contain \" + NUM_PARAMS_ATTR + \" parameters.\", \r\n\t\t\t\t\tnew ParserException());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// attributes name can only contain characters, numbers, \r\n\t\t// and underline. And cannot start with numbers.\r\n\t\tif (!attrTkn.value.matches(\"[^0-9][a-zA-Z_0-9]+\")) {\r\n\t\t\tlog.error(\"Attribute declaration '\" + attrTkn.value + \r\n\t\t\t\t\t\"' must only contain characters, numbers and underline.\"\r\n\t\t\t\t\t+ \" And must not start with numbers.\", \r\n\t\t\t\t\tnew ParserException());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tToken typeTkn = lineLexTokens.get(1);\r\n\t\tToken delimTkn = lineLexTokens.get(2);\r\n\t\tString lineLex = attrTkn.lexSymbol + typeTkn.lexSymbol + delimTkn.lexSymbol;\r\n\t\tString regex = \"\"; // regular expression\r\n\r\n\t\t// Check the syntax of this attribute declaration \r\n\t\tKeywords attrKeyword = Keywords.lookup(attrTkn.value);\r\n\t\t\r\n\t\tswitch (attrKeyword) {\r\n\t\t\tcase _ID: \r\n\t\t\t\t// regular expression of ID attribute \r\n\t\t\t\t// \"\\\\$attr\\\\$type\\\\$delim\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.AttributeSymbol + \r\n\t\t\t\t \"\\\\\"+Symbols.TypeSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol;\r\n\t\t\t\t// ID attribute must be of a basic type\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(\"Attribute '\" + attrTkn.value + \"' must be \"\r\n\t\t\t\t\t\t\t+ \"of a basic type.\", new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t};\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase _COORDINATES:\r\n\t\t\t\t// regular expression of Coordinate attribute\r\n\t\t\t\t// \"\\\\$attr\\\\$array\\\\$delim\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.AttributeSymbol + \r\n\t\t\t\t \"\\\\\"+Symbols.ArrayTypeSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol;\r\n\t\t\t\t// Coordinate attribute must be an Array type\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(\"Attribute '\" + attrTkn.value + \"' must be of an '\" \r\n\t\t\t\t\t\t\t+ Keywords.ARRAY + \"' type.\", new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t};\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\t// default format for attributes\r\n\t\t\t\t// \"\\\\$attr(\\\\$type|\\\\$array|\\\\$dtype)\\\\$delim\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.AttributeSymbol + \r\n\t\t\t\t\t \"(\\\\\"+Symbols.TypeSymbol + \"|\" + \r\n\t\t\t\t \"\\\\\"+Symbols.ArrayTypeSymbol + \"|\" + \r\n\t\t\t\t \"\\\\\"+Symbols.DateTypeSymbol +\")\" +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(\"Attribute declaration '\" + attrTkn.value + \r\n\t\t\t\t\t\t\t\"' is in a wrong format.\", new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} \r\n\t\t}\r\n\t\t\r\n\t\t/* Analyze attribute's type */\r\n\t\t\r\n\t\t// If this attribute is an ARRAY type, then analyze array syntax\r\n\t\tif (typeTkn.lexSymbol.equals(Symbols.ArrayTypeSymbol)) {\r\n\t\t\tif (!arrayAnalyzerLR(typeTkn.value)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// If this attribute is an DATETIME type, then analyze DateTime syntax\r\n\t\tif (typeTkn.lexSymbol.equals(Symbols.DateTypeSymbol)) {\r\n\t\t\tif (!dateTypeAnalyzerLR(typeTkn.value)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// no syntax error in this attribute declaration\r\n\t\treturn true;\r\n\t}", "private void checkAttributes() throws JellyTagException\n {\n if (getField() == null)\n {\n throw new MissingAttributeException(\"field\");\n }\n if (getVar() == null)\n {\n if (!(getParent() instanceof ValueSupport))\n {\n throw new JellyTagException(\n \"No target for the resolved value: \"\n + \"Specify the var attribute or place the tag \"\n + \"in the body of a ValueSupport tag.\");\n }\n }\n }", "protected void validateAttribute(FactAttribute[] param) {\r\n\r\n }", "public ByteArrayAttribute getAttrTypes() {\n return attrTypes;\n }", "protected abstract boolean populateAttributes();", "private boolean checkSelectAll(){\n\t\tboolean ans = false;\n\t\tint i =0;//# of *\n\t\tfor(String temp : this.attrList){\n\t\t\tif(temp.equals(\"*\")){\n\t\t\t\t// ans = true;\n\t\t\t\ti++;\n\t\t\t\t// break;\n\t\t\t\tif (i==tableNames.size()) {\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "public void getAllAttributeTypesKeys(Set<String> all, ItemFilter<IAttributeType<?>> filter);", "@Test\n public void testIsTypeOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_TYPE_OF);\n }", "@java.lang.Override\n public boolean hasAttributes() {\n return attributes_ != null;\n }", "public static void checkDataForm(AttributeReader attributes, CheckType\ttype, CommandDefinition definition) throws SystemException {\r\n\t\t\r\n\t\t// Validate we even have an instance.\r\n\t\tif ((attributes==null)||(type==null)||(definition==null)) \r\n\t\t\tthrow new SystemException(\"Null attributes.\", SystemException.SYSTEM_COMMAND_FAULT_INSTANCE_USED_BEFORE_READY, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, definition.name);\r\n\t\t\r\n\t\t// What type are we validating\r\n\t\tLinkedHashMap<String, CommandItem>\ttypeToValidate;\r\n\t\tif (type == CheckType.COMMAND) typeToValidate = definition.parameters;\r\n\t\telse typeToValidate = definition.responses;\r\n\t\t\r\n\t\t// Validate the command.\r\n\t\tint valueCount = 0;\r\n\t\tCommandItem cachedItem = null;\r\n\t\tfor (String name : attributes.getAttributeNames()) {\r\n\t\t\tvalueCount = attributes.getAttributeCount(name);\r\n\t\t\tcachedItem = typeToValidate.get(name);\r\n\t\t\tif (valueCount > 1) {\r\n\t\t\t\t// It's a multi and see if it is allowed.\r\n\t\t\t\tswitch (cachedItem.myOccurence) {\r\n\t\t\t\tcase NEVER: \r\n\t\t\t\t\tthrow new SystemException(\"Found an attribute defined as NEVER.\", SystemException.SYSTEM_COMMAND_ERROR_OCCURANCE_VIOLATION_NEVER, \r\n\t\t\t\t\t\t\tSystemNamespace.ATTR_SYSTEM_COMMAND_NAME, definition.name, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name);\r\n\t\t\t\tcase ONLYONE:\r\n\t\t\t\t\tthrow new SystemException(\"Found multiple attribute values for attribute defined as ONLYONE.\", SystemException.SYSTEM_COMMAND_ERROR_OCCURANCE_VIOLATION_ONLYONE, \r\n\t\t\t\t\t\t\tSystemNamespace.ATTR_SYSTEM_COMMAND_NAME, definition.name, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_DATA_ATTRIBUTE_VALUE_COUNT, Integer.toString(valueCount));\t\t\t\t\r\n\t\t\t\tcase MANY:\r\n\t\t\t\tcase WHATEVER:\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t// OK - check type. We only care if it has been declared a VALUE but has multivalue.\r\n\t\t\t\t\tif (cachedItem.myDataType == DataType.VALUE) {\r\n\t\t\t\t\t\tfor (NVImmutable cachedAttrib : attributes.getAttributes(name)) {\r\n\t\t\t\t\t\t\tif (cachedAttrib.isMultivalue()) \r\n\t\t\t\t\t\t\t\tthrow new SystemException(\"Found a LIST attribute values for attribute defined as VALUE.\", SystemException.SYSTEM_COMMAND_ERROR_DATATYPE_VIOLATION_VALUE, \r\n\t\t\t\t\t\t\t\t\t\tSystemNamespace.ATTR_SYSTEM_COMMAND_NAME, definition.name, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_DATA_ATTRIBUTE_VALUE_COUNT );\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} // end if\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} // end switch\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// It's a single\r\n\t\t\t\tswitch (cachedItem.myOccurence) {\r\n\t\t\t\tcase NEVER: \r\n\t\t\t\t\tthrow new SystemException(\"Found an attribute defined as NEVER.\", SystemException.SYSTEM_COMMAND_ERROR_OCCURANCE_VIOLATION_NEVER, \r\n\t\t\t\t\t\t\tSystemNamespace.ATTR_SYSTEM_COMMAND_NAME, definition.name, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name);\r\n\t\t\t\tcase ONLYONE:\r\n\t\t\t\tcase MANY:\r\n\t\t\t\tcase WHATEVER:\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t// OK - check type. We only care if it has been declared a VALUE but has multivalue.\r\n\t\t\t\t\tif (cachedItem.myDataType == DataType.VALUE) {\r\n\t\t\t\t\t\tfor (NVImmutable cachedAttrib : attributes.getAttributes(name)) {\r\n\t\t\t\t\t\t\tif (cachedAttrib.isMultivalue()) \r\n\t\t\t\t\t\t\t\tthrow new SystemException(\"Found a LIST attribute values for attribute defined as VALUE.\", SystemException.SYSTEM_COMMAND_ERROR_DATATYPE_VIOLATION_VALUE, \r\n\t\t\t\t\t\t\t\t\t\tSystemNamespace.ATTR_SYSTEM_COMMAND_NAME, definition.name, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_DATA_ATTRIBUTE_VALUE_COUNT );\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} // end if\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} // end switch\r\n\r\n\t\t\t} // end if\r\n\r\n\t\t} // end for\r\n\t}", "boolean isApplicableForAllAssetTypes();", "boolean hasAttribute(String name);", "boolean containsAttributes(java.lang.String key);", "public <T extends java.lang.Object> scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> attributesFor (scala.reflect.api.TypeTags.TypeTag<T> evidence$1) ;", "@Test\n public void getType() throws Exception {\n Class<?> type = new AttributeKey<Number>(Number.class, \"keyName\").getType();\n assertThat(type, is((Object) Number.class));\n }", "private void checkCommon() {\n final AnnotationTypeDeclaration commonAnnoType = (AnnotationTypeDeclaration) _env.getTypeDeclaration(Common.class.getName());\n final Collection<Declaration> decls = _env.getDeclarationsAnnotatedWith(commonAnnoType);\n for (Declaration decl : decls) {\n if (decl instanceof FieldDeclaration) {\n final FieldDeclaration field = (FieldDeclaration) decl;\n final TypeMirror type = field.getType();\n if (type instanceof DeclaredType) {\n final TypeMirror collectionType = _env.getTypeUtils().getDeclaredType(_env.getTypeDeclaration(Collection.class.getName()));\n final Collection<TypeMirror> typeVars = ((DeclaredType) type).getActualTypeArguments();\n if (typeVars.size() == 1) {\n TypeMirror typeVar = typeVars.iterator().next();\n boolean assignable = _env.getTypeUtils().isAssignable(typeVar, collectionType);\n if (assignable)\n _msgr.printError(typeVar + \" is assignable to \" + collectionType);\n else\n _msgr.printError(typeVar + \" is not assignable to \" + collectionType);\n }\n }\n } else if (decl instanceof TypeDeclaration) {\n final TypeDeclaration typeDecl = (TypeDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = typeDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n } else if (decl instanceof MethodDeclaration) {\n final MethodDeclaration methodDecl = (MethodDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = methodDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n }\n }\n }", "public boolean attributeExists(String aname) {\n for (String s : attributes) {\n if (aname.equals(s))\n return true;\n }\n return false;\n }", "private void checkForSuperfluousAttributes(SyntaxTreeNode node,\n Attributes attrs)\n {\n QName qname = node.getQName();\n boolean isStylesheet = (node instanceof Stylesheet);\n String[] legal = _instructionAttrs.get(qname.getStringRep());\n if (versionIsOne && legal != null) {\n int j;\n final int n = attrs.getLength();\n\n for (int i = 0; i < n; i++) {\n final String attrQName = attrs.getQName(i);\n\n if (isStylesheet && attrQName.equals(\"version\")) {\n versionIsOne = attrs.getValue(i).equals(\"1.0\");\n }\n\n // Ignore if special or if it has a prefix\n if (attrQName.startsWith(\"xml\") ||\n attrQName.indexOf(':') > 0) continue;\n\n for (j = 0; j < legal.length; j++) {\n if (attrQName.equalsIgnoreCase(legal[j])) {\n break;\n }\n }\n if (j == legal.length) {\n final ErrorMsg err =\n new ErrorMsg(ErrorMsg.ILLEGAL_ATTRIBUTE_ERR,\n attrQName, node);\n // Workaround for the TCK failure ErrorListener.errorTests.error001..\n err.setWarningError(true);\n reportError(WARNING, err);\n }\n }\n }\n }", "private static void verifyFeatureType(final DefaultFeatureType type, final Class<?> geometryType, final int maxOccurs) {\n final Iterator<? extends AbstractIdentifiedType> it = type.getProperties(true).iterator();\n assertPropertyTypeEquals((DefaultAttributeType<?>) it.next(), \"mfidref\", String.class, 1, 1);\n assertPropertyTypeEquals((DefaultAttributeType<?>) it.next(), \"startTime\", Instant.class, 1, 1);\n assertPropertyTypeEquals((DefaultAttributeType<?>) it.next(), \"endTime\", Instant.class, 1, 1);\n assertPropertyTypeEquals((DefaultAttributeType<?>) it.next(), \"trajectory\", geometryType, 1, 1);\n assertPropertyTypeEquals((DefaultAttributeType<?>) it.next(), \"state\", String.class, 0, maxOccurs);\n assertPropertyTypeEquals((DefaultAttributeType<?>) it.next(), \"\\\"type\\\" code\", Integer.class, 0, maxOccurs);\n assertFalse(it.hasNext());\n }", "@Test\n public void testGetType()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)String.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Long.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Integer.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Short.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Character.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Byte.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Double.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Float.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Boolean.class));\n }", "public boolean isAcceptable(Class<? extends DataElement> clazz);", "boolean isHandled(Class<?> type);" ]
[ "0.65653914", "0.65653914", "0.653576", "0.65158045", "0.6507743", "0.63678426", "0.63242495", "0.62987614", "0.6262925", "0.62555474", "0.6183513", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6052635", "0.6049832", "0.5992614", "0.5979786", "0.59165853", "0.5882045", "0.58753586", "0.58730984", "0.5867233", "0.58632594", "0.5848547", "0.5824088", "0.58216375", "0.5811863", "0.5796151", "0.57416916", "0.5726515", "0.57027525", "0.5701166", "0.5699608", "0.56794405", "0.5672444", "0.56698465", "0.5665077", "0.563693", "0.5624652", "0.56194323", "0.56099194", "0.5605256", "0.5574951", "0.5571716", "0.5567854", "0.5565598", "0.55579895", "0.5547629", "0.5546922", "0.55050987", "0.55037695", "0.55013484", "0.5499255", "0.5498939", "0.5498112", "0.5486972", "0.5480964", "0.5479778", "0.5476157", "0.5453504", "0.5452757" ]
0.54584676
98
Anagram mean same characters in both words ,but word meaning is different
public static void main(String[] args) { String str="army"; String str1="mary"; char arr[]=str.toLowerCase().toCharArray(); char arr1[]=str1.toLowerCase().toCharArray(); Arrays.sort(arr); Arrays.sort(arr1); if(Arrays.equals(arr, arr1)) { System.out.println("given strings are anagrams"); } else { System.out.println("given strings are not anagram"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean anagramWord(String first, String second) {\n\t\tif(first.length()!=second.length())return false;\n\t\tint matches = 0;\n\t\tchar[] a = first.toLowerCase().toCharArray();\n\t\tchar[] b = second.toLowerCase().toCharArray();\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tfor(int j=0; j<b.length; j++){\n\t\t\t\tif(a[i]==b[j])matches++;\n\t\t\t}\n\t\t}\n\t\tif( matches==a.length && matches==b.length )return true;\n\t\treturn false;\n\t}", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString s1=sc.nextLine();\r\nString s2=sc.nextLine();\r\ns1=s1.replaceAll(\"\\\\s\",\"\");\r\ns2=s2.replaceAll(\"\\\\s\",\"\");\r\ns1=s1.toLowerCase();\r\ns2=s2.toLowerCase();\r\nchar str1[]=s1.toCharArray();\r\nchar str2[]=s2.toCharArray();\r\nArrays.sort(str1);\r\nArrays.sort(str2);\r\nboolean k=true;\r\nif(s1.length()!=s2.length())\r\n\tk=false;\r\nelse\r\n{\r\nk=Arrays.equals(str1,str2);\t\r\n}\r\nif(k==false)\r\n\tSystem.out.print(\"not annagram\");\r\nelse\r\n\tSystem.out.print(\"annagram\");\r\n\t}", "int main() \n{\n string s1,s2;\n cin>>s1>>s2;\n int freq[128]={0},i;\n for(i=0;i<s1.length();i++)\n freq[s1[i]]++;\n for(i=0;i<s2.length();i++)\n freq[s2[i]]--;\n for(i=0;i<128;i++)\n {\n if(freq[i]!=0)\n {\n cout<<\"Not anagrams\";\n return 0;\n }\n }\n cout<<\"Anagram\";\n}", "public boolean anagram(char [] a, char [] b);", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String s1,s2;\n s1=sc.nextLine();\n s2=sc.nextLine();\n s1=s1.toLowerCase();\n s2=s2.toLowerCase();\n if(s1.length()!=s2.length()) \n System.out.println(\"Not an anagram\");\n char[] c1=s1.toCharArray();\n char[] c2=s2.toCharArray();\n Arrays.sort(c1);\n Arrays.sort(c2);\n \tif(Arrays.equals(c1, c2))\n System.out.println(\"anagram\");\n \telse\n System.out.println(\"Not an anagram\");\n }", "public static boolean isAnagram (String word1, String word2){\n boolean check = false;\n String one = \"\";\n String two = \"\";\n int counter =0;\n int counter1 =0;\n for(int i=0; i<word1.length(); i++){\n counter=0;\n for(int k=0; k<word2.length(); k++){\n if(word1.charAt(i) == word2.charAt(k) ){\n counter++;\n }\n }\n if(counter ==1){\n counter1++;\n }\n }\n if (counter1 == word1.length() && counter1 == word2.length() ){\n check = true;\n }\n return check;\n }", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "public static boolean isAnagram(char[]s1, char[]s2)\r\n{\n\t if(s1.length!=s2.length)\r\n\t\t return false; \r\n\t \r\n\t //sort both strings using Arrays sort method\r\n\t Arrays.sort(s1); \r\n\t Arrays.sort(s2);\r\n\t \r\n\t for(int i=0; i<s1.length;i++)\r\n\t if(s1[i]!=s2[i])\r\n\t\t return false; \r\n\t\r\n\treturn true; \r\n\t \r\n}", "public static boolean areAnagramStringsUsingOneFrequencyArray(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n int[] f = new int[256];\n\n for (int i = 0; i < word1.length(); i++) {\n f[word1.charAt(i)]++;\n f[word2.charAt(i)]--;\n }\n\n for (int i = 0; i < f.length; i++) {\n if (f[i] != 0) {\n return false;\n }\n\n }\n return true;\n\n }", "public static boolean anagram() {\n\t\tboolean isAnagram = false;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter first string\");\n\t\tString string1 = scanner.nextLine();\n\t\tSystem.out.println(\"enter second string\");\n\t\tString string2 = scanner.nextLine();\n\t\tString space1 = string1.replaceAll(\" \",\"\");\n\t\tString space2 = string2.replaceAll(\" \",\"\");\n\t\tString lower1 = string1.toLowerCase();\n\t\tString lower2 = string2.toLowerCase();\n\t\tchar[] array1 = space1.toCharArray();\n\t\tchar[] array2 = space2.toCharArray();\n\t\t\n\t\t\n\t\tif (array1.length == array2.length) \n\t\t{\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array1[i] > array1[j]) {\n\t\t\t\t\t\tchar temp = array1[i];\n\t\t\t\t\t\tarray1[i] = array1[j];\n\t\t\t\t\t\tarray1[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array2[i] > array2[j]) {\n\t\t\t\t\t\tchar temp = array2[i];\n\t\t\t\t\t\tarray2[i] = array2[j];\n\t\t\t\t\t\tarray2[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i; j <=i; j++) {\n\t\t\t\t\tif (array1[i] == array2[j]) {\n\t\t\t\t\t\tcount++;\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\tif (count == array1.length) {\n\t\t\t\tisAnagram=true;\n\n\t\t\t} \n\t\t\telse {\n\t\t\t\tisAnagram = false;\n\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tisAnagram = false;\n\t\t}\n\t\treturn isAnagram;\n\t}", "public static boolean isAnagram(String first, String second) {\n first = first.toLowerCase();\n second = second.toLowerCase();\n // Two strings can't be anagrams if they're not the same length\n if (first.length() != second.length()){\n return false;\n }\n HashMap<Character, Integer> firstWord = new HashMap<Character, Integer>();\n HashMap<Character, Integer> secondWord = new HashMap<Character, Integer>();\n\n // Count character occurences in 1st word\n for(int i = 0; i < first.length(); i++){\n char key = first.charAt(i);\n firstWord.put(key, firstWord.getOrDefault(key, 0)+1);\n }\n // Count character occurrences in 2nd word\n for(int i = 0; i < second.length(); i++){\n char key = second.charAt(i);\n secondWord.put(key, secondWord.getOrDefault(key, 0)+1);\n }\n return firstWord.equals(secondWord);\n }", "private static void anagramDetection(char[] firstArray, char[] secondArray) {\n int count = 0;\n for (int i = 0; i < firstArray.length; i++) {\n for (int j = 0; j < firstArray.length; j++) {\n if (firstArray[i] == secondArray[j]) {\n count += 1;\n }\n }\n }\n if (count == firstArray.length){\n System.out.println(\"Both strings are anagram\");\n }else {\n System.out.println(\"Both strings are not anagram\");\n }\n\n }", "public void checkAnagram(String s, String s1) {\r\n\t\tint count=0;\r\n\t\tif(s.length()==s1.length()){\r\n\t\t\tfor(int i=0;i<s.length();i++){\r\n\t\t\t\tfor(int j=0;j<s1.length();j++){\r\n\t\t\t\t\tif(s.charAt(i)==s1.charAt(j)){\r\n\t\t\t\t\t\tcount++;\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\tif(count==s.length()){\r\n\t\t\tSystem.out.println(\"anagram\");\r\n\t\t}else\r\n\t\t\tSystem.out.println(\"not anagram\");\r\n\t}", "static int makeAnagram(String a, String b) {\n int[] frequencyA = countFrequency(a);\n int[] frequencyB = countFrequency(b);\n\n int count = 0;\n\n for (int i = 0; i < frequencyA.length; i++) {\n count += Math.abs(frequencyA[i] - frequencyB[i]);\n }\n return count;\n }", "private static boolean isAnagram(String a, String b) {\n\t\tint[] charsA = new int[26];\n\t\tint[] charsB = new int[26];\n\t\t\n\t\tfor(int i = 0 ; i < a.length(); i++)\n\t\t\tcharsA[a.charAt(i) - 'a']++;\n\t\tfor(int i = 0 ; i < b.length(); i++)\n\t\t\tcharsB[b.charAt(i) - 'a']++;\n\t\t\n\t\tfor(int i = 0 ; i < 26 ; i++) \n\t\t\tif(charsA[i] != charsB[i])\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "static int makeAnagram(String a, String b) {\r\n int[] charCount = new int[26];\r\n int deletions = 0;\r\n\r\n for(char c : a.toCharArray()) {\r\n charCount[c-'a'] += 1;\r\n }\r\n for(char c : b.toCharArray()) {\r\n charCount[c-'a'] -= 1;\r\n }\r\n for(int count : charCount) {\r\n deletions += Math.abs(count);\r\n }\r\n return deletions;\r\n }", "public static void main(String[] args) {\r\n\t\tString s1 = \"ababab\";\r\n\t\tString s2 = \"bababa\";\r\n\t\tif(s1.length()!= s2.length()){\r\n\t\t\tSystem.out.println(\"not a anagram\");\r\n\t\t}else{\r\n\t\t\tchar[] c1 = s1.toCharArray();\r\n\t\t\tchar[] c2 = s2.toCharArray();\r\n\t\t//\tusingHashMap(c1, c2);\r\n\t\t\tusingArrays(c1,c2);\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}", "static int makeAnagram(String a, String b) {\n int[] letters = new int[26];\n\n for (char c: a.toCharArray()){\n letters[c-'a']++;\n }\n\n for (char c: b.toCharArray()){\n letters[c-'a']--;\n }\n\n int sum = 0;\n\n for (int x:letters){\n sum+=Math.abs(x);\n }\n return sum;\n\n }", "static int makeAnagram(String a, String b) {\n \n \tchar arr[] = a.toCharArray();\n char brr[] = b.toCharArray();\n Arrays.sort(arr);\n Arrays.sort(brr);\n Map<Character, Integer> aMap = new HashMap<>();\n Map<Character, Integer> bMap = new HashMap<>();\n for(int i =0 ;i <arr.length;i++){\n \tif(!aMap.containsKey(arr[i])){\n \t\taMap.put(arr[i], 1);\n \t}else{\n \t\taMap.put(arr[i], aMap.get(arr[i])+1);\n \t}\n }\n for(int i =0 ;i <brr.length;i++){\n \tif(!bMap.containsKey(brr[i])){\n \t\tbMap.put(brr[i], 1);\n \t}else{\n \t\tbMap.put(brr[i], bMap.get(brr[i])+1);\n \t}\n }\n int removeCharCount = 0;\n \n for(char ch = 'a'; ch<='z';ch++){\n \tif(aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tif(aMap.get(ch) > bMap.get(ch)){\n \t\t\tint count = aMap.get(ch) - bMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, aMap.get(ch) - count);\n \t\t}else if(aMap.get(ch) < bMap.get(ch)){\n \t\t\tint count = bMap.get(ch) - aMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, bMap.get(ch) - count);\n \t\t}\n \t}else if(aMap.containsKey(ch) && !bMap.containsKey(ch)){\n \t\tint count = aMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\taMap.remove(ch);\n \t}else if(!aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tint count = bMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\tbMap.remove(ch);\n \t}\n }\n /* if(removeCharCount == Math.min(arr.length, brr.length)){\n \treturn 0;\n }*/\n return removeCharCount;\n }", "boolean isAnagram(String str1, String str2){\n\t\tString s1 = str1.replaceAll(\"\\\\s\",\"\");\n\t\tString s2 = str2.replaceAll(\"\\\\s\",\"\");\n\t\t\n\t\t//\n\t\tboolean check = true;\n\t\tif(s1.length()!=s2.length())\n\t\t{\n\t\t\tcheck = false;\n\t\t}\n\t\telse{\n\t\t\ts1=sortArray(s1);\n\t\t\ts2=sortArray(s2);\n\t\t\tcheck = s1.equalsIgnoreCase(s2);\n\t\t}\n\treturn check;\n\t}", "public static boolean isAnagram(String strOne, String strTwo) throws IllegalArgumentException {\n if (strOne == null || strTwo == null)\n throw new IllegalArgumentException(\"One or both strings is null\");\n\n /**\n * Replace spaces and lower case the strings, note that we could\n * do this check while building up the map, but this is somewhat simpler\n * to understand/read, and it also allows us to not have to check to index\n * out of bounds issues when iterating through characters\n */\n String strOneCopy = strOne.replaceAll(\"\\\\s\", \"\").toLowerCase();\n String strTwoCopy = strTwo.replaceAll(\"\\\\s\", \"\").toLowerCase();\n\n if (strOne.isEmpty() || strTwo.isEmpty())\n return false;\n\n int strOneLen = strOneCopy.length();\n int strTwoLen = strTwoCopy.length();\n\n // If the strings aren't the same length they cannot be anagrams\n if (strOneLen != strTwoLen)\n return false;\n\n HashMap<Character, Integer> charCount = new HashMap<Character, Integer>();\n\n\n /**\n * Build a map of the counts of each character.\n *\n * The count will be positive if a character appears in first string one or more\n * times more than it appears in the second string\n *\n * The count will be negative if a character appears in second string one or more\n * times more than it appears in the first string\n */\n for (int i = 0; i < strOneLen; i++) {\n\n /**\n * Get the character from string one, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n char charValKey = strOneCopy.charAt(i);\n\n int charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Increment the count\n charCount.put(charValKey, ++charKeyCount);\n\n\n /**\n * Get the character from string two, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n charValKey = strTwoCopy.charAt(i);\n charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Decrement the count\n charCount.put(charValKey, --charKeyCount);\n\n }\n\n\n for (int value : charCount.values()) {\n if (value != 0)\n return false;\n }\n\n return true;\n }", "static void isAnagram(String s1, String s2) {\n\n String copyOfs1 = s1.replaceAll(\"s\", \"\");\n\n String copyOfs2 = s2.replaceAll(\"s\", \"\");\n\n //Initially setting status as true\n\n boolean status = true;\n\n if (copyOfs1.length() != copyOfs2.length()) {\n //Setting status as false if copyOfs1 and copyOfs2 doesn't have same length\n\n status = false;\n } else {\n //Changing the case of characters of both copyOfs1 and copyOfs2 and converting them to char array\n\n char[] s1Array = copyOfs1.toLowerCase().toCharArray();\n\n char[] s2Array = copyOfs2.toLowerCase().toCharArray();\n\n //Sorting both s1Array and s2Array\n\n Arrays.sort(s1Array);\n\n Arrays.sort(s2Array);\n\n //Checking whether s1Array and s2Array are equal\n\n status = Arrays.equals(s1Array, s2Array);\n }\n\n //Output\n\n if (status) {\n System.out.println(s1 + \" and \" + s2 + \" are anagrams\");\n } else {\n System.out.println(s1 + \" and \" + s2 + \" are not anagrams\");\n }\n }", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "public static boolean isAnagram(String str1, String str2) {\n\t\tif(str1.length() != str2.length())\n\t\t\treturn false;\n\t\t/* count chars for each string */ \n\t\tint[] charSet1 = countChar(str1);\n\t\tint[] charSet2 = countChar(str2);\n\t\t/* compare two char set to see if anagram */\n\t\tfor(int i = 0; i < charSet1.length; i++) {\n\t\t\tif(charSet1[i] != charSet2[i])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkAnagram(char[] str1, char[] str2)\n {\n// Finding lengths of strings\n int len1 = str1.length;\n int len2 = str2.length;\n// If lengths do not match then they cannot be anagrams\n if (len1 != len2)\n return false;\n// Sort both strings\n Arrays.sort(str1);\n Arrays.sort(str2);\n// Comparing the strings which are sorted earlier\n for (int i = 0; i < len1; i++)\n if (str1[i] != str2[i])\n return false;\n return true;\n }", "public static int isAnagram(String st,String st1) {\n\t\tint k=0;\n\t\tString str=remove(st);\n\t\tString str1=remove(st1);\n\t\t/*if(str.length()!=str1.length()){\n\t\t\tk=1;\n\t\t\treturn k;\n\t\t}*/\n\t\tchar[] c=toLowercase(str);\n\t\tchar[] c1=toLowercase(str1);\n\t\tchar[] stt=sort(c);\n\t\tchar[] stt1=sort(c1);\n\t\t/*for(int i=0;i<stt.length;i++)\n\t\t\tSystem.out.print(stt[i]);\n\t\tSystem.out.println();\n\t\tfor(int i=0;i<stt1.length;i++)\n\t\t\tSystem.out.print(stt1[i]);\n\t\tSystem.out.println();*/\n\t\tfor(int i=0;i<stt1.length;i++){\n\t\tif(stt[i]==stt1[i])\n\t\t\tk=1;\n\t\t}\n\t\treturn k;\n\t}", "static int makeAnagram(String a, String b) {\n int[] arr1 = new int[26];\n int[] arr2 = new int[26];\n\n for (int i = 0; i < a.length() ; i++) {\n arr1[a.charAt(i) - 'a']++;\n }\n\n for (int i = 0; i < b.length(); i++)\n arr2[b.charAt(i) - 'a']++;\n\n int times = 0;\n for (int i = 0; i < 26; i++)\n times += Math.abs(arr1[i] - arr2[i]);\n\n\n return times;\n }", "static boolean areAnagram(char[] str1, char[] str2)\n\t{\n\t\t// Get lengths of both strings\n\t\tint n1 = str1.length;\n\t\tint n2 = str2.length;\n\n\t\t// If length of both strings is not same,\n\t\t// then they cannot be anagram\n\t\tif (n1 != n2)\n\t\t\treturn false;\n\n\t\t// Sort both strings\n\t\tArrays.sort(str1);\n\t\tArrays.sort(str2);\n\n\t\t// Compare sorted strings\n\t\tfor (int i = 0; i < n1; i++)\n\t\t\tif (str1[i] != str2[i])\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "private boolean isAnagrams(String s1, String s2) {\n char[] ss1 = s1.toCharArray();\n \n char[] ss2 = s2.toCharArray();\n \n Arrays.sort(ss1);\n Arrays.sort(ss2);\n return ss1.equals(ss2);\n\n }", "static int makeAnagram(String a, String b) {\n List<String> arr = new ArrayList<>(Arrays.asList(a.split(\"(?<!^)\")));\n List<String> arr2 = new ArrayList<>(Arrays.asList(b.split(\"(?<!^)\")));\n Iterator<String> iter = arr.iterator();\n \n while (iter.hasNext()) {\n String s = iter.next();\n\n if (arr2.contains(s)) {\n arr2.remove(arr2.indexOf(s));\n iter.remove();\n }\n }\n\n return (arr.size()) + (arr2.size());\n }", "public static void main(String[] args) {\n String firstString = \"abcd\";\n String secondString = \"dcba\";\n\n // two string may be anagram of they are same in length, character wise.\n if (firstString.length() != secondString.length()) {\n System.out.println(\"Both string are not anagram\");\n }else {\n char[] firstArray = firstString.toCharArray();\n char[] secondArray = secondString.toCharArray();\n\n anagramDetection(firstArray, secondArray);\n }\n }", "public static boolean compare (TreeMap<Character, Integer> m1, TreeMap<Character, Integer> m2) {\n if (m1.keySet().size() != m2.keySet().size()) {\n return false; // Words do not contain the same number of variants of characters\n } else {\n for (char c : m1.keySet()) {\n if (!m2.containsKey(c)) {\n return false; // Words do not have the same characters\n } else {\n if (m1.get(c) != m2.get(c)) {\n return false; // Words do not have the same number of the same characters\n }\n }\n }\n }\n\n return true; // The word is an anagram\n }", "static int makeAnagram1(String a, String b) {\n int count = 0;\n Map<Character, Integer> mapA = initMap(a);\n Map<Character, Integer> mapB = initMap(b);\n\n Iterator<Character> it = mapA.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyA = mapA.get(c);\n if (mapB.containsKey(c)) {\n int frequencyB = mapB.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyA;\n }\n }\n\n it = mapB.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyB = mapB.get(c);\n if (mapA.containsKey(c)) {\n int frequencyA = mapA.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyB;\n }\n }\n return count;\n }", "static int anagram(String s){\n // Complete this function\n int len = s.length();\n if(len%2 != 0){\n return -1;\n }\n String a=s.substring(0,(len/2));\n StringBuilder b = new StringBuilder(s.substring((len/2),len)); \n //System.out.println(\"a: \" + a);\n //System.out.println(\"b: \" + b);\n //char[] aChar = a.toCharArray();\n //char[] bChar = b.toCharArray();\n //Arrays.sort(aChar);\n //Arrays.sort(bChar);\n int count =0;\n for(int i=0;i<len/2;i++){\n int j = b.indexOf(String.valueOf(a.charAt(i)));\n if(j > -1){\n b.deleteCharAt(j); \n }else{\n count++;\n }\n }\n return count;\n }", "public static boolean areAnagrams(String firstWord, String secondWord) {\n\t\tif (firstWord.length() != secondWord.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tStringBuilder firstSequence = new StringBuilder(firstWord.toLowerCase());\n\t\tStringBuilder secondSequence = new StringBuilder(secondWord.toLowerCase());\n\t\t\n\t\tSort.quickSort(firstSequence);\n\t\tSort.quickSort(secondSequence);\n\t\n\t\tfor (int i = 0; i < firstSequence.length(); i++) {\n\t\t\tif (firstSequence.charAt(i) != secondSequence.charAt(i)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean checkAnagram(String s1, String s2) {\n if (s1.length() != s2.length()) {\n return false;\n }\n char[] stringArr1 = s1.toCharArray();\n char[] stringArr2 = s2.toCharArray();\n Arrays.sort(stringArr1);\n Arrays.sort(stringArr2);\n\n for (int i = 0; i < stringArr1.length; i++) {\n if (stringArr1[i] != stringArr1[i]) {\n return false;\n }\n }\n return true;\n }", "public static boolean isAnagram1(String s1, String s2) {\r\n int[] arr = new int[256]; //Number of Ascii Values\r\n\r\n for (int i = 0; i < s1.length(); i++) {\r\n arr[s1.charAt(i)]++;\r\n arr[s2.charAt(i)]--;\r\n }\r\n\r\n for (int i = 0; i < arr.length; i++) {\r\n if (arr[i] != 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n List<String> list2 = str2.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n return list1.equals(list2);\n }", "static int makingAnagrams(String s1, String s2){\n // Complete this function\n StringBuilder b = new StringBuilder(s2);\n int delCount =0;\n for(int i=0;i<s1.length();i++){\n int index = b.indexOf(String.valueOf(s1.charAt(i)));\n if(index == -1){\n delCount++;\n }else{\n b.deleteCharAt(index);\n } \n }\n return delCount + b.length();\n }", "public boolean isAnagram(String firstWord, String secondWord) {\n HashMap<Character, Integer> charactersNoOccurrences = new HashMap<Character, Integer>();\n\n //Put that stuff in the hash map.\n for (char character: firstWord.toCharArray()) {\n int currentNoOccurrences = charactersNoOccurrences.containsKey(character) ?\n charactersNoOccurrences.get(character) : 0;\n\n charactersNoOccurrences.put(character, currentNoOccurrences + 1);\n }\n\n //Go through the hash map now to and retrieve occurrences, we want to finish with an empty map.\n for (char character: secondWord.toCharArray()) {\n if (!charactersNoOccurrences.containsKey(character)) {\n return false;\n }\n\n int remainingNoOccurrences = charactersNoOccurrences.get(character) - 1;\n\n if (remainingNoOccurrences < 1) {\n charactersNoOccurrences.remove(character);\n } else {\n charactersNoOccurrences.put(character, remainingNoOccurrences);\n }\n }\n\n return charactersNoOccurrences.isEmpty();\n }", "public boolean isAnagram(String a, String b) {\n if (a.length() != b.length()) {\n return false;\n }\n\n HashMap<Character, Integer> aTable = new HashMap<>();\n\n //Store the counts of all the characters of the first string in a hashmap\n for (int i = 0; i < a.length(); i++) {\n Character currChar = a.charAt(i);\n if (aTable.containsKey(currChar)) {\n aTable.put(currChar, aTable.get(currChar) + 1);\n } else {\n aTable.put(currChar, 1);\n }\n }\n\n //Now iterate through the second string and decrement the count of the characters\n for (int j = 0; j < b.length(); j++) {\n Character currChar = b.charAt(j);\n if (!aTable.containsKey(currChar)) {\n return false;\n } else if (aTable.get(currChar) == 0) {\n return false;\n } else if (aTable.get(currChar) > 0) {\n aTable.put(currChar, aTable.get(currChar) - 1);\n }\n\n }\n\n return true;\n\n\n }", "@Test\n public void isAnagram() {\n\n Assert.assertEquals(true,Computation.isAnagram(\"read\",\"dear\"));\n Assert.assertEquals(false,Computation.isAnagram(\"read\",\"deard\"));\n Assert.assertEquals(false,Computation.isAnagram(\"read\",\"reaaad\"));\n Assert.assertEquals(false,Computation.isAnagram(\"readd\",\"reaad\"));\n }", "public static boolean isAnagram2(String word, String anagram) {\r\n\t\tchar[] charFromWord = word.toCharArray();\r\n\t\tchar[] charFromAnagram = anagram.toCharArray();\r\n\t\tArrays.sort(charFromWord);\r\n\t\tArrays.sort(charFromAnagram);\r\n\t\t\r\n\t\treturn Arrays.equals(charFromWord, charFromAnagram);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tAnagramCheck();\n\t\tSet<Character> se = new HashSet<Character>();\n\t\tSet<Character> se1 = new HashSet<Character>();\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer sb1 = new StringBuffer();\n\t\tString str =\"javav\";\n\t\t\n\t\tfor(int i =0; i <str.length();i++)\n\t\t{\n\t\t\tCharacter ch = str.charAt(i);\n\t\t\t\n\t\t\tif(!se.contains(ch))\n\t\t\t{\n\t\t\t\tse.add(ch);\n\t\t\t\tsb.append(ch);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tse1.add(ch);\n\t\t\t\tsb1.append(ch);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"The duplicates after removed \"+sb.toString());\n\t\t\n\t\tSystem.out.println(\"The duplicate item is \"+sb1.toString());\n\t}", "public boolean isAnagram(String s, String t) {\n HashMap<Character, Integer> map = new HashMap<>();\n\n // Return false if the strings are of different length\n if (s.length() != t.length()) {\n return false;\n }\n\n /**\n * Loop through the string and update the count in the hashmap in the following\n * way Increment the counter for the character from string1 Decrement the\n * counter for the character from string2\n */\n\n for (int i = 0; i < s.length(); i++) {\n map.put(s.charAt(i), map.getOrDefault(s.charAt(i), 0) + 1);\n map.put(t.charAt(i), map.getOrDefault(t.charAt(i), 0) - 1);\n }\n\n /**\n * Check if all characters in the hashmap as 0, if yes, return true, \n * else return false, as it isn't a valid anagram\n */\n\n for (Map.Entry mapElement : map.entrySet()) {\n\n if ((int) mapElement.getValue() != 0) {\n return false;\n }\n\n }\n\n return true;\n }", "public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) return false; // O(1)\n int[] charFrequency = new int[26]; // O(1)\n\n for (char c : s.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n charFrequency[index]++; // O(1)\n }\n\n for (char c : t.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n if (charFrequency[index] == 0) return false; // O(1)\n charFrequency[index]--; // O(1)\n }\n\n for (int i : charFrequency) { // O(26) -> O(1)\n if (i > 0) return false; // O(1)\n }\n\n return true; // O(1)\n }", "@Override\n\tpublic boolean checkAnagram(String firstString, String secondString) {\n\t\tchar[] characters = firstString.toCharArray();\n\t\tStringBuilder sbSecond = new StringBuilder(secondString);\n\n\t\tfor(char ch : characters){\n\t\t\tint index = sbSecond.indexOf(\"\" + ch);\n\t\t\tif(index != -1){\n\t\t\t\tsbSecond.deleteCharAt(index);\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean findStringAnagram(char[] str1Arr, char[] str2Arr) {\r\n\t\tif (str1Arr.length != str2Arr.length) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tArrays.sort(str1Arr);\r\n\t\t\tArrays.sort(str2Arr);\r\n\t\t\tfor (int i = 0; i < str1Arr.length; i++) {\r\n\t\t\t\tif (str1Arr[i] != str2Arr[i]) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "public static boolean IsAnagram(String word, String anagram) {\r\n\t\t//We ensure that the length are the same.\r\n\t\tif(word.length() != anagram.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tchar[] chars = word.toCharArray();\r\n\t\t\r\n\t\tfor(char c : chars) {\r\n\t\t\tint index = anagram.indexOf(c);\r\n\t\t\tif(index != -1) {\r\n\t\t\t\tanagram = anagram.substring(0, index) + anagram.substring(index +1, anagram.length());\r\n\t\t\t}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn anagram.isEmpty();\r\n\t}", "static boolean areAnagram(String sa, String sb) {\n\n // **** populate character arrays ****\n char[] aa = sa.toCharArray();\n char[] ab = sb.toCharArray();\n\n // **** sort character arrays ****\n Arrays.sort(aa);\n Arrays.sort(ab);\n\n // **** traverse arrays checking for mismatches ****\n for (int i = 0; i < aa.length; i++) {\n if (aa[i] != ab[i]) {\n return false;\n }\n }\n\n // **** strings are anagrams ****\n return true;\n }", "public static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=\"xheixhixhi\";\n\t\tint x=0;\n\t\tfor(int i=0;i<str.length();i++)\n\t\t{\n\t\t\tif(str.charAt(i)=='x')\n\t\t\t\tx++;\n\t\t\n\t\t\telse\n\t\t\t\tsb.append(str.charAt(i));\n\t\t}\n\t\tfor(int i=0;i<x;i++)\n\t\t\tsb.append('x');\n\t\tSystem.out.println(sb);\n\t\t\n\t\tString str1=\"xxxyyy\";\n\t\tStringBuffer sb1=new StringBuffer(str1);\n\t\tSystem.out.println(sb1.toString());\n\t\tfor(int i=0;i<(str1.length());i++)\n\t\t{\n\t\t\tif(sb1.charAt(i)==sb1.charAt(i+1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb1.insert(++i,'*');\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb1.toString());\n\t\t\n\t\t//anagram\n\t\tString s1=\"niveda\";\n\t\tString s2=\"Nivedas\";\n\t\tString s4=s2.toLowerCase();\n\t\tchar[] s3=s1.toCharArray();\n\t\tchar[] s5=s4.toCharArray();\n\t\tArrays.sort(s3);\n\t\tArrays.sort(s5);\n\t\tboolean result=Arrays.equals(s3, s5);\n\t\tSystem.out.println(\"result is \"+result);\n\t\t\n\t\t//check all digits\n\t\tString s=\"09779\";\n\t\tif (s.isEmpty())\n\t\t\tSystem.out.println(\"empty\");;\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\tint temp = s.charAt(i) - (int)'0';\n\t\tSystem.out.println(temp);\n\t\tif (temp < 0 || temp > 9)\n\t\t\tSystem.out.println(\"false\");\n\t\t\n\t\t}\n\n\t\tSystem.out.println(\"true\");\n\n\t\t//reverse a string\n\t\tString s6=\"niveda is\";\n\t\tString sb4=new StringBuffer(s6).reverse().toString();\n\t\tSystem.out.println(sb4);\n\t\t\n\t\tStringBuilder s7=new StringBuilder();\n\t\tchar[] c1=s6.toCharArray();\n\t\tfor(int i=c1.length-1;i>=0;i--)\n\t\t{\n\t\t\ts7.append(c1[i]);\n\t\t}\n\t\tSystem.out.println(s7);\n\t\t\n\t\t//replace with space\n\t\tString str5=\"xxx yyy\";\n\t\tStringBuilder sb6=new StringBuilder(str5);\n\t\tSystem.out.println(sb6.toString());\n\t\tfor(int i=0;i<(str5.length());i++)\n\t\t{\n\t\t\tif(sb6.charAt(i)==32)\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb6.replace(i,i+1,\"%20\");\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb6.toString());\n\t\t\n\t\tString sentence=\"my name is niveda\";\n\t\tList< String> words = Arrays.asList(sentence.split(\"\\\\s\")); \n\t\tCollections.reverse(words); \n\t\t\n\t\tSystem.out.println(words);\n\t\tStringBuilder sb8 = new StringBuilder(sentence.length()); \n\t\t\n\t\tfor (int i = 0; i <=words.size() - 1; i++)\n\t\t{ \n\t\t\tsb8.append(words.get(i)); \n\t\t\t\n\t\tsb8.append(' ');\n\t\t}\n\t\tSystem.out.println(sb8.toString().trim());\n\t\t\n\t\tStringBuffer sb9=new StringBuffer(sentence);\n\t\tString sb10=sb9.reverse().toString();\n\t\tSystem.out.println(\"old \"+sb10.toString().trim());\n\t\t\n\t\tStringBuilder reverse = new StringBuilder(); \n\t\tString[] sa = sentence.trim().split(\"\\\\s\"); \n\t\tString newest=\"\";\n\t\tfor (int i = sa.length - 1; i >= 0; i--) \n\t\t{ \n\t\t\tString newword=sa[i]; \n\t\t\t//reverse.append(' '); \n\t\t\tString newstring=\"\";\n\t\t\tfor(int n=newword.length()-1;n>=0;n--)\n\t\t\t{\n\t\t\t\tnewstring=newstring+newword.charAt(n);\n\t\t\n\t\t\t}\n\t\t\tnewest=newest+newstring+\" \";\n\t\t} \n\t\tSystem.out.println( reverse.toString().trim());\n\t\tSystem.out.println(\"newest \"+newest);\n\t\tSystem.out.println(\"number of words in the string \"+sa.length);\n\n\t\t\n\t\t//reverse chars in the word in place\n\t\tString s11=\"my name is niveda\";\n\t\tString reversestring=\"\";\n\t\tString[] c11=s11.trim().split(\"\\\\s\");\n\t\tfor(int k=0;k<c11.length;k++)\n\t\t{\n\t\t\tString word=c11[k];\n\t\t\tString reverseword=\"\";\n\t\t\tfor(int m=word.length()-1;m>=0;m--)\n\t\t\t{\n\t\t\t\t\n\t\t\treverseword=reverseword+word.charAt(m);\n\t\t\t}\n\t\t\treversestring=reversestring+reverseword+\" \";\n\t\t}\n\t\t\n\t\tSystem.out.println( reversestring);\n\t}", "public static boolean areAnagramsSlow(String a, String b) {\n\t\tif (a.length() != b.length()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tboolean areAnagrams = false;\n\t\t\n\t\tStringBuilder secondWord = new StringBuilder(b.toLowerCase());\n\n\t\tfor(int i = 0; i < a.length(); i++) {\n\t\t\tchar firstChar = a.charAt(i);\n\n\t\t\tfor(int j = 0; j < secondWord.length(); j++) {\n\t\t\t\tchar secondChar = secondWord.charAt(j);\n\t\t\t\tif (firstChar == secondChar) {\n\t\t\t\t\tsecondWord.deleteCharAt(j);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (secondWord.length() == 0) {\n\t\t\tareAnagrams = true;\n\t\t}\n\t\t\n\t\treturn areAnagrams;\n\t}", "public boolean isAnagram(String s, String t) {\n if(s.length() != t.length()) return false;\n char[] chs = s.toCharArray();\n char[] cht = t.toCharArray();\n Arrays.sort(chs);\n Arrays.sort(cht);\n String ss = String.valueOf(chs);\n String tt = String.valueOf(cht);\n return ss.equals(tt);\n }", "public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) {\n return false;\n }\n char[] sChars = s.toCharArray();\n Arrays.sort(sChars);\n char[] tChars = t.toCharArray();\n Arrays.sort(tChars);\n\n return new String(sChars).equals(new String(tChars));\n }", "public static boolean isAnagram(String s, String t) {\n int a = 0;\n for(int i=0;i<s.length();i++){\n a = a^s.charAt(i);\n }\n for(int i=0;i<t.length();i++){\n a = a^t.charAt(i);\n }\n return a == 0;\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str1 =\"army\";\n\t\tString str2 = \"mary\";\n\t\t\n\t\tSystem.out.println(isAnagram2(str1,str2));\n\n\t}", "public static boolean isAnagram2(String s1, String s2) {\r\n List<Character> list = new ArrayList<>();\r\n\r\n for (char c : s1.toCharArray()) {\r\n list.add(c);\r\n }\r\n\r\n for (char c : s2.toCharArray()) {\r\n list.remove(new Character(c));\r\n }\r\n\r\n return (list.isEmpty());\r\n }", "public static boolean checkForAnagram(final String a, final String b) {\n boolean isAnagram = false;\n\n if(a == null || b == null){\n throw new IllegalArgumentException(\"Invalid input\");\n }\n if(a.length() != b.length()){\n return isAnagram;\n }\n char [] lowerCaseA = a.trim().toLowerCase().toCharArray();\n String upperCaseB= b.trim().toLowerCase();\n boolean check =true;\n for(int i =0; i<lowerCaseA.length ; i++){\n Character c = lowerCaseA[i];\n int n = c;\n if(c >=95 && c <=122){\n if(! upperCaseB.contains(c.toString())){\n check=false;\n break;\n }\n }\n else {\n continue;\n }\n }\n if(check){\n isAnagram =true;\n }\n\n return isAnagram;\n }", "public static void main(String[] args) {\n\t\tString str = \"Nitin\";\n\t\tSystem.out.println(str.indexOf(\"i\"));\n\t\tSystem.out.println(str.substring(0,3));\n\t\tboolean s =str.endsWith(\"i\");\n\t\tSystem.out.println(s);\n\t\t//change to char array\n\t\tchar[] arr = str.toCharArray();\n\t\t//intialize another array of same length\n\t\tchar[] arr_new = new char[str.length()];\n\t\t//now reverse the string and store into new array\n\t\tint j = 0;\n\t\tfor(int i =str.length()-1;i>=0;i--) {\n\t\t\tarr_new[j++] = arr[i];\n\t\t\t\n\t\t}\n\t\t//now convert the new array into String\n\t\tString str_new = new String(arr_new);\n\t\t\n\t\t//Logic to compare the strings\n\t\tif(str.equalsIgnoreCase(str_new)) {\n\t\t\tSystem.out.print(\"Anagram\" + str);}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not Anagram\" + str);\n\t\t\t\t\n\t\t\t}\n\t\t}", "public static boolean isAnagram(String str, String str1) {\n\t\tif (str.length() != str1.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tchar[] strChArr = str.toCharArray();\n\t\tchar[] str1ChArr = str1.toCharArray();\n\t\t\n//\t\tSystem.out.println(Arrays.toString(strChArr));\n//\t\tSystem.out.println(Arrays.toString(str1ChArr));\n\t\t\n\t\tArrays.sort(strChArr);\n\t\tArrays.sort(str1ChArr);\n\t\t\n//\t\tSystem.out.println(Arrays.toString(strChArr));\n//\t\tSystem.out.println(Arrays.toString(str1ChArr));\n\t\t\n\n//\t\tfor (int i = 0; i < strChArr.length; i++) {\n//\t\t\tif(strChArr[i] != str1ChArr[i]) {\n//\t\t\t\treturn false;\n//\t\t\t}\n//\t\t}\n\t\t\n//\t\treturn true;\n\t\t\n\t\treturn Arrays.equals(strChArr, str1ChArr);\n\t}", "public boolean isAnagram1(String s, String t) {\n if (s.length() != t.length()) return false;\n Function<String, Integer> countCode = str -> {\n int code = 0;\n for (int i = 0; i < str.length(); i++)\n code ^= str.charAt(i);\n return code;\n };\n return countCode.apply(s).equals(countCode.apply(t));\n }", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "public boolean isAnagrams(String inputA, String inputB) {\n String one = inputA.toLowerCase();\n String two = inputB.toLowerCase();\n return sameLength(one, two) && sameLetters(one, two) && sameLetterCounts(one, two);\n }", "public static void main(String[] args) {\n\t\n\tString a = \"aabbbc\", b= \"cabbbac\";\n\t// a = abc, b=cab\n\t//we will remove all dublicated values from \"a\"\n\tString a1 = \"\"; //store all the non duplicated values from \"a\"\n\t\n\tfor (int j=0; j<a.length();j++) //this method is with nested loop\n\tfor (int i=0; i<a.length();i++) {\n\t\tif (!a1.contains(a.substring(j, j+1))) {\n\t\t\ta1 += a.substring(j, j+1);\n\t\t}\n\t\t\t\n\t}\n\tSystem.out.println(a1);\n\t//we will remove all duplicated values from \"b\"\n\tString b1 = \"\"; //store all the non duplicated values from \"b\"\n\tfor(int i=0; i<b.length();i++) { //this is with simple loop\n\t\tif(!b1.contains(b.substring(i, i+1))) {\n\t\t\t // \"\"+b.charAt(i)\n\t\t\tb1 += b.substring(i, i+1);\n\t\t\t// \"\"+b.charAt(i);\n\t\t}\n\t}\n\tSystem.out.println(b1);\n\t\n\t\n\t//a1 = \"acb\", b1 = \"cab\"\n\tchar[] ch1 = a1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch1));\n\t\n\tchar[] ch2 = b1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\tArrays.sort(ch1);\n\tArrays.sort(ch2);\n\t\n\tSystem.out.println(\"========================\");\n\tSystem.out.println(Arrays.toString(ch1));\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\t\n\tString str1 = Arrays.toString(ch1);\n\tString str2 = Arrays.toString(ch2);\n\t\n\tif(str1.equals(str2)) {\n\t\tSystem.out.println(\"true, they are same letters\");\n\t}else {\n\t\tSystem.out.println(\"false, they are contain different letters\");\n\t}\n\t\n\t\n\t// solution 2:\n\t\t\t String Str1 = \"cccccaaaabbbbccc\" , Str2 = \"cccaaabbb\";\n\t\t\t \n\t\t\t Str1 = new TreeSet<String>( Arrays.asList( Str1.split(\"\"))).toString();\n\t\t\t Str2 = new TreeSet<String>( Arrays.asList( Str2.split(\"\"))).toString();\n\t\t\t \n\t\t\t System.out.println(Str1.equals(Str2));\n\t\t\t\t \n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n}", "private static boolean isAnagram(String str, String anagram) {\n\n\t\tchar[] string = str.toCharArray();\n\t\tchar[] anag = anagram.toCharArray();\n\n\t\tArrays.sort(string);\n\t\tArrays.sort(anag);\n\n\t\treturn Arrays.equals(string, anag);\n\n\t}", "static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n HashMap<String, Integer> map = new HashMap<>();\n\n int length = s.length();\n int wordSize = 1;\n while (wordSize != length) {\n for(int i = 0; i <= length-wordSize; i++) {\n char[] charArray = s.substring(i, i+wordSize).toCharArray();\n Arrays.sort(charArray);\n String sortedWord = new String(charArray);\n Integer num = map.get(sortedWord);\n if(num == null)\n map.put(sortedWord, 1);\n else {\n map.put(sortedWord, num+1);\n anagramCount += num;\n }\n }\n wordSize++;\n }\n\n return anagramCount;\n }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < s.length(); i++) {\n for (int k = i + 1; k <= s.length(); k++) {\n String sub = s.substring(i, k);\n System.out.println(sub);\n sub = new String(sort(sub.toCharArray()));\n int value = map.getOrDefault(sub, 0);\n if(value > 0) {\n anagramCount = anagramCount + value;\n }\n map.put(sub, value+1);\n\n }\n }\n return anagramCount;\n }", "public static void main(String[] args) {\n// System.out.println(anagram1());\n// System.out.println(anagram2());\n// System.out.println(anagram3());\n System.out.println(anagram4());\n\n }", "public boolean checkForAnagrams(String inp) {\n return (new StringBuffer(inp).reverse().toString().equals(inp));\n }", "public List<Integer> findAnagrams(String s, String p) {\n //simple case\n //s1 is within s2\n List<Integer> result= new ArrayList<Integer>();\n if(s.length()<p.length())\n return result;\n int[] p_charset = new int[26];\n int[] s_charset= new int[26];\n for(int i=0;i<p.length();i++){\n int index_p= p.charAt(i)-'a';\n p_charset[index_p]++;\n int index_s= s.charAt(i)-'a';\n s_charset[index_s]++;\n }\n\n int i=0;\n for(;i<s.length()-p.length();i++){\n if(charsetEquals(s_charset,p_charset))\n result.add(i);\n int index_old= s.charAt(i)-'a';\n int index_new= s.charAt(i+p.length())-'a';\n s_charset[index_old]--;\n s_charset[index_new]++;\n }\n if(charsetEquals(s_charset,p_charset))\n result.add(i);\n\n return result;\n }", "public static ArrayList<Integer> findAnagrams(String s, String p) {\r\n\t \t \r\n\t \t //write your code here\r\n\t\t if(s.length()<p.length()) {\r\n\t\t\t ArrayList<Integer> arr = new ArrayList<>();\r\n\t\t\t return arr;\r\n\t\t }\r\n\t\t ArrayList<Integer> result = new ArrayList<>();\r\n\t\t HashMap<Character,Integer> P = new HashMap<>();\r\n\t\t HashMap<Character,Integer> H = new HashMap<>();\r\n\t\t \r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = p.charAt(i);\r\n\t\t\t if(!P.containsKey(ch)) {\r\n\t\t\t\t P.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t P.put(ch,P.get(ch)+1);\r\n\t\t\t }\r\n\t\t }\r\n\t\t int start =0;\r\n\t\t int end=0;\r\n\t\t int mcount=0;\r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = s.charAt(i);\r\n\t\t\t if(!H.containsKey(ch)) {\r\n\t\t\t\t H.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t H.put(ch,H.get(ch)+1);\r\n\t\t\t }\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t if(P.get(ch)>=H.get(ch)) {\r\n\t\t\t\t\t mcount++;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t end=i;\r\n\t\t }\r\n\t\t if(mcount==p.length()) {\r\n\t\t\t result.add(start);\r\n\t\t }\r\n\t\t while(end<s.length()-1) {\r\n\t\t\t char ch=s.charAt(start);\r\n\t\t\t int hfreq = H.get(ch)-1;\r\n\t\t\t H.put(ch,hfreq);\r\n\t\t\t if(H.get(ch)==0) {\r\n\t\t\t\t H.remove(ch);\r\n\t\t\t }\r\n\t\t\t int pfreq=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreq=P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreq<pfreq) {\r\n\t\t\t\t mcount--;\r\n\t\t\t }\r\n\t\t\t ch=s.charAt(end+1);\r\n\t\t\t int hfreqend=0;\r\n\t\t\t if(H.containsKey(ch)) {\r\n\t\t\t\t hfreqend = H.get(ch);\r\n\t\t\t }\r\n\t\t\t hfreqend++;\r\n\t\t\t H.put(ch, hfreqend);\r\n\t\t\t int pfreqend=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreqend = P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreqend<=pfreqend) {\r\n\t\t\t\t mcount++;\r\n\t\t\t }\r\n\t\t\t start++;\r\n\t\t\t end++;\r\n\t\t\t if(mcount==p.length()) {\r\n\t\t\t\t result.add(start);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\t return result;\r\n\t\t \r\n\t \t \r\n\t }", "@Test\n public void findAnagramWord() throws IOException {\n \tFileManager fileManager = new AnagramTextFileManager(\"src/test/resources/sample.txt\");\n \tfileManager.find();\n \tassertEquals(2, fileManager.getWordsFound().size());\n }", "private static boolean isAnagram2(String str, String anagram) {\n\n\t\tchar[] chararray = str.toCharArray();\n\n\t\tStringBuilder sb = new StringBuilder(anagram);\n\n\t\tfor (char ch : chararray) {\n\t\t\t\n\t\t\tint index = sb.indexOf(\"\" + ch);\n\n\t\t\tif (index != -1) {\n\n\t\t\t\tsb.deleteCharAt(index);\n\t\t\t} else {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn sb.length() == 0 ? true : false;\n\t}", "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "public static void main(String[] args) {\n\tScanner scanner=new Scanner(System.in);\n\tSystem.out.println(\"enter the first string\");\n\tString firstString=scanner.nextLine();\n\tSystem.out.println(\"enter the second string\");\n\tString secondString=scanner.nextLine();\n\t/*\n\t * function call\n\t * to check the anagram or not\n\t * \n\t */\n\tUtility.isAnagram(firstString, secondString);\n\tscanner.close();\n}", "static int sherlockAndAnagrams(String s){\n // Complete this function\n ArrayList<String> substringArray = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n for(int j=i+1;j<s.length()+1;j++){\n substringArray.add(s.substring(i,j));\n }\n }\n int count = countAnagrams(substringArray);\n return count;\n }", "public List<List<String>> anagrams(List<String> words) {\n HashMap<String, List<String>> wordsByAnagram = new HashMap<>();\n\n for (String word: words) {\n char[] sortedCharArray = word.toCharArray();\n Arrays.sort(sortedCharArray);\n\n String anagram = String.valueOf(sortedCharArray);\n\n if (wordsByAnagram.containsKey(anagram)) {\n List<String> anagrams = wordsByAnagram.get(anagram);\n anagrams.add(word);\n } else {\n ArrayList<String> anagrams = new ArrayList<>();\n anagrams.add(word);\n wordsByAnagram.put(anagram, anagrams);\n }\n }\n\n ArrayList<List<String>> result = new ArrayList<>();\n\n for (List<String> anagrams: wordsByAnagram.values()) {\n result.add(anagrams);\n }\n\n return result;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String input1 = scanner.next();\n String input2 = scanner.next();\n\n scanner.close();\n boolean ret = isAnagram(input1, input2);\n System.out.println((ret) ? \"Anagrams\" : \"NotAnagrams\");\n }", "static int sherlockAndAnagrams(String s) {\n\n // **** initialize count of anagrams ****\n int count = 0;\n\n // **** loop once per grouping of characters [1 : s.length() - 1] ****\n for (int g = 1; g < s.length(); g++) {\n\n // **** generate the base sub string ****\n for (int i = 0; i < s.length() - g; i++) {\n\n // **** starting string ****\n String bs = s.substring(i, i + g);\n\n // **** generate sub strings ****\n for (int j = i + 1; j <= s.length() - g; j++) {\n\n // **** generate current sub string ****\n String cs = s.substring(j, j + g);\n\n // **** check if anagram ****\n if (areAnagram(bs, cs)) {\n count++;\n }\n }\n }\n }\n\n // **** count of anagrams ****\n return count;\n }", "public boolean isAPermutation(String st1, String st2) {\n\t\tif(st1.length() != st2.length() || st1.length() == 0 || st2.length() == 0) return false;\n\t\t\n\t\tHashMap<Character, Integer> cc1 = charactersCount(st1);\n\t\tHashMap<Character, Integer> cc2 = charactersCount(st2);\n\t\t\n\t\treturn sameCharactersCount(cc1, cc2);\n\t}", "public boolean containsAnagram(String s, String t) {\n\t\tint[] tmap = new int[26];\n\t\tfor (char c : t.toCharArray())\n\t\t\ttmap[c - 'A']++;\n\t\tint p1 = 0, p2 = 0;\n\t\tint minimumLen = Integer.MAX_VALUE;\n\t\tint expandedLength = t.length();\n\t\twhile (p1 < s.length() && p1 < s.length()) {\n\t\t\tif (tmap[s.charAt(p2++) - 'A']-- > 0) expandedLength--;\n\t\t\twhile (expandedLength == 0) {\n\t\t\t\tif (p2 - p1 < minimumLen) {\n\t\t\t\t\tminimumLen = p2 - p1;\n\t\t\t\t\tif (minimumLen == t.length()) return true;\n\t\t\t\t}\n\t\t\t\tif (p1 >= s.length()) break;\n\t\t\t\t// Exists in t.\n\t\t\t\tif (tmap[s.charAt(p1++) - 'A']++ == 0) expandedLength++;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean areAnagramsUsingTwoFrequencyArrays(String firstString, String secondString) {\n if (firstString.length() != secondString.length()) {\n return false;\n }\n\n int[] f1 = new int[256];\n int[] f2 = new int[256];\n\n for (int i = 0; i < firstString.length(); i++) {\n f1[firstString.charAt(i)]++;\n }\n for (int i = 0; i < secondString.length(); i++) {\n f2[secondString.charAt(i)]++;\n }\n\n for (int i = 0; i < f1.length; i++) {\n for (int j = 0; j < f2.length; j++) {\n if (f1[i] != f2[i]) {\n return false;\n }\n }\n\n }\n return true;\n }", "public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }", "private int alternateSolution(String[] words){\n String[] MORSE = new String[]{\".-\",\"-...\",\"-.-.\",\"-..\",\".\",\"..-.\",\"--.\",\n \"....\",\"..\",\".---\",\"-.-\",\".-..\",\"--\",\"-.\",\n \"---\",\".--.\",\"--.-\",\".-.\",\"...\",\"-\",\"..-\",\n \"...-\",\".--\",\"-..-\",\"-.--\",\"--..\"};\n\n HashSet<String> seen = new HashSet<>();\n for (String word: words) {\n StringBuilder code = new StringBuilder();\n for (char c: word.toCharArray())\n code.append(MORSE[c - 'a']);\n seen.add(code.toString());\n }\n\n return seen.size();\n }", "public static void main(String[] args) {\n\t\tString[] strs = {\"abc\",\"cba\",\"aaa\",\"aas\",\"saa\"};\r\n\t\tSystem.out.println(anagrams(strs));\r\n\t}", "public static void main(String[] args) {\n\t\tAnagrams q = new Anagrams();\r\n\t\tString s1 = \"abcd\";\r\n\t\tString s2 = \"acbd\";\r\n\t\tString s3 = \"bcad\";\r\n\t\tString s4 = \"acb\";\r\n\t\tString s5 = \"abc\";\r\n\t\tString s6 = \"abd\";\r\n\t\tString s7 = \"abdc\";\r\n\t\tString s8 = \"ac\";\r\n\t\t//ArrayList<String> result = new ArrayList<String>();\r\n\t\tString[] strs = {s1,s2,s3,s4,s5,s6,s7,s8};\r\n\r\n\t\tList<String> list = q.anagrams(strs);\r\n\t\t//char[] charArray = {'h','e','l','l','o'};\r\n\t\tfor(String s:list){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t//System.out.println(charArray.toString());\r\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String initialString = \"Dong-ding-dong\";\n String secondaryString = in.nextLine();\n\n // Stage 1 : count the letters\n int letterCounter = 0;\n for (int i = 0; i < initialString.length(); i++) {\n if (Character.isLetter(initialString.charAt(i))) {\n letterCounter++;\n }\n }\n System.out.println(\"Initial string contains \" + letterCounter + \" letters.\");\n\n // Stage 2: check if hardcoded string and inputed string are equal ignoring the case\n System.out.println(\"Are the two strings equal? 0 if yes : \" + initialString.compareToIgnoreCase(secondaryString));\n\n // Stage 3: show initial string as all caps and all lowercase\n System.out.println(initialString.toUpperCase());\n System.out.println(initialString.toLowerCase());\n\n // Stage 4: show all dongdexes\n for(int i = -1; i <= initialString.length();){\n i = initialString.toLowerCase().indexOf(\"dong\", i+1);\n if(i != -1){\n System.out.println(i);\n }\n else{\n break;\n }\n }\n\n // Stage 5: replace all words \"dong\" with \"bong\"\n initialString = initialString.toLowerCase().replaceAll(\"dong\",\"bong\");\n System.out.println(initialString);\n\n // Stage 6: search for duplicated words and show their count\n String[] words = initialString.toLowerCase().split(\"-\");\n int counter = 0;\n for(String word : words){\n if(word != \"\"){\n for(int i = 0; i < words.length; i++){\n if(word.matches(words[i])){\n counter++;\n words[i] = \"\";\n }\n }\n System.out.println(\"The word \" + word + \" is repeated \" + counter + \" times.\");\n word = \"\";\n counter = 0;\n }\n }\n }", "private static void compare(Graph g, String word1, String word2) {\n\t\n\t\tint m =0; int n =0;\n\t\twhile(m < word1.length() && n < word2.length()) {\n\t\t\n\t\t\tif(word1.charAt(m) != word2.charAt(n)) {\n\t\t\n\t\t\t\t// Add edge from m to n\n\t\t\t\tif(!g.isConnected(word1.charAt(m)-'a', word2.charAt(n) -'a')) {\n\t\t\t\t\tg.addEdge(word1.charAt(m)-'a', word2.charAt(n) -'a');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tm++;n++;\n\t\t}\n\t}", "public ArrayList<String> anagrams(String[] strs) {\n HashMap<String, ArrayList<String>> rec=new HashMap<String,ArrayList<String>>();\n ArrayList<String> ans=new ArrayList<String>();\n if(strs.length==0)return ans;\n for(int i=0;i<strs.length;i++){\n char[] key=strs[i].toCharArray();\n Arrays.sort(key);\n String newkey=new String(key);\n if(rec.containsKey(newkey)){\n rec.get(newkey).add(strs[i]);\n }\n else{\n ArrayList<String> ad=new ArrayList<String>();\n ad.add(strs[i]);\n rec.put(newkey,ad);\n }\n }\n for(ArrayList<String> value:rec.values()){\n if(value.size()>1)ans.addAll(value);\n }\n return ans;\n }", "public static void main(String[] args) {\n int validPhrases = 0;\n\n // get filepath for the puzzle input\n System.out.print(\"Please provide the filepath of the text document containing the puzzle input: \");\n String filePath = new Scanner(System.in).nextLine();\n\n try {\n // attempt to read each line in the file into a list\n List<String> lines = Files.readAllLines(Paths.get(filePath));\n\n /// PART 1\n for (String line : lines) {\n List<String> usedWords = new ArrayList<>();\n boolean validPassphrase = true;\n\n for (String word : line.split(\" \")) {\n if (usedWords.contains(word)) {\n validPassphrase = false;\n break;\n } else {\n usedWords.add(word);\n }\n }\n\n if (validPassphrase) {\n validPhrases++;\n }\n }\n\n System.out.println(\"The solution to part 1 is: \" + validPhrases);\n validPhrases = 0;\n\n /// PART 2\n for (String line : lines) {\n // this time around each word will be a dictionary mapping every character in the word, to how many\n // times that character is used in the word\n List<Map<Character, Integer>> usedWords = new ArrayList<>();\n boolean validPassphrase = true;\n\n for (String word : line.split(\" \")) {\n Map<Character, Integer> charMap = new HashMap<>();\n for (char c : word.toCharArray()) {\n // if the character has already been used, increment it's value, otherwise add it to the dict\n if (charMap.containsKey(c)) {\n charMap.put(c, charMap.get(c) + 1);\n } else {\n charMap.put(c, 1);\n }\n }\n\n // now we check if the word we're looking at is an anagram of any we've seen before on this line\n for (Map<Character, Integer> usedWord : usedWords) {\n // no need to check characters if the char maps are a different size\n if (usedWord.keySet().size() == charMap.keySet().size()) {\n boolean hasDifferingValues = false;\n for (char c : charMap.keySet()) {\n // we can short circuit checking every single character by breaking as soon as we see\n // any difference between the two words\n if (!usedWord.containsKey(c) || usedWord.get(c) != charMap.get(c)) {\n hasDifferingValues = true;\n break;\n }\n }\n\n if (!hasDifferingValues) {\n validPassphrase = false;\n break;\n }\n }\n }\n\n // we don't need to check the rest of the words if we already know the line is invalid\n if (!validPassphrase)\n break;\n usedWords.add(charMap);\n }\n\n if (validPassphrase) {\n validPhrases++;\n }\n }\n\n System.out.println(\"The solution to part 2 is: \" + validPhrases);\n } catch (Exception ex) {\n System.out.println(\"An error occurred attempting to read your input file.\");\n }\n }", "public static void main(String[] args) {\n\t\tLinkedList<String> temp = new LinkedList<String>();\n\t\tboolean anagram;\n\t\tint count = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter two words: \");\n\t\twhile(sc.hasNext()){\n\t\t\ttemp.add( sc.next() );\n\t\t\tcount++;\n\t\t\tif(count==2)break;\n\t\t}\n\t\tsc.close();\n\t\tanagram = anagramWord(temp.peekFirst(), temp.peekLast());\n\t\tif(anagram) System.out.println(\"The word \\\"\"+temp.peekFirst()+\"\\\" and \\\"\"+temp.peekLast()\n\t\t\t\t\t\t\t\t\t +\"\\\" are Anagram.\");\n\t\telse System.out.println(\"The word \\\"\"+temp.peekFirst()+\"\\\" and \\\"\"+temp.peekLast()\n\t\t\t\t\t\t\t +\"\\\" are not Anagram.\");\n }", "private static boolean isEnglishAlphabetPermutation(String str1, String str2) {\r\n if (!validate(str1, str2)) {\r\n return false;\r\n }\r\n if (str1.isEmpty() && str2.isEmpty()) { // simple case\r\n return true;\r\n }\r\n str1 = str1.toLowerCase();\r\n str2 = str2.toLowerCase();\r\n\r\n // we can use array instead of hash map\r\n // because we definitely know amount of characters\r\n int[] counter = new int[CHARS_AMOUNT];\r\n int startCode = Character.codePointAt(\"a\", 0);\r\n for (int i = 0; i < str1.length(); i++) {\r\n int idx = str1.codePointAt(i) - startCode;\r\n if (idx < 0 || idx >= CHARS_AMOUNT) {\r\n throw new IllegalArgumentException(\"Unsupported character.\");\r\n }\r\n counter[idx]++;\r\n }\r\n // no need to create another array for checking\r\n for (int i = 0; i < str2.length(); i++) {\r\n int idx = str2.codePointAt(i) - startCode;\r\n if (idx < 0 || idx >= CHARS_AMOUNT) {\r\n throw new IllegalArgumentException(\"Unsupported character.\");\r\n }\r\n int checkValue = --counter[idx];\r\n if (checkValue < 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "static int sherlockAndAnagrams(String s) {\n int total = 0;\n for (int width = 1; width <= s.length() - 1; width++) {\n\n for(int k = 0 ;k <= s.length() - width; k++){\n\n String sub = s.substring(k, k + width);\n\n int[] subFreq = frequenciesOf(sub);\n for (int j = k + 1; j <= s.length() - width; j++) {\n String target = s.substring(j, j + width);\n if (areAnagrams(subFreq,frequenciesOf(target))) total = total + 1;\n }\n }\n }\n return total;\n }", "public ArrayList<ArrayList<Integer>> anagrams(final List<String> a) \n {\n //The idea here is simple we can make sure two strings are anagrams if we sort them and then check \n HashMap<String,ArrayList<Integer>> map=new HashMap<>();\n for(int i=0;i<a.size();i++)\n {\n char c[]=a.get(i).toCharArray();//pick every String\n Arrays.sort(c);//sort the string\n String s=new String(c);\n ArrayList<Integer> b;\n if(map.containsKey(s))//put its relative index in the HashMap\n {\n b=map.get(s);\n b.add(i+1);\n map.put(s,b);\n }\n else\n {\n b=new ArrayList<>();\n b.add(i+1);\n map.put(s,b);\n }\n }\n //Add the values of HashMap to ArrayList\n ArrayList<ArrayList<Integer>> ans=new ArrayList<>();\n for(Map.Entry<String,ArrayList<Integer>> it:map.entrySet())\n {\n ans.add(it.getValue());\n }\n \n return ans;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner info = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the phrase:\");\r\n\t\tString sentence = info.nextLine();\r\n\t\t\r\n\t\tsentence = sentence.trim().toUpperCase();\r\n\t\t\r\n\t\tfor (int i = 0; i < sentence.length(); i++) {\r\n\t\t\tif (sentence.charAt(i) <'A' || sentence.charAt(i) > 'Z' ) {\r\n\t\t\t\tsentence = sentence.replace(\"\"+sentence.charAt(i), \"/\");\r\n//\t\t\t\tSystem.out.println(sentence);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString[] word = sentence.split(\"/\") ;\r\n\t\t\r\n\t\tint total = 0;\r\n\t\tif (word.length < 1) {\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\tHashMap hMap = new HashMap();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (word[0].length() > 0) {\r\n\t\t\t\thMap.put(word[0].length(), 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < word.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\tif (word[i].length() == word[j].length()) {\r\n\t\t\t\t\t\tint cnt = (int) hMap.get(word[i].length());\r\n\t//\t\t\t\t\tSystem.out.println(\"cnt==>\"+cnt);\r\n\t\t\t\t\t\thMap.put(word[i].length(),++cnt);\r\n\t\t\t\t\t\t\t\r\n\t//\t\t\t\t\tSystem.out.println(word[i].length()+\"==>\"+hMap.get(word[i].length()));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (j == (i-1)){\r\n\t\t\t\t\t\t\thMap.put(word[i].length(), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSet<Integer> keys1 = hMap.keySet();\r\n\t\r\n\t\t\tfor(int key:keys1) {\r\n\t\t\t\tif (key !=0) {\r\n\t\t\t\t\tSystem.out.println(hMap.get(key)+\" \"+key +\" letter words\");\r\n\t\t\t\t\ttotal += (int)hMap.get(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(total+\" total words\");\r\n\t\t\r\n\t}", "public boolean allUnique(String word) {\n if(word == null || word.length() <= 1) {\n return false;\n }\n char[] array = word.toCharArray();\n int[] alphabet = new int[8];\n for (char c : array) {\n int bitindex = c;\n int row = bitindex / 32;\n int col = bitindex % 32;\n if ((alphabet[row] & (1 << col)) != 0) {\n return false;\n } else {\n alphabet[row] = alphabet[row] | (1 << col);\n }\n }\n return true;\n }", "public static List<String> getAnagrams(List<String> strings)\n {\n /*Each character 'a'-'z' can be mapped to the nth prime number, where n is the index of\n the character in the alphabet. E.g. 'a': prime(0)=2, 'b': prime(1)=3, 'c': prime(2)=5, etc.\n Compute the product of the prime number mappings of the characters in s. Anagrams will have\n the same character product. Thus we can use the product as a key to a set of anagrams.*/\n\n Map<Long, Set<String>> map = new HashMap<Long, Set<String>>();\n\n for (String s : strings)\n {\n long prod = 1;\n for (char c : s.toCharArray())\n {\n prod *= (long) getCharToPrimeMap().get(c);\n }\n if (!map.containsKey(prod))\n {\n /*Key-value pair doesn't exist, so for the new key, create a new HashSet instance\n * for the new word (not yet an anagram match)*/\n map.put(prod, new HashSet<String>());\n }\n map.get(prod).add(s);\n }\n\n /*Add only the sets in the mapping with 2 or more elements (anagram match exists) to the result list*/\n List<String> result = new ArrayList<String>(map.size());\n for (Set<String> set : map.values())\n {\n if (set.size() > 1) result.addAll(set);\n }\n\n return result;\n }", "public boolean isOneLetterOff(String word1, String word2){\n \tif(word1.equals(word2)){ //all letters same\n \t\treturn false;\n \t}\n \tif(word1.substring(1).equals(word2.substring(1))){\t//all letters same except 1st\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,1).equals(word2.substring(0, 1)) && word1.substring(2).equals(word2.substring(2))){ //all letters same except 2nd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,2).equals(word2.substring(0,2)) && word1.substring(3).equals(word2.substring(3))){\t//all letters same except 3rd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,3).equals(word2.substring(0,3)) && word1.substring(4).equals(word2.substring(4))){\t//all letters same except 4th\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,4).equals(word2.substring(0,4))){\t//all letters same except 5th\n\t\t\treturn true;\n\t\t}\n \treturn false;\n }", "public static void main(String[] args) {\r\n\r\n\t\tSystem.out.println(\"string=\\\"ppqp\\\", pattern=\\\"pq\\\" output:[1,2] got : \" + findStringAnagrams(\"ppqp\", \"pq\"));\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"string=\\\"abbcabc\\\", pattern=\\\"abc\\\" output:[2,3,4] got : \" + findStringAnagrams(\"abbcabc\", \"abc\"));\r\n\t}" ]
[ "0.80441046", "0.79066217", "0.778575", "0.75336134", "0.7488703", "0.744725", "0.7354093", "0.73459077", "0.73161256", "0.72224367", "0.71557575", "0.71444964", "0.71210593", "0.71180385", "0.70957947", "0.7068624", "0.7058004", "0.7026279", "0.70243555", "0.7022227", "0.7006939", "0.6993065", "0.6986934", "0.6951831", "0.69474334", "0.6901741", "0.6898069", "0.68943244", "0.6894086", "0.68832576", "0.681129", "0.68080395", "0.67980206", "0.67870957", "0.676263", "0.671861", "0.669491", "0.6686151", "0.6674623", "0.6671315", "0.66351384", "0.66331697", "0.65809417", "0.65701914", "0.65631735", "0.65631664", "0.65416205", "0.6500358", "0.6479323", "0.6470341", "0.6465732", "0.64561355", "0.6439605", "0.6436959", "0.6420784", "0.64108574", "0.6385019", "0.6368228", "0.63641655", "0.63597983", "0.6352774", "0.63315105", "0.63303316", "0.62905127", "0.6267474", "0.6233963", "0.6197153", "0.61416465", "0.614129", "0.6058339", "0.6049081", "0.6047802", "0.6033479", "0.6028653", "0.6019388", "0.5989506", "0.5983594", "0.59818166", "0.59800196", "0.59746915", "0.59664613", "0.59038764", "0.5903057", "0.5902046", "0.58807486", "0.58752596", "0.58682364", "0.5865004", "0.58530676", "0.5849909", "0.5844055", "0.58439136", "0.5827479", "0.5820903", "0.5806644", "0.580294", "0.57704", "0.57584786", "0.5752053", "0.5739741" ]
0.72661036
9
/ to deal with editBox (TYPE)
public void typeByXpath (String locator, String value){ driver.findElement(By.xpath(locator)).clear(); driver.findElement (By.xpath(locator)).sendKeys(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void edit() {\n\n\t}", "public void correcto( Editor<Tipo> editor );", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "void onEditClicked();", "@Override\n public void checkEditing() {\n }", "private Widget editableCell(final FieldData fd, String factType) {\n\n\t\treturn ScenarioWidget.editableCell(new ValueChanged() {\n\t\t\tpublic void valueChanged(String newValue) {\n\t\t\t\tfd.value = newValue;\n\t\t\t\tmakeDirty();\n\t\t\t}\n\t\t}, factType, fd.name, fd.value, sce);\n//\t\tString key = factType + \".\" + fd.name;\n//\t\tString flType = (String) this.sce.fieldTypes.get(key);\n//\t\tif (flType.equals(SuggestionCompletionEngine.TYPE_NUMERIC)) {\n//\t\t\tTextBox box = editableTextBox(fd);\n// box.addKeyboardListener( new KeyboardListener() {\n// public void onKeyDown(Widget arg0, char arg1, int arg2) {}\n// public void onKeyPress(Widget w, char c, int i) {\n// if (Character.isLetter( c ) ) {\n// ((TextBox) w).cancelKey();\n// }\n// }\n// public void onKeyUp(Widget arg0, char arg1, int arg2) {}\n// } );\n// return box;\n//\t\t} else if (flType.equals(SuggestionCompletionEngine.TYPE_BOOLEAN )) {\n//\t\t\tString[] c = new String[] {\"true\", \"false\"};\n//\t\t\treturn ConstraintValueEditor.enumDropDown(fd.value, new ValueChanged() {\n//\t\t\t\tpublic void valueChanged(String newValue) {\n//\t\t\t\t\tfd.value = newValue;\n//\t\t\t\t\tmakeDirty();\n//\t\t\t\t}\n//\t\t\t}, c);\n//\n//\t\t} else {\n//\t\t\tString[] enums = (String[]) sce.dataEnumLists.get(key);\n//\t\t\tif (enums != null) {\n//\t\t\t\treturn ConstraintValueEditor.enumDropDown(fd.value, new ValueChanged() {\n//\t\t\t\t\tpublic void valueChanged(String newValue) {\n//\t\t\t\t\t\tfd.value = newValue;\n//\t\t\t\t\t\tmakeDirty();\n//\t\t\t\t\t}\n//\t\t\t\t}, enums);\n//\n//\t\t\t} else {\n//\t\t\t\treturn editableTextBox(fd);\n//\t\t\t}\n//\t\t}\n\n\n }", "protected abstract void editItem();", "IInputType getEditableInputType(IInputType base);", "public void initializeEditingBox() {\r\n //editing mode elements\r\n editBox.setWidth(200);\r\n editBox.setHeight(380);\r\n editBox.setArcHeight(10);\r\n editBox.setArcWidth(10);\r\n editBox.setFill(Color.WHITESMOKE);\r\n editBox.setStroke(Color.BLACK);\r\n editBox.setOpacity(0.98);\r\n\r\n DiverseUtils.initializeTextField(nameField, editBox, 10, 30, nameText, 0, -5, state.getName());\r\n nameField.textProperty().addListener(nameChangeListener);\r\n nameField.setOnAction(nameChangeEventHandler);\r\n nameField.focusedProperty().addListener(nameFocusChangeListener);\r\n\r\n DiverseUtils.initializeTextField(commentField, editBox, 10, 90, commentText, 0, -5, state.getComment(), state.commentProperty());\r\n\r\n DiverseUtils.initializeTextField(enterField, editBox, 10, 150, enterText, 0, -5, state.getEnter(), state.enterProperty());\r\n\r\n DiverseUtils.initializeTextField(leaveField, editBox, 10, 210, leaveText, 0, -5, state.getLeave(), state.leaveProperty());\r\n\r\n //TODO use the mousewheel for changing elements in comboboxes\r\n typeComboBox.getItems().addAll(\"Normal\", \"Final\", \"Initial\");\r\n typeComboBox.setValue(\"Normal\");\r\n DiverseUtils.initializeComboBox(typeComboBox, editBox, 50, 330, typeText, 0, -5);\r\n typeComboBox.valueProperty().addListener(typeChangeListener);\r\n\r\n colorComboBox.getItems().addAll(\"Blue\", \"Green\", \"Red\", \"Yellow\", \"Orange\", \"Brown\");\r\n colorComboBox.setValue(\"Blue\");\r\n DiverseUtils.initializeComboBox(colorComboBox, editBox, 10, 270, colorText, 0, -5);\r\n colorComboBox.valueProperty().addListener(colorChangeListener);\r\n\r\n sizeComboBox.getItems().addAll(40, 50, 60, 75, 90, 120);\r\n sizeComboBox.setValue((int) state.getSize());\r\n DiverseUtils.initializeComboBox(sizeComboBox, editBox, 120, 270, sizeText, 0, -5);\r\n sizeComboBox.valueProperty().addListener(sizeChangeListener);\r\n\r\n editingPane.getChildren().add(editBox);\r\n editingPane.getChildren().add(nameField);\r\n editingPane.getChildren().add(nameText);\r\n editingPane.getChildren().add(commentField);\r\n editingPane.getChildren().add(commentText);\r\n editingPane.getChildren().add(enterField);\r\n editingPane.getChildren().add(enterText);\r\n editingPane.getChildren().add(leaveField);\r\n editingPane.getChildren().add(leaveText);\r\n editingPane.getChildren().add(colorComboBox);\r\n editingPane.getChildren().add(colorText);\r\n editingPane.getChildren().add(sizeComboBox);\r\n editingPane.getChildren().add(sizeText);\r\n editingPane.getChildren().add(typeComboBox);\r\n editingPane.getChildren().add(typeText);\r\n }", "public abstract void checkEditing();", "public void handleSmartPopup(int type) {\n if(type == 2 && itemFocused != UISettings.RENAMETEXTBOX)\n return;\n iCustomPopup.handleSmartPopup(type);\n }", "public abstract void edit();", "public void textBoxAction( TextBoxWidgetExt tbwe ){}", "private void updateListBox() {\n String program = Utils.getListBoxItemText(listBox_Program);\n ArrayList<String> typeList = Classification.getTypeList(program);\n listBox_Type.clear();\n for (String item : typeList) {\n listBox_Type.addItem(item);\n }\n listBox_Type.setItemSelected(0, true);\n listBox_Type.setEnabled(typeList.size() > 1);\n listBox_Type.onBrowserEvent(Event.getCurrentEvent());\n }", "@Override\n public void handleEditStart ()\n {\n\n }", "public abstract void acceptEditing();", "private void setTextArea(String type)\n\t{\n\t\tif (type.equals(\"CreditTransaction\"))\n\t\t\ttaDSIXML.setText(mCreditTran);\n\t\telse if (type.equals(\"GiftTransaction\"))\n\t\t\ttaDSIXML.setText(mGiftTran);\t\n\t}", "void actionEdit(int position);", "void onEditItem(E itemElementView);", "public void editOperation() {\n\t\t\r\n\t}", "public void type(String s){\n\t\tif(currentEdit != null){\n\t\t\tint cur = currentEdit.getSelectionStart();\n\t\t\tif(s.equals(\"del\")||s.equals(\"del(\")){\n\t\t\t\tif(cur != 0){\n\t\t\t\t\tcurrentEdit.getText().delete(cur-1, cur);\n\t\t\t\t}\t\t\t\n\t\t\t}else if(s.equals(\"clear\")){\n\t\t\t\tcurrentEdit.setText(\"\");\n\t\t\t}else if(s.equals(\"ENTER\")){\n\t\t\t\tonEnter();\n\t\t\t}else{\n\t\t\t\tcurrentEdit.getText().insert(cur, s);\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void validateEdit(Fornecedor post) {\n\n }", "public InputFieldEditingSupport(TableViewer viewer) {\n\t\tsuper(viewer);\n\t\tthis.viewer = viewer;\n\t\t//cellEditor = new TextCellEditor(viewer.getTable(), SWT.MULTI | SWT.WRAP | SWT.BORDER);\n\t\tcellEditor = new TextCellEditor(viewer.getTable());\n\t\t\n\t\tfinal Text aaa = (Text)cellEditor.getControl();\n\t}", "protected TextGuiTestObject edittext() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"edittext\"));\n\t}", "private void editMode() {\n\t\t// Set the boolean to true to indicate in edit mode\n\t\teditableEditTexts();\n\t\thideEditDelete();\n\t\thideEmail();\n\t\tshowSaveAndAdd();\n\t\tshowThatEditable();\n\t}", "public void typeEvent(KeyEvent e) {\n char typed = e.getKeyChar();\n //if the char is not a number remove the char\n if (typed < '0' || typed > '9') {\n //input is illigal so put empty char insted of the sent char\n e.setKeyChar(Character.MIN_VALUE);\n } else {\n //update the text that is in the text filed and the value in the factory\n updateShapeFactory(updateValue(e));\n }\n //show the update\n repaint();\n }", "private void cbxTypeModifiedItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbxTypeModifiedItemStateChanged\n this.habilitarBtnActualizar();\n }", "@Override\r\n\t\tpublic boolean editItem() {\n\t\t\treturn false;\r\n\t\t}", "boolean isEdit();", "@SuppressWarnings(\"unchecked\")\n\tprivate void setEditable(boolean isEditable) {\n\t\tint size = lnr_form.getChildCount();\n\t\tif (isEditable) {\n\t\t\tfor (int i = 0; i < size; i++) {\n\n\t\t\t\tView v = lnr_form.getChildAt(i);\n\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) v.getTag();\n\t\t\t\tif (((LinearLayout) v.findViewById(R.id.lnrGgroup)).getVisibility() == View.VISIBLE) {\n\n\t\t\t\t} else {\n\t\t\t\t\tif (row.get(TYPE).equals(TEXT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEdit)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditArea)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(DATE)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TIME)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(SELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrSpin)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(LABEL)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrLabel)).setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\n\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrReadOnly)).setVisibility(View.GONE);\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i = 0; i < size; i++) {\n\n\t\t\t\tView v = lnr_form.getChildAt(i);\n\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) v.getTag();\n\t\t\t\tif (((LinearLayout) v.findViewById(R.id.lnrGgroup)).getVisibility() == View.VISIBLE) {\n\n\t\t\t\t} else {\n\t\t\t\t\tif (row.get(TYPE).equals(TEXT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(DATE)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TIME)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(SELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(LABEL)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\t\t\t\t\t}\n\n\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrReadOnly)).setVisibility(View.VISIBLE);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "private void updateEditorInputTypes() {\n IEditorPart editorPart = workBenchPart.getSite().getWorkbenchWindow().getActivePage().getActiveEditor();\n if(editorPart instanceof DataMapperDiagramEditor) {\n if(SCHEMA_TYPE_INPUT.equals(this.schemaType)) {\n ((DataMapperDiagramEditor)editorPart).setInputSchemaType(schemaTypeCombo.getText());\n } else if (SCHEMA_TYPE_OUTPUT.equals(this.schemaType)){\n ((DataMapperDiagramEditor)editorPart).setOutputSchemaType(schemaTypeCombo.getText());\n }\n }\n }", "@Override\r\n protected boolean canEdit(Object element) {\n return true;\r\n }", "protected void addEditMenuItems (JMenu edit)\n {\n }", "public void editMode(String newType, String newTarget, String oldContent)\n\t{\n\t\tif (cs == ConnState.EDITING)\n\t\t{\n\t\t\tsendln(\"You're already editing. Exit your current buffer first.\");\n\t\t\treturn;\n\t\t}\n\t\tpromptTarget = newTarget;\n\t\tpromptType = newType;\n\t\tlastCs = cs;\n\t\tcs = ConnState.EDITING;\n\t\tsendln(\"{G /s - Save and Close /q - Close Without Saving /h - View Help & Commands\");\n\t\tsendln(\"{G---------------------------------------------------------------------------\");\n\t\teditorContents = new ArrayList<String>();\n\t\tif (oldContent.length() > 0)\n\t\t{\n\t\t\tString oldContents[] = oldContent.split(\"\\\\^/\", -1);\n\t\t\tfor (int ctr = 0; ctr < oldContents.length; ctr++)\n\t\t\t\teditorContents.add(oldContents[ctr]);\n\t\t}\n\t}", "String getEditore();", "private void handleIECTypeChange() {\n\t\tString iec = cbIEC.getText();\n\t\tif (optionB[3].equals(iec)) {\n\t\t\ttxtIEC_article.setEnabled(false);\n\t\t\ttxtIEC_article.setText(EMPTYSTRING);\n\t\t} else {\n\t\t\ttxtIEC_article.setEnabled(true);\n\t\t}\n\t}", "private void makeModifiable() {\n final TableEditor editor = new TableEditor(providers);\n editor.horizontalAlignment = SWT.LEFT;\n editor.grabHorizontal = true;\n editor.minimumWidth = 50;\n\n // editing the fourth column\n final int editable = 4;\n\n providers.addSelectionListener(new SelectionListener() {\n \n @Override\n public void widgetSelected(SelectionEvent exc) {\n\n TableItem item = (TableItem) exc.item;\n\n //Column should only be editable if arguments are allowed for the provider.\n if (item.getText(3).toString().equals(\"false\") || item == null) {\n return;\n }\n\n Control oldEditor = editor.getEditor();\n\n if (oldEditor != null) {\n oldEditor.dispose();\n }\n\n \n Text newEditor = new Text(providers, SWT.NONE);\n newEditor.setText(item.getText(editable));\n newEditor.addModifyListener(new ModifyListener() {\n\n \n @Override\n public void modifyText(ModifyEvent exc) {\n Text text = (Text) editor.getEditor();\n editor.getItem().setText(editable, text.getText());\n }\n });\n \n newEditor.selectAll();\n newEditor.setFocus();\n editor.setEditor(newEditor, item, editable); \n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n // TODO Auto-generated method stub\n }\n });\n \n for (int i = 0; i < TITLES.length; i++) {\n providers.getColumn(i).pack();\n }\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(localType == EMAIL_FIELD){\r\n\t\t\tif(!field.getText().contains(\"@\")){\r\n\t\t\t\tif(localFrame != null){\r\n\t\t\t\t\tlocalFrame.getMyPhoneMeStatusBar().setStatus\r\n\t\t\t\t\t(\"email不符合格式,至少包含@\");\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(field.getState() == PhoneMeField.ADD_STATE){\r\n\t\t\tif(field.getText().length() != 0){\r\n\t\t\t\tmanageBox.addItem(field.getText());\r\n\t\t\t\tmanageBox.setSelectedIndex(manageBox.getItemCount()-1);\r\n\t\t\t}\r\n\t\t\tfield.setVisible(false);\r\n\t\t\tfield.setText(\"\");\r\n\t\t}\r\n\t\tif(field.getState() == PhoneMeField.EDIT_STATE){\r\n\t\t\tif(field.getText().length() != 0){\r\n\t\t\t\tmanageBox.setEditable(true);\r\n\t\t\t\tint index = manageBox.getSelectedIndex();\r\n\t\t\t\tmanageBox.removeItem(manageBox.getSelectedItem());\r\n\t\t\t\tmanageBox.insertItemAt(field.getText(), index);\r\n\t\t\t\tmanageBox.setSelectedIndex(index);\r\n\t\t\t//manageBox.addItem(field.getText());\r\n\t\t\t//(String)manageBox.getSelectedItem()\r\n\t\t\t//manageBox.setSelectedItem(field.getText());\r\n\t\t\t//manageBox.updateUI();\r\n\t\t\t\tmanageBox.setEditable(false);\r\n\t\t\t}\r\n\t\t\tfield.setVisible(false);\r\n\t\t\tfield.setText(\"\");\r\n\t\t}\r\n\t}", "private void performDirectEdit() {\n\t}", "private void editAccountType() throws Exception, EditUserException {\n String userChange = userIDInput.getText();\n String accountTypeInput = accountTypeValueEdit;\n try {\n Admin.editAccountType(userChange, accountTypeInput);\n String msg = \"Change user \" + userChange + \" to \" + accountTypeInput + \" success!\";\n JOptionPane.showMessageDialog(null, msg);\n\n // Reset values\n userIDInput.setText(\"\");\n } catch (NullPointerException e) {\n String msg = \"Edit User Error: Empty values. Please try again.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new NullPointerException(msg);\n } catch (SQLException e) {\n String msg = \"Edit User SQL Error: Could not add to database.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new Exception(msg);\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "private void updateDataType(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\tboolean deleteKids = false;\n\t\tint index = cbDataType.getSelectedIndex();\n\t\tQuestionDef questionDef = (QuestionDef)propertiesObj;\n\t\tif((questionDef.getDataType() == QuestionDef.QTN_TYPE_LIST_EXCLUSIVE ||\n\t\t\t\tquestionDef.getDataType() == QuestionDef.QTN_TYPE_LIST_MULTIPLE) &&\n\t\t\t\t!(index == DT_INDEX_SINGLE_SELECT || index == DT_INDEX_MULTIPLE_SELECT)){\n\t\t\tif(questionDef.getOptionCount() > 0 && !Window.confirm(LocaleText.get(\"changeWidgetTypePrompt\"))){\n\t\t\t\tindex = (questionDef.getDataType() == QuestionDef.QTN_TYPE_LIST_EXCLUSIVE) ? DT_INDEX_SINGLE_SELECT : DT_INDEX_MULTIPLE_SELECT;\n\t\t\t\tcbDataType.setSelectedIndex(index);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdeleteKids = true;\n\t\t}\n\t\telse if((questionDef.getDataType() == QuestionDef.QTN_TYPE_REPEAT) &&\n\t\t\t\t!(index == DT_INDEX_REPEAT)){\n\t\t\tif(!Window.confirm(LocaleText.get(\"changeWidgetTypePrompt\"))){\n\t\t\t\tindex = DT_INDEX_REPEAT;\n\t\t\t\tcbDataType.setSelectedIndex(index);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdeleteKids = true;\n\t\t}\n\n\t\t//cbDataType.setSelectedIndex(index);\n\t\tsetQuestionDataType((QuestionDef)propertiesObj);\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\tif(deleteKids)\n\t\t\tformChangeListener.onDeleteChildren(propertiesObj);\n\t}", "public void setType(){\r\n if(rbtnTruncamiento.isSelected()){\r\n interpretador.setTipoValores(1);\r\n in.setTipoValores(1);\r\n }else{\r\n interpretador.setTipoValores(2);\r\n in.setTipoValores(2);\r\n }\r\n getK();\r\n }", "private void sizeBoxAction(ChoiceBox<String> box) {\n if (box.getId().equals(\"inRecipeBox\")) {\n if (inRecipeBox.getValue().equals(\"Rectangular\")) { // both areas are set visible bc we need two sides of rectangle\n inRecipeArea1.setVisible(false);\n inRecipeArea2.setVisible(false);\n cm1.setText(\"\");\n inRecipeSize.setText(\"Size:\");\n inRecipeArea1.setVisible(true);\n inRecipeArea2.setVisible(true);\n x1.setText(\" x\");\n cm1.setText(\" cm\");\n } else {\n cm1.setText(\"\");\n inRecipeArea1.setVisible(false);\n inRecipeArea2.setVisible(false);\n inRecipeArea1.setText(\"\");\n inRecipeArea2.setText(\"\");\n inRecipeSize.setText(\"Diameter:\");\n inRecipeArea1.setVisible(true);\n x1.setText(\" cm\");\n }\n }\n else {\n if (IHaveBox.getValue().equals(\"Rectangular\")) { // one area is set visible bc we only need a diameter of circle\n IHaveArea1.setVisible(false);\n IHaveArea2.setVisible(false);\n cm2.setText(\"\");\n IHaveSize.setText(\"Size:\");\n IHaveArea1.setVisible(true);\n IHaveArea2.setVisible(true);\n x2.setText(\" x\");\n cm2.setText(\" cm\");\n } else {\n cm2.setText(\"\");\n IHaveArea1.setVisible(false);\n IHaveArea2.setVisible(false);\n IHaveArea1.setText(\"\");\n IHaveArea2.setText(\"\");\n IHaveSize.setText(\"Diameter:\");\n IHaveArea1.setVisible(true);\n x2.setText(\" cm\");\n }\n }\n }", "T edit(T obj);", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString tmp = dbtype.getSelectedItem().toString();\n\t\t\ttmp = tmp.replace(\"><\", \">\\r\\n<\");\n\t\t\tdbset.append(tmp + \"\\n\");\n\t\t}", "public void edit_actionPerformed(ActionEvent e) {\n\t\t\n\t\tif (edit.isSelected()) {\n\t\t\t\n\t\t\teditor.validate();\n\t\t\teditor.repaint();\n\t\t\t\n\t\t\t//Reset edit components values\n\t\t\tresetEdit();\n\t\t\t\n\t\t\t//Configure editor panel\n\t\t\tinitEditorPanel();\n\t\t\t\n\t\t\tmyParent.editCM = true;\n\t\t\tmyParent.extendCM = false;\n\t\t\tmyParent.mullionsPanel.selectedHV = 0;\n\n //Setting type action event\n myParent.setActionTypeEvent(MenuActionEventDraw.EDIT_COUPLER_MULLION.getValue());\n\t\t\t\n\t\t\tvC.setSelected(false);\n\t\t\thC.setSelected(false);\n\t\t\tvC.setEnabled(false);\n\t\t\thC.setEnabled(false);\n\t\t\t\n\t\t\tcouplerTypeC.setEnabled(false);\n\t\t\t\n\t\t\tedit.setEnabled(false);\n\t\t\tcancel.setVisible(true);\n\t\t\tcancel.setEnabled(true);\n\t\t\tthis.enableDisableBySeries();\n\t\t\t\n\t\t\twhichFeature.validate();\n\t\t\twhichFeature.repaint();\n\t\t}\n\t}", "private void setToEdit(String input){\n ToEdit = input;\n }", "@FXML void editbtnpushed(ActionEvent event5) {\t\n\tLabel Orig[] = { TitleLabel, PositionLabel, RetributionLabel, DegreeLabel, BonusLabel, ContractTypeLabel, ContractTimeLabel, SectorLabel, RegionLabel, RetxTLabel, ExpLabel };\n\tint i = 0, k = -1;\n\tTextField TxtEd[] = { EditTitleField, EditPositionField, EditRetribution, EditDegreeField, EditBonusField };\n\tChoiceBox ChbEd[] = { EditTypeContBox, EditTimeContBox, EditSectorBOx, EditRegionBox, EditRetxTField, EditExpbox };\n\tString preset[] = { \"Modifica Tipo Contratto\", \"Modifica Tempo Contratto\", \"Modifica Settore\", \"Modifica Regione\", \n\t\t\t\"Modifica Tempo Retribuzione\", \"Modifica Esperienza\" };\n\tString s1[] = new String [12];\t\n\tfor ( i = 0; i < 11; i++ ) {\n\tif ( i < 5 ) { \n\t\tif (!TxtEd[i].getText().isEmpty()) {\n\t\ts1[i] = TxtEd[i].getText().toString(); }\n\telse { s1[i] = Orig[i].getText().toString(); }\n\t} \n\tif ( i > 4 ) { \n\t\t++k;\n\t\t if ( !ChbEd[k].getValue().toString().contentEquals(preset[k])) {\n\t\t\ts1[i] = ChbEd[k].getValue().toString(); }\n\t\telse { s1[i] = Orig[i].getText().toString(); } \n\t\t}\n\t} s1[11] = EditWorkInfoArea.getText().toString(); \n\t\tk = -1;\n\tfor ( i = 0; i < 11; i++ ) {\n\t\tif ( i < 5 ) { TxtEd[i].setText(s1[i]); } \n\t\tif ( i > 4 ) { \n\t\t\t++k;\n\t\t\tChbEd[k].setValue(s1[i]); }\n\t} \t\n\ttry {\n\t\tint n = 0, j = 0, p = 1, q = 2, email = 3, r = 4, s = 5, t = 6, u = 7, w = 8, v = 9, x = 10, y = 11, z = 12; i = 0; k = 0; \n\t BufferedReader reader = new BufferedReader(new FileReader(FileCerqoLavoroBusinessFactoryImpl.OFFERS_FILE_NAME));\n\t int lines = 0;\n\t while (reader.readLine() != null) {\n\t lines++; }\n\t reader.close(); int cont = lines / 13;\n\t File f = new File(FileCerqoLavoroBusinessFactoryImpl.OFFERS_FILE_NAME);\n \t StringBuilder sb = new StringBuilder();\n \t try (Scanner sc = new Scanner(f)) {\n \t String currentLine;\n \t boolean trovato = false;\n \t while ( sc.hasNext() && n < (lines) ) {\n \t currentLine = sc.nextLine();\n \t if ( n == j ) { sb.append(EditRegionBox.getValue().toString()+\"\\n\"); }\n\t if ( n == p ) { sb.append(EditSectorBOx.getValue().toString()+\"\\n\"); }\n\t if ( n == q ) { sb.append(EditTitleField.getText().toString()+\"\\n\"); }\n \t if ( n == r ) { sb.append(EditPositionField.getText().toString()+\"\\n\"); }\n \t if ( n == s ) { sb.append(EditTypeContBox.getValue().toString()+\"\\n\"); }\n \t if ( n == t ) { sb.append(EditTimeContBox.getValue().toString()+\"\\n\"); }\n \t if ( n == u ) { sb.append(EditRetribution.getText().toString()+\"\\n\"); }\n \t if ( n == v ) { sb.append(EditExpbox.getValue().toString()+\"\\n\"); }\n \t if ( n == w ) { sb.append(EditRetxTField.getValue().toString()+\"\\n\"); }\n \t if ( n == x ) { sb.append(EditBonusField.getText().toString()+\"\\n\"); }\n \t if ( n == y ) { sb.append(EditDegreeField.getText().toString()+\"\\n\"); }\n \t if ( n == z ) { sb.append(EditWorkInfoArea.getText().toString()+\"\\n\"); }\n \t if ( n != j && n != p && n != q && n != r && n != s && n != t && n != u && n != v && n != w && n != x && n != y && n != z ) {\n \t \tif ( n == (lines-1) ) { sb.append(currentLine); }\n\t \telse { sb.append(currentLine).append(\"\\n\"); }\n \t } n++; \n \t }\n \t }\n \t PrintWriter pw = new PrintWriter(f); pw.close();\n \t BufferedWriter writer = new BufferedWriter(new FileWriter(f, true));\n \t writer.append(sb.toString()); writer.close(); \t \n \t\tif ( !EditTitleField.getText().isEmpty() ) { TitleLabel.setText(EditTitleField.getText()); } \t\t\n \t\tif ( !EditPositionField.getText().isEmpty() ) { PositionLabel.setText(EditPositionField.getText()); } \t\t\n \t\tif ( !EditTypeContBox.getValue().contentEquals(\"Modifica Tipo Contratto\") ) { ContractTypeLabel.setText(EditTypeContBox.getValue()); } \t\t\n \t\tif ( !EditTimeContBox.getValue().contentEquals(\"Modifica Tempo Contratto\") ) { ContractTimeLabel.setText(EditTimeContBox.getValue()); } \t\t\n \t\tif ( !EditRetribution.getText().isEmpty()) { RetributionLabel.setText(EditRetribution.getText() ); } \t\t\n \t\tif ( !EditSectorBOx.getValue().contentEquals(\"Modifica Settore\") ) { SectorLabel.setText(EditSectorBOx.getValue()); } \t\t\n \t\tif ( !EditRegionBox.getValue().contentEquals(\"Modifica Regione\") ) { RegionLabel.setText(EditRegionBox.getValue()); } \t\t\n \t\tif ( !EditRetxTField.getValue().contentEquals(\"Modifica Tempo Retribuzione\") ) { RetxTLabel.setText(EditRetxTField.getValue()); } \t\t\n \t\tif ( !EditBonusField.getText().isEmpty() ) { BonusLabel.setText(EditBonusField.getText()); } \t\t\n \t\tif ( !EditDegreeField.getText().isEmpty() ) { DegreeLabel.setText(EditDegreeField.getText()); }\t\t \n Alert offmodAlert = new Alert(AlertType.CONFIRMATION);\n offmodAlert.setHeaderText(\"Operazione completata\");\n offmodAlert.setContentText(\"Hai modificato questa offerta\");\n offmodAlert.showAndWait(); \n\t} catch (Exception e) {\n\t e.printStackTrace();\n Alert ripmodAlert = new Alert(AlertType.ERROR);\n ripmodAlert.setHeaderText(\"Attenzione\");\n ripmodAlert.setContentText(\"Si è verificato un errore\");\n ripmodAlert.showAndWait();\n\t} \n}", "public int editType(BikeType type){\n final int EDITED = 0;\n final int NOT_EDITED = 1;\n final int NOT_FOUND = 2;\n if(!findType(type.getTypeId())){ //No matching type_id registered\n return NOT_FOUND;\n }else{ \n \n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(UPDATE)){\n \n ps.setString(1, type.getTypeName());\n ps.setDouble(2, type.getRentalPrice());\n ps.setInt(3, type.getTypeId());\n ps.executeUpdate();\n return EDITED;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return NOT_EDITED;\n }", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {\n edit();\n clear();\n readData();\n clearControl();\n\n }", "public int getAddEditMenuText();", "void accept(@NotNull T editText);", "Menu getMenuEdit();", "public String loadMainEdit(){\r\n\t\treturn \"edit\";\r\n }", "void setBox();", "@Override\n public void editClick(int pos) {\n editPos = pos;\n\n Calendar c = Calendar.getInstance();\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(AdminCalendar.this, AdminCalendar.this, year, month, day);\n datePickerDialog.show();\n }", "private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }", "private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }", "protected void editOccured(ModifyEvent e) {\n \n \t\tString aValue = text.getText();\n \t\tif (aValue == null) {\n \t\t\taValue = StringStatics.BLANK;\n \t\t}\n \t\tObject typedValue = aValue;\n \t\tboolean oldValidState = isValueValid();\n \t\tboolean newValidState = isCorrect(typedValue);\n \t\tif (typedValue == null && newValidState) {\n \t\t\tassert (false) : \"Validator isn't limiting the cell editor's type range\"; //$NON-NLS-1$\n \t\t}\n \t\tif (!newValidState) {\n \t\t\t// try to insert the current value into the error message.\n \t\t\tsetErrorMessage(\n \t\t\t\tMessageFormat.format(\n \t\t\t\t\tgetErrorMessage(),\n \t\t\t\t\tnew Object[] { aValue }));\n \t\t}\n \t\tvalueChanged(oldValidState, newValidState);\n \t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (!isEdit) {\r\n\t\t\t\t\txb_popup.showAsDropDown(xbet, 0, 1, xbet.getWidth(),\r\n\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT);\r\n\t\t\t\t}\r\n\t\t\t}", "private void setControls(char functionType){\r\n if (functionType == 'I' ) {\r\n setControlsEnabled(true);\r\n txtRolodexId.setEditable(false);\r\n txtLastUpdate.setEditable(false);\r\n txtUpdateUser.setEditable(false);\r\n }else if (functionType == 'M') {\r\n setControlsEnabled(true);\r\n txtRolodexId.setEditable(false);\r\n txtLastUpdate.setEditable(false);\r\n txtUpdateUser.setEditable(false);\r\n }else if (functionType == 'V') {\r\n setControlsEnabled(false);\r\n btnOK.setEnabled(false);\r\n btnCancel.setEnabled(true);\r\n btnSponsor.setEnabled(false);\r\n txtComments.setOpaque(false);\r\n }else if (functionType == 'C') {\r\n setControlsEnabled(true);\r\n txtRolodexId.setText(\"\");\r\n txtLastUpdate.setText(\"\");\r\n txtUpdateUser.setText(\"\");\r\n txtRolodexId.setEditable(false);\r\n txtLastUpdate.setEditable(false);\r\n txtUpdateUser.setEditable(false);\r\n }else if (functionType == 'N') {\r\n setControlsEnabled(false);\r\n txtComments.setOpaque(false);\r\n }\r\n \r\n \r\n }", "@Override\n public void startEdit() {\n super.startEdit();\n\n if (text_field == null) {\n createTextField();\n }\n setText(null);\n setGraphic(text_field);\n text_field.selectAll();\n }", "void startEditing(Object cell) {\n\n\t}", "protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}", "public abstract void addEditorForm();", "public interface ACSUIEditor {\n\n ACSUIEditable getEditable(SimpleRequestContext src);\n\n ACSUIEditable getEditable();\n\n ACSUIEditable updatetEditable(SimpleRequestContext src);\n\n ACSUIEditable insertEditable(SimpleRequestContext src);\n\n ACSUIEditable deleteEditable(SimpleRequestContext src);\n\n ACSUIEditable[] getEditables(SimpleRequestContext src);\n\n String[] getColNames();\n\n String getType();\n\n boolean[] checkInputData(ACSRequestContext ctx);\n\n String getManagmentLabel();\n\n String getAddLabel();\n\n String getUpdateLabel();\n\n}", "public void TypeAddressBox(String TypeAddressBox) {\r\n\t\taddressbox.clear();\r\n\t\taddressbox.sendKeys(TypeAddressBox);\r\n\t\t\tLog(\"Entered Address: \" + TypeAddressBox);\r\n\t}", "private void getUserTypeChoice() {\n mTypeInput = \"(\";\n if (mBinding.chipApartment.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput = mTypeInput + \"'Apartment'\";\n }\n if (mBinding.chipLoft.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Loft'\";\n }\n if (mBinding.chipHouse.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'House'\";\n }\n if (mBinding.chipVilla.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Villa'\";\n }\n if (mBinding.chipManor.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Manor'\";\n }\n mTypeInput += \")\";\n }", "private void selectByType(boolean type) {\n if (type) {\n textBuffer.setDragStart();\n } else {\n textBuffer.setDragEnd();\n }\n }", "private JComponent createBoxFor(final FloatTrait t){\n\t\tfinal JPanel box = new JPanel();\n\t\tfinal Swat.TextField floatLabel = new Swat.TextField();\n\t\tfloatLabel.setDocument(new MaxLengthDocument(Deikto.MAXIMUM_FIELD_LENGTH));\n\t\tfloatLabel.setText(t.getLabel());\n\t\tfloatLabel.addActionListener(new EditorListener(floatLabel){\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override\n\t\t\tpublic boolean timedActionPerformed(ActionEvent e) {\n\t\t\t\treturn renameTrait(t,box,floatLabel.getText().trim());\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic String getText() { return t.getLabel(); }\n\t\t});\n\t\tfloatLabel.setBackground(Utils.lightlightBackground);\n\t\t//floatLabel.setPreferredSize(new Dimension(23,23));\n\t\t\n\t\tSwat.Slider sld = new Swat.Slider(JSlider.HORIZONTAL, 0, 100, 50){\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override\n\t\t\tpublic String getToolTipText() {\n\t\t\t\treturn Utils.toHtmlTooltipFormat(t.getDescription());\n\t\t\t}\n\t\t};\n\t\tToolTipManager.sharedInstance().registerComponent(sld);\n\t\t\n\t\t//sld.setMaximumSize(new Dimension(200,30));\n\t\t//sld.setMinimumSize(new Dimension(200,30));\n\t\t//sld.setPreferredSize(new Dimension(200,30));\n\t\tsld.setMajorTickSpacing(50);\n\t\tsld.setMinorTickSpacing(10);\n\t\tsld.setPaintTicks(true);\t\t\t\n\t\tnew UndoableSlider(swat,sld) {\n\t\t\tEntity editedEntity;\n\t\t\t@Override\n\t\t\tpublic int init() {\n\t\t\t\teditedEntity = getEditedEntity();\n\t\t\t\treturn toSlider(getValue(editedEntity,t));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void setValue(int value) {\n\t\t\t\tCustomTraitsControl.this.setValue(editedEntity,t,fromSlider(value));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void undoRedoExecuted() {\n\t\t\t\tshowEditedEntity(editedEntity);\n\t\t\t\tUtils.scrollToVisible(box);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic String getPresentationName(){\n\t\t\t\treturn \"change \"+floatLabel.getText()+\" of \"+editedEntity.getLabel();\n\t\t\t}\n\t\t};\n\t\t\n\t\tJButton deleteCustomTraitButton=new DeleteButton();\n\t\tdeleteCustomTraitButton.setToolTipText(Utils.toHtmlTooltipFormat(\"Deletes this trait.\"));\n\t\tdeleteCustomTraitButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdeleteTrait(box,t);\n\t\t\t}\n\t\t});\n\t\tDimension db=deleteCustomTraitButton.getPreferredSize();\n\t\tdb.height=floatLabel.getPreferredSize().height;\n\t\t//deleteCustomTraitButton.setPreferredSize(db);\n\t\n\t\tfinal QuestionMarkButton descriptionButton = new QuestionMarkButton(t.getLabel());\n\t\tdescriptionButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tshowDescriptionPopup(t,new DescriptionPopupDispatcher(t));\n\t\t\t}\n\t\t});\n\t\t\n\t\tJComponent buttonPanel = Box.createHorizontalBox();\n\t\tbuttonPanel.add(descriptionButton);\n\t\tbuttonPanel.add(deleteCustomTraitButton);\n\t\t\n\t\tJComponent aux=new JPanel(new BorderLayout());\n\t\taux.add(buttonPanel,BorderLayout.EAST);\n\t\taux.add(floatLabel,BorderLayout.CENTER);\n\t\t//aux.setMaximumSize(new Dimension(210,25));\n\t\t//aux.setPreferredSize(new Dimension(210,aux.getPreferredSize().height));\n\t\t\n\t\taux.setAlignmentX(0.5f);\t\t\t\n\t\tbox.add(aux);\n\t\tsld.setOpaque(false);\n\t\tsld.setAlignmentX(0.5f);\n\t\tbox.add(sld);\t\t\n\t\t\n\t\tbox.setLayout(new BoxLayout(box, BoxLayout.Y_AXIS));\n\t\tbox.setOpaque(false);\n\t\tbox.setBorder(BorderFactory.createEmptyBorder(0, 0, 4, 0));\n\t\tbox.setAlignmentX(0.5f);\n\t\tbox.setMinimumSize(new Dimension(10,TRAIT_HEIGHT));\n\t\tbox.setPreferredSize(new Dimension(212,TRAIT_HEIGHT));\n\t\tbox.setMaximumSize(new Dimension(250,TRAIT_HEIGHT));\n\t\tTRAIT_HEIGHT = box.getPreferredSize().height;\n\t\treturn box;\n\t}", "public edit() {\n initComponents();\n }", "@Override\n\tpublic void editingStopped(ChangeEvent arg0) {\n\n\t}", "protected abstract void createFieldEditors();", "public void setEditedItem(Object item) {editedItem = item;}", "public interface Editable {\n\n void createValidationPatterns();\n void setUpButtonListeners();\n}", "public abstract void setType();", "@Override\n\tpublic void editExchange() {\n\t\t\n\t}", "public interface EditableProvider {\n\n Module getRootModule();\n\n /**\n * @return the type of the specified editable object, or null if it is not an editable object.\n */\n Type getTypeOfObject(Object objectInstance);\n\n}", "private void viewEditTblArticle() {\n\t\tAdminComposite.display(\"\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\tTableItem[] items = tblArticle.getSelection();\n\t\tint len = items.length;\n\t\tif (len == 1) {\n\n\t\t\ttxtArticleName.setText(items[0].getText(0));\n\t\t\ttxtCW.setText(items[0].getText(1));\n\t\t\tcbCCC.setText(items[0].getText(2));\n\t\t\t/*if (items[0].getText(2).equalsIgnoreCase(\"open\") || items[0].getText(2).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtCCCValue.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtCCCValue.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtCCCValue.setText(items[0].getText(3));\n\t\t\thandleCCCTypeChange();\n\t\t\t\n\t\t\tcbDCC.setText(items[0].getText(4));\n\t\t\t/*if (items[0].getText(4).equalsIgnoreCase(\"open\") || items[0].getText(4).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtDCCValue.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtDCCValue.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtDCCValue.setText(items[0].getText(5));\n\t\t\thandleDCCTypeChange();\n\t\t\t\n\t\t\tcbIEC.setText(items[0].getText(6));\n\t\t\t/*if (items[0].getText(6).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtIEC_article.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtIEC_article.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtIEC_article.setText(items[0].getText(7));\n\t\t\thandleIECTypeChange();\n\t\t\t\n\t\t\tcbLoadingCharge.setText(items[0].getText(8));\n\t\t\t/*if (items[0].getText(8).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtLC_article.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtLC_article.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtLC_article.setText((items[0].getText(9)));\n\t\t\thandleLCTypeChange();\n\t\t\t\n\t\t\tcbDDC.setText(items[0].getText(10));\n\t\t\tif (items[0].getText(10).equalsIgnoreCase(\"extra\")) {\n\t\t\t\ttxtDDC_minPerLR.setEnabled(false);\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(false);\n\t\t\t} else if ((items[0].getText(10).equalsIgnoreCase(\"free\"))) {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t\t\ttxtDDC_minPerLR.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t\t\ttxtDDC_minPerLR.setEnabled(true);\n\t\t\t}\n\t\t\ttxtDDC_minPerLR.setText(((items[0].getText(11))));\n\t\t\ttxtDDC_chargeArticle.setText(((items[0].getText(12))));\n\n\t\t\t// }\n\t\t}\n\t\thandleMixedArticleDropdown();\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tadd_values_box();\n\t\t\t\tadd_button.setBounds(endof_box_pos + 5 , 0, 20,20);\n\t\t\t\tremove_button.setBounds(endof_box_pos + 30, 0, 20, 20);\n\t\t\t\tset_button.setBounds(endof_box_pos + 55, 0, 30, 20);\n\t\t\t\tString_box_pane.setSize(endof_box_pos + 110, 20);\n\t\t\t}", "public PointEditForm(RouteEditList backDisplay) {\n super(LangHolder.getString(Lang.editpoint));\n this.backDisplay=backDisplay;\n \n backCommand=new Command(LangHolder.getString(Lang.back), Command.BACK, 10);\n saveCommand=new Command(LangHolder.getString(Lang.save), Command.ITEM, 1);\n addCommand(backCommand);\n addCommand(saveCommand);\n setCommandListener(this);\n \n textName=new TextField(LangHolder.getString(Lang.label),null,30,TextField.ANY);\n append(textName);\n \n \n StringItem si = new StringItem(LangHolder.getString(Lang.example)+\"\\n\",MapUtil.emptyString);\n if (RMSOption.coordType==RMSOption.COORDMINSECTYPE) si.setText(\"60 23 41\\n(GG MM SS.S)\");\n else if (RMSOption.coordType==RMSOption.COORDMINMMMTYPE) si.setText(\"60 23.683\\n(GG MM.MMM)\");\n else if (RMSOption.coordType==RMSOption.COORDGGGGGGTYPE) si.setText(\"60.39471\\n(GG.GGGGG)\");\n append(si);\n textLat=new TextField(LangHolder.getString(Lang.latitude),null,12,TextField.NON_PREDICTIVE);\n append(textLat);\n textLon=new TextField(LangHolder.getString(Lang.longitude),null,12,TextField.NON_PREDICTIVE);\n append(textLon);\n //!NO-NUMERIC\n textAlt=new TextField(LangHolder.getString(Lang.altitude),null,6,TextField.ANY|TextField.NON_PREDICTIVE);\n append(textAlt);\n \n }", "public void clickEdit() {\r\n\t\tEdit.click();\r\n\t}", "boolean isEditable();", "private void createDisplayEditOverlay() {\n\t}", "private void selectType(TypeInfo type) {\n if (type == null || !type.getWidget().getSelection()) {\n mInternalTypeUpdate = true;\n mCurrentTypeInfo = type;\n for (TypeInfo type2 : sTypes) {\n type2.getWidget().setSelection(type2 == type);\n }\n updateRootCombo(type);\n mInternalTypeUpdate = false;\n }\n }", "static void setNotEdit(){isEditing=false;}", "void setEditore(String editore);", "private void editorstart(int inputType) {\n canCompose = false;\n enterAsLineBreak = false;\n\n switch (inputType & InputType.TYPE_MASK_CLASS) {\n case InputType.TYPE_CLASS_TEXT:\n canCompose = true;\n int variation = inputType & InputType.TYPE_MASK_VARIATION;\n if (variation == InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE) {\n // Make enter-key as line-breaks for messaging.\n enterAsLineBreak = true;\n }\n break;\n }\n Rime.get();\n // Select a keyboard based on the input type of the editing field.\n mKeyboardSwitch.init(getMaxWidth()); //橫豎屏切換時重置鍵盤\n // mKeyboardSwitch.onStartInput(inputType);\n //setCandidatesViewShown(true);\n //escape();\n if (!onEvaluateInputViewShown()) setCandidatesViewShown(canCompose && !Rime.isEmpty()); //實體鍵盤\n if (display_tray_icon) showStatusIcon(R.drawable.status); //狀態欄圖標\n }", "public Term createBox(ExpressionList el, String type) {\r\n String open = FUN_NL;\r\n String close = FUN_NL;\r\n \r\n if (! type.equals(BOX)){\r\n close = FUN_INDENT;\r\n }\r\n if (type.equals(IBOX)){\r\n open = FUN_INDENT;\r\n }\r\n \r\n Constant fopen = createQName(open); \r\n Constant fclose = createQName(close); \r\n \r\n \r\n Term t1 = createFunction(fopen, Constant.create(1));\r\n Term t2 = createFunction(fclose, Constant.create(-1));\r\n el.add(0, t1);\r\n el.add(t2);\r\n return createFunction(CONCAT, el);\r\n }", "public default boolean isEditable(){ return false; }", "public void setupEditFields(Dialog dialog, HashMap bookData) {\n ButtonType addButtontype = new ButtonType(\"Confirm\", ButtonBar.ButtonData.OK_DONE);\r\n dialog.getDialogPane().getButtonTypes().addAll(addButtontype, ButtonType.CANCEL);\r\n\r\n // Creates TextFields\r\n GridPane grid = new GridPane();\r\n grid.setHgap(10);\r\n grid.setVgap(10);\r\n grid.setPadding(new Insets(20, 150, 10, 10));\r\n\r\n TextField title = new TextField();\r\n title.setPromptText(\"Book Title\");\r\n if (!bookData.isEmpty()) {\r\n title.setText(bookData.get(\"title\").toString());\r\n }\r\n\r\n TextField author = new TextField();\r\n author.setPromptText(\"Book Author\");\r\n if (!bookData.isEmpty()) {\r\n author.setText(bookData.get(\"authors\").toString());\r\n }\r\n\r\n TextField location = new TextField();\r\n location.setPromptText(\"Location\");\r\n if (!bookData.isEmpty()) {\r\n location.setText(bookData.get(\"location\").toString());\r\n }\r\n\r\n TextField copies = new TextField();\r\n copies.setPromptText(\"Copies\");\r\n if (!bookData.isEmpty()) {\r\n copies.setText(bookData.get(\"copies_in_stock\").toString());\r\n }\r\n\r\n grid.add(new Label(\"Title:\"), 0, 0);\r\n grid.add(title, 1, 0);\r\n\r\n grid.add(new Label(\"Author:\"), 0, 1);\r\n grid.add(author, 1, 1);\r\n\r\n TextField isbn = new TextField();\r\n if (bookData.isEmpty()) {\r\n isbn.setPromptText(\"ISBN\");\r\n grid.add(new Label(\"ISBN:\"), 0, 2);\r\n grid.add(isbn, 1, 2);\r\n }\r\n\r\n grid.add(new Label(\"Location:\"), 0, 3);\r\n grid.add(location, 1, 3);\r\n\r\n grid.add(new Label(\"Copies:\"), 0, 4);\r\n grid.add(copies, 1, 4);\r\n\r\n\r\n // Activate edit button when all fields have text\r\n Node addButton = dialog.getDialogPane().lookupButton(addButtontype);\r\n BooleanBinding booleanBind = title.textProperty().isEmpty()\r\n .or(author.textProperty().isEmpty())\r\n .or(location.textProperty().isEmpty())\r\n .or(copies.textProperty().isEmpty());\r\n\r\n addButton.disableProperty().bind(booleanBind);\r\n\r\n dialog.getDialogPane().setContent(grid);\r\n dialog.show();\r\n\r\n addButton.addEventFilter(ActionEvent.ACTION, clickEvent -> {\r\n try {\r\n if (this.books.getByColumn(\"isbn\", isbn.getText()).isEmpty()) {\r\n HashMap bookChange = new HashMap();\r\n if (bookData.isEmpty()) {\r\n bookChange.put(\"isbn\", isbn.getText());\r\n bookChange.put(\"title\", title.getText());\r\n bookChange.put(\"authors\", author.getText());\r\n bookChange.put(\"location\", location.getText());\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n } else {\r\n bookChange.put(\"title\", QueryBuilder.escapeValue(title.getText()));\r\n bookChange.put(\"authors\", QueryBuilder.escapeValue(author.getText()));\r\n bookChange.put(\"location\", QueryBuilder.escapeValue(location.getText()));\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n }\r\n\r\n if (bookData.isEmpty()) {\r\n this.books.insert(bookChange);\r\n } else {\r\n this.books.update(bookChange, Integer.parseInt(bookData.get(\"id\").toString()));\r\n }\r\n\r\n QueryBuilder queryBooks = new QueryBuilder(\"books\");\r\n twg.setTable(queryBooks.select(Books.memberVisibleFields).build(), tableBooks);\r\n\r\n } else {\r\n Screen.popup(\"WARNING\", \"The ISBN typed in already exists, please edit the existing entry.\");\r\n clickEvent.consume();\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n Screen.popup(\"WARNING\", \"The 'copies' field should contain a number.\");\r\n clickEvent.consume();\r\n }\r\n });\r\n\r\n Platform.runLater(() -> title.requestFocus());\r\n }", "@Override\n public void startEditing(final Cell.Context context,\n final Element parent,\n final C value) {\n textBox.setValue((value == null ? \"\" : convertToString(value)));\n }", "public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}", "@Override\n\tprotected void initForEdit(AWRequestContext requestContext) {\n\n\t}", "@Override\r\n public void widgetSelected(SelectionEvent e) {\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPagosAutorizadosBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.pagosautorizados,new Object(),this.pagosautorizadosParameterGeneral,this.pagosautorizadosReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tPagosAutorizadosBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.pagosautorizados,new Object(),this.pagosautorizadosParameterGeneral,this.pagosautorizadosReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PagosAutorizadosConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "private void handleLCTypeChange() {\n\t\tString lc = cbLoadingCharge.getText();\n\t\tif (optionB[3].equals(lc)) {\n\t\t\ttxtLC_article.setEnabled(false);\n\t\t\ttxtLC_article.setText(EMPTYSTRING);\n\t\t} else {\n\t\t\ttxtLC_article.setEnabled(true);\n\t\t}\n\t}", "void edit(Price Price);", "protected TextGuiTestObject edittext(TestObject anchor, long flags) \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"edittext\"), anchor, flags);\n\t}", "List<String> getEditPanelInput();" ]
[ "0.6632481", "0.6486794", "0.6442824", "0.6405429", "0.63856685", "0.6361216", "0.63244694", "0.6308397", "0.61849", "0.6182791", "0.61818635", "0.6143622", "0.61337185", "0.6072494", "0.6051686", "0.6025715", "0.5988627", "0.59582233", "0.5953488", "0.59497815", "0.58990437", "0.58902", "0.58893245", "0.58796346", "0.5861665", "0.58464515", "0.58380556", "0.58359295", "0.5828341", "0.5827567", "0.5803665", "0.58017886", "0.57831246", "0.5774974", "0.5768025", "0.57586527", "0.5758511", "0.57569927", "0.5734791", "0.57346886", "0.57230175", "0.5721172", "0.5677304", "0.5676434", "0.5674657", "0.5667736", "0.5655725", "0.5654323", "0.5649122", "0.56482124", "0.5641684", "0.56390643", "0.5635342", "0.56247073", "0.56071734", "0.55971235", "0.5593531", "0.5590409", "0.5582083", "0.55804235", "0.55699295", "0.5567184", "0.55665076", "0.55605835", "0.55523264", "0.554283", "0.55395645", "0.5534709", "0.551621", "0.5510583", "0.54982924", "0.5496285", "0.5492165", "0.5492047", "0.54786813", "0.5471954", "0.5468273", "0.54632", "0.5457232", "0.54504555", "0.54484105", "0.5440501", "0.54372025", "0.54362047", "0.54313135", "0.5422794", "0.5422521", "0.5413762", "0.5413189", "0.5411494", "0.54041255", "0.5402373", "0.53955925", "0.53946036", "0.53940815", "0.5389052", "0.5389044", "0.53868634", "0.5386401", "0.538026", "0.5375166" ]
0.0
-1
/ to deal with CLICK
public void clickByXpath (String locator){ driver.findElement (By.xpath(locator)).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n\tpublic void onClick() {\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}", "@Override\n public void onClick() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) \n\t\t{\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}" ]
[ "0.75400364", "0.74837667", "0.74083257", "0.73963845", "0.73963845", "0.7349526", "0.73253965", "0.7319428", "0.7319428", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73149496", "0.73139495", "0.73139495", "0.72916466", "0.72916466", "0.72916466", "0.7289233", "0.7289233", "0.7289233", "0.72887576", "0.7284371", "0.7284371", "0.7283455", "0.7256028", "0.7256028", "0.7256028", "0.7256028", "0.7256028", "0.7256028", "0.7253373", "0.7253373", "0.7253373", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.72367954", "0.7233463", "0.7232678", "0.72321045", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7230139", "0.7221275", "0.7215892", "0.7214846", "0.72110015", "0.72070384", "0.72070384", "0.72070384", "0.72070384", "0.72070384", "0.72070384", "0.72070384", "0.72070384", "0.72041017", "0.7203752", "0.7203752", "0.7202952", "0.7202952", "0.7200445", "0.7199289", "0.7199232", "0.7199225", "0.7199225" ]
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n public void onCreate() {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "public void onCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }", "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}", "public void onCreate();", "public void onCreate();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }" ]
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879", "0.74805456", "0.7475343", "0.7469598", "0.7469598", "0.7455178", "0.743656", "0.74256307", "0.7422192", "0.73934627", "0.7370002", "0.73569906", "0.73569906", "0.7353011", "0.7347353", "0.7347353", "0.7333878", "0.7311508", "0.72663945", "0.72612154", "0.7252271", "0.72419256", "0.72131634", "0.71865886", "0.718271", "0.71728176", "0.7168954", "0.7166841", "0.71481615", "0.7141478", "0.7132933", "0.71174103", "0.7097966", "0.70979583", "0.7093163", "0.7093163", "0.7085773", "0.7075851", "0.7073558", "0.70698684", "0.7049258", "0.704046", "0.70370424", "0.7013127", "0.7005552", "0.7004414", "0.7004136", "0.69996923", "0.6995201", "0.69904065", "0.6988358", "0.69834954", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69783133", "0.6977392", "0.69668365", "0.69660246", "0.69651115", "0.6962911", "0.696241", "0.6961096", "0.69608897", "0.6947069", "0.6940148", "0.69358927", "0.6933102", "0.6927288", "0.69265485", "0.69247025" ]
0.0
-1
Creates a Toast (temporary message) when button is clicked. Note that there is a version of Toast.makeText that takes an id (R.string.blah) instead of a String. However, it is important to know how to turn an ID from res/values/strings into a String, for use in Java code.
public void showToast(View clickedButton) { String greetingText = getString(R.string.greeting_text); Toast tempMessage = Toast.makeText(this, greetingText, Toast.LENGTH_SHORT); tempMessage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "@Override\n public void onClick(View v) {\n Context context = getApplicationContext();\n // When the Hello button on the app is pressed this line of code will show *Hello, how are you?!\"\n Toast toast = Toast.makeText(context,\n \"Contact details for the college are - \" +\n \"\\n\\t CSN College, Tramore Road, Co.Cork\" +\n \"\\n\\t Phone number: 021-4961020\" +\n \"\\n\\t Email: [email protected]\", Toast.LENGTH_LONG);\n // This is for the toast message to show.\n toast.show();\n\n }", "@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }", "public void onClick(View v) {\n \t\t// get the current context to display a Toast (below)\n \t\tContext context = getApplicationContext();\n\n \t\tCharSequence text;\n\n \t\t// figure out which button was clicked by comparing\n \t\t// the View's ID with known IDs.\n \t\tswitch(v.getId()) {\n\t \t\tcase R.id.one: text = \"one pushed!\"; break;\n\t \t\tcase R.id.two: text = \"two pushed!\"; break;\n\t \t\tcase R.id.three: text = \"three pushed!\"; break;\n\t \t\tcase R.id.four: text = \"four pushed!\"; break;\n\t \t\tcase R.id.five: text = \"five pushed!\"; break;\n\t \t\tcase R.id.six: text = \"six pushed!\"; break;\n\t \t\tdefault: text=\"Who knows what was pushed!\";\n \t\t}\n\n \t\t// show a Toast for a short amount of time, displaying\n \t\t// which button was pushed.\n \t\tint duration = Toast.LENGTH_SHORT;\n \t\tToast toast = Toast.makeText(context, text, duration);\n \t\ttoast.show();\n \t}", "public void onClick(View btn) {\n String paintingDescription = (String) btn.getContentDescription();\n\n // MAKE A METHOD CALL TO DISPLAY THE INFORMATION\n displayToast(paintingDescription);\n }", "void toast(int resId);", "public void onClick(DialogInterface dialog, int id) {\n\r\n Context context = getApplicationContext();\r\n CharSequence text = \"Welcome \" + name + \"! Signing up...\";\r\n int duration = Toast.LENGTH_SHORT;\r\n\r\n Toast toast = Toast.makeText(context, text, duration);\r\n toast.show();\r\n }", "public void showToast(View view) {\n // Switch based on button ID\n switch (view.getId()) {\n case R.id.popular_movies:\n case R.id.stock_hawk:\n case R.id.build_it_bigger:\n case R.id.make_your_app_material:\n case R.id.go_ubiquitous:\n case R.id.capstone:\n displayToast(\"This button will launch \" +\n ((Button) view).getText().toString()\n + \" app!\");\n break;\n\n default:\n break;\n }\n }", "private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "void showToast(String message);", "void showToast(String message);", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }", "public void displayMessage(View view) {\n // I got the following line of code from StackOverflow: http://stackoverflow.com/questions/5620772/get-text-from-pressed-button\n String s = (String) ((Button)view).getText();\n CharSequence msg = new StringBuilder().append(\"This button will launch my \").append(s.toString()).append(\" app\").toString();\n Toast.makeText(view.getContext(),msg, Toast.LENGTH_SHORT).show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Build It Bigger app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\n public void onClick(View view) {\n switch(view.getId()) {\n case R.id.btn1:\n // Must break after each case, or all cases would be run.\n myToast(\"btn1\"); break;\n case R.id.btn2:\n myToast(\"btn2\"); break;\n case R.id.btn3:\n myToast(\"btn3\"); break;\n }\n }", "public void onClick(DialogInterface arg0, int arg1) {\n // the button was clicked\n Toast.makeText(getApplicationContext(), \"Professional backhand-Male Video\", Toast.LENGTH_LONG).show();\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Button 1\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "public void toastMessage(String message) {\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, message, duration);\n toast.show();\n }", "private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }", "public void toast(String message) {\n Toast.makeText(mContext, message, Toast.LENGTH_LONG).show();\n }", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String message, boolean longToast) {\n\t\tif (longToast)\t{ Toast.makeText(this, message, Toast.LENGTH_LONG).show(); }\n\t\telse\t\t\t{ Toast.makeText(this, message, Toast.LENGTH_SHORT).show(); }\n\t}", "public void onToast (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tdoToast ();\r\n\t}", "public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }", "private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }", "public static void showToast(Context context, int resourceId) {\n Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_LONG).show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Capstone app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "@SuppressLint(\"StringFormatMatches\")\n private String createToast(double grade) {\n String message;\n Resources res = getResources();\n message = res.getString(R.string.toast_message, grade);\n return message;\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }", "public void makeToast(String string) {\n Toast.makeText(this, string, Toast.LENGTH_LONG).show();\n }", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String string) {\n\t\tToast.makeText(this, string, Toast.LENGTH_SHORT).show();\r\n\r\n\t}", "private void displayToast(String message) {\n Toast.makeText(getLayoutInflater().getContext(), message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "@SuppressLint(\"ShowToast\")\r\n\tpublic void createVrToast(String text) {\r\n\t\tif ( text == null ) {\r\n\t\t\ttext = \"null toast text!\";\r\n\t\t}\r\n\t\tLog.v(TAG, \"createVrToast \" + text);\r\n\r\n\t\t// If we haven't set up the surface / surfaceTexture yet,\r\n\t\t// do it now.\r\n\t\tif (toastTexture == null) {\r\n\t\t\ttoastTexture = nativeGetPopupSurfaceTexture(appPtr);\r\n\t\t\tif (toastTexture == null) {\r\n\t\t\t\tLog.e(TAG, \"nativePreparePopup returned NULL\");\r\n\t\t\t\treturn; // not set up yet\r\n\t\t\t}\r\n\t\t\ttoastSurface = new Surface(toastTexture);\r\n\t\t}\r\n\r\n\t\tToast toast = Toast.makeText(this.getApplicationContext(), text,\r\n\t\t\t\tToast.LENGTH_SHORT);\r\n\r\n\t\tthis.createVrToast( toast.getView() );\r\n\t}", "void toast(CharSequence sequence);", "private void showResultToast(final String message, final int color, final int resultIcon) {\n SuperActivityToast.create(MainActivity.this, new Style(), Style.TYPE_BUTTON)\n .setDuration(Style.DURATION_VERY_LONG)\n .setFrame(Style.FRAME_LOLLIPOP)\n .setText(message)\n .setTextSize(Style.TEXTSIZE_VERY_LARGE)\n .setTextColor(getResources().getColor(R.color.white))\n .setIconPosition(Style.ICONPOSITION_LEFT)\n .setIconResource(resultIcon)\n .setGravity(Gravity.TOP)\n .setColor(getResources().getColor(color))\n .setAnimations(Style.ANIMATIONS_FLY).show();\n }", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "private void toast(String string){\n Toast.makeText(this, string, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }", "public static void toastIt(Context context, Toast toast, CharSequence msg) {\n if(toast !=null){\n toast.cancel();\n }\n\n //Make and display new toast\n toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }", "void showToast(String value);", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my XYZ Reader app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "private void displayToast(String message) {\n\n //get the LayoutInflater and inflate the custom_toast layout\n LayoutInflater view = getLayoutInflater();\n View layout = view.inflate(R.layout.toast, null);\n\n //get the TextView from the custom_toast layout\n TextView text = layout.findViewById(R.id.txtMessage);\n text.setText(message);\n\n //create the toast object, set display duration,\n //set the view as layout that's inflated above and then call show()\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Spotify Streamer app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void message(String message){\n Toast.makeText(getContext(),message,Toast.LENGTH_SHORT).show();\n }", "private void messageToUser(CharSequence text)\n {\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "@Override\n\tpublic void createToast(String slogan, float duration) {\n\t\tif (Gdx.app.getType() == ApplicationType.Android) {\n\t\t\tgGame.iFunctions.createToast(slogan, duration);\n\t\t} else\n\t\tsuper.createToast(slogan, duration);\n\t}", "@Override\n public void onClick(View view) {\n Toast.makeText(contexto, contexto.getResources().getString(R.string.addFavoritos), Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Scores app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\n public void onClick(View v) {\n Toast tst = Toast.makeText(MainActivity.this, \"test\", Toast.LENGTH_SHORT);\n tst.show();\n Test();\n }", "public static void showToast(Context context, CharSequence message) {\n Toast.makeText(context, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tToast.makeText(context.getBaseContext(), \"a:\"+v.getId(), Toast.LENGTH_SHORT).show();\n\t\t\t\t}", "private void showToast(@StringRes int resId) {\n mHandler.post(\n () -> Toast.makeText(mWindowContext, getText(resId), Toast.LENGTH_LONG).show());\n }", "void onMessageToast(String string);", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Library app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "private void showToast(final String message) {\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(main.getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n });\n }", "public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}", "public void onClick(View v) \n {\n Button b = (Button) v;\n Toast.makeText(this.mAnchorView.getContext(), b.getText(), Toast.LENGTH_SHORT).show();\n this.dismiss();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(context.getBaseContext(), \"a:\"+v.getId(), Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t}", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onButtonClick(int nButtonIndex) {\n Toast.makeText(this, \"onButtonClick:\" + nButtonIndex, Toast.LENGTH_SHORT).show();\n }", "public void showToast(String text)\n {\n Text icon = GlyphsDude.createIcon(FontAwesomeIconName.CHECK_CIRCLE,\"1.5em\");\n icon.setFill(Color.WHITE);\n Label l = new Label(text) ;\n l.setTextFill(Color.WHITE);\n l.setGraphic(icon);\n snackbar = new JFXSnackbar(PrinciplePane);\n snackbar.enqueue( new JFXSnackbar.SnackbarEvent(l));\n }", "public void showToast(final String message){\n\t runOnUiThread(new Runnable() {\n\t public void run()\n\t {\n\t Toast.makeText(VisitMultiplayerGame.this, message, Toast.LENGTH_SHORT).show();\n\t }\n\t });\n\t}", "public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }", "private void showToast(final String message, final int toastLength) {\n post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), message, toastLength).show();\n }\n });\n }", "public void displayToast(int resId) {\n displayToast(getString(resId));\n }", "@Test\n public void checkButtonClickToast2() {\n onView(withText(\"Brownies\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "private void showErrorToast(String message) {\n Toast.makeText(CreateAccountActivity.this, message, Toast.LENGTH_LONG).show();\n }", "private void showErrorToast(String message) {\n Toast.makeText(CreateAccountActivity.this, message, Toast.LENGTH_LONG).show();\n }", "private void showToast(final String message) {\n Log.e(App.TAG, message);\n\n Handler h = new Handler(Looper.getMainLooper());\n h.post(new Runnable() {\n public void run() {\n Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "private void toast(String bread) {\n Toast.makeText(getActivity(), bread, Toast.LENGTH_SHORT).show();\n }", "public void showMessage(String message){\n Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "public void displayToast(String message) {\n //Todo: Add Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); to @displayToast method\n Log.d(TAG, message);\n }", "public void toastKickoff(String message) {\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "public static void message(Context context, String message) {\n Toast.makeText(context, message, Toast.LENGTH_SHORT).show();\n }", "@Test\n public void checkButtonClickToast1() {\n onView(withText(\"Nutella Pie\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }", "public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void toast(String toast) {\n\t\t// TODO Auto-generated method stub\n\t\t Toast toast1 = Toast.makeText(getApplicationContext(), toast, \n Toast.LENGTH_LONG); \n\t\t toast1.setDuration(1);\n\t\t toast1.show();\n\t\t \n\t}" ]
[ "0.73601675", "0.7047813", "0.6873726", "0.6836748", "0.67542493", "0.66618973", "0.6659353", "0.6654861", "0.6641362", "0.662957", "0.653043", "0.653043", "0.64536023", "0.64397687", "0.63940996", "0.6356811", "0.6329284", "0.6329284", "0.63277996", "0.63272464", "0.6314362", "0.6306072", "0.62927157", "0.62837476", "0.62813485", "0.6275541", "0.6262419", "0.62406975", "0.62380654", "0.62300617", "0.6225855", "0.6218881", "0.62177896", "0.6214324", "0.6208792", "0.62051857", "0.61900204", "0.61841595", "0.61819655", "0.6157023", "0.61140525", "0.61097777", "0.6103088", "0.60982776", "0.60820043", "0.60777146", "0.60551125", "0.6050332", "0.6043434", "0.60405624", "0.60349137", "0.6034546", "0.6033892", "0.60313654", "0.60291934", "0.6022067", "0.60164547", "0.60064507", "0.59972763", "0.5990035", "0.59882325", "0.5984268", "0.5980172", "0.5979613", "0.5970429", "0.5960402", "0.59579176", "0.59523964", "0.59454584", "0.5939644", "0.5938157", "0.59241074", "0.59188956", "0.5913896", "0.58896154", "0.5887526", "0.5885751", "0.58836657", "0.58820343", "0.5864857", "0.5860852", "0.5859153", "0.5853166", "0.58514374", "0.58511543", "0.58260155", "0.58260155", "0.5822703", "0.58223075", "0.58221936", "0.58113295", "0.58010805", "0.5795654", "0.5795458", "0.579051", "0.5788792", "0.5788454", "0.57804257", "0.5777358", "0.57762176" ]
0.76820093
0
Don't care. Just use whatever you've got.
@Override public void onStatusChanged(String s, int i, Bundle bundle) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void use()\n\t{\n\t}", "public abstract String use();", "void use();", "private stendhal() {\n\t}", "public void smell() {\n\t\t\n\t}", "public void reuse() {}", "private void strin() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void method_4270() {}", "private void kk12() {\n\n\t}", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "protected void onFirstUse() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "protected void doSomethingElse()\r\n {\r\n \r\n }", "default boolean isSpecial() { return false; }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\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}", "private void Nice(){\n }", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic String swim() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "protected Doodler() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void test() {\n\n\t}", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "protected abstract void switchOnCustom();", "public abstract void mo27386d();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void swrap() throws NoUnusedObjectExeption;", "void berechneFlaeche() {\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "protected void h() {}", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "abstract int pregnancy();", "@Override\n\tpublic void use() {\n\t\tSystem.out.println(\"체력회복!\");\n\t}", "public ULocale getFallback() {\n/* 314 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private test5() {\r\n\t\r\n\t}", "public abstract void mo27385c();", "public void mo4359a() {\n }", "public void m23075a() {\n }", "public void woke(){\n\n //TODO\n\n }", "static void feladat9() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "private Util() { }", "public final void mo91715d() {\n }", "public void mo12628c() {\n }", "public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@Override\n protected void prot() {\n }", "public static void listing5_14() {\n }", "private Unescaper() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "static void feladat4() {\n\t}", "public Object good() {\n\t\treturn \"hyo\";\n\t}", "protected void additionalProcessing() {\n\t}", "public void baocun() {\n\t\t\n\t}", "public void method_191() {}", "public void mo21787L() {\n }", "protected static void printUsage() {\n\t}", "private static void oneUserExample()\t{\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public abstract void mo30696a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "protected void performDefaults() {\r\n\t}", "private void level7() {\n }", "private void offer() {\n\t\t\t\n\t\t}" ]
[ "0.65163565", "0.6335975", "0.62639934", "0.6173157", "0.6078688", "0.6057619", "0.5940141", "0.5850578", "0.5723568", "0.5721023", "0.5721023", "0.5705576", "0.5696539", "0.568961", "0.568961", "0.5679322", "0.5654895", "0.5654836", "0.56115127", "0.5581887", "0.55740947", "0.5549127", "0.5525426", "0.5520259", "0.54773825", "0.546821", "0.54647464", "0.54540884", "0.5433696", "0.5424734", "0.54155046", "0.54112506", "0.53923607", "0.538542", "0.5379004", "0.5377471", "0.5377471", "0.53742653", "0.53650665", "0.5364796", "0.53469557", "0.5340993", "0.5326175", "0.53251773", "0.5316935", "0.5313587", "0.53103334", "0.5286018", "0.528362", "0.5280911", "0.5279599", "0.52781355", "0.52762645", "0.52696145", "0.52620006", "0.525733", "0.52498263", "0.52477545", "0.52452564", "0.5240203", "0.52372015", "0.52300173", "0.5227665", "0.52197796", "0.52196443", "0.52167946", "0.52124536", "0.5208253", "0.51984066", "0.5195813", "0.5193713", "0.51920515", "0.5188649", "0.5178387", "0.5175892", "0.51751757", "0.51679915", "0.51655996", "0.515965", "0.51592195", "0.5157356", "0.5151874", "0.5149766", "0.51497304", "0.5146387", "0.5142708", "0.51423866", "0.5142352", "0.5137308", "0.5137267", "0.5136959", "0.5136393", "0.5134006", "0.51338667", "0.5128652", "0.5127395", "0.5123568", "0.5115825", "0.51141036", "0.51138127", "0.5109303" ]
0.0
-1
Don't care. Just use whatever you've got.
@Override public void onProviderEnabled(String s) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void use()\n\t{\n\t}", "public abstract String use();", "void use();", "private stendhal() {\n\t}", "public void smell() {\n\t\t\n\t}", "public void reuse() {}", "private void strin() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void method_4270() {}", "private void kk12() {\n\n\t}", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "protected void onFirstUse() {}", "@Override\n\tpublic void jugar() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "protected void doSomethingElse()\r\n {\r\n \r\n }", "default boolean isSpecial() { return false; }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\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}", "private void Nice(){\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "@Override\r\n\tpublic String swim() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "protected Doodler() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void test() {\n\n\t}", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "protected abstract void switchOnCustom();", "public abstract void mo27386d();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void swrap() throws NoUnusedObjectExeption;", "void berechneFlaeche() {\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "protected void h() {}", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "abstract int pregnancy();", "@Override\n\tpublic void use() {\n\t\tSystem.out.println(\"체력회복!\");\n\t}", "public ULocale getFallback() {\n/* 314 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private test5() {\r\n\t\r\n\t}", "public abstract void mo27385c();", "public void mo4359a() {\n }", "public void m23075a() {\n }", "public void woke(){\n\n //TODO\n\n }", "static void feladat9() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "private Util() { }", "public final void mo91715d() {\n }", "public void mo12628c() {\n }", "public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@Override\n protected void prot() {\n }", "private Unescaper() {\n\n\t}", "public static void listing5_14() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "static void feladat4() {\n\t}", "public Object good() {\n\t\treturn \"hyo\";\n\t}", "public void baocun() {\n\t\t\n\t}", "protected void additionalProcessing() {\n\t}", "public void mo21787L() {\n }", "public void method_191() {}", "protected static void printUsage() {\n\t}", "private static void oneUserExample()\t{\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public abstract void mo30696a();", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "protected void performDefaults() {\r\n\t}", "private void level7() {\n }", "private void offer() {\n\t\t\t\n\t\t}" ]
[ "0.65163106", "0.6334918", "0.62627953", "0.61716765", "0.60784775", "0.60555434", "0.5940251", "0.585019", "0.5722782", "0.5719769", "0.5719769", "0.5704763", "0.5695071", "0.5688851", "0.5688851", "0.56795484", "0.5654334", "0.5653295", "0.56103444", "0.55809426", "0.55740345", "0.5548352", "0.55239487", "0.5519562", "0.54758024", "0.54665625", "0.5464194", "0.54520637", "0.54323876", "0.5423511", "0.5414267", "0.54098755", "0.53914815", "0.53840846", "0.53790236", "0.5375948", "0.5375948", "0.5373179", "0.5363542", "0.53629816", "0.53476167", "0.5339625", "0.53253543", "0.53251404", "0.5316419", "0.53126895", "0.5309228", "0.5284913", "0.5282297", "0.52797675", "0.52785087", "0.5277255", "0.52747566", "0.5268878", "0.5259961", "0.52560425", "0.5248502", "0.52463734", "0.5244964", "0.523919", "0.52358323", "0.5227968", "0.52265024", "0.5219759", "0.52186775", "0.5215748", "0.5211231", "0.5207323", "0.519937", "0.51950717", "0.51923835", "0.5190883", "0.5188487", "0.51766694", "0.51756895", "0.5174513", "0.5168295", "0.51655406", "0.51590025", "0.5158227", "0.5156293", "0.51508665", "0.5150756", "0.5148581", "0.514561", "0.51423043", "0.5141421", "0.51395774", "0.5136291", "0.5135882", "0.5135846", "0.5135347", "0.5132979", "0.51323175", "0.51282036", "0.51276267", "0.5122509", "0.5114236", "0.5113971", "0.511305", "0.51088285" ]
0.0
-1
Don't care. Just use whatever you've got.
@Override public void onProviderDisabled(String s) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void use()\n\t{\n\t}", "public abstract String use();", "void use();", "private stendhal() {\n\t}", "public void smell() {\n\t\t\n\t}", "public void reuse() {}", "private void strin() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void method_4270() {}", "private void kk12() {\n\n\t}", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "protected void onFirstUse() {}", "@Override\n\tpublic void jugar() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "protected void doSomethingElse()\r\n {\r\n \r\n }", "default boolean isSpecial() { return false; }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\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}", "private void Nice(){\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "@Override\r\n\tpublic String swim() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "protected Doodler() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void test() {\n\n\t}", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "protected abstract void switchOnCustom();", "public abstract void mo27386d();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void swrap() throws NoUnusedObjectExeption;", "void berechneFlaeche() {\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "protected void h() {}", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "abstract int pregnancy();", "@Override\n\tpublic void use() {\n\t\tSystem.out.println(\"체력회복!\");\n\t}", "public ULocale getFallback() {\n/* 314 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private test5() {\r\n\t\r\n\t}", "public abstract void mo27385c();", "public void mo4359a() {\n }", "public void m23075a() {\n }", "public void woke(){\n\n //TODO\n\n }", "static void feladat9() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "private Util() { }", "public final void mo91715d() {\n }", "public void mo12628c() {\n }", "public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@Override\n protected void prot() {\n }", "private Unescaper() {\n\n\t}", "public static void listing5_14() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "static void feladat4() {\n\t}", "public Object good() {\n\t\treturn \"hyo\";\n\t}", "public void baocun() {\n\t\t\n\t}", "protected void additionalProcessing() {\n\t}", "public void mo21787L() {\n }", "public void method_191() {}", "protected static void printUsage() {\n\t}", "private static void oneUserExample()\t{\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public abstract void mo30696a();", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "protected void performDefaults() {\r\n\t}", "private void level7() {\n }", "private void offer() {\n\t\t\t\n\t\t}" ]
[ "0.65163106", "0.6334918", "0.62627953", "0.61716765", "0.60784775", "0.60555434", "0.5940251", "0.585019", "0.5722782", "0.5719769", "0.5719769", "0.5704763", "0.5695071", "0.5688851", "0.5688851", "0.56795484", "0.5654334", "0.5653295", "0.56103444", "0.55809426", "0.55740345", "0.5548352", "0.55239487", "0.5519562", "0.54758024", "0.54665625", "0.5464194", "0.54520637", "0.54323876", "0.5423511", "0.5414267", "0.54098755", "0.53914815", "0.53840846", "0.53790236", "0.5375948", "0.5375948", "0.5373179", "0.5363542", "0.53629816", "0.53476167", "0.5339625", "0.53253543", "0.53251404", "0.5316419", "0.53126895", "0.5309228", "0.5284913", "0.5282297", "0.52797675", "0.52785087", "0.5277255", "0.52747566", "0.5268878", "0.5259961", "0.52560425", "0.5248502", "0.52463734", "0.5244964", "0.523919", "0.52358323", "0.5227968", "0.52265024", "0.5219759", "0.52186775", "0.5215748", "0.5211231", "0.5207323", "0.519937", "0.51950717", "0.51923835", "0.5190883", "0.5188487", "0.51766694", "0.51756895", "0.5174513", "0.5168295", "0.51655406", "0.51590025", "0.5158227", "0.5156293", "0.51508665", "0.5150756", "0.5148581", "0.514561", "0.51423043", "0.5141421", "0.51395774", "0.5136291", "0.5135882", "0.5135846", "0.5135347", "0.5132979", "0.51323175", "0.51282036", "0.51276267", "0.5122509", "0.5114236", "0.5113971", "0.511305", "0.51088285" ]
0.0
-1
Constructs a new MergingResourceWrapper backed by the given resources. If primaryResource is null, secondaryResource becomes effective primaryResource.
public MergingResourceWrapper(Resource primaryResource, Resource secondaryResource) { super(primaryResource != null ? primaryResource : secondaryResource); if (primaryResource == null && secondaryResource == null) { throw new IllegalArgumentException("must wrap at least one resource"); } this.primaryResource = primaryResource != null ? primaryResource : secondaryResource; this.secondaryResource = primaryResource != null ? secondaryResource : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Resource getChild(String relPath) {\n\n if (secondaryResource != null) {\n\n if (childCache.containsKey(relPath)) {\n return childCache.get(relPath);\n }\n\n Resource retVal = null;\n Resource secondaryChild = secondaryResource.getChild(relPath);\n Resource primaryChild = primaryResource.getChild(relPath);\n if (secondaryChild != null && primaryChild != null) {\n retVal = new MergingResourceWrapper(primaryChild, secondaryChild);\n } else if (secondaryChild != null && primaryChild == null) {\n retVal = secondaryChild;\n } else {\n retVal = primaryChild;\n }\n\n childCache.put(relPath, retVal);\n\n return retVal;\n\n }\n\n return super.getChild(relPath);\n }", "public ResourceSpec merge(final ResourceSpec other) {\n\t\tcheckNotNull(other, \"Cannot merge with null resources\");\n\n\t\tif (this.equals(UNKNOWN) || other.equals(UNKNOWN)) {\n\t\t\treturn UNKNOWN;\n\t\t}\n\n\t\tResourceSpec target = new ResourceSpec(\n\t\t\tthis.cpuCores.merge(other.cpuCores),\n\t\t\tthis.taskHeapMemory.add(other.taskHeapMemory),\n\t\t\tthis.taskOffHeapMemory.add(other.taskOffHeapMemory),\n\t\t\tthis.managedMemory.add(other.managedMemory));\n\t\ttarget.extendedResources.putAll(extendedResources);\n\t\tfor (Resource resource : other.extendedResources.values()) {\n\t\t\ttarget.extendedResources.merge(resource.getName(), resource, (v1, v2) -> v1.merge(v2));\n\t\t}\n\t\treturn target;\n\t}", "public void merge( Resource r )\n\t{\n\t\tr.transter(this, r.amount);\n\t\tr.recycle();\n\t}", "public static ResourceManager mergeProperties(ResourceManager first, ResourceManager second) {\n Properties firstProps = first.getProperties();\n Properties secondProps = second.getProperties();\n\n Properties newProps = new Properties();\n\n for (String key : firstProps.stringPropertyNames())\n newProps.put(key, firstProps.getProperty(key));\n\n for (String key : secondProps.stringPropertyNames()) {\n // if ( newProps.containsKey( key ) )\n // throw new IllegalArgumentException( \"ERROR: key '\" + key +\n // \"' was already set in first ResourceManager.\" );\n\n newProps.put(key, secondProps.getProperty(key));\n }\n\n return new ResourceManager(newProps);\n }", "public Resource getSecondaryResource() {\n return secondaryResource;\n }", "public ResourceMount autodetectMerging() {\n\t\t_merge = null;\n\t\treturn this;\n\t}", "public ResourcePoolImpl(final ResourcePool resources) {\r\n this.resources = new HashMap<Resource, Integer>();\r\n if (resources != null) {\r\n for (final Entry<Resource, Integer> entry : resources.getContents()) {\r\n addResource(entry.getKey(), entry.getValue());\r\n }\r\n }\r\n }", "@Override\r\n\tpublic void merge(List<EObject> sources, List<EObject> targets) {\n\t\tcontext = targets.get(0).eResource().getResourceSet();\r\n\r\n\t\tsuper.merge(sources, targets);\r\n\t}", "Document mergeValues(List<Document> documents) throws ResourcesMergingException;", "public Resource createResourceSetWithResource(URI aPathToResource) {\r\n \t\tResource groupResource = null;\r\n \r\n \t\tif (aPathToResource != null) {\r\n \t\t\tResourceSet resourceSet = createResourceSet();\r\n \r\n \t\t\t// Create the resource for given group\r\n \t\t\tgroupResource = resourceSet.createResource(aPathToResource);\r\n \t\t}\r\n \t\treturn groupResource;\r\n \t}", "private ResourceWrapper getWrappedResourceContent(String runtimeName, Resource resource, Map<Requirement, Resource> mapping) {\n IllegalArgumentAssertion.assertNotNull(runtimeName, \"runtimeName\");\n IllegalArgumentAssertion.assertNotNull(resource, \"resource\");\n\n // Do nothing if there is no mapping\n if (mapping == null || mapping.isEmpty()) {\n InputStream content = getFirstRelevantResourceContent(resource).getContent();\n return new ResourceWrapper(runtimeName, runtimeName, content);\n }\n\n // Create content archive\n InputStream content = getFirstRelevantResourceContent(resource).getContent();\n ConfigurationBuilder config = new ConfigurationBuilder().classLoaders(Collections.singleton(ShrinkWrap.class.getClassLoader()));\n JavaArchive archive = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, runtimeName);\n archive.as(ZipImporter.class).importFrom(content);\n\n boolean wrapAsSubdeployment = runtimeName.endsWith(\".war\");\n\n // Create wrapper archive\n JavaArchive wrapper;\n Asset structureAsset;\n if (wrapAsSubdeployment) {\n wrapper = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, \"wrapped-\" + runtimeName + \".ear\");\n structureAsset = new StringAsset(generateSubdeploymentDeploymentStructure(resource, runtimeName, mapping));\n } else {\n wrapper = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, \"wrapped-\" + runtimeName);\n structureAsset = new StringAsset(generateDeploymentStructure(resource, runtimeName, mapping));\n }\n wrapper.addAsManifestResource(structureAsset, \"jboss-deployment-structure.xml\");\n wrapper.add(archive, \"/\", ZipExporter.class);\n\n content = wrapper.as(ZipExporter.class).exportAsInputStream();\n return new ResourceWrapper(wrapper.getName(), runtimeName, content);\n }", "public Resource getPrimaryResource() {\n return primaryResource;\n }", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "@Override\n\tpublic int insertResources(Resources resources) {\n\t\treturn ResourcesMapper.insert(resources);\n\t}", "Resource createResource();", "public ResourcePoolImpl(final Map<Resource, Integer> resources) {\r\n this.resources = new HashMap<Resource, Integer>();\r\n if (resources != null) {\r\n this.resources.putAll(resources);\r\n }\r\n }", "ResourceAPI createResourceAPI();", "public ResourceRange withMax(Integer max) {\n this.max = max;\n return this;\n }", "@Test\r\n\tpublic void resource_CopyTests() {\n\t\tLibraryNode destLib = ml.createNewLibrary_Empty(\"http://opentravel.org/Test/tx\", \"TL2\", pc.getDefaultProject());\r\n\t\t// Given - a valid resource using mock library provided business object\r\n\t\tLibraryNode srcLib = ml.createNewLibrary(pc, \"ResourceTestLib\");\r\n\t\tBusinessObjectNode bo = null;\r\n\t\tfor (Node n : srcLib.getDescendants_LibraryMembers())\r\n\t\t\tif (n instanceof BusinessObjectNode) {\r\n\t\t\t\tbo = (BusinessObjectNode) n;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\tResourceNode resource = ml.addResource(bo);\r\n\t\tassertTrue(\"Resource created must not be null.\", resource != null);\r\n\t\tml.check(resource);\r\n\t\tml.check(srcLib);\r\n\r\n\t\t// When - copied to destination library\r\n\t\tdestLib.copyMember(resource);\r\n\t\t// Then - source lib is not changed\r\n\t\tassertTrue(srcLib.contains(resource));\r\n\t\tml.check(srcLib);\r\n\t\tml.check(resource);\r\n\t\t// Then - it is copied and is valid\r\n\t\tResourceNode newResource = null;\r\n\t\tfor (Node r : destLib.getDescendants_LibraryMembers())\r\n\t\t\tif (r.getName().equals(resource.getName()))\r\n\t\t\t\tnewResource = (ResourceNode) r;\r\n\t\tassertTrue(destLib.contains(newResource));\r\n\t\tBusinessObjectNode subject = newResource.getSubject();\r\n\t\tml.check(newResource);\r\n\t\tml.check(destLib);\r\n\t}", "protected synchronized void returnResources(ArrayList<Person> resources) {\n resources.forEach((Person worker) -> {\n this.getResourcePools().get(worker.getSkill()).returnPerson(worker);\n });\n }", "ObjectResource createObjectResource();", "public MultiResourceBundle merge(ResourceBundle... bundles) {\n for (ResourceBundle resourceBundle : bundles) {\n this.keys.addAll(resourceBundle.keySet());\n this.bundles.add(0, resourceBundle);\n }\n return this;\n }", "public Closeable add(final Resource resource) {\n final ResourceWrapper resourceWrapper = new ResourceWrapper(resource);\n \n synchronized (m_reservableListMutex) {\n m_reservables.add(resourceWrapper);\n }\n \n m_listeners.apply(\n new ListenerSupport.Informer() {\n public void inform(Object listener) {\n ((Listener)listener).resourceAdded(resource);\n }\n });\n \n return resourceWrapper;\n }", "public SqlContainerCreateUpdateParameters withResource(SqlContainerResource resource) {\n if (this.innerProperties() == null) {\n this.innerProperties = new SqlContainerCreateUpdateProperties();\n }\n this.innerProperties().withResource(resource);\n return this;\n }", "@Override\n\tprotected void merge(Object in1, Object in2, Object out) {\n\t\t\n\t}", "public interface ResourceMapper {\n\n /**\n * Delete one record by primary key.<br>\n * \n * @param uuid Primary key\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int deleteByPrimaryKey(String uuid);\n\n /**\n * Add one record including all fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insert(ResourcePojo record);\n\n /**\n * Add specified field, only for non empty fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insertSelective(ResourcePojo record);\n\n /**\n * Query resource data by primary key.<br>\n * \n * @param bktName Bucket name\n * @return Resource data\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktName(String bktName);\n\n /**\n * Update specified field of resource data by primary key, only for non empty fields.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKeySelective(ResourcePojo record);\n\n /**\n * Update one record by primary key.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKey(ResourcePojo record);\n\n /**\n * Query resource collection by bucket name and model name.<br>\n * \n * @param bktName Bucket name\n * @param modelName Model name\n * @return Resource collection\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktAndModelName(@Param(\"bktName\") String bktName, @Param(\"modelName\") String modelName);\n}", "public interface ProductRelatedResource extends RepositoryResource {\n\n /**\n * Gets the productId for the resource.\n *\n * @return the product id, or null if it has not been set\n */\n public String getProductId();\n\n /**\n * Gets the edition of the product, if applicable.\n *\n * @return the edition of the product, or null if it is not set\n */\n public String getProductEdition();\n\n /**\n * Gets the install type of the product (e.g. \"Archive\")\n *\n * @return the install type, or null if it is not set\n */\n public String getProductInstallType();\n\n /**\n * Gets the version of the product\n *\n * @return the product version, or null if it is not set\n */\n public String getProductVersion();\n\n /**\n * Gets the features included in this product\n *\n * @return the features provided by this product, or null if not set\n */\n public Collection<String> getProvideFeature();\n\n /**\n * Gets the features that this product depends on\n *\n * @return the features required by this product, or null if not set\n */\n public Collection<String> getRequireFeature();\n\n /**\n * Gets the collection of OSGi requirements this product has\n *\n * @return the collection of OSGi requirements applicable to this product, or null if not set\n */\n public Collection<Requirement> getGenericRequirements();\n\n /**\n * Gets the version information for the Java packaged with this product\n *\n * @return The Java version information, or null if this product is not packaged with Java\n */\n public String getPackagedJava();\n\n}", "@Override\r\n\tpublic int addResources(Resources resources) {\n\t\treturn resourcesDao.addResources(resources);\r\n\t}", "public MergeEntries(BibEntry entryLeft, BibEntry entryRight, String headingLeft, String headingRight, DefaultRadioButtonSelectionMode defaultRadioButtonSelectionMode) {\n this.leftEntry = entryLeft;\n this.rightEntry = entryRight;\n this.defaultRadioButtonSelectionMode = defaultRadioButtonSelectionMode;\n\n initialize();\n setLeftHeaderText(headingLeft);\n setRightHeaderText(headingRight);\n }", "public Item merge(Item other);", "public Object makeResource();", "public BufferedImage createResizedCopy(java.awt.Image originalImage, int scaledWidth, int scaledHeight,\n\t\t\tboolean preserveAlpha) {\n\t\tint imageType = preserveAlpha ? BufferedImage.TYPE_INT_RGB : BufferedImage.TYPE_INT_ARGB;\n\t\tBufferedImage scaledBI = new BufferedImage(scaledWidth, scaledHeight, imageType);\n\t\tGraphics2D g = scaledBI.createGraphics();\n\t\tif (preserveAlpha) {\n\t\t\tg.setComposite(AlphaComposite.Src);\n\t\t}\n\t\tg.drawImage(originalImage, 0, 0, scaledWidth, scaledHeight, null);\n\t\tg.dispose();\n\t\treturn scaledBI;\n\t}", "public Object merge(Object obj) throws HibException;", "@Override\n public <Type> Type adaptTo(Class<Type> type) {\n\n if (secondaryResource != null && (type == ValueMap.class || type == Map.class)) {\n if (properties != null) {\n return (Type) properties;\n }\n\n ValueMap contentMap = primaryResource.adaptTo(ValueMap.class);\n ValueMap assetMap = secondaryResource.adaptTo(ValueMap.class);\n\n if (type == ValueMap.class) {\n properties = new MergingValueMap(contentMap, assetMap);\n } else if (type == Map.class) {\n properties = new MergingValueMap(contentMap != null ? new ValueMapDecorator(contentMap) : ValueMap.EMPTY,\n assetMap != null ? new ValueMapDecorator(assetMap) : ValueMap.EMPTY);\n }\n\n return (Type) properties;\n }\n\n return super.adaptTo(type);\n }", "public void setResources(List<PrimaryType> resources) {\n this.resources = resources;\n }", "static private void addBundleResources( final Bundle bundle, final Collection<? extends Resource> resources ) {\n resources.stream()\n .map( r -> new Bundle.BundleEntryComponent().setResource( r ) )\n .forEach( bundle::addEntry );\n }", "public void markSecondaryApnSourceGprsMerge() throws JNCException {\n markLeafMerge(\"secondaryApnSourceGprs\");\n }", "boolean mergeResources() {\n return mergeResources == null ? !developerMode : mergeResources;\n }", "public abstract HistoricalEntity mergeHistoricalWrapper();", "protected void initMergedResources()\n {\n // Tell fiftyfive-wicket-js where to find custom JS libs for this app\n // (i.e. those that can be referenced via //= require <lib>).\n // This corresponds to src/main/resources/.../scripts.\n JavaScriptDependencySettings.get().addLibraryPath(\n WicketApplication.class, \"scripts\"\n );\n \n // Mount merged JS\n new MergedJavaScriptBuilder()\n .setPath(\"/scripts/all.js\")\n .addJQueryUI()\n .addLibrary(\"cookies\")\n .addLibrary(\"strftime\")\n .addLibrary(\"55_utils\")\n .addLibrary(\"jquery.55_utils\")\n .addAssociatedScript(BasePage.class)\n .addWicketAjaxLibraries()\n .build(this);\n }", "protected List<String> copyPoolQuestionsInternally(String userId, Pool source, Pool destination, boolean asHistory, Map<String, String> oldToNew,\n\t\t\tList<Translation> attachmentTranslations, boolean merge, Set<String> includeQuestions)\n\t{\n\t\tList<String> rv = new ArrayList<String>();\n\n\t\tList<QuestionImpl> questions = findPoolQuestions(source, QuestionService.FindQuestionsSort.cdate_a, null, null, null, null, null);\n\t\tfor (QuestionImpl question : questions)\n\t\t{\n\t\t\t// skip if we are being selective and don't want this one\n\t\t\tif ((includeQuestions != null) && (!includeQuestions.contains(question.getId()))) continue;\n\n\t\t\tQuestionImpl q = new QuestionImpl(question);\n\n\t\t\t// skip if asHistory and the question is invalid\n\t\t\tif ((asHistory) && (!q.getIsValid())) continue;\n\n\t\t\t// set the destination as the pool\n\t\t\tq.setPool(destination);\n\n\t\t\t// clear the id to make it new\n\t\t\tq.id = null;\n\n\t\t\tDate now = new Date();\n\n\t\t\t// set the new created and modified info\n\t\t\tq.getCreatedBy().setUserId(userId);\n\t\t\tq.getCreatedBy().setDate(now);\n\t\t\tq.getModifiedBy().setUserId(userId);\n\t\t\tq.getModifiedBy().setDate(now);\n\n\t\t\tif (asHistory) q.makeHistorical();\n\n\t\t\t// translate attachments and embedded media using attachmentTranslations\n\t\t\tif (attachmentTranslations != null)\n\t\t\t{\n\t\t\t\tq.getPresentation()\n\t\t\t\t\t\t.setText(this.attachmentService.translateEmbeddedReferences(q.getPresentation().getText(), attachmentTranslations));\n\t\t\t\tList<Reference> attachments = q.getPresentation().getAttachments();\n\t\t\t\tList<Reference> newAttachments = new ArrayList<Reference>();\n\t\t\t\tfor (Reference ref : attachments)\n\t\t\t\t{\n\t\t\t\t\tString newRef = ref.getReference();\n\t\t\t\t\tfor (Translation t : attachmentTranslations)\n\t\t\t\t\t{\n\t\t\t\t\t\tnewRef = t.translate(newRef);\n\t\t\t\t\t}\n\t\t\t\t\tnewAttachments.add(this.attachmentService.getReference(newRef));\n\t\t\t\t}\n\t\t\t\tq.getPresentation().setAttachments(newAttachments);\n\t\t\t\tq.setFeedback(this.attachmentService.translateEmbeddedReferences(q.getFeedback(), attachmentTranslations));\n\t\t\t\tq.setHints(this.attachmentService.translateEmbeddedReferences(q.getHints(), attachmentTranslations));\n\n\t\t\t\tString[] data = q.getTypeSpecificQuestion().getData();\n\t\t\t\tfor (int i = 0; i < data.length; i++)\n\t\t\t\t{\n\t\t\t\t\tdata[i] = this.attachmentService.translateEmbeddedReferences(data[i], attachmentTranslations);\n\t\t\t\t}\n\t\t\t\tq.getTypeSpecificQuestion().setData(data);\n\t\t\t}\n\n\t\t\t// if merging, if there is a question in the pool that \"matches\" this one, use it and skip the import\n\t\t\tboolean skipping = false;\n\t\t\tif (merge)\n\t\t\t{\n\t\t\t\tList<QuestionImpl> existingQuestions = findPoolQuestions(destination, FindQuestionsSort.cdate_a, q.getType(), null, null, null, null);\n\t\t\t\tfor (Question candidate : existingQuestions)\n\t\t\t\t{\n\t\t\t\t\tif (candidate.matches(q))\n\t\t\t\t\t{\n\t\t\t\t\t\t// will map references to this question.getId() , artifact.getProperties().get(\"id\");\n\t\t\t\t\t\tif (oldToNew != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toldToNew.put(question.getId(), candidate.getId());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// return without saving the new question - it will stay mint and be cleared\n\t\t\t\t\t\tskipping = true;\n\n\t\t\t\t\t\trv.add(candidate.getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// save\n\t\t\tif (!skipping)\n\t\t\t{\n\t\t\t\tsaveQuestion(q);\n\n\t\t\t\trv.add(q.getId());\n\n\t\t\t\tif (oldToNew != null)\n\t\t\t\t{\n\t\t\t\t\toldToNew.put(question.getId(), q.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rv;\n\t}", "public MergeEntries(BibEntry entryLeft, BibEntry entryRight, DefaultRadioButtonSelectionMode defaultRadioButtonSelectionMode) {\n leftEntry = entryLeft;\n rightEntry = entryRight;\n this.defaultRadioButtonSelectionMode = defaultRadioButtonSelectionMode;\n initialize();\n }", "public static DSEMergeManager create(EObject original, ChangeSet local, ChangeSet remote) {\n if (configuratorMapping == null)\n initializeConfiguration();\n return new DSEMergeManager(original, local, remote);\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ResourceMapper {\n\n ResourceDTO resourceToResourceDTO(Resource resource);\n\n Set<ResourceDTO> resourcesToResourceDTOs(Set<Resource> resources);\n\n default Resource resourceDTOToResource(ResourceDTO resourceDTO, Authority auth) {\n \tResource res = new Resource();\n res.setId(resourceDTO.getId());\n res.setName(resourceDTO.getName());\n res.setPermission(resourceDTO.getPermission());\n res.setAuthority(auth);\n\n return res;\n }\n\n default Set<Resource> resoursesFromResourceDTOs(Set<ResourceDTO> resourceDTOs, Authority auth) {\n return resourceDTOs.stream().map(resourceDTO -> {\n return resourceDTOToResource(resourceDTO, auth);\n }).collect(Collectors.toSet());\n }\n}", "protected CompositeInstanceContext mergeSelectedContext(CompositeInstanceContext newContext) {\n\t\tif (mergedContext == null) {\n//System.err.println(\"mergeSelectedContext(): creating new context\");\n\t\t\tmergedContext = newContext;\n\t\t}\n\t\telse {\n\t\t\tAttributeList mergedList = mergedContext.getAttributeList();\n\t\t\tIterator<Attribute> newListIterator = newContext.getAttributeList().values().iterator();\n\t\t\twhile (newListIterator.hasNext()) {\n\t\t\t\tAttribute a = newListIterator.next();\n\t\t\t\tAttributeTag tag = a.getTag();\n\t\t\t\tString mergedValue = Attribute.getSingleStringValueOrEmptyString(mergedList,tag);\n\t\t\t\tString newValue = a.getSingleStringValueOrEmptyString();\n\t\t\t\tif (!newValue.equals(mergedValue)) {\n\t\t\t\t\tString describeTag = tag + \" \" + mergedList.getDictionary().getFullNameFromTag(tag);\nslf4jlogger.info(\"mergeSelectedContext(): for \"+describeTag+\" values differ between existing merged value <\"+mergedValue+\"> and new value <\"+newValue+\">\");\n\t\t\t\t\tif (newValue.length() > 0 && (mergedValue.length() == 0 || isNonZeroLengthDummyValue(mergedValue))) {\nslf4jlogger.info(\"mergeSelectedContext(): for \"+describeTag+\" replacing absent/empty/dummy existing merged value with new value <\"+newValue+\">\");\n\t\t\t\t\t\tmergedList.put(a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mergedContext;\n\t}", "public Resource findNearestResource(){\n\t\tResource nearestResource = null;\n\t\tfloat distanceToCurrentResource = 0f;\n\t\tfor (Resource resource : MapData.getInstance().getResources()) {\n\t\t\tif(resource.isResourceMaxed()) continue;\n\t\t\tif (resource.getCenter().dst2(getCenter()) < 4000000) {\n\t\t\t\tif (nearestResource == null) {\n\t\t\t\t\tnearestResource = resource;\n\t\t\t\t\tdistanceToCurrentResource = nearestResource\n\t\t\t\t\t\t\t.getCenter().dst2(this.getCenter());\n\t\t\t\t} else {\n\t\t\t\t\tfloat distanceToNewResource = resource.getCenter()\n\t\t\t\t\t\t\t.dst2(this.getCenter());\n\t\t\t\t\tnearestResource = (distanceToNewResource < distanceToCurrentResource) ? resource\n\t\t\t\t\t\t\t: nearestResource;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nearestResource;\n\t}", "public static synchronized MoodsCreator getInstance(Resources resources){\n if(moodsCreator == null){\n moodsCreator = new MoodsCreator(resources);\n }\n return moodsCreator;\n }", "@Test\n public void overlappingSync() throws RepositoryException, PersistenceException {\n ResourceBuilder builder = context.build().withIntermediatePrimaryType(TYPE_UNSTRUCTURED);\n ResourceBuilder fromBuilder = builder.resource(\"/s/from\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED, \"attrroot\", \"rootval\");\n Resource toResource = fromBuilder.resource(\"a\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED).getCurrentParent();\n fromBuilder.resource(\"b\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED, \"attrb\", \"valb\");\n builder.commit();\n\n // JcrTestUtils.printResourceRecursivelyAsJson(context.resourceResolver().getResource(\"/s\"));\n syncronizer.update(fromBuilder.getCurrentParent(), toResource);\n toResource.getResourceResolver().adaptTo(Session.class).save();\n // JcrTestUtils.printResourceRecursivelyAsJson(context.resourceResolver().getResource(\"/s\"));\n\n assertEquals(\"rootval\", ResourceHandle.use(toResource).getProperty(\"attrroot\"));\n assertEquals(\"valb\", ResourceHandle.use(toResource).getProperty(\"b/attrb\"));\n // no infinite recursion:\n assertNull(ResourceHandle.use(toResource).getChild(\"a/a\"));\n // from/a/a exists, but that's a bit hard to prevent and\n }", "public JobResourceUpdateParameter withTags(Map<String, String> tags) {\n this.tags = tags;\n return this;\n }", "@Test\r\n\tpublic void resource_MoveTests() {\n\t\tLibraryNode srcLib = ml.createNewLibrary(pc, \"ResourceTestLib\");\r\n\t\tLibraryNode destLib = ml.createNewLibrary(pc, \"ResourceTestLib2\");\r\n\t\tBusinessObjectNode bo = null;\r\n\t\tfor (Node n : srcLib.getDescendants_LibraryMembers())\r\n\t\t\tif (n instanceof BusinessObjectNode) {\r\n\t\t\t\tbo = (BusinessObjectNode) n;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\tResourceNode resource = ml.addResource(bo);\r\n\t\tassertTrue(\"Resource created must not be null.\", resource != null);\r\n\t\tml.check(resource);\r\n\t\tml.check(srcLib);\r\n\r\n\t\t// When - moved to destination library\r\n\t\tsrcLib.moveMember(resource, destLib);\r\n\t\t// Then - it is moved and is valid\r\n\t\tassertTrue(!srcLib.contains(resource));\r\n\t\tassertTrue(destLib.contains(resource));\r\n\t\tml.check(resource);\r\n\t\tml.check(srcLib);\r\n\t\tml.check(destLib);\r\n\t}", "protected Resource newResource()\n\t{\n\t\tPackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),\n\t\t\tgetStyle());\n\t\tif (packageResource != null)\n\t\t{\n\t\t\tlocale = packageResource.getLocale();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"package resource [scope=\" + getScope() + \",name=\" +\n\t\t\t\tgetName() + \",locale=\" + getLocale() + \"style=\" + getStyle() + \"] not found\");\n\t\t}\n\t\treturn packageResource;\n\t}", "@Override\r\n\tpublic void add(Resources resources) {\n\t\t\r\n\t}", "public ResourcePoolImpl() {\r\n this((ResourcePool) null);\r\n }", "public static Resources getSharedResources() {\n return sharedResource;\n }", "@Override\n\tpublic Exchange aggregate(Exchange original, Exchange resource) {\n\t\t\n\t\tif (original==null){\n\n\t\t\treturn resource;\n\t\t}\n\n\t\tString messageID=original.getIn().getHeader(\"MessageID\", String.class);\n\t\t\n\t\t//Body modification done here to pass the final body \n\t\t\n\t\tString originalBody=original.getIn().getBody(String.class); \n\t\tString newBody=resource.getIn().getBody(String.class);\n\t\tString finalBody=originalBody+newBody;\n\n\t\tdebugLogger.debug(LoggingKeys.Splitter_Msg_Body,messageID,originalBody);\n\t\t\n\t\toriginal.getIn().setBody(finalBody);\n\t\t\n\n\t\toriginal.getIn().setHeader(Exchange.HTTP_QUERY, finalBody);\n\t\tdebugLogger.debug(LoggingKeys.Splitter_Msg_Final_Body,messageID,finalBody);\n\n\t\treturn original;\t\n\t}", "public ResourceRange withMin(Integer min) {\n this.min = min;\n return this;\n }", "protected ValidatableResponse createResource(String path, JSONObject newResource) throws JSONException {\n return given()\n .header(HEADER_AUTHORIZATION, authenticated())\n .contentType(ContentType.JSON)\n .body(newResource.toString())\n .when()\n .post(path)\n .then()\n .contentType(ContentType.JSON)\n .statusCode(201);\n }", "Ressource createRessource();", "public synchronized ISegmentReader getMergeReader() throws IOException {\n\t\tif (mMergeReader == null) {\n\t\t\tif (mReader != null) {\n\t\t\t\t// Just use the already opened non-merge reader\n\t\t\t\t// for merging. In the NRT case this saves us\n\t\t\t\t// pointless double-open:\n\t\t\t\t// Ref for us:\n\t\t\t\tmReader.increaseRef();\n\t\t\t\tmMergeReader = mReader;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// We steal returned ref:\n\t\t\t\tmMergeReader = mWriter.getContext().newSegmentReader(mInfo);\n\t\t\t\tif (mLiveDocs == null) \n\t\t\t\t\tmLiveDocs = mMergeReader.getLiveDocs();\n\t\t\t}\n\t\t}\n\n\t\t// Ref for caller\n\t\tmMergeReader.increaseRef();\n\t\treturn mMergeReader;\n\t}", "public default StreamPlus<DATA> mergeWith(Stream<DATA> anotherStream) {\n val streamPlus = streamPlus();\n val iteratorA = streamPlus.iterator();\n val iteratorB = StreamPlus.from(anotherStream).iterator();\n val resultStream = StreamPlusHelper.doMerge(iteratorA, iteratorB);\n resultStream.onClose(() -> {\n funcUnit0(() -> streamPlus.close()).runCarelessly();\n funcUnit0(() -> anotherStream.close()).runCarelessly();\n });\n return resultStream;\n }", "@Override\n public Image merge(Image a, Image b) {\n if (a.getCached() == null) {\n drawImage(a, 0, 0);\n }\n if (b.getCached() == null) {\n drawImage(b, 0, 0);\n }\n Object nativeImage = graphicsEnvironmentImpl.mergeImages(canvas, a, b, a.getCached(), b.getCached());\n Image merged = Image.create(getImageSource(nativeImage));\n merged.cache(nativeImage);\n return merged;\n }", "public ModifiableResource(Resource resource) {\n super(resource);\n }", "private MultiResourceBundle(ResourceBundle bundle) {\n this.bundles = new LinkedList<ResourceBundle>();\n merge(bundle);\n }", "private void mergeAnnotations(JsonObject targetNode, JsonObject sourceNode, JsonObject tree) {\n JsonArray annotationAttachments = sourceNode.has(\"annotationAttachments\")\n ? sourceNode.getAsJsonArray(\"annotationAttachments\")\n : sourceNode.getAsJsonArray(\"annAttachments\");\n for (JsonElement item : annotationAttachments) {\n JsonObject sourceNodeAttachment = item.getAsJsonObject();\n\n JsonObject matchedTargetNode = findAttachmentNode(targetNode, sourceNodeAttachment);\n\n if (matchedTargetNode != null) {\n if (sourceNodeAttachment.getAsJsonObject(\"expression\").get(\"kind\").getAsString()\n .equals(\"RecordLiteralExpr\") && matchedTargetNode.getAsJsonObject(\"expression\").get(\"kind\")\n .getAsString().equals(\"RecordLiteralExpr\")) {\n\n JsonObject sourceRecord = sourceNodeAttachment.getAsJsonObject(\"expression\");\n JsonObject matchedTargetRecord = matchedTargetNode.getAsJsonObject(\"expression\");\n\n if (sourceNodeAttachment.getAsJsonObject(\"annotationName\").get(\"value\").getAsString()\n .equals(\"MultiResourceInfo\")) {\n JsonArray sourceResourceInformations = sourceRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInformations = matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n // Get map values of the resourceInformation map in MultiResourceInfo annotation.\n for (JsonElement sourceResourceInfoItem : sourceResourceInformations) {\n JsonObject sourceResourceInfo = sourceResourceInfoItem.getAsJsonObject();\n JsonObject matchedTargetResourceInfo = null;\n for (JsonElement targetResourceInfoItem : targetResourceInformations) {\n JsonObject targetResourceInfo = targetResourceInfoItem.getAsJsonObject();\n if (targetResourceInfo.has(\"key\")\n && targetResourceInfo.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"Literal\")) {\n JsonObject targetResourceInfoKey = targetResourceInfo.getAsJsonObject(\"key\");\n JsonObject sourceResourceInfoKey = sourceResourceInfo.getAsJsonObject(\"key\");\n\n if (sourceResourceInfoKey.get(\"value\").getAsString()\n .equals(targetResourceInfoKey.get(\"value\").getAsString())) {\n matchedTargetResourceInfo = targetResourceInfo;\n }\n }\n }\n\n if (matchedTargetResourceInfo != null) {\n JsonArray sourceResourceInfoOperation = sourceResourceInfo.getAsJsonObject(\"value\")\n .getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInfoOperation = matchedTargetResourceInfo\n .getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n for (JsonElement keyValueItem : sourceResourceInfoOperation) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n for (JsonElement matchedKeyValueItem : targetResourceInfoOperation) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n targetResourceInfoOperation\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, firstTokenIndex);\n targetResourceInfoOperation.add(sourceKeyValue);\n } else {\n // Add new key value pair to the annotation record.\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, -1);\n targetResourceInfoOperation.add(sourceKeyValue);\n\n if (targetResourceInfoOperation.size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetResourceInfo\n .getAsJsonObject(\"value\"), tree, \"\", \",\", true, startIndex);\n }\n }\n }\n\n } else {\n FormattingSourceGen.reconcileWS(sourceResourceInfo, targetResourceInformations,\n tree, -1);\n targetResourceInformations.add(sourceResourceInfo);\n }\n }\n\n } else {\n for (JsonElement keyValueItem : sourceRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n\n for (JsonElement matchedKeyValueItem :\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, firstTokenIndex);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n } else {\n // Add the new record key value pair.\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, -1);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n\n if (matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetRecord, tree, \"\", \",\", true, startIndex);\n }\n }\n }\n }\n }\n } else {\n int startIndex = FormattingSourceGen.getStartPosition(targetNode, \"annAttachments\", -1);\n JsonArray targetAnnAttachments = targetNode.has(\"annotationAttachments\")\n ? targetNode.getAsJsonArray(\"annotationAttachments\")\n : targetNode.getAsJsonArray(\"annAttachments\");\n FormattingSourceGen.reconcileWS(sourceNodeAttachment, targetAnnAttachments, tree, startIndex);\n targetAnnAttachments.add(sourceNodeAttachment);\n }\n\n }\n }", "InformationResource createInformationResource();", "private void mergeServices(JsonObject originService, JsonObject targetService, JsonObject tree) {\n mergeAnnotations(originService, targetService, tree);\n List<JsonObject> targetServices = new ArrayList<>();\n\n for (JsonElement targetItem : targetService.getAsJsonArray(\"resources\")) {\n JsonObject targetResource = targetItem.getAsJsonObject();\n boolean matched = false;\n for (JsonElement originItem : originService.getAsJsonArray(\"resources\")) {\n JsonObject originResource = originItem.getAsJsonObject();\n if (matchResource(originResource, targetResource)) {\n matched = true;\n mergeAnnotations(originResource, targetResource, tree);\n }\n }\n\n if (!matched) {\n targetResource.getAsJsonObject(\"body\").add(\"statements\", new JsonArray());\n targetServices.add(targetResource);\n }\n }\n\n targetServices.forEach(resource -> {\n int startIndex = FormattingSourceGen.getStartPosition(originService, \"resources\", -1);\n FormattingSourceGen.reconcileWS(resource, originService.getAsJsonArray(\"resources\"), tree,\n startIndex);\n originService.getAsJsonArray(\"resources\").add(resource);\n });\n }", "private Resource deployResource(Resource developmentResource) throws Exception {\n List<Resource> releaseResources = findResources(m_releaseRepo, getIdentityVersionRequirement(developmentResource));\n if (releaseResources.size() > 0) {\n return deployReleasedResource(releaseResources.get(0));\n }\n else {\n return deploySnapshotResource(developmentResource);\n }\n }", "public void setResourceTo(ServiceCenterITComputingResource newResourceTo) {\n addPropertyValue(getResourcesProperty(), newResourceTo);\r\n }", "@Override\n public List<ResourceAllocation> allocate(ResourceConsumer consumer, List<? extends Resource> resources) {\n return null;\n }", "public LinksResource() {\n }", "public OperationResultInfoBaseResourceInner() {\n }", "public static void copyResource(final Resource source, final Resource dest,\n final FilterSetCollection filters, final Vector<FilterChain> filterChains,\n final boolean overwrite, final boolean preserveLastModified,\n final boolean append,\n final String inputEncoding, final String outputEncoding,\n final Project project)\n throws IOException {\n copyResource(source, dest, filters, filterChains, overwrite,\n preserveLastModified, append, inputEncoding,\n outputEncoding, project, /* force: */ false);\n }", "ResourceSelection createResourceSelection();", "public MergeEntries(BibEntry entryLeft, BibEntry entryRight, String headingLeft, String headingRight) {\n this(entryLeft, entryRight, headingLeft, headingRight, DefaultRadioButtonSelectionMode.LEFT);\n }", "private Image combine(Image piece, Image background) {\n\t\tif (piece == null) {\n\t\t\treturn background;\n\t\t}\n\t\tBufferedImage image = (BufferedImage) background;\n\t\tBufferedImage overlay = (BufferedImage) piece;\n\t\n\t\t// create the new image, canvas size is the max. of both image sizes\n\t\tint w = Math.max(image.getWidth(), overlay.getWidth());\n\t\tint h = Math.max(image.getHeight(), overlay.getHeight());\n\t\tBufferedImage combined = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\n\t\t// paint both images, preserving the alpha channels\n\t\tGraphics g = combined.getGraphics();\n\t\tg.drawImage(image, 0, 0, null);\n\t\tg.drawImage(overlay, 0, 0, null);\n\t\n\t\t// Save as new image\n\t\treturn combined;\n\t}", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrimary(Boolean primary) {\n this.primary = primary;\n return this;\n }", "private Resource deploySnapshotResource(Resource developmentResource) throws Exception {\n Version releasedBaseVersion = getReleasedBaseVersion(developmentResource);\n Resource snapshotResource = getHighestSnapshotResource(developmentResource, releasedBaseVersion);\n\n if (snapshotResource == null) {\n System.out.println(\"Uploading initial snapshot: \" + getString(developmentResource) + \" -> \" + getNextSnapshotVersion(releasedBaseVersion));\n return deploySnapshotResource(developmentResource, getNextSnapshotVersion(releasedBaseVersion));\n }\n\n System.out.println(\"Found existing snapshot: \" + getString(snapshotResource));\n if (getIdentity(developmentResource).equals(\"com.google.guava\")) {\n // FIXME workaround for BND#374\n System.out.println(\"Skipping snapshot diff on Google Guava to work around https://github.com/bndtools/bnd/issues/374\");\n return snapshotResource;\n }\n\n File developmentFile = m_developmentRepo.get(getIdentity(developmentResource), getVersion(developmentResource).toString(), Strategy.EXACT, null);\n File deployedFile = m_deploymentRepo.get(getIdentity(snapshotResource), getVersion(snapshotResource).toString(), Strategy.EXACT, null);\n\n boolean snapshotModified = false;\n if (getType(developmentResource).equals(\"osgi.bundle\")) {\n\n // Get a copy of the dep resource with the same version as the dev resource so we can diff diff.\n File comparableDeployedResource = getBundleWithNewVersion(deployedFile, getVersion(developmentResource).toString());\n\n // This may seem strange but the value in the dev resource manifest may be \"0\" which will not match\n // \"0.0.0\" during diff.\n File comparableDevelopmentResource = getBundleWithNewVersion(developmentFile, getVersion(developmentResource).toString());\n snapshotModified = jarsDiffer(comparableDeployedResource, comparableDevelopmentResource);\n }\n else {\n snapshotModified = filesDiffer(developmentFile, deployedFile);\n }\n\n if (snapshotModified) {\n System.out.println(\"Uploading new snapshot: \" + getString(developmentResource) + \" -> \" + getNextSnapshotVersion(getVersion(snapshotResource)));\n return deploySnapshotResource(developmentResource, getNextSnapshotVersion(getVersion(snapshotResource)));\n }\n else {\n System.out.println(\"Ignoring new snapshot: \" + getString(developmentResource));\n List<Resource> resultResources = findResources(m_deploymentRepo, getIdentityVersionRequirement(snapshotResource));\n if (resultResources == null || resultResources.size() == 0) {\n throw new IllegalStateException(\"Can not find target resource after put: \" + developmentResource);\n }\n return resultResources.get(0);\n }\n }", "private void m1688a(Resources resources) {\n WrappedDrawableState wrappedDrawableState = this.f1994b;\n if (wrappedDrawableState != null && wrappedDrawableState.f2002b != null) {\n setWrappedDrawable(this.f1994b.f2002b.newDrawable(resources));\n }\n }", "public Computation merge(ComputationTemplate template, ComputationTask task);", "public ResourceSpec subtract(final ResourceSpec other) {\n\t\tcheckNotNull(other, \"Cannot subtract null resources\");\n\n\t\tif (this.equals(UNKNOWN) || other.equals(UNKNOWN)) {\n\t\t\treturn UNKNOWN;\n\t\t}\n\n\t\tcheckArgument(other.lessThanOrEqual(this), \"Cannot subtract a larger ResourceSpec from this one.\");\n\n\t\tfinal ResourceSpec target = new ResourceSpec(\n\t\t\tthis.cpuCores.subtract(other.cpuCores),\n\t\t\tthis.taskHeapMemory.subtract(other.taskHeapMemory),\n\t\t\tthis.taskOffHeapMemory.subtract(other.taskOffHeapMemory),\n\t\t\tthis.managedMemory.subtract(other.managedMemory));\n\n\t\ttarget.extendedResources.putAll(extendedResources);\n\n\t\tfor (Resource resource : other.extendedResources.values()) {\n\t\t\ttarget.extendedResources.merge(resource.getName(), resource, (v1, v2) -> {\n\t\t\t\tfinal Resource subtracted = v1.subtract(v2);\n\t\t\t\treturn subtracted.getValue().compareTo(BigDecimal.ZERO) == 0 ? null : subtracted;\n\t\t\t});\n\t\t}\n\t\treturn target;\n\t}", "private InputStream merge(File srcFile, File deltaFile) throws IOException {\n \t\tInputStream result = null;\n \t\ttry {\n \t\t\tFileInputStream srcStream = new FileInputStream(srcFile);\n \t\t\tFileInputStream deltaStream = new FileInputStream(deltaFile);\n \t\t\tInputStream[] inputStreamArray = { srcStream, deltaStream };\n \n \t\t\tConfigurer configurer = new AttributeMergeConfigurer();\n \t\t\tresult = new ConfigurableXmlMerge(configurer).merge(inputStreamArray);\n \t\t} catch (Exception e) {\n \t\t\tlogger.error(\"Could not merge tenant configuration delta file: \" + deltaFile.getCanonicalPath(), e);\n \t\t}\n \t\t//\n \t\t// Try to save the merge output to a file that is suffixed with\n \t\t// \".merged.xml\" in the same directory\n \t\t// as the delta file.\n \t\t//\n \t\tif (result != null) {\n \t\t\tFile outputDir = deltaFile.getParentFile();\n \t\t\tString mergedFileName = outputDir.getAbsolutePath() + File.separator\n \t\t\t\t\t+ JEEServerDeployment.TENANT_BINDINGS_FILENAME_PREFIX + MERGED_SUFFIX;\n \t\t\tFile mergedOutFile = new File(mergedFileName);\n \t\t\ttry {\n \t\t\t\tFileUtils.copyInputStreamToFile(result, mergedOutFile);\n \t\t\t} catch (IOException e) {\n \t\t\t\tlogger.warn(\"Could not create a copy of the merged tenant configuration at: \" + mergedFileName, e);\n \t\t\t}\n \t\t\tresult.reset(); // reset the stream even if the file create failed.\n \t\t}\n \n \t\treturn result;\n \t}", "Optional<CompletableFuture<List<ResourceModel>>> generateResource(ResourceModel resource) throws IllegalIDException;", "private JPPFResourceWrapper loadResourceData0(Map<String, Object> map, boolean asResource) throws Exception\n\t{\n\t\tif (debugEnabled) log.debug(\"loading remote definition for resource [\" + map.get(\"name\") + \"], requestUuid = \" + requestUuid);\n\t\tJPPFResourceWrapper resource = loadRemoteData(map, false);\n\t\tif (debugEnabled) log.debug(\"remote definition for resource [\" + map.get(\"name\") + \"] \"+ (resource.getDefinition()==null ? \"not \" : \"\") + \"found\");\n\t\treturn resource;\n\t}", "Service_Resource createService_Resource();", "public <T1 extends IdentifiableResource<RESOURCE_LEVEL> & Secured, T2 extends IdentifiableResource<RESOURCE_LEVEL> & Secured>\n SecuredResource(T1 securityContext1, T2 securityContext2) {\n this.resourceId1 = securityContext1.getId();\n this.opLevel1 = securityContext1.getOpLevel();\n this.rootSecurityProvider1 = securityContext1.getRootSecurityProvider();\n this.resourceId2 = securityContext2.getId();\n this.opLevel2 = securityContext2.getOpLevel();\n this.rootSecurityProvider2 = securityContext2.getRootSecurityProvider();\n }", "interface WithTags {\n /**\n * Specifies the tags property: Resource tags.\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(Map<String, String> tags);\n }", "public void updateProductResourceMappings(API api, String organization, List<APIProductResource> productResources)\n throws APIManagementException {\n Map<String, URITemplate> apiResources = apiMgtDAO.getURITemplatesForAPI(api);\n\n for (APIProductResource productResource : productResources) {\n URITemplate uriTemplate = productResource.getUriTemplate();\n String productResourceKey = uriTemplate.getHTTPVerb() + \":\" + uriTemplate.getUriTemplate();\n\n //set new uri template ID to the product resource\n int updatedURITemplateId = apiResources.get(productResourceKey).getId();\n uriTemplate.setId(updatedURITemplateId);\n }\n\n apiMgtDAO.addAPIProductResourceMappings(productResources, organization, null);\n }", "public interface LinkOrResource {\n\n\tHalLink asLink();\n\n\tdefault Optional<HalResource> asResource(){\n\t\tif(this instanceof HalResource){\n\t\t\treturn Optional.of((HalResource) this);\n\t\t}else\n\t\t\treturn Optional.empty();\n\t}\n}", "Merge() {\n //Unused Constructor.\n }", "public void addResource(S... resources) {\r\n\t\tfor (S resource : resources) {\r\n\t\t\tthis.resourcesList.add(resource);\r\n\t\t}\t\t\r\n\t}", "public MergeEntries(BibEntry entryLeft, BibEntry entryRight) {\n this(entryLeft, entryRight, DefaultRadioButtonSelectionMode.LEFT);\n }", "public GenericResource() {\n }", "public List<Relation> getRelations(Resource resource1, Resource resource2) throws IOException\n\t{\n\t\t// Before resolve the redirects\n\t\tString redir1 = rindex.getRedirect(resource1.getURI());\n\t\tif (redir1 != null && !redir1.isEmpty())\n\t\t\tresource1.setURI(redir1);\n\t\tString redir2 = rindex.getRedirect(resource2.getURI());\n\t\tif (redir2 != null && !redir2.isEmpty())\n\t\t\tresource2.setURI(redir2);\n\n\t\tList<Relation> relations = new ArrayList<Relation>();\n\n\t\tif (resource1.isEmpty() || resource2.isEmpty())\n\t\t\treturn relations;\n\n\t\t// Look for relation between the pair\n\t\tHashSet<String> relSet = dbp.getRelations(resource1.getURI(), resource2.getURI());\n\t\tif (relSet != null)\n\t\t{\n\t\t\tResource relation = null;\n\t\t\tRelation predicate = null;\n\t\t\tfor (String rel : relSet)\n\t\t\t{\n\t\t\t\tif (!rel.equals(\"http://dbpedia.org/ontology/wikiPageWikiLink\"))\n\t\t\t\t{\n\t\t\t\t\tString[] split = rel.split(\"/\");\n\t\t\t\t\tString relName = split[split.length - 1];\n\t\t\t\t\trelation = new Resource(rel, relName);\n\t\t\t\t\tpredicate = new Relation(resource1, resource2, relation);\n\t\t\t\t\trelations.add(predicate);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (relations == null || relations.size() == 0)\n\t\t\t_log.debug(\"None relation found! For: \" + resource1.getURI() + \" -- \" + resource2.getURI());\n\n\t\treturn relations;\n\t}", "@Override\n\tpublic IPredicate merge(final Collection<IPredicate> states) {\n\n\t\tfinal Set<HcPredicateSymbol> mergedLocations = new HashSet<>();\n\t\tstates.stream().filter(s -> s instanceof HCPredicate)\n\t\t\t\t.forEach(hcp -> mergedLocations.addAll(((HCPredicate) hcp).getHcPredicateSymbols()));\n\n\t\tfinal IPredicate mergedPred = mPredicateFactory.or(true, states);\n\t\tfinal Term mergedFormula = mergedPred.getFormula();\n\n//\t\tTerm mergedFormula = mMgdScript.getScript().term(\"false\");\n\n//\t\tList<TermVariable> varsForHcPred = null;\n\n//\t\tfor (final IPredicate pred : states) {\n//\t\t\tif (mPredicateFactory.isDontCare(pred)) {\n//\t\t\t\treturn pred;\n//\t\t\t}\n\n//\t\t\tif (pred instanceof HCPredicate) {\n//\t\t\t\tmergedLocations.addAll(((HCPredicate) pred).getHcPredicateSymbols());\n//\t\t\t\tassert varsForHcPred == null || varsForHcPred.equals(((HCPredicate) pred).getSignature()) : \"merging \"\n//\t\t\t\t\t\t+ \"predicates with a different signature. Does that make sense??\";\n//\t\t\t\tvarsForHcPred = ((HCPredicate) pred).getSignature();\n//\t\t\t}\n//\t\t\tmergedFormula = mSimplifier.getSimplifiedTerm(\n//\t\t\t\t\tSmtUtils.or(mMgdScript.getScript(), mergedFormula, pred.getFormula()));\n//\t\t}\n\t\tif (mergedLocations.isEmpty()) {\n\t\t\treturn mPredicateFactory.newPredicate(mergedFormula);\n\t\t} else if (mPredicateFactory.isDontCare(mergedFormula)) {\n\t\t\treturn mPredicateFactory.newPredicate(mergedLocations, mergedFormula, Collections.emptyList());\n\t\t} else {\n\t\t\treturn mPredicateFactory.newPredicate(mergedLocations, mergedFormula,\n\t\t\t\t\tArrays.asList(mergedFormula.getFreeVars()));\n\t\t}\n\t}", "public void mergeTemplate(final Study existingTemplate, final Study newTemplate) {\n if (existingTemplate == null) {\n templatePostProcessing(newTemplate);\n }//FIXME:Saurabh: implement the logic of merging two templates\n \n }", "public Resource2Builder but() {\n return (Resource2Builder)clone();\n }", "public SourceMapResourceHandler(ResourceHandler wrapped) {\n\t\tsuper(wrapped);\n\t\tsourceMapPattern = getInitParameterOrDefault(PARAM_NAME_SOURCE_MAP_PATTERN, DEFAULT_SOURCE_MAP_PATTERN);\n\t}", "public interface ResourceFactory {\n\n /**\n * This function makes an instance of a predefined class which the\n * pool should consist of. The function should handle all initializing\n * of the object.\n * @return A pool object.\n */\n public Object makeResource();\n\n /**\n * This function closes a pool object. This could be closing of an\n * database connection or termination of a thread.\n */\n public void closeResource(Object resource);\n\n public String debugName();\n\n int maxWaitSecBeforeCreatingNewResource();\n}", "protected synchronized static UResourceBundle instantiateBundle(String baseName, String localeID,\n ClassLoader root, boolean disableFallback){\n ULocale defaultLocale = ULocale.getDefault();\n String localeName = localeID;\n if(localeName.indexOf('@')>0){\n localeName = ULocale.getBaseName(localeID);\n }\n String fullName = \"NULL\";\n //String fullName = ICUResourceBundleReader.getFullName(baseName, localeName);\n ICUResourceBundle b = (ICUResourceBundle)loadFromCache(root, fullName, defaultLocale);\n\n // here we assume that java type resource bundle organization\n // is required then the base name contains '.' else\n // the resource organization is of ICU type\n // so clients can instantiate resources of the type\n // com.mycompany.data.MyLocaleElements_en.res and\n // com.mycompany.data.MyLocaleElements.res\n //\n final String rootLocale = (baseName.indexOf('.')==-1) ? \"root\" : \"\";\n final String defaultID = ULocale.getDefault().toString();\n\n if(localeName.equals(\"\")){\n localeName = rootLocale;\n }\n if(DEBUG) System.out.println(\"Creating \"+fullName+ \" currently b is \"+b);\n if (b == null) {\n b = ICUResourceBundle.createBundle(baseName, localeName, root);\n\n if(DEBUG)System.out.println(\"The bundle created is: \"+b+\" and disableFallback=\"+disableFallback+\" and bundle.getNoFallback=\"+(b!=null && b.getNoFallback()));\n if(disableFallback || (b!=null && b.getNoFallback())){\n addToCache(root, fullName, defaultLocale, b);\n // no fallback because the caller said so or because the bundle says so\n return b;\n }\n\n // fallback to locale ID parent\n if(b == null){\n int i = localeName.lastIndexOf('_');\n if (i != -1) {\n String temp = localeName.substring(0, i);\n b = (ICUResourceBundle)instantiateBundle(baseName, temp, root, disableFallback);\n if(b!=null && b.getULocale().equals(temp)){\n b.setLoadingStatus(ICUResourceBundle.FROM_FALLBACK);\n }\n }else{\n if(defaultID.indexOf(localeName)==-1){\n b = (ICUResourceBundle)instantiateBundle(baseName, defaultID, root, disableFallback);\n if(b!=null){\n b.setLoadingStatus(ICUResourceBundle.FROM_DEFAULT);\n }\n }else if(rootLocale.length()!=0){\n b = ICUResourceBundle.createBundle(baseName, rootLocale, root);\n if(b!=null){\n b.setLoadingStatus(ICUResourceBundle.FROM_ROOT);\n }\n }\n }\n }else{\n UResourceBundle parent = null;\n localeName = b.getLocaleID();\n int i = localeName.lastIndexOf('_');\n\n addToCache(root, fullName, defaultLocale, b);\n\n if (i != -1) {\n parent = instantiateBundle(baseName, localeName.substring(0, i), root, disableFallback);\n }else if(!localeName.equals(rootLocale)){\n parent = instantiateBundle(baseName, rootLocale, root, true);\n }\n\n if(!b.equals(parent)){\n b.setParent(parent);\n }\n }\n }\n return b;\n }", "public void merge(BundleClassLoadersContext other) {\n\n extensionDirs = ImmutableList.copyOf(Stream.concat(extensionDirs.stream(),\n other.extensionDirs.stream().filter((x) -> !extensionDirs.contains(x)))\n .collect(Collectors.toList()));\n bundles = ImmutableMap.copyOf(\n Stream.of(bundles, other.bundles).map(Map::entrySet).flatMap(Collection::stream)\n .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (s, a) -> s)));\n }" ]
[ "0.58697575", "0.5673236", "0.5241216", "0.5070621", "0.5023477", "0.49731624", "0.49007362", "0.47752348", "0.47467282", "0.4740289", "0.47259966", "0.47038004", "0.4652216", "0.46202642", "0.45579714", "0.44507408", "0.44061866", "0.4403017", "0.4371536", "0.43561712", "0.43398482", "0.4279654", "0.42757487", "0.4250958", "0.424234", "0.42152044", "0.42115837", "0.42081407", "0.42042974", "0.4197151", "0.41855827", "0.4183571", "0.41735968", "0.4158063", "0.41319573", "0.41301933", "0.4106585", "0.4084178", "0.40715462", "0.40689906", "0.4058458", "0.40505922", "0.40492907", "0.40429989", "0.4036796", "0.40283343", "0.40152296", "0.40093333", "0.39966825", "0.39960843", "0.3994659", "0.3980499", "0.39800093", "0.39796734", "0.39728075", "0.39559257", "0.3955572", "0.3951815", "0.39509103", "0.3949411", "0.3944828", "0.39435717", "0.39425698", "0.39335787", "0.39271408", "0.39135325", "0.39086208", "0.3903796", "0.39008626", "0.39004055", "0.38980088", "0.3892172", "0.38900658", "0.3889454", "0.38879916", "0.38820526", "0.38814428", "0.38630515", "0.38627297", "0.385931", "0.38534406", "0.38504568", "0.38491043", "0.38460842", "0.38439193", "0.38426527", "0.38382244", "0.38338235", "0.383174", "0.38302973", "0.38236162", "0.38174474", "0.38174194", "0.3815241", "0.38130367", "0.38126442", "0.38099495", "0.38073495", "0.38067883", "0.3800741" ]
0.8046774
0
Adaptor override to provide merging. If the type to adapt to is Map or ValueMap, a MergedValueMap is returned for the primaryResource and secondaryResource;
@Override public <Type> Type adaptTo(Class<Type> type) { if (secondaryResource != null && (type == ValueMap.class || type == Map.class)) { if (properties != null) { return (Type) properties; } ValueMap contentMap = primaryResource.adaptTo(ValueMap.class); ValueMap assetMap = secondaryResource.adaptTo(ValueMap.class); if (type == ValueMap.class) { properties = new MergingValueMap(contentMap, assetMap); } else if (type == Map.class) { properties = new MergingValueMap(contentMap != null ? new ValueMapDecorator(contentMap) : ValueMap.EMPTY, assetMap != null ? new ValueMapDecorator(assetMap) : ValueMap.EMPTY); } return (Type) properties; } return super.adaptTo(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MergingResourceWrapper(Resource primaryResource, Resource secondaryResource) {\n super(primaryResource != null ? primaryResource : secondaryResource);\n if (primaryResource == null && secondaryResource == null) {\n throw new IllegalArgumentException(\"must wrap at least one resource\");\n }\n this.primaryResource = primaryResource != null ? primaryResource : secondaryResource;\n this.secondaryResource = primaryResource != null ? secondaryResource : null;\n }", "@Override\n\tprotected void merge(Object in1, Object in2, Object out) {\n\t\t\n\t}", "public ResourceSpec merge(final ResourceSpec other) {\n\t\tcheckNotNull(other, \"Cannot merge with null resources\");\n\n\t\tif (this.equals(UNKNOWN) || other.equals(UNKNOWN)) {\n\t\t\treturn UNKNOWN;\n\t\t}\n\n\t\tResourceSpec target = new ResourceSpec(\n\t\t\tthis.cpuCores.merge(other.cpuCores),\n\t\t\tthis.taskHeapMemory.add(other.taskHeapMemory),\n\t\t\tthis.taskOffHeapMemory.add(other.taskOffHeapMemory),\n\t\t\tthis.managedMemory.add(other.managedMemory));\n\t\ttarget.extendedResources.putAll(extendedResources);\n\t\tfor (Resource resource : other.extendedResources.values()) {\n\t\t\ttarget.extendedResources.merge(resource.getName(), resource, (v1, v2) -> v1.merge(v2));\n\t\t}\n\t\treturn target;\n\t}", "public ResourceMount autodetectMerging() {\n\t\t_merge = null;\n\t\treturn this;\n\t}", "@Override\n public Resource getChild(String relPath) {\n\n if (secondaryResource != null) {\n\n if (childCache.containsKey(relPath)) {\n return childCache.get(relPath);\n }\n\n Resource retVal = null;\n Resource secondaryChild = secondaryResource.getChild(relPath);\n Resource primaryChild = primaryResource.getChild(relPath);\n if (secondaryChild != null && primaryChild != null) {\n retVal = new MergingResourceWrapper(primaryChild, secondaryChild);\n } else if (secondaryChild != null && primaryChild == null) {\n retVal = secondaryChild;\n } else {\n retVal = primaryChild;\n }\n\n childCache.put(relPath, retVal);\n\n return retVal;\n\n }\n\n return super.getChild(relPath);\n }", "public T merge ( T object );", "public void merge( Resource r )\n\t{\n\t\tr.transter(this, r.amount);\n\t\tr.recycle();\n\t}", "@Override\n\tpublic <T> T merge(T entity) {\n\t\treturn null;\n\t}", "public Item merge(Item other);", "public void merge(T entity) {\n\t\t\n\t}", "@Override\n public abstract void merge(Mergeable merge);", "@Override\n\tpublic T merge(T obj) throws Exception {\n\t\treturn null;\n\t}", "public Object merge(Object obj) throws HibException;", "@Override\n\tpublic L mergeIntoPersisted(R root, L entity) {\n\t\treturn entity;\n\t}", "public static JsonValue merge(JsonValue v1, JsonValue v2) {\n\t\tif (v1 == null && v2 == null)\n\t\t\treturn JsonValue.NULL;\n\n\t\tif (v1 == null)\n\t\t\treturn v2;\n\t\tif (v2 == null)\n\t\t\treturn v1;\n\n\t\tif (v1.isObject() && v2.isObject())\n\t\t\treturn JsonTools.mergeObject(v1.asObject(), v2.asObject());\n\n\t\tif (v1.isArray() && v2.isArray())\n\t\t\treturn JsonTools.mergeArray(v1.asArray(), v2.asArray());\n\n\t\treturn v1;\n\t}", "public interface Mergeable<T extends Mergeable>\n{\n /**\n * Performs merge of this object with another object of the same type.\n * Returns this object as a result of the performed merge.\n *\n * @param object object to merge into this one\n * @return this object as a result of the performed merge\n */\n public T merge ( T object );\n}", "protected CompositeInstanceContext mergeSelectedContext(CompositeInstanceContext newContext) {\n\t\tif (mergedContext == null) {\n//System.err.println(\"mergeSelectedContext(): creating new context\");\n\t\t\tmergedContext = newContext;\n\t\t}\n\t\telse {\n\t\t\tAttributeList mergedList = mergedContext.getAttributeList();\n\t\t\tIterator<Attribute> newListIterator = newContext.getAttributeList().values().iterator();\n\t\t\twhile (newListIterator.hasNext()) {\n\t\t\t\tAttribute a = newListIterator.next();\n\t\t\t\tAttributeTag tag = a.getTag();\n\t\t\t\tString mergedValue = Attribute.getSingleStringValueOrEmptyString(mergedList,tag);\n\t\t\t\tString newValue = a.getSingleStringValueOrEmptyString();\n\t\t\t\tif (!newValue.equals(mergedValue)) {\n\t\t\t\t\tString describeTag = tag + \" \" + mergedList.getDictionary().getFullNameFromTag(tag);\nslf4jlogger.info(\"mergeSelectedContext(): for \"+describeTag+\" values differ between existing merged value <\"+mergedValue+\"> and new value <\"+newValue+\">\");\n\t\t\t\t\tif (newValue.length() > 0 && (mergedValue.length() == 0 || isNonZeroLengthDummyValue(mergedValue))) {\nslf4jlogger.info(\"mergeSelectedContext(): for \"+describeTag+\" replacing absent/empty/dummy existing merged value with new value <\"+newValue+\">\");\n\t\t\t\t\t\tmergedList.put(a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mergedContext;\n\t}", "void merge(T other);", "@Override\n protected BackendEntry mergeEntries(BackendEntry e1, BackendEntry e2) {\n\n UltraSearchBackendEntry current = (UltraSearchBackendEntry) e1;\n UltraSearchBackendEntry next = (UltraSearchBackendEntry) e2;\n\n E.checkState(current == null || current.type().isVertex(),\n \"The current entry must be null or VERTEX\");\n E.checkState(next != null && next.type().isEdge(),\n \"The next entry must be EDGE\");\n\n if (current != null) {\n Id nextVertexId = IdGenerator.of(\n next.<String>column(HugeKeys.OWNER_VERTEX));\n if (current.id().equals(nextVertexId)) {\n current.subRow(next.row());\n return current;\n }\n }\n\n return this.wrapByVertex(next);\n }", "Document mergeValues(List<Document> documents) throws ResourcesMergingException;", "public abstract HistoricalEntity mergeHistoricalWrapper();", "T merge(T x);", "Mapper<T, T2> relate(Customizable customizable);", "@Override\n\tpublic Rent merge(Rent rentOriginalBD, Rent rentModif) {\n\t\tvalidate(rentModif);\n\n\t\tRent rentMapping = null;\n\n\t\t// IHM send a sale\n\t\tif (rentModif != null) {\n\t\t\t// Map field only if sale found and saleModif (ihm) is not null\n\t\t\tif (rentOriginalBD != null) {\n\t\t\t\trentMapping = rentOriginalBD;\n\t\t\t\tmapper.map(rentModif, rentMapping);\n\t\t\t}\n\t\t\t// no sale in database and ihm is not null\n\t\t\telse if (rentOriginalBD == null) {\n\t\t\t\trentMapping = rentModif;\n\t\t\t}\n\n\t\t} else {\n\t\t\t// ihm null and database contain sale => remove sale in database\n\t\t\tif (rentOriginalBD != null) {\n\t\t\t\tremove(rentOriginalBD);\n\t\t\t}\n\t\t}\n\n\t\treturn rentMapping;\n\t}", "public T caseMerge(Merge object) {\n\t\treturn null;\n\t}", "public Builder mergeRegisterRes(Register.Res value) {\n copyOnWrite();\n instance.mergeRegisterRes(value);\n return this;\n }", "@Override\r\n\tpublic void merge(List<EObject> sources, List<EObject> targets) {\n\t\tcontext = targets.get(0).eResource().getResourceSet();\r\n\r\n\t\tsuper.merge(sources, targets);\r\n\t}", "public static ResourceManager mergeProperties(ResourceManager first, ResourceManager second) {\n Properties firstProps = first.getProperties();\n Properties secondProps = second.getProperties();\n\n Properties newProps = new Properties();\n\n for (String key : firstProps.stringPropertyNames())\n newProps.put(key, firstProps.getProperty(key));\n\n for (String key : secondProps.stringPropertyNames()) {\n // if ( newProps.containsKey( key ) )\n // throw new IllegalArgumentException( \"ERROR: key '\" + key +\n // \"' was already set in first ResourceManager.\" );\n\n newProps.put(key, secondProps.getProperty(key));\n }\n\n return new ResourceManager(newProps);\n }", "private void mergeAnnotations(JsonObject targetNode, JsonObject sourceNode, JsonObject tree) {\n JsonArray annotationAttachments = sourceNode.has(\"annotationAttachments\")\n ? sourceNode.getAsJsonArray(\"annotationAttachments\")\n : sourceNode.getAsJsonArray(\"annAttachments\");\n for (JsonElement item : annotationAttachments) {\n JsonObject sourceNodeAttachment = item.getAsJsonObject();\n\n JsonObject matchedTargetNode = findAttachmentNode(targetNode, sourceNodeAttachment);\n\n if (matchedTargetNode != null) {\n if (sourceNodeAttachment.getAsJsonObject(\"expression\").get(\"kind\").getAsString()\n .equals(\"RecordLiteralExpr\") && matchedTargetNode.getAsJsonObject(\"expression\").get(\"kind\")\n .getAsString().equals(\"RecordLiteralExpr\")) {\n\n JsonObject sourceRecord = sourceNodeAttachment.getAsJsonObject(\"expression\");\n JsonObject matchedTargetRecord = matchedTargetNode.getAsJsonObject(\"expression\");\n\n if (sourceNodeAttachment.getAsJsonObject(\"annotationName\").get(\"value\").getAsString()\n .equals(\"MultiResourceInfo\")) {\n JsonArray sourceResourceInformations = sourceRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInformations = matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n // Get map values of the resourceInformation map in MultiResourceInfo annotation.\n for (JsonElement sourceResourceInfoItem : sourceResourceInformations) {\n JsonObject sourceResourceInfo = sourceResourceInfoItem.getAsJsonObject();\n JsonObject matchedTargetResourceInfo = null;\n for (JsonElement targetResourceInfoItem : targetResourceInformations) {\n JsonObject targetResourceInfo = targetResourceInfoItem.getAsJsonObject();\n if (targetResourceInfo.has(\"key\")\n && targetResourceInfo.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"Literal\")) {\n JsonObject targetResourceInfoKey = targetResourceInfo.getAsJsonObject(\"key\");\n JsonObject sourceResourceInfoKey = sourceResourceInfo.getAsJsonObject(\"key\");\n\n if (sourceResourceInfoKey.get(\"value\").getAsString()\n .equals(targetResourceInfoKey.get(\"value\").getAsString())) {\n matchedTargetResourceInfo = targetResourceInfo;\n }\n }\n }\n\n if (matchedTargetResourceInfo != null) {\n JsonArray sourceResourceInfoOperation = sourceResourceInfo.getAsJsonObject(\"value\")\n .getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInfoOperation = matchedTargetResourceInfo\n .getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n for (JsonElement keyValueItem : sourceResourceInfoOperation) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n for (JsonElement matchedKeyValueItem : targetResourceInfoOperation) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n targetResourceInfoOperation\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, firstTokenIndex);\n targetResourceInfoOperation.add(sourceKeyValue);\n } else {\n // Add new key value pair to the annotation record.\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, -1);\n targetResourceInfoOperation.add(sourceKeyValue);\n\n if (targetResourceInfoOperation.size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetResourceInfo\n .getAsJsonObject(\"value\"), tree, \"\", \",\", true, startIndex);\n }\n }\n }\n\n } else {\n FormattingSourceGen.reconcileWS(sourceResourceInfo, targetResourceInformations,\n tree, -1);\n targetResourceInformations.add(sourceResourceInfo);\n }\n }\n\n } else {\n for (JsonElement keyValueItem : sourceRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n\n for (JsonElement matchedKeyValueItem :\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, firstTokenIndex);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n } else {\n // Add the new record key value pair.\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, -1);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n\n if (matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetRecord, tree, \"\", \",\", true, startIndex);\n }\n }\n }\n }\n }\n } else {\n int startIndex = FormattingSourceGen.getStartPosition(targetNode, \"annAttachments\", -1);\n JsonArray targetAnnAttachments = targetNode.has(\"annotationAttachments\")\n ? targetNode.getAsJsonArray(\"annotationAttachments\")\n : targetNode.getAsJsonArray(\"annAttachments\");\n FormattingSourceGen.reconcileWS(sourceNodeAttachment, targetAnnAttachments, tree, startIndex);\n targetAnnAttachments.add(sourceNodeAttachment);\n }\n\n }\n }", "static Feature mergeFeature(final Feature feature,final FeatureType newFeatureType, final Map<Name, ObjectConverter> conversionMap)\n throws NonconvertibleObjectException {\n\n if(conversionMap == null){\n return feature;\n }\n\n final Feature mergedFeature = FeatureUtilities.defaultFeature(newFeatureType, feature.getIdentifier().getID());\n\n for (Map.Entry<Name,ObjectConverter> entry : conversionMap.entrySet()) {\n if(entry.getValue() == null){\n mergedFeature.getProperty(entry.getKey()).setValue(feature.getProperty(entry.getKey()).getValue());\n }else{\n mergedFeature.getProperty(entry.getKey()).setValue(entry.getValue().convert(feature.getProperty(entry.getKey()).getValue()));\n }\n\n }\n return mergedFeature;\n }", "private UriKeyMap merge(final UriKeyMap acc, final String key, final String ramlKey)\n\t{\n\n\t\tif (!acc.containsKey(ramlKey))\n\t\t{\n\t\t\tacc.put(ramlKey, UriKeyMap.noUri(_collector.get(key)));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmerge((UriKeyMap) getMap(acc, ramlKey), _collector.get(key));\n\t\t}\n\n\t\treturn acc;\n\t}", "@Override\n protected void mergeModelBase_Repositories( ModelBase target, ModelBase source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n List<Repository> src = source.getRepositories();\n if ( !src.isEmpty() )\n {\n List<Repository> tgt = target.getRepositories();\n Map<Object, Repository> merged = new LinkedHashMap<Object, Repository>( ( src.size() + tgt.size() ) * 2 );\n \n List<Repository> dominant, recessive;\n if ( sourceDominant )\n {\n dominant = src;\n recessive = tgt;\n }\n else\n {\n dominant = tgt;\n recessive = src;\n }\n \n for ( Iterator<Repository> it = dominant.iterator(); it.hasNext(); )\n {\n Repository element = it.next();\n Object key = getRepositoryKey( element );\n merged.put( key, element );\n }\n \n for ( Iterator<Repository> it = recessive.iterator(); it.hasNext(); )\n {\n Repository element = it.next();\n Object key = getRepositoryKey( element );\n if ( !merged.containsKey( key ) )\n {\n merged.put( key, element );\n }\n }\n \n target.setRepositories( new ArrayList<Repository>( merged.values() ) );\n }\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ResourceMapper {\n\n ResourceDTO resourceToResourceDTO(Resource resource);\n\n Set<ResourceDTO> resourcesToResourceDTOs(Set<Resource> resources);\n\n default Resource resourceDTOToResource(ResourceDTO resourceDTO, Authority auth) {\n \tResource res = new Resource();\n res.setId(resourceDTO.getId());\n res.setName(resourceDTO.getName());\n res.setPermission(resourceDTO.getPermission());\n res.setAuthority(auth);\n\n return res;\n }\n\n default Set<Resource> resoursesFromResourceDTOs(Set<ResourceDTO> resourceDTOs, Authority auth) {\n return resourceDTOs.stream().map(resourceDTO -> {\n return resourceDTOToResource(resourceDTO, auth);\n }).collect(Collectors.toSet());\n }\n}", "private void updateMergedEntry() {\n // Check if the type has changed\n if (!identicalTypes && !typeRadioButtons.isEmpty() && typeRadioButtons.get(0).isSelected()) {\n mergedEntry.setType(leftEntry.getType());\n } else {\n mergedEntry.setType(rightEntry.getType());\n }\n\n // Check the potentially different fields\n for (Field field : differentFields) {\n if (!radioButtons.containsKey(field)) {\n // May happen during initialization -> just ignore\n continue;\n }\n if (radioButtons.get(field).get(LEFT_RADIOBUTTON_INDEX).isSelected()) {\n mergedEntry.setField(field, leftEntry.getField(field).get()); // Will only happen if field exists\n } else if (radioButtons.get(field).get(RIGHT_RADIOBUTTON_INDEX).isSelected()) {\n mergedEntry.setField(field, rightEntry.getField(field).get()); // Will only happen if field exists\n } else {\n mergedEntry.clearField(field);\n }\n }\n }", "public interface DataContext extends Map<String, Map<String, String>>, Mergable<DataContext> {\n Map<String,Map<String,String>> getData();\n\n default Converter<String, String> replaceDataReferencesConverter() {\n return DataContextUtils.replaceDataReferencesConverter(getData());\n }\n\n /**\n * Create a deep copy\n *\n * @return a new object\n */\n DataContext copy();\n\n\n /**\n * Return a converter that can expand the property references within a string\n *\n * @param converter secondary converter to apply to property values before replacing in a string\n * @param failOnUnexpanded if true, fail if a property value cannot be expanded\n *\n * @return a Converter to expand property values within a string\n */\n default Converter<String, String> replaceDataReferencesConverter(\n final Converter<String, String> converter,\n final boolean failOnUnexpanded\n )\n {\n return DataContextUtils.replaceDataReferencesConverter(getData(), converter, failOnUnexpanded);\n }\n\n\n default String[] replaceDataReferences(\n final String[] args,\n final Converter<String, String> converter,\n boolean failIfUnexpanded\n )\n {\n return replaceDataReferences(args, converter, failIfUnexpanded, false);\n }\n\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param args argument string array\n * @param converter converter\n * @param failIfUnexpanded true to fail if property is not found\n * @param blankIfUnexpanded true to use blank if property is not found\n *\n * @return string array with replaced embedded properties\n */\n default String[] replaceDataReferences(\n final String[] args,\n Converter<String, String> converter,\n boolean failIfUnexpanded,\n boolean blankIfUnexpanded\n )\n {\n return DataContextUtils.replaceDataReferencesInArray(args, getData(), converter, failIfUnexpanded, blankIfUnexpanded);\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param args argument string array\n *\n * @return string array with replaced embedded properties\n */\n default String[] replaceDataReferences(final String[] args) {\n return replaceDataReferences(args, null, false);\n }\n\n /**\n * Recursively replace data references in the values in a map which contains either string, collection or Map\n * values.\n *\n * @param input input map\n *\n * @return Map with all string values having references replaced\n */\n default Map<String, Object> replaceDataReferences(final Map<String, Object> input) {\n return DataContextUtils.replaceDataReferences(input, getData());\n }\n\n default String resolve(\n final String group,\n final String key\n )\n {\n return resolve(group, key, null);\n }\n\n /**\n * Return the resolved value from the context\n *\n * @param group group name\n * @param key key name\n * @param defaultValue default if the value is not resolvable\n *\n * @return resolved value or default\n */\n default String resolve(\n final String group,\n final String key,\n final String defaultValue\n )\n {\n Map<String, Map<String, String>> data = getData();\n return null != data && null != data.get(group) && null != data.get(group).get(key)\n ? data.get(group).get(key)\n : defaultValue;\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param input input string\n *\n * @return string with values substituted, or original string\n */\n default String replaceDataReferences(final String input) {\n return DataContextUtils.replaceDataReferencesInString(input, getData());\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param input input string\n * @param converter converter to encode/convert the expanded values\n * @param failOnUnexpanded true to fail if a reference is not found\n *\n * @return string with values substituted, or original string\n */\n default String replaceDataReferences(\n final String input,\n final Converter<String, String> converter,\n boolean failOnUnexpanded\n )\n {\n return replaceDataReferences(input, converter, failOnUnexpanded, false);\n }\n\n /**\n * Replace the embedded properties of the form '${key.name}' in the input Strings with the value from the data\n * context\n *\n * @param input input string\n * @param converter converter to encode/convert the expanded values\n * @param failOnUnexpanded true to fail if a reference is not found\n * @param blankIfUnexpanded true to use blank if a reference is not found\n *\n * @return string with values substituted, or original string\n */\n default String replaceDataReferences(\n final String input,\n final Converter<String, String> converter,\n boolean failOnUnexpanded,\n boolean blankIfUnexpanded\n )\n {\n return DataContextUtils.replaceDataReferencesInString(input, getData(), converter, failOnUnexpanded, blankIfUnexpanded);\n\n }\n\n /**\n *\n * @param other\n * @return new data context of this context merged with the other context\n */\n default DataContext merged(DataContext other) {\n return new BaseDataContext(DataContextUtils.merge(this, other));\n }\n}", "private Map mergeResults(Map first, Map second) {\n/* 216 */ Iterator verb_enum = second.keySet().iterator();\n/* 217 */ Map clonedHash = new HashMap(first);\n/* */ \n/* */ \n/* 220 */ while (verb_enum.hasNext()) {\n/* 221 */ String verb = verb_enum.next();\n/* 222 */ List cmdVector = (List)clonedHash.get(verb);\n/* 223 */ if (cmdVector == null) {\n/* 224 */ clonedHash.put(verb, second.get(verb));\n/* */ continue;\n/* */ } \n/* 227 */ List oldV = (List)second.get(verb);\n/* 228 */ cmdVector = new ArrayList(cmdVector);\n/* 229 */ cmdVector.addAll(oldV);\n/* 230 */ clonedHash.put(verb, cmdVector);\n/* */ } \n/* */ \n/* 233 */ return clonedHash;\n/* */ }", "private InputStream merge(File srcFile, File deltaFile) throws IOException {\n \t\tInputStream result = null;\n \t\ttry {\n \t\t\tFileInputStream srcStream = new FileInputStream(srcFile);\n \t\t\tFileInputStream deltaStream = new FileInputStream(deltaFile);\n \t\t\tInputStream[] inputStreamArray = { srcStream, deltaStream };\n \n \t\t\tConfigurer configurer = new AttributeMergeConfigurer();\n \t\t\tresult = new ConfigurableXmlMerge(configurer).merge(inputStreamArray);\n \t\t} catch (Exception e) {\n \t\t\tlogger.error(\"Could not merge tenant configuration delta file: \" + deltaFile.getCanonicalPath(), e);\n \t\t}\n \t\t//\n \t\t// Try to save the merge output to a file that is suffixed with\n \t\t// \".merged.xml\" in the same directory\n \t\t// as the delta file.\n \t\t//\n \t\tif (result != null) {\n \t\t\tFile outputDir = deltaFile.getParentFile();\n \t\t\tString mergedFileName = outputDir.getAbsolutePath() + File.separator\n \t\t\t\t\t+ JEEServerDeployment.TENANT_BINDINGS_FILENAME_PREFIX + MERGED_SUFFIX;\n \t\t\tFile mergedOutFile = new File(mergedFileName);\n \t\t\ttry {\n \t\t\t\tFileUtils.copyInputStreamToFile(result, mergedOutFile);\n \t\t\t} catch (IOException e) {\n \t\t\t\tlogger.warn(\"Could not create a copy of the merged tenant configuration at: \" + mergedFileName, e);\n \t\t\t}\n \t\t\tresult.reset(); // reset the stream even if the file create failed.\n \t\t}\n \n \t\treturn result;\n \t}", "@Override\n public void mergeEntity(String entitySetName, OEntity entity) {\n super.mergeEntity(entitySetName, entity);\n }", "Optional<Facet> mergeFacets(Facet first, Facet second);", "void merge();", "private void mergeRegisterRes(Register.Res value) {\n if (rspCase_ == 7 &&\n rsp_ != Register.Res.getDefaultInstance()) {\n rsp_ = Register.Res.newBuilder((Register.Res) rsp_)\n .mergeFrom(value).buildPartial();\n } else {\n rsp_ = value;\n }\n rspCase_ = 7;\n }", "public interface MergableProperties {\n\n\t/**\n\t * A variation of {@link BeanUtils#copyProperties(Object, Object)} specifically designed to copy properties using the following rule:\n\t *\n\t * - If source property is null then override with the same from mergable.\n\t * - If source property is an array and it is empty then override with same from mergable.\n\t * - If source property is mergable then merge.\n\t */\n\tdefault void merge(MergableProperties mergable) {\n\t\tif (mergable == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (PropertyDescriptor targetPd : BeanUtils.getPropertyDescriptors(mergable.getClass())) {\n\t\t\tMethod writeMethod = targetPd.getWriteMethod();\n\t\t\tif (writeMethod != null) {\n\t\t\t\tPropertyDescriptor sourcePd = BeanUtils.getPropertyDescriptor(this.getClass(), targetPd.getName());\n\t\t\t\tif (sourcePd != null) {\n\t\t\t\t\tMethod readMethod = sourcePd.getReadMethod();\n\t\t\t\t\tif (readMethod != null &&\n\t\t\t\t\t\t\tClassUtils.isAssignable(writeMethod.getParameterTypes()[0], readMethod.getReturnType())) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!Modifier.isPublic(readMethod.getDeclaringClass().getModifiers())) {\n\t\t\t\t\t\t\t\treadMethod.setAccessible(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tObject value = readMethod.invoke(this);\n\t\t\t\t\t\t\tif (value != null) {\n\t\t\t\t\t\t\t\tif (value instanceof MergableProperties) {\n\t\t\t\t\t\t\t\t\t((MergableProperties)value).merge((MergableProperties)readMethod.invoke(mergable));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tObject v = readMethod.invoke(mergable);\n\t\t\t\t\t\t\t\t\tif (v == null || (ObjectUtils.isArray(v) && ObjectUtils.isEmpty(v))) {\n\t\t\t\t\t\t\t\t\t\tif (!Modifier.isPublic(writeMethod.getDeclaringClass().getModifiers())) {\n\t\t\t\t\t\t\t\t\t\t\twriteMethod.setAccessible(true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twriteMethod.invoke(mergable, value);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (Throwable ex) {\n\t\t\t\t\t\t\tthrow new FatalBeanException(\n\t\t\t\t\t\t\t\t\t\"Could not copy property '\" + targetPd.getName() + \"' from source to target\", ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tdefault void copyProperties(Object source, Object target) throws BeansException {\n\n\t}\n}", "public Resource getSecondaryResource() {\n return secondaryResource;\n }", "public interface ConfigFileOverrideSubsystemsResource extends Resource<Map<String, SubsystemConfig>> {\n\n void addSubsystemConfig(SubsystemConfig subsystemConfig);\n\n boolean removeSubsystemConfig(SubsystemConfig subsystemConfig);\n\n List<SubsystemConfig> getSubsystemConfigs();\n\n Set<String> getSubsystemsNotAdded();\n\n ConfigFileOverrideResource getParent();\n\n String getProfileName();\n}", "@Override\r\n public void merge(Mapper in) {\r\n if (MapperBase.class.isAssignableFrom(in.getClass())) {\r\n MapperBase other = (MapperBase) in;\r\n if (minX == null) {\r\n minX = other.minX;\r\n }\r\n if (maxX == null) {\r\n maxX = other.maxX;\r\n }\r\n if (minY == null) {\r\n minY = other.minY;\r\n }\r\n if (maxY == null) {\r\n maxY = other.maxY;\r\n }\r\n if (this.minIn == null) {\r\n this.minIn = other.minIn;\r\n }\r\n if (this.maxIn == null) {\r\n this.maxIn = other.maxIn;\r\n }\r\n } else {\r\n log.error(\"don't know how to merge %s into a MapperLinear mapper\", in.getClass().getCanonicalName());\r\n }\r\n }", "@Override\n public Exchange aggregate(Exchange original, Exchange resource) {\n String cswResponse = original.getIn().getBody(String.class);\n String harvesterDetails = resource.getIn().getBody(String.class);\n String mergeResult = \"<harvestedContent>\" +\n harvesterDetails + cswResponse + \"</harvestedContent>\";\n\n if (original.getPattern().isOutCapable()) {\n original.getOut().setBody(mergeResult);\n } else {\n original.getIn().setBody(mergeResult);\n }\n return original;\n }", "public interface LinkOrResource {\n\n\tHalLink asLink();\n\n\tdefault Optional<HalResource> asResource(){\n\t\tif(this instanceof HalResource){\n\t\t\treturn Optional.of((HalResource) this);\n\t\t}else\n\t\t\treturn Optional.empty();\n\t}\n}", "public static void mergeJsonIntoBase(List<Response> r1, List<Response> r2){\n //List of json objects in the new but not old json\n List<String> toAdd = new ArrayList<>();\n for(int i = 0; i < r1.size(); i ++){\n String r1ID = r1.get(i).getId();\n for(int j = 0; j < r2.size(); j ++){\n String r2ID = r2.get(j).getId();\n if(r1ID.equals(r2ID)){\n compareJson(r1.get(i), r2.get(j));\n }else{\n if (!toAdd.contains(r2ID)) {\n toAdd.add(r2ID);\n }\n }\n }\n }\n //Add all new elements into the base element\n List<Response> remainderToAdd = getElementListById(toAdd, r2);\n\n for(Response r: remainderToAdd){\n r1.add(r);\n }\n }", "@Override\n public Image merge(Image a, Image b) {\n if (a.getCached() == null) {\n drawImage(a, 0, 0);\n }\n if (b.getCached() == null) {\n drawImage(b, 0, 0);\n }\n Object nativeImage = graphicsEnvironmentImpl.mergeImages(canvas, a, b, a.getCached(), b.getCached());\n Image merged = Image.create(getImageSource(nativeImage));\n merged.cache(nativeImage);\n return merged;\n }", "public interface ResourceMapper {\n\n /**\n * Delete one record by primary key.<br>\n * \n * @param uuid Primary key\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int deleteByPrimaryKey(String uuid);\n\n /**\n * Add one record including all fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insert(ResourcePojo record);\n\n /**\n * Add specified field, only for non empty fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insertSelective(ResourcePojo record);\n\n /**\n * Query resource data by primary key.<br>\n * \n * @param bktName Bucket name\n * @return Resource data\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktName(String bktName);\n\n /**\n * Update specified field of resource data by primary key, only for non empty fields.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKeySelective(ResourcePojo record);\n\n /**\n * Update one record by primary key.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKey(ResourcePojo record);\n\n /**\n * Query resource collection by bucket name and model name.<br>\n * \n * @param bktName Bucket name\n * @param modelName Model name\n * @return Resource collection\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktAndModelName(@Param(\"bktName\") String bktName, @Param(\"modelName\") String modelName);\n}", "public void combine(SupplyList s){\n Iterator<SupplyNode> it = s.getMap().values().iterator();\n \n while(it.hasNext()){\n SupplyNode r = it.next();\n \n if(t.get(r.getResource().getName()) == null){\n // new resource\n addResourceSpace(r.getResource(),r.getMax());\n } else {\n // adjust resource\n adjustValue(r.getResource().getName(),r.getMax()+getNode(r.getResource().getName()).getCurrent());\n }\n }\n }", "@Override\n\tpublic Instance mergeInstance(final Instance inst) {\n\t\treturn null;\n\t}", "private void mergeServices(JsonObject originService, JsonObject targetService, JsonObject tree) {\n mergeAnnotations(originService, targetService, tree);\n List<JsonObject> targetServices = new ArrayList<>();\n\n for (JsonElement targetItem : targetService.getAsJsonArray(\"resources\")) {\n JsonObject targetResource = targetItem.getAsJsonObject();\n boolean matched = false;\n for (JsonElement originItem : originService.getAsJsonArray(\"resources\")) {\n JsonObject originResource = originItem.getAsJsonObject();\n if (matchResource(originResource, targetResource)) {\n matched = true;\n mergeAnnotations(originResource, targetResource, tree);\n }\n }\n\n if (!matched) {\n targetResource.getAsJsonObject(\"body\").add(\"statements\", new JsonArray());\n targetServices.add(targetResource);\n }\n }\n\n targetServices.forEach(resource -> {\n int startIndex = FormattingSourceGen.getStartPosition(originService, \"resources\", -1);\n FormattingSourceGen.reconcileWS(resource, originService.getAsJsonArray(\"resources\"), tree,\n startIndex);\n originService.getAsJsonArray(\"resources\").add(resource);\n });\n }", "@Override\n protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n Organization src = source.getOrganization();\n if ( source.getOrganization() != null )\n {\n Organization tgt = target.getOrganization();\n if ( tgt == null )\n {\n target.setOrganization( tgt = new Organization() );\n mergeOrganization( tgt, src, sourceDominant, context );\n }\n }\n }", "public interface SmeltValueSerializationStrategy extends SmeltJSONSerializationStrategy<SmeltValueWrapper<?, ?>> {\n}", "@Override\n protected void mergeModel_Profiles( Model target, Model source, boolean sourceDominant, Map<Object, Object> context )\n {\n }", "protected void mergeEntity(LdEntity sourceEntity, LdEntity destinationEntity) {\r\n assertEntityNotNull(sourceEntity);\r\n assertEntityNotNull(destinationEntity);\r\n final LdPublisher sourceMyEntity = (LdPublisher)sourceEntity;\r\n final LdPublisher destinationMyEntity = (LdPublisher)destinationEntity;\r\n \r\n if (sourceMyEntity.isSetterInvokedPublisherId()) {\r\n destinationMyEntity.setPublisherId(sourceMyEntity.getPublisherId());\r\n }\r\n \r\n if (sourceMyEntity.isSetterInvokedPublisherName()) {\r\n destinationMyEntity.setPublisherName(sourceMyEntity.getPublisherName());\r\n }\r\n \r\n if (sourceMyEntity.isSetterInvokedRTime()) {\r\n destinationMyEntity.setRTime(sourceMyEntity.getRTime());\r\n }\r\n \r\n if (sourceMyEntity.isSetterInvokedUTime()) {\r\n destinationMyEntity.setUTime(sourceMyEntity.getUTime());\r\n }\r\n \r\n if (sourceMyEntity.isSetterInvokedRStaff()) {\r\n destinationMyEntity.setRStaff(sourceMyEntity.getRStaff());\r\n }\r\n \r\n if (sourceMyEntity.isSetterInvokedUStaff()) {\r\n destinationMyEntity.setUStaff(sourceMyEntity.getUStaff());\r\n }\r\n \r\n }", "public GraphAttributeMerger getAttributeMerger();", "public String merge (Context context) throws Exception;", "public interface MergeHandler {\n //~ Methods ----------------------------------------------------------------------------------------------------------\n\n /**\n * Retrieve any child merge handlers associated with this handler. Child merge handlers may be added alter merge\n * behavior for a subsection of the merge area defined by this merge handler.\n *\n * @return child merge handlers\n */\n MergeHandler[] getChildren();\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Retrieve the name associated with this merge handlers. Merge handler names are period-delimited numeric strings\n * that define the hierarchical relationship of mergehandlers and their children. For example, \"2\" could be used to\n * define the second handler in the configuration list and \"2.1\" would be the name describing the first child handler\n * of \"2\".\n *\n * @return the period-delimited numeric string that names this handler\n */\n String getName();\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Retrieve the priority for the handler. Priorities are used by the MergeManager to establish the order of operations\n * for performing merges.\n *\n * @return the priority value\n */\n int getPriority();\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Retrieve the XPath query associated with this handler. XPath is used by the handler to define to section of the\n * source and patch documents that will be merged.\n *\n * @return the xpath query\n */\n String getXPath();\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Perform the merge using the supplied list of nodes from the source and patch documents, respectively. Also, a list\n * of nodes that have already been merged is provided and may be used by the implementation when necessary.\n *\n * @param nodeList1 list of nodes to be merged from the source document\n * @param nodeList2 list of nodes to be merged form the patch document\n * @param exhaustedNodes already merged nodes\n *\n * @return list of merged nodes\n */\n Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes);\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Set the child merge handlers.\n *\n * @param children DOCUMENT ME!\n */\n void setChildren(MergeHandler[] children);\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Set the period-delimited numeric string that names this handler.\n *\n * @param name DOCUMENT ME!\n */\n void setName(String name);\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Set the priority for this handler.\n *\n * @param priority DOCUMENT ME!\n */\n void setPriority(int priority);\n\n //~ ------------------------------------------------------------------------------------------------------------------\n\n /**\n * Set the xpath query.\n *\n * @param xpath DOCUMENT ME!\n */\n void setXPath(String xpath);\n\n}", "public interface ResponseCombiner {\r\n String getName();\r\n\r\n ConnectorResponse combine(Map<String, ConnectorResponse> responses, ConnectorRequest request);\r\n}", "public interface Converter<Source, Target> {\n\n\t/**\n\t * Convert from Source to Target.\n\t *\n\t * @param source input object\n\t * @return mapped target object, null for null\n\t */\n\tTarget convert(Source source);\n\n\t/**\n\t * Merges the source into the target. If target is <code>null</code>, a new instance will be created.\n\t * Otherwise the given target is used and the properties present in source are copied to it.\n\t *\n\t * @param source .\n\t * @param target .\n\t * @return .\n\t */\n\tTarget convert(Source source, Target target);\n\n}", "DppBaseResourceInner innerModel();", "public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager) {\n if (!mergeManager.shouldCascadeReferences()) {\n // This is only going to happen on mergeClone, and we should not attempt to merge the reference\n return;\n }\n\n ContainerPolicy containerPolicy = getContainerPolicy();\n Object valueOfSource = getRealCollectionAttributeValueFromObject(source, mergeManager.getSession());\n Object valueOfTarget = containerPolicy.containerInstance(containerPolicy.sizeFor(valueOfSource));\n for (Object sourceValuesIterator = containerPolicy.iteratorFor(valueOfSource);\n containerPolicy.hasNext(sourceValuesIterator);) {\n Object sourceValue = containerPolicy.next(sourceValuesIterator, mergeManager.getSession());\n\n //CR#2896 - TW\n Object originalValue = getReferenceDescriptor(sourceValue.getClass(), mergeManager.getSession()).getObjectBuilder().buildNewInstance();\n getReferenceDescriptor(sourceValue.getClass(), mergeManager.getSession()).getObjectBuilder().mergeIntoObject(originalValue, true, sourceValue, mergeManager);\n containerPolicy.addInto(originalValue, valueOfTarget, mergeManager.getSession());\n }\n\n // Must re-set variable to allow for set method to re-morph changes if the collection is not being stored directly.\n setRealAttributeValueInObject(target, valueOfTarget);\n }", "@Override\n public Object writeReplace() {\n return new ResolvableHelper();\n }", "public interface ProductRelatedResource extends RepositoryResource {\n\n /**\n * Gets the productId for the resource.\n *\n * @return the product id, or null if it has not been set\n */\n public String getProductId();\n\n /**\n * Gets the edition of the product, if applicable.\n *\n * @return the edition of the product, or null if it is not set\n */\n public String getProductEdition();\n\n /**\n * Gets the install type of the product (e.g. \"Archive\")\n *\n * @return the install type, or null if it is not set\n */\n public String getProductInstallType();\n\n /**\n * Gets the version of the product\n *\n * @return the product version, or null if it is not set\n */\n public String getProductVersion();\n\n /**\n * Gets the features included in this product\n *\n * @return the features provided by this product, or null if not set\n */\n public Collection<String> getProvideFeature();\n\n /**\n * Gets the features that this product depends on\n *\n * @return the features required by this product, or null if not set\n */\n public Collection<String> getRequireFeature();\n\n /**\n * Gets the collection of OSGi requirements this product has\n *\n * @return the collection of OSGi requirements applicable to this product, or null if not set\n */\n public Collection<Requirement> getGenericRequirements();\n\n /**\n * Gets the version information for the Java packaged with this product\n *\n * @return The Java version information, or null if this product is not packaged with Java\n */\n public String getPackagedJava();\n\n}", "@Override\r\n public void merge(Double minX, Double maxX, Double minY, Double maxY) {\r\n if (this.minX == null) {\r\n this.minX = minX;\r\n }\r\n if (this.maxX == null) {\r\n this.maxX = maxX;\r\n }\r\n if (this.minY == null) {\r\n this.minY = minY;\r\n }\r\n if (this.maxY == null) {\r\n this.maxY = maxY;\r\n }\r\n }", "public interface Combine<T> {\n\n public T combineWith(T other);\n\n public void mergeFrom(T other);\n\n}", "private void mergeSearchUserRes(SearchUser.Res value) {\n if (rspCase_ == 8 &&\n rsp_ != SearchUser.Res.getDefaultInstance()) {\n rsp_ = SearchUser.Res.newBuilder((SearchUser.Res) rsp_)\n .mergeFrom(value).buildPartial();\n } else {\n rsp_ = value;\n }\n rspCase_ = 8;\n }", "private void configureMerge(EObject original) {\n DSEMergeConfigurator configurator = configuratorMapping.get(original.eClass().getEPackage().getNsURI());\n if (configurator != null) {\n configureMerge(configurator);\n } else {\n logger.error(\"Missing required configuration for \" + original.eClass().getEPackage().getNsURI()); \n }\n }", "@Override\n Map<String, Integer> apply(Map<String, Integer> x, Map<String, Integer> y)\n {\n y.entrySet().forEach(e->x.merge(e.getKey(),e.getValue(),(v,w)->v+w));\n return x;\n\n }", "protected void merge(Object in1, Object in2, Object out) {\n\t\tFlowSet inSet1 = (FlowSet) in1, inSet2 = (FlowSet) in2, outSet = (FlowSet) out;\n\n\t\tinSet1.intersection(inSet2, outSet);\n\t}", "@Override\n public ObtainableResourceSet deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonObject jsonObtainedResourceSet = json.getAsJsonObject();\n\n /* ----------------------------------------------------------------------------\n * Step 1: deserialize \"static\" resources, the ones that don't get multiplied\n * They are represented as a HashMap<ObtainableResource, Integer>\n * ----------------------------------------------------------------------------\n */\n\n /*\n * Create an intermediate object that\n * can be deserialized automatically as a HashMap<ObtainableResource, Integer>\n */\n JsonObject jsonStaticResourcesObject = new JsonObject();\n\n /*\n * Cycle on the types of static resources\n */\n for (ObtainableResource obtainableResource : ObtainableResource.values()) {\n // Get the number of resources of the current type\n JsonElement jsonObtainedResource = jsonObtainedResourceSet.get(obtainableResource.name());\n if (jsonObtainedResource != null) {\n int nObtained = jsonObtainedResource.getAsInt();\n jsonStaticResourcesObject.addProperty(obtainableResource.name(), nObtained);\n }\n }\n\n Type staticResourcesType = new TypeToken<HashMap<ObtainableResource, Integer>>() {\n }.getType();\n HashMap<ObtainableResource, Integer> staticResources = context.deserialize(jsonStaticResourcesObject, staticResourcesType);\n\n /* ----------------------------------------------------------------------------\n * Step 2: deserialize resources with multipliers\n * They are represented as a HashMap<RequiredResourceSet, Tuple<ObtainableResourceSet, Integer>>,\n * meaning the player gets Integer ObtainedResourceSets for each RequiredResourceSet he/she has\n * ----------------------------------------------------------------------------\n */\n HashMap<RequiredResourceSet, ObtainableResourceSet> multiplierResources = new HashMap<>();\n JsonArray jsonMultiplierResourcesArray = jsonObtainedResourceSet.getAsJsonArray(\"multipliers\");\n if (jsonMultiplierResourcesArray != null) {\n for (JsonElement jsonMultiplier : jsonMultiplierResourcesArray) {\n JsonObject jsonRequirements = jsonMultiplier.getAsJsonObject().getAsJsonObject(\"requirements\");\n JsonObject jsonResources = jsonMultiplier.getAsJsonObject().getAsJsonObject(\"resources\");\n\n RequiredResourceSet requirements = context.deserialize(jsonRequirements, RequiredResourceSet.class);\n ObtainableResourceSet resources = context.deserialize(jsonResources, ObtainableResourceSet.class);\n\n multiplierResources.put(requirements, resources);\n }\n }\n\n return new ObtainableResourceSet(staticResources, multiplierResources);\n }", "public void merge(WModelObject otherObject)\n\t{\n\t\tWCollection collection = null;\n\n\t\t// Check to see if the argument is a WCollection object\n\t\ttry\n\t\t{\n\t\t\tcollection = (WCollection)otherObject;\n\t\t}\n\t\tcatch (ClassCastException exc)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(getClass().getName() + \": Collection objects can only be merged with other Collection objects\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Check to see if the two objects are of the same class\n\t\tClass thisClass = getClass();\n\t\tClass objClass = otherObject.getClass();\n\n\t\tif (thisClass.getName().compareTo(objClass.getName()) != 0)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(thisClass.getName() + \": Cannot compare two different collection objects\");\n\t\t\treturn;\n\t\t}\n\n\t\tWCollection primCollection = new WCollection(thisClass.getName());\t//JFG6.0\n\n\t\tint iObjectCount = this.size();\t\t\t\t\t\t\t//JFG6.0\n\t\tcom.ing.connector.Registrar.logDebugMessage(\"prim object size = \" + iObjectCount);\n\t\tfor (int iCount = 0; iCount < iObjectCount; ++iCount)\t\t\t\t//JFG6.0\n\t\t{\n\t\t\tprimCollection.addElement(this.elementAt(iCount));\t\t\t//JFG6.0\n\t\t\t//com.ing.connector.Registrar.logDebugMessage(\"Entering inside()\");\n\t\t}\n\n primCollection.sort(\"ClassKey\",true);\t\t\t\t\t\t//JFG6.0\n collection.sort(\"ClassKey\",true);\t\t\t\t\t\t\t//JFG6.0\n\n\t\tint iSecObjectCount = collection.size();\n int iStart = 0;\t\t\t\t\t\t\t\t\t\t//JFG6.0\n com.ing.connector.Registrar.logDebugMessage(\"Sec object size = \" + iSecObjectCount);\n\t\tfor (int iSecCount = 0; iSecCount < iSecObjectCount; ++iSecCount)\n\t\t{\n\t\t WModelObject secObject = null;\n\t\t WModelObject primObject = null;\n\n\t\t secObject = collection.elementAt(iSecCount);\n\t\t boolean keyFound = false;\n\n\t\t int iPrimObjectCount = primCollection.size();\n\t\t for (int iPrimCount = iStart; iPrimCount < iPrimObjectCount; ++iPrimCount)\n\t\t {\n\t\t primObject = primCollection.elementAt(iPrimCount);\n\n int iCompare = primObject.compareTo(secObject, \"ClassKey\");\n //com.ing.connector.Registrar.logDebugMessage(\"primObject.compareTo iCompare = \" + iCompare);\n \n\t\t if (iCompare == 0)\n\t\t {\n\t\t\tkeyFound = true;\n\t\t\tcom.ing.connector.Registrar.logDebugMessage(\"prim object and sec object are equal class \" + primObject.getClass().getName());\n\t\t\tprimObject.merge(secObject);\t//LPMO264\n iStart = iPrimCount + 1;\t\t\t\t\t\t\t//JFG6.0\n \n\t\t\tbreak;\n\t\t }\n else\t\t\t\t\t\t\t\t\t\t\t//JFG6.0\n {\n\t\t if (iCompare > 0)\t\t\t\t\t\t\t\t\t//JFG6.0\n\t\t {\n\t\t\t keyFound = false;\t\t\t\t\t\t\t\t//JFG6.0\n iStart = iPrimCount;\t\t\t\t\t\t\t\t//JFG6.0\n \n\t\t break;\t\t\t\t\t\t\t\t\t\t//JFG6.0\n\n }\n }\n\t\t }\n\t\t \n\t\t //com.ing.connector.Registrar.logDebugMessage(\"is keyFound \" + keyFound);\n\t\t if (!keyFound)\n\t\t {\n\t\t addElement(secObject);\n\t\t }\n\t\t}\n\n\t\tprimCollection = null;\t\t\t\t\t\t\t\t\t//JFG6.0\n\n//\t\tint iObjectCount = collection.size();\n//\t\tfor (int iCount = 0; iCount < iObjectCount; ++iCount)\n//\t\t{\n//\t\t\taddElement(collection.elementAt(iCount));\n//\t\t}\n\t}", "public void merge(BundleClassLoadersContext other) {\n\n extensionDirs = ImmutableList.copyOf(Stream.concat(extensionDirs.stream(),\n other.extensionDirs.stream().filter((x) -> !extensionDirs.contains(x)))\n .collect(Collectors.toList()));\n bundles = ImmutableMap.copyOf(\n Stream.of(bundles, other.bundles).map(Map::entrySet).flatMap(Collection::stream)\n .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (s, a) -> s)));\n }", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "public static <T,S,V extends Object> void merge(Map<T, HashMap<S, V>> to, Map<T, HashMap<S, V>> from) {\r\n\t\tfor(Entry<T, HashMap<S, V>> entry : from.entrySet()) {\r\n\t\t\tif(to.containsKey(entry.getKey())) {\r\n\t\t\t\tto.get(entry.getKey()).putAll(entry.getValue());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tto.put(entry.getKey(), entry.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface Mergeable<T extends Mergeable<T>> {\n /**\n * Determines whether this object and the given can be merged,\n *\n * @param x\n * @return\n */\n boolean canMerge(T x);\n\n /**\n * Merges two objects, throws an exception if canMerge(x) returns false.\n *\n * @param x\n * @return\n */\n T merge(T x);\n}", "@Override\n public Object writeReplace() {\n return new ResolvableHelper(preferredComponentId);\n }", "public void mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager) {\n ContainerPolicy containerPolicy = getContainerPolicy();\n AbstractSession session = mergeManager.getSession();\n // Iterate over the changes and merge the collections\n Vector aggregateObjects = ((AggregateCollectionChangeRecord)changeRecord).getChangedValues();\n Object valueOfTarget = containerPolicy.containerInstance();\n // Next iterate over the changes and add them to the container\n ObjectChangeSet objectChanges = null;\n int size = aggregateObjects.size();\n for (int index = 0; index < size; ++index) {\n objectChanges = (ObjectChangeSet)aggregateObjects.get(index);\n // Since the CompositeCollectionMapping only registers an all or none\n // change set, we can simply replace the entire collection;\n containerPolicy.addInto(buildElementFromChangeSet(objectChanges, mergeManager), valueOfTarget, session);\n }\n setRealAttributeValueInObject(target, valueOfTarget);\n }", "public RequestMappingInfo combine(RequestMappingInfo other)\n/* */ {\n/* 175 */ String name = combineNames(other);\n/* 176 */ PatternsRequestCondition patterns = this.patternsCondition.combine(other.patternsCondition);\n/* 177 */ RequestMethodsRequestCondition methods = this.methodsCondition.combine(other.methodsCondition);\n/* 178 */ ParamsRequestCondition params = this.paramsCondition.combine(other.paramsCondition);\n/* 179 */ HeadersRequestCondition headers = this.headersCondition.combine(other.headersCondition);\n/* 180 */ ConsumesRequestCondition consumes = this.consumesCondition.combine(other.consumesCondition);\n/* 181 */ ProducesRequestCondition produces = this.producesCondition.combine(other.producesCondition);\n/* 182 */ RequestConditionHolder custom = this.customConditionHolder.combine(other.customConditionHolder);\n/* */ \n/* 184 */ return new RequestMappingInfo(name, patterns, methods, params, headers, consumes, produces, custom\n/* 185 */ .getCondition());\n/* */ }", "interface WithTags {\n /**\n * Specifies the tags property: Resource tags.\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(Map<String, String> tags);\n }", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "private Node merge(Node r) {\r\n if (r.op() == Empty) return r;\r\n assert(r.op() == List);\r\n if (r.left().op() == Rule) { merge(r.right()); return r; }\r\n Node n = r.left();\r\n assert(n.op() == List);\r\n r.left(n.left());\r\n if (n.right().op() == Empty) return r;\r\n n.left(n.right());\r\n n.right(r.right());\r\n r.right(n);\r\n merge(r);\r\n return r;\r\n }", "@Override\r\n public void merge(Integer minX, Integer maxX, Integer minY, Integer maxY) {\r\n if (this.minX == null) {\r\n this.minX = (minX == null) ? null : minX.doubleValue();\r\n }\r\n if (this.maxX == null) {\r\n this.maxX = (maxX == null) ? null : maxX.doubleValue();\r\n }\r\n if (this.minY == null) {\r\n this.minY = (minY == null) ? null : minY.doubleValue();\r\n }\r\n if (this.maxY == null) {\r\n this.maxY = (maxY == null) ? null : maxY.doubleValue();\r\n }\r\n }", "public static void merge(Object source, Object dest) {\n\t\tif (null == source || null == dest) {\n\t\t\treturn;\n\t\t}\n\n\t\tBeanUtilsBean beanUtils = new BeanUtilsBean() {\n\t\t\t@Override\n\t\t\tpublic void copyProperty(Object dest, String name, Object value)\n\t\t\t\t\tthrows IllegalAccessException, InvocationTargetException {\n\t\t\t\tif (value != null) {\n\t\t\t\t\tsuper.copyProperty(dest, name, value);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\ttry {\n\t\t\tbeanUtils.copyProperties(dest, source);\n\t\t} catch (IllegalAccessException | InvocationTargetException e) {\n\t\t\tthrow new RuntimeException(\"merge bean exception\", e);\n\t\t}\n\t}", "public PropertyMergeMode mergeMode() {\n return mergeMode;\n }", "@Override\n public B getNewComplexBean(Class<B> beanClass,\n EntityDetail primaryEntity,\n List<EntityDetail> supplementaryEntities,\n List<Relationship> relationships,\n String methodName) throws PropertyServerException\n {\n try\n {\n /*\n * This is initial confirmation that the generic converter has been initialized with an appropriate bean class.\n */\n B returnBean = beanClass.getDeclaredConstructor().newInstance();\n\n if (returnBean instanceof GovernanceActionElement)\n {\n GovernanceActionElement bean = (GovernanceActionElement)returnBean;\n\n if (primaryEntity != null)\n {\n /*\n * Check that the entity is of the correct type.\n */\n bean.setElementHeader(this.getMetadataElementHeader(beanClass, primaryEntity, methodName));\n\n bean.setRequestedTime(primaryEntity.getCreateTime());\n\n /*\n * The initial set of values come from the entity properties. The super class properties are removed from a copy of the entities\n * properties, leaving any subclass properties to be stored in extended properties.\n */\n InstanceProperties instanceProperties = new InstanceProperties(primaryEntity.getProperties());\n\n bean.setQualifiedName(this.removeQualifiedName(instanceProperties));\n bean.setDomainIdentifier(this.removeDomainIdentifier(instanceProperties));\n bean.setDisplayName(this.removeDisplayName(instanceProperties));\n bean.setDescription(this.removeDescription(instanceProperties));\n bean.setRequestType(this.removeRequestType(instanceProperties));\n bean.setRequestParameters(this.removeRequestParameters(instanceProperties));\n bean.setGovernanceEngineGUID(this.removeExecutorEngineGUID(instanceProperties));\n bean.setGovernanceEngineName(this.removeExecutorEngineName(instanceProperties));\n bean.setProcessName(this.removeProcessName(instanceProperties));\n bean.setGovernanceActionTypeGUID(this.removeGovernanceActionTypeGUID(instanceProperties));\n bean.setGovernanceActionTypeName(this.removeGovernanceActionTypeName(instanceProperties));\n bean.setMandatoryGuards(this.removeMandatoryGuards(instanceProperties));\n bean.setReceivedGuards(this.removeReceivedGuards(instanceProperties));\n bean.setActionStatus(this.removeActionStatus(OpenMetadataAPIMapper.ACTION_STATUS_PROPERTY_NAME, instanceProperties));\n bean.setStartTime(this.removeStartDate(instanceProperties));\n bean.setProcessingEngineUserId(this.removeProcessingEngineUserId(instanceProperties));\n bean.setCompletionTime(this.removeCompletionDate(instanceProperties));\n bean.setCompletionGuards(this.removeCompletionGuards(instanceProperties));\n bean.setCompletionMessage(this.removeCompletionMessage(instanceProperties));\n bean.setAdditionalProperties(this.removeAdditionalProperties(instanceProperties));\n\n if (relationships != null)\n {\n List<RequestSourceElement> requestSourceElements = new ArrayList<>();\n List<ActionTargetElement> actionTargetElements = new ArrayList<>();\n List<RelatedGovernanceActionElement> previousActions = new ArrayList<>();\n List<RelatedGovernanceActionElement> followOnActions = new ArrayList<>();\n\n for (Relationship relationship : relationships)\n {\n if ((relationship != null) && (relationship.getType() != null))\n {\n String actualTypeName = relationship.getType().getTypeDefName();\n instanceProperties = new InstanceProperties(relationship.getProperties());\n\n if (repositoryHelper.isTypeOf(serviceName, actualTypeName, OpenMetadataAPIMapper.GOVERNANCE_ACTION_EXECUTOR_TYPE_NAME))\n {\n if (bean.getRequestType() == null)\n {\n bean.setRequestType(this.removeRequestType(instanceProperties));\n bean.setRequestParameters(this.removeRequestParameters(instanceProperties));\n }\n\n if (bean.getGovernanceEngineGUID() == null)\n {\n EntityProxy entityProxy = relationship.getEntityTwoProxy();\n\n bean.setGovernanceEngineGUID(entityProxy.getGUID());\n\n if (entityProxy.getUniqueProperties() != null)\n {\n bean.setGovernanceEngineName(this.getQualifiedName(entityProxy.getUniqueProperties()));\n }\n }\n }\n else if (repositoryHelper.isTypeOf(serviceName, actualTypeName, OpenMetadataAPIMapper.TARGET_FOR_ACTION_TYPE_NAME))\n {\n ActionTargetElement actionTargetElement = new ActionTargetElement();\n\n actionTargetElement.setActionTargetName(this.removeActionTargetName(instanceProperties));\n actionTargetElement.setStatus(this.removeActionStatus(OpenMetadataAPIMapper.STATUS_PROPERTY_NAME, instanceProperties));\n actionTargetElement.setStartDate(this.removeStartDate(instanceProperties));\n actionTargetElement.setCompletionDate(this.removeCompletionDate(instanceProperties));\n actionTargetElement.setCompletionMessage(this.removeCompletionMessage(instanceProperties));\n\n String actionTargetGUID = relationship.getEntityTwoProxy().getGUID();\n\n if (actionTargetGUID != null)\n {\n actionTargetElement.setActionTargetGUID(actionTargetGUID);\n actionTargetElement.setTargetElement(this.getOpenMetadataElement(actionTargetGUID, supplementaryEntities));\n }\n\n actionTargetElements.add(actionTargetElement);\n }\n else if (repositoryHelper.isTypeOf(serviceName, actualTypeName, OpenMetadataAPIMapper.GOVERNANCE_ACTION_REQUEST_SOURCE_TYPE_NAME))\n {\n String requestSourceGUID = relationship.getEntityOneProxy().getGUID();\n\n if (requestSourceGUID != null)\n {\n RequestSourceElement requestSourceElement = new RequestSourceElement();\n\n requestSourceElement.setRequestSourceElement(this.getOpenMetadataElement(requestSourceGUID, supplementaryEntities));\n\n instanceProperties = new InstanceProperties(relationship.getProperties());\n\n requestSourceElement.setRequestSourceName(this.removeRequestSourceName(instanceProperties));\n requestSourceElement.setOriginGovernanceService(this.removeOriginGovernanceService(instanceProperties));\n requestSourceElement.setOriginGovernanceEngine(this.removeOriginGovernanceEngine(instanceProperties));\n\n requestSourceElements.add(requestSourceElement);\n }\n }\n else if (repositoryHelper.isTypeOf(serviceName, actualTypeName, OpenMetadataAPIMapper.NEXT_GOVERNANCE_ACTION_TYPE_NAME))\n {\n RelatedGovernanceActionElement relatedAction = new RelatedGovernanceActionElement();\n\n relatedAction.setGuard(this.removeGuard(relationship.getProperties()));\n relatedAction.setMandatoryGuard(this.removeMandatoryGuard(relationship.getProperties()));\n relatedAction.setRelatedActionLinkGUID(relationship.getGUID());\n\n if (primaryEntity.getGUID().equals(relationship.getEntityTwoProxy().getGUID()))\n {\n relatedAction.setRelatedAction(this.getElementStub(beanClass, relationship.getEntityOneProxy(), methodName));\n previousActions.add(relatedAction);\n }\n else\n {\n relatedAction.setRelatedAction(this.getElementStub(beanClass, relationship.getEntityTwoProxy(), methodName));\n followOnActions.add(relatedAction);\n }\n }\n }\n }\n\n if (! requestSourceElements.isEmpty())\n {\n bean.setRequestSourceElements(requestSourceElements);\n }\n\n if (! actionTargetElements.isEmpty())\n {\n bean.setActionTargetElements(actionTargetElements);\n }\n\n if (! previousActions.isEmpty())\n {\n bean.setPreviousActions(previousActions);\n }\n\n if (! followOnActions.isEmpty())\n {\n bean.setFollowOnActions(followOnActions);\n }\n }\n }\n else\n {\n handleMissingMetadataInstance(beanClass.getName(), TypeDefCategory.ENTITY_DEF, methodName);\n }\n }\n else\n {\n handleUnexpectedBeanClass(beanClass.getName(), GovernanceActionElement.class.getName(), methodName);\n }\n\n return returnBean;\n }\n catch (IllegalAccessException | InstantiationException | ClassCastException | NoSuchMethodException | InvocationTargetException error)\n {\n super.handleInvalidBeanClass(beanClass.getName(), error, methodName);\n }\n\n return null;\n }", "@Override\n public Object getValue(@NotNull final Object adaptable, final String name, @NotNull final Type type,\n @NotNull final AnnotatedElement element, @NotNull final DisposalCallbackRegistry callbackRegistry) {\n if (!modelsImplConfiguration.isRequestThreadLocal()) {\n return null;\n }\n\n // only class types are supported\n if (!(type instanceof Class<?>)) {\n return null;\n }\n Class<?> requestedClass = (Class<?>)type;\n\n // validate input\n if (adaptable instanceof ResourceResolver) {\n ResourceResolver resourceResolver = (ResourceResolver)adaptable;\n if (requestedClass.equals(ResourceResolver.class)) {\n return resourceResolver;\n }\n }\n else if (adaptable instanceof Resource) {\n Resource resource = (Resource)adaptable;\n if (requestedClass.equals(ResourceResolver.class)) {\n return resource.getResourceResolver();\n }\n if (requestedClass.equals(Resource.class) && element.isAnnotationPresent(SlingObject.class)) {\n return resource;\n }\n }\n SlingHttpServletRequest request = getRequest(adaptable);\n if (request != null) {\n if (requestedClass.equals(ResourceResolver.class)) {\n return request.getResourceResolver();\n }\n if (requestedClass.equals(Resource.class) && element.isAnnotationPresent(SlingObject.class)) {\n return request.getResource();\n }\n if (requestedClass.equals(SlingHttpServletRequest.class) || requestedClass.equals(HttpServletRequest.class)) {\n return request;\n }\n if (requestedClass.equals(SlingHttpServletResponse.class) || requestedClass.equals(HttpServletResponse.class)) {\n return getSlingHttpServletResponse(request);\n }\n if (requestedClass.equals(SlingScriptHelper.class)) {\n return getSlingScriptHelper(request);\n }\n }\n\n return null;\n }", "@Override\n\tpublic boolean mergeWith(BUEdge other) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "public boolean canBeMerged(MInspectSetting entity) {\n\t\treturn true;\n\t}", "@Override\r\n\t\tpublic final boolean combinePropertyLists()\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "public interface ResourceEntityMapperExt {\n\n List<ResourceEntity> getAllResource();\n\n Set<ResourceEntity> selectRoleResourcesByRoleId(@Param(\"roleId\") String roleId);\n\n void disable(@Param(\"resourceId\") String resourceId);\n\n void enable(@Param(\"resourceId\") String resourceId);\n\n List<Map> getParentMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getChildrenMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getAllParentMenus();\n\n List<Map> getAllChildrenMenus();\n\n List<Map> queryResourceList();\n\n void deleteByResourceId(@Param(\"resourceId\")String resourceId);\n\n List<String> resourcesByRoleId(@Param(\"roleId\") String roleId);\n\n List<Map> getAllChildrenMenusBySourceId(@Param(\"sourceId\")String sourceId);\n}", "@Override\n\t\tpublic <T extends IBaseResource> T load(Class<T> theType, IIdType theId) throws ResourceNotFoundException {\n\t\t\tif (\"ValueSet\".equals(theType.getSimpleName())) {\n\t\t\t\tIFhirResourceDao<ValueSet> dao = getDao(ValueSet.class);\n\t\t\t\tValueSet in = dao.read(theId, null);\n\t\t\t\tString encoded = getContext().newJsonParser().encodeResourceToString(in);\n\n\t\t\t\t// TODO: this is temporary until structures-dstu2 catches up to structures-hl7org.dstu2\n\t\t\t\tencoded = encoded.replace(\"\\\"define\\\"\", \"\\\"codeSystem\\\"\");\n\n\t\t\t\treturn myRefImplCtx.newJsonParser().parseResource(theType, encoded);\n\t\t\t} else if (\"Questionnaire\".equals(theType.getSimpleName())) {\n\t\t\t\tIFhirResourceDao<Questionnaire> dao = getDao(Questionnaire.class);\n\t\t\t\tQuestionnaire vs = dao.read(theId, null);\n\t\t\t\treturn myRefImplCtx.newJsonParser().parseResource(theType, getContext().newJsonParser().encodeResourceToString(vs));\n\t\t\t} else {\n\t\t\t\t// Should not happen, validator will only ask for these two\n\t\t\t\tthrow new IllegalStateException(\"Unexpected request to load resource of type \" + theType);\n\t\t\t}\n\n\t\t}", "private void merge(Map<String, NodeT> source, Map<String, NodeT> target) {\n for (Map.Entry<String, NodeT> entry : source.entrySet()) {\n String key = entry.getKey();\n if (!target.containsKey(key)) {\n target.put(key, entry.getValue());\n }\n }\n }", "public Builder mergeValue(org.apache.calcite.avatica.proto.Common.TypedValue value) {\n if (valueBuilder_ == null) {\n if (value_ != null) {\n value_ =\n org.apache.calcite.avatica.proto.Common.TypedValue.newBuilder(value_).mergeFrom(value).buildPartial();\n } else {\n value_ = value;\n }\n onChanged();\n } else {\n valueBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "private ResourceWrapper getWrappedResourceContent(String runtimeName, Resource resource, Map<Requirement, Resource> mapping) {\n IllegalArgumentAssertion.assertNotNull(runtimeName, \"runtimeName\");\n IllegalArgumentAssertion.assertNotNull(resource, \"resource\");\n\n // Do nothing if there is no mapping\n if (mapping == null || mapping.isEmpty()) {\n InputStream content = getFirstRelevantResourceContent(resource).getContent();\n return new ResourceWrapper(runtimeName, runtimeName, content);\n }\n\n // Create content archive\n InputStream content = getFirstRelevantResourceContent(resource).getContent();\n ConfigurationBuilder config = new ConfigurationBuilder().classLoaders(Collections.singleton(ShrinkWrap.class.getClassLoader()));\n JavaArchive archive = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, runtimeName);\n archive.as(ZipImporter.class).importFrom(content);\n\n boolean wrapAsSubdeployment = runtimeName.endsWith(\".war\");\n\n // Create wrapper archive\n JavaArchive wrapper;\n Asset structureAsset;\n if (wrapAsSubdeployment) {\n wrapper = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, \"wrapped-\" + runtimeName + \".ear\");\n structureAsset = new StringAsset(generateSubdeploymentDeploymentStructure(resource, runtimeName, mapping));\n } else {\n wrapper = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, \"wrapped-\" + runtimeName);\n structureAsset = new StringAsset(generateDeploymentStructure(resource, runtimeName, mapping));\n }\n wrapper.addAsManifestResource(structureAsset, \"jboss-deployment-structure.xml\");\n wrapper.add(archive, \"/\", ZipExporter.class);\n\n content = wrapper.as(ZipExporter.class).exportAsInputStream();\n return new ResourceWrapper(wrapper.getName(), runtimeName, content);\n }", "public void merge(MapUtil newSet) {\n\t\tMap<String, Object> newMap = newSet.getInternalMap();\n\t\tfor (Entry<String, Object> entry : newMap.entrySet()) {\n\t\t\tvalues.put(entry.getKey(), entry.getValue());\n\t\t}\n\t}", "protected void replaceResource(String newResourceType, String newResourceSuperType) {\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> props = new HashMap<>(resource.adaptTo(Map.class));\n if (newResourceType != null) {\n props.put(ResourceResolver.PROPERTY_RESOURCE_TYPE, newResourceType);\n }\n if (newResourceSuperType != null) {\n props.put(\"sling:resourceSuperType\", newResourceSuperType);\n }\n Resource r = addOrReplaceResource(resolver, resource.getPath(), props);\n request.setResource(r);\n }", "@Override\n\tpublic IResource getCorrespondingResource() {\n\t\treturn getUnderlyingResource();\n\t}" ]
[ "0.6281084", "0.593066", "0.5903443", "0.58796823", "0.5853835", "0.552175", "0.5468184", "0.54498315", "0.53926814", "0.53501886", "0.5321403", "0.5188782", "0.5115377", "0.5058523", "0.50307226", "0.49859685", "0.49652076", "0.4942715", "0.49354082", "0.4919197", "0.48999426", "0.48857072", "0.48750278", "0.48694634", "0.4847396", "0.4827905", "0.48216328", "0.47754958", "0.47604686", "0.47545302", "0.4728281", "0.47187954", "0.4710632", "0.4702527", "0.46977437", "0.46915132", "0.46709335", "0.46044528", "0.45997632", "0.4590982", "0.45808503", "0.45659986", "0.45648608", "0.45643172", "0.4564293", "0.4560867", "0.45452502", "0.45069158", "0.45005047", "0.4496714", "0.44721496", "0.44571748", "0.44488308", "0.44460046", "0.44445425", "0.44428378", "0.44335526", "0.44322613", "0.44310477", "0.44245458", "0.44145036", "0.4394108", "0.439393", "0.4381846", "0.43717754", "0.43713173", "0.43257105", "0.43216518", "0.43162858", "0.4315627", "0.43118426", "0.4295448", "0.42850447", "0.42807898", "0.42793882", "0.42745972", "0.42702538", "0.42679584", "0.42674413", "0.42664444", "0.426165", "0.4247057", "0.4243103", "0.4243001", "0.42404982", "0.4238854", "0.42371067", "0.4236874", "0.42328984", "0.42258552", "0.4225142", "0.42226657", "0.42201298", "0.42191663", "0.42167714", "0.42164144", "0.42162266", "0.42159232", "0.42115587", "0.4211157" ]
0.7526102
0
Returns a merged child resource. If both the primaryResource and secondaryResource has the child, it is returned as a MergingResourceWrapper. If only the primaryResource or secondaryResource has the child, the child is returned as an unwrapped resource. If neither the primaryResource or secondaryResource has the child, null is returned;
@Override public Resource getChild(String relPath) { if (secondaryResource != null) { if (childCache.containsKey(relPath)) { return childCache.get(relPath); } Resource retVal = null; Resource secondaryChild = secondaryResource.getChild(relPath); Resource primaryChild = primaryResource.getChild(relPath); if (secondaryChild != null && primaryChild != null) { retVal = new MergingResourceWrapper(primaryChild, secondaryChild); } else if (secondaryChild != null && primaryChild == null) { retVal = secondaryChild; } else { retVal = primaryChild; } childCache.put(relPath, retVal); return retVal; } return super.getChild(relPath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MergingResourceWrapper(Resource primaryResource, Resource secondaryResource) {\n super(primaryResource != null ? primaryResource : secondaryResource);\n if (primaryResource == null && secondaryResource == null) {\n throw new IllegalArgumentException(\"must wrap at least one resource\");\n }\n this.primaryResource = primaryResource != null ? primaryResource : secondaryResource;\n this.secondaryResource = primaryResource != null ? secondaryResource : null;\n }", "public Resource getSecondaryResource() {\n return secondaryResource;\n }", "public ResourceSpec merge(final ResourceSpec other) {\n\t\tcheckNotNull(other, \"Cannot merge with null resources\");\n\n\t\tif (this.equals(UNKNOWN) || other.equals(UNKNOWN)) {\n\t\t\treturn UNKNOWN;\n\t\t}\n\n\t\tResourceSpec target = new ResourceSpec(\n\t\t\tthis.cpuCores.merge(other.cpuCores),\n\t\t\tthis.taskHeapMemory.add(other.taskHeapMemory),\n\t\t\tthis.taskOffHeapMemory.add(other.taskOffHeapMemory),\n\t\t\tthis.managedMemory.add(other.managedMemory));\n\t\ttarget.extendedResources.putAll(extendedResources);\n\t\tfor (Resource resource : other.extendedResources.values()) {\n\t\t\ttarget.extendedResources.merge(resource.getName(), resource, (v1, v2) -> v1.merge(v2));\n\t\t}\n\t\treturn target;\n\t}", "public Resource getPrimaryResource() {\n return primaryResource;\n }", "public ResourceMount autodetectMerging() {\n\t\t_merge = null;\n\t\treturn this;\n\t}", "public interface LinkOrResource {\n\n\tHalLink asLink();\n\n\tdefault Optional<HalResource> asResource(){\n\t\tif(this instanceof HalResource){\n\t\t\treturn Optional.of((HalResource) this);\n\t\t}else\n\t\t\treturn Optional.empty();\n\t}\n}", "@Override\n\tpublic IResource getCorrespondingResource() {\n\t\treturn getUnderlyingResource();\n\t}", "private ResourceWrapper getWrappedResourceContent(String runtimeName, Resource resource, Map<Requirement, Resource> mapping) {\n IllegalArgumentAssertion.assertNotNull(runtimeName, \"runtimeName\");\n IllegalArgumentAssertion.assertNotNull(resource, \"resource\");\n\n // Do nothing if there is no mapping\n if (mapping == null || mapping.isEmpty()) {\n InputStream content = getFirstRelevantResourceContent(resource).getContent();\n return new ResourceWrapper(runtimeName, runtimeName, content);\n }\n\n // Create content archive\n InputStream content = getFirstRelevantResourceContent(resource).getContent();\n ConfigurationBuilder config = new ConfigurationBuilder().classLoaders(Collections.singleton(ShrinkWrap.class.getClassLoader()));\n JavaArchive archive = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, runtimeName);\n archive.as(ZipImporter.class).importFrom(content);\n\n boolean wrapAsSubdeployment = runtimeName.endsWith(\".war\");\n\n // Create wrapper archive\n JavaArchive wrapper;\n Asset structureAsset;\n if (wrapAsSubdeployment) {\n wrapper = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, \"wrapped-\" + runtimeName + \".ear\");\n structureAsset = new StringAsset(generateSubdeploymentDeploymentStructure(resource, runtimeName, mapping));\n } else {\n wrapper = ShrinkWrap.createDomain(config).getArchiveFactory().create(JavaArchive.class, \"wrapped-\" + runtimeName);\n structureAsset = new StringAsset(generateDeploymentStructure(resource, runtimeName, mapping));\n }\n wrapper.addAsManifestResource(structureAsset, \"jboss-deployment-structure.xml\");\n wrapper.add(archive, \"/\", ZipExporter.class);\n\n content = wrapper.as(ZipExporter.class).exportAsInputStream();\n return new ResourceWrapper(wrapper.getName(), runtimeName, content);\n }", "public Resource getParent() {\n return null;\n }", "public Resource getChild(String relPath) {\n return null;\n }", "private Address getFullAddressOfChild(DMRResource parentResource, Address childRelativePath) {\n\n Address fullAddress = null;\n if (childRelativePath.isRoot()) {\n fullAddress = parentResource.getAddress(); // there really is no child; it is the resource itself\n } else {\n boolean childResourceExists = false;\n String[] addressParts = childRelativePath.toAddressParts();\n if (addressParts.length > 2) {\n // we didn't query the parent's model for recursive data - so we only know direct children.\n // if a metric/avail gets data from grandchildren or deeper, we don't know if it exists,\n // so just assume it does.\n childResourceExists = true;\n log.tracef(\"Cannot test long child path [%s] under resource [%s] \"\n + \"for existence so it will be assumed to exist\", childRelativePath, parentResource);\n } else {\n ModelNode haystackNode = parentResource.getModelNode().get(addressParts[0]);\n if (haystackNode.getType() != ModelType.UNDEFINED) {\n final List<ModelNode> haystackList = haystackNode.asList();\n for (ModelNode needleNode : haystackList) {\n if (needleNode.has(addressParts[1])) {\n childResourceExists = true;\n break;\n }\n }\n }\n }\n if (childResourceExists) {\n fullAddress = parentResource.getAddress().clone().add(childRelativePath);\n }\n }\n return fullAddress;\n }", "public void merge( Resource r )\n\t{\n\t\tr.transter(this, r.amount);\n\t\tr.recycle();\n\t}", "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 }", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "public abstract Promise<JsonValue, ResourceException> getRelationshipValueForResource(Context context, \n String resourceId);", "DppBaseResourceInner innerModel();", "public boolean isSplitResource() {\n\t\treturn splitResource;\n\t}", "public Resource getTargetResource();", "public Resource createResourceSetWithResource(URI aPathToResource) {\r\n \t\tResource groupResource = null;\r\n \r\n \t\tif (aPathToResource != null) {\r\n \t\t\tResourceSet resourceSet = createResourceSet();\r\n \r\n \t\t\t// Create the resource for given group\r\n \t\t\tgroupResource = resourceSet.createResource(aPathToResource);\r\n \t\t}\r\n \t\treturn groupResource;\r\n \t}", "interface Blank extends WithParentResource {\n }", "interface Blank extends WithParentResource {\n }", "interface Blank extends WithParentResource {\n }", "public interface ProductRelatedResource extends RepositoryResource {\n\n /**\n * Gets the productId for the resource.\n *\n * @return the product id, or null if it has not been set\n */\n public String getProductId();\n\n /**\n * Gets the edition of the product, if applicable.\n *\n * @return the edition of the product, or null if it is not set\n */\n public String getProductEdition();\n\n /**\n * Gets the install type of the product (e.g. \"Archive\")\n *\n * @return the install type, or null if it is not set\n */\n public String getProductInstallType();\n\n /**\n * Gets the version of the product\n *\n * @return the product version, or null if it is not set\n */\n public String getProductVersion();\n\n /**\n * Gets the features included in this product\n *\n * @return the features provided by this product, or null if not set\n */\n public Collection<String> getProvideFeature();\n\n /**\n * Gets the features that this product depends on\n *\n * @return the features required by this product, or null if not set\n */\n public Collection<String> getRequireFeature();\n\n /**\n * Gets the collection of OSGi requirements this product has\n *\n * @return the collection of OSGi requirements applicable to this product, or null if not set\n */\n public Collection<Requirement> getGenericRequirements();\n\n /**\n * Gets the version information for the Java packaged with this product\n *\n * @return The Java version information, or null if this product is not packaged with Java\n */\n public String getPackagedJava();\n\n}", "public BResource getResource(String resourceid)\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n\tpublic L mergeIntoPersisted(R root, L entity) {\n\t\treturn entity;\n\t}", "DcsResourceDO findResourceForUpdate(String resourceId);", "public Item merge(Item other);", "public Optional<ManagedObject> getMixedIn() {\n return Objects.equals(getOwner(), getTarget()) \n ? Optional.empty()\n : Optional.of(getOwner());\n }", "public synchronized ISegmentReader getMergeReader() throws IOException {\n\t\tif (mMergeReader == null) {\n\t\t\tif (mReader != null) {\n\t\t\t\t// Just use the already opened non-merge reader\n\t\t\t\t// for merging. In the NRT case this saves us\n\t\t\t\t// pointless double-open:\n\t\t\t\t// Ref for us:\n\t\t\t\tmReader.increaseRef();\n\t\t\t\tmMergeReader = mReader;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// We steal returned ref:\n\t\t\t\tmMergeReader = mWriter.getContext().newSegmentReader(mInfo);\n\t\t\t\tif (mLiveDocs == null) \n\t\t\t\t\tmLiveDocs = mMergeReader.getLiveDocs();\n\t\t\t}\n\t\t}\n\n\t\t// Ref for caller\n\t\tmMergeReader.increaseRef();\n\t\treturn mMergeReader;\n\t}", "public Person getPerson(ResourceReference resourceReference) {\n return resourceReference == null ? null : getPerson(resourceReference.getResource());\n }", "public SqlContainerResource resource() {\n return this.innerProperties() == null ? null : this.innerProperties().resource();\n }", "@Override\n\tpublic <T> T merge(T entity) {\n\t\treturn null;\n\t}", "public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}", "public static Resources getSharedResources() {\n return sharedResource;\n }", "@Override\n public <Type> Type adaptTo(Class<Type> type) {\n\n if (secondaryResource != null && (type == ValueMap.class || type == Map.class)) {\n if (properties != null) {\n return (Type) properties;\n }\n\n ValueMap contentMap = primaryResource.adaptTo(ValueMap.class);\n ValueMap assetMap = secondaryResource.adaptTo(ValueMap.class);\n\n if (type == ValueMap.class) {\n properties = new MergingValueMap(contentMap, assetMap);\n } else if (type == Map.class) {\n properties = new MergingValueMap(contentMap != null ? new ValueMapDecorator(contentMap) : ValueMap.EMPTY,\n assetMap != null ? new ValueMapDecorator(assetMap) : ValueMap.EMPTY);\n }\n\n return (Type) properties;\n }\n\n return super.adaptTo(type);\n }", "public ResourceVO getResource() {\n\treturn resource;\n}", "public Resource findNearestResource(){\n\t\tResource nearestResource = null;\n\t\tfloat distanceToCurrentResource = 0f;\n\t\tfor (Resource resource : MapData.getInstance().getResources()) {\n\t\t\tif(resource.isResourceMaxed()) continue;\n\t\t\tif (resource.getCenter().dst2(getCenter()) < 4000000) {\n\t\t\t\tif (nearestResource == null) {\n\t\t\t\t\tnearestResource = resource;\n\t\t\t\t\tdistanceToCurrentResource = nearestResource\n\t\t\t\t\t\t\t.getCenter().dst2(this.getCenter());\n\t\t\t\t} else {\n\t\t\t\t\tfloat distanceToNewResource = resource.getCenter()\n\t\t\t\t\t\t\t.dst2(this.getCenter());\n\t\t\t\t\tnearestResource = (distanceToNewResource < distanceToCurrentResource) ? resource\n\t\t\t\t\t\t\t: nearestResource;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nearestResource;\n\t}", "Resource getResource() {\n\t\treturn resource;\n\t}", "@Override\n\tpublic Instance mergeInstance(final Instance inst) {\n\t\treturn null;\n\t}", "public Resource getTargetResource() {\n Resource target = (Resource) getResource();\n edu.hkust.clap.monitor.Monitor.loopBegin(626);\nwhile (target instanceof ResourceFrame) { \nedu.hkust.clap.monitor.Monitor.loopInc(626);\n{\n target = ((ResourceFrame) target).getResource();\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(626);\n\n return target;\n }", "boolean mergeResources() {\n return mergeResources == null ? !developerMode : mergeResources;\n }", "private AdvertServiceEntryResource getResource() throws RemoteException\n {\n\tObject resource = null;\n\ttry\n\t {\n\t\tresource = ResourceContext.getResourceContext().getResource();\n\t }\n\tcatch(NoSuchResourceException e)\n\t {\n\t\tthrow new RemoteException(\"Specified resource does not exist\", e);\n\t }\n\tcatch(ResourceContextException e)\n\t {\n\t\tthrow new RemoteException(\"Error during resource lookup\", e);\n\t }\n\tcatch(Exception e)\n\t {\n\t\tthrow new RemoteException(\"\", e);\n\t }\n\t\n\tAdvertServiceEntryResource entryResource = (AdvertServiceEntryResource) resource;\n\treturn entryResource;\n }", "public interface ResourceBase {\n\tString getName();\n\tString getLocation();\n\t/** Path equals location*/\n\tString getPath();\n\tResourceBase getParent();\n\tList<ResourceBase> getSubResources();\n\t\n\t/** TODO: May be interface extension if resource structure cannot be changed via the interface*/\n\tvoid addElement(String newSubResourceName, ResourceBase newSubResource);\n\tResourceBase removeElement(String subResourceName);\n}", "public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}", "@Override\n public Exchange aggregate(Exchange original, Exchange resource) {\n String cswResponse = original.getIn().getBody(String.class);\n String harvesterDetails = resource.getIn().getBody(String.class);\n String mergeResult = \"<harvestedContent>\" +\n harvesterDetails + cswResponse + \"</harvestedContent>\";\n\n if (original.getPattern().isOutCapable()) {\n original.getOut().setBody(mergeResult);\n } else {\n original.getIn().setBody(mergeResult);\n }\n return original;\n }", "private IResource convertToSortedResource(IResource unsortedResource) throws CoreException {\n \t\tIPath sortedFolderRelativePath = unsortedResource.getProjectRelativePath().removeFirstSegments(1);\n \n \t\tint type = unsortedResource.getType();\n \n \t\tif (type == IResource.FOLDER) {\n \t\t\treturn getSortedFolder().getFolder(sortedFolderRelativePath);\n \t\t} else if (type == IResource.FILE) {\n \t\t\treturn getSortedFolder().getFile(sortedFolderRelativePath);\n \t\t} else {\n \t\t\tthrow new ResourceException(IResourceStatus.RESOURCE_WRONG_TYPE, null, \"Wrong resource type\", null);\n \t\t}\n \t}", "@Override\n\tpublic T merge(T obj) throws Exception {\n\t\treturn null;\n\t}", "public ResourceType getMaxResource() {\n if (food >= energy && food >= ore) {\n return ResourceType.FOOD;\n } else if (energy >= food && energy >= ore) {\n return ResourceType.ENERGY;\n } else {\n return ResourceType.ORE;\n }\n }", "@Test\n public void overlappingSync() throws RepositoryException, PersistenceException {\n ResourceBuilder builder = context.build().withIntermediatePrimaryType(TYPE_UNSTRUCTURED);\n ResourceBuilder fromBuilder = builder.resource(\"/s/from\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED, \"attrroot\", \"rootval\");\n Resource toResource = fromBuilder.resource(\"a\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED).getCurrentParent();\n fromBuilder.resource(\"b\", PROP_PRIMARY_TYPE, TYPE_UNSTRUCTURED, \"attrb\", \"valb\");\n builder.commit();\n\n // JcrTestUtils.printResourceRecursivelyAsJson(context.resourceResolver().getResource(\"/s\"));\n syncronizer.update(fromBuilder.getCurrentParent(), toResource);\n toResource.getResourceResolver().adaptTo(Session.class).save();\n // JcrTestUtils.printResourceRecursivelyAsJson(context.resourceResolver().getResource(\"/s\"));\n\n assertEquals(\"rootval\", ResourceHandle.use(toResource).getProperty(\"attrroot\"));\n assertEquals(\"valb\", ResourceHandle.use(toResource).getProperty(\"b/attrb\"));\n // no infinite recursion:\n assertNull(ResourceHandle.use(toResource).getChild(\"a/a\"));\n // from/a/a exists, but that's a bit hard to prevent and\n }", "public abstract T getCreatedResource();", "public interface DeviceResource extends GpoResource, GpiResource {\n\n public String getId();\n}", "private Resource deploySnapshotResource(Resource developmentResource) throws Exception {\n Version releasedBaseVersion = getReleasedBaseVersion(developmentResource);\n Resource snapshotResource = getHighestSnapshotResource(developmentResource, releasedBaseVersion);\n\n if (snapshotResource == null) {\n System.out.println(\"Uploading initial snapshot: \" + getString(developmentResource) + \" -> \" + getNextSnapshotVersion(releasedBaseVersion));\n return deploySnapshotResource(developmentResource, getNextSnapshotVersion(releasedBaseVersion));\n }\n\n System.out.println(\"Found existing snapshot: \" + getString(snapshotResource));\n if (getIdentity(developmentResource).equals(\"com.google.guava\")) {\n // FIXME workaround for BND#374\n System.out.println(\"Skipping snapshot diff on Google Guava to work around https://github.com/bndtools/bnd/issues/374\");\n return snapshotResource;\n }\n\n File developmentFile = m_developmentRepo.get(getIdentity(developmentResource), getVersion(developmentResource).toString(), Strategy.EXACT, null);\n File deployedFile = m_deploymentRepo.get(getIdentity(snapshotResource), getVersion(snapshotResource).toString(), Strategy.EXACT, null);\n\n boolean snapshotModified = false;\n if (getType(developmentResource).equals(\"osgi.bundle\")) {\n\n // Get a copy of the dep resource with the same version as the dev resource so we can diff diff.\n File comparableDeployedResource = getBundleWithNewVersion(deployedFile, getVersion(developmentResource).toString());\n\n // This may seem strange but the value in the dev resource manifest may be \"0\" which will not match\n // \"0.0.0\" during diff.\n File comparableDevelopmentResource = getBundleWithNewVersion(developmentFile, getVersion(developmentResource).toString());\n snapshotModified = jarsDiffer(comparableDeployedResource, comparableDevelopmentResource);\n }\n else {\n snapshotModified = filesDiffer(developmentFile, deployedFile);\n }\n\n if (snapshotModified) {\n System.out.println(\"Uploading new snapshot: \" + getString(developmentResource) + \" -> \" + getNextSnapshotVersion(getVersion(snapshotResource)));\n return deploySnapshotResource(developmentResource, getNextSnapshotVersion(getVersion(snapshotResource)));\n }\n else {\n System.out.println(\"Ignoring new snapshot: \" + getString(developmentResource));\n List<Resource> resultResources = findResources(m_deploymentRepo, getIdentityVersionRequirement(snapshotResource));\n if (resultResources == null || resultResources.size() == 0) {\n throw new IllegalStateException(\"Can not find target resource after put: \" + developmentResource);\n }\n return resultResources.get(0);\n }\n }", "public static ResourceManager mergeProperties(ResourceManager first, ResourceManager second) {\n Properties firstProps = first.getProperties();\n Properties secondProps = second.getProperties();\n\n Properties newProps = new Properties();\n\n for (String key : firstProps.stringPropertyNames())\n newProps.put(key, firstProps.getProperty(key));\n\n for (String key : secondProps.stringPropertyNames()) {\n // if ( newProps.containsKey( key ) )\n // throw new IllegalArgumentException( \"ERROR: key '\" + key +\n // \"' was already set in first ResourceManager.\" );\n\n newProps.put(key, secondProps.getProperty(key));\n }\n\n return new ResourceManager(newProps);\n }", "protected Resource getResource() {\n return resource;\n }", "public Composite getComposite()\r\n\t{\r\n\t\treturn _g2.getComposite();\r\n\t}", "DrbdResource getDrbdResource() {\n return (DrbdResource) getResource();\n }", "public Object merge(Object obj) throws HibException;", "OrganizationResourceInner innerModel();", "@Override\n\tpublic Resource insert(Resource resource) {\n\t\treturn null;\n\t}", "private BTreeNode mergeSingleKeyRoot() {\n BTreeNode root = getRoot();\n String rootKey = root.getKey(0);\n BTreeNode leftChild = root.getChild(0);\n BTreeNode rightChild = root.getChild(1);\n return root.merge(leftChild, rightChild, rootKey);\n }", "@Test\r\n\tpublic void deleteParentResource_Tests() {\n\t\tLibraryNode ln = ml.createNewLibrary(pc, \"ResourceTestLib\");\r\n\t\tBusinessObjectNode bo = null;\r\n\t\tfor (Node n : ln.getDescendants_LibraryMembers())\r\n\t\t\tif (n instanceof BusinessObjectNode) {\r\n\t\t\t\tbo = (BusinessObjectNode) n;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\tbo.setName(\"InnerObject\");\r\n\t\tResourceNode resource = ml.addResource(bo);\r\n\t\tassertTrue(\"Resource was created.\", resource != null);\r\n\t\tml.check(ln);\r\n\r\n\t\t// Given a second resource\r\n\t\tBusinessObjectNode parentBO = ml.addBusinessObjectToLibrary(ln, \"ParentBO\");\r\n\t\tResourceNode parentResource = ml.addResource(parentBO);\r\n\r\n\t\t// When - parent resource is set on resource with paramGroup\r\n\t\tParentRef parentRef = resource.setParentRef(parentResource.getName(), \"ID\");\r\n\r\n\t\t// Then - there is a parent contribution\r\n\t\tassertTrue(\"Parent makes URL contribution.\", !parentRef.getUrlContribution().isEmpty());\r\n\r\n\t\t// When - parent resource is deleted\r\n\t\tparentRef.delete();\r\n\r\n\t\t// Then - the node, tlRef and contribution are gone\r\n\t\tassertTrue(\"Parent has empty URL contribution.\", parentRef.getUrlContribution().isEmpty());\r\n\t\tassertTrue(\"TLResource does not have parentRefs\", resource.getTLModelObject().getParentRefs().isEmpty());\r\n\t\tassertTrue(\"Resource does not have ParentRef child.\", !resource.getChildren().contains(parentRef));\r\n\t}", "public Composite getComposite() {\n \t\treturn super.getComposite();\n \t}", "private ObjectNode ProcessResource(Resource res){\n if (res.isURIResource()){\n return ProcessUri(res);\n }\n else if (res.isAnon()){\n //handle blank node\n String anonId = res.getId().toString();\n\n ObjectNode json_object = mapper.createObjectNode();\n json_object.put(ArangoAttributes.TYPE, RdfObjectTypes.BLANK_NODE);\n json_object.put(ArangoAttributes.VALUE, anonId);\n\n return json_object;\n }\n return null;\n }", "protected <K extends Resource> K getFromParent(String uri, Class<K> resourceType) {\n\t\tfor (RepositoryService rs : parent.getRepositoryServices()) {\n\t\t\tif (rs == this)\n\t\t\t\tcontinue;\n\t\t\ttry {\n\t\t\t\tK r = parent.doGetResource(uri, resourceType, rs);\n\t\t\t\tif (r != null)\n\t\t\t\t\treturn r;\n\t\t\t} catch (JRRuntimeException e) {\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"get from server not found \" + uri);\n\t\treturn null;\n\t}", "private Resource deployResource(Resource developmentResource) throws Exception {\n List<Resource> releaseResources = findResources(m_releaseRepo, getIdentityVersionRequirement(developmentResource));\n if (releaseResources.size() > 0) {\n return deployReleasedResource(releaseResources.get(0));\n }\n else {\n return deploySnapshotResource(developmentResource);\n }\n }", "protected abstract T getBlankResource();", "@NotNull\n Resource getTargetContent();", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "@Override\n\tpublic Exchange aggregate(Exchange original, Exchange resource) {\n\t\t\n\t\tif (original==null){\n\n\t\t\treturn resource;\n\t\t}\n\n\t\tString messageID=original.getIn().getHeader(\"MessageID\", String.class);\n\t\t\n\t\t//Body modification done here to pass the final body \n\t\t\n\t\tString originalBody=original.getIn().getBody(String.class); \n\t\tString newBody=resource.getIn().getBody(String.class);\n\t\tString finalBody=originalBody+newBody;\n\n\t\tdebugLogger.debug(LoggingKeys.Splitter_Msg_Body,messageID,originalBody);\n\t\t\n\t\toriginal.getIn().setBody(finalBody);\n\t\t\n\n\t\toriginal.getIn().setHeader(Exchange.HTTP_QUERY, finalBody);\n\t\tdebugLogger.debug(LoggingKeys.Splitter_Msg_Final_Body,messageID,finalBody);\n\n\t\treturn original;\t\n\t}", "private Resource deployReleasedResource(Resource releasedResource) throws Exception {\n List<Resource> deployedResources = findResources(m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (deployedResources.size() == 0) {\n System.out.println(\"Uploading released resource: \" + getString(releasedResource));\n List<Resource> copied = copyResources(m_releaseRepo, m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (copied.size() != 1) {\n throw new IllegalStateException(\"Expected one result after copy: \" + getString(releasedResource));\n }\n return copied.get(0);\n }\n else {\n System.out.println(\"Released resource already deployed: \" + getString(releasedResource));\n return deployedResources.get(0);\n }\n }", "public T caseReferencedResource(ReferencedResource object) {\n\t\treturn null;\n\t}", "protected PortalObject getDefaultChild()\n {\n String portalName = getDeclaredProperty(PORTAL_PROP_DEFAULT_OBJECT_NAME);\n if (portalName == null)\n {\n portalName = DEFAULT_OBJECT_NAME;\n }\n return getChild(portalName);\n }", "public interface DppBaseResource {\n /**\n * Gets the id property: Resource Id represents the complete path to the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: Resource name associated with the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: Resource type represents the complete path of the form\n * Namespace/ResourceType/ResourceType/...\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the inner com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner object.\n *\n * @return the inner object.\n */\n DppBaseResourceInner innerModel();\n}", "@Override \n public Resource child(String childName) throws NotAuthorizedException, BadRequestException {\n Resource r = _(ApplicationManager.class).getPage(this, childName);\n if (r != null) {\n return r;\n }\n return NodeChildUtils.childOf(getChildren(), childName);\n }", "public ResourceSpec subtract(final ResourceSpec other) {\n\t\tcheckNotNull(other, \"Cannot subtract null resources\");\n\n\t\tif (this.equals(UNKNOWN) || other.equals(UNKNOWN)) {\n\t\t\treturn UNKNOWN;\n\t\t}\n\n\t\tcheckArgument(other.lessThanOrEqual(this), \"Cannot subtract a larger ResourceSpec from this one.\");\n\n\t\tfinal ResourceSpec target = new ResourceSpec(\n\t\t\tthis.cpuCores.subtract(other.cpuCores),\n\t\t\tthis.taskHeapMemory.subtract(other.taskHeapMemory),\n\t\t\tthis.taskOffHeapMemory.subtract(other.taskOffHeapMemory),\n\t\t\tthis.managedMemory.subtract(other.managedMemory));\n\n\t\ttarget.extendedResources.putAll(extendedResources);\n\n\t\tfor (Resource resource : other.extendedResources.values()) {\n\t\t\ttarget.extendedResources.merge(resource.getName(), resource, (v1, v2) -> {\n\t\t\t\tfinal Resource subtracted = v1.subtract(v2);\n\t\t\t\treturn subtracted.getValue().compareTo(BigDecimal.ZERO) == 0 ? null : subtracted;\n\t\t\t});\n\t\t}\n\t\treturn target;\n\t}", "protected CompositeTypeImpl getSingleCompositeWithNestedCollection() {\n // Complex object retrieve\n CompositeTypeImpl toReturn = new CompositeTypeImpl(\"compositeNameSpace\", COMPOSITE_TYPE_NAME, null);\n\n CompositeTypeImpl phoneNumberCompositeCollection = new CompositeTypeImpl(null, \"tPhoneNumber\", null, true);\n phoneNumberCompositeCollection.addField(PHONENUMBER_PREFIX, new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null));\n SimpleTypeImpl numbers = new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null, true, null, null, null);\n phoneNumberCompositeCollection.addField(\"numbers\", numbers);\n\n CompositeTypeImpl detailsComposite = new CompositeTypeImpl(null, \"tDetails\", \"tDetails\");\n detailsComposite.addField(\"gender\", new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null));\n detailsComposite.addField(\"weight\", new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null));\n\n SimpleTypeImpl nameSimple = new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null);\n\n SimpleTypeImpl friendsSimple = new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null);\n\n toReturn.addField(\"friends\", friendsSimple);\n toReturn.addField(EXPANDABLE_PROPERTY_PHONENUMBERS, phoneNumberCompositeCollection);\n toReturn.addField(EXPANDABLE_PROPERTY_DETAILS, detailsComposite);\n toReturn.addField(\"name\", nameSimple);\n\n return toReturn;\n }", "private InputStream merge(File srcFile, File deltaFile) throws IOException {\n \t\tInputStream result = null;\n \t\ttry {\n \t\t\tFileInputStream srcStream = new FileInputStream(srcFile);\n \t\t\tFileInputStream deltaStream = new FileInputStream(deltaFile);\n \t\t\tInputStream[] inputStreamArray = { srcStream, deltaStream };\n \n \t\t\tConfigurer configurer = new AttributeMergeConfigurer();\n \t\t\tresult = new ConfigurableXmlMerge(configurer).merge(inputStreamArray);\n \t\t} catch (Exception e) {\n \t\t\tlogger.error(\"Could not merge tenant configuration delta file: \" + deltaFile.getCanonicalPath(), e);\n \t\t}\n \t\t//\n \t\t// Try to save the merge output to a file that is suffixed with\n \t\t// \".merged.xml\" in the same directory\n \t\t// as the delta file.\n \t\t//\n \t\tif (result != null) {\n \t\t\tFile outputDir = deltaFile.getParentFile();\n \t\t\tString mergedFileName = outputDir.getAbsolutePath() + File.separator\n \t\t\t\t\t+ JEEServerDeployment.TENANT_BINDINGS_FILENAME_PREFIX + MERGED_SUFFIX;\n \t\t\tFile mergedOutFile = new File(mergedFileName);\n \t\t\ttry {\n \t\t\t\tFileUtils.copyInputStreamToFile(result, mergedOutFile);\n \t\t\t} catch (IOException e) {\n \t\t\t\tlogger.warn(\"Could not create a copy of the merged tenant configuration at: \" + mergedFileName, e);\n \t\t\t}\n \t\t\tresult.reset(); // reset the stream even if the file create failed.\n \t\t}\n \n \t\treturn result;\n \t}", "public boolean canMerge(Item other);", "ResourceWithBLOBs selectByPrimaryKey(Integer resourceid);", "@Override\n\tpublic Rent merge(Rent rentOriginalBD, Rent rentModif) {\n\t\tvalidate(rentModif);\n\n\t\tRent rentMapping = null;\n\n\t\t// IHM send a sale\n\t\tif (rentModif != null) {\n\t\t\t// Map field only if sale found and saleModif (ihm) is not null\n\t\t\tif (rentOriginalBD != null) {\n\t\t\t\trentMapping = rentOriginalBD;\n\t\t\t\tmapper.map(rentModif, rentMapping);\n\t\t\t}\n\t\t\t// no sale in database and ihm is not null\n\t\t\telse if (rentOriginalBD == null) {\n\t\t\t\trentMapping = rentModif;\n\t\t\t}\n\n\t\t} else {\n\t\t\t// ihm null and database contain sale => remove sale in database\n\t\t\tif (rentOriginalBD != null) {\n\t\t\t\tremove(rentOriginalBD);\n\t\t\t}\n\t\t}\n\n\t\treturn rentMapping;\n\t}", "public Resource getResource(){\n return res;\n }", "public synchronized Resource getResource(String respositoryId)\n {\n return null;\n }", "public child getChild() {\n return this.child;\n }", "public SubResource swappableCloudService() {\n return this.swappableCloudService;\n }", "public Masterable getChildFromRecurrenceId(RecurrenceId recurrenceProperty) {\n\t\tMasterable masterInstance = this.getMasterChild();\n\t\tif ( recurrenceProperty == null ) return masterInstance;\n\n\t\tRecurrenceId testRecurrence = null;\n\t\tboolean recalculateTimes = true;\n\t\tif ( masterHasOverrides() ) {\n\t\t\tMasterable override = null;\n\t\t\ttry {\n\t\t\t\tthis.setPersistentOn();\n\t\t\t\tList<Masterable> matchingChildren = new ArrayList<Masterable>();\n\t\t\t\tfor (VComponent vc: this.getChildren()) {\n\t\t\t\t\tif (vc.containsPropertyKey(recurrenceProperty.getName()) && vc instanceof Masterable)\n\t\t\t\t\t\tmatchingChildren.add((Masterable) vc);\n\t\t\t\t}\n\t\t\t\tif (matchingChildren.isEmpty()) {\n\t\t\t\t\t// Won't happen since we test for this in masterHasOverrides()\n\t\t\t\t\treturn this.getMasterChild();\n\t\t\t\t}\n\t\t\t\tCollections.sort(matchingChildren, RecurrenceId.getVComponentComparatorByRecurrenceId());\n\t\t\t\tfor ( int i = 0; i < matchingChildren.size(); i++ ) {\n\t\t\t\t\ttestRecurrence = matchingChildren.get(i).getRecurrenceId();\n\t\t\t\t\tif ( testRecurrence.equals(recurrenceProperty) ) {\n\t\t\t\t\t\trecalculateTimes = false;\n\t\t\t\t\t\toverride = matchingChildren.get(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif ( testRecurrence.overrides(recurrenceProperty) ) {\n\t\t\t\t\t\toverride = matchingChildren.get(i);\n\t\t\t\t\t\trecalculateTimes = true;\n\t\t\t\t\t}\n\t\t\t\t\toverride = matchingChildren.get(i);\n\t\t\t\t}\n\t\t\t} catch (YouMustSurroundThisMethodInTryCatchOrIllEatYouException e) {\n\t\t\t\tLog.w(TAG,Log.getStackTraceString(e));\n\t\t\t} finally {\n\t\t\t\tthis.setPersistentOff();\t\n\t\t\t}\n\t\t\tif ( !recalculateTimes ) return override;\n\t\t\tmasterInstance = override;\n\t\t}\n\n\t\tmasterInstance.setToRecurrence(recurrenceProperty);\n\n\t\treturn masterInstance;\n\t}", "public interface Mergeable<T extends Mergeable>\n{\n /**\n * Performs merge of this object with another object of the same type.\n * Returns this object as a result of the performed merge.\n *\n * @param object object to merge into this one\n * @return this object as a result of the performed merge\n */\n public T merge ( T object );\n}", "private IClass getDirectCommonChild(IClass c1, IClass c2) {\n\t\t// take care of base conditions\n\t\tif (c1.equals(c2))\n\t\t\treturn c1;\n\n\t\t// subsube its own children\n\t\tif (c1.hasSubClass(c2))\n\t\t\treturn c2;\n\t\tif (c2.hasSubClass(c1))\n\t\t\treturn c1;\n\n\t\t// check direct children\n\t\tList<IClass> c1c = getChildren(c1);\n\t\tList<IClass> c2c = getChildren(c2);\n\t\tList<IClass> common = new ArrayList<IClass>();\n\t\tfor (IClass c : c1c) {\n\t\t\tif (c2c.contains(c))\n\t\t\t\tcommon.add(c);\n\t\t}\n\t\tif(common.isEmpty())\n\t\t\treturn null;\n\t\tif(common.size() == 1)\n\t\t\treturn common.get(0);\n\t\t\n\t\t// return best one, if multiple\n\t\tIClass best = null;\n\t\tfor(IClass c: common){\n\t\t\tif(best == null)\n\t\t\t\tbest = c;\n\t\t\t// the one with less direct superclasses wins\n\t\t\telse if(best.getDirectSuperClasses().length > c.getDirectSuperClasses().length)\n\t\t\t\tbest = c;\n\t\t}\n\t\treturn best;\n\t}", "public EditPart getPrimaryChildEditPart() {\r\n\t\treturn getChildBySemanticHint(GeometryVisualIDRegistry\r\n\t\t\t\t.getType(ConnectorLabelEditPart.VISUAL_ID));\r\n\t}", "@Override\r\n\tpublic Resources getById(Integer id) {\n\t\treturn null;\r\n\t}", "public PropertyMergeMode mergeMode() {\n return mergeMode;\n }", "@Override\n\tprotected void merge(Object in1, Object in2, Object out) {\n\t\t\n\t}", "private Image combine(Image piece, Image background) {\n\t\tif (piece == null) {\n\t\t\treturn background;\n\t\t}\n\t\tBufferedImage image = (BufferedImage) background;\n\t\tBufferedImage overlay = (BufferedImage) piece;\n\t\n\t\t// create the new image, canvas size is the max. of both image sizes\n\t\tint w = Math.max(image.getWidth(), overlay.getWidth());\n\t\tint h = Math.max(image.getHeight(), overlay.getHeight());\n\t\tBufferedImage combined = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\n\t\t// paint both images, preserving the alpha channels\n\t\tGraphics g = combined.getGraphics();\n\t\tg.drawImage(image, 0, 0, null);\n\t\tg.drawImage(overlay, 0, 0, null);\n\t\n\t\t// Save as new image\n\t\treturn combined;\n\t}", "public Resource getResource() {\n return resource;\n }", "protected abstract ResourceValue getLayoutResource(BridgeContext context);", "public static Resource getConsoleResource(BeanContext context) {\n SlingHttpServletRequest request = context.getRequest();\n ResourceResolver resolver = request.getResourceResolver();\n String path = null;\n // use the resource set by a probably executed 'defineObjects' tag (supports including components)\n Resource resource = context.getAttribute(\"resource\", Resource.class);\n if (resource == null) {\n resource = request.getResource();\n }\n if (resource != null) {\n path = resource.getPath();\n }\n // use the suffix as the resource path if the resource is not defined or references a servlet\n if (StringUtils.isBlank(path) || path.startsWith(\"/bin/\")) {\n RequestPathInfo requestPathInfo = request.getRequestPathInfo();\n path = XSS.filter(requestPathInfo.getSuffix());\n resource = null;\n }\n if (resource == null && StringUtils.isNotBlank(path)) {\n resource = resolver.getResource(path);\n }\n if (resource == null) {\n // fallback to the root node if the servlet request has no suffix\n resource = resolver.getResource(\"/\");\n }\n return resource;\n }", "@Override\n\tpublic LinkGroup fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(LinkGroupModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tLinkGroupImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tLinkGroup linkGroup = (LinkGroup)serializable;\n\n\t\tif (linkGroup == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tlinkGroup = (LinkGroup)session.get(LinkGroupImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (linkGroup != null) {\n\t\t\t\t\tcacheResult(linkGroup);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(LinkGroupModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLinkGroupImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(LinkGroupModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tLinkGroupImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn linkGroup;\n\t}", "public T getResource() throws ResourcePoolException{\n\t\tT resource = null;\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\t//true prove if have the resource which have not in use\n\t\t\t//current size > 0 prove the resource pool have the resource\n\t\t\tif(this.currentSize>0){\n\t\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\t\tresource=resourceStatus.getResource();\n\t\t\t\t\t\t\tresourceStatus.setInUse(true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(resource==null){\n\t\t\t\tif(this.currentSize<this.maxResources){\n\t\t\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\t\t\tif(resourceStatus==null){\n\t\t\t\t\t\t\tresource=this.resourceSource.getResource();\n\t\t\t\t\t\t\tif(resource!=null){\n\t\t\t\t\t\t\t\tResourceStatus<T> oneStatus=new ResourceStatus<T>();\n\t\t\t\t\t\t\t\toneStatus.setResource(resource);\n\t\t\t\t\t\t\t\toneStatus.setInUse(true);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tthis.resourcesStatus[index]=oneStatus;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tthis.currentSize++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tthrow new ResourcePoolException(\"The resource pool is max,current:\"+this.currentSize);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn resource;\n\t}", "public MergePolicy getMergePolicy() { \n\t\tif (mMergePolicy == null) throw new NullPointerException();\n\t\treturn mMergePolicy;\n\t}", "ILitePackItem getParent();", "protected Composite getMainComposite() {\n return pageComposite;\n }" ]
[ "0.71325785", "0.5886686", "0.54621714", "0.54243594", "0.53997016", "0.5122725", "0.50478613", "0.501198", "0.4945191", "0.48647955", "0.47593564", "0.4758883", "0.4742081", "0.46904477", "0.4615796", "0.46107772", "0.4541739", "0.45098996", "0.4475025", "0.44524994", "0.44524994", "0.44524994", "0.44229677", "0.44104606", "0.44020128", "0.43932045", "0.43893152", "0.4379645", "0.43782333", "0.43698022", "0.43596208", "0.43440568", "0.43313894", "0.43118578", "0.43110722", "0.42996055", "0.42931986", "0.4289393", "0.4243559", "0.4235778", "0.42189094", "0.42129415", "0.4212184", "0.42001945", "0.41917634", "0.41722223", "0.4171369", "0.41613996", "0.41564888", "0.415534", "0.41415614", "0.41365966", "0.41361177", "0.41304785", "0.4124626", "0.41221723", "0.41209775", "0.4117378", "0.41077715", "0.410513", "0.4086912", "0.4082468", "0.40804935", "0.40803847", "0.40778244", "0.4074017", "0.40700012", "0.40574995", "0.40531445", "0.40469736", "0.4036522", "0.40317973", "0.40226352", "0.40163797", "0.4012888", "0.40108994", "0.40099296", "0.4000882", "0.39963448", "0.39961216", "0.39952424", "0.39884868", "0.39787638", "0.3978748", "0.39769226", "0.397661", "0.39681247", "0.3968071", "0.39675108", "0.39631593", "0.39610454", "0.39609286", "0.3944649", "0.39388704", "0.3936432", "0.39345202", "0.3934324", "0.39231354", "0.39205396", "0.39010873" ]
0.73911905
0
Returns the primary resource wrapped by this object.
public Resource getPrimaryResource() { return primaryResource; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic IResource getCorrespondingResource() {\n\t\treturn getUnderlyingResource();\n\t}", "Resource getResource() {\n\t\treturn resource;\n\t}", "protected Resource getResource() {\n return resource;\n }", "public Resource getResource() {\n return resource;\n }", "public ResourceVO getResource() {\n\treturn resource;\n}", "public ResourceInfo getResource() {\n\t\treturn resource;\n\t}", "public Resource getResource(){\n return res;\n }", "public SqlContainerResource resource() {\n return this.innerProperties() == null ? null : this.innerProperties().resource();\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 }", "public static ResourceFactory get() {\r\n\t\treturn single;\r\n\t}", "public abstract T getCreatedResource();", "public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }", "public Resource getSecondaryResource() {\n return secondaryResource;\n }", "public Object getObject() {\n return getObject(null);\n }", "public AbstractResource resource()\r\n {\r\n\t return this.resource_state;\r\n }", "public Object makeResource();", "public Image getPrimaryImage() {\n return primaryImage;\n }", "public Resource getTargetResource();", "private AdvertServiceEntryResource getResource() throws RemoteException\n {\n\tObject resource = null;\n\ttry\n\t {\n\t\tresource = ResourceContext.getResourceContext().getResource();\n\t }\n\tcatch(NoSuchResourceException e)\n\t {\n\t\tthrow new RemoteException(\"Specified resource does not exist\", e);\n\t }\n\tcatch(ResourceContextException e)\n\t {\n\t\tthrow new RemoteException(\"Error during resource lookup\", e);\n\t }\n\tcatch(Exception e)\n\t {\n\t\tthrow new RemoteException(\"\", e);\n\t }\n\t\n\tAdvertServiceEntryResource entryResource = (AdvertServiceEntryResource) resource;\n\treturn entryResource;\n }", "public Resource getParent() {\n return null;\n }", "public IResource getResource();", "public Jedis getResource() {\n\t\tif (jedisPool == null) {\n\t\t\tsynchronized (this) {\n\t\t\t\tif (jedisPool == null){\n\t\t\t\t\tjedisPool = new JedisPool(jedisPoolConfig, host, port);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn jedisPool.getResource();\n\t}", "protected IResource getResource() {\r\n \t\tIEditorInput input = fTextEditor.getEditorInput();\r\n \t\treturn (IResource) ((IAdaptable) input).getAdapter(IResource.class);\r\n \t}", "public JSONObject SourceResource() {\n JSONObject source = jsonParent.getJSONObject(\"sourceResource\");\n return source;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public Object getWrapper(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n } else {\n return cacheKey.getWrapper();\n }\n }", "public Integer getResourceId() {\n return resourceId;\n }", "public abstract IResource getResource();", "protected CollectionResource currentResource() throws NotAuthorizedException, BadRequestException {\n return (CollectionResource) cursor.getResource();\n }", "public ResourceService getResourceService() {\n return resourceService;\n }", "public IndexShard getPrimary() {\n return primary;\n }", "@Path(\"sourceId/\")\n public SourceResource getSourceIdResource() {\n SourceIdResourceSub resource = resourceContext.getResource(SourceIdResourceSub.class);\n resource.setParent(getEntity());\n return resource;\n }", "public String getResourceID() {\n\t\treturn resourceID;\n\t}", "public int getResourceID() {\n\t\treturn m_resourceID;\n\t}", "public java.lang.Object getInitiatingResourceID() {\n return initiatingResourceID;\n }", "@Pure\n\tpublic Resource eResource() {\n\t\treturn getJvmTypeParameter().eResource();\n\t}", "protected <K extends Resource> K getFromParent(String uri, Class<K> resourceType) {\n\t\tfor (RepositoryService rs : parent.getRepositoryServices()) {\n\t\t\tif (rs == this)\n\t\t\t\tcontinue;\n\t\t\ttry {\n\t\t\t\tK r = parent.doGetResource(uri, resourceType, rs);\n\t\t\t\tif (r != null)\n\t\t\t\t\treturn r;\n\t\t\t} catch (JRRuntimeException e) {\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"get from server not found \" + uri);\n\t\treturn null;\n\t}", "Resource getResource();", "public String getResourceId();", "public Resource findNearestResource(){\n\t\tResource nearestResource = null;\n\t\tfloat distanceToCurrentResource = 0f;\n\t\tfor (Resource resource : MapData.getInstance().getResources()) {\n\t\t\tif(resource.isResourceMaxed()) continue;\n\t\t\tif (resource.getCenter().dst2(getCenter()) < 4000000) {\n\t\t\t\tif (nearestResource == null) {\n\t\t\t\t\tnearestResource = resource;\n\t\t\t\t\tdistanceToCurrentResource = nearestResource\n\t\t\t\t\t\t\t.getCenter().dst2(this.getCenter());\n\t\t\t\t} else {\n\t\t\t\t\tfloat distanceToNewResource = resource.getCenter()\n\t\t\t\t\t\t\t.dst2(this.getCenter());\n\t\t\t\t\tnearestResource = (distanceToNewResource < distanceToCurrentResource) ? resource\n\t\t\t\t\t\t\t: nearestResource;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nearestResource;\n\t}", "public static Resources getSharedResources() {\n return sharedResource;\n }", "@Override\n public Resource getChild(String relPath) {\n\n if (secondaryResource != null) {\n\n if (childCache.containsKey(relPath)) {\n return childCache.get(relPath);\n }\n\n Resource retVal = null;\n Resource secondaryChild = secondaryResource.getChild(relPath);\n Resource primaryChild = primaryResource.getChild(relPath);\n if (secondaryChild != null && primaryChild != null) {\n retVal = new MergingResourceWrapper(primaryChild, secondaryChild);\n } else if (secondaryChild != null && primaryChild == null) {\n retVal = secondaryChild;\n } else {\n retVal = primaryChild;\n }\n\n childCache.put(relPath, retVal);\n\n return retVal;\n\n }\n\n return super.getChild(relPath);\n }", "public Resource getDelegate()\n {\n return null;\n }", "private IResource getLaunchableResource(IAdaptable adaptable) {\n\t\tIModelElement je = (IModelElement) adaptable\n\t\t\t\t.getAdapter(IModelElement.class);\n\t\tif (je != null) {\n\t\t\treturn je.getResource();\n\t\t}\n\t\treturn null;\n\t}", "public Resource getTargetResource() {\n Resource target = (Resource) getResource();\n edu.hkust.clap.monitor.Monitor.loopBegin(626);\nwhile (target instanceof ResourceFrame) { \nedu.hkust.clap.monitor.Monitor.loopInc(626);\n{\n target = ((ResourceFrame) target).getResource();\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(626);\n\n return target;\n }", "public String getResourceId() {\n return resourceId;\n }", "@Pure\n\tprotected IResourceFactory getResourceFactory() {\n\t\treturn this.resourceFactory;\n\t}", "protected abstract ID getResourceId(T resource);", "ResourceAPI createResourceAPI();", "public String getResourceId() {\n return this.resourceId;\n }", "public String getResourceId() {\n return this.resourceId;\n }", "Resource createResource();", "int getResourceId();", "@JsonIgnore\n public String getResource() {\n return this.resource;\n }", "public Resource getResource(Request request);", "public ResourceAdapter getResourceAdapter() {\n log.finest(\"getResourceAdapter()\");\n return ra;\n }", "public T getResource() throws ResourcePoolException{\n\t\tT resource = null;\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\t//true prove if have the resource which have not in use\n\t\t\t//current size > 0 prove the resource pool have the resource\n\t\t\tif(this.currentSize>0){\n\t\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\t\tresource=resourceStatus.getResource();\n\t\t\t\t\t\t\tresourceStatus.setInUse(true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(resource==null){\n\t\t\t\tif(this.currentSize<this.maxResources){\n\t\t\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\t\t\tif(resourceStatus==null){\n\t\t\t\t\t\t\tresource=this.resourceSource.getResource();\n\t\t\t\t\t\t\tif(resource!=null){\n\t\t\t\t\t\t\t\tResourceStatus<T> oneStatus=new ResourceStatus<T>();\n\t\t\t\t\t\t\t\toneStatus.setResource(resource);\n\t\t\t\t\t\t\t\toneStatus.setInUse(true);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tthis.resourcesStatus[index]=oneStatus;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tthis.currentSize++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tthrow new ResourcePoolException(\"The resource pool is max,current:\"+this.currentSize);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn resource;\n\t}", "protected Resource newResource()\n\t{\n\t\tPackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),\n\t\t\tgetStyle());\n\t\tif (packageResource != null)\n\t\t{\n\t\t\tlocale = packageResource.getLocale();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"package resource [scope=\" + getScope() + \",name=\" +\n\t\t\t\tgetName() + \",locale=\" + getLocale() + \"style=\" + getStyle() + \"] not found\");\n\t\t}\n\t\treturn packageResource;\n\t}", "@Override\r\n\tpublic Resources getById(Integer id) {\n\t\treturn null;\r\n\t}", "public Boolean primary() {\n return this.primary;\n }", "public static ReadShellPreference primary() {\n return PRIMARY;\n }", "public ResourceClass getResourceClass()\n {\n return resourceClass;\n }", "ObjectResource createObjectResource();", "public synchronized Resource getResource(String respositoryId)\n {\n return null;\n }", "public ResourceId component() {\n return this.component;\n }", "public Object get(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n }\n return cacheKey.getObject();\n }", "public String primary() {\n return this.primary;\n }", "SharedPrivateLinkResource getById(String id);", "protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}", "public Long getResourceId(){\n return id;\n }", "@NotNull\n Resource getTarget();", "public int getResourceId() {\n\t\t\treturn resourceId;\n\t\t}", "@Override\n public Object getResource(String resourceKey)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n return null;\n }\n\n WeakReference reference = (WeakReference)_cache.get(resourceKey);\n return reference.get();\n }\n }", "public ResourceKey getKey() {\n return key;\n }", "public String getResourceId() {\r\n\t\treturn resourceId;\r\n\t}", "public int getResource() throws java.rmi.RemoteException;", "public FrontDoorResourceState resourceState() {\n return this.innerProperties() == null ? null : this.innerProperties().resourceState();\n }", "protected abstract T getBlankResource();", "DppBaseResourceInner innerModel();", "public static Response getResourceResponse() {\n return response;\n }", "public String getResourceId() {\n return this.ResourceId;\n }", "public MergingResourceWrapper(Resource primaryResource, Resource secondaryResource) {\n super(primaryResource != null ? primaryResource : secondaryResource);\n if (primaryResource == null && secondaryResource == null) {\n throw new IllegalArgumentException(\"must wrap at least one resource\");\n }\n this.primaryResource = primaryResource != null ? primaryResource : secondaryResource;\n this.secondaryResource = primaryResource != null ? secondaryResource : null;\n }", "private RESTResource getRestResource(GeobatchRunInfo runInfo) {\n // Mapping og run status\n RESTResource resource = new RESTResource();\n // Category it's our category for geobatch execution\n resource.setCategory(getGeobatchExecutionCategory());\n // Name it's the run UID for the execution\n resource.setName(runInfo.getFlowUid());\n // Description it's the composite id\n resource.setDescription(runInfo.getInternalUid());\n // Metadata it's the status of the execution\n resource.setMetadata(runInfo.getFlowStatus());\n resource.setId(runInfo.getId());\n return resource;\n }", "public Integer getImageResource(){\n return mImageResource;\n }", "public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}", "public String getResourceId() {\n\t\treturn resourceId;\n\t}", "public String getResourceId() {\n\t\treturn resourceId;\n\t}", "public Resource getResource(long id) throws ResourceManagementException {\r\n ArgumentChecker.checkLongPositive(id, \"The id of resource to be retrieved\");\r\n Resource resource = this.port.getResource(id);\r\n //Each time when client receives a Resource from server, synchronize the properties map\r\n CopiedResource.syncProperties(resource);\r\n return resource;\r\n }", "private IResource getResource(Object object) {\n\t\tif (object instanceof IResource) {\n\t\t\treturn (IResource) object;\n\t\t}\n\t\tif (object instanceof IAdaptable) {\n\t\t\treturn (IResource) ((IAdaptable) object)\n\t\t\t\t\t.getAdapter(IResource.class);\n\t\t}\n\t\treturn null;\n\t}", "public ResourceManager getResourceManager ()\n {\n return _rsrcmgr;\n }", "public SubResource swappableCloudService() {\n return this.swappableCloudService;\n }", "Optional<Resource> find(Session session, IRI identifier);", "public SystemResourceNode getSystemResourceNode() {\n\t\treturn systemResourceNode;\n\t}", "public interface Resource { \n /**\n * @return the time, in <code>millis</code>, at which this resource was\n * last modified.\n */\n public long lastModified();\n\n /**\n * @return the URI that this resource corresponds to.\n */\n public String getURI();\n\n /**\n * @return the <code>InputStream</code> corresponding to this resource.\n * @throws IOException\n */\n public InputStream getInputStream() throws IOException;\n \n \n /**\n * @return the <code>Resource</code> corresponding to the given relative URI.\n * @param uri a URI.\n * @throws IOException\n */ \n public Resource getRelative(String uri) throws IOException;\n \n}", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "public Reference individual() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_INDIVIDUAL);\n }" ]
[ "0.7333313", "0.6890191", "0.6835682", "0.657472", "0.65410304", "0.65202564", "0.6519022", "0.65181637", "0.6355927", "0.6258652", "0.62483406", "0.61909777", "0.61838186", "0.6167041", "0.61609465", "0.61514926", "0.6147744", "0.6130791", "0.61022466", "0.6034271", "0.5972754", "0.59601897", "0.5950353", "0.5948348", "0.59398425", "0.59398425", "0.59398425", "0.59398425", "0.59398425", "0.59164995", "0.5905543", "0.5902062", "0.58800364", "0.58546275", "0.5826835", "0.58238715", "0.58149886", "0.5802655", "0.5801324", "0.57849413", "0.5772758", "0.5743857", "0.573988", "0.57280445", "0.57243264", "0.5719962", "0.571809", "0.57142955", "0.57085687", "0.5697609", "0.5690609", "0.5677756", "0.5659565", "0.56541383", "0.56541383", "0.56530625", "0.5650361", "0.563278", "0.5630513", "0.5628943", "0.5627204", "0.5611913", "0.56056505", "0.5599939", "0.55943656", "0.55819625", "0.5580596", "0.55758905", "0.55513597", "0.5542809", "0.55385387", "0.5532613", "0.55272543", "0.5496104", "0.54929626", "0.5485503", "0.5480158", "0.54655606", "0.54590636", "0.5455398", "0.5453965", "0.54514694", "0.54447913", "0.5444728", "0.54411894", "0.54365474", "0.5433933", "0.5431293", "0.5431058", "0.5430193", "0.5430193", "0.54080135", "0.53965193", "0.53922045", "0.5372938", "0.53655845", "0.53632367", "0.53566587", "0.5347845", "0.5344592" ]
0.808226
0
Returns the primary resource wrapped by this object.
public Resource getSecondaryResource() { return secondaryResource; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Resource getPrimaryResource() {\n return primaryResource;\n }", "@Override\n\tpublic IResource getCorrespondingResource() {\n\t\treturn getUnderlyingResource();\n\t}", "Resource getResource() {\n\t\treturn resource;\n\t}", "protected Resource getResource() {\n return resource;\n }", "public Resource getResource() {\n return resource;\n }", "public ResourceVO getResource() {\n\treturn resource;\n}", "public ResourceInfo getResource() {\n\t\treturn resource;\n\t}", "public Resource getResource(){\n return res;\n }", "public SqlContainerResource resource() {\n return this.innerProperties() == null ? null : this.innerProperties().resource();\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 }", "public static ResourceFactory get() {\r\n\t\treturn single;\r\n\t}", "public abstract T getCreatedResource();", "public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }", "public Object getObject() {\n return getObject(null);\n }", "public AbstractResource resource()\r\n {\r\n\t return this.resource_state;\r\n }", "public Object makeResource();", "public Image getPrimaryImage() {\n return primaryImage;\n }", "public Resource getTargetResource();", "private AdvertServiceEntryResource getResource() throws RemoteException\n {\n\tObject resource = null;\n\ttry\n\t {\n\t\tresource = ResourceContext.getResourceContext().getResource();\n\t }\n\tcatch(NoSuchResourceException e)\n\t {\n\t\tthrow new RemoteException(\"Specified resource does not exist\", e);\n\t }\n\tcatch(ResourceContextException e)\n\t {\n\t\tthrow new RemoteException(\"Error during resource lookup\", e);\n\t }\n\tcatch(Exception e)\n\t {\n\t\tthrow new RemoteException(\"\", e);\n\t }\n\t\n\tAdvertServiceEntryResource entryResource = (AdvertServiceEntryResource) resource;\n\treturn entryResource;\n }", "public Resource getParent() {\n return null;\n }", "public IResource getResource();", "public Jedis getResource() {\n\t\tif (jedisPool == null) {\n\t\t\tsynchronized (this) {\n\t\t\t\tif (jedisPool == null){\n\t\t\t\t\tjedisPool = new JedisPool(jedisPoolConfig, host, port);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn jedisPool.getResource();\n\t}", "protected IResource getResource() {\r\n \t\tIEditorInput input = fTextEditor.getEditorInput();\r\n \t\treturn (IResource) ((IAdaptable) input).getAdapter(IResource.class);\r\n \t}", "public JSONObject SourceResource() {\n JSONObject source = jsonParent.getJSONObject(\"sourceResource\");\n return source;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public String resourceId() {\n return this.resourceId;\n }", "public Object getWrapper(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n } else {\n return cacheKey.getWrapper();\n }\n }", "public Integer getResourceId() {\n return resourceId;\n }", "public abstract IResource getResource();", "protected CollectionResource currentResource() throws NotAuthorizedException, BadRequestException {\n return (CollectionResource) cursor.getResource();\n }", "public ResourceService getResourceService() {\n return resourceService;\n }", "public IndexShard getPrimary() {\n return primary;\n }", "@Path(\"sourceId/\")\n public SourceResource getSourceIdResource() {\n SourceIdResourceSub resource = resourceContext.getResource(SourceIdResourceSub.class);\n resource.setParent(getEntity());\n return resource;\n }", "public String getResourceID() {\n\t\treturn resourceID;\n\t}", "public int getResourceID() {\n\t\treturn m_resourceID;\n\t}", "public java.lang.Object getInitiatingResourceID() {\n return initiatingResourceID;\n }", "@Pure\n\tpublic Resource eResource() {\n\t\treturn getJvmTypeParameter().eResource();\n\t}", "protected <K extends Resource> K getFromParent(String uri, Class<K> resourceType) {\n\t\tfor (RepositoryService rs : parent.getRepositoryServices()) {\n\t\t\tif (rs == this)\n\t\t\t\tcontinue;\n\t\t\ttry {\n\t\t\t\tK r = parent.doGetResource(uri, resourceType, rs);\n\t\t\t\tif (r != null)\n\t\t\t\t\treturn r;\n\t\t\t} catch (JRRuntimeException e) {\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"get from server not found \" + uri);\n\t\treturn null;\n\t}", "Resource getResource();", "public String getResourceId();", "public Resource findNearestResource(){\n\t\tResource nearestResource = null;\n\t\tfloat distanceToCurrentResource = 0f;\n\t\tfor (Resource resource : MapData.getInstance().getResources()) {\n\t\t\tif(resource.isResourceMaxed()) continue;\n\t\t\tif (resource.getCenter().dst2(getCenter()) < 4000000) {\n\t\t\t\tif (nearestResource == null) {\n\t\t\t\t\tnearestResource = resource;\n\t\t\t\t\tdistanceToCurrentResource = nearestResource\n\t\t\t\t\t\t\t.getCenter().dst2(this.getCenter());\n\t\t\t\t} else {\n\t\t\t\t\tfloat distanceToNewResource = resource.getCenter()\n\t\t\t\t\t\t\t.dst2(this.getCenter());\n\t\t\t\t\tnearestResource = (distanceToNewResource < distanceToCurrentResource) ? resource\n\t\t\t\t\t\t\t: nearestResource;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nearestResource;\n\t}", "public static Resources getSharedResources() {\n return sharedResource;\n }", "@Override\n public Resource getChild(String relPath) {\n\n if (secondaryResource != null) {\n\n if (childCache.containsKey(relPath)) {\n return childCache.get(relPath);\n }\n\n Resource retVal = null;\n Resource secondaryChild = secondaryResource.getChild(relPath);\n Resource primaryChild = primaryResource.getChild(relPath);\n if (secondaryChild != null && primaryChild != null) {\n retVal = new MergingResourceWrapper(primaryChild, secondaryChild);\n } else if (secondaryChild != null && primaryChild == null) {\n retVal = secondaryChild;\n } else {\n retVal = primaryChild;\n }\n\n childCache.put(relPath, retVal);\n\n return retVal;\n\n }\n\n return super.getChild(relPath);\n }", "public Resource getDelegate()\n {\n return null;\n }", "private IResource getLaunchableResource(IAdaptable adaptable) {\n\t\tIModelElement je = (IModelElement) adaptable\n\t\t\t\t.getAdapter(IModelElement.class);\n\t\tif (je != null) {\n\t\t\treturn je.getResource();\n\t\t}\n\t\treturn null;\n\t}", "public Resource getTargetResource() {\n Resource target = (Resource) getResource();\n edu.hkust.clap.monitor.Monitor.loopBegin(626);\nwhile (target instanceof ResourceFrame) { \nedu.hkust.clap.monitor.Monitor.loopInc(626);\n{\n target = ((ResourceFrame) target).getResource();\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(626);\n\n return target;\n }", "public String getResourceId() {\n return resourceId;\n }", "@Pure\n\tprotected IResourceFactory getResourceFactory() {\n\t\treturn this.resourceFactory;\n\t}", "protected abstract ID getResourceId(T resource);", "ResourceAPI createResourceAPI();", "public String getResourceId() {\n return this.resourceId;\n }", "public String getResourceId() {\n return this.resourceId;\n }", "Resource createResource();", "int getResourceId();", "@JsonIgnore\n public String getResource() {\n return this.resource;\n }", "public Resource getResource(Request request);", "public ResourceAdapter getResourceAdapter() {\n log.finest(\"getResourceAdapter()\");\n return ra;\n }", "public T getResource() throws ResourcePoolException{\n\t\tT resource = null;\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\t//true prove if have the resource which have not in use\n\t\t\t//current size > 0 prove the resource pool have the resource\n\t\t\tif(this.currentSize>0){\n\t\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\t\tresource=resourceStatus.getResource();\n\t\t\t\t\t\t\tresourceStatus.setInUse(true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(resource==null){\n\t\t\t\tif(this.currentSize<this.maxResources){\n\t\t\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\t\t\tif(resourceStatus==null){\n\t\t\t\t\t\t\tresource=this.resourceSource.getResource();\n\t\t\t\t\t\t\tif(resource!=null){\n\t\t\t\t\t\t\t\tResourceStatus<T> oneStatus=new ResourceStatus<T>();\n\t\t\t\t\t\t\t\toneStatus.setResource(resource);\n\t\t\t\t\t\t\t\toneStatus.setInUse(true);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tthis.resourcesStatus[index]=oneStatus;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tthis.currentSize++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tthrow new ResourcePoolException(\"The resource pool is max,current:\"+this.currentSize);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn resource;\n\t}", "protected Resource newResource()\n\t{\n\t\tPackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),\n\t\t\tgetStyle());\n\t\tif (packageResource != null)\n\t\t{\n\t\t\tlocale = packageResource.getLocale();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"package resource [scope=\" + getScope() + \",name=\" +\n\t\t\t\tgetName() + \",locale=\" + getLocale() + \"style=\" + getStyle() + \"] not found\");\n\t\t}\n\t\treturn packageResource;\n\t}", "@Override\r\n\tpublic Resources getById(Integer id) {\n\t\treturn null;\r\n\t}", "public Boolean primary() {\n return this.primary;\n }", "public static ReadShellPreference primary() {\n return PRIMARY;\n }", "public ResourceClass getResourceClass()\n {\n return resourceClass;\n }", "ObjectResource createObjectResource();", "public synchronized Resource getResource(String respositoryId)\n {\n return null;\n }", "public ResourceId component() {\n return this.component;\n }", "public Object get(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n }\n return cacheKey.getObject();\n }", "public String primary() {\n return this.primary;\n }", "SharedPrivateLinkResource getById(String id);", "protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}", "public Long getResourceId(){\n return id;\n }", "@NotNull\n Resource getTarget();", "public int getResourceId() {\n\t\t\treturn resourceId;\n\t\t}", "@Override\n public Object getResource(String resourceKey)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n return null;\n }\n\n WeakReference reference = (WeakReference)_cache.get(resourceKey);\n return reference.get();\n }\n }", "public ResourceKey getKey() {\n return key;\n }", "public String getResourceId() {\r\n\t\treturn resourceId;\r\n\t}", "public int getResource() throws java.rmi.RemoteException;", "public FrontDoorResourceState resourceState() {\n return this.innerProperties() == null ? null : this.innerProperties().resourceState();\n }", "protected abstract T getBlankResource();", "DppBaseResourceInner innerModel();", "public static Response getResourceResponse() {\n return response;\n }", "public String getResourceId() {\n return this.ResourceId;\n }", "public MergingResourceWrapper(Resource primaryResource, Resource secondaryResource) {\n super(primaryResource != null ? primaryResource : secondaryResource);\n if (primaryResource == null && secondaryResource == null) {\n throw new IllegalArgumentException(\"must wrap at least one resource\");\n }\n this.primaryResource = primaryResource != null ? primaryResource : secondaryResource;\n this.secondaryResource = primaryResource != null ? secondaryResource : null;\n }", "private RESTResource getRestResource(GeobatchRunInfo runInfo) {\n // Mapping og run status\n RESTResource resource = new RESTResource();\n // Category it's our category for geobatch execution\n resource.setCategory(getGeobatchExecutionCategory());\n // Name it's the run UID for the execution\n resource.setName(runInfo.getFlowUid());\n // Description it's the composite id\n resource.setDescription(runInfo.getInternalUid());\n // Metadata it's the status of the execution\n resource.setMetadata(runInfo.getFlowStatus());\n resource.setId(runInfo.getId());\n return resource;\n }", "public Integer getImageResource(){\n return mImageResource;\n }", "public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}", "public String getResourceId() {\n\t\treturn resourceId;\n\t}", "public String getResourceId() {\n\t\treturn resourceId;\n\t}", "public Resource getResource(long id) throws ResourceManagementException {\r\n ArgumentChecker.checkLongPositive(id, \"The id of resource to be retrieved\");\r\n Resource resource = this.port.getResource(id);\r\n //Each time when client receives a Resource from server, synchronize the properties map\r\n CopiedResource.syncProperties(resource);\r\n return resource;\r\n }", "private IResource getResource(Object object) {\n\t\tif (object instanceof IResource) {\n\t\t\treturn (IResource) object;\n\t\t}\n\t\tif (object instanceof IAdaptable) {\n\t\t\treturn (IResource) ((IAdaptable) object)\n\t\t\t\t\t.getAdapter(IResource.class);\n\t\t}\n\t\treturn null;\n\t}", "public ResourceManager getResourceManager ()\n {\n return _rsrcmgr;\n }", "public SubResource swappableCloudService() {\n return this.swappableCloudService;\n }", "Optional<Resource> find(Session session, IRI identifier);", "public SystemResourceNode getSystemResourceNode() {\n\t\treturn systemResourceNode;\n\t}", "public interface Resource { \n /**\n * @return the time, in <code>millis</code>, at which this resource was\n * last modified.\n */\n public long lastModified();\n\n /**\n * @return the URI that this resource corresponds to.\n */\n public String getURI();\n\n /**\n * @return the <code>InputStream</code> corresponding to this resource.\n * @throws IOException\n */\n public InputStream getInputStream() throws IOException;\n \n \n /**\n * @return the <code>Resource</code> corresponding to the given relative URI.\n * @param uri a URI.\n * @throws IOException\n */ \n public Resource getRelative(String uri) throws IOException;\n \n}", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "public Reference individual() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_INDIVIDUAL);\n }" ]
[ "0.808226", "0.7333313", "0.6890191", "0.6835682", "0.657472", "0.65410304", "0.65202564", "0.6519022", "0.65181637", "0.6355927", "0.6258652", "0.62483406", "0.61909777", "0.6167041", "0.61609465", "0.61514926", "0.6147744", "0.6130791", "0.61022466", "0.6034271", "0.5972754", "0.59601897", "0.5950353", "0.5948348", "0.59398425", "0.59398425", "0.59398425", "0.59398425", "0.59398425", "0.59164995", "0.5905543", "0.5902062", "0.58800364", "0.58546275", "0.5826835", "0.58238715", "0.58149886", "0.5802655", "0.5801324", "0.57849413", "0.5772758", "0.5743857", "0.573988", "0.57280445", "0.57243264", "0.5719962", "0.571809", "0.57142955", "0.57085687", "0.5697609", "0.5690609", "0.5677756", "0.5659565", "0.56541383", "0.56541383", "0.56530625", "0.5650361", "0.563278", "0.5630513", "0.5628943", "0.5627204", "0.5611913", "0.56056505", "0.5599939", "0.55943656", "0.55819625", "0.5580596", "0.55758905", "0.55513597", "0.5542809", "0.55385387", "0.5532613", "0.55272543", "0.5496104", "0.54929626", "0.5485503", "0.5480158", "0.54655606", "0.54590636", "0.5455398", "0.5453965", "0.54514694", "0.54447913", "0.5444728", "0.54411894", "0.54365474", "0.5433933", "0.5431293", "0.5431058", "0.5430193", "0.5430193", "0.54080135", "0.53965193", "0.53922045", "0.5372938", "0.53655845", "0.53632367", "0.53566587", "0.5347845", "0.5344592" ]
0.61838186
13
public static int vertices =0; Here we are calculating min and max values for each unmatched edge's u
public void reduce(IntWritable key, Iterable<Text> values, Context output) throws IOException, InterruptedException { double min=999;double max=0; for(Text value:values) { String s[]=value.toString().split("\t"); double n=Double.parseDouble(s[1]); if(min>n)min=n; if(max<n)max=n; ver[key.get()][0]=min; ver[key.get()][1]=max; output.write(key, value); } // vertices++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateMinMaxPositions() {\n boundingVolume = null;\n if ( minMax == null ) {\n minMax = new double[6];\n\n double minX = Double.MAX_VALUE;\n double minY = Double.MAX_VALUE;\n double minZ = Double.MAX_VALUE;\n double maxX = -Double.MAX_VALUE;\n double maxY = -Double.MAX_VALUE;\n double maxZ = -Double.MAX_VALUE;\n int i;\n\n for ( i = 0; i < getNumVertices(); i++ ) {\n double x = vertexPositions[3*i+0];\n double y = vertexPositions[3*i+1];\n double z = vertexPositions[3*i+2];\n\n if ( x < minX ) minX = x;\n if ( y < minY ) minY = y;\n if ( z < minZ ) minZ = z;\n if ( x > maxX ) maxX = x;\n if ( y > maxY ) maxY = y;\n if ( z > maxZ ) maxZ = z;\n }\n minMax[0] = minX;\n minMax[1] = minY;\n minMax[2] = minZ;\n minMax[3] = maxX;\n minMax[4] = maxY;\n minMax[5] = maxZ;\n }\n }", "public static int findSmallestMSTEdge(int[][] graph,ArrayList<Integer> chosenVertices, ArrayList<Integer> unChosenVertices){\r\n int smallest = Integer.MAX_VALUE;\r\n for(int i = 0 ; i<chosenVertices.size();i++){\r\n for(int j = 0; j< unChosenVertices.size();j++){\r\n if (graph[unChosenVertices.get(j)][chosenVertices.get(i)] < smallest){\r\n smallest = graph[unChosenVertices.get(j)][chosenVertices.get(i)];\r\n }\r\n }\r\n }\r\n return smallest;\r\n }", "public int getMinimumVertexCount()\r\n {\r\n return theMinimumVertexCount;\r\n }", "private static Set<Integer> approxVertexCover(Set<Pair<Integer>> edges, Set<Integer> nodes, Set<Integer> currCover){\r\n\t\t/*\r\n\t\t * 1. Sort mutation groups by size.\r\n\t\t * 2. Find largest mutation (that hasn't been removed).\r\n\t\t * -> Find all edges with this group.\r\n\t\t * -> Store connecting nodes in currCover\r\n\t\t * -> Remove the node's connecting edges and corresponding nodes\r\n\t\t * 3. Repeat 2 until no edges left \r\n\t\t */\r\n\t\t//Initialize edges and nodes\r\n\t\tSet<Pair<Integer>> allEdges = new HashSet<Pair<Integer>>(edges);\r\n\t\tSet<Integer> allNodes = new HashSet<Integer>(nodes);\r\n\t\t\r\n\t\tint numEdgesInTree = getNumTotalEdges();\r\n\t\tint totalMut = (int) getTotalMutations();\r\n\t\t/**\r\n\t\t * Taken out for time testing\r\n\t\t */\r\n//\t\tSystem.out.println(\"Total Mutations: \" + totalMut);\r\n\t\tint conflictThreshold = getConflictThreshold(totalMut, numEdgesInTree);\r\n\t\t//System.out.println(\"Conflict Threshold: \" + conflictThreshold);\r\n\t\t//while there are still conflicting edges\r\n\t\twhile (!allEdges.isEmpty()){\r\n\t\t\t//find largest node\r\n\t\t\tint maxNode = -1;\r\n\t\t\tdouble maxMutRate = 0.0;\r\n\t\t\tfor (Integer node: allNodes){\r\n\t\t\t\tdouble currMutRate = rowToMutRateMap.get(node+1);\r\n\t\t\t\tif (currMutRate > maxMutRate){\r\n\t\t\t\t\tmaxMutRate = currMutRate;\r\n\t\t\t\t\tmaxNode = node;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/* recalculate threshold */\r\n\t\t\tif (maxNode == 113){\r\n\t\t\t}\r\n\t\t\tconflictThreshold = getConflictThreshold(totalMut, numEdgesInTree);\r\n\t\t\t/**\r\n\t\t\t * Taken out for time testing\r\n\t\t\t */\r\n//\t\t\tSystem.out.println(\"Conflict Threshold: \" + conflictThreshold);\r\n\t\t\t/*\r\n\t\t\t * if the highest mut rate is less than\r\n\t\t\t * conflictThreshold, no more nodes\r\n\t\t\t * can be added to maximal independent set,\r\n\t\t\t * meaning remaining nodes should be put\r\n\t\t\t * in vertex cover\r\n\t\t\t */\r\n\t\t\tif (maxMutRate < conflictThreshold) {\r\n\t\t\t\tcurrCover.addAll(allNodes);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//remove largest node\r\n\t\t\tallNodes.remove(maxNode);\r\n\t\t\tnumEdgesInTree++;\r\n\t\t\t//find all nodes which conflict with largest\r\n\t\t\tfor (Pair<Integer> edge: allEdges){\r\n\t\t\t\tif (edge.getFirst().equals(maxNode)){\r\n\t\t\t\t\tint conflictNode = edge.getSecond().intValue();\r\n\t\t\t\t\tcurrCover.add(conflictNode);\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t} else if (edge.getSecond().equals(maxNode)){\r\n\t\t\t\t\tint conflictNode = edge.getFirst().intValue();\r\n\t\t\t\t\tcurrCover.add(conflictNode);\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//System.out.println(\"Edges left after initial trimming: \" + allEdges.toString());\r\n\t\t\t//Remove these nodes\r\n\t\t\tallNodes.removeAll(currCover);\r\n\t\t\t//System.out.println(\"Remaining Nodes: \" + allNodes.toString());\r\n\t\t\t//Remove any edges \r\n\t\t\tSet<Pair<Integer>> edgesToRemove = new HashSet<Pair<Integer>>();\r\n\t\t\tfor (Pair<Integer> edge: allEdges){\r\n\t\t\t\tint first = edge.getFirst().intValue();\r\n\t\t\t\tint second = edge.getSecond().intValue();\r\n\t\t\t\tif (currCover.contains(first) || currCover.contains(second)){\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t\tedgesToRemove.add(edge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tallEdges.removeAll(edgesToRemove);\r\n\t\t\t//System.out.println(\"Edges left after final cuts: \" + allEdges.toString());\r\n\t\t}\r\n\t\treturn currCover;\r\n\t}", "private void initDistinctVertices() {\n this.distinctSourceCount = new HashMap<>();\n this.distinctTargetCount = new HashMap<>();\n\n // for every type of edge...\n for (Map.Entry<String, TemporalElementStats> entries : edgeStats.entrySet()) {\n TemporalElementStats stats = edgeStats.get(entries.getKey());\n List<TemporalElement> sample = stats.getSample();\n int sampleSize = sample.size();\n // ...extract source and target vertex IDs of the edges...\n HashSet<GradoopId> sourceIds = new HashSet<>();\n HashSet<GradoopId> targetIds = new HashSet<>();\n for (TemporalElement edge : sample) {\n sourceIds.add(((TemporalEdge) edge).getSourceId());\n targetIds.add(((TemporalEdge) edge).getTargetId());\n }\n // ... and estimate distinct source and target vertices naively\n long sourceEstimation = sourceIds.size() *\n (stats.getElementCount() / sampleSize);\n long targetEstimation = targetIds.size() *\n (stats.getElementCount() / sampleSize);\n distinctSourceCount.put(entries.getKey(), sourceEstimation);\n distinctTargetCount.put(entries.getKey(), targetEstimation);\n }\n }", "ArrayList<ArrayList<Vertex>> generateInitVertices() {\n ArrayList<ArrayList<Vertex>> vertices = new ArrayList<ArrayList<Vertex>>();\n for (int x = 0; x < width; x++) {\n ArrayList<Vertex> temp = new ArrayList<Vertex>();\n for (int y = 0; y < height; y++) {\n temp.add(new Vertex(x, y));\n }\n vertices.add(temp);\n }\n Random r = new Random();\n for (ArrayList<Vertex> vList : vertices) {\n for (Vertex v : vList) {\n if (v.x != 0) {\n v.outEdges.add(new Edge(v, vertices.get(v.x - 1).get(v.y), r.nextInt(1000)));\n }\n if (v.x != width - 1) {\n v.outEdges.add(new Edge(v, vertices.get(v.x + 1).get(v.y), r.nextInt(1000)));\n }\n if (v.y != 0) {\n v.outEdges.add(new Edge(v, vertices.get(v.x).get(v.y - 1), r.nextInt(1000)));\n }\n if (v.y != height - 1) {\n v.outEdges.add(new Edge(v, vertices.get(v.x).get(v.y + 1), r.nextInt(1000)));\n }\n }\n }\n return vertices;\n }", "public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}", "public void findUpperAndLowerEdge() throws NoSudokuFoundException{\n int bestUpperHit = 0;\n int bestLowerHit = 0;\n double t = INTERSECT_TOLERANCE;\n for (int h=0; h<nextH; h++) {\n int upperHit = 0;\n int lowerHit = 0;\n // for every horizontal line, check if vertical edge points A and B \n // are on that line.\n double[] hline = horizontalLines[h];\n double hy1 = hline[1],\n hy2 = hline[3];\n for (int v=0; v<nextV; v++){\n double[] vec = verticalLines[v];\n double ay = vec[1],\n by = vec[3];\n // if they are, count them\n if(ay < by) { // A is above B\n if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)){\n // A is between the left and right edge point.\n // only count it if it is above the screen center.\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n }\n } else { // B is above A\n if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n } \n }\n }\n // take the lines with the highest counts\n if(upperHit > bestUpperHit) {\n edges[0] = horizontalLines[h];\n bestUpperHit = upperHit;\n } else if (lowerHit > bestLowerHit){\n edges[2] = horizontalLines[h];\n bestLowerHit = lowerHit;\n }\n }\n if(bestUpperHit < LINE_THRESHOLD || bestLowerHit < LINE_THRESHOLD){\n throw new NoSudokuFoundException(\"Number of upper (\"+bestUpperHit+\") or lower (\"+bestLowerHit+\") line ends below threshold. h\");\n }\n // Log.v(TAG, \"Best upper hit: \" + bestUpperHit + \", best lower: \" + bestLowerHit);\n }", "int getVertices();", "private int createEdges() {\n\t\t// Use random numbers to generate random number of edges for each vertex\n\t\tint avgNumEdgesPerVertex = this.desiredTotalEdges / this.vertices.size();\n\t\tint countSuccessfulEdges = 0;\n\t\t// In order to determine the number of edges to create for each vertex\n\t\t// get a random number between 0 and 2 times the avgNumEdgesPerVertex\n\t\t// then add neighbors (edges are represented by the number of neighbors each\n\t\t// vertex has)\n\t\tfor (int i = 0; i < this.vertices.size(); i++) {\n\t\t\tfor (int j = 0; j <= (this.randomGen(avgNumEdgesPerVertex * 50) + 1); j++) {\n\t\t\t\t// select a random vertex from this.vertices (vertex list) and add as neighbor\n\t\t\t\t// ensure we don't add a vertex as a neighbor of itself\n\t\t\t\tint neighbor = this.randomGen(this.vertices.size());\n\t\t\t\tif (neighbor != i)\n\t\t\t\t\tif (this.vertices.get(i).addNeighbor(this.vertices.get(neighbor))) {\n\t\t\t\t\t\tthis.vertices.get(neighbor).addNeighbor(this.vertices.get(i));\n\t\t\t\t\t\tcountSuccessfulEdges++;\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn countSuccessfulEdges;\n\t}", "public void testEdgesSet_ofVertices() {\n System.out.println(\"edgesSet\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Set<Edge<Integer>> set = graph.edgesSet(new Integer(i), new Integer(j));\n\n if ((i + j) % 2 == 0) {\n Assert.assertEquals(set.size(), 1);\n } else {\n Assert.assertEquals(set.size(), 0);\n }\n }\n }\n }", "private void getMinEdges(XGraph.XVertex vertex, Map<Integer, XGraph.XEdge> minEdges) {\n for (Graph.Edge edge : vertex.getNonZeroItr()) {\n int cno = scc.getComponentNo(vertex), otherCno;\n otherCno = scc.getComponentNo(edge.otherEnd(vertex));\n if (cno != otherCno) {\n XGraph.XEdge adj = minEdges.get(otherCno);\n if (adj == null || adj.getWeight() > edge.getWeight()) {\n if (adj != null) {\n adj.disable();\n }\n minEdges.put(otherCno, (XGraph.XEdge) edge);\n } else {\n ((XGraph.XEdge) edge).disable();\n }\n }\n }\n\n }", "private void addVertexNonEdgeConstraint(){\n for (int i=0; i < g.nonEdges.size(); i++){\n Edge edge = g.nonEdges.get(i);\n int vertex1 = edge.from;\n int vertex2 = edge.to;\n for (int pCount =0; pCount < positionCount-1; pCount++){\n ArrayList<Integer> values = new ArrayList<>();\n values.add((variables[vertex1][pCount] * -1));\n values.add((variables[vertex2][pCount+1] * -1));\n clauses.add(values);\n values = new ArrayList<>();\n values.add((variables[vertex1][pCount+1] * -1));\n values.add((variables[vertex2][pCount] * -1));\n clauses.add(values);\n }\n\n }\n }", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "@Override\r\n\tpublic ArrayList<Edge<E>> primMinimumSpanningTree(E src) {\r\n\t\tArrayList<Edge<E>> prim = new ArrayList<Edge<E>>();\r\n\t\tif(containsVertex(src)) {\r\n\t\t\tlastSrc = vertices.get(src);\r\n\t\t\tPriorityQueue<Vertex<E>> pq = new PriorityQueue<Vertex<E>>();\r\n\t\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\t\tu.setDistance(Integer.MAX_VALUE);\r\n\t\t\t\tu.setColor(Color.WHITE);\r\n\t\t\t\tu.setPredecessor(null);\r\n\t\t\t\tpq.offer(u);\r\n\t\t\t});\r\n\t\t\tpq.remove(lastSrc);\r\n\t\t\tlastSrc.setDistance(0);\r\n\t\t\tpq.offer(lastSrc);\r\n\r\n\t\t\twhile(!pq.isEmpty()) {\r\n\t\t\t\tVertex<E> u = pq.poll();\r\n\t\t\t\tfor(Edge<E> ale : adjacencyLists.get(u.getElement())) {\r\n\t\t\t\t\tVertex<E> s = vertices.get(ale.getSrc());\r\n\t\t\t\t\tVertex<E> d = vertices.get(ale.getDst());\r\n\t\t\t\t\tif(d.getColor() == Color.WHITE && d.getDistance() > ale.getWeight()) {\r\n\t\t\t\t\t\tpq.remove(d);\r\n\t\t\t\t\t\tVertex<E> pred = d.getPredecessor();\r\n\t\t\t\t\t\tif(pred != null) { //remove the edge that has ale.dst as dst vertex\r\n\t\t\t\t\t\t\tEdge<E> edgeToRemove = new Edge<>(pred.getElement(), ale.getDst(), 1);\r\n\t\t\t\t\t\t\tprim.remove(edgeToRemove);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\td.setDistance(ale.getWeight());\r\n\t\t\t\t\t\td.setPredecessor(s);\r\n\t\t\t\t\t\tpq.offer(d);\r\n\t\t\t\t\t\tprim.add(ale);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tu.setColor(Color.BLACK);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prim;\r\n\t}", "public Graph() // constructor\n{\n vertexList = new Vertex[MAX_VERTS];\n // adjacency matrix\n adjMat = new int[MAX_VERTS][MAX_VERTS];\n nVerts = 0;\n for (int j = 0; j < MAX_VERTS; j++) // set adjacency\n for (int k = 0; k < MAX_VERTS; k++) // matrix to 0\n adjMat[j][k] = INFINITY;\n}", "int[] MinSubUnion(int x, ArrayList<Integer> vn, ArrayList<Integer> vnComp){\n\tint[] ret = new int[x];\n\t\n\t/*\n\t * Build the set for legitimate users\n\t */\n\t//ArrayList<String> L = new ArrayList<String>();\n\tArrayList<String> LComp = new ArrayList<String>();\n\t//for (int v : vn)\n\t//\tL.addAll(this.LiSet[v]);\n\tfor (int v : vnComp){\n\t\tLComp.removeAll(this.LiSet[v]);\n\t\tLComp.addAll(this.LiSet[v]);\n\t}\n\t\n\tfor(int i = 0; i < x; i ++){\n\t\tint gain = 1000000000;\n\t\tint v_min = -1;\n\t\t\n\t\tfor(int v : vn){\n\t\t\tArrayList<String> temp = this.LiSet[v];\n\t\t\ttemp.removeAll(LComp);\n\t\t\tif(gain > temp.size()){\n\t\t\t\tgain = temp.size();\n\t\t\t\tv_min = v;\n\t\t\t}\n\t\t}\n\t\tif(v_min == -1)\n\t\t\tcontinue;\n\n\t\t//L.removeAll(this.LiSet[v_max]);\n\t\tLComp.removeAll(this.LiSet[v_min]);\n\t\tLComp.addAll(this.LiSet[v_min]);\n\t\tvn.remove(vn.indexOf(v_min));\n\t\tvnComp.add(v_min);\n\t\tret[i] = v_min;\n\t}\n\treturn ret;\n}", "int[] primMST(float graph[][])\n {\n // Array to store constructed MST\n int parent[] = new int[V];\n \n // Key values used to pick minimum weight edge in cut\n float key[] = new float[V];\n \n // To represent set of vertices included in MST\n Boolean mstSet[] = new Boolean[V];\n \n // Initialize all keys as INFINITE\n for (int i = 0; i < V; i++) {\n key[i] = Integer.MAX_VALUE;\n mstSet[i] = false;\n }\n \n // Always include first 1st vertex in MST.\n key[0] = 0; // Make key 0 so that this vertex is\n // picked as first vertex\n parent[0] = 0; // First node is always root of MST\n \n // The MST will have V vertices\n for (int count = 0; count < V - 1; count++) {\n // Pick thd minimum key vertex from the set of vertices\n // not yet included in MST\n int u = minKey(key, mstSet);\n \n // Add the picked vertex to the MST Set\n mstSet[u] = true;\n \n // Update key value and parent index of the adjacent\n // vertices of the picked vertex. Consider only those\n // vertices which are not yet included in MST\n for (int v = 0; v < V; v++)\n \n // graph[u][v] is non zero only for adjacent vertices of m\n // mstSet[v] is false for vertices not yet included in MST\n // Update the key only if graph[u][v] is smaller than key[v]\n if (graph[u][v] != 0 && mstSet[v] == false && graph[u][v] < key[v]) {\n parent[v] = u;\n key[v] = graph[u][v];\n }\n }\n return parent;\n }", "public int getMaximumVertexCount()\r\n {\r\n return theMaximumVertexCount;\r\n }", "private int getMinCostVertexFromTheGraph(int[] minCostComputedForVertices, boolean[] verticesAlreadyVisited) {\n\t\tint minVertex = -1;\n\t\tint minCost = Integer.MAX_VALUE;\n\t\t\n\t\tfor(int i=0;i<minCostComputedForVertices.length;i++) {\n\t\t\tif(verticesAlreadyVisited[i]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif(minCost > minCostComputedForVertices[i]) {\n\t\t\t\tminCost = minCostComputedForVertices[i];\n\t\t\t\tminVertex = i;\n\t\t\t}\n\t\t}\n\t\treturn minVertex;\n\t}", "public void testEdgesSet_ofVertex() {\n System.out.println(\"edgesSet\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n Set<Edge<Integer>> set = graph.edgesSet(new Integer(i));\n\n Assert.assertEquals(set.size(), i % 2 == 0 ? 25 : 23);\n for (Edge<Integer> edge : set) {\n Assert.assertTrue((edge.getTargetVertex() + i) % 2 == 0);\n }\n }\n }", "private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}", "public int numVertices() { return numV; }", "private int createWEdges() {\n\t\tint scaler = 5; // Adjusts the number of edges in W\n\t\tint count = 0;\n\t\tfor (int i = 0; i < this.numWVertices; i++) {\n\t\t\tfor (int j = 0; j < this.randomGen(scaler); j++) {\n\t\t\t\tint neighbor = this.randomGen(this.numWVertices - 1);\n\t\t\t\tif (i != neighbor) {\n\t\t\t\t\tthis.vertices.get(i).addNeighbor(this.vertices.get(neighbor));\n\t\t\t\t\tthis.vertices.get(neighbor).addNeighbor(this.vertices.get(i));\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public List<Edge> getEfficientEdges(List<Point> vertices) {\n\n /**\n * placeholder for storing the answer\n */\n List<Edge> ans = new ArrayList<>();\n \n /**\n * initialized as the the maximum value of double to easily \n * overwrite it when comparing for the first time \n */\n double ansEdgeSum = Double.MAX_VALUE;\n\n /**\n * gather all possible tessellation combinations\n */\n List<List<Edge>> temp = getAllTessellations(vertices);\n \n /**\n * iterate through the list and compare each value\n */\n for (List<Edge> curr : temp) {\n\n double currSum = this.edgeSum(curr);\n \n /**\n * if the current sum is smaller than the saved answer\n * then overwrite the ans and ansEdgeSum with the new best answer\n */\n if (ansEdgeSum > currSum) {\n ansEdgeSum = currSum;\n ans = curr;\n }\n }\n\n return ans;\n }", "private List<Integer> findMinNodes() {\n\t\tint minLabel = Integer.MAX_VALUE;\n\t\tList<Integer> result = new ArrayList<Integer>();\n\n\t\tfor (int node = 0; node < vertices.length; node++) {\n\t\t\tint nodeLabel = connectivity[node][node];\n\t\t\tif (nodeLabel < minLabel) {\n\t\t\t\tresult.clear();\n\t\t\t\tresult.add(node);\n\t\t\t\tminLabel = nodeLabel;\n\t\t\t} else if (nodeLabel == minLabel) {\n\t\t\t\tresult.add(node);\n\t\t\t} else\n\t\t\t\tcontinue;\n\t\t}\n\t\treturn result;\n\t}", "ArrayList<ArrayList<Vertex>> kruskalVertice(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> allEdges = getEdges(v);\n for (ArrayList<Vertex> i : v) {\n for (Vertex j : i) {\n j.outEdges = new ArrayList<Edge>();\n }\n }\n int totalCells = height * width;\n IList<Edge> loe = new Empty<Edge>();\n //getting naming error, not sure why\n ArrayList<Edge> allEdgesSorted = mergeHelp(allEdges);\n HashMap<Integer, Integer> hash = new HashMap<Integer, Integer>();\n for (int i = 0; i <= (1000 * height) + width; i++) {\n hash.put(i, i);\n }\n ArrayList<Edge> l = allEdgesSorted;\n while (loe.len() < totalCells - 1) {\n Edge e = l.get(0);\n if (this.find(hash, e.to.toIdentifier()) != this.find(hash, e.from.toIdentifier())) {\n loe = loe.add(e);\n e.from.outEdges.add(e);\n e.to.outEdges.add(new Edge(e.to, e.from, e.weight));\n int temp = (find(hash, e.to.toIdentifier()));\n hash.remove(find(hash, e.to.toIdentifier()));\n hash.put(temp, find(hash, e.from.toIdentifier()));\n }\n l.remove(0);\n }\n return v;\n }", "int getNumberOfVertexes();", "public FixedGraph(int numOfVertices, int b, int seed) {\r\n super(numOfVertices);\r\n int adjVertex;\r\n double x = 0;\r\n int[] numOfEdges = new int[numOfVertices];\r\n Vector<Integer> graphVector = new Vector<Integer>();\r\n connectivity = b;\r\n\r\n\r\n Random random = new Random(seed);\r\n graphSeed = seed;\r\n\r\n for (int v = 0; v < numOfVertices; v++) {\r\n graphVector.add(new Integer(v));\r\n }\r\n\r\n for (int i = 0; i < numOfVertices; i++) {\r\n\r\n while ((numOfEdges[i] < b) && (graphVector.isEmpty() == false)) {\r\n x = random.nextDouble();\r\n do {\r\n adjVertex = (int) (x * numOfVertices);\r\n\r\n } while (adjVertex >= numOfVertices);\r\n\r\n\r\n if ((i == adjVertex) || (numOfEdges[adjVertex] >= b)) {\r\n if (numOfEdges[adjVertex] >= b) {\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n if (adjVertex == compInt) {\r\n graphVector.removeElementAt(v);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n\r\n }\r\n\r\n }\r\n if ((i != adjVertex) && (adjVertex < numOfVertices) && (numOfEdges[adjVertex] < b) && (super.isAdjacent(i, adjVertex) == false) && (numOfEdges[i] < b)) {\r\n super.addEdge(i, adjVertex);\r\n if (super.isAdjacent(i, adjVertex)) {\r\n numOfEdges[i] = numOfEdges[i] + 1;\r\n numOfEdges[adjVertex] = numOfEdges[adjVertex] + 1;\r\n }\r\n System.out.print(\"*\");\r\n\r\n }\r\n\r\n if (numOfEdges[i] >= b) {\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n if (i == compInt) {\r\n graphVector.removeElementAt(v);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n break;\r\n }\r\n if (graphVector.size() < b) {\r\n //boolean deadlock = false;\r\n System.out.println(\"Graph size= \" + graphVector.size());\r\n\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n //System.out.println(\"i:= \" + i + \" and compInt:= \" + compInt);\r\n if (super.isAdjacent(i, compInt) || (i == compInt)) {\r\n //System.out.println(\"\" + i + \" adjacent to \" + compInt + \" \" + super.isAdjacent(i, compInt));\r\n // deadlock = false;\r\n } else {\r\n if ((numOfEdges[compInt] < b) && (numOfEdges[i] < b) && (i != compInt)) {\r\n super.addEdge(i, compInt);\r\n numOfEdges[i] = numOfEdges[i] + 1;\r\n numOfEdges[compInt] = numOfEdges[compInt] + 1;\r\n if (numOfEdges[i] >= b) {\r\n for (int w = 0; w < graphVector.size(); w++) {\r\n\r\n int compW = ((Integer) graphVector.elementAt(w)).intValue();\r\n if (i == compW) {\r\n graphVector.removeElementAt(w);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n break;\r\n }\r\n if (numOfEdges[compInt] >= b) {\r\n for (int w = 0; w < graphVector.size(); w++) {\r\n\r\n int compW = ((Integer) graphVector.elementAt(w)).intValue();\r\n if (compInt == compW) {\r\n graphVector.removeElementAt(w);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n\r\n }\r\n // deadlock = true;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n\r\n System.out.println();\r\n }\r\n\r\n }", "private static void makeEdgesSet() {\n edges = new Edge[e];\r\n int k = 0;\r\n for (int i = 0; i < n; i++) {\r\n for (int j = 0; j < i; j++) {\r\n if (g[i][j] != 0)\r\n edges[k++] = new Edge(j, i, g[i][j]);\r\n }\r\n }\r\n }", "static int[] componentsInGraph(int[][] gb) {\n\n // **** maximum number of nodes ****\n // final int MAX_ELEMENTS = ((15000 + 1) * 2);\n\n // **** instantiate the class ****\n // DisjointUnionSets dus = new DisjointUnionSets(MAX_ELEMENTS);\n DisjointUnionSets dus = new DisjointUnionSets(totalNodes);\n\n // **** populate unions ****\n for (int i = 0; i < gb.length; i++) {\n\n // **** update union ****\n dus.union(gb[i][0], gb[i][1]);\n\n // ???? ????\n System.out.println(\"componentsInGraph <<< \" + gb[i][0] + \" <-> \" + gb[i][1]);\n System.out.println(\"componentsInGraph <<< dus: \" + dus.toString() + \"\\n\");\n }\n\n // **** compute the min and max values [1] ****\n int[] results = dus.minAndMax();\n\n // ???? ????\n System.out.println(\"componentsInGraph <<< minAndMax: \" + results[0] + \" \" + results[1]);\n\n // **** compute the min and max values [2] ****\n results = dus.maxAndMin();\n\n // ???? ????\n System.out.println(\"componentsInGraph <<< maxAndMin: \" + results[0] + \" \" + results[1]);\n\n // **** return results ****\n return results;\n }", "private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}", "public void ComputeBounds( Vec3 min, Vec3 max )\r\n\t{\r\n\t\tfor ( int iTempCount = 1; iTempCount <= 3; iTempCount++ )\r\n\t\t{\r\n\t\t\tVec3 tempPoint = m_vertices[iTempCount];\r\n\t\t\t\r\n\t\t\tif ( tempPoint.xCoord < min.xCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.xCoord = tempPoint.xCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.xCoord > max.xCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.xCoord = tempPoint.xCoord;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif ( tempPoint.yCoord < min.yCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.yCoord = tempPoint.yCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.yCoord > max.yCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.yCoord = tempPoint.yCoord;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif ( tempPoint.zCoord < min.zCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.zCoord = tempPoint.zCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.zCoord > max.zCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.zCoord = tempPoint.zCoord;\r\n\t\t\t}\t\t\t\r\n\t\t}\t\t\r\n\t}", "private void calcBoxVerts() {\n\t\tif (verts != null) {\n\t\t\tdouble minX = verts[0].getElement(0);\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = verts[0].getElement(1);\n\t\t\tdouble maxY = minY;\n\t\t\tdouble minZ = verts[0].getElement(2);\n\t\t\tdouble maxZ = minZ;\n\t\t\tfor (int i = 1; i < verts.length; i++) {\n\t\t\t\tif (verts[i].getElement(0) < minX) {\n\t\t\t\t\tminX = verts[i].getElement(0);\n\t\t\t\t} else if (verts[i].getElement(0) > maxX) {\n\t\t\t\t\tmaxX = verts[i].getElement(0);\n\t\t\t\t}\n\t\t\t\tif (verts[i].getElement(1) < minY) {\n\t\t\t\t\tminY = verts[i].getElement(1);\n\t\t\t\t} else if (verts[i].getElement(1) > maxY) {\n\t\t\t\t\tmaxY = verts[i].getElement(1);\n\t\t\t\t}\n\t\t\t\tif (verts[i].getElement(2) < minZ) {\n\t\t\t\t\tminZ = verts[i].getElement(2);\n\t\t\t\t} else if (verts[i].getElement(2) > maxZ) {\n\t\t\t\t\tmaxZ = verts[i].getElement(2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tVector[] boxVerts = new Vector[8];\n\t\t\tboxVerts[0] = new Vector(3);\n\t\t\tboxVerts[0].setElements(new double[] {minX, minY, minZ});\n\t\t\tboxVerts[1] = new Vector(3);\n\t\t\tboxVerts[1].setElements(new double[] {maxX, minY, minZ});\n\t\t\tboxVerts[2] = new Vector(3);\n\t\t\tboxVerts[2].setElements(new double[] {minX, minY, maxZ});\n\t\t\tboxVerts[3] = new Vector(3);\n\t\t\tboxVerts[3].setElements(new double[] {maxX, minY, maxZ});\n\t\t\tboxVerts[4] = new Vector(3);\n\t\t\tboxVerts[4].setElements(new double[] {minX, maxY, minZ});\n\t\t\tboxVerts[5] = new Vector(3);\n\t\t\tboxVerts[5].setElements(new double[] {maxX, maxY, minZ});\n\t\t\tboxVerts[6] = new Vector(3);\n\t\t\tboxVerts[6].setElements(new double[] {minX, maxY, maxZ});\n\t\t\tboxVerts[7] = new Vector(3);\n\t\t\tboxVerts[7].setElements(new double[] {maxX, maxY, maxZ});\n\t\t\tthis.boxVerts = boxVerts;\n\t\t} else {\n\t\t\tthis.boxVerts = null;\n\t\t}\n\t}", "private static Answer kruskalsAlgo(int v, int e, List<edge> edges) {\n Collections.sort(edges, new Comparator<edge>() {\n @Override\n public int compare(edge o1, edge o2) {\n return o1.w - o2.w;\n }\n });\n //To apply unionfind algorithm , we need to maintain a parent array\n //this will be initialised with same vertex\n int[] p = new int[v];\n for (int i = 0; i < v; i++) {\n p[i] = i;\n }\n //keep a boolean visited array\n boolean[] vis = new boolean[v];\n int cost=0;\n //iterate though edges 1 by 1 and check for cycle detection either by hasPath method or by unionFindalgorithm\n for (int i = 0; i < e; i++) {\n edge edge = edges.get(i);\n\n int p1 = findTopmostParent(edge.a, p);\n int p2 = findTopmostParent(edge.b, p);\n\n if (p1!=p2 && edges.get(i).w <A ) {\n cost+=edges.get(i).w;\n p[p2] = p1;\n\n }\n }\n int c =0;\n for(int i =0;i<v;i++){\n if(p[i]==i){\n c++;\n }\n }\n cost+=c*A;\n return new Answer(c,cost );\n }", "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "public int getVertexCount();", "public Vertex(int u, int minDistance) {\n this.u = u;\n this.minDistance = minDistance;\n }", "public Graph createGraph() {\n String fileName;\n// fileName =\"./428333.edges\";\n String line;\n Graph g = new Graph();\n// List<String> vertexNames = new ArrayList<>();\n// try\n// {\n// BufferedReader in=new BufferedReader(new FileReader(fileName));\n// line=in.readLine();\n// while (line!=null) {\n////\t\t\t\tSystem.out.println(line);\n// String src = line.split(\" \")[0];\n// String dst = line.split(\" \")[1];\n//// vertexNames.add(src);\n//// vertexNames.add(dst);\n//// System.out.println(src+\" \"+dst);\n// g.addEdge(src, dst, 1);\n// line=in.readLine();\n// }\n// in.close();\n// } catch (Exception e) {\n//\t\t\te.printStackTrace();\n// }\n\n fileName=\"./788813.edges\";\n// List<String> vertexNames = new ArrayList<>();\n try\n {\n BufferedReader in=new BufferedReader(new FileReader(fileName));\n line=in.readLine();\n while (line!=null) {\n//\t\t\t\tSystem.out.println(line);\n String src = line.split(\" \")[0];\n String dst = line.split(\" \")[1];\n g.addEdge(src, dst, 1);\n line=in.readLine();\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n// Graph g = new Graph(new String[]{\"v0\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\", \"v7\", \"v8\"});\n// // Add the required edges.\n// g.addEdge(\"v0\", \"v1\", 4); g.addEdge(\"v0\", \"v7\", 8);\n// g.addEdge(\"v1\", \"v2\", 8); g.addEdge(\"v1\", \"v7\", 11); g.addEdge(\"v2\", \"v1\", 8);\n// g.addEdge(\"v2\", \"v8\", 2); g.addEdge(\"v2\", \"v5\", 4); g.addEdge(\"v2\", \"v3\", 7);\n// g.addEdge(\"v3\", \"v2\", 7); g.addEdge(\"v3\", \"v5\", 14); g.addEdge(\"v3\", \"v4\", 9);\n// g.addEdge(\"v4\", \"v3\", 9); g.addEdge(\"v4\", \"v5\", 10);\n// g.addEdge(\"v5\", \"v4\", 10); g.addEdge(\"v5\", \"v3\", 9); g.addEdge(\"v5\", \"v2\", 4);\n// g.addEdge(\"v5\", \"v6\", 2);\n// g.addEdge(\"v6\", \"v7\", 1); g.addEdge(\"v6\", \"v8\", 6); g.addEdge(\"v6\", \"v5\", 2);\n// g.addEdge(\"v7\", \"v0\", 8); g.addEdge(\"v7\", \"v8\", 7); g.addEdge(\"v7\", \"v1\", 11);\n// g.addEdge(\"v7\", \"v6\", 1);\n// g.addEdge(\"v8\", \"v2\", 2); g.addEdge(\"v8\", \"v7\", 7); g.addEdge(\"v8\", \"v6\", 6);\n\n//\n return g;\n }", "int getEdgeCount();", "public ArrayList<Edge> Prim (String s){\n Node Start = nodeMap.get(s);\n mst = new ArrayList<>();\n HashMap<String, String> inserted = new HashMap<String, String>();\n ArrayList<Edge> failed = new ArrayList<Edge>();\n PriorityQueue<Edge> pq = new PriorityQueue<Edge>();\n ArrayList<Edge> ed = new ArrayList<Edge>(edgeMap.values());\n Edge first = ed.get(0);\n mst.add(first);\n inserted.put(first.w, first.w);\n inserted.put(first.v, first.v);\n\n priorityEdgeInsert(pq, first);\n\n while (inserted.size() <= edges() && pq.size() != 0){ //O(E log(V))\n //runs for E checking the possible V, where the number of V is devided each time, or log(V), giving ELog(V)\n Edge e = pq.poll();\n String w = inserted.get(e.w);\n String v = inserted.get(e.v);\n\n if ((w == null) ^ (v == null)){\n priorityEdgeInsert(pq, e);\n for(Edge f : failed){\n if(f.v == e.v || f.v == e.w || f.w == e.v || f.w == e.w){\n\n }\n else{\n pq.add(f);\n }\n }\n failed.clear();\n mst.add(e);\n inserted.put(e.w, e.w); //only puts one, the null one is hashed to a meaningless spot\n inserted.put(e.v, e.v);\n }\n else if ((w == null) && (v == null) ){\n failed.add(e);\n }\n else if (!(w == null) && !(v == null) ){\n failed.remove(e);\n pq.remove(e);\n }\n else if (e == null){\n System.out.println(\"HOW?\"); //should never happen.\n }\n }\n return mst;\n }", "public static void main(String[] args) {\n // write your code here\n initialize();\n\n\n Sort(profile.getProfile());\n Integer[][][] mas = new Integer[11][11][1];\n\n R.add(Q.pollFirst());\n\n for (Integer[] e : Q) {\n if (DiskCover(e, R, Rant)) {\n R.add(e);\n // Rtmp.add(Q.pollFirst());\n }\n }\n\n FindMaxAngle(R, 0);\n\n Rg = R;\n //Rtmp-R add Q\n list_r.add(R);\n int j = 0;\n boolean flag = false;\n while (!Q.isEmpty()) {\n\n\n list_r.add(FindMaxPolygonCover(Rg));\n\n }\n\n MakePolygon(list_r);\n\n boolean work = true;\n\n do {\n R.clear();\n Gr.getEdge().clear();\n // algorithmConnectivity.setMarketVertexFirst();\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n\n AlgorithmConnectivity algorithmConnectivity = new AlgorithmConnectivity();\n algorithmConnectivity.initializated(Gr.getVertex().size());\n algorithmConnectivity.setMarketVertexFirst();\n algorithmConnectivity.setMarketVertexSecond(i);\n while (algorithmConnectivity.findSecond() != 100) {\n //int a= iterator.next();\n int index = algorithmConnectivity.findSecond();\n algorithmConnectivity.setMarketVertexThird(index);\n algorithmConnectivity = MakeConnection(index, algorithmConnectivity);\n }\n R.add(algorithmConnectivity.getMarket());\n }\n if (!checkConnectionGraf(R)) {\n //MakeConnection(Gr);\n ArrayList<Integer[]> result = new ArrayList<Integer[]>();\n ArrayList<Integer> ver = new ArrayList<Integer>();\n ArrayList<ArrayList<Integer>> v = new ArrayList<ArrayList<Integer>>();\n for (Integer[] p : R) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n ver.clear();\n for (int i = 0; i < p.length; i++) {\n if (p[i] != 1) {\n ver.add(Gr.getVertex().get(i));\n }\n }\n if (ver.size() != 1) {\n // result.add(AddNewRoute(ver));\n // v.add(ver);\n result.addAll(AddNewRoute(ver));\n }\n }\n int minumum = 1000;\n Integer[] place = new Integer[3];\n for (int i = 0; i < result.size(); i++) {\n Integer[] ma = result.get(i);\n if (ma[2] == null) {\n System.out.print(\"\");\n }\n if ((minumum > ma[2]) && (ma[2]) != 0) {\n minumum = ma[2];\n place = ma;\n }\n }\n if (minumum == 1000) {\n for (Integer[] p : R) {\n ver.clear();\n for (int i = 0; i < p.length - 1; i++) {\n if (p[i] == 1) {\n ver.add(Gr.getVertex().get(i));\n }\n }\n result.addAll(AddNewRoute(ver));\n // result.add(AddNewRoute(ver));\n for (int i = 0; i < result.size(); i++) {\n Integer[] ma = result.get(i);\n if (ma[2] == null) {\n System.out.print(\"\");\n }\n if ((minumum > ma[2]) && (ma[2]) != 0) {\n minumum = ma[2];\n place = ma;\n }\n }\n AddNewVertex(place);\n }\n } else {\n AddNewVertex(place);\n }\n } else {\n work = false;\n }\n\n } while (work);\n\n MobileProfile prof = new MobileProfile();\n prof.initialization(Gr.getVertex().size());\n int sum = 0;\n int[][][] massive = profile.getProfile();\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n // sum=sum+massive;\n }\n\n\n zcd = new ZCD();\n\n zcd.setGraphR(Gr);\n\n Iterator<Edges> it = Gr.getEdgeses().iterator();\n boolean fla = false;\n while (it.hasNext()) {\n Edges d = it.next();\n LinkedList<Integer[]> graph_edges = g.getSort_index();\n\n for (int i = 0; i < graph_edges.size(); i++) {\n Integer[] mass = graph_edges.get(i);\n if (checkLine(g.getCoordinate().get(mass[0]), g.getCoordinate().get(mass[1]), Gr.getCoordinate().get(d.getX()), Gr.getCoordinate().get(d.getY()))) {\n if (!fla) {\n Integer[] wr = new Integer[3];\n wr[0] = d.getX();\n wr[1] = d.getY();\n wr[2] = mass[2];\n fla = true;\n zcd.addWrEdges(wr);\n }\n }\n }\n if (!fla) {\n\n Integer[] wr = new Integer[3];\n wr[0] = d.getX();\n wr[1] = d.getY();\n wr[2] = 2;\n\n zcd.addWrEdges(wr);\n\n }\n fla = false;\n }\n\n Edges e = null;\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n int sumwr = 0;\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n for (int k = 0; k < zcd.getWrEdges().size(); k++) {\n\n e = iterator.next();\n if (e.checkEdge(i)) {\n Integer[] m = zcd.getWrEdges().get(k);\n sumwr = sumwr + m[2];\n\n }\n\n }\n wr.add(sumwr);\n\n }\n\n int max = 0;\n int count = 0;\n for (int i = 0; i < wr.size(); i++) {\n if (max < wr.get(i)) {\n max = wr.get(i);\n count = i;\n }\n }\n Integer[] a = new Integer[2];\n a[0] = count;\n a[1] = max;\n zcd.setRoot_vertex(a);\n\n\n int number_vertex = 5;\n //ZTC ztc = new ZTC();\n neig = new int[Gr.getVertex().size()][Gr.getVertex().size()];\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n while (iterator.hasNext()) {\n e = iterator.next();\n if (e.checkEdge(i)) {\n\n neig[i][e.getY()] = 1;\n }\n }\n }\n ztc.setNeigboor(neig);\n ztc.addTVertex(a[0]);\n Integer[] zero = new Integer[3];\n zero[0] = a[0];\n zero[1] = 0;\n zero[2] = 0;\n verLmtest.add(zero);\n vertex_be = new boolean[Gr.getVertex().size()];\n int root_number = 5;\n while (ztc.getTvertex().size() != Gr.getVertex().size()) {\n\n LinkedList<Edges> q = new LinkedList<Edges>();\n\n\n count_tree++;\n\n\n LinkedList<Integer> vertext_t = new LinkedList<Integer>(ztc.getTvertex());\n while (vertext_t.size() != 0) {\n // for(int i=0; i<count_tree;i++){\n\n number_vertex = vertext_t.pollFirst();\n weight_edges.clear();\n if (!vertex_be[number_vertex]) {\n vertex_be[number_vertex] = true;\n } else {\n continue;\n }\n\n // if(i<vertext_t.size())\n\n\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n // while (iterator.hasNext()) {\n for (int k = 0; k < item.size(); k++) {\n e = iterator.next();\n\n if (e.checkEdge(number_vertex)) {\n\n weight_edges.add(zcd.getWrEdges().get(k));\n q.add(e);\n }\n\n if (q.size() > 1)\n q = sort(weight_edges, q);\n\n\n while (!q.isEmpty()) {\n e = q.pollFirst();\n Integer[] lm = new Integer[3];\n\n\n lm[0] = e.getY();\n lm[1] = 1;\n lm[2] = 0;\n boolean add_flag = true;\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getY() == mess[0]) {\n add_flag = false;\n }\n }\n if (add_flag) {\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getX() == mess[0]) {\n mess[2] = mess[2] + 1;\n /* if (e.getX() == root_number) {\n mess[1] = 1;\n } else {\n mess[1] = mess[1] + 1;\n lm[1]=mess[1];\n\n }*/\n verLmtest.set(i, mess);\n break;\n }\n\n }\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getX() == mess[0]) {\n lm[1] = mess[1] + 1;\n }\n\n }\n\n verLmtest.add(lm);\n } else {\n continue;\n }\n // }\n if (ztc.getTvertex().size() == 1) {\n edgesesTestHash.add(e);\n int x = e.getX();\n int y = e.getY();\n Edges e1 = new Edges(y, x);\n edgesesTestHash.add(e1);\n\n ztc.addEdges(e);\n ztc.addEdges(e1);\n\n ztc.addTVertex(lm[0]);\n // q.removeFirst();\n\n\n } else {\n // edgesTest.add(e);\n int x = e.getX();\n int y = e.getY();\n Edges e1 = new Edges(y, x);\n // disable.add(e);\n // disable.add(e1);\n\n edgesesTestHash.add(e1);\n edgesesTestHash.add(e);\n\n int[][] ad = getNeighboor();\n\n\n if (checkLegal(e, ad)) {\n ztc.addEdges(e);\n ztc.addEdges(e1);\n\n ztc.addTVertex(lm[0]);\n\n // if(q.size()!=0)\n // q.removeFirst();\n } else {\n // q.removeFirst();\n\n Iterator<Edges> edgesIterator = edgesesTestHash.iterator();\n while (edgesIterator.hasNext()) {\n Edges eo = edgesIterator.next();\n if ((eo.getY() == e.getY()) && (eo.getX() == e.getX())) {\n edgesIterator.remove();\n }\n if ((eo.getY() == e1.getY()) && (eo.getX() == e1.getX())) {\n edgesIterator.remove();\n }\n }\n\n verLmtest.removeLast();\n }\n\n\n }\n\n\n }\n\n\n }\n }\n }\n\n ztc.setEdgesesTree(edgesesTestHash);\n ztc.setGr(Gr);\n ConvertDataToJs convertDataToJs=new ConvertDataToJs();\n try {\n convertDataToJs.save(ztc);\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n }\n\n System.out.print(\"\");\n\n }", "ComparableEdge[] fillEdgeArray(int maxWeight) {\n Map<String, ComparableEdge> edgeMap = new HashMap<String, ComparableEdge>();\n\n // process all vertex combinations so that we get the complete set\n // the edge hash that we constructed narrows the candidates for each\n // label pattern saving us from checking all possible edges.\n\n // for each vertex:\n // look up the hashKey for each possible 'missing bit' pattern\n // examine all matching candidates 'other vertices'\n // create a ComparableEdge for each vertex at distance <= maxWeight\n // add the ComparableEdges to the edgeList\n //\n // after processing all vertices:\n // copy the edgeList to an Array and sort the Array.\n // the Array is ready to drive the Kruskal Algorithm.\n //\n\n for (int i = 0; i < vertices.length; i++) {\n HammingVertex v = vertices[i];\n if (v == null) continue; // should not happen\n\n log.debug(\" **** vertex \" + i);\n System.err.println(\" **** vertex \" + i);\n\n // all users of the array MUST use exactly the same algorithm lookup sequence\n int missingBitsVertexMapsIndex = 0;\n\n // check all 'missing 2 bit' combinations for this vertex\n for (int j = 0; j < (labelSize - 1); j++) {\n for (int k = (j + 1); k < labelSize; k++) {\n int missingBitsKey = v.labelWithoutMissingBitsAsInt(j, k);\n\n Map missingBitsVertexMap = missingBitsVertexMaps[missingBitsVertexMapsIndex];\n\n List<Integer> l = (List<Integer>) missingBitsVertexMap.get(missingBitsKey);\n addQualifedEdgesFromVertexList(v, l, edgeMap, 2);\n\n // next missing bit hashMap in sequence\n missingBitsVertexMapsIndex++;\n }\n }\n }\n\n //ComparableEdge[] e = (ComparableEdge[])edgeList.toArray();\n Collection<ComparableEdge> edgeSet = edgeMap.values();\n int numEdges = edgeSet.size();\n ComparableEdge[] e = new ComparableEdge[numEdges];\n int i = 0;\n for (ComparableEdge edge : edgeSet) {\n e[i] = edge;\n i++;\n }\n Arrays.sort(e);\n\n if (isP())\n log.debug(\" --- there are \" + e.length + \" sorted edges.\");\n return e;\n }", "private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }", "public static String bboxVertices(){\n \treturn \"0.5 0.5 0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 -0.5 0.5 0.5 -0.5 0.5 -0.5 -0.5 -0.5 0.5 -0.5 -0.5 -0.5\";\n }", "int[] primMST() {\n // Clone actual array\n int[][] graph = Arrays.stream(this.graph).map(int[]::clone).toArray(int[][]::new);\n\n // Array to store constructed MST\n int[] parent = new int[VERTICES];\n\n // Key values used to pick minimum weight edge in cut\n int[] key = new int[VERTICES];\n\n // To represent set of vertices included in MST\n Boolean[] mstSet = new Boolean[VERTICES];\n\n // Initialize all keys as INFINITE\n for (int i = 0; i < VERTICES; i++) {\n key[i] = Integer.MAX_VALUE;\n mstSet[i] = false;\n }\n\n // Always include first 1st vertex in MST.\n key[0] = 0; // Make key 0 so that this vertex is picked as first vertex\n parent[0] = -1; // zFirst node is always root of MST\n\n // The MST will have V vertices\n for (int count = 0; count < VERTICES - 1; count++) {\n // Pick thd minimum key vertex from the set of vertices\n // not yet included in MST\n int u = minKey(key, mstSet);\n\n // Add the picked vertex to the MST Set\n mstSet[u] = true;\n\n // Update key value and parent index of the adjacent\n // vertices of the picked vertex. Consider only those\n // vertices which are not yet included in MST\n for (int v = 0; v < VERTICES; v++)\n\n // graph[u][v] is non zero only for adjacent vertices of m\n // mstSet[v] is false for vertices not yet included in MST\n // Update the key only if graph[u][v] is smaller than key[v]\n if (graph[u][v] != 0 && mstSet[v] == false && graph[u][v] < key[v]) {\n parent[v] = u;\n key[v] = graph[u][v];\n }\n }\n\n return parent;\n }", "private static void InitializeEdges()\n {\n edges = new ArrayList<Edge>();\n\n for (int i = 0; i < Size -1; i++)\n {\n for (int j = 0; j < Size; j++)\n {\n edges.add(new Edge(cells[i][j].Point, cells[i + 1][ j].Point));\n edges.add(new Edge(cells[j][i].Point, cells[j][ i + 1].Point));\n }\n }\n\n for (Edge e : edges)\n {\n if ((e.A.X - e.B.X) == -1)\n {\n e.Direction = Edge.EdgeDirection.Vertical;\n }\n else\n {\n e.Direction = Edge.EdgeDirection.Horizontal;\n }\n }\n }", "protected void calcMinMax() {\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n mNodes = sc.nextInt();\n mEdges = sc.nextInt();\n \n mDistances = new int[mNodes+1][mNodes+1];\n \n for (int i =1; i <= mNodes; i++)\n {\n \n for (int j =1; j <=mNodes;j++)\n {\n mDistances[i][j] = Integer.MAX_VALUE;\n \n }\n }\n \n for (int i =1; i <= mNodes; i++)\n {\n mDistances[i][i] =0;\n }\n \n for (int i = 0 ; i < mEdges; i++)\n {\n int from = sc.nextInt();\n int to = sc.nextInt();\n \n mDistances[from][to] = sc.nextInt();\n \n \n }\n \n \n //FW\n \n for (int k = 1; k <= mNodes; k++)\n {\n \n for (int i = 1; i <= mNodes; i++)\n {\n \n for (int j = 1; j <= mNodes; j++)\n {\n \n if (mDistances[i][k]!= Integer.MAX_VALUE && mDistances[k][j] != Integer.MAX_VALUE )\n {\n if (mDistances[i][j] > mDistances[i][k] + mDistances[k][j])\n {\n \n mDistances[i][j] = mDistances[i][k] + mDistances[k][j];\n }\n \n }\n \n }\n }\n \n }\n \n mQueries = sc.nextInt();\n \n for (int i =0; i < mQueries; i++)\n {\n int dist = mDistances[sc.nextInt()][sc.nextInt()];\n \n if (dist == Integer.MAX_VALUE)\n {\n dist = -1;\n }\n \n System.out.println(dist);\n \n }\n \n \n \n \n \n \n \n \n \n }", "public void layout() {\n final int N = fNodes.length;\n final double k1 = 1.0;\n final double k2 = 100.0 * 100.0;\n\n double xc = 0.0;\n double yc = 0.0;\n for (int i = 0; i < N; i++) {\n NodeBase v = (NodeBase) fNodes[i];\n \n double xv = v.getX();\n double yv = v.getY();\n \n\t\t\tIterator uIter = fGraph.sourceNodeSet(v).iterator();\n\t\t\t\n double sumfx1 = 0.0;\n double sumfy1 = 0.0;\n while (uIter.hasNext() ) {\n NodeBase u = (NodeBase) uIter.next();\n double xu = u.getX();\n double yu = u.getY();\n double dx = xv - xu;\n double dy = yv - yu;\n double d = Math.sqrt(dx * dx + dy * dy);\n d = (d == 0) ? .0001 : d;\n double c = k1 * (d - fEdgeLen) / d;\n sumfx1 += c * dx;\n sumfy1 += c * dy;\n }\n\n uIter = fGraph.iterator();\n double sumfx2 = 0.0;\n double sumfy2 = 0.0;\n while (uIter.hasNext() ) {\n NodeBase u = (NodeBase) uIter.next();\n if (u == v )\n continue;\n// System.out.println(\"electrical u = \" + u.name());\n double xu = u.getX();\n double yu = u.getY();\n double dx = xv - xu;\n double dy = yv - yu;\n double d = dx * dx + dy * dy;\n if (d > 0 ) {\n double c = k2 / (d * Math.sqrt(d));\n sumfx2 += c * dx;\n sumfy2 += c * dy;\n }\n }\n // System.out.println(\"sumfx2 = \" + sumfx2);\n // System.out.println(\"sumfy2 = \" + sumfy2);\n\n // store new positions\n fXn[i] = xv - Math.max(-5, Math.min(5, sumfx1 - sumfx2));\n fYn[i] = yv - Math.max(-5, Math.min(5, sumfy1 - sumfy2));\n\n // for determining the center of the graph\n xc += fXn[i];\n yc += fYn[i];\n }\n\n // offset from center of graph to center of drawing area\n double dx = fWidth / 2 - xc / N;\n double dy = fHeight / 2 - yc / N;\n\n // use only small steps for smooth animation\n dx = Math.max(-5, Math.min(5, dx));\n dy = Math.max(-5, Math.min(5, dy));\n\n // set new positions\n for (int i = 0; i < N; i++) {\n NodeBase v = (NodeBase) fNodes[i];\n // move each node towards center of drawing area and keep\n // it within bounds\n double x = Math.max(fMarginX, Math.min(fWidth - fMarginX, fXn[i] + dx));\n double y = Math.max(fMarginY, Math.min(fHeight - fMarginY, fYn[i] + dy));\n v.setPosition(x, y);\n }\n }", "public int getNumEdges();", "private void toZeroWeightGraph() {\n source.disable();\n for (Graph.Vertex v : graph) {\n int min = Integer.MAX_VALUE;\n XGraph.XVertex vertex = (XGraph.XVertex) v;\n for (XGraph.Edge e : vertex.getNonZeroRevItr()) {\n if (e.getWeight() < min) {\n min = e.getWeight();\n }\n }\n for (Graph.Edge e : vertex.getNonZeroRevItr())\n e.setWeight(e.getWeight() - min);\n }\n source.enable();\n }", "private void combinedEdgeDetection() {\n if(isDetectingEdge())\n {\n if(currentCount == 0)\n {\n debugTimer.start();\n }\n currentCount++;\n// SmartDashboard.putInt(\"current count: \", currentCount);\n }\n else{//otherwise, leave the count at 0\n currentCount = 0;\n }\n //once the count reaches the minimum required for detection\n if(currentCount >= minDetectionCount)\n {\n //invert the current state of detection\n currentlyDetecting = !currentlyDetecting;\n// SmartDashboard.putDouble(\"timer count: \", debugTimer.get());\n debugTimer.stop();\n debugTimer.reset();\n }\n\t}", "private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }", "@Override\r\n\tpublic void getMinimumSpanningTree(GraphStructure graph) {\r\n\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\tdistanceArray[0]=0;\r\n\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\tList<Edge> list;\r\n\t\twhile(spanningTreeSet.size()!=numberOfVertices) {\r\n\t\t\tfor (int vertex=0; vertex<numberOfVertices;vertex++) {\r\n\t\t\t\tif(! spanningTreeSet.contains(vertex)) {\r\n\t\t\t\t\tspanningTreeSet.add(vertex);\r\n\t\t\t\t\tlist = adjacencyList[vertex];\r\n\t\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[vertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nvertex\\tdistance from source\");\r\n\t\tfor (int i=0;i<numberOfVertices;i++) {\r\n\t\t\tSystem.out.println(i+\"\\t\"+distanceArray[i]);\r\n\t\t}\r\n\t}", "private int nonDirectionalEdgesNumber() {\n return selectedNonDirectionalEdges.size();\n }", "public Pair<Integer, Map<Vertex, Vertex>> ShortestDistance(Vertex source, Vertex zink) {\n Map<Vertex, Vertex> PredecessorMap = new HashMap<>();\n Map<Vertex, Integer> DistanceMap = new HashMap<>();\n Vertex a;\n // initialize arrays\n for (Vertex v : Vertices) {\n DistanceMap.put(v, 1000); //We initialize the array in infinite\n PredecessorMap.put(v, null);\n }\n DistanceMap.put(source, 0); //We put the source in 0\n for (Vertex v : Vertices) {\n while (!DistanceMap.isEmpty()) { //And we iterate until the distance map is empty\n a = getmin(DistanceMap); //we get the minimum vertex\n if(a==null) {\n return (new Pair<Integer, Map<Vertex, Vertex>>(DistanceMap.get(zink), PredecessorMap));\n }\n\n ArrayList<Edge> edges = a.getOutEdges(); //we get de edges connected to this vertex\n for (Edge e : edges) { //we iterate getting the vertex of each edge\n if (DistanceMap.containsKey(e.tovertex)) { //if the vertex is in the distance map:\n Integer alt = DistanceMap.get(a) + e.distance; //we get it value and plus the distance of the edge\n\n System.out.println(\"This is the distance going out from that Vertex: \" + alt + \", with previous distance: \" + DistanceMap.get(e.tovertex));\n if (alt < DistanceMap.get(e.tovertex)) { //if it is less, we put it in the arrays\n DistanceMap.put(e.tovertex, alt);\n PredecessorMap.put(e.tovertex, a);\n\n }\n }\n }\n DistanceMap.remove(a); //and we remove it of the array\n }\n }\n return (new Pair<Integer, Map<Vertex, Vertex>>(DistanceMap.get(zink), PredecessorMap));\n }", "public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }", "public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void checkEdges()\n\tthrows InconsistencyException\n\t{\n\t\t// first check if edges is non-null\n\t\tif(edges == null)\n\t\t\tthrow new InconsistencyException(\"The ArrayList edges should be non-null, but is null.\");\n\n\t\t// check that all vertices are referenced at least three times, as each is the vertex of at least one simplex\n\t\t// and in each simplex three edges meet at each vertex\n\t\t\n\t\t// create an array of ints that will hold the number of references to each vertex in the list of edges...\n\t\tint[] vertexReferences = new int[vertices.size()];\n\t\t\n\t\t// ... and set all these reference counts initially to zero\n\t\tfor(int i=0; i<vertexReferences.length; i++) vertexReferences[i] = 0;\n\t\t\n\t\t// go through all edges...\n\t\tfor(Edge edge:edges)\n\t\t{\n\t\t\t// go through both vertices...\n\t\t\tfor(int i=0; i<2; i++)\n\t\t\t\t// ... and increase the reference count of the vertex by 1\n\t\t\t\tvertexReferences[edge.getVertexIndices()[i]]++;\n\t\t\t// note that any vertex indices that are out of bounds will throw up an error here!\n\t\t}\n\n\t\t// check that all reference counts are >= 3\n\t\tfor(int i=0; i<vertexReferences.length; i++)\n\t\t{\n\t\t\tif(vertexReferences[i] < 3)\n\t\t\t{\n\t\t\t\t// vertex i is referenced fewer than 3 times\n\t\t\t\t\n\t\t\t\t// throw an InconsistencyException\n\t\t\t\tthrow(new InconsistencyException(\"Vertex #\" + i + \" should be referenced in the list of edges >= 3 times, but is referenced only \" + vertexReferences[i] + \" times.\"));\n\t\t\t}\n\t\t}\n\t}", "private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }", "public static <V> Graph<V> getMinimumSpanningTreePrim(Graph<V> graph) {\n V[] array = graph.getValuesAsArray();\n double[][] matriz = graph.getGraphStructureAsMatrix();\n\n double[][] matrizCopia = new double[array.length][array.length]; //Se hace una copia del array. Sino, se modificaria en el grafo original.\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n matrizCopia[x][y] = matriz[x][y];\n }\n }\n\n boolean[] revisados = new boolean[array.length]; // Arreglo de booleanos que marca los valores por donde ya se paso.\n Set<V> conjuntoRevisados = new LinkedListSet<>(); //Conjunto donde se guardan los vertices por donde ya se paso\n Graph<V> nuevo = new AdjacencyMatrix<>(graph.isDirected(), true);\n\n if (array.length > 0) { // Grafo no vacio\n\n revisados[0] = true;\n conjuntoRevisados.put(array[0]);\n nuevo.addNode(array[0]);\n\n double menorArista = 50000;\n V verticeOrigen = null;\n V verticeDestino = null;\n\n while (conjuntoRevisados.size() != array.length) { // mientras hayan vertices sin revisar\n\n Iterator<V> it1 = conjuntoRevisados.iterator(); //Se recorren todos los vertices guardados\n while (it1.hasNext()) {\n\n V aux = it1.next();\n int posArray = buscarPosicion(aux, array);\n for (int x = 0; x < array.length; x++) {\n\n if (matrizCopia[posArray][x] != -1) { //Si existe arista\n //Si los 2 vertices no estan en el arbol, para evitar un ciclo\n if (!(conjuntoRevisados.isMember(aux) && conjuntoRevisados.isMember(array[x]))) {\n if (matrizCopia[posArray][x] < menorArista) {\n menorArista = matrizCopia[posArray][x];\n if (!graph.isDirected()) {\n matrizCopia[x][posArray] = -1;\n }\n verticeOrigen = aux;\n verticeDestino = array[x];\n }\n }\n }\n }\n }\n\n if (verticeOrigen != null) {\n if (!nuevo.contains(verticeDestino)) {\n nuevo.addNode(verticeDestino);\n if (!conjuntoRevisados.isMember(verticeDestino)) {\n conjuntoRevisados.put(verticeDestino);\n }\n revisados[buscarPosicion(verticeDestino, array)] = true;\n }\n nuevo.addEdge(verticeOrigen, verticeDestino, menorArista);\n\n verticeOrigen = null;\n menorArista = 50000;\n } else {\n for (int x = 0; x < array.length; x++) {\n if (revisados[x] == false) {\n conjuntoRevisados.put(array[x]);\n nuevo.addNode(array[x]);\n }\n }\n }\n }\n }\n return nuevo;\n }", "public abstract int getVertexCount();", "private Integer getMines(Integer xOpen, Integer yOpen){\n int counter=0;\r\n // System.out.println(\"getMines() [\"+xOpen+\"][\"+yOpen+\"]\");\r\n for(int i=xOpen-1; i<=(xOpen+1) ; i++){\r\n for(int j=yOpen-1; j<=(yOpen+1) ; j++){\r\n if(isValidCell(i,j) && grid[i][j].isMine()){ //split y && le quite uno\r\n counter++; //solo un operador and \r\n }\r\n }\r\n }\r\n// System.out.println(\" getMines().result = \"+counter);\r\n return counter; //contador de minas, el mismo no puede ser una mina \r\n }", "private void drawScanlines(Graphics g, ArrayList<Vector2f> vertices) {\r\n if (vertices.isEmpty()) return;\r\n g.setColor(Color.GREEN);\r\n // 1. Sort vertices by y-axis-value\r\n vertices.sort((v0, v1) -> Float.compare(v0.y, v1.y));\r\n // 2. Iterate through sorted vertices\r\n int i = 0;\r\n while (i < vertices.size()) {\r\n // Get the vertices with the lowest y-value\r\n int currentY = (int)vertices.get(i).y;\r\n List<Vector2f> vList = vertices\r\n .stream().filter(v -> v.y == currentY)\r\n .collect(Collectors.toList());\r\n // Check if there is at least a pair of vertices on the same 'level'\r\n // to be drawn in between\r\n if (vList.size() >= 2) {\r\n // Get the lowest x-value\r\n float minX = vList.stream().min((v1, v2) -> Float.compare(v1.x, v2.x)).get().x;\r\n // Get the highest x-value\r\n float maxX = vList.stream().max((v1, v2) -> Float.compare(v1.x, v2.x)).get().x;\r\n // Loop through x-values until maximum x is reached\r\n while(minX < maxX) {\r\n // Check if there is still space between lowest and highest x-value\r\n if (!vertices.contains(new Vector2f(minX, currentY))) {\r\n // Fill the space with an arc\r\n g.drawArc((int)minX, currentY, 1, 1, 0, 360);\r\n }\r\n // Continue with next x-value\r\n minX++;\r\n }\r\n }\r\n // Current y-value has been processed, skip those\r\n i += vList.size();\r\n }\r\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n BufferedReader sc = new BufferedReader(new FileReader(\"comehome.in\"));\n BufferedWriter out = new BufferedWriter(new FileWriter(\"comehome.out\"));\n int[][] adjMat = new int[58][58];\n ArrayList<Character> capsUsed = new ArrayList<Character>();\n int paths = Integer.parseInt(sc.readLine());\n for (int i = 0; i < adjMat.length; i++) {\n Arrays.fill(adjMat[i], 500000);\n }\n for (int i = 0; i < paths; i++) {\n String[] spl = sc.readLine().split(\" \");\n char u = spl[0].charAt(0);\n char v = spl[1].charAt(0);\n int weight = Integer.parseInt(spl[2]);\n adjMat[map(u)][map(v)] = Math.min(weight, adjMat[map(u)][map(v)]);//this is a multigraph, just take minimum edge weight\n adjMat[map(v)][map(u)] = Math.min(weight, adjMat[map(v)][map(u)]);//since its the only one that will count\n if (Character.isUpperCase(u)) {\n capsUsed.add(u);\n }\n if (Character.isUpperCase(v)) {\n capsUsed.add(v);\n }\n }\n for (int k = 0; k < adjMat.length; k++) {//intermediate...\n for (int i = 0; i < adjMat.length; i++) {\n for (int j = 0; j < adjMat.length; j++) {\n if (adjMat[i][k] + adjMat[k][j] < adjMat[i][j]) {\n adjMat[i][j] = adjMat[i][k] + adjMat[k][j];\n }\n }\n }\n }\n int min = Integer.MAX_VALUE;\n char minChar = '0';\n int zMap = map('Z');\n for (char c : capsUsed) {\n if (c != 'Z') {\n if (adjMat[map(c)][zMap] < min) {\n min = adjMat[map(c)][zMap];\n minChar = c;\n }\n }\n }\n //System.out.println(adjMat[map('R')][map('Z')]);\n out.append(minChar + \" \" + min + \"\\n\");\n out.close();\n }", "private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}", "public static void main(String[] args) throws IOException {\n\n // read in graph\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt(), m = scanner.nextInt();\n ArrayList<Integer>[] graph = new ArrayList[n];\n for (int i = 0; i < n; i++)\n graph[i] = new ArrayList<>();\n\n for (int i = 0; i < m; i++) {\n scanner.nextLine();\n int u = scanner.nextInt() - 1, v = scanner.nextInt() - 1; // convert to 0 based index\n graph[u].add(v);\n graph[v].add(u);\n }\n\n int[] dist = new int[n];\n Arrays.fill(dist, -1);\n // partition the vertices in each of the components of the graph\n for (int u = 0; u < n; u++) {\n if (dist[u] == -1) {\n // bfs\n Queue<Integer> queue = new LinkedList<>();\n queue.add(u);\n dist[u] = 0;\n while (!queue.isEmpty()) {\n int w = queue.poll();\n for (int v : graph[w]) {\n if (dist[v] == -1) { // unvisited\n dist[v] = (dist[w] + 1) % 2;\n queue.add(v);\n } else if (dist[w] == dist[v]) { // visited and form a odd cycle\n System.out.println(-1);\n return;\n } // otherwise the dist will not change\n }\n }\n }\n\n }\n\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n // vertices with the same dist are in the same group\n List<Integer>[] groups = new ArrayList[2];\n groups[0] = new ArrayList<>();\n groups[1] = new ArrayList<>();\n for (int u = 0; u < n; u++) {\n groups[dist[u]].add(u + 1);\n }\n for (List<Integer> g: groups) {\n writer.write(String.valueOf(g.size()));\n writer.newLine();\n for (int u: g) {\n writer.write(String.valueOf(u));\n writer.write(' ');\n }\n writer.newLine();\n }\n\n writer.close();\n\n\n }", "public int getNumVertices(){\n return numVertices;\n }", "public int getNumVertices()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numVertices;\n\t}", "public static int[][] primMST(int graph[][], int V)\r\n {\n int[] parent = new int[V];\r\n // Key values used to pick minimum weight edge in cut\r\n int[] key = new int[V];\r\n // To represent set of vertices not yet included in MST\r\n Boolean[] mstSet = new Boolean[V];\r\n // Initialize all keys as INFINITE\r\n for (int i=0; i<V; i++){\r\n key[i] = 99999;\r\n mstSet[i] = false;\r\n }\r\n // Always include first 1st vertex in MST.\r\n key[0] = 0; // Make key 0 so that this vertex is\r\n // picked as first vertex\r\n parent[0] = -1; // First node is always root of MST\r\n // The MST will have V vertices\r\n for (int count=0; count<V-1; count++){\r\n // Pick thd minimum key vertex from the set of vertices\r\n // not yet included in MST\r\n int u = minKey(key, mstSet,V);\r\n // Add the picked vertex to the MST Set\r\n mstSet[u] = true;\r\n // Update key value and parent index of the adjacent\r\n // vertices of the picked vertex. Consider only those\r\n // vertices which are not yet included in MST\r\n for (int v=0; v<V; v++)\r\n // graph[u][v] is non zero only for adjacent vertices of m\r\n // mstSet[v] is false for vertices not yet included in MST\r\n // Update the key only if graph[u][v] is smaller than key[v]\r\n if (graph[u][v]!=0 && !mstSet[v] && graph[u][v]<key[v])\r\n {\r\n parent[v]=u;\r\n key[v]=graph[u][v];\r\n }\r\n }\r\n int[][] output=new int[graph.length][graph.length];\r\n for (int i = 1; i < V; i++){\r\n output[parent[i]][i]=graph[i][parent[i]];\r\n output[i][parent[i]]=graph[i][parent[i]];\r\n //System.out.println(parent[i]+\" - \"+ i+\"\\t\"+graph[i][parent[i]]);\r\n }\r\n\r\n return output;\r\n }", "public void testRemoveEdge_betweenVertices() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(graph.removeEdge(new Integer(i), new Integer(j)));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }", "public void countAdjacentMines()\n {\n adjacentMines = 0;\n for (GameSquare square : getAdjacentSquares())\n {\n if (square.mine)\n {\n adjacentMines++;\n }\n }\n }", "private static int nonIsolatedVertex(Graph G) {\n for (int v = 0; v < G.V(); v++)\n if (G.degree(v) > 0)\n return v;\n return -1;\n }", "private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }", "public static void main(String[] args) {\n\t\tVertex v1, v2, v3, v4, v5, v6, v7;\n\t\tv1 = new Vertex(\"v1\");\n\t\tv2 = new Vertex(\"v2\");\n\t\tv3 = new Vertex(\"v3\");\n\t\tv4 = new Vertex(\"v4\");\n\t\tv5 = new Vertex(\"v5\");\n\t\tv6 = new Vertex(\"v6\");\n\t\tv7 = new Vertex(\"v7\");\n\n\t\tv1.addAdjacency(v2, 2);\n\t\tv1.addAdjacency(v3, 4);\n\t\tv1.addAdjacency(v4, 1);\n\n\t\tv2.addAdjacency(v1, 2);\n\t\tv2.addAdjacency(v4, 3);\n\t\tv2.addAdjacency(v5, 10);\n\n\t\tv3.addAdjacency(v1, 4);\n\t\tv3.addAdjacency(v4, 2);\n\t\tv3.addAdjacency(v6, 5);\n\n\t\tv4.addAdjacency(v1, 1);\n\t\tv4.addAdjacency(v2, 3);\n\t\tv4.addAdjacency(v3, 2);\n\t\tv4.addAdjacency(v5, 2);\n\t\tv4.addAdjacency(v6, 8);\n\t\tv4.addAdjacency(v7, 4);\n\n\t\tv5.addAdjacency(v2, 10);\n\t\tv5.addAdjacency(v4, 2);\n\t\tv5.addAdjacency(v7, 6);\n\n\t\tv6.addAdjacency(v3, 5);\n\t\tv6.addAdjacency(v4, 8);\n\t\tv6.addAdjacency(v7, 1);\n\n\t\tv7.addAdjacency(v4, 4);\n\t\tv7.addAdjacency(v5, 6);\n\t\tv7.addAdjacency(v6, 1);\n\n\t\tArrayList<Vertex> weightedGraph = new ArrayList<Vertex>();\n\t\tweightedGraph.add(v1);\n\t\tweightedGraph.add(v2);\n\t\tweightedGraph.add(v3);\n\t\tweightedGraph.add(v4);\n\t\tweightedGraph.add(v5);\n\t\tweightedGraph.add(v6);\n\t\tweightedGraph.add(v7);\n\t\t\n\t\tdijkstra( weightedGraph, v7 );\n\t\tprintPath( v1 );\n\t\tSystem.out.println(\"\");\n\t\tprintPath( v2 );\n\t\tSystem.out.println(\"\");\n\t\tprintPath( v3 );\n\t\tSystem.out.println(\"\");\n\t\tprintPath( v4 );\n\t\tSystem.out.println(\"\");\n\t\tprintPath( v5 );\n\t\tSystem.out.println(\"\");\n\t\tprintPath( v6 );\n\t\tSystem.out.println(\"\");\n\t\tprintPath( v7 );\n\t\tSystem.out.println(\"\");\n\t}", "private void reduce(){\n int min;\n //Subtract min value from rows\n for (int i = 0; i < rows; i++) {\n min = source[i][0];\n for (int j = 1; j < cols; j++)\n if(source[i][j] < min) min = source[i][j];\n\n for (int j = 0; j < cols; j++)\n source[i][j] -= min;\n }\n\n //Subtract min value from cols\n for (int j = 0; j < cols; j++) {\n min = source[0][j];\n for (int i = 1; i < rows; i++)\n if(source[i][j] < min) min = source[i][j];\n\n for (int i = 0; i < rows; i++)\n source[i][j] -= min;\n\n }\n }", "private void primsMST(List<Vertex> graph) {\n\n\t\tMyPriorityQueue priorityQueue = new MyPriorityQueue(10);\n\t\tfor (Vertex v : graph) {\n\t\t\tv.key = Integer.MAX_VALUE;\n\t\t\tpriorityQueue.add(v);\n\t\t}\n\n\t\tVertex peek = priorityQueue.peek();\n\t\tpeek.key = 0;\n\n\t\twhile (!priorityQueue.isEmpty()) {\n\t\t\t//Vertex minVertex = priorityQueue.poll();\n\t\t\tVertex minVertex = priorityQueue.poll();\n\t\t\t\n\t\t\tif (minVertex.incidentEdges != null && minVertex.incidentEdges.size() > 0) {\n\t\t\t\tfor (Edge edge : minVertex.incidentEdges) {\n\t\t\t\t\tif (/*priorityQueue.contains(edge.end) && */edge.weight < edge.end.key) {\n\t\t\t\t\t\t//priorityQueue.remove(edge.end);\n\t\t\t\t\t\tedge.end.key = edge.weight;\n\t\t\t\t\t\tedge.end.previous = minVertex;\n\t\t\t\t\t\tpriorityQueue.add(edge.end);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int getAgentsVertexNumber(Vertex vertex){\n if (vertexAgentsNumber.get(vertex) == null)\n return 0;\n else\n return vertexAgentsNumber.get(vertex).size();\n }", "public static void main(String[] args) {\n int n = 2100; //input the number of nodes\n int max = 10000;\n int graph[][] = Dijkstra2DArray(n);\n /*int graph[][]=new int[n][n];\n for(int i=0;i<n;i++) //test for the graph-2\n graph[i][i]=0;\n graph[0][1]=6;graph[1][0]=6;\n graph[0][2]=7;graph[2][0]=7;\n graph[0][3]=2;graph[3][0]=2;\n graph[0][4]=1;graph[4][0]=1;\n graph[1][2]=2;graph[2][1]=2;\n graph[1][3]=3;graph[3][1]=3;\n graph[1][4]=3;graph[4][1]=3;\n graph[2][3]=2;graph[3][2]=2;\n graph[2][4]=4;graph[4][2]=4;\n graph[3][4]=1;graph[4][3]=1;*/\n /*for(int i=0;i<n;i++) //test for the graph-1\n graph[i][i]=0;\n graph[0][1]=2;graph[1][0]=2;\n graph[0][2]=4;graph[2][0]=4;\n graph[0][3]=max;graph[3][0]=max;\n graph[0][4]=max;graph[4][0]=max;\n graph[0][5]=max;graph[5][0]=max;\n graph[0][6]=max;graph[6][0]=max;\n graph[0][7]=max;graph[7][0]=max;\n graph[1][2]=3;graph[2][1]=3;\n graph[1][3]=9;graph[3][1]=9;\n graph[1][4]=max;graph[4][1]=max;\n graph[1][5]=max;graph[5][1]=max;\n graph[1][6]=4;graph[6][1]=4;\n graph[1][7]=2;graph[7][1]=2;\n graph[2][3]=1;graph[3][2]=1;\n graph[2][4]=3;graph[4][2]=3;\n graph[2][5]=max;graph[5][2]=max;\n graph[2][6]=max;graph[6][2]=max;\n graph[2][7]=max;graph[7][2]=max;\n graph[3][4]=3;graph[4][3]=3;\n graph[3][5]=3;graph[5][3]=3;\n graph[3][6]=1;graph[6][3]=1;\n graph[3][7]=max;graph[7][3]=max;\n graph[4][5]=2;graph[5][4]=2;\n graph[4][6]=max;graph[6][4]=max;\n graph[4][7]=max;graph[7][4]=max;\n graph[5][6]=6;graph[6][5]=6;\n graph[5][7]=max;graph[7][5]=max;\n graph[6][7]=14;graph[7][6]=14;*/\n \n int result[][] = new int[n][n];\n int i, j, k, l, min, mark;\n boolean status[] = new boolean[n];\n long startTime = System.currentTimeMillis();\n for (i = 0; i < n; i++) {\n for (j = 0; j < n; j++) {\n result[i][j] = graph[i][j];\n status[j] = false;\n }\n result[i][i] = 0;\n status[i] = true;\n for (k = 1; k < n; k++) {\n min = max;\n mark = i;\n for (l = 0; l < n; l++) {\n if ((!status[l]) && result[i][l] < min) {\n mark = l;\n min = result[i][l];\n }\n }\n status[mark] = true;\n for (l = 0; l < n; l++) {\n if ((!status[l]) && graph[mark][l] < max) {\n if (result[i][mark] + graph[mark][l] < result[i][l]) {\n result[i][l] = result[i][mark] + graph[mark][l];\n }\n }\n }\n }\n }\n long endTime = System.currentTimeMillis();\n System.out.println(\"Runtime:\" + (endTime - startTime) + \"ms\"); //test the runtime of this algorithm\n System.out.println(\"Result: \");\n for (i = 0; i < n; i++) {\n for (j = 0; j < n; j++) {\n System.out.print(result[i][j] + \" \");\n }\n System.out.print(\"\\n\");\n }\n Problem2 p = new Problem2();\n System.out.println( p.BiDijkstra(graph, 0, 10));\n }", "public void fillVector(){\n int n = min.length;\n for (int i = 0; i < n; i++) {\n this.x[i] = min.x[i] + (max.x[i] - min.x[i])*rn.uniformDeviate();\n }\n }", "public int localEdgeNum() {\r\n return localEdgeCount;\r\n }", "public Integer numUnknownVerts()\n\t{\n\t\tif (total_verts == null) return null;\n\t\treturn total_verts - nodes.size();\n\t}", "public int getNumberOfVertices();", "public int getBaseVertex() {\n return baseVertex;\n }", "private Map<Vertice<T>, Integer> caminosMinimoDikstra(Vertice<T> origen) {\n \tMap<Vertice<T>, Integer> distancias = new HashMap<Vertice<T>, Integer>();\n \tfor(Vertice<T> unVertice : this.vertices) {\n \t\tdistancias.put(unVertice, Integer.MAX_VALUE);\n \t}\n \tdistancias.put(origen, 0);\n \t\n \t// guardo visitados y pendientes de visitar\n \tSet<Vertice<T>> visitados = new HashSet<Vertice<T>>();\n \tTreeMap<Integer,Vertice<T>> aVisitar= new TreeMap<Integer,Vertice<T>>();\n\n \taVisitar.put(0,origen);\n \t \n \twhile (!aVisitar.isEmpty()) {\n \t\tEntry<Integer, Vertice<T>> nodo = aVisitar.pollFirstEntry();\n \t\tvisitados.add(nodo.getValue());\n \t\t\n \tint nuevaDistancia = Integer.MIN_VALUE;\n \tList<Vertice<T>> adyacentes = this.getAdyacentes(nodo.getValue());\n \t\n \tfor(Vertice<T> unAdy : adyacentes) {\n if(!visitados.contains(unAdy)) {\n Arista<T> enlace = this.buscarArista(nodo.getValue(), unAdy);\n if(enlace !=null) {\n nuevaDistancia = enlace.getValor().intValue();\n }\n int distanciaHastaAdy = distancias.get(nodo.getValue()).intValue();\n int distanciaAnterior = distancias.get(unAdy).intValue();\n if(distanciaHastaAdy + nuevaDistancia < distanciaAnterior ) {\n distancias.put(unAdy, distanciaHastaAdy + nuevaDistancia);\n aVisitar.put(distanciaHastaAdy + nuevaDistancia,unAdy);\n }\n }\n } \t\t\n \t}\n \tSystem.out.println(\"DISTANCIAS DESDE \"+origen);\n \tSystem.out.println(\"Resultado: \"+distancias);\n \treturn distancias;\n }", "public static void main(String[] args) {\n\t\t int a[][]= {{2,4,5},{3,0,7},{1,2,9}}; //then identify colomn of min num \n\t\t\tint min=a[0][0];//i.e 2 //find max num in identified colomn\n int mincolomnNo = 0; \n\t\t\t\n\t\t for(int i=0;i<3;i++)\n\t\t {\n\t\t\t for(int j=0;j<3;j++)\n\t\t\t {\n\t\t\t\t \n\t\t\t\t\t if(a[i][j]<min)\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t min =a[i][j];//swap\n\t\t\t\t\t\t mincolomnNo=j;\n\t\t\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t \n\t\t }//here o/p is zero\n\t\t System.out.println(min);\n\t\t \n\t\t int max=a[0][mincolomnNo];\n\t\t int k=0;\n\t\t while(k<3)\n\t\t {\n\t\t\t if(a[k][mincolomnNo]>max)\n\t\t\t {\n\t\t\t\t max=a[k][mincolomnNo];\n\t\t\t }\n\t\t\t k++;\n\t\t }\n\t\t \n\t\t \n\t\t System.out.println(max);\n\t\t }", "public static ArrayList<Vertex> initializeGraph() {\n\t\tVertex uVertex = new Vertex('u');\n\t\tVertex vVertex = new Vertex('v');\n\t\tVertex wVertex = new Vertex('w');\n\t\tVertex xVertex = new Vertex('x');\n\t\tVertex yVertex = new Vertex('y');\n\t\tVertex zVertex = new Vertex('z');\n\t\t\n\t\tVertex[] uAdjacencyList = {xVertex, vVertex};\n\t\tuVertex.setAdjacencyList(createArrayList( uAdjacencyList ));\n\t\t\n\t\tVertex[] vAdjacencyList = {yVertex};\n\t\tvVertex.setAdjacencyList(createArrayList( vAdjacencyList ));\n\t\t\n\t\tVertex[] wAdjacencyList = {zVertex, yVertex};\n\t\twVertex.setAdjacencyList(createArrayList( wAdjacencyList ));\n\t\t\n\t\tVertex[] xAdjacencyList = {vVertex};\n\t\txVertex.setAdjacencyList(createArrayList( xAdjacencyList ));\n\t\t\n\t\tVertex[] yAdjacencyList = {xVertex};\n\t\tyVertex.setAdjacencyList(createArrayList( yAdjacencyList ));\n\t\t\n\t\tVertex[] zAdjacencyList = {zVertex};\n\t\tzVertex.setAdjacencyList(createArrayList( zAdjacencyList ));\n\n\t\tVertex[] graph = { uVertex, vVertex, wVertex, xVertex, yVertex, zVertex};\n\t\treturn createArrayList( graph );\n\n\t}", "public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tSystem.out.println(\"rows?\");\n\tint r = s.nextInt();\n\tSystem.out.println(\"Col?\");\n\tint c = s.nextInt();\n\tint[][] arr = new int[r][c];\n\tfor (int i = 0; i < arr.length; i++) {\n\t\tfor (int j = 0; j < arr[0].length; j++) {\n\t\t\tarr[i][j] = 0x3f3f3f3f;\n\t\t}\n\t}\n\tfor (int i = 0; i < arr.length; i++) {\n\t\tarr[i][i] = 0;\n\t}\n\twhile(true)\n\t{\n\t\t//System.out.println(\"Vertex 1?\");\n\t\tint x = s.nextInt();\n\t\t//System.out.println(\"Vertex 2?\");\n\t\tint y = s.nextInt();\n\t\t//System.out.println(\"Distance?\");\n\t\tint d = s.nextInt();\n\t\t\n\t\tif (x == -1) {\n\t\t\tbreak;\n\t\t}\n\t\tarr[x][y] = d;\n\t\tarr[y][x] = d;\n\t}\n\tfor(int k = 0; k < arr.length;k++)\n\t{\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr.length; j++) {\n\t\t\t\tif(arr[i][k] + arr[k][j] < arr[i][j])\n\t\t\t\t{\n\t\t\t\t\tarr[i][j] = arr[i][k] + arr[k][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tSystem.out.println(arr[0][4]);\n\t\n}", "public void testRemoveVertex() {\n System.out.println(\"removeVertex\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n for (int i = 24; i >= 0; i--) {\n Assert.assertTrue(graph.removeVertex(new Integer(i)));\n Assert.assertFalse(graph.containsVertex(new Integer(i)));\n Assert.assertEquals(graph.verticesSet().size(), i);\n }\n }", "private void processOverlay(){\n \n // go for as long as edges still exist.\n while(this.availableVertices.size() > 0)\n {\n \n // pick the least weight vertex.\n Vertex next = this.availableVertices.poll(); // finding the least weight vertex.\n int distanceToNext = this.distances.get(convertToString(next.getVertexPortNum())); // must use the string version of the portnum.\n \n // and for each available squad member of the chosen vertex\n List<Edge> nextSquad = next.getSquad(); \n for(Edge e: nextSquad)\n {\n Vertex other = e.getNeighbor(next);\n if(this.visitedVertices.contains(other))\n {\n continue; // continue the while loop in this case.\n }\n \n // check for a shorter path, update if a new path is found within the overlay.\n int currentWeight = this.distances.get(convertToString(other.getVertexPortNum())); // using string version of the port number.\n int newWeight = distanceToNext + e.getWeight();\n \n if(newWeight < currentWeight){\n this.predecessors.put(convertToString(other.getVertexPortNum()), convertToString(next.getVertexPortNum())); // use the string versions of the port numbers.\n this.distances.put(convertToString(other.getVertexPortNum()), newWeight); // use the string version of the port numbers.\n // updating here.\n this.availableVertices.remove(other);\n this.availableVertices.add(other);\n }\n \n }\n \n this.visitedVertices.add(next); // add this vertex as \"visited\" so we do not visit it again.\n }\n }", "private ArrayList<Vertex> truncateHeadAtConflictArea(ArrayList<Vertex> vertices) {\n \t\tPoint2D.Double polygon[] = new Point2D.Double[conflictArea.size()];\r\n \t\tfor (int i = conflictArea.size(); --i >= 0; )\r\n \t\t\tpolygon[i] = conflictArea.get(i).getPoint();\r\n \t\tArrayList<Vertex> result = new ArrayList<Vertex>();\r\n \t\tresult.add(vertices.get(0));\r\n \t\tPoint2D.Double prevPoint = null;\r\n \t\tfor (Vertex v : vertices) {\r\n \t\t\tPoint2D.Double p = v.getPoint();\r\n \t\t\tif (null != prevPoint) {\r\n \t\t\t\tLine2D.Double line = new Line2D.Double(prevPoint, p);\r\n \t\t\t\tdouble closest = Double.MAX_VALUE;\r\n \t\t\t\tPoint2D.Double replacementPoint = null;\r\n \t\t\t\tArrayList<Point2D.Double> intersections = Planar.lineIntersectsPolygon(line, polygon);\r\n \t\t\t\t// find intersections with the polygon\r\n \t\t\t\tfor (Point2D.Double intersection : intersections) {\r\n \t\t\t\t\t// if statement added \r\n \t\t\t\t\tif (intersection != null) {\r\n \t\t\t\t\t\tdouble distance = intersection.distance(p);\r\n \t\t\t\t\t\tif (distance < closest) {\r\n \t\t\t\t\t\t\treplacementPoint = intersection;\r\n \t\t\t\t\t\t\tclosest = distance;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// find very near misses with the polygon\r\n \t\t\t\tfor (Point2D.Double pp : polygon) {\r\n \t\t\t\t\tif (Planar.distanceLineSegmentToPoint(line, pp) < veryClose) {\r\n \t\t\t\t\t\tdouble distance = pp.distance(p);\r\n \t\t\t\t\t\tif (distance < closest) {\r\n \t\t\t\t\t\t\treplacementPoint = pp;\r\n \t\t\t\t\t\t\tclosest = distance;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif (null != replacementPoint) {\r\n \t\t\t\t\tresult.clear();\r\n \t\t\t\t\tresult.add(new Vertex(replacementPoint, z));\r\n \t\t\t\t}\r\n \t\t\t\tresult.add(v);\r\n \t\t\t}\r\n \t\t\tprevPoint = p;\r\n \t\t}\t\t\r\n \t\treturn result;\r\n \t}", "int getNumberOfEdges();", "public int getNumVertices();", "private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }", "void calcVertSeamInfo() {\n SeamInfo tr = null;\n SeamInfo tl = null;\n SeamInfo t = null;\n if (this.topRight() != null) {\n tr = topRight().seamInfo;\n }\n if (this.topLeft() != null) {\n tl = topLeft().seamInfo;\n }\n if (this.up != null) {\n t = up.seamInfo;\n }\n\n double min = Double.MAX_VALUE;\n SeamInfo cameFrom = null;\n\n if (tr != null && min > tr.totalWeight) {\n min = tr.totalWeight;\n cameFrom = tr;\n }\n if (tl != null && min > tl.totalWeight) {\n min = tl.totalWeight;\n cameFrom = tl;\n }\n if (t != null && min > t.totalWeight) {\n min = t.totalWeight;\n cameFrom = t;\n }\n\n // for top border cases\n if (cameFrom == null) {\n min = 0;\n }\n\n this.seamInfo = new SeamInfo(this, min + this.energy(), cameFrom, true);\n }", "@Override public Set<L> vertices() {\r\n return new HashSet<L>(vertices);//防御式拷贝\r\n }", "public void setMinimumVertexCount(int aCount)\r\n {\r\n\t theMinimumVertexCount = aCount;\r\n if (theMinimumVertexCountField != null)\r\n {\r\n \t theMinimumVertexCountField.setValue(theMinimumVertexCount);\r\n theMinimumVertexCountField.updateUI(); \r\n }\r\n }", "public List<Integer> findSmallestSetOfVertices(int n, List<List<Integer>> edges) {\n \n int[] indegree = new int[n];\n List<Integer> list = new ArrayList();\n \n for(List<Integer> arr : edges)\n {\n indegree[arr.get(1)]++;\n }\n \n for(int i=0; i<n; i++){\n if(indegree[i]==0)\n {\n list.add(i);\n }\n }\n \n return list;\n }", "public int numEdges();" ]
[ "0.6322931", "0.6109", "0.60410017", "0.5976093", "0.59297484", "0.5908942", "0.5887816", "0.58424413", "0.5823205", "0.58226115", "0.57975554", "0.579148", "0.57520133", "0.5660877", "0.565323", "0.56152886", "0.56071955", "0.554233", "0.55407363", "0.55372345", "0.5534431", "0.552276", "0.5513147", "0.551241", "0.54867846", "0.54582393", "0.54574966", "0.544528", "0.54422057", "0.5428855", "0.54286385", "0.5420207", "0.5418458", "0.541148", "0.5406248", "0.54046685", "0.54003257", "0.5371265", "0.5366867", "0.5356554", "0.5343305", "0.5339531", "0.5337318", "0.53155804", "0.53103757", "0.52953625", "0.52827805", "0.5282586", "0.52766925", "0.52726376", "0.52711886", "0.52638793", "0.5262099", "0.52609426", "0.52606934", "0.5255465", "0.52443755", "0.52389205", "0.52278703", "0.52269787", "0.52267736", "0.5225106", "0.52244914", "0.5222635", "0.522051", "0.5213385", "0.5212012", "0.52074814", "0.52064455", "0.5202184", "0.51943517", "0.5190901", "0.51906276", "0.5185057", "0.51807547", "0.5176793", "0.5173933", "0.51737285", "0.5172872", "0.517228", "0.5168589", "0.5164906", "0.51601845", "0.5156785", "0.51532507", "0.51524955", "0.5150383", "0.51493603", "0.5148197", "0.5145252", "0.5144086", "0.51365346", "0.51346433", "0.51326233", "0.5131514", "0.512521", "0.51213306", "0.51187414", "0.51168245", "0.5116823", "0.5110544" ]
0.0
-1
could alternatively use a HashSet (if I give nodes unique IDs)
public Node(String data) { this.data = data; status = Visited.NEW; neighbors = new ArrayList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Node<K, V>> entrySet();", "public HashSet<N> getNodes()\r\n/* 99: */ {\r\n/* 100:182 */ assert (checkRep());\r\n/* 101: */ \r\n/* 102:184 */ return new HashSet(this.map.keySet());\r\n/* 103: */ }", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "private Set<E> toSet(Node<E> n) {\n Set<E> result = new HashSet<>();\n toSet(result, n);\n return result;\n }", "public HashSet<T> removeDups(Node root, HashSet set) {\n if(root == null) {\n return set;\n }\n if(root.getLeftChildNode() != null) {\n removeDups(root.getLeftChildNode(), set);\n }\n if(set.contains(root.getData())){\n set.add(root.getData());\n }\n if(root.getRightChildNode() != null) {\n removeDups(root.getRightChildNode(), set);\n }\n return set;\n }", "boolean usedByNode(Long id);", "public Set<Node<E>> getNeighbors(Node<E> node){\n Set<Node<E>> result = new HashSet<>();\n result = nodes.get(node);\n return result;\n }", "@Override\n\tpublic int hashCode()\n\t{\n\t\t// This is really simple, but it works... and prevents a deep hash\n\t\treturn nodeList.size() + edgeList.size() * 23;\n\t}", "@Override\n public int hashCode() {\n return Objects.hashCode(nodes(), edgeToIncidentNodes);\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "public Node removeDuplicates(Node head) \n {\n // Your code here\n HashSet<Integer>hs = new HashSet<>();\n Node curr=head;\n Node prev=null;\n while(curr!=null){\n if(hs.contains(curr.data)){\n prev.next = curr.next;\n }else{\n hs.add(curr.data);\n prev = curr;\n }\n curr = curr.next;\n }\n return head;\n }", "public MutableNodeSet(Graph graph) {\n\t\tsuper(graph);\n\t\tthis.members = new TreeSet<Integer>();\n\t\tinitializeInOutWeights();\n\t}", "public MyHashSet() {\n nodes = new Node[Max_Size];\n }", "private Collection<Node> keepOnlySetElement(Collection<Node> nodes) {\n Set<Node> elements = new HashSet<>();\n for (Node node : nodes) {\n Edge originalEdge = synchronizer().getOriginalEdge(node);\n if ((originalEdge != null && !boundaries.edges.contains(originalEdge))\n || !boundaries.nodes.contains(node)) {\n elements.add(node);\n }\n }\n return elements;\n }", "public void removeDuplicates(){\n HashSet<Object> elements = new HashSet<>();\n Node n = head;\n int i=0;\n while(n!=null){\n if(elements.contains(n.getData())){\n if (size == 1) {\n this.head.setData(null);\n } else {\n if (n == this.head) {\n this.head = n.next;\n this.head.prev = this.head;\n } else if (n == this.tail) {\n this.tail = n.prev;\n this.tail.next = this.tail;\n } else {\n n.prev.next = n.next;\n n.next.prev = n.prev;\n }\n }\n size--;\n }else{\n elements.add(n.getData());\n }\n n=n.next;\n }\n }", "public Set removeDuplicateUsingLinkedHashSet() throws ComputationException {\n Set<Integer> uniqueSet = new LinkedHashSet<>();\n log.debug(\"Removing duplicate using Linked Hash Set......\");\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n for (int i = 0; i < intArray.length; i++) {\n uniqueSet.add(intArray[i]);\n }\n log.debug(\"refined size of int array using Set: \" + uniqueSet.size());\n log.debug(Arrays.toString(uniqueSet.toArray()));\n return uniqueSet;\n }", "private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}", "public HashSet<Node> getNodes(){\n\t\t\n\t\t//Return nodes hashset\n\t\treturn this.nodes;\n\t\t\n\t}", "public Set getNodesThatCall(PassedParameter pp) {\n if (USE_PARAMETER_MAP) {\n Set s = (Set)passedParamToNodes.get(pp);\n if (s == null) return Collections.EMPTY_SET;\n return s;\n }\n Set s = NodeSet.FACTORY.makeSet();\n getNodesThatCall(pp, s);\n return s;\n }", "private Node<E> findSet(Node<E> x) {\n if (x != x.parent) {\n Node<E> p = findSet(x.parent);\n x.parent.children.remove(x);\n p.children.add(x);\n x.parent = p;\n }\n return x.parent;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\tif (this.id == ((Node<?>) obj).getId()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "public Set<Edge<V>> edgeSet();", "public Node findSet(Node node ){\n Node parent = node.parent;\n //it means no one is parent\n if( parent == node ){\n return parent;\n }\n //do compression\n node.parent = findSet( parent );\n return node.parent;\n }", "private static boolean putInHashMap(Node head) {\r\n\t\tboolean hasloop = false;\r\n\t\tHashSet<Node> nodeSet = new HashSet();\r\n\t\twhile (head != null) {\r\n\t\t\tif (nodeSet.contains(head)) {\r\n\t\t\t\thasloop = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tnodeSet.add(head);\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\r\n\t\treturn hasloop;\r\n\t}", "void mo30185a(HashSet<zzawj> hashSet);", "@Override\r\n public Set<Integer> getAllReachableNodes(int sourceId, int numberOfHops) {\n if (reachabilityTwoHops.containsKey(sourceId))\r\n return reachabilityTwoHops.get(sourceId);\r\n return new HashSet<Integer>();\r\n }", "public Node removeDups(Node head) {\n if (head != null) {\n Node current = head;\n Set<Integer> set = new HashSet<>();\n set.add(current.data);//IMP step\n\n while (current.next != null) {\n if (set.contains(current.next.data)) {\n //found the dup, leave it out\n current.next = current.next.next;\n } else {\n set.add(current.data);\n current = current.next;\n }\n }\n }\n return head;\n }", "public static void main(String[] args) {\r\n\t\tHashSet h1=new HashSet();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\th1.add(3);\r\n\t\th1.add(7); //Homogeous \r\n\t\th1.add(9);//hetrogeous\r\n\t\th1.add(10);\r\n\t\t\r\n\t\tTreeSet t1=new TreeSet(h1);\r\n\t\tt1.add(100);\r\n\t\tSystem.out.println(t1);\r\n\t}", "public Map<Node, MyNode> extractNodes(int numNodes){\r\n\t\t//If numNodes is less than one or there aren't enough nodes, return null\r\n\t\tif (numNodes < 1 || nodesMap.size() < numNodes){\r\n\t\t\treturn null;\r\n\t\t} \r\n\r\n\t\t//Initialize the result set\r\n\t\tMap<Node, MyNode> result = new HashMap<Node, MyNode>();\r\n\r\n\t\t//Special case: If there are no relationships, then return all nodes.\r\n\t\tif(rels.size() == 0){\r\n\t\t\tfor (Node node : nodesMap.keySet()){\r\n\t\t\t\tresult.put(node, nodesMap.get(node));\r\n\t\t\t}\r\n\r\n\t\t\treturn result;\r\n\t\t}\r\n\r\n\t\t//tempRels (used for crawling through the gp)\r\n\t\tList<Relationship> tempRels = new ArrayList<Relationship>();\r\n\t\ttempRels.addAll(relsMap.keySet());\r\n\r\n\t\t//Shuffle the tempRels list for random order.\r\n\t\tCollections.shuffle(tempRels, random);\r\n\r\n\t\tboolean first = true;\t//flag for first run\r\n\r\n\t\twhile (result.size() < numNodes) {\t//Loop until we have reached the required result size.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\t\t\t\t\r\n\t\t\t\tif (first){\t\t\t//On the first run\r\n\t\t\t\t\tfirst = false;\t//Update flag\r\n\r\n\t\t\t\t\t//Pick a random relationship and extract its nodes\r\n\t\t\t\t\tRelationship rel = tempRels.get(random.nextInt(tempRels.size()));\r\n\t\t\t\t\ttempRels.remove(rel);\r\n\t\t\t\t\tNode src = rel.getStartNode();\r\n\t\t\t\t\tNode tgt = rel.getEndNode();\r\n\r\n\r\n\t\t\t\t\tif (numNodes > 1){\r\n\t\t\t\t\t\t//If numNodes > 1, then add both nodes to result\r\n\t\t\t\t\t\tresult.put(src, nodesMap.get(src));\r\n\t\t\t\t\t\tresult.put(tgt, nodesMap.get(tgt));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//If numNodes == 1, then randomly pick one of the nodes to add to result\r\n\t\t\t\t\t\tif (random.nextBoolean()){\r\n\t\t\t\t\t\t\tresult.put(src, nodesMap.get(src));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tresult.put(tgt, nodesMap.get(tgt));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\t//On subsequent runs\r\n\r\n\t\t\t\t\tboolean done = false;\t//Flag to specify we're done with this iteration\r\n\t\t\t\t\tint idx = 0;\t\t\t//Loop index counter\r\n\t\t\t\t\twhile (!done){\r\n\t\t\t\t\t\t//Pick the next relationship in tempRels\r\n\t\t\t\t\t\tRelationship rel = tempRels.get(idx);\r\n\t\t\t\t\t\tidx++;\r\n\t\t\t\t\t\tNode other = null;\r\n\r\n\t\t\t\t\t\tif (result.keySet().contains(rel.getStartNode()) && (!result.keySet().contains(rel.getEndNode()))){\r\n\t\t\t\t\t\t\t//If the startNode of the relationship is already in results, but not the end node\r\n\t\t\t\t\t\t\t//then set other to be the end node\r\n\t\t\t\t\t\t\tother = rel.getEndNode();\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t} else if ((!result.keySet().contains(rel.getStartNode())) && result.keySet().contains(rel.getEndNode())){\r\n\t\t\t\t\t\t\t//If the startNode of the relationship is not in results, but the end node is\r\n\t\t\t\t\t\t\t//then set other to be the start node\r\n\t\t\t\t\t\t\tother = rel.getStartNode();\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t} else if (result.keySet().contains(rel.getStartNode()) && result.keySet().contains(rel.getEndNode())){\r\n\t\t\t\t\t\t\t//If both of the nodes of the relationship are in result, remove it from the list\r\n\t\t\t\t\t\t\ttempRels.remove(rel);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//If we found a matching relationship\r\n\t\t\t\t\t\tif (done){\r\n\t\t\t\t\t\t\t//Add other to the result, and its corresponding mapping\r\n\t\t\t\t\t\t\tresult.put(other, nodesMap.get(other));\r\n\t\t\t\t\t\t\t//Remove rel from the list\r\n\t\t\t\t\t\t\ttempRels.remove(rel);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "protected Set<VALUEIN> createSetForNeighbors(final boolean isSetForPrimary) {\n return new HashSet<>();\n }", "Collection<Node> allNodes();", "Set<Vertex> getVertices();", "protected abstract Node[] getAllNodes();", "Collection<? extends Integer> getHasNodeID();", "public static void main(String[] args) {\n HashSet<String> hashSet = new HashSet<>();\n hashSet.add(\"Orange\");\n hashSet.add(\"Red\");\n hashSet.add(\"Pink\");\n hashSet.add(\"Red\");\n hashSet.add(\"White\");\n System.out.println(hashSet);\n TreeSet<String> treeSet = new TreeSet<>(hashSet);\n for (String color : treeSet) {\n System.out.println(color);\n }\n\n }", "private static void usingLinkedHashSet()\n\t{\n Integer[] numbers = new Integer[] {1,2,3,4,5,1,3,5};\n \n //This array has duplicate elements\n System.out.println( Arrays.toString(numbers) );\n \n //Create set from array elements\n LinkedHashSet<Integer> linkedHashSet = new LinkedHashSet<>( Arrays.asList(numbers) );\n \n //Get back the array without duplicates\n Integer[] numbersWithoutDuplicates = linkedHashSet.toArray(new Integer[] {});\n \n //Verify the array content\n System.out.println( Arrays.toString(numbersWithoutDuplicates) );\n\t}", "private static HashSet<String> addElement(Map m, String key,int count) {\n\t\tIterator it = m.entrySet().iterator();\n\t\tHashSet<String> allParents=new HashSet<String>();\n\t\tHashSet<String> newNodeHS=new HashSet<String>();\n\t\tHashSet<String> receive=new HashSet<String>();\n\t\tString parent=\"\";\n\t\tif(readNodes.get(key)==null)\n\t\t{\n\t\t\tif(!(key.equals(root)))\n\t\t\t{\n\t\t\tallParents=(HashSet)m.get(key);\n\t\t\tIterator iter = allParents.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tparent=(String)iter.next();\n\t\t\t\tcount++;\n\t\t\t\treceive=addElement(m,parent,count);\n\t\t\t\tString str=key+\"-\"+parent;\n\t\t\t\tIterator toRecieve = receive.iterator();\n\t\t\t\twhile(toRecieve.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewNodeHS.add((String)toRecieve.next());\n\t\t\t\t}\n\t\t\t\tnewNodeHS.add(str);\n\t\t\t\tcount--;\n\t\t\t}\n\t\t\t\tif(count==0)\n\t\t\t\t{\n\t\t\t\t\tIterator<HashSet> iternew = totalDAG.iterator();\n\t\t\t\t\tHashSet<HashSet> inProgressDAG=new HashSet<HashSet>(totalDAG); \n\t\t\t\t\twhile (iternew.hasNext()) {\n\t\t\t\t\t HashSet<String> tillCreatedDAG=iternew.next();\n\t\t\t\t\t HashSet<String> union=new HashSet<String>(newNodeHS);\n\t\t\t\t\t union.addAll(tillCreatedDAG);\n\t\t\t\t\t inProgressDAG.add(union);\n\t\t\t\t\t}\n\t\t\t\t\ttotalDAG.clear();\n\t\t\t\t\ttotalDAG=inProgressDAG;\n\t\t\t\t\ttotalDAG.add(newNodeHS);\n\t\t\t\t\treadNodes.put(key, newNodeHS);\n\t\t\t\t\tSystem.out.println(\"Size: \" +totalDAG.size()+\" Nodes: \"+(++totalCount));\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t\t\tcount--;\n\t\t\t\treturn newNodeHS;\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString str=root;\n\t\t\t\t\tnewNodeHS.add(str);\n\t\t\t\t\tcount--;\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (HashSet)readNodes.get(key);\n\t\t}\n\t}", "public Vector<Node> GetAdditionalSubNodes();", "public static void main(String[] args) {\n\t\tArrayList al=new ArrayList();\r\n\t\tal.add(1);\r\n\t\tal.add(2);\r\n\t\tal.add(3);\r\n\t\tal.add(4);\r\n\t\tal.add(1);\r\n\t\tal.add(2);\r\n\t\tSystem.out.println(\"Elements in ArrayList: \"+al);\r\n\t\t\r\n\t\tLinkedHashSet<Integer> lhs=new LinkedHashSet<Integer>(al);\r\n\t\tSystem.out.println(\"linkedhashset: \"+lhs);\r\n\t}", "private SearchNode findNodeWithCoords(HashSet<SearchNode> set, int x, int y){\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (cur.posX == x && cur.posY == y)\n\t\t\t\t\treturn cur;\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);", "public void removeDups() {\n Node curr = head;\n Node prev = head;\n Set<Integer> integers = new HashSet<>();\n while (curr != null) {\n if (integers.contains(curr.getValue())) {\n prev.setNext(curr.getNext());\n } else {\n integers.add(curr.getValue());\n prev = curr;\n }\n curr = curr.getNext();\n }\n }", "public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>();\n Person p1 = new Person(\"小妹妹\", 18);\n Person p2 = new Person(\"小妹妹\", 18);\n Person p3 = new Person(\"小妹妹\", 19);\n System.out.println(p1.hashCode());\n System.out.println(p2.hashCode());\n System.out.println(p1 == p2);\n System.out.println(p1.equals(p2));\n set.add(p1);\n set.add(p2);\n set.add(p3);\n System.out.println(set);\n }", "@Test\n\tvoid testEdgesAreEqualForGivenVertice() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Newark\", edgesArray[0]);\n\t\tAssertions.assertEquals(\"New York\", edgesArray[1]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Philadelphia\", edgesArray[0]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Albany\", edgesArray[0]);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\ttry {\n\t\t\tif (id == ((Node) obj).getId())\n\t\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tvoid testVerticesExist() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Boston\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Newark\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Trenton\"));\n\t}", "public void insNode(T node) {\n\t\tif(nodes.add(node)==true)\n\t\t\tarcs.put(node, new HashSet<T>());\n\t}", "@Override public Set<L> vertices() {\r\n return new HashSet<L>(vertices);//防御式拷贝\r\n }", "void shortestPaths( Set<Integer> nodes );", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tNode another = (Node) obj;\r\n\t\treturn (this.id == another.getId());\r\n\t}", "public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>(10);\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\" + i, i));\n }\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\", 15));\n }\n Person p1 = new Person(\"person\", 15);\n Person p2 = new Person(\"person\", 15);\n System.out.println(p1 + \" hascode: \" + p1.hashCode());\n System.out.println(p2 + \" hascode: \" + p2.hashCode());\n System.out.println(\"person1 equals person2 \" + p1.equals(p2));\n for (Person person : set) {\n System.out.println(person);\n }\n }", "public Set<Node<E>> getNodes(){\n return nodes.keySet();\n }", "public static void removeDuplicates(int[] a)\r\n\t\t{\r\n\t\t\tLinkedHashSet<Integer> set\r\n\t\t\t\t= new LinkedHashSet<Integer>();\r\n\r\n\t\t\t// adding elements to LinkedHashSet\r\n\t\t\tfor (int i = 0; i < a.length; i++)\r\n\t\t\t\tset.add(a[i]);\r\n\r\n\t\t\t// Print the elements of LinkedHashSet\r\n\t\t\tSystem.out.print(set);\r\n\t\t}", "public static void main(String[] args) {\n Set<Integer> set = new HashSet<>();\n\n\n // elementy w secie nie są poukładane\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(4);\n set.add(5);\n set.add(5);\n set.add(5);\n set.add(null);\n set.add(null);\n System.out.println(set);// elementów: 6\n\n\n\n Set<String> setString = new HashSet<>();\n\n List<Integer> ar = new ArrayList<>();\n }", "Iterable<Long> vertices() {\n return nodes.keySet();\n }", "public static void main(String[] args) {\n\t\tLinkedHashSet lh=new LinkedHashSet();\r\n\t\t\r\n\t\tlh.add(15);\r\n\t\tlh.add(45);\r\n\t\tlh.add(95);\r\n\t\tlh.add(85);\r\n\t\tlh.add(75);\r\n\t\t\r\n\t\tIterator itr=lh.iterator();\r\n\t\t\r\n\t\twhile(itr.hasNext())\r\n\t\t{\r\n\t\t\tObject o=itr.next();\r\n\t\t\tSystem.out.println(o);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public int hashCode() {\n/* 781 */ return getUniqueId().hashCode();\n/* */ }", "Set<II> getIds();", "public HashSet<N> getSuccessors(N node)\r\n/* 26: */ {\r\n/* 27: 56 */ assert (checkRep());\r\n/* 28: 57 */ return new HashSet(((Map)this.map.get(node)).keySet());\r\n/* 29: */ }", "HSet keySet();", "private Set getRootSet(Class paramClass, NodeImpl paramNodeImpl, Graph paramGraph) {\n/* 198 */ Set set = null;\n/* */ \n/* 200 */ if (paramClass.isInterface()) {\n/* 201 */ paramGraph.add(paramNodeImpl);\n/* 202 */ set = paramGraph.getRoots();\n/* */ } else {\n/* */ \n/* 205 */ Class clazz = paramClass;\n/* 206 */ HashSet<NodeImpl> hashSet = new HashSet();\n/* 207 */ while (clazz != null && !clazz.equals(Object.class)) {\n/* 208 */ NodeImpl nodeImpl = new NodeImpl(clazz);\n/* 209 */ paramGraph.add(nodeImpl);\n/* 210 */ hashSet.add(nodeImpl);\n/* 211 */ clazz = clazz.getSuperclass();\n/* */ } \n/* */ \n/* */ \n/* 215 */ paramGraph.getRoots();\n/* */ \n/* */ \n/* 218 */ paramGraph.removeAll(hashSet);\n/* 219 */ set = paramGraph.getRoots();\n/* */ } \n/* */ \n/* 222 */ return set;\n/* */ }", "private Collection<Node> getCandidates(State state) {\n\t\treturn new ArrayList<Node>(Basic_ILS.graph.getNodes());\n\t}", "public abstract Set<Tile> getNeighbors(Tile tile);", "void getSinkSet(){\n\t\tsink = new HashSet<>(inlinks.keySet());\n\t\tfor(String node : outlinks.keySet()){\n\t\t\tif(!(sink.add(node))){\n\t\t\t\tsink.remove(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Sink Size : \"+sink.size());\n\t }", "public void makeSet( long data ){\n Node node = new Node();\n node.data = data;\n node.parent = node;\n node.rank = 0;\n map.put( data, node );\n }", "public static void main(String[] args)\r\n\t{\r\n\t\r\n\t\tSet<String> lhs = new LinkedHashSet<>();\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(\"Srinath\");\r\n\t\tlhs.add(\"Shringesh\");\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(null);\r\n\t\t\r\n\t\tfor (String lhselement : lhs)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"print the linked hasset elemenet :\"+lhselement);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public List<DataNodeId> getDataNodeIds();", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "void add(Cluster c){\n Set<Cluster> tempC = new TreeSet<Cluster>();\n for(Cluster i: C)\n tempC.add(i);\n tempC.add(c);\n C = tempC;\n }", "public Set removeDuplicateUsingSet() throws ComputationException {\n Set<Integer> uniqueSet = new HashSet<>();\n log.debug(\"Removing duplicate using Set......\");\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n for (int i = 0; i < intArray.length; i++) {\n uniqueSet.add(intArray[i]);\n }\n log.debug(\"refined size of int array using Set: \" + uniqueSet.size());\n log.debug(Arrays.toString(uniqueSet.toArray()));\n return uniqueSet;\n }", "public Set<T> noFollow(T elem) {\n\t\t Set<T> s = rule.get(elem.hashCode());\n\t\t return s == null ? new HashSet<T>() :s; // TODO YOUR CODE HERE\n\t}", "private TreeSet<Integer> getNeightborSets(DisjointSets<Pixel> ds, int root)\n {\n return null; //TODO: remove and replace this line\n }", "@Override\r\n \tpublic int hashCode() {\n \t\treturn id.hashCode();\r\n \t}", "public static void removeDuplicates(Node head)\n {\n HashSet<Integer> seen = new HashSet<Integer>();\n Node curr = head;\n while (curr.next != null)\n {\n seen.add(curr.data);\n if (seen.contains(curr.next.data))\n {\n curr.next = deleteNode(curr.next);\n }\n curr = curr.next;\n }\n }", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "entities.Torrent.NodeId getNodes(int index);", "public MutableNodeSet(Graph graph, Collection<Integer> members) {\n\t\tthis(graph);\n\t\tthis.setMembers(members);\n\t}", "public Set<E> getEdges();", "public static void main(String[] args) {\n\t\tA1 a1=new A1(\"ram\",1,\"ram\");\n\t\tA1 a2=new A1(\"ram\",1,\"ram\");\n\t\tHashSet<A1> set=new HashSet<A1>();\n\t System.out.println(a1.getName());\n\t System.out.println(a2.getName());\n\t set.add(a1);\n\t set.add(a2);\n\t System.out.println(set.size());\n\t}", "List<Node> nodes();", "private void findIntersection(Node head1, Node head2) {\n if (head1 == null || head2 == null) {\n System.out.println(\"No intersection found\");\n return;\n }\n Set<Node> set = new HashSet<Node>();\n boolean flag = false;\n\n for (Node temp = head1; temp != null; temp = temp.next)\n set.add(temp);\n for (Node temp = head2; temp != null; temp = temp.next)\n if (!set.add(temp)) {\n System.out.println(\"Intersection found at \" + temp.data);\n flag = true;\n break;\n }\n if (!flag) {\n System.out.println(\"No intersection found\");\n }\n }", "public static void main(String[] args) {\n Set<Inner> set = new HashSet<>();\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n\n System.out.println(set);\n }", "public Object clone()\n/* */ {\n/* 251 */ return new IntHashSet(this);\n/* */ }", "public static void main(String[] args) {\n HashSet<String> food = new HashSet<>();\n food.add(\"Sushi\");\n food.add(\"Sashimi\");\n food.add(\"Pizza\");\n food.add(\"Japadog\");\n food.add(\"Sushi\");\n System.out.println(food.size());\n\n HashSet<String> food2 = new HashSet<>();\n food2.add(\"Pizza\");\n food2.add(\"Pasta\");\n food2.add(\"Sushi\");\n food2.add(\"Taco\");\n food2.add(\"Burrito\");\n food2.add(\"Nachos\");\n food2.add(\"Feijoada\");\n food2.add(\"Coxinha\");\n// food.addAll(food2);\n// food.retainAll(food2); // common\n\n System.out.println(food);\n System.out.println(food.contains(\"Sushi\"));\n }", "void GetAllSuccLeafProduct(HashSet plstSuccPro);", "HSet entrySet();", "public void makeSet(T e){\n\t\tnodes.put(e, new Node<T>(e));\r\n\t}", "Set createSet();", "private Map<String, Node> getNodeXmlIdTable() {\n\n if (this.nodeXmlIdTable == null) {\n this.nodeXmlIdTable = new HashMap<String, Node>();\n }\n return this.nodeXmlIdTable;\n }", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "public void hashSet() {\n\n Set<Integer> num = new java.util.HashSet<>();\n\n num.add(3);\n num.add(11);\n num.add(6);\n\n System.out.println(num);\n\n for (int i = 1; i <= 10; i++) {\n\n if (num.contains(i)) {\n\n System.out.println(\"\\n\\t\" + i + \"\\t is found in set\");\n\n }\n\n }\n\n }", "public static void main(String[] args) {\n\t\tSet<Puppy> set = new LinkedHashSet<Puppy>(10);\n\t\t\n\t\t// this DS which can hold other object\n\t\tPuppy puppy1=new Puppy(\"Tommy\",10 );\n\t\tPuppy puppy2=new Puppy(\"AHH\", 12);\n\t\tPuppy puppy3=new Puppy(\"MYY\", 5);\n\t\tPuppy puppy4=new Puppy(\"NANY\", 3);\n\t\tPuppy puppy5=new Puppy(\"NANY\", 3);\n\t\t\n\t\t//dog4 and dog5 are duplicate elements\n\t\tset.add(puppy1);\n\t\tset.add(puppy2);\n\t\tset.add(puppy3);\n\t\tset.add(puppy4);\n\t\tset.add(puppy5);\n\t\t\n\t\tSystem.out.println(\"puppy4 . hashCode () = \"+puppy4.hashCode());\n\t\tSystem.out.println(\"puppy5 . hashCode () = \"+puppy5.hashCode());\n\t\t\n\t\tIterator<Puppy> iterator=set.iterator();\n\t\t\n\t\tSystem.out.println(\"Accessing data using Iterator interface!\");\n\t\twhile(iterator.hasNext()){\n\t\t\tPuppy puppy=iterator.next();\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"____________-----\");\n\t\tfor(Puppy puppy:set){\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\tPuppy puppy6=new Puppy(\"NANY\", 3);\n\t\t\n\t\tboolean b=set.contains(puppy6);\n\t\tif(b){\n\t\t\tSystem.out.println(\"puppy6 found in set!\"+puppy6);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Run it\");\n\t\t /* final Entry<K,V> getEntry(Object key) {\n\t\t int hash = (key == null) ? 0 : hash(key.hashCode());\n\t\t for (Entry<K,V> e = table[indexFor(hash, table.length)];\n\t\t e != null;\n\t\t e = e.next) {\n\t\t Object k;\n\t\t if (e.hash == hash &&\n\t\t ((k = e.key) == key || (key != null && key.equals(k))))\n\t\t return e;\n\t\t }\n\t\t return null;\n\t\t } */\n\t\t b=set.contains(puppy1);\n\t\tif(b){\n\t\t\tSystem.out.println(b+\"is found in set!\");\n\t\t}\n\t\t\n\n\t}", "private AccessPath findNode(Node n, HashSet s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n AccessPath p = (AccessPath)ap.getObject();\n if (n == p._n) return p;\n s.add(ap);\n AccessPath q = p.findNode(n, s);\n if (q != null) return q;\n }\n }\n return null;\n }", "private boolean itsRepeated(BTreeNode<T> currentNode, I id) {\n\n for (int i = 0; i < 5; i++) {\n if (currentNode.getKey(i) != null) {\n if (comparator.compare(currentNode.getKey(i), id) == 0) {\n return true;\n }\n }\n }\n\n return false;\n }", "public List<TreeNode> findDuplicateSubtrees(TreeNode root) {\n // like i thought, we can take the advantage of the serialization of the tree node\n // that is how we can put them into the map and check if there already exsit the same serials\n List<TreeNode> ans = new ArrayList<>();\n dfspostorder(root,new HashMap<String,Integer>(),ans);\n return new ArrayList<TreeNode>(ans);\n }", "public static void main(String[] args) {\n String s1 = \"ShivaniKashyap\";\n char[] chararray = s1.toCharArray();\n LinkedHashSet set = new LinkedHashSet();\n LinkedHashSet newset = new LinkedHashSet();\n for(int i=0;i<chararray.length;i++)\n {\n if( !set.add(chararray[i]))\n {\n newset.add(chararray[i]);\n\n }\n\n }\n System.out.println(newset);\n }", "boolean hasNodeId();", "public static void main(String[] args) {\n\t\t\r\n\t\t TreeSet<String> treeset = new TreeSet<String>();\r\n\t\t treeset.add(\"Good\");\r\n\t\t treeset.add(\"For\");\r\n\t\t treeset.add(\"Health\");\r\n\t\t //Add Duplicate Element\r\n\t\t treeset.add(\"Good\");\r\n\t\t System.out.println(\"TreeSet : \");\r\n\t\t for (String temp : treeset) {\r\n\t\t System.out.println(temp);\r\n\t\t }\r\n\t\t }", "@Override\n public Set<K> keySet() {\n Set<K> ks = new HashSet<>();\n keySetHelper(root, ks);\n return ks;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "String getIdNode2();" ]
[ "0.6877555", "0.68212855", "0.66717225", "0.6610874", "0.63983226", "0.6222534", "0.61995", "0.6101435", "0.60953856", "0.6086057", "0.6072773", "0.6049505", "0.6047629", "0.5982902", "0.59720737", "0.5949901", "0.59420335", "0.59339875", "0.59146184", "0.5906746", "0.5895684", "0.58914834", "0.58594656", "0.58389324", "0.58177143", "0.5783076", "0.5771133", "0.5769061", "0.57553166", "0.57506156", "0.57500744", "0.5718705", "0.57165045", "0.5715797", "0.57143116", "0.5713904", "0.570956", "0.56972694", "0.5693154", "0.5647296", "0.5639341", "0.5634308", "0.56331193", "0.5629009", "0.56176347", "0.56131995", "0.55954814", "0.5587971", "0.55856174", "0.5567159", "0.5563144", "0.5558299", "0.5541921", "0.55356026", "0.5531736", "0.5529575", "0.55180675", "0.55161583", "0.5512953", "0.551007", "0.5506538", "0.54905325", "0.5486159", "0.54767716", "0.5474498", "0.54740936", "0.5470959", "0.5465276", "0.54651845", "0.54648715", "0.5461963", "0.5460708", "0.54577005", "0.5453036", "0.54500085", "0.5443239", "0.54415154", "0.54400975", "0.5431267", "0.5424405", "0.5421412", "0.54061073", "0.54021555", "0.53919756", "0.53840095", "0.5380115", "0.53788644", "0.5370081", "0.5361143", "0.5359658", "0.53567636", "0.53543395", "0.53532916", "0.53526473", "0.53484565", "0.5334325", "0.53326833", "0.5329189", "0.53219366", "0.5320871", "0.5320654" ]
0.0
-1
not really needed protected int activeCycles = 0;
public FluoriteListener() { idleTimer = new IdleTimer(); EHEventRecorder eventRecorder = EHEventRecorder.getInstance(); // EventRecorder eventRecorder = EventRecorder.getInstance(); // eventRecorder.addCommandExecutionListener(this); // eventRecorder.addDocumentChangeListener(this); // eventRecorder.addRecorderListener(this); eventRecorder.addEclipseEventListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCycles();", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "public int getCycle() {\n return cycle;\n }", "GlobalVariable getCycleCounterVariable();", "public final long getCycles() {\r\n return this.cycles;\r\n }", "public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}", "protected void onCycle() {\n\n }", "public void setCycles(final long cycles) {\r\n this.cycles = cycles;\r\n }", "public int getNCycles() {\n return ncycles;\n }", "static UINT32 update_cycle_counting(void)\n\t{\n\t\tUINT32 count = (activecpu_gettotalcycles64() - mips3.count_zero_time) / 2;\n\t\tUINT32 compare = mips3.cpr[0][COP0_Compare];\n\t\tUINT32 cyclesleft = compare - count;\n\t\tdouble newtime;\n\t\n\t//printf(\"Update: count=%08X compare=%08X delta=%08X SR=%08X time=%f\\n\", count, compare, cyclesleft, (UINT32)SR, TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu()));\n\t\n\t\t/* modify the timer to go off */\n\t\tnewtime = TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu());\n\t\tif (SR & 0x8000)\n\t\t\ttimer_adjust(mips3.compare_int_timer, newtime, cpu_getactivecpu(), 0);\n\t\telse\n\t\t\ttimer_adjust(mips3.compare_int_timer, TIME_NEVER, cpu_getactivecpu(), 0);\n\t\treturn count;\n\t}", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}", "private SchedulerThreadCounter()\n\t{\n\t\tii_counter = 100;\n\t}", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public long getCycleInterval() {\r\n return cycleInterval;\r\n }", "@Override\n public void cycle(long cycle) {\n\n boolean previousState = state();\n\n manageDIV();\n\n incTIMAIfChange(previousState);\n }", "@Override\n protected void incrementStates() {\n\n }", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "public double getStepsCycle() {\n\t\treturn stepsSleep + stepsCS;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private static void cycleTests() throws CALExecutorException {\r\n \r\n final ImmutableDirectedGraph<Integer> noCycles = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 3), Pair.make(1, 3)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthOneCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 1)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthTwoCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 1)),\r\n executionContext);\r\n \r\n System.out.println(\"noCycle.findCycle(): \" + noCycles.findCycle());\r\n System.out.println(\"oneCycle.findCycle(): \" + lengthOneCycle.findCycle());\r\n System.out.println(\"twoCycle.findCycle(): \" + lengthTwoCycle.findCycle());\r\n }", "Integer getMaxSuccessiveDeltaCycles();", "public Iterable<Integer> cycle(){\n return cycle;\n }", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "private void decWaiters()\r\n/* 451: */ {\r\n/* 452:537 */ this.waiters = ((short)(this.waiters - 1));\r\n/* 453: */ }", "public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }", "private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }", "Cycle(int weight) {\r\n //this keyword is used to differentiate between global and local variables\r\n //\"this.name\" refers to the global instance variable\r\n // \"= name\" refers to the local variable defined inside the constructor \r\n this.weight = weight;\r\n }", "@Override\n\tprotected int getActiveCount(long units) {\n\t\treturn units % period == 0 ? 1 : 0;\n\t}", "Constant getCyclePeriodConstant();", "public int getNumMotorCycles() {\r\n\t\treturn numMotorCycles;\r\n\t}", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "public long getEvaluationCycle() {\n return evaluationCycle;\n }", "public String getExecutionCycles() {\n return _executionCycles;\n }", "public void incrementRefusals() {\n\t}", "public final void addCycles(final int cycles) {\r\n this.cycles += cycles;\r\n }", "public void incrementActiveRequests() \n {\n ++requests;\n }", "public List<List<IThreadInfo>> getCycles() {\n return (_objectProcessor != null ? _objectProcessor : _processor).getCycles();\n }", "public int calculateCycles(Player player, Node node, Pickaxe pickaxe) {\n\t\tfinal int mining = player.getSkills().getLevel(Skills.MINING);\n\t\tfinal int difficulty = node.getRequiredLevel();\n\t\tfinal int modifier = pickaxe.getRequiredLevel();\n\t\tfinal int random = new Random().nextInt(3);\n\t\tdouble cycleCount = 1;\n\t\tcycleCount = Math.ceil((difficulty * 60 - mining * 20) / modifier\n\t\t\t\t* 0.25 - random * 4);\n\t\tif (cycleCount < 1) {\n\t\t\tcycleCount = 1;\n\t\t}\n\t\t// player.getActionSender().sendMessage(\"You must wait \" + cycleCount +\n\t\t// \" cycles to mine this ore.\");\n\t\treturn (int) cycleCount;\n\t}", "public void setCycleInterval(long value) {\r\n this.cycleInterval = value;\r\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "private static void setCounter() {++counter;}", "public static void checkCycleSample() {\n Node ll1_5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n Node ll1_2 = new Node(1, new Node(2, null));\n Node ll3_4 = new Node(3, new Node(4, null));\n Node ll5_6 = new Node(5, new Node(6, null));\n ll1_2.nextNode.nextNode = ll3_4;\n ll3_4.nextNode.nextNode = ll5_6;\n ll5_6.nextNode.nextNode = ll1_2;\n\n ll1_2.checkCycle();\n ll1_5.checkCycle();\n }", "@Override\n public void syncState() {\n scheduledCounter.check();\n }", "public void setEvaluationCycle(long value) {\n this.evaluationCycle = value;\n }", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "public void incrementLoopCount() {\n this.loopCount++;\n }", "int getIterations();", "private static int runStateOf(int c) { return c & ~CAPACITY; }", "Long getRunningCount();", "public synchronized Vector<String> proceedNextCycle(){\n\t\tVector<String> agentids=new Vector<String>(waitingAgents);\n\t\twaitingAgents.clear();\n\t\tnotifyAll();\n\t\treturn agentids;\n\t}", "public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "public int forcedTerminationCount(){\r\n return forcedTc;\r\n }", "public void incrementWaitCounter() {\n ticksWaitingToBeAssigned++;\n }", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public boolean isFirstCycle() {\n return cycle == 0;\n }", "@Override\r\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "public HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "protected void d()\r\n/* 89: */ {\r\n/* 90: 97 */ this.m = new ctr(this, \"Texture Downloader #\" + h.incrementAndGet());\r\n/* 91: */ \r\n/* 92: */ \r\n/* 93: */ \r\n/* 94: */ \r\n/* 95: */ \r\n/* 96: */ \r\n/* 97: */ \r\n/* 98: */ \r\n/* 99: */ \r\n/* 100: */ \r\n/* 101: */ \r\n/* 102: */ \r\n/* 103: */ \r\n/* 104: */ \r\n/* 105: */ \r\n/* 106: */ \r\n/* 107: */ \r\n/* 108: */ \r\n/* 109: */ \r\n/* 110: */ \r\n/* 111: */ \r\n/* 112: */ \r\n/* 113: */ \r\n/* 114: */ \r\n/* 115: */ \r\n/* 116: */ \r\n/* 117: */ \r\n/* 118: */ \r\n/* 119: */ \r\n/* 120: */ \r\n/* 121: */ \r\n/* 122: */ \r\n/* 123: */ \r\n/* 124: */ \r\n/* 125: */ \r\n/* 126: */ \r\n/* 127: */ \r\n/* 128:135 */ this.m.setDaemon(true);\r\n/* 129:136 */ this.m.start();\r\n/* 130: */ }", "long getSpinCount();", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }" ]
[ "0.7716578", "0.7321053", "0.68959135", "0.66459334", "0.6639804", "0.65654856", "0.62928", "0.621635", "0.6172807", "0.6165624", "0.60916775", "0.6079226", "0.6049116", "0.60455716", "0.60221314", "0.60215366", "0.60141665", "0.60085535", "0.5927327", "0.5916294", "0.5902431", "0.5871027", "0.5855061", "0.5840111", "0.58328795", "0.57977474", "0.5768129", "0.5709917", "0.5692488", "0.5692188", "0.56725115", "0.56576335", "0.564977", "0.5643191", "0.5643073", "0.56353354", "0.56293005", "0.5597428", "0.5568335", "0.5568335", "0.5553178", "0.55451894", "0.5543342", "0.551872", "0.550878", "0.5506276", "0.5501981", "0.5500206", "0.54983187", "0.5495401", "0.5486662", "0.5485093", "0.5485093", "0.54847", "0.54789305", "0.5474812", "0.5450256", "0.5447331", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54455626", "0.54251146", "0.5417048", "0.5415466", "0.5410254", "0.5409819", "0.5409819", "0.5409819", "0.5409819" ]
0.0
-1
TODO Autogenerated method stub
@Override public void documentChangeFinalized(long aTimestamp) { }
{ "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
protected int idleCycles = 0; protected int activeCycles;
public IdleTimer() { inActivitySession = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCycles();", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "GlobalVariable getCycleCounterVariable();", "public int getNumIdle();", "public long getIdle() { return idle; }", "@Override\n\tpublic void idleCheck() {\n\t\t\n\t}", "@Override\n\tpublic void idleCheck() {\n\t\t\n\t}", "public int getCycle() {\n return cycle;\n }", "public final long getCycles() {\r\n return this.cycles;\r\n }", "int getIdle( int idle );", "private SchedulerThreadCounter()\n\t{\n\t\tii_counter = 100;\n\t}", "public int getNCycles() {\n return ncycles;\n }", "@Override\n protected void incrementStates() {\n\n }", "Cycle(int weight) {\r\n //this keyword is used to differentiate between global and local variables\r\n //\"this.name\" refers to the global instance variable\r\n // \"= name\" refers to the local variable defined inside the constructor \r\n this.weight = weight;\r\n }", "public IdleConnectionHandler() {\n/* 61 */ this.connectionToTimes = new HashMap<HttpConnection, TimeValues>();\n/* */ }", "public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}", "public IdleTimer getIdleTimer()\n {\n return idleTimer;\n }", "public void tick(){\n oilLevel --;\n maintenance --;\n happiness --;\n health --;\n boredom ++;\n }", "public void setCycles(final long cycles) {\r\n this.cycles = cycles;\r\n }", "protected void onCycle() {\n\n }", "void updateIdleTime(int T);", "public long getCycleInterval() {\r\n return cycleInterval;\r\n }", "int getLoses() {return _loses;}", "private int getActiveTime() {\n\t\treturn 15 + level;\n\t}", "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public int getSleepPoints() {\n return localSleepPoints;\n }", "default public int getAliveInterval() \t\t\t\t\t{ return 1000; }", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "@Override\n\tpublic int incTstates() {\n\t\treturn 4;\n\t}", "public int forcedTerminationCount(){\r\n return forcedTc;\r\n }", "public void time(int value) \n{\n runtimes = value;\n}", "public double getStepsCycle() {\n\t\treturn stepsSleep + stepsCS;\n\t}", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "public long getOccupiedSeconds(){\n \t\treturn occupiedSeconds;\n \t}", "studentCounter(){ \n\t\tnumStudentInRoom = 0 ;\n\t}", "public int getInterval() { return _interval; }", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}", "public int getDimes()\n {\n\treturn dimes;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public long getEvaluationCycle() {\n return evaluationCycle;\n }", "public void resetOccupied(){\n \t\toccupiedSeconds = 0;\n \t}", "public long getIdleTime() {\r\n return idleTime;\r\n }", "@Override\n public void idle() {\n if (session.peek() == null) {\n crawlCompletedBarrier.countDown();\n }\n }", "private GameProgress() {\n maxTime = 3000;\n heathMax = 1000;\n fuelMax = 4000;\n difficultyLv = 1;\n fuelGainMultiply = 0;\n healthGainMultiply = 0;\n money = 0;\n lives = 1;\n increaseSafeTime = 0;\n livesWereBought = 0;\n decreaseDamage = 0;\n time = 0;\n lv = 1;\n }", "@Override\n\tprotected int getActiveCount(long units) {\n\t\treturn units % period == 0 ? 1 : 0;\n\t}", "public HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }", "public int getCurrentPace() {\n\t\treturn this.currentPace = maxPace - load;\n\t}", "public int start() { return _start; }", "public boolean getStatus()\n\t{\n\t\treturn idle;\n\t}", "StepTracker(int minimum) {\n STEPS = minimum;\n day=0;\n activeDay=0;\n totalSteps=0;\n }", "public int getClaimer() {\n return claimer;\n }", "public StationBikeCounters (int freeSlots) {\r\n\t\tthis.freeSlots=freeSlots;\r\n\t}", "public Counter() {\n //this.max = max;\n }", "public void incrementActiveRequests() \n {\n ++requests;\n }", "Timer(int tempTotalTime) {\n totalTime = tempTotalTime;\n }", "public HitCounterReadWriteLock() {\r\n hits = new int[300];\r\n times = new int[300];\r\n }", "private void adjustThreadCount() {\n \t\tif (adjusting > 0) {\n \t\t\tadjusting--;\n \t\t\treturn;\n \t\t}\n \t\tint active = activeThreads.size();\n \t\tint idle = idleThreads.size();\n \t\tint count = idle + active;\n \n \t\tif (Http.DEBUG) {\n \t\t\thttp.logDebug(\"Current thread count: \" + idle + \" idle, \" + active + \" active\"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t}\n \n \t\tif (idle < 2) {\n \t\t\tcount += 5;\n \t\t} else {\n \t\t\tif (idle > 10) {\n \t\t\t\tcount -= 5;\n \t\t\t}\n \t\t}\n \n \t\tif (count > upper) {\n \t\t\tcount = upper;\n \t\t}\n \n \t\tif (count < lower) {\n \t\t\tcount = lower;\n \t\t}\n \n \t\tint delta = count - (idle + active);\n \t\tif (Http.DEBUG) {\n \t\t\thttp.logDebug(\"New thread count: \" + count + \", delta: \" + delta); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \n \t\tif (delta < 0) /* remove threads */\n \t\t{\n \t\t\tdelta = -delta; /* invert sign */\n \t\t\tif (delta < idle) {\n \t\t\t\tfor (int i = idle - 1; delta > 0; i--, delta--) {\n \t\t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\t\tidleThreads.removeElementAt(i);\n \t\t\t\t\tthread.close();\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\thitCount += delta - idle;\n \t\t\t\tfor (int i = 0; i < idle; i++) {\n \t\t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\t\tthread.close();\n \t\t\t\t}\n \t\t\t\tidleThreads.removeAllElements();\n \t\t\t}\n \t\t} else {\n \t\t\tif (delta > 0) /* add threads */\n \t\t\t{\n \t\t\t\tadjusting = delta; /* new threads will call this method */\n \t\t\t\tif (delta > hitCount) {\n \t\t\t\t\tdelta -= hitCount;\n \t\t\t\t\thitCount = 0;\n \t\t\t\t\tidleThreads.ensureCapacity(count);\n \t\t\t\t\tfor (int i = 0; i < delta; i++) {\n \t\t\t\t\t\tnumber++;\n\t\t\t\t\t\tfinal String threadName = \"HttpThread_\" + number; //$NON-NLS-1$\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tAccessController.doPrivileged(new PrivilegedAction() {\n \t\t\t\t\t\t\t\tpublic Object run() {\n \t\t\t\t\t\t\t\t\tHttpThread thread = new HttpThread(http, HttpThreadPool.this, threadName);\n \t\t\t\t\t\t\t\t\tthread.start(); /* thread will add itself to the pool */\n \t\t\t\t\t\t\t\t\treturn null;\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 (RuntimeException e) {\n \t\t\t\t\t\t\t/* No resources to create another thread */\n \t\t\t\t\t\t\thttp.logError(NLS.bind(HttpMsg.HTTP_THREAD_POOL_CREATE_NUMBER_ERROR, new Integer(number)), e);\n \n \t\t\t\t\t\t\tnumber--;\n \n \t\t\t\t\t\t\t/* Readjust the upper bound of the thread pool */\n \t\t\t\t\t\t\tupper -= delta - i;\n \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} else {\n \t\t\t\t\thitCount -= delta;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public float getExecFreq(){return 0.0f;}", "public Integer getFreeTimes() {\r\n return freeTimes;\r\n }", "int time()\n\t{\n\t\treturn totalTick;\n\t}", "public int getNumAlive() {\n return numAlive;\n }", "public int getStateOfMovement(){ return stateOfMovement; }", "private void addIdleUsage() {\n final double suspendPowerMaMs = (mTypeBatteryRealtimeUs / 1000) *\n mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND);\n final double idlePowerMaMs = (mTypeBatteryUptimeUs / 1000) *\n mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE);\n final double totalPowerMah = (suspendPowerMaMs + idlePowerMaMs) / (60 * 60 * 1000);\n if (DEBUG && totalPowerMah != 0) {\n Log.d(TAG, \"Suspend: time=\" + (mTypeBatteryRealtimeUs / 1000)\n + \" power=\" + makemAh(suspendPowerMaMs / (60 * 60 * 1000)));\n Log.d(TAG, \"Idle: time=\" + (mTypeBatteryUptimeUs / 1000)\n + \" power=\" + makemAh(idlePowerMaMs / (60 * 60 * 1000)));\n }\n\n if (totalPowerMah != 0) {\n addEntry(BatterySipper.DrainType.IDLE, mTypeBatteryRealtimeUs / 1000, totalPowerMah);\n }\n }", "public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "public void setPassCounter()\r\n {\r\n passCounter++;\r\n\r\n }", "public int getNumMotorCycles() {\r\n\t\treturn numMotorCycles;\r\n\t}", "public int getLife(){\n return lifeTime;\n }", "public void setInactiveCount(int tmp) {\n this.inactiveCount = tmp;\n }", "public int getWalkSpeedInc()\n{\n return walkSpeedInc;\n}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public int getCounter() {\nreturn this.counter;\n}", "public int getLiveCount() {\n return liveCount;\n }", "public ConnectionCount(int counter) {\nthis.counter = counter;\n}", "public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }", "void alive() { this.alive = true; }", "Long getRunningCount();", "public void incrementRefusals() {\n\t}", "public int GetResends() { return resends; }", "public Person(){\n instanceCounter++;\n localCounter++;\n }", "public long getRunning() { return running; }", "public int getKillCount(){\n return killCount;\n }", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "public Timer()\n {\n // initialise instance variables\n startTime = 0;\n bonusTime = 0;\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "Bicycle(){\n\t\tthis.wheels=2;\n\t}", "public int getInactiveCount() {\n return inactiveCount;\n }", "public static int getCounter() {return counter;}", "long getSpinCount();", "public long getStarted () {\n\treturn started;\n }", "public Counter() {\r\n value = 0;\r\n }", "static UINT32 update_cycle_counting(void)\n\t{\n\t\tUINT32 count = (activecpu_gettotalcycles64() - mips3.count_zero_time) / 2;\n\t\tUINT32 compare = mips3.cpr[0][COP0_Compare];\n\t\tUINT32 cyclesleft = compare - count;\n\t\tdouble newtime;\n\t\n\t//printf(\"Update: count=%08X compare=%08X delta=%08X SR=%08X time=%f\\n\", count, compare, cyclesleft, (UINT32)SR, TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu()));\n\t\n\t\t/* modify the timer to go off */\n\t\tnewtime = TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu());\n\t\tif (SR & 0x8000)\n\t\t\ttimer_adjust(mips3.compare_int_timer, newtime, cpu_getactivecpu(), 0);\n\t\telse\n\t\t\ttimer_adjust(mips3.compare_int_timer, TIME_NEVER, cpu_getactivecpu(), 0);\n\t\treturn count;\n\t}", "public void setBoostExpiration(){\r\n\t\tboostExpiration = GameController.getTimer() + 1000000000l * length;\r\n\t}", "protected synchronized int getResistivity() { return resistivity; }", "public int getThreadUsed();", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "public String getExecutionCycles() {\n return _executionCycles;\n }", "public static void performanceCountReset() { }" ]
[ "0.6913379", "0.6672096", "0.6637535", "0.6573881", "0.65304166", "0.6429389", "0.6429389", "0.6296111", "0.62880147", "0.62507164", "0.61995983", "0.6074229", "0.6058087", "0.6016773", "0.5933133", "0.5931446", "0.5930882", "0.58933175", "0.58002234", "0.57885736", "0.5771204", "0.5753222", "0.573056", "0.57231706", "0.5703785", "0.56824225", "0.567215", "0.5663399", "0.56403667", "0.56361693", "0.5632215", "0.56319547", "0.56262094", "0.5617749", "0.56022716", "0.55995816", "0.5581585", "0.5581261", "0.55653316", "0.5559125", "0.5559125", "0.5557972", "0.55538213", "0.55496866", "0.55492145", "0.55362743", "0.5533484", "0.5531419", "0.55311304", "0.5528988", "0.5522558", "0.55136704", "0.55110526", "0.55104005", "0.5507042", "0.5505206", "0.54953474", "0.54933876", "0.54826003", "0.54821515", "0.54769397", "0.54769146", "0.5474257", "0.54609025", "0.5454304", "0.5453192", "0.54512054", "0.54427266", "0.5439086", "0.54325974", "0.5428352", "0.5422395", "0.54222256", "0.5421248", "0.5420545", "0.54204744", "0.5414639", "0.5413674", "0.5412678", "0.5411235", "0.5407497", "0.54058576", "0.54040086", "0.54009897", "0.54002845", "0.53983325", "0.53949976", "0.5394642", "0.5388188", "0.538685", "0.53862566", "0.5386158", "0.5384958", "0.537703", "0.5370864", "0.53665984", "0.5361826", "0.5361803", "0.53607076", "0.5357073" ]
0.5716198
24
This thread is constantly polling because a sleeping process cannot be interrupted. Can have a thread wait on a timeout and be notified with each command, but is probbaly more context switches than just sleeping for some period.
public void run() { activityStartTimestamp = startTimestamp + lastCommandTimestamp; // System.out.println("Session started"); ActivitySessionStarted.newCase(this, activityStartTimestamp); // Date startDate = new Date(); // make this global also startDate = new Date(); // make this global also // Date endDate = new Date(); // in case we get no more commands or we terminate early // int idleCycles = 0; // make this a global so eclipse termination can access it // make this global also endDate = new Date(); // in case we get no more commands or we terminate early idleCycles = 0; // make this a global so eclipse termination can access it while(idleCycles < IDLE_CYCLES_THRESHOLD) { // while(idleCycles < 10) { idleLastCycle = true; try { // Thread.sleep(/*60 * */ 1000); // why is 60 removed? Thread.sleep(IDLE_CYCLE_GRANULARITY); // why is 60 removed? } catch (Exception ex) {} if(idleLastCycle) { idleCycles++; IdleCycleDetected.newCase(this, startTimestamp + lastCommandTimestamp, idleCycles); } else { endDate = new Date(); // this seems wrong, we have not ended session // actually it is correct as this is ths last cycle in which the session was active // idleCycles = 0; initActivitySession(); } } // Date endDate = new Date(); // current time // // inActivitySession = false; // sessionEnded(startDate, endDate); recordEndSession(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sleep();", "void sleep();", "public void testInterruptedTimedPoll() {\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n assertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS));\n } catch (InterruptedException success){\n }\n }});\n t.start();\n try {\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n }\n catch (InterruptedException ie) {\n\t unexpectedException();\n }\n }", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }", "private void sleepForChannelJoin() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(config.getChannelJoinTimeout());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void timerInterrupt() \n {\n\t\n Machine.interrupt().disable(); //disable\n\n //if waitingQueue is empty, and current time is greater than or equal to the first ThreadWaits, wakeUp time,\n while(!waitingQueue.isEmpty() && (waitingQueue.peek().wakeUp < Machine.timer().getTime()\n || waitingQueue.peek().wakeUp == Machine.timer().getTime())) {\n waitingQueue.poll().thread.ready(); //pop head\n }\n\n KThread.currentThread().yield();\n\n Machine.interrupt().enable(); //enable\n\n }", "public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}", "private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\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 static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "public void testFairInterruptedTimedPoll() {\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n SynchronousQueue q = new SynchronousQueue(true);\n assertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS));\n } catch (InterruptedException success){\n }\n }});\n t.start();\n try {\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n }\n catch (InterruptedException ie) {\n\t unexpectedException();\n }\n }", "private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }", "public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "T poll( int timeout, TimeUnit timeUnit )\n throws InterruptedException;", "public void run() {\n\ttimedOut = false;\n\tlong startTime = new Date().getTime();\n\tlong delta = 0;\n\twhile (delta < interval) {\n\t try {\n\t\tThread.sleep(interval - delta);\n\t } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n\t\treturn;\n\t }\n\t delta = new Date().getTime() - startTime;\n\t}\n\ttimedOut = true;\n\ttimeoutHandler.handleTimeout();\n\treturn;\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\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}", "@Override\n\tpublic void sleep() {\n\t\t((Application) application()).unlockEC();\n\t\tsuper.sleep();\n\t}", "void sleep ();", "private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void sleep()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tsleep(dauer);\n\t\t\tt.interrupt();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}", "private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }", "@Override public void run() {\r\n\t\t\ttry {\r\n\t\t\t\twhile (!stopped) {\r\n\t\t\t\t\tThread.sleep(delay);\r\n\t\t\t\t\tif (!stopped) {\r\n\t\t\t\t\t\tflush();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (final InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t}", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void sleeps() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep((long) time);\r\n\t\t\t\t\tleftOff();\r\n\t\t\t\t\tif(unhook)\r\n\t\t\t\t\t\tunhookLEDs();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t}", "private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}", "private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\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 sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}", "void waitForSuspend(int timeout, int period) throws NotConnectedException\n\t{\n\t\twhile(timeout > 0)\n\t\t{\n\t\t\t// dump our events to the console while we are waiting.\n\t\t\tprocessEvents();\n\t\t\tif (m_session.isSuspended())\n\t\t\t\tbreak;\n\n\t\t\ttry { Thread.sleep(period); } catch(InterruptedException ie) {}\n\t\t\ttimeout -= period;\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep((long) time);\r\n\t\t\t\t\trightOff();\r\n\t\t\t\t\tif(unhook)\r\n\t\t\t\t\t\tunhookLEDs();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t}", "public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}", "public void timerInterrupt() {\n \tboolean istr = Machine.interrupt().disable();\n \t\n \twhile (sleepingThreads.size()>0 && sleepingThreads.peek().time <= Machine.timer().getTime()) {\n \t\tsleepingThreads.remove().ready();\n \t}\n \n \tKThread.yield();\n \t\n \t//Machine.interrupt().enable();\n \tMachine.interrupt().restore(istr);\n \n }", "private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}", "private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}", "private static void interruptWithException () {\n\n Thread thread = new Thread(() -> {\n try {\n System.out.println(\"start sleeping ...\");\n Thread.sleep(5000000);\n } catch (InterruptedException e) {\n System.out.println(\"interrupted from outside !\");\n }\n });\n\n thread.start();\n }", "public void waitForNextTick() throws InterruptedException {\n Thread.sleep(timeoutPeriod);\n }", "@Override\n\tpublic void run() {\n\t\twhile(!Thread.currentThread().isInterrupted()){\n\t\t\ttry{\n\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t\tcatch(InterruptedException e){\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t\t\n\t\t\tpostInvalidate();\n\t\t}\n\t}", "public void waitUntil(long x) {\n\n\tlong wakeTime = Machine.timer().getTime() + x;\n\tboolean intrState = Machine.interrupt().disable();\n\tKThread.currentThread().time = wakeTime;\n\tsleepingThreads.add(KThread.currentThread());\n\tKThread.currentThread().sleep();\n Machine.interrupt().restore(intrState);\n \n }", "private void requestThread() {\n while (true) {\n long elapsedMillis = System.currentTimeMillis() - lastHeartbeatTime;\n long remainingMillis = heartbeatMillis - elapsedMillis;\n if (remainingMillis <= 0) {\n sendHeartbeats();\n } else {\n try {\n Thread.sleep(Math.max(remainingMillis, 3));\n } catch (InterruptedException e) {\n }\n }\n }\n }", "public void run(){\n long startTime = System.nanoTime();\n long elapsedTime = System.nanoTime() - startTime;\n while(elapsedTime<500000000 && p.acknowledged == false){\n //echo(\"Waiting\");\n elapsedTime = System.nanoTime() - startTime;\n if(p.acknowledged == true){\n return;\n }\n }\n if(elapsedTime>= 500000000)\n {\n p.timed = true;\n //System.out.println(\"thread timed out at packet \"+ p.getSeq());\n for(int i=p.getSeq(); i<p.getSeq()+window; i++){\n if(i<packets.size()){\n packets.get(i).sent = false;\n }\n }\n //p.sent = false;\n }\n\n\n }", "private void monitoringWithTenSecondsLate() throws InterruptedException {\n WatchKey watchKey = null;\n while (true) {\n try {\n //poll everything every 10 seconds\n watchKey = watchService.poll(10, TimeUnit.SECONDS);\n for (WatchEvent<?> watchEvent : watchKey.pollEvents()) {\n WatchEvent.Kind<?> kind = watchEvent.kind();\n System.out.println(\"Event occured for \" + watchEvent.context().toString() + \" \" + kind.toString());\n }\n } catch (InterruptedException ex) {\n Logger.getLogger(WatchServiceExample10SecondsLate.class.getName()).log(Level.SEVERE, null, ex);\n }\n //don't reset watch key for 10 seconds\n Thread.sleep(10000);\n boolean reset = watchKey.reset();\n if (!reset) {\n break;\n }\n }\n }", "protected void sleep() {\n\t\tSystem.out.println(\"human sleep\");\n\t}", "private void sleepByScheduleTime() throws InterruptedException\n\t{\n\t\tjava.util.Calendar calendar = java.util.Calendar.getInstance();\n\t\tcalendar.setTime(new java.util.Date(System.currentTimeMillis()));\n\t\tint currHour = calendar.get(calendar.HOUR_OF_DAY);\n\t\tif ((24 - currHour) * 60 < 2 * FtpData.SCHEDULE_TIME)\n\t\t{\n\t\t\tsleep((FtpData.SCHEDULE_TIME + 1) * 60000); // 00h:01\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsleep(FtpData.SCHEDULE_TIME * 60000); // n * minutes;\n\t\t}\n\t}", "public static void sleep1 () throws InterruptedException {\n\n // throws is cheaper way to get rid of exception\n Thread.sleep(2000);\n\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tfor(int i=1; i<10; i++) {\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t\tThread.sleep(50);\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\twhile(suspended) {\n\t\t\t\t\t\twait();\n\t\t\t\t\t\tif(stopped) {\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\t\t}catch (InterruptedException e) {\n\t\t\tSystem.out.println(thd.getName() + \" interrupted.\");\n\t\t}\n\t\tSystem.out.println(\"\\n\" + thd.getName() + \" exiting.\");\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep((long) time);\r\n\t\t\t\t\tallOff();\r\n\t\t\t\t\tif(unhook)\r\n\t\t\t\t\t\tunhookLEDs();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\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 Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }", "public void sleep() throws InterruptedException, IllegalArgumentException, Time.Ex_TimeNotAvailable, Time.Ex_TooLate\n {\n // The current time.\n AbsTime now;\n // The duration to wait.\n RelTime duration;\n\n // Make error if NEVER.\n if (isNEVER()) {\n throw new IllegalArgumentException(\"this == NEVER\");\n }\n\n // Don't do anything if ASAP.\n if (!isASAP()) {\n\n // Calculate the time now.\n now = new AbsTime();\n\n // Figure out how long to wait for.\n duration = Time.diff(this, now);\n\n // If duration is negative, throw the Ex_TooLate exception.\n if (duration.getValue() < 0L) {\n throw new Time.Ex_TooLate();\n }\n\n // Do the wait.\n duration.sleep();\n }\n }", "private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}", "public void timerInterrupt() {\n\n\t\tMachine.interrupt().disable();\n\n\t\t//while loop the threads in the TreeSet\n\t\twhile(!theThreads.isEmpty()) {\n\t\t\tPair curr_thread = theThreads.first(); //Fetch the first (lowest wakeTime) on the list\n\n\t\t\tif(curr_thread.wakeTime < Machine.timer().getTime()) { //Is the wakeTime for that thread < current time\n\t\t\t\ttheThreads.pollFirst(); //Remove it from the TreeSet, curr_thread holds it still.\n\t\t\t\tcurr_thread.thread.ready(); //Ready that thread\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak; //break the loop, not ready yet.\n\t\t\t}\n\t\t}\n\t\tMachine.interrupt().enable();\n\t\tKThread.yield(); //Yield the current thread.\n\t}", "public void testTimedCallable() throws Exception {\n final ExecutorService[] executors = {\n Executors.newSingleThreadExecutor(),\n Executors.newCachedThreadPool(),\n Executors.newFixedThreadPool(2),\n Executors.newScheduledThreadPool(2),\n };\n\n final Runnable sleeper = new CheckedInterruptedRunnable() {\n public void realRun() throws InterruptedException {\n delay(LONG_DELAY_MS);\n }};\n\n List<Thread> threads = new ArrayList<Thread>();\n for (final ExecutorService executor : executors) {\n threads.add(newStartedThread(new CheckedRunnable() {\n public void realRun() {\n Future future = executor.submit(sleeper);\n assertFutureTimesOut(future);\n }}));\n }\n for (Thread thread : threads)\n awaitTermination(thread);\n for (ExecutorService executor : executors)\n joinPool(executor);\n }", "private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }", "@Override\n public void run() {\n try {\n sleep(duration);\n } catch(InterruptedException e) {\n System.out.println(getName() + \" was interrupted. isInterrupted(): \" + isInterrupted());\n return;\n }\n System.out.println(getName() + \" has awakened\");\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(mActivityPauseFlag != 1)\n\t\t\t\t{\n\n\t\t\t\t\tint mins = getSleepTimeValue();\n\t\t\t\t\tmSleepTimeHour = mins / 60;\n\t\t\t\t\tmSleepTimeMin = mins % 60;\n\t\t\t\t\t\n\t\t\t\t\tif(quickmenu.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\thandler.sendEmptyMessage(MSG_REFRESH_TIMER);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "@Override\n\tpublic void run() {\n\t\tString pingPeriodSeconds = this.getString(R.string.ping_period_seconds);\n\t\tlong time = Long.valueOf(pingPeriodSeconds).longValue() * 1000;\n\n//\t\tString msg = this.getString(R.string.ping_message);\n\t\t\n\t\twhile (true) {\n\n//\t\t\tChat.sendMessage(this, msg, this.to, this.from);\n\t \n\t\t\ttry {\n\t\t\t\tThread.sleep(time);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// Assume interruption means end of app.\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tleave = false;\n\t\t\t\t}", "@Override\n\tpublic void run() {\n\t\twhile(running) {\n\t\t\ttry {\n\t\t\t\tsend(SseEmitter.event().comment(\"ping\"));\n\t\t\t\tThread.sleep(30000L);\n\t\t\t} catch (IOException e) {\n\t\t\t\tgestioneDisconnessione(e);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tgestioneDisconnessione(e);\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tLOG.error(e.toString());\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic synchronized void run() {\n\t\tlong secElapsed;\r\n\t\t//long startTime = System.currentTimeMillis();\r\n\t\tlong start= System.currentTimeMillis();;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tTimeUnit.SECONDS.sleep(1);\r\n\t\t\t} catch (InterruptedException 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\r\n\t\t\tlong timeElapsed = System.currentTimeMillis() - start;\r\n\t\t\tsecElapsed = timeElapsed / 1000;\r\n\t\t\tif(secElapsed==10) {\r\n\t\t\t\tstart=System.currentTimeMillis();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Time -> 00:\"+secElapsed);\r\n\t\t}while(secElapsed<=10);\r\n\t\t\r\n\t}", "public Integer threadDelay();", "@Override\n\tpublic void run() {\n\n\t\twhile (running.get()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Shutting down thread\");\n\t}", "void await() throws InterruptedException\n {\n while (streams.containsKey(context))\n Thread.sleep(10);\n }", "boolean awaitMessages(long timeout) throws InterruptedException;", "public void waitUntil(long x){\n\n Machine.interrupt().disable(); //disable interrupts\n\n\t long wakeTime; \n wakeTime = Machine.timer().getTime() ;\n wakeTime = wakeTime + x; //calculate wakeTime\n\n //pass through wakeTime and current thread as instance variables for a\n ThreadWait a;\n a = new ThreadWait(wakeTime, KThread.currentThread());\n\n waitingQueue.add(a); //add a to the waitingQueue \n\n KThread.currentThread().sleep(); //sleep current thread\n\n Machine.interrupt().enable(); //enable interrupts\n }", "private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }", "public void testSleep() {\n System.out.println(\"sleep\");\n long thinkTime = 0L;\n IOUtil.sleep(thinkTime);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void pause() throws InterruptedException \n\t{\n\t\tThread.sleep(4000);\t\t\t\n\t\t\n\t}", "@Override\n public void sleep() {\n System.out.println(\"Zzz...\");\n }", "public static void sleepForTwoSec() throws InterruptedException {\n Thread.sleep(2000);\n }", "public void pause(){\r\n isRunning = false;\r\n while (true){\r\n try{\r\n ourThread.join();\r\n\r\n\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n break;\r\n }\r\n\r\n ourThread = null;\r\n\r\n }", "public interface Sleepable\n{\n\tvoid sleep();\n}", "private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }", "private long sleepForRandomAmountOfTime() throws InterruptedException {\n final long backOffMillis = zeroTo(MAX_BACK_OFF_MILLIS);\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Backing off for \" + backOffMillis + \"ms\");\n }\n Thread.sleep(backOffMillis);\n return backOffMillis;\n }", "public void sleepy(long ms)\n\t{\n\t\ttry {\n\t\t\tsleep(ms);\n\t\t} catch(InterruptedException e) {}\n\t}", "public void testTimedPoll() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n assertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS));\n } catch (InterruptedException e){\n\t unexpectedException();\n\t}\n }", "@Override\n public void run() {\n try {\n sleep(1000);\n if (spaces.isAlive() || words.isAlive()) {\n spaces.interrupt();\n words.interrupt();\n }\n } catch (InterruptedException e) {\n System.out.println(\"Calulation takes to long, interrupting!\");\n }\n }", "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }", "@Override\n\tpublic boolean isSleeping() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(3000);\r\n\t\t\t\tSystem.out.println(\"자동저장\");\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "void awaitNanos(final long timeout) throws InterruptedException;", "public void sleep(){\n System.out.println(\"Human Sleeps\");\n }", "public void delay(long waitAmount){\r\n long time = System.currentTimeMillis();\r\n while ((time+waitAmount)>=System.currentTimeMillis()){ \r\n //nothing\r\n }\r\n }", "public void sleep(){\n\n System.out.println(\"ZZZZZZZZZ bubble bubble bubble\");\n }", "private void selectLoop() {\n \t\tlong timeout = 0; // wait indefinitely\n \t\n \t\tregisterPending();\n \t\n \t\twhile (!Thread.interrupted()) {\n \t\t\tif (contextMap.isEmpty() && currentlyOpenSockets.get() == 0 && currentlyConnectingSockets.get() == 0) {\n \t\t\t\tassert logger != null;\n \t\t\t\tlogger.debug(\"SocketEngineService clean\");\n \t\t\t\ttimeout = 0;\n \t\t\t} else {\n\t\t\t\t//XXX remove\n//\t\t\t\tlogger.debug(\"active contexts: \"+contextMap.size()+\" selection keys: \"+selector.keys().size());\n//\t\t\t\tlogger.debug(\"open sockets: \"+currentlyOpenSockets.get()+\" connecting sockets: \"+currentlyConnectingSockets.get());\n \t\t\t\ttimeout = Math.max(timeout, 500); // XXX\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tselector.select(timeout);\n \t\t\t\tassert selector != null;\n \t\t\t\tif (selector.isOpen() == false) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t} catch (IOException e) {\n \t\t\t\tassert logger != null;\n \t\t\t\tlogger.error(\"I/O error in Selector#select()\", e);\n \t\t\t\treturn;\n \t\t\t}\n \t\t\t\n \t\t\tregisterPending();\n \n \t\t\tfor (SelectionKey key : selector.selectedKeys()) {\n \t\t\t\tSelectionContext context = (SelectionContext)key.attachment();\n \t\t\t\ttry {\n \t\t\t\t\tcontext.testKey(key);\n \t\t\t\t} catch (CancelledKeyException e) {\n \t\t\t\t\t// a selected key is cancelled\n\t\t\t\t\t// XXX remove\n//\t\t\t\t\tlogger.warning(\"Cancelled selector key (on selected key)\", e);\n \t\t\t\t\t// do something about it\n \t\t\t\t\tcontext.close();\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tlong now = System.currentTimeMillis();\n \t\t\ttimeout = Long.MAX_VALUE;\n \t\t\tfor (SelectionKey key : selector.keys()) {\n \t\t\t\tSelectionContext context = (SelectionContext)key.attachment();\n \t\t\t\ttry {\n \t\t\t\t\ttimeout = Math.min(timeout, context.testTimeOut(key, now));\n \t\t\t\t} catch (CancelledKeyException e) {\n\t\t\t\t\t//XXX remove\n//\t\t\t\t\tlogger.warning(\"Cancelled selector key (when testing timeout of unselected key)\", e);\n \t\t\t\t\t// do something about it. should close?\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (timeout == Long.MAX_VALUE) timeout = 0; // 0 means wait indefinitely\n \t\t}\n \t}", "public static void sleep(long ms) {\n try {\n Logger.trace(\"Sleeping for {} ms\", ms);\n Thread.sleep(ms);\n } catch (InterruptedException e) { // NOSONAR squid:S2142\n Logger.warn(\"Interrupted while sleeping for {} ms: {}\", ms, e.getMessage());\n Thread.currentThread().interrupt();\n }\n }", "private void startrun() {\n mHandler.postDelayed(mPollTask, POLL_INTERVAL);\n\t}", "public static void sleepUninterruptibly(int millis){\n long remaining = millis;\n long end = System.currentTimeMillis() + remaining;\n boolean interrupted = false;\n try {\n do {\n try {\n Thread.sleep(remaining);\n return;\n } catch (InterruptedException e) {\n interrupted = true;\n long now = System.currentTimeMillis();\n remaining = end - now;\n }\n } while (true);\n }finally {\n if (interrupted) {\n Thread.currentThread().interrupt();\n }\n }\n }", "public void waitForTick(long periodMs) throws InterruptedException {\n\n long remaining = periodMs - (long)period.milliseconds();\n\n // sleep for the remaining portion of the regular cycle period.\n if (remaining > 0)\n Thread.sleep(remaining);\n\n // Reset the cycle clock for the next pass.\n period.reset();\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(bLinked &&!isExit()){\r\n\t\t\t\tLog.d(\"123\", \"set heart beat threadid:\"+Thread.currentThread().getId());\r\n\t\t\t\tjni.talkSetHeartBeat();\r\n\t\t\t\tif(jni.talkGetRegisterState()!=1 ){\r\n\t\t\t\t\tLog.e(\"123\", \"心跳停止了\");\r\n\t\t\t\t\tbLinked = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbLinked = true;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(interval*1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!bLinked){\r\n\t\t\t\thandler.sendEmptyMessage(MSG_NOT_LINK);\r\n\t\t\t}\r\n\t\t\theartThread = null;\r\n\t\t\tsuper.run();\r\n\t\t}", "@Override\n\tpublic void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}", "@Override\r\n\tpublic void run() {\n\t\tstartFlag = true;\r\n\t\twhile (startFlag) {\r\n \t\ttry {\r\n \t\t\tThread.sleep(updateRate);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\tSystem.out.println(e.getMessage());\r\n \t\t}catch (RuntimeException e) {\r\n\t\t\t\t//System.out.print(e.getMessage());\r\n\t\t\t}\r\n \t} \t\t\r\n\t}", "public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }", "public void run() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t// print the name of the thread\n\t\t\tSystem.out.println(t.getName() + \" \" + i);\n\n\t\t\t// The thread can be awakened while sleeping\n\t\t\t// use a try block to handle the possibility\n\t\t\ttry {\n\t\t\t\tThread.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.out.println(t.getName() + \" is awake\");\n\t\t\t}\n\t\t}\n\t}", "private Sleep(Duration duration) {\n this.duration = duration;\n }" ]
[ "0.62623227", "0.62623227", "0.6122593", "0.61176205", "0.60975695", "0.6086605", "0.60747516", "0.60713285", "0.6070835", "0.6049038", "0.60452276", "0.6029674", "0.60264856", "0.60228205", "0.596702", "0.5966006", "0.5933831", "0.59323806", "0.592779", "0.59255", "0.5917372", "0.59133285", "0.5903597", "0.5900569", "0.5894093", "0.58812237", "0.5880784", "0.58718693", "0.585987", "0.5850558", "0.5832056", "0.58203596", "0.5810351", "0.58084464", "0.58019286", "0.579418", "0.57798314", "0.5776503", "0.5755585", "0.57455665", "0.57394636", "0.57270217", "0.56998473", "0.56948656", "0.5693248", "0.5681327", "0.5679909", "0.56677896", "0.5659629", "0.5649428", "0.5642552", "0.56260914", "0.56030655", "0.55997014", "0.55978584", "0.5590957", "0.5589294", "0.5579763", "0.5577473", "0.5576646", "0.5574295", "0.55727047", "0.557257", "0.55701834", "0.5569165", "0.5557312", "0.5540322", "0.5536456", "0.5532821", "0.55322194", "0.55310374", "0.5530628", "0.5515401", "0.54950243", "0.548429", "0.5482447", "0.54695415", "0.5459451", "0.5458643", "0.5440923", "0.543621", "0.5426174", "0.5426174", "0.54232377", "0.5422055", "0.5417184", "0.5409569", "0.5408424", "0.54047686", "0.5396519", "0.53902525", "0.5384329", "0.53841656", "0.5370585", "0.537033", "0.5369659", "0.5360817", "0.53596914", "0.53588754", "0.5358645", "0.53468436" ]
0.0
-1
Date endDate = new Date(); // current time
public void recordEndSession() { inActivitySession = false; activityEndTimestamp = startTimestamp + lastCommandTimestamp; long ativityDuration = activityEndTimestamp - activityStartTimestamp; ActivitySessionEnded.newCase(this, activityEndTimestamp, ativityDuration); Date aStartDate = new Date(activityStartTimestamp); Date anEndDate = new Date (activityEndTimestamp); System.out.println("Start dates:" + aStartDate + "," + startDate); System.out.println("End dates:" + anEndDate + "," + endDate); sessionEnded(startDate, endDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getEndTimeDate() {\n return endTimeDate;\n }", "public abstract Date getEndTime();", "Date getEndDate();", "Date getEndDate();", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate();", "public Date getEndDate();", "@Override\n public Date getEndTime() {\n return endTime;\n }", "public java.util.Date getEndTime() {\n return endTime;\n }", "public Calendar getEndDate() {\n\t\tCalendar cal = Calendar.getInstance();\n \t\tcal.setTimeInMillis(startTime);\n \t\t\n\t\treturn cal;\n\t}", "public Date getEndTime() {\r\n return this.endTime;\r\n }", "public Date getEndTime() {\n return this.endTime;\n }", "public Date getEndtime() {\n return endtime;\n }", "public Date getEndTime() {\n\t\treturn endTime;\n\t}", "long getEndDate();", "long getEndDate();", "public java.util.Date getEndTime() {\n return this.endTime;\n }", "public java.util.Date getEndTime() {\n return this.endTime;\n }", "long getEndTime() {\n return endTime;\n }", "public LocalDateTime getEndDate() {\n return endDate;\n }", "public String getEndTime(){return endTime;}", "public void setEndTime(Date endTime) {\r\n this.endTime = endTime;\r\n }", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "protected Date getCurrentDateAndTime() {\n\t\tDate date = new Date();\n\t\tDate updatedDate = new Date((date.getTime() + (1000 * 60 * 60 * 24)));//(1000 * 60 * 60 * 24)=24 hrs. **** 120060 = 2 mins\n\t\treturn updatedDate;\n\t}", "int getEndTime();", "int getEndTime();", "int getEndTime();", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "java.util.Calendar getEndTime();", "public LocalDateTime getEndDate();", "Date getEndDay();", "public String getEndDate() {\n return endDate;\n }", "Date getLastTime();", "public java.sql.Date getEndDate() {\n\treturn endDate;\n}", "public abstract void setEndTime(Date endTime);", "void setEndDate(Date endDate);", "public Date getEnddate() {\r\n return enddate;\r\n }", "public void setEndTime( Date endTime ) {\n this.endTime = endTime;\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "public long getEndDate() {\n return endDate_;\n }", "public long getEndDate() {\n return endDate_;\n }", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "public Date getEND_DATE() {\n return END_DATE;\n }", "public java.util.Date getEndDate () {\r\n\t\treturn endDate;\r\n\t}", "Date getEndedOn();", "public double getEndTime() {\n return endTime;\n }", "public String endTime(){\r\n\t\tsaleEnded = Calendar.getInstance().getTime();\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\r\n\t\tString endTime = dateFormat.format(time);\r\n\t\treturn endTime;\r\n\t}", "public long getEndDate() {\n return endDate_;\n }", "public void setEndTime(Date endTime) {\n\t\tthis.endTime = endTime;\n\t}", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndTimeDate(Date endTimeDate) {\n this.endTimeDate = endTimeDate;\n }", "public String getEndDate();", "public Date getEndTimestamp() {\r\n return endTimestamp;\r\n }", "public long getEndDate() {\n return endDate_;\n }", "public long getEndTime() {\r\n return endTime;\r\n }", "public long getEndTime() {\n return endTime;\n }", "public long getEndTime() {\n return endTime;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndtime(Date endtime) {\n this.endtime = endtime;\n }", "void setEndTime(Time endTime) {\n this.endTime = endTime;\n }", "public String getEndTime() {\n return endTime;\n }", "Instant getEnd();", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "String getEndDate();", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "public Long getEndDate() {\n\t\treturn endDate;\n\t}", "public LocalDateTime getEndTime() {\n\t\treturn endTime;\n\t}", "public String getEndTime();", "public String getEndTime();", "public CurrentDate getCurrentDate() { \n return mCurrentDate; \n }", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "public Date get_end() {\n\t\treturn this.end;\n\t}", "public abstract Date getStartTime();", "public java.util.Calendar getEndDate() {\n return endDate;\n }", "public java.sql.Date getREQ_END_DATE()\n {\n \n return __REQ_END_DATE;\n }", "public TimeDateComponents getEventEndDate() {\n return getEventDates().getEndDate();\n }", "public LocalTime getEnd() {\n\treturn end;\n }", "private Date getCurrentDateTime() {\n return Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant());\n }", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "public long getEnd_time() {\n return end_time;\n }", "public abstract long getEndTimestamp();", "public Date getTenderEndTime() {\n return tenderEndTime;\n }", "public Calendar getEndTime() {\r\n\t\treturn endTime;\r\n\t}" ]
[ "0.7103055", "0.7086208", "0.69465756", "0.69465756", "0.69163543", "0.69163543", "0.69163543", "0.6872843", "0.6872843", "0.6872843", "0.6872843", "0.68654346", "0.68654346", "0.68559194", "0.68559194", "0.6822423", "0.67939645", "0.6761343", "0.67452407", "0.6697186", "0.66885704", "0.665255", "0.6620738", "0.6620738", "0.66175634", "0.66175634", "0.660703", "0.6603501", "0.65843266", "0.6573002", "0.657041", "0.657041", "0.6564298", "0.65434504", "0.65434504", "0.65434504", "0.6532415", "0.6513803", "0.6513803", "0.6513803", "0.6513803", "0.6509252", "0.6507155", "0.65066576", "0.648655", "0.64837", "0.64808977", "0.647351", "0.6472771", "0.64321274", "0.6430704", "0.6420766", "0.6412928", "0.6409342", "0.63817644", "0.63815725", "0.6378479", "0.63599294", "0.6356242", "0.6353311", "0.6326207", "0.63217604", "0.631908", "0.631908", "0.63107526", "0.63075763", "0.62911874", "0.6290819", "0.62758815", "0.62666553", "0.62666553", "0.6262598", "0.6262598", "0.6262598", "0.625521", "0.6249215", "0.6248562", "0.6237601", "0.6234862", "0.6234862", "0.6234862", "0.6232555", "0.6222077", "0.621388", "0.6196722", "0.6183257", "0.6183257", "0.61791354", "0.61737835", "0.61730707", "0.6170663", "0.6170126", "0.61584604", "0.6153166", "0.61501366", "0.6146272", "0.61258924", "0.6124167", "0.61224264", "0.6116081", "0.611537" ]
0.0
-1
TODO Autogenerated method stub
@Override public void timestampReset(long aStartTimestamp) { }
{ "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
/ Called when the scheduler initializes commands
protected void initialize() { // set the target for the PID subsystem Robot.minipidSubsystem.setSetpoint(90); // set the minimum and maximum output limits for the PID subsystem Robot.minipidSubsystem.setOutputLimits(-80, 80); // Disable safety checks on drive subsystem Robot.driveSubsystem.robotDrive.setSafetyEnabled(false); Robot.camera.setBrightness(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void scheduler_init();", "public void robotInit() {\n\t\toi = new OI();\n // instantiate the command used for the autonomous period\n }", "protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}", "@Override\n protected void initialize() {\n System.out.println(\"CargoWheelSuckOrSpitCommand init\");\n _timer.reset();\n _timer.start();\n }", "public void initDefaultCommand() {\n \n }", "public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}", "public void initDefaultCommand() \n {\n }", "@Override\n\tpublic void teleopInit() {\n\n\t\tSystem.out.println(\"Teleop init\");\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tScheduler.getInstance().add(new DriveCommand());\n\n\t\t\n\t}", "public void initDefaultCommand() {\n\t}", "public void initDefaultCommand()\n {\n }", "public void initDefaultCommand()\n\t{\n\t}", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "@Override\n\tpublic void teleopInit() {\n\t\tif (driveTrainCommand != null) {\n\t\t\tdriveTrainCommand.start();\n\t\t}\n\t\tif (colorCommand != null) {\n\t\t\tcolorCommand.start();\n\t\t}\n\t\tif (intakeCommand != null) {\n\t\t\tintakeCommand.start();\n\t\t}\n\t\tif (outtakeCommand != null) {\n\t\t\touttakeCommand.start();\n\t\t}\n\t}", "@Override\n public void autonomousInit() {\n //ds.set(Value.kForward);\n /*m_autonomousCommand = m_chooser.getSelected();\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n * \n */\n\n // schedule the autonomous command (example)\n /*if (m_autonomousCommand != null) {\n m_autonomousCommand.start();\n }*/\n //new VisionProcess().start();\n //SmartDashboard.putNumber(\"heerer\", value)\n new TeleOpCommands().start();\n }", "@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }", "public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }", "protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}", "@Override\n public void initDefaultCommand() \n {\n }", "@Override\n public void initDefaultCommand() {\n\n }", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "protected void initDefaultCommand() {\n \t\t\n \t}", "public void initDefaultCommand() {\n \n }", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public void robotInit()\n\t{\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\t// autonomousCommand = new Driver();\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public static void init(){\r\n CommandBase.magazine.setSpeed(0.0);\r\n CommandBase.loader.setSpeed(0.0);\r\n Init.manualTankDrive.start(); \r\n Init.runCompressor.start();\r\n Init.stopGyroDrift.start();\r\n \r\n }", "private void registerCommands() {\n }", "@Override\n public void autonomousInit() {\n //Diagnostics.writeString(\"State\", \"AUTO\");\n //m_autonomousCommand = m_chooser.getSelected();\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\", \"Default\");\n * switch(autoSelected) { case \"My Auto\": autonomousCommand = new\n * MyAutoCommand(); break; case \"Default Auto\": default: autonomousCommand = new\n * ExampleCommand(); break; }\n */\n\n // schedule the autonomous command (example)\n /*if (m_autonomousCommand != null) {\n m_autonomousCommand.start();\n }*/\n\n teleopInit();\n }", "@Override\n public void autonomousInit() {\n\n Robot.m_driveTrain.driveTrainLeftFrontMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainRightFrontMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainRightRearMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainLeftRearMotor.setSelectedSensorPosition(0);\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n\n // schedule the autonomous command (example)\n }", "@Override\n\tpublic void autonomousInit() {\n\t\tautonomousCommand = new Auto();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}", "public void robotInit()\r\n {\r\n // Initialize all subsystems\r\n CommandBase.init();\r\n // instantiate the command used for the autonomous period\r\n //Initializes triggers\r\n mecanumDriveTrigger = new MechanumDriveTrigger();\r\n tankDriveTrigger = new TankDriveTrigger();\r\n resetGyro = new ResetGyro();\r\n }", "@Override\n public void teleopInit() {\n if (autonomousCommand != null) \n {\n autonomousCommand.cancel();\n }\n\n new ArcadeDrive().start();\n\n new BackElevatorControl().start();\n\n new IntakeControl().start();\n\n new FrontElevatorManual().start();\n\n new ElevatorAutomatic().start();\n }", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }", "@Override\n protected void initializeMacroCommand() {\n \n addSubCommand(new PrepareControllerCommand());\n addSubCommand(new PrepareModelCommand());\n addSubCommand(new PrepareViewCommand());\n \n // Remove the command because it never be called more than once\n // getFacade().removeCommand(ApplicationConstants.STARTUP);\n }", "protected void initialize() {\n \tRobot.telemetry.setAutonomousStatus(\"Starting \" + commandName + \": \" + distance);\n \tRobot.drivetrain.resetEncoder();\n \t\n \tRobot.driveDistancePID.setSetpoint(distance);\n \tRobot.driveDistancePID.setRawTolerance(RobotPreferences.drivetrainTolerance());\n \tRobot.driveDistancePID.enable();\n \t\n \texpireTime = timeSinceInitialized() + (RobotPreferences.timeOut());\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SetPlungerMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "@Override\n\tpublic void autonomousInit() //initialization of the autonomous code\n\t{\n\t\t//m_autonomousCommand = m_chooser.getSelected();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (m_autonomousCommand != null) //if we have any autonomous code, start it\n\t\t{\n\t\t\tm_autonomousCommand.start();\n\t\t}\n\t\tRobotMap.encoderLeft.reset(); //reset the values of the encoder\n\t\tRobotMap.encoderRight.reset(); //reset the values of the encoder\n\t\tultrasonic.getInitialDist(); //if nullPointerException, use \"first\" boolean inside the method and run in periodic()\n\t}", "@Override\r\n protected void initialize() {\n if (getCommandName().equals(COMMAND_NAME)) {\r\n logMessage(getParmDesc() + \" starting\");\r\n }\r\n\r\n driveSubsystem.setSpeed(speed, speed);\r\n }", "public void init() {\r\n reservedCommands.add(\"!addCom\");\r\n reservedCommands.add(\"!editCom\");\r\n reservedCommands.add(\"!delCom\");\r\n reservedCommands.add(\"!commands\");\r\n reservedCommands.add(\"!command\");\r\n reservedCommands.add(\"!utility\");\r\n reservedCommands.add(\"!music\");\r\n reservedCommands.add(\"!queue\");\r\n reservedCommands.add(\"!join\");\r\n reservedCommands.add(\"!leave\");\r\n reservedCommands.add(\"!getPlayers\");\r\n reservedCommands.add(\"!createPoll\");\r\n reservedCommands.add(\"!vote\");\r\n reservedCommands.add(\"!closePoll\");\r\n reservedCommands.add(\"!closeGiveaway\");\r\n reservedCommands.add(\"!raffle\");\r\n reservedCommands.add(\"!winner\");\r\n reservedCommands.add(\"!permit\");\r\n reservedCommands.add(\"!spam\");\r\n reservedCommands.add(\"!addQuote\");\r\n reservedCommands.add(\"!quoting\");\r\n reservedCommands.add(\"!removeQuote\");\r\n reservedCommands.add(\"!displayQuote\");\r\n reservedCommands.add(\"!quotes\");\r\n }", "public void robotInit() {\n\t\toi = OI.getInstance();\r\n\t\t\r\n\t\t// instantiate the command used for the autonomous and teleop period\r\n\t\treadings = new D_SensorReadings();\r\n\t\t// Start pushing values to the SD.\r\n\t\treadings.start();\r\n\t\t//Gets the single instances of driver and operator, from OI. \r\n\t\tdriver = oi.getDriver();\r\n\t\toperator = oi.getOperator();\r\n\r\n\t\t//Sets our default auto to NoAuto, if the remainder of our code doesn't seem to work. \r\n\t\tauto = new G_NoAuto();\r\n\t\t\r\n\t\t//Sets our teleop commandGroup to T_TeleopGroup, which contains Kaj,ELevator, Intake, and Crossbow Commands. \r\n\t\tteleop = new T_TeleopGroup();\r\n\t\t\r\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.start();\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\t//SmartDashboard.getData(\"Driver File\");\n\t\t//SmartDashboard.getData(\"Operator File\");\n\t\tautonomousCommand = chooser.getSelected();\n\t\tisAutonomous = true;\n\t\tisTeleoperated = false;\n\t\tisEnabled = true;\n\t\tRobot.numToSend = 3;\n\t\tdrivebase.resetGyro();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tRobot.gearManipulator.gearManipulatorPivot.setPosition(0);\n\t\tRobot.gearManipulator.gearManipulatorPivot.setSetpoint(0);\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "@Override\n\tpublic void teleopInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.cancel();\n\t}", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }", "public void autonomousInit() {\n\t\ttimer.start();\n\t\tautonomousCommand = autoChooser.getSelected();\n\t\t//This outputs what we've chosen in the SmartDashboard as a string.\n\t\tSystem.out.println(autonomousCommand);\n\t\tif (DriverStation.getInstance().isFMSAttached()) {\n\t\t\tgameData = DriverStation.getInstance().getGameSpecificMessage();\n\t\t}\n\t\telse {\n\t\t\tgameData=\"RLR\";\n\t\t}\n\t\t//armSwing.setAngle(90); //hopefully this will swing the arms down. not sure what angle it wants though\n\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "public static void initializeDefaultCommands()\n {\n m_chassis.setDefaultCommand(m_inlineCommands.m_driveWithJoystick);\n // m_intake.setDefaultCommand(null);\n m_chamber.setDefaultCommand(new ChamberIndexBalls());\n // m_launcher.setDefaultCommand(null);\n // m_climber.setDefaultCommand(null);\n // m_controlPanel.setDefaultCommand(null);\n }", "public void robotInit() {\n \tboardSubsystem = new BoardSubsystem();\n }", "@Override\n\tpublic void teleopInit() {\n\t\tservoCIMCommand.start();\n\t\tmonitorCommand.start();\n\t\twindowCommand.start();\n\t\t\n\t}", "@Override\n public void autonomousInit()\n {\n autonomousCommand = chooser.getSelected();\n \n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n \n // schedule the autonomous command (example)\n if (autonomousCommand != null) \n {\n autonomousCommand.start();\n }\n }", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}" ]
[ "0.7451116", "0.6969035", "0.6950377", "0.69043624", "0.6897571", "0.68861306", "0.68845296", "0.68625647", "0.68056864", "0.68054444", "0.6803853", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.6803105", "0.67973775", "0.67867506", "0.677607", "0.6742953", "0.6736808", "0.6725717", "0.67154", "0.67050326", "0.67011195", "0.6698376", "0.66566217", "0.66566217", "0.6655703", "0.6655703", "0.6655703", "0.6655703", "0.6655703", "0.6655703", "0.6655703", "0.663988", "0.6638817", "0.663231", "0.663231", "0.663231", "0.6629858", "0.66293716", "0.66293716", "0.66293716", "0.66293716", "0.66293716", "0.66293716", "0.65971273", "0.6593878", "0.65848285", "0.65615773", "0.65486014", "0.6530153", "0.6496429", "0.6486268", "0.64795333", "0.6462912", "0.6458872", "0.64434093", "0.6439425", "0.64359426", "0.64312553", "0.6424103", "0.64135355", "0.64121586", "0.63906634", "0.63710076", "0.6368632", "0.63646287", "0.6348496", "0.6338506", "0.6338506", "0.6338506", "0.6338506", "0.6338506", "0.6331001", "0.6328541", "0.63156426", "0.63130784", "0.63116103", "0.6308725" ]
0.0
-1
/ This routine is called by the scheduler on a regular basis so be careful when adding code to not cause blocking issues or delays as this will affect the performance of the robot.
protected void execute() { // Get output from PID and dvide by 4 double output = Robot.minipidSubsystem.getOutput(Robot.gyroSubsystem.GyroPosition(), 90) * 0.25; // limit output to 25% in either direction if (output > 25) output = 25; else if (output < -25) output = -25; // convert output to a value the drive subsystem can use (-1 to 1) output /= 100; // drive the robot, only providing the turn speed Robot.driveSubsystem.robotDrive.arcadeDrive(0, output); // Robot.driveSubsystem.tankDrive(-output, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n\tpublic void robotPeriodic() {\n\t}", "@Override\n\tpublic void robotPeriodic() {\n\t}", "@Override\n public void robotPeriodic() {\n // m_driveTrain.run(gulce);\n\n\n\n // workingSerialCom.StringConverter(ros_string, 2);\n // RoboticArm.run( workingSerialCom.StringConverter(ros_string, 2));\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tRobot.intakeSubsystem._getSpeed();\n\n\t\tRobot.driveSubsystem.operatorOverride();\n\t\tScheduler.getInstance().run();\n\n\t\tTargetRegion boilerTarget = Robot.navigator.getBoilerTarget();\n\t\tif (boilerTarget != null) {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", boilerTarget.m_centerTop);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", boilerTarget.m_bounds.m_top);\n\t\t} else {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", -1);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", -1);\n\t\t}\n\t}", "public void teleopPeriodic() {\n \t//getInstance().run();;\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickRight); //This line drives the robot using the values of the joystick and the motor controllers selected above\n \tScheduler.getInstance().run();\n\t\n }", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n \n // m_driveTrain.driveBase();\n\n // ros_string = workingSerialCom.read();\n // System.out.println(ros_string);\n // gulce = workingSerialCom.StringConverter(ros_string, 1);\n // m_driveTrain.run(gulce);\n // // System.out.println(Robot.m_driveTrain.driveTrainRightFrontMotor.getSelectedSensorVelocity());\n\n // LeftFront = (Robot.m_driveTrain.driveTrainLeftFrontMotor.getSelectedSensorVelocity()*6)/4096;\n // RightFront = (Robot.m_driveTrain.driveTrainRightFrontMotor.getSelectedSensorVelocity()*6)/4096;\n // LeftFront_ros = workingSerialCom.floattosString(LeftFront);\n // RigthFront_ros = workingSerialCom.floattosString(RightFront);\n\n // workingSerialCom.write(\"S\"+LeftFront_ros+\",\"+RigthFront_ros+\"F\"+\"\\n\");\n\n }", "public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n // ros_string = workingSerialCom.read();\n // yavuz = workingSerialCom.StringConverter(ros_string, 2);\n // Inverse.Inverse(yavuz);\n\n // JoystickDrive.execute();\n\n\n\n // ros_string = workingSerialCom.read();\n // alt_yurur = workingSerialCom.StringConverter(ros_string, 1);\n // robot_kol = workingSerialCom.StringConverter(ros_string, 2);\n Full.Full(yavuz);\n \n }", "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "public void teleopPeriodic() \n {\n // NIVision.Rect rect = new NIVision.Rect(10, 10, 100, 100);\n /*\n NIVision.IMAQdxGrab(session, frame, 1);\n //NIVision.imaqDrawShapeOnImage(frame, frame, rect,\n // DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 0.0f);\n */\n \n //cam.getImage(frame);\n //camServer.setImage(frame);\n \n //CameraServer.getInstance().setImage(frame);\n \n if(verticalLift.limitSwitchHit())\n verticalLift.resetEnc();\n \n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\tupdateLedState();\n\t\t//SmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\t\tSmartDashboard.putNumber(\"Climber Current Motor 1\", Robot.climber.climberTalon.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Climber Current motor 2\", Robot.climber.climberTalon2.getOutputCurrent());\n\t\t//visionNetworkTable.getGearData();\n\t//\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\n\t\tif(Robot.debugging){\t\t\t\n\t\t\tSmartDashboard.putNumber(\"Shooter1RPM Setpoint\", shooter.shooter1.getSetpoint());\n\t \tSmartDashboard.putNumber(\"Intake Pivot Encoder Position\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\n\t\t\tSmartDashboard.putNumber(\"Gear Manipulator Setpoint\", gearManipulator.gearManipulatorPivot.getSetpoint());\n\t\t}\n\t\t//\tvisionNetworkTable.getGearData();\n\t\t//visionNetworkTable.getHighData();\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n// if (oi.driveStick.getRawButton(4)) {\n// System.out.println(\"Left Encoder Distance: \" + RobotMap.leftDriveEncoder.getDistance());\n// System.out.println(\"RightEncoder Distance: \" + RobotMap.rightDriveEncoder.getDistance());\n// }\n\n }", "@Override\n public void tuningPeriodic() {\n\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n \n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n boolean targetInRange = false ;\n \n if(centerBlock == null)\n {\n targetInRange = false;\n SmartDashboard.putString(\"center block data \", \"null\"); \n }\n else if(centerBlock.yCenter < 200)\n {\n targetInRange = true;\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out); \n }\n\n String targetValue = Boolean.toString(targetInRange);\n SmartDashboard.putString(\"target good?\", targetValue);\n \n \n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n }", "public void robotPeriodic() {\n if (m_rpFirstRun) {\n System.out.println(\"Default robotPeriodic() method... Override me!\");\n m_rpFirstRun = false;\n }\n }", "@Override\n public void simulationPeriodic() {\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}", "@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "public void autonomousPeriodic() {\n //Scheduler.getInstance().run();\n /** if(autoLoopCounter < 100) { //Checks to see if the counter has reached 100 yet\n myRobot.drive(-0.5, 0.0); //If the robot hasn't reached 100 packets yet, the robot is set to drive forward at half speed, the next line increments the counter by 1\n autoLoopCounter++;\n } else {\n myRobot.drive(0.0, 0.0); //If the robot has reached 100 packets, this line tells the robot to stop\n }*/\n }", "public void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\t\n\t\t// Light/flash LEDs as needed\n\t\tif (timerLEDs.get() >= timerLEDsHalfPeriod) {\n\t timerLEDs.reset();\n\t timerLEDsCycleHigh = !timerLEDsCycleHigh;\n\t if (timerLEDsCycleHigh) {\n\t \tshooter.setFlywheelSpeedLight(shooter.bLEDsArmAtAngle);\n\t } else {\n\t \tshooter.setFlywheelSpeedLight(shooter.bLEDsArmAtAngle /*&& !shooter.bLEDsFlywheelAtSpeed*/);\t \t\n\t }\n\t\t}\n/*\t\t\n\t\t// Rumble as needed\n\t\tboolean ballLoaded = shooter.isBallLoaded(); \n\t\tif (ballLoaded && !prevBallLoaded) {\n\t\t\ttimerRumble.reset();\n\t\t\toi.xboxController.setRumble(RumbleType.kLeftRumble, 1);\n\t\t}\n\t\tprevBallLoaded = ballLoaded;\n\n\t\tboolean readyToShoot = shooter.bLEDsArmAtAngle && shooter.bLEDsFlywheelAtSpeed;\n\t\tif (readyToShoot && !prevReadyToShoot) {\n\t\t\ttimerRumble.reset();\n\t\t\toi.xboxController.setRumble(RumbleType.kRightRumble, 1);\n\t\t}\n\t\tprevReadyToShoot = readyToShoot;\n\n\t\tif (timerRumble.get() > 0.5) {\n\t \toi.xboxController.setRumble(RumbleType.kLeftRumble, 0);\n\t \toi.xboxController.setRumble(RumbleType.kRightRumble, 0);\n\t\t}\n*/\t\t\n\t\t// Show arm angle\n shooterArm.updateSmartDashboard();\n \n\t\t// Other printouts\n\t\tshooter.updateSmartDashboard();\n\t\tshooter.isBallLoaded();\n\t\tintake.updateSmartDashboard();\n\t\tintake.intakeIsUp();\n\t\tdriveTrain.getDegrees();\n\t\t\n\t\tvision.findGoal();\n\t\tvision.getGoalXAngleError();\n\t\tvision.getGoalArmAngle();\n\t\t\t\t\n\t\tif (smartDashboardDebug) {\n\t\t\t// Uncomment the following line to read coPanel knobs.\n//\t\t\toi.updateSmartDashboard();\n\n\t\t\t// Uncomment the following line for debugging shooter motors PIDs.\n//\t\t\tshooter.setPIDFromSmartDashboard();\n\t\t\t\n\t\t\t// Uncomment the following line for debugging the arm motor PID.\n//\t shooterArm.setPIDFromSmartDashboard();\n\t\t\t\n\t\t\t// Uncomment the following lines to see drive train data\n\t \tdriveTrain.getLeftEncoder();\n\t \tdriveTrain.getRightEncoder();\n\t\t\tdriveTrain.smartDashboardNavXAngles();\n\t\t\t\n\t\t\t//\t\tSmartDashboard.putNumber(\"Panel voltage\", panel.getVoltage());\n\t\t\t//\t\tSmartDashboard.putNumber(\"Panel arm current\", panel.getCurrent(0));\n\t\t}\n\n\t}", "@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n OI.getInstance().getPilot().run();\n SmartDashboard.putNumber(\"gyro\", getRobotContainer().getTecbotSensors().getYaw());\n SmartDashboard.putBoolean(\"isSpeed\", getRobotContainer().getDriveTrain().getTransmissionMode() == DriveTrain.TransmissionMode.speed);\n SmartDashboard.putString(\"DT_MODE\", getRobotContainer().getDriveTrain().getCurrentDrivingMode().toString());\n SmartDashboard.putNumber(\"x_count\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\n public void simulationPeriodic() {\n }", "public void autonomousPeriodic()\r\n {\r\n \r\n }", "public void autonomous() {\n robot.drive(0.5); //Drives in a square\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n robot.drive(0.5);\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n robot.drive(0.5);\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n robot.drive(0.5);\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n }", "protected void initialize() {\n finished = false;\n Robot.shooter.Spin();//Spin up wheels\n Timer.delay(3);\n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n \n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n \n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n //Robot.shooter.Stop();\n Robot.shooter.TriggerExtend();//Reset Trigger\n \n Robot.driveTrain.DriveBack();//Drives backwards from pyramid\n Timer.delay(1.5);\n Robot.driveTrain.TurnAround();//Turns Bob around\n Timer.delay(1);\n Robot.driveTrain.Stop();//Stops Bob\n \n Robot.pneumatics.CompressorOn();//Turns compressor on\n }", "@Override\n public void robotPeriodic() {\n putTelemetry();\n }", "@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n // Elevator.getInstance().setPosition(10000, count);\n // System.out.println(\"COUNT IS: \" + count);\n // count += 0.0001;\n\n Scheduler.getInstance().run();\n\n // if(Math.abs(OI.getInstance().getForward()) > 0.2){\n // autonCommand.cancel();\n // mAutoCancelled = true;\n // }\n\n // if(mAutoCancelled){\n // if(mInitCalled){\n // teleopPeriodic();\n // }\n // }\n\n // System.out.println(Drivetrain.getInstance().getRobotPos().getHeading());\n\n // System.out.println(Drivetrain.getInstance().getLeftMaster().getClosedLoopError() + \"\\t\\t\\t\" + Drivetrain.getInstance().getRightMaster().getClosedLoopError());\n }", "public void autonomousPeriodic() {\r\n }", "public void autonomousPeriodic() {\r\n }", "@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }", "@Override\n\tpublic void sleeps() {\n\t\t\n\t}", "@Override\r\n\tpublic void freezeTimer() {\n\t\t\r\n\t}", "public void think_async()\r\n/* 178: */ {\r\n/* 179:153 */ Scanner in = new Scanner(System.in);\r\n/* 180: */ \r\n/* 181: */ \r\n/* 182: */ \r\n/* 183: */ \r\n/* 184: */ \r\n/* 185: */ \r\n/* 186: */ \r\n/* 187: */ \r\n/* 188: */ \r\n/* 189: */ \r\n/* 190: */ \r\n/* 191: */ \r\n/* 192: */ \r\n/* 193: */ \r\n/* 194: */ \r\n/* 195: */ \r\n/* 196:170 */ Thread updater = new Thread()\r\n/* 197: */ {\r\n/* 198:157 */ public volatile boolean active = true;\r\n/* 199: */ \r\n/* 200: */ public void run()\r\n/* 201: */ {\r\n/* 202:161 */ while (this.active) {\r\n/* 203:162 */ synchronized (this)\r\n/* 204: */ {\r\n/* 205:163 */ ConsoleAI.this.game.updateSimFrame();\r\n/* 206: */ }\r\n/* 207: */ }\r\n/* 208: */ }\r\n/* 209:170 */ };\r\n/* 210:171 */ updater.start();\r\n/* 211: */ Plane.FullView p;\r\n/* 212:232 */ for (;; p.hasNext())\r\n/* 213: */ {\r\n/* 214:184 */ System.out.print(\"Next action ([move|land|attk] id; exit to quit): \");\r\n/* 215: */ \r\n/* 216: */ \r\n/* 217:187 */ String[] cmd = in.nextLine().split(\" \");\r\n/* 218: */ \r\n/* 219: */ \r\n/* 220: */ \r\n/* 221: */ \r\n/* 222: */ \r\n/* 223: */ \r\n/* 224: */ \r\n/* 225: */ \r\n/* 226: */ \r\n/* 227:197 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases();\r\n/* 228:198 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes();\r\n/* 229:199 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes();\r\n/* 230: */ \r\n/* 231: */ \r\n/* 232: */ \r\n/* 233: */ \r\n/* 234:204 */ List<Command> coms = new ArrayList();\r\n/* 235: */ String str;\r\n/* 236:206 */ switch ((str = cmd[0]).hashCode())\r\n/* 237: */ {\r\n/* 238: */ case 3004906: \r\n/* 239:206 */ if (str.equals(\"attk\")) {}\r\n/* 240: */ break;\r\n/* 241: */ case 3127582: \r\n/* 242:206 */ if (str.equals(\"exit\")) {\r\n/* 243: */ break label505;\r\n/* 244: */ }\r\n/* 245: */ break;\r\n/* 246: */ case 3314155: \r\n/* 247:206 */ if (str.equals(\"land\")) {\r\n/* 248: */ break;\r\n/* 249: */ }\r\n/* 250: */ case 3357649: \r\n/* 251:206 */ if ((goto 451) && (str.equals(\"move\")))\r\n/* 252: */ {\r\n/* 253:210 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 254:211 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 255:212 */ coms.add(new MoveCommand(p, b.position()));\r\n/* 256: */ }\r\n/* 257: */ break label459;\r\n/* 258:216 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 259:217 */ if ((b instanceof Base.FullView))\r\n/* 260: */ {\r\n/* 261:218 */ for (??? = planes.valuesView().iterator(); ???.hasNext();)\r\n/* 262: */ {\r\n/* 263:218 */ p = (Plane.FullView)???.next();\r\n/* 264:219 */ coms.add(new LandCommand(p, (Base.FullView)b));\r\n/* 265: */ }\r\n/* 266: */ }\r\n/* 267: */ else\r\n/* 268: */ {\r\n/* 269:221 */ System.err.println(\"You can't see this base, move around it before you land\");\r\n/* 270: */ break label459;\r\n/* 271:225 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 272:226 */ coms.add(new AttackCommand(p, (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1])))));\r\n/* 273: */ }\r\n/* 274: */ }\r\n/* 275: */ }\r\n/* 276:227 */ break;\r\n/* 277: */ }\r\n/* 278:229 */ System.err.println(\"Unrecognized command!\");\r\n/* 279: */ label459:\r\n/* 280:232 */ p = coms.iterator();\r\n/* 281:232 */ continue;Command c = (Command)p.next();\r\n/* 282:233 */ this.game.sendCommand(c);\r\n/* 283: */ }\r\n/* 284: */ label505:\r\n/* 285:255 */ in.close();\r\n/* 286:256 */ updater.active = false;\r\n/* 287: */ try\r\n/* 288: */ {\r\n/* 289:258 */ updater.join();\r\n/* 290: */ }\r\n/* 291: */ catch (InterruptedException e)\r\n/* 292: */ {\r\n/* 293:260 */ e.printStackTrace();\r\n/* 294: */ }\r\n/* 295: */ }", "@Override\n protected void execute() {\n m_currentTime = Timer.getFPGATimestamp();\n// used for more precise calculations\n m_currentError = m_desiredDistance - Robot.m_drive.Position();\n// ^^ tells how much further the Robot goes\n m_derivative = (m_currentError - m_oldError) / (m_currentTime - m_oldTime);\n// ^^ PID formula stuff. The change of error / change of time to be more precise\n m_output = m_currentError * constants.kP + constants.kD * m_derivative;\n// tells how much power the motor will change\n Robot.m_drive.SetPower(m_output);\n// changes motor power\n\n m_oldError = m_currentError;\n// how error distance updates so it won't repeat old mistake\n m_oldTime = m_currentTime;\n// same as line above\n }", "@Override\n protected void loop() throws InterruptedException {\n if (status_system <= 2) {\n status_planner |= 1;\n } else {\n status_planner &= ~1;\n if(status_system_prev < 2){\n time_pipe_start = connectedNode.getCurrentTime();\n }\n }\n status_system_prev = status_system;\n\n // Check timeouts\n time_current = connectedNode.getCurrentTime();\n if (time_current.compareTo(time_status_system.add(timeout_status_system)) == 1) {\n if(status_system > 0){Log.e(\"ROV_ERROR\", \"Planner node: Timeout on system state\");}\n status_planner |= 2;\n } else {status_planner &= ~2;}\n// if ((time_current.compareTo(time_state_pose.add(timeout_state_pose)) == 1) && ((status_planner&1)==0) && time_current.compareTo(time_pipe_start.add(leeway_pipe_start)) == 1) {\n// if(status_system > 0){Log.e(\"ROV_ERROR\", \"Planner node: Timeout on state pose\");}\n// status_planner |= 2;\n// } else {status_planner &= ~2;}\n\n // Ensure that the initial transform set_point is 0.\n if(status_system < 5){\n rov_planner.reset();\n }\n\n // Timeout joystick input\n if (time_current.compareTo(time_joy_input.add(timeout_joy_input)) == 1) {\n joy_input_cur = new SimpleMatrix(6,1);\n }\n rov_planner.setJoyInput(joy_input_cur,0.01);\n\n // Check if all data/params filled\n if (!rov_planner.isReady()){\n status_planner |= 4;\n }else{\n status_planner &= ~4;\n }\n\n // Check if the system is ready to proceed\n if (!rov_planner.isClose()){\n status_planner |= 128;\n }else{\n status_planner &= ~128;\n }\n\n if (!(status_system == 6)){\n rov_planner.inAuto(true);\n }else{\n rov_planner.inAuto(false);\n }\n\n // Publish status\n status_planner_msg.setData(status_planner);\n status_planner_pub.publish(status_planner_msg);\n Thread.sleep(10);// NOTE!!! update joy rate if this is changed\n }", "private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}", "public void updatePeriodic() {\r\n }", "void robotPeriodic();", "protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "public void autonomousPeriodic() {\r\n \r\n }", "protected void execute() {\n \n \t\n \t \n \t\n \n System.out.println((Timer.getFPGATimestamp()- starttime ) + \",\" + (RobotMap.motorLeftTwo.getEncPosition()) + \",\"\n + (RobotMap.motorLeftTwo.getEncVelocity()*600)/-4096 + \",\" + RobotMap.motorRightTwo.getEncPosition() + \",\" + (RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n /*if(endpoint > 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft+ angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight - angleorientation.getResult());\n }\n if(endpoint <= 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft- angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight + angleorientation.getResult());\n }*/\n System.out.println(this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition() + \"l\");\n System.out.println(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition() + \"r\");\n \n \n \t if(RobotMap.motorLeftTwo.getEncVelocity()!= velocityLeft)\n velocityLeft = RobotMap.motorLeftTwo.getEncVelocity(); \n velocityRight = RobotMap.motorRightTwo.getEncVelocity();\n SmartDashboard.putNumber(\"LeftWheelError\", (this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition()));\n SmartDashboard.putNumber(\"RightWheelError\",(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition()));\n SmartDashboard.putNumber(\"LeftWheelVelocity\", (RobotMap.motorLeftTwo.getEncVelocity())*600/4096);\n SmartDashboard.putNumber(\"RightWheelVelocity\",(RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n \n count++;\n \tangleorientation.updatePID(RobotMap.navx.getAngle());\n }", "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }", "@Override\n public void robotPeriodic() {\n\n SmartDashboard.putString(\"DB/String 0\", \": \" + ControllerMap.driverMode);\n SmartDashboard.putString(\"DB/String 3\",\n \"pot value: \" + String.valueOf(Intake.getInstance().potentiometer.getVoltage()));\n SmartDashboard.putString(\"DB/String 7\", \"Zero position: \" + Intake.getInstance().getStartingWristEncoderValue());\n SmartDashboard.putString(\"DB/String 8\",\n \"wrist encoder: \" + String.valueOf(Hardware.intakeWrist.getSensorCollection().getQuadraturePosition()));\n SmartDashboard.putString(\"DB/String 9\",\n \"Corrected wrist: \" + String.valueOf(Intake.getInstance().getCorrectedWristEncoderValue()));\n // SmartDashboard.putString(\"DB/String 4\", \"pot value: \" +\n // String.valueOf(intake.potentiometer.getValue()));\n // SmartDashboard.putString(\"DB/String 9\", \"pot voltage: \" +\n // String.valueOf(intake.potentiometer.getVoltage()));\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putBoolean(\"Max Intake Extension: \", RobotMap.intakeLifted.get());\n\t\tSmartDashboard.putBoolean(\"Max Lift Extension:\", RobotMap.isAtTop.get());\n\t\tSmartDashboard.putBoolean(\"Min Lift Extension:\", RobotMap.isAtBottom.get());\n\t\tDriveTrain.driveWithJoystick(RobotMap.stick, RobotMap.rd); // Drive\n\t\tTeleOp.RaiseLift(RobotMap.liftTalon, RobotMap.controller); // Raise lift\n\t\tif(RobotMap.controller.getRawAxis(RobotMap.lowerLiftAxis) >= 0.2) {\n\t\tTeleOp.LowerLift(RobotMap.liftTalon, RobotMap.controller);\n\t\t}\n\t\tTeleOp.DropIntake(RobotMap.controller, RobotMap.intakeLifter);\n\t\tTeleOp.spinOut(RobotMap.intakeVictorLeft, RobotMap.controller);\n\t\t//TeleOp.spinnySpinny(RobotMap.intakeVictorLeft, RobotMap.stick);\n\t}", "@Override\r\n public void periodic() {\n }", "public void tick(){\n\t\t//first check if blocked\n\t\tsuper.tick();\n\t\ttickTimers();\n\t\tapplySpecialAbilitiesWithinDuration();\n\t\tif(sequence!=null){\n\t\t\tsequence.tick();\n\t\t}\n\t\tif(adjustToBlockageAndReturnTrueIfBlocked()||atEdge) {\n\t\t\tif(atEdge){\n\t\t\t\tcheckIfAtEdge();\n\t\t\t}\n\t\t\tif(charging) stopCharge();\n\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(buttonReleased){\n\t\t\tif(targetPositionReached()){\n\t\t\t\tvelX=0;\n\t\t\t\tvelY=0;\n\t\t\t\tmoving=false;\n\t\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirection=\"stand\";\n\t\t\t}\n\t\t}\n\t\tif(damaged){\n\t\t\tif(animation!=ANIMATION.DYING) {\n\t\t\t\tif(animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tanimation=ANIMATION.DAMAGED;\n\t\t\t\t\tif(damage!=null) sequence.startSequence(damage,stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetVelX(0);\n\t\t\tsetVelY(0);\n\t\t}\n\t\t\n\t\tx+=velX;\n\t\ty+=velY;\n\t\tupdatePosition();\n\t\tcheckIfAtEdge();\n\t\t\n\t\t\n\t}", "public void run() {\n\n renderingForce = true;\n //file.play();\n\n\n if (haplyBoard.data_available()) {\n /* GET END-EFFECTOR STATE (TASK SPACE) */\n widgetOne.device_read_data();\n\n angles.set(widgetOne.get_device_angles()); \n posEE.set(widgetOne.get_device_position(angles.array()));\n posEE.set(posEE.copy().mult(200));\n }\n\n s.setToolPosition(edgeTopLeftX+worldWidth/2-(posEE).x, edgeTopLeftY+(posEE).y-7); \n\n\n s.updateCouplingForce();\n fEE.set(-s.getVirtualCouplingForceX(), s.getVirtualCouplingForceY());\n fEE.div(100000); //dynes to newtons\n\n torques.set(widgetOne.set_device_torques(fEE.array()));\n widgetOne.device_write_torques();\n\n world.step(1.0f/1000.0f);\n\n\n checkSplat();\n\n renderingForce = false;\n }", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n }", "public void commonPeriodic()\n {\n double d1LeftJoystick = driver1.getAxis(driver1.LAxisUD);\n double d1RightJoystick = driver1.getAxis(driver1.RAxisUD);\n\n double d2LeftJoystick = driver2.getAxis(driver2.LAxisUD);\n double d2RightJoystick = driver2.getAxis(driver2.RAxisUD);\n\n // -------------------- DRIVER 1\n\n driveTrain.drive(d1LeftJoystick * speedModifier, d1RightJoystick * speedModifier);\n\n // driver1 controls ramp\n // press start and select together to deploy\n if(driver1.down(driver1.Start) && driver1.down(driver1.Select))\n {\n ramp.deploy();\n hatchArm.fingerGrab();\n }\n else\n {\n ramp.undeploy();\n }\n\n // driver 1 can double speed by holding L2\n //driveTrain.fastSpeed = driver1.down(driver1.L2);\n if(driver1.pressed(driver1.A))\n {\n driveTrain.slowSpeed = !driveTrain.slowSpeed;\n System.out.println(\"Fast speed toggled to: \" + driveTrain.slowSpeed);\n }\n\n //drive straight\n if(driver1.down(driver1.L1))\n {\n driveTrain.set_right_motors(speedModifier);\n }\n if(driver1.down(driver1.R1))\n {\n driveTrain.set_left_motors(speedModifier);\n }\n\n // flip drive orientation\n if(driver1.pressed(driver1.Select))\n {\n driveTrain.flip_orientation();\n \n if(driveTrain.isFacingForward())\n {\n camServForward.setSource(camFront);\n //camServReverse.setSource(camBack);\n // camBack.free();\n // camFront.close();\n // camFront = CameraServer.getInstance().startAutomaticCapture(0);\n // camBack = CameraServer.getInstance().startAutomaticCapture(1);\n }\n else\n {\n camServForward.setSource(camBack);\n //camServReverse.setSource(camFront);\n // camBack.close();\n // camFront.close();\n // camFront = CameraServer.getInstance().startAutomaticCapture(1);\n // camBack = CameraServer.getInstance().startAutomaticCapture(0);\n }\n }\n\n\n // -------------------- DRIVER 2\n\n\n // up is out\n // down is in\n // (when it's negated)\n cargoArm.spinBallMotor(-1 * d2LeftJoystick * 0.9);\n\n // control hatch placement pistons\n if(driver2.pressed(driver2.A))\n {\n hatchArm.pushPistons();\n }\n else if (driver2.released(driver2.A))\n {\n hatchArm.retractPistons();\n }\n\n // open/close hatch grabber arms\n if(driver2.pressed(driver2.B))\n {\n hatchArm.toggleGrabber();\n }\n\n if(driver2.pressed(driver2.Select))\n {\n //cargoArm.toggleArmLock();\n hatchArm.toggleFinger();\n }\n\n // extend/de-extend cargo hand\n if(driver2.pressed(driver2.Start))\n {\n cargoArm.toggleHand();\n }\n\n // button 7: L2\n // button 8: R2\n // L2 will reverse the finger\n // R2 will rotate it forward\n if(driver2.down(driver2.L1))\n {\n hatchArm.rotateFinger(1);\n }\n else\n {\n if(driver2.down(driver2.L2))\n {\n hatchArm.rotateFinger(-1);\n }\n else\n {\n hatchArm.rotateFinger(0);\n }\n }\n\n \n // button 5: L1\n // button 6: R1\n // L1 will move the hatch arm one way\n // R1 will move it the other way\n if(driver2.down(driver2.R1))\n {\n hatchArm.rotateArm(-1 * speedModifier);// * 0.75);\n }\n else\n {\n if(driver2.down(driver2.R2))\n {\n hatchArm.rotateArm(1 * speedModifier);// * 0.75);\n }\n else\n {\n hatchArm.rotateArm(0);\n }\n }\n\n \n // button 1: x\n // button 4: y\n // button 1 will move the ball arm one way\n // button 4 will move it the other way\n if(driver2.down(driver2.X))\n {\n //cargoArm.requestMove(-1 * speedModifier);\n cargoArm.rotateArm(-1);\n //cargoArm.solArmBrake.set(false);\n }\n else\n {\n if(driver2.down(driver2.Y))\n {\n //cargoArm.requestMove(2 * speedModifier);\n cargoArm.rotateArm(1);\n //cargoArm.solArmBrake.set(false);\n }\n else\n {\n //cargoArm.rotateArm(cargoArm.getArmCalculation());\n //cargoArm.solArmBrake.set(true);\n cargoArm.rotateArm(0);\n }\n }\n if(driver2.released(driver2.X) || driver2.released(driver2.Y))\n {\n //cargoArm.setArmTarget(cargoArm.currentPosition());\n //cargoArm.solArmBrake.set(true);\n cargoArm.rotateArm(0);\n }\n\n if(driver2.dpad(driver2.Up))\n {\n cargoArm.setArmUp();\n }\n if(driver2.dpad(driver2.Down))\n {\n cargoArm.setArmDown();\n }\n if(driver2.dpad(driver2.Left))\n {\n cargoArm.setArmMid();\n }\n if(driver2.dpad(driver2.Right))\n {\n cargoArm.setArmLow();\n }\n\n if(driver2.pressed(driver2.LThumb))\n {\n cargoArm.armLockEnabled = !cargoArm.armLockEnabled;\n \n }\n if(driver2.pressed(driver2.RThumb))\n {\n cargoArm.toggleBrake();\n }\n\n\n // allow move-to calculations to occur\n hatchArm.periodic();\n cargoArm.periodic();\n }", "public void teleopPeriodic() {\n\n \t//NetworkCommAssembly.updateValues();\n \t\n\t\t// both buttons pressed simultaneously, time to cal to ground\n\t\tif (gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON1) && gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON2)) {\n\t\t\tprocessGroundCal();\n\t\t}\n\n\t\t// PID CONTROL ONLY\n\t\tdouble armDeltaPos = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armDeltaPos) < ARM_DEADZONE) {\n\t\t\tarmDeltaPos = 0.0f;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tarmDeltaPos *= ARM_POS_MULTIPLIER;\n\t\t\tdouble currPos = testMotor.getPosition();\n\t\t\t\n\t\t\tif (((currPos > SOFT_ENCODER_LIMIT_MAX) && armDeltaPos > 0.0) || ((currPos < SOFT_ENCODER_LIMIT_FLOOR) && armDeltaPos < 0.0)) {\n\t\t\t\tSystem.out.println(\"SOFT ARM LIMIT HIT! Setting armDeltaPos to zero\");\n\t\t\t\tarmDeltaPos = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble newPos = currPos + armDeltaPos;\n\t\t\ttestMotor.set(newPos);\n\t\t\tSystem.out.println(\"Setting new front arm pos = \" + newPos);\t\n\t\t}\t\t\n\n \t/*\n\t\tdouble newArmPos = gamepad.getRawAxis(1);\n\t\tif(Math.abs(newArmPos) <= ARM_DEADZONE) {\n\t\t\tnewArmPos = 0.0;\n\t\t}\n\t\tdouble newMotorPos = (newArmPos * ARM_SPEED_MULTIPLIER) + testMotor.getPosition();\n\t\tpositionMoveByCount(newMotorPos);\n\t\tSystem.out.println(\"input = \" + newArmPos + \" target pos = \" + newMotorPos + \" enc pos = \" + testMotor.getPosition());\n \t*/\n \t\n\t\t// PercentVbus test ONLY!!\n \t/*\n\t\tdouble armSpeed = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armSpeed) < ARM_DEADZONE) {\n\t\t\tarmSpeed = 0.0f;\n\t\t}\t\n\t\tarmSpeed *= ARM_MULTIPLIER;\n\t\t\n\t\tdouble pos= testMotor.getPosition();\n\t\tif (((pos > SOFT_ENCODER_LIMIT_1) && armSpeed < 0.0) || ((pos < SOFT_ENCODER_LIMIT_2) && armSpeed > 0.0))\n\t\t\tarmSpeed = 0.0;\n\t\ttestMotor.set(armSpeed);\n\t\t\n\t\tSystem.out.println(\"armSpeed = \" + armSpeed + \" enc pos = \" + testMotor.getPosition());\n\t\t */ \n }", "static void onSpinWait() {\n }", "public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }", "protected void execute() {\n \tRobot.gearIntake.setGearRollerSpeed(-.7);\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }" ]
[ "0.70950913", "0.70950913", "0.70950913", "0.70950913", "0.70950913", "0.70950913", "0.698812", "0.698812", "0.65521044", "0.6521747", "0.6521395", "0.65180826", "0.6506085", "0.648395", "0.645867", "0.64474523", "0.64432645", "0.6436221", "0.6436221", "0.6436221", "0.6435756", "0.64328706", "0.6424569", "0.6397133", "0.63850886", "0.6381242", "0.63630694", "0.636155", "0.6359108", "0.63308907", "0.6329396", "0.63040197", "0.6298012", "0.6289307", "0.62811834", "0.62797076", "0.62765336", "0.6269943", "0.6238984", "0.62271875", "0.6218261", "0.62153697", "0.62152493", "0.62004375", "0.62004375", "0.6193883", "0.6188894", "0.618095", "0.617697", "0.61625034", "0.6156012", "0.6154076", "0.61517453", "0.61509764", "0.6141931", "0.6139051", "0.6139051", "0.61343455", "0.6133534", "0.61214", "0.61135525", "0.6111492", "0.6100296", "0.60986257", "0.60947627", "0.6091995", "0.6091995", "0.60907274", "0.6086059", "0.608596", "0.6085693", "0.60832405", "0.60827476", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172", "0.6082172" ]
0.0
-1
/ This is also called by the scheduler on a regular basis and will cause the robot to cease to function for the duration of the match if true is returned. Return true if the robot work is finished Return false if the robot is not finished
protected boolean isFinished() { // get the current angle from the gyro double currentAngle = Robot.gyroSubsystem.GyroPosition(); // see if we are within 2 degrees of the target angle (90 degrees) if (Math.abs(currentAngle - 90) <= 2) { // we have hit our goal of 90, end auto program return true; } else { // we are not quite there yet, keep going return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isFinished() {\n \tif(timer.get()>.7)\n \t\treturn true;\n \tif(Robot.gearX==0)\n \t\treturn true;\n return (Math.abs(173 - Robot.gearX) <= 5);\n }", "protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }", "protected boolean isFinished() {\n\tif(this.motionMagicEndPoint >0) {\n \tif(Math.abs(RobotMap.motorLeftTwo.get() )< 0.09 && Math.abs(RobotMap.motorRightTwo.get() )> -0.09&& Timer.getFPGATimestamp()-starttime > 10) {\n \t\treturn true;\n \t}\n\t}\n\t\n return false;\n }", "protected boolean isFinished() {\n \treturn (Robot.sonar.getDistance() <= distance);\n }", "protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }", "protected boolean isFinished() {\n \tboolean distanceTarget = Robot.driveDistancePID.onRawTarget();\n \t\n \tdouble timeNow = timeSinceInitialized();\n \t\n \treturn (distanceTarget || (timeNow >= expireTime));\n }", "protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>howLongWeWantToMove;\n }", "protected boolean isFinished() {\n \tdouble changeInX = targetX - Robot.sensors.getXCoordinate();\n \tdouble changeInY = targetY - Robot.sensors.getYCoordinate();\n \tdouble distance = Math.sqrt(Math.pow(changeInX, 2) + Math.pow(changeInY, 2));\n return distance < 8 || System.currentTimeMillis() >= stopTime;\n }", "protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }", "protected boolean isFinished() {\n \treturn Robot.lift.isMotionMagicNearTarget() || totalTimer.get() > 5.0;\n }", "protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }", "protected boolean isFinished() {\n \tTargetTransform tt = Robot.vision_.getLatestGearLiftTargetTransform();\n \t\n \tif ( !isTimedOut() )\n \t{\n \t\treturn false;\n \t}\n \t\n \tif ( tt == null )\n \t{\n \t\treturn false;\n \t}\n \t\n \tif ( !tt.targetFound() )\n \t{\n \t\treturn false;\n \t}\n \t\n \tif ( previousTargetTransform == null )\n \t{\n \t\tRobot.vision_.takeTargetSnapshot( tt );\n\t\t\treturn true;\n \t}\n \t\n \tif ( !tt.equals(previousTargetTransform) )\n \t{\n\t\t\tRobot.vision_.takeTargetSnapshot( tt );\n\t\t\treturn true;\n \t}\n \t\n \treturn false;\n }", "protected boolean isFinished() {\n \tif (Math.abs(_finalTickTargetLeft - Robot.driveTrain.getEncoderLeft()) <= 0 &&\n \t\t\tMath.abs(_finalTickTargetRight - Robot.driveTrain.getEncoderRight()) <= 0)\n \t{\n \t\treturn true;\n \t}\n return false;\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn isFinished || timer.get() > timeOutSecs\n\t\t\t|| Math.abs(Robot.oi.driveStick.getLY()) > 0.1 || Math.abs(Robot.oi.driveStick.getRX()) > 0.1;\n\t}", "protected boolean isFinished() {\n \tif(Math.abs(Robot.driveTrain.getHeading() - targetDirection) < 2) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "protected boolean isFinished() {\n if (waitForMovement) return (timeSinceInitialized() > Robot.intake.HOPPER_DELAY);\n return true;\n }", "public boolean isFinished() {\n return (Math.abs(RobotContainer.drive.getAngle() - this.angle) <= 1);\n }", "protected boolean isFinished() {\n return ((degrees - Robot.gyro.getAngle() <= Robot.acceptedTurnTolerance)&&(degrees - Robot.gyro.getAngle() >= -Robot.acceptedTurnTolerance))||Robot.interrupt;\n }", "protected boolean isFinished() {\n\t\treturn Robot.elevator.isInPosition(newPosition, direction);\n\t}", "protected boolean isFinished() {\n return (timeRunning>timeStarted+5 || RobotMap.inPosition.get()!=OI.shooterArmed);\n }", "protected boolean isFinished() {\n\t\treturn Robot.gearIntake.getPegSwitch();\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn (System.currentTimeMillis() > Endtime);\n\t}", "protected boolean isFinished() {\n return (System.currentTimeMillis() - startTime) >= time;\n \t//return false;\n }", "protected boolean isFinished() {\n\t\treturn false;\n\t\t//return timeOnTarget >= finishTime;\n }", "protected boolean isFinished() {\n return Robot.claw.isRetracted();\n }", "protected boolean isFinished() {\n long tEnd = System.currentTimeMillis();\n long tDelta = tEnd - tStart;\n double elapsedSeconds = tDelta / 1000.0;\n if (elapsedSeconds > 0.2) {\n \t System.out.println(\"End Fire\");\n \t return true;\n }\n else if(elapsedSeconds > 0.15) {\n \t System.out.println(\"end Fire\");\n Robot.m_Cannon.set(-1);\n }\n else if(elapsedSeconds > 0.05) {\n \t System.out.println(\"mid Fire\");\n Robot.m_Cannon.stop();\n }\n return false;\n }", "protected boolean isFinished() {\r\n \tif (manipulator.isHighSwitchPressed() && speed > 0 ||\r\n \t\tmanipulator.isLowSwitchPressed() && speed < 0)\r\n \t\treturn true;\r\n \t\r\n \treturn isTimedOut();\r\n \t\r\n// \tif (targetHeight > startHeight) {\r\n// \t\treturn manipulator.getAverageElevatorHeight() >= targetHeight;\r\n// \t} else {\r\n// \t\treturn manipulator.getAverageElevatorHeight() <= targetHeight;\r\n// \t}\r\n }", "protected boolean isFinished() {\n return Robot.m_elevator.onTarget();\n }", "protected boolean isFinished() {\n \tcurrentAngle = Robot.gyroSubsystem.gyroPosition();\n \tif (targetAngle - error > currentAngle || targetAngle + error < currentAngle) {\n \t\treturn false;\n \t} else {\n \t\tRobot.driveSubsystem.arcadeDrive(0, 0);\n \t\treturn true;\n \t}\n }", "@Override\n protected boolean isFinished() {\n //calculate distances traveled on X and Y axes by averaging encoder values\n double xAvg = (double)(Robot.driveTrain.getFREncoder() + Robot.driveTrain.getBLEncoder()) / 2.0;\n double yAvg = (double)(Robot.driveTrain.getFLEncoder() + Robot.driveTrain.getBREncoder()) / 2.0;\n \n //some checks to see if the robot is within 100 encoder counts of the target\n boolean finishedX = (Math.abs(xDist - xAvg) < 100);\n boolean finishedY = (Math.abs(yDist - yAvg) < 100);\n\n //finished if X and Y are within 100 counts or if the command times out\n return ((finishedX && finishedY) || isTimedOut());\n }", "protected boolean isFinished() {\n return (Math.abs(m_autorotateangle - Robot.drive.gyroGetAngle()) < 2) || (isTimedOut());\n }", "@Override\n public boolean isFinished() {\n return System.currentTimeMillis() >= endtime;\n }", "protected boolean isFinished() {\n\t\treturn RobotMap.VisionDistanceLeftPIDController.onTarget() && RobotMap.VisionDistanceRightPIDController.onTarget() || !hasStarted;\n\t}", "@Override\n public boolean isFinished() {\n \n boolean thereYet = false;\n\n double time = timer.get();\n\n \n if (Math.abs(targetDistance - distanceTraveled) <= 4){\n\n thereYet = true;\n\n // else if(Math.abs(targetDistance - distanceTraveled) <= 24){\n\n //shifter.shiftDown();\n \n //}\n\n \n\n } else if (stopTime <= time - startTime){\n\n thereYet = true;\n }\n SmartDashboard.putNumber(\"Distance Traveled\", distanceTraveled);\n\n return thereYet;\n\n }", "protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }", "protected boolean isFinished() {\n //boolean onTarget = Math.abs(\n //encoderValue - Math.abs(Robot.arm.getArmEncoderValue())) <= RobotMap.ArmConstants.ARM_ENCODER_BUFFER;\n boolean hasBeenZeroed = Robot.arm.hasButtonBeenPressed();\n boolean onTarget = false;\n if(initialPos < setpoint) {\n onTarget = Math.abs(Robot.arm.getArmEncoderValue()) >= setpoint;\n }else if(initialPos >= setpoint) {\n onTarget = Math.abs(Robot.arm.getArmEncoderValue()) <= setpoint;\n }\n return this.isTimedOut() || !hasBeenZeroed || onTarget;\n }", "protected boolean isFinished() {\n \n \tif(Math.abs(RobotMap.navx.getAngle() - this.desiredAngle) <=2) {\n \n \t\treturn true;\n \t}\n return false;\n }", "protected boolean isFinished() {\n //\tif(OI.joystickOne.getPOV() == 180){\n \t\t//return true;\n \t//\n \t\t\t\n return false;\n }", "@Override\n public boolean isFinished() {\n return !(System.currentTimeMillis() - currentMs < timeMs) &&\n // Then check to see if the lift is in the correct position and for the minimum number of ticks\n Math.abs(Robot.lift.getPID().getSetpoint() - Robot.lift.getEncoderHeight()) < error\n && ++currentCycles >= minDoneCycles;\n }", "protected boolean isFinished() {\n\t\tif (_timesRumbled == 40) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean isFinished() {\n return System.currentTimeMillis() - timeStarted >= timeToGo;\n }", "protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }", "protected boolean isFinished() {\n \t//finish if distance >= requried distance\n return (Robot.drive.leftEncoder.getDistance() >= distance || Robot.drive.rightEncoder.getDistance() >= distance);\n }", "protected boolean isFinished() {\n \t\n \tif(current_time >= goal) {\n \t\t\n \t\treturn true;\n \t}else {\n \t\t\n \t\treturn false;\n \t}\n }", "public boolean isFinished() {\n\t\t\n\t\treturn drivetrain.angleReachedTarget();\n\n\t}", "protected boolean isFinished() {\n \tdouble angle = Robot.driveBase.getGyroAngle();\n \tdouble angleDelta = Math.abs(requiredAngle - angle);\n \t\tRobot.m_oi.messageDriverStation(\"COMMAND AutoTurnRight DELTA angle is = \" + angleDelta);\n \tif (angleDelta <= kTolerance) {\n \t\tRobot.m_oi.messageDriverStation(\"COMMAND AutoTurnRight ARRIVED angle is = \" + Robot.driveBase.getGyroAngle());\n \t\treturn true;\n \t}\n return false;\n }", "protected boolean isFinished() {\n\t\treturn Robot.oi.ds.isAutonomous();\n\t}", "@Override\n protected boolean isFinished() {\n SmartDashboard.putNumber(\"TurnCommand Current Heading\", Robot.m_drivetrain.getAngle());\n SmartDashboard.putNumber(\"TurnCommand Target\", Start + TurnGoal);\n if (IsLeft) {\n return Robot.m_drivetrain.getAngle() <= Start + TurnGoal;\n } else {\n return Robot.m_drivetrain.getAngle() >= Start + TurnGoal;\n }\n }", "@Override\n public boolean isFinished() {\n// return false;\n return LightningMath.epsilonEqual(shooter.getFlywheelMotor1Velocity(), shooter.motor1setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor2Velocity(), shooter.motor2setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor3Velocity(), shooter.motor3setpoint, Constants.FLYWHEEL_EPSILON);\n }", "@Override\n protected boolean isFinished() {\n if(direction){\n if(leftTarget <= Robot.driveTrain.getLeftEncoderDistanceInches() || rightTarget <= Robot.driveTrain.getRightEncoderDistanceInches()){\n turnPID.resetPID();\n return true;\n } else{\n return false;\n }\n \n } else{\n if(leftTarget >= Robot.driveTrain.getLeftEncoderDistanceInches() || rightTarget >= Robot.driveTrain.getRightEncoderDistanceInches()){\n turnPID.resetPID();\n return true;\n } else{\n return false;\n }\n }\n \n \n }", "@Override\n\tpublic boolean isFinished() {\n\t\treturn (this.timeRemaining == 0);\n\t}", "@Override\r\n protected boolean isFinished() {\r\n \t// we're done when distance pid is done\r\n boolean distFin = mDistController.isFinished() ;\r\n if (distFin) {\r\n Robot.drivetrain.tankDrive(0, 0);\r\n mDistController.stop();\r\n mBearingController.stop();\r\n }\r\n return distFin ; \r\n }", "protected boolean isFinished() {\n\t\treturn Robot.roborio.getYAccelerationComparedToThreshold(threshold, true) || \n\t\t\t\tinitDistance - Robot.drivetrain.getRightEncoderPos(0) < 18 * Drivetrain.kEncoderTicksPerInch; \n\t}", "@Override\n protected boolean isFinished() {\n return Robot.m_elevator.isDone();\n }", "@Override\n public boolean isFinished() {\n return Robot.auton && counter > 50;\n }", "public boolean isFinished() {\n return !rightMotor.isMoving() && !leftMotor.isMoving();\n }", "@Override\n protected boolean isFinished() {\n return Robot.collector.isOpen();\n }", "protected boolean isFinished()\n\t{\n\t\treturn !Robot.oi.respoolWinch.get();\n\t}", "@Override\n protected boolean isFinished() {\n return (!drive.isRunning(Drivetrain.Follower.DISTANCE) && !drive.isRunning(Drivetrain.Follower.ANGLE));\n\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn Math.abs(Robot.lidar.getRange() - range) < 2.0f;\n\t}", "protected boolean isFinished() {\n return shooterWheel.shooterWheelSpeedControllerAft.isEnabled() == false;\n }", "protected boolean isFinished() {\n\t\tLiquidCrystal lcd = RobotMap.lcd;\n\n\t\tif(talonNum == 2 && Math.abs(RobotMap.chassisfrontLeft.getEncVelocity()) < 30){\n \t\tlcd.home();\n \t\tlcd.print(\"Talon2FL/SIM\");\n \t\tRobotMap.chassisfrontLeft.set(0);\n \t\t\n\t\t\t\n\t\t\treturn false;\n\t\t}else if(talonNum == 3 && Math.abs(RobotMap.chassisfrontRight.getEncVelocity()) < 30){\n\t\t\tlcd.home();\n \t\tlcd.print(\"Talon3FR/SIM\");\n \t\tRobotMap.chassisfrontRight.set(0);\n \t\t\n\t\t\t\n\t\t\treturn false;\n\t\t}else if(talonNum == 4 && Math.abs(RobotMap.chassisrearLeft.getEncVelocity()) < 30){\n \t\tlcd.home();\n \t\tlcd.print(\"Talon4RL/SIM\");\n \t\tRobotMap.chassisrearLeft.set(0);\n \t\t\n\t\t\t\n\t\t\treturn false;\n\t\t}else if(talonNum == 5 && Math.abs(RobotMap.chassisrearRight.getEncVelocity()) < 30){\n \t\tlcd.home();\n \t\tlcd.print(\"Talon5RR/SIM\");\n \t\tRobotMap.chassisrearRight.set(0);\n\t\t\t\n\t\t\treturn false;\n\t\t}else if(talonNum == 11 && RobotMap.climberclimbMotor.getOutputCurrent() < 2){\n \t\tlcd.home();\n \t\tlcd.print(\"Talon11Climber/SIM\");\n \t\tRobotMap.climberclimbMotor.set(0);\n\t\t\t\n\t\t\treturn false;\n\t\t}else if(talonNum == 12 && RobotMap.floorfloorLift.getOutputCurrent() < 2){\n \t\tlcd.home();\n \t\tlcd.print(\"Talon12Floor/SIM\");\n \t\tRobotMap.floorfloorLift.set(0);\n\t\t\t\n\t\t\treturn false;\n\t\t}else if(talonNum == 13 && RobotMap.acquisitionacquisitionMotor.getOutputCurrent() < 2){\n \t\tlcd.home();\n \t\tlcd.print(\"Talon13acq/SIM\");\n \t\tRobotMap.acquisitionacquisitionMotor.set(0);\n\t\t\t\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t\n\t}", "public boolean isFinished();", "public final boolean isDone() {\n\t\tboolean result = true;\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\tresult = result && exe.stepIsDone();\n\t\t}\n\t\t// final int matlabWait = 200;\n\t\t// try {\n\t\t// log.debug(\"Waiting to return\");\n\t\t// Thread.sleep(matlabWait);\n\t\t// } catch (InterruptedException e) {\n\t\t// log.debug(\"HEY who woke me up?\");\n\t\t// }\n\t\treturn result;\n\t}", "protected boolean isFinished() {\n //return controller.onTarget();\n return true;\n }", "protected boolean isFinished() {\n\n \tif(weAreDoneSenor == true) {\n\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n \t\n }", "public boolean finished() {\n\t\t\n\t\tfor ( int i = 0; i <this.num; i++) {\n\t\t\tif (this.car[i]!=null) {\n\t\t\t\tif (this.car[i].checkFinished()==false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n return (shooterWheel.shooterWheelSpeedControllerAft.isEnabled() == false && shooterWheel.shooterWheelSpeedControllerFwd.isEnabled() == false);\n }", "@Override\r\n\tboolean isFinished() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(checkForWin() != -1)\r\n\t\t\treturn true;\r\n\t\telse if(!(hasValidMove(0) || hasValidMove(1)))\r\n\t\t\treturn true; //game draw both are stuck\r\n\t\telse return false;\r\n\t}", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "@Override\n protected boolean isFinished() {\n return timeSinceInitialized() > 0.5 && Robot.toteLifterSubsystem.isEjectorExtended();\n }", "@Override\n protected boolean isFinished() {\n if (_timer.get() > 1.0) {\n return true;\n }\n return false;\n }", "public abstract boolean isFinished ();", "protected boolean isFinished() {\n\t\tboolean beyondTarget = Robot.wrist.getCurrentPosition() > safePosition;\n\t\treturn isSafe || beyondTarget;\n\t}", "protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "protected boolean isFinished() {\r\n\t\t \tboolean ans = false;\r\n\t\t \treturn ans;\r\n\t\t }", "protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}", "public boolean isFinished() { \n // Check how much time has passed\n int passedTime = millis()- savedTime;\n if (passedTime > totalTime) {\n return true;\n } else {\n return false;\n }\n }", "protected boolean isFinished() {\r\n if (Math.abs(motorWithEncoder.getSetpoint() - motorWithEncoder.getPosition()) < 0.5) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "@Override\n protected boolean isFinished() {\n return (System.currentTimeMillis() >= thresholdTime || (currentAngle > (totalAngleTurn - 2) && currentAngle < (totalAngleTurn + 2)));\n }", "protected boolean isFinished() {\n \tif(Robot.oi.btnIdle.get()) {\n \t\treturn CommandUtils.stateChange(this, new Idle());\n \t}\n\n \tif( Robot.oi.btnShoot.get()) {\n \t\treturn CommandUtils.stateChange(this, new Shooting()); \n \t}\n \t\n \tif(Robot.oi.btnUnjam.get()){\n \t\treturn CommandUtils.stateChange(this, new Unjam());\n \t}\n return false;\n }", "@Override\n public boolean isFinished() {\n double[] positions = drivetrain.getPositions();\n\n return Math.abs(positions[0] - targetDistance) <= allowedError && Math.abs(positions[1] - targetDistance) <= allowedError;\n }", "protected boolean isFinished() {\n\t\treturn isTimedOut();\n\t}", "protected boolean isFinished() {\r\n return isTimedOut();\r\n }", "protected boolean isFinished() {\n\t\tif (up && isTimedOut()) {\n\t\t\tRobot.launcher.setIsTilterAtBottom(true);\n\t\t\treturn true;\n\t\t}\n\t\tif (up == false && Robot.tilterLimitSwitch.get()) {\n\t\t\tRobot.launcher.setIsTilterAtBottom(false);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected boolean isFinished(){\r\n return true;\r\n }", "@Override\n protected boolean isFinished() {\n return Robot.arm.getArmLimitSwitch();\n }", "protected boolean isFinished() {\n\t\tif(switchSide) {\n\t\t\treturn !launchCubeSwitch.isRunning() && state == 4;\n\t\t}\n\t\telse if(scaleSide) {\n\t\t\treturn !launchCubeScale.isRunning() && state == 4;\n\t\t}\n\t\telse {\n\t\t\treturn !crossLine.isRunning() && timer.get() > 1;\n\t\t}\n\t}", "protected boolean isFinished() {\n return isTimedOut();\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n\t\treturn pid.onTarget();\n\t}", "@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }", "Boolean isFinished();", "boolean isFinished();", "protected boolean isFinished() {\n\t\treturn true;\n\t}" ]
[ "0.77990574", "0.77670395", "0.7742199", "0.76799935", "0.7620455", "0.76136804", "0.76087373", "0.75904506", "0.7573437", "0.75587976", "0.7475847", "0.7465323", "0.74397206", "0.74275213", "0.74241245", "0.7417663", "0.74139357", "0.7406421", "0.7402047", "0.73515004", "0.73091316", "0.7308459", "0.73047894", "0.73023343", "0.72895175", "0.72764444", "0.72720313", "0.7256047", "0.7225757", "0.7225651", "0.7222863", "0.72139114", "0.7212808", "0.7208497", "0.71970683", "0.71744514", "0.71698886", "0.7155455", "0.7151447", "0.71390724", "0.71281844", "0.71121585", "0.70984155", "0.70960706", "0.70939475", "0.70898205", "0.7075215", "0.70458746", "0.7035299", "0.7031244", "0.7024234", "0.7024098", "0.7023114", "0.70160097", "0.70101064", "0.69589055", "0.69559246", "0.6939218", "0.69276536", "0.6923818", "0.6903829", "0.6902653", "0.6896173", "0.68864787", "0.6884416", "0.6882009", "0.6880614", "0.6855617", "0.6846813", "0.68450415", "0.6843849", "0.68309987", "0.6829561", "0.6821469", "0.6821271", "0.6814661", "0.68121195", "0.6793511", "0.67901653", "0.6781012", "0.6780206", "0.677816", "0.6767827", "0.6766687", "0.6760098", "0.6755722", "0.67386645", "0.6729918", "0.6721707", "0.6719455", "0.6719455", "0.6719455", "0.6719455", "0.6719455", "0.6719455", "0.6717894", "0.6717782", "0.67133224", "0.67100686", "0.67099196" ]
0.7488119
10
/ This is called when the match ends or if isFinished returns true. all systems should be disabled at this point.
protected void end() { // we are ending the, stop moving the robot Robot.driveSubsystem.arcadeDrive(0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "@Override\n protected boolean isFinished() \n {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\n protected boolean isFinished()\n {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n boolean isFinished() {\n return false;\n }", "protected void end() {\n isFinished();\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}", "@Override\n public boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\r\n\treturn false;\r\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "@Override\n protected void end() {\n if (!extend) Robot.rearHatch.stopRearHatch();\n }", "protected boolean isFinished() {\n return false;\n \n }", "void finishMatch() {\n\t\tint playerResult = ParticipantResult.MATCH_RESULT_NONE;\n\t\tint opponentResult = ParticipantResult.MATCH_RESULT_NONE;\n\n\t\tif (!GameActivity.gameMachine.player.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, false);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t} else if (!GameActivity.gameMachine.opponent.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, true);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t}\n\n\t\tArrayList<ParticipantResult> results = new ArrayList<ParticipantResult>();\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getMyId(\n\t\t\t\tgameHelper.getApiClient(), match), playerResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getOpponentId(\n\t\t\t\tgameHelper.getApiClient(), match), opponentResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tif (match.getStatus() == TurnBasedMatch.MATCH_STATUS_ACTIVE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId(),\n\t\t\t\t\t\twriteGameState(match), results);\n\t\t\t\tturnUsed = true;\n\t\t\t\tremoveNotification();\n\t\t\t}\n\t\t} else if (match.getStatus() == TurnBasedMatch.MATCH_STATUS_COMPLETE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId());\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onStop() {\n super.onStop();\n mListener.onMatchMadeDialogSeen();\n }", "protected boolean isFinished() {\n\t\treturn false;\r\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}" ]
[ "0.68065155", "0.67469037", "0.674513", "0.674513", "0.67423", "0.67423", "0.67256284", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.671753", "0.6715514", "0.67122173", "0.6678932", "0.6678932", "0.66599023", "0.662879", "0.6627765", "0.6627765", "0.66226107", "0.66226107", "0.66226107", "0.66226107", "0.66226107", "0.66226107", "0.66226107", "0.66226107", "0.66226107", "0.6610626", "0.66051316", "0.66051316", "0.66051316", "0.66051316", "0.66051316", "0.6575976", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65751714", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.65652555", "0.6545337", "0.65264624", "0.65206677", "0.6501074", "0.64744574", "0.6455339" ]
0.0
-1
/ This is called if for some reason the normal operation of the robot is cancelled by an external action.
protected void interrupted() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void finalAction(){\n Robot.stop();\n requestOpModeStop();\n }", "public void cancel(){\n cancelled = true;\n }", "public void cancel() {\n\t\tcancelled = true;\n\t}", "public abstract boolean cancel();", "protected boolean reallyCancel() throws Exception { return true; }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "public void cancel()\n\t{\n\t}", "public boolean cancel();", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "public void cancel() {\n\t}", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\n public void cancel() {\n\n }", "void cancelOriginal();", "@Override\n public void cancel() {\n }", "public synchronized void cancel() {\n }", "@Override\n public boolean isCancelled() {\n return false;\n }", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "public void cancel();", "@Override\n public void cancel() {\n\n }", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "abstract protected void cancelCommands();", "public void abort() {\n isAborted = true;\n cancelCommands();\n cancel(true);\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }", "public void cancel( String reason );", "public void cancel() {\n\t\tcancel(false);\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "protected abstract void onCancel();", "protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "protected void interrupted() {\n \tRobot.conveyor.stop();\n }", "public void cancelToolAction()\n {\n getActiveTool().endAction();\n m_bActionCancelled = true;\n }", "@Override\r\n\tprotected void onCancelled() {\n\t\tsuper.onCancelled();\r\n\t}", "public void cancel() {\r\n\t\tbStop = true;\r\n\t}", "@Override\n public void abort() {\n giocoinesecuzione = null;\n }", "void analysisCancelled();", "@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n public boolean isCancelled() { return this.cancel; }", "public void cancel() {\n/* 170 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }", "@Override\r\n\tpublic boolean isCanceled() {\n\t\treturn false;\r\n\t}", "public boolean isCancelled() {\n\t\treturn false;\n\t}", "@Override\n protected void interrupted() {\n Robot.drive.setCoastMode();\n Robot.tapeAlignSys.disable();\n Robot.lidarAlignSys.disable();\n }", "@Override\n public void checkCancelled() throws SVNCancelException {\n }", "@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\tpublic boolean isCanceled() {\n\t\t\treturn false;\n\t\t}", "@Override\n\tpublic boolean isCancelled() {\n\t\treturn cancelled;\n\t}", "public void cancel() {\n btCancel().push();\n }", "public void onCancel();", "public native static int cancel();", "boolean isCancelled();", "private void onCancel() {\n System.exit(0);\r\n dispose();\r\n }", "public void onCancelled() {\n this.cancelled = true;\n }", "private void onCancel() {\n cancelDisposalProcess();\n }", "@Override\n\tprotected void onCancelled()\n\t{\n\t\tsuper.onCancelled();\n\t}", "public void checkCancel() throws CancellationException;", "public void m33491b() {\n Action<String> aVar = f26278b;\n if (aVar != null) {\n aVar.mo21403a(\"User canceled.\");\n }\n f26277a = null;\n f26278b = null;\n finish();\n }", "public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }", "void cancelProduction();", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t}", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "void onCancel();", "public void cancel() {\n\t\tinterrupt();\n\t}", "public void mo42332a() {\n this.f36204P.cancel();\n mo42330e();\n }", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "public void onCancelled();", "public abstract boolean cancelable();", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "protected void interrupted() {\n\t\tRobot.roboDrive.stopMotor();\n\t}", "protected abstract void handleCancel();", "protected void onPdCancel(){\r\r\t}", "@Override\n protected void onCancel() {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}" ]
[ "0.7222925", "0.7124642", "0.6998528", "0.6960696", "0.6943702", "0.68907124", "0.68756455", "0.6841804", "0.6836578", "0.68335664", "0.68331033", "0.68331033", "0.68331033", "0.68319726", "0.68316716", "0.682359", "0.6819797", "0.6819797", "0.6819797", "0.6819797", "0.6819797", "0.6819797", "0.68190867", "0.67940944", "0.6773146", "0.67673373", "0.6766877", "0.67663586", "0.6747391", "0.67428356", "0.67428356", "0.67428356", "0.67428356", "0.67428356", "0.6735439", "0.6728337", "0.67218983", "0.67155665", "0.6703929", "0.66567", "0.66524345", "0.66524345", "0.6617609", "0.6613556", "0.65898407", "0.65831274", "0.65831274", "0.65831274", "0.65787566", "0.65614057", "0.6552593", "0.6552593", "0.6534369", "0.65167755", "0.65167755", "0.65167755", "0.6503466", "0.64944667", "0.64842445", "0.6478374", "0.6466417", "0.6457837", "0.64412004", "0.64356583", "0.64343596", "0.64327276", "0.64214087", "0.6398372", "0.63909477", "0.63887095", "0.63846755", "0.6382477", "0.6381306", "0.6376549", "0.63600653", "0.6359156", "0.63477576", "0.6344847", "0.63427466", "0.6342256", "0.63421726", "0.6338862", "0.63281727", "0.63257015", "0.63156545", "0.6309392", "0.6309392", "0.6309392", "0.62973136", "0.62930024", "0.628845", "0.627767", "0.6266333", "0.6262005", "0.6248461", "0.624325", "0.62397856", "0.62392974", "0.62375695", "0.6235895", "0.622936" ]
0.0
-1
Protected constructor for JSON serialization.
protected DateFieldMetadata() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "private JsonUtils() {\n\t\tsuper();\n\t}", "public JsonFactory() { this(null); }", "public JsonRequestSerializer() {\n this(JNC.GSON);\n }", "public ClaseJson() {\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public JSONLoader() {}", "private JSON() {\n\t}", "public MinecraftJson() {\n }", "private JsonUtils() { }", "private JsonUtils() {}", "public JsonArray() {\n }", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public JsonField() {\n }", "public ParamJson() {\n\t\n\t}", "public JsonUtil() {\r\n this.jsonSerializer = new JSONSerializer().transform(new ExcludeTransformer(), void.class).exclude(\"*.class\");\r\n }", "public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}", "public JSONModel() {\n jo = new JSONObject();\n }", "public AuthorizationJson() {\n }", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}", "Gson() {\n }", "public JSONNode() {\n map = new HashMap<>();\n }", "private DatasetJsonConversion() {}", "private JSONMessageFactory(){}", "public Response() {\n objectMap = new JSONObject<>();\n }", "protected abstract JSONObject build();", "public JSONUser(){\n\t}", "protected JsonFactory(JsonFactory src, ObjectCodec codec)\n/* */ {\n/* 293 */ this._objectCodec = null;\n/* 294 */ this._factoryFeatures = src._factoryFeatures;\n/* 295 */ this._parserFeatures = src._parserFeatures;\n/* 296 */ this._generatorFeatures = src._generatorFeatures;\n/* 297 */ this._characterEscapes = src._characterEscapes;\n/* 298 */ this._inputDecorator = src._inputDecorator;\n/* 299 */ this._outputDecorator = src._outputDecorator;\n/* 300 */ this._rootValueSeparator = src._rootValueSeparator;\n/* */ }", "public KafkaJsonSerializer() {\n\n }", "public JSONWriter()\n {\n _features = 0;\n _writeNullValues = false;\n _writerLocator = null;\n _treeCodec = null;\n _generator = null;\n _timezone = DEFAULT_TIMEZONE;\n }", "public InvalidJsonException() {\n\t\tsuper();\n\t}", "public abstract JsonElement serialize();", "CategoryJsonWriterImpl() {\r\n\t\tsuper();\r\n\t}", "private JsonUtil() {\n this.parser = new JSONParser();\n get_text();\n }", "protected BusinessObjectMapper() {\n }", "public CustomDateSerializer() {\n this(null);\n }", "public WCSResponseSerializer()\r\n {\r\n }", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "public abstract Object toJson();", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "private SerializerFactory() {\n // do nothing\n }", "@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }", "public JSONResponse(String jsonString) {\n this.jsonString = jsonString;\n }", "public abstract String toJson();", "private Field(String jsonString) {\n this.jsonString = jsonString;\n }", "public JSONArray() {\n\t\tsuper();\n\t}", "public JsonServlet() {\n\t\tsuper();\n\t}", "private SerializationUtils() {\n\n }", "public JsonpConnectionInfo() {\n }", "public JsonHttpChannel() {\n this.defaultConstructor = new JsonHttpEventFactory();\n }", "private JArray()\n {\n throw new UnsupportedOperationException(\"Unsupported operation: uninstantiable utility class.\");\n }", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "public ResultJsonView() {\r\n }", "public JsonObject(JsonObject o)\n\t{\n\t\tsuper(o);\n\t\tsetup();\n\t\t\n\t\tvalues.putAll(o.values);\n\t}", "public JSONLoader( LoadingManager manager ) {}", "protected Object readResolve()\n/* */ {\n/* 353 */ return new JsonFactory(this, this._objectCodec);\n/* */ }", "public ChatMember(JsonObject json) {\n\n }", "public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }", "public JSONModel(final JSONObject json) {\n if (json == null) {\n throw new IllegalArgumentException(\"JSONObject argument is null\");\n }\n jo = json;\n }", "public abstract String toJsonString();", "public JSONPostUtility(String requestURL)\n throws IOException {\n //call super constructor\n super(requestURL, \"POST\");\n //set the content type\n super.addHeader(\"Content-Type\", \"application/json;charset=\" + super.charset);\n super.addHeader(\"Accept\", \"application/json\");\n }", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "public Info(String json) {\n super(json);\n }", "public TestRunJsonParser(){\n }", "protected JsonObject(String objStr, int startIndex, boolean delayed) throws JsonParseException\n\t{\n\t\tsuper(objStr, startIndex, delayed, ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t}", "public JSONString(String stringIn)\n {\n this.string = stringIn;\n }", "public Data() {\n \n }", "private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}", "public Data() {}", "MyEncodeableWithoutPublicNoArgConstructor() {}", "public JsonFactory setCodec(ObjectCodec oc)\n/* */ {\n/* 721 */ this._objectCodec = oc;\n/* 722 */ return this;\n/* */ }", "public void jsContructor() {\n }", "public JsonDataset(URL url) {\r\n\t\tsuper(url);\r\n\t\tlogger.trace(\"JsonDataset(URL) - start\");\r\n\t\tlogger.trace(\"JsonDataset(URL) - end\");\r\n\t}", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "public JsonHttpChannel(FromJsonHttp defaultConstructor) {\n this.defaultConstructor = defaultConstructor;\n }", "public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }", "private SingleObject(){}", "public JS_IO() {\n init();\n }", "public Data() {\n }", "public Data() {\n }", "public JsonPath()\r\n {\r\n numberOfParameters = 2;\r\n }", "public JSONHeldEventSerializationHelperTest() {\n\t\tsuper(1, \"JSONHeldEventSerializationHelperTest\");\n\t}", "public LegProfile ()\n {\n\t// For Jackson ObjectMapper's sanity!\n }", "private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }", "public TSimpleJSONProtocol(TTransport trans, boolean useBase64) {\n super(trans);\n this.delegate =\n useBase64 ? new Base64TSimpleJSONProtocol(trans) : new DefaultTSimpleJSONProtocol(trans);\n }", "public JacksonAdapter() {\n simpleMapper = initializeObjectMapper(new ObjectMapper());\n //\n xmlMapper = initializeObjectMapper(new XmlMapper());\n xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);\n xmlMapper.setDefaultUseWrapper(false);\n //\n ObjectMapper flatteningMapper = initializeObjectMapper(new ObjectMapper())\n .registerModule(FlatteningSerializer.getModule(simpleMapper()))\n .registerModule(FlatteningDeserializer.getModule(simpleMapper()));\n jsonMapper = initializeObjectMapper(new ObjectMapper())\n // Order matters: must register in reverse order of hierarchy\n .registerModule(AdditionalPropertiesSerializer.getModule(flatteningMapper))\n .registerModule(AdditionalPropertiesDeserializer.getModule(flatteningMapper))\n .registerModule(FlatteningSerializer.getModule(simpleMapper()))\n .registerModule(FlatteningDeserializer.getModule(simpleMapper())); }", "public Payload() {}", "private SingleObject()\r\n {\r\n }", "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "public JsonDataset(Path path) {\r\n\t\tsuper(path);\r\n\t\tlogger.trace(\"JsonDataset(Path) - start\");\r\n\t\tlogger.trace(\"JsonDataset(Path) - end\");\r\n\t}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "protected RestClient() {\n }", "@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }", "public static synchronized JacksonAdapter createDefaultSerializerAdapter() {\n if (serializerAdapter == null) {\n serializerAdapter = new JacksonAdapter();\n }\n return serializerAdapter;\n }", "public final native String toJson() /*-{\n // Safari 4.0.5 appears not to honor the replacer argument, so we can't do this:\n \n // var replacer = function(key, value) {\n // if (key == '__key') {\n // return;\n // }\n // return value;\n // }\n // return $wnd.JSON.stringify(this, replacer);\n \n var key = this.__key;\n delete this.__key;\n var rf = this.__rf;\n delete this.__rf;\n var gwt = this.__gwt_ObjectId;\n delete this.__gwt_ObjectId;\n // TODO verify that the stringify() from json2.js works on IE\n var rtn = $wnd.JSON.stringify(this);\n this.__key = key;\n this.__rf = rf;\n this.__gwt_ObjectId = gwt;\n return rtn;\n }-*/;", "public static JsonAdapter.Factory create() {\n return nullSafe(new AutoValueMoshi_AutoValueFactory());\n }", "private AggregDayLogSerializer() {\n\t throw new UnsupportedOperationException(\n\t \"This class can't be instantiated\");\n\t }", "protected HttpJsonAgentsStub(AgentsStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new HttpJsonAgentsCallableFactory());\n }" ]
[ "0.7922768", "0.7544877", "0.7534503", "0.74213886", "0.7403433", "0.73829734", "0.73770386", "0.72506285", "0.7167426", "0.7158777", "0.7120367", "0.7069752", "0.70685524", "0.7015415", "0.7002678", "0.6913897", "0.6872082", "0.6841221", "0.6782336", "0.67653865", "0.67548305", "0.6744661", "0.66871446", "0.6647648", "0.6604307", "0.65797365", "0.65516424", "0.65491337", "0.65387297", "0.65029156", "0.63503647", "0.6345137", "0.6309363", "0.6307781", "0.62856233", "0.62695134", "0.6258895", "0.6175412", "0.6155986", "0.61497015", "0.61026704", "0.6059565", "0.600756", "0.5981313", "0.5959451", "0.5958281", "0.59562683", "0.5946935", "0.59313124", "0.5921133", "0.5915233", "0.5912513", "0.5890585", "0.58892083", "0.58650565", "0.5863014", "0.585968", "0.585756", "0.5792862", "0.57896405", "0.57481647", "0.57133067", "0.57061136", "0.56985444", "0.569473", "0.56836116", "0.56760705", "0.5676049", "0.5666907", "0.56371206", "0.56314546", "0.5629973", "0.5618046", "0.5605917", "0.56000257", "0.5598216", "0.5596087", "0.5595331", "0.5594766", "0.55923605", "0.5575798", "0.5575798", "0.55641663", "0.55622464", "0.55606896", "0.5551589", "0.5548195", "0.55474854", "0.55243284", "0.5523767", "0.5520642", "0.551614", "0.5514062", "0.5512502", "0.5511924", "0.55040306", "0.550125", "0.5491859", "0.54857665", "0.5474775", "0.5464016" ]
0.0
-1
This util function will format the string which seperate by comma
public static String formatCommaString(String text){ String[] arr = text.split(","); String result=""; for(String s: arr){ if(!"".equalsIgnoreCase(s.trim())){ result+=s+","; } } if(result.endsWith(",")){ result=result.substring(0,result.length()-1); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String commaDelimited(String strs[]) {\n StringBuffer sb = new StringBuffer();\n if (strs.length > 0) {\n sb.append(Utils.encToURL(strs[0]));\n for (int i=1;i<strs.length;i++) sb.append(\",\" + Utils.encToURL(strs[i]));\n }\n return sb.toString();\n }", "public static String buildCommaSeperatedValues(ArrayList input) throws Exception{\r\n\t\tString retString = \"\";\r\n\t\tif(input != null){\r\n\t\tfor(int i=0; i<input.size(); i++){\r\n\t\t\tretString = retString + \",\" +input.get(i);\r\n\t\t}\r\n\t\tretString = retString.substring(1);\r\n\t\t}\r\n\t\treturn retString;\t\t\r\n\t}", "private String formatCSV(String value){\r\n\t\treturn value.replaceAll(\"\\\"\",\"\\\"\\\"\");\r\n\t}", "public static String outputFormatter(ArrayList<String> output){\r\n\t\treturn output.toString().replace(\",\", \"\").replace(\"[\", \"\").replace(\"]\", \"\");\r\n\t}", "private StringBuffer removeCommasAtEnd(StringBuffer sql) {\r\n int i=sql.length()-3;\r\n while(i>0 && (sql.charAt(i)==' ' || sql.charAt(i)==','))\r\n i--;\r\n sql = sql.replace(i+1,sql.length()-2,\" \");\r\n\r\n return sql;\r\n }", "private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }", "private String convertListToCommaDelimitedString(List<String> list) {\n\n\t\tString result = \"\";\n\t\tif (list != null) {\n\t\t\tresult = StringUtils.arrayToCommaDelimitedString(list.toArray());\n\t\t}\n\t\treturn result;\n\n\t}", "public static String insertCommas(String strString)\r\n {\r\n StringBuffer sb = new StringBuffer(strString);\r\n for (int i = sb.length() - 3; i > 0; i -= 3)\r\n {\r\n sb.insert(i, ',');\r\n }\r\n return sb.toString();\r\n }", "private static String removeFormatForNumberStr(String str){\n String result = str;\n if(result != null){\n if(result.contains(\",\")){\n result = result.replace(\",\", \"\");\n }\n if(result.contains(\" \")){\n result = result.replace(\" \", \"\");\n }\n }\n return result;\n }", "public String generate(List<BasketSeriesItemBean> seriesItems){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint size = seriesItems.size();\n\t\tfor(int i=0; i < size ; i++) {\n\t\t\tBasketSeriesItemBean bsib = seriesItems.get(i);\n\t\t\tsb.append(bsib.getSeriesId());\n\t\t\tsb.append(\",\");\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tint lastComma = sb.lastIndexOf(\",\");\n\t\t\n\t\t//System.out.println(\"char at length - 1: \" + sb.charAt(sb.length() - 1) + \" length: \" + sb.length() + \" lastComma: \" + lastComma);\n\t\tsb.replace(lastComma, lastComma, \"\");\n\t\tsb.trimToSize();\n\t\t//System.out.println(\"length: \" + sb.length());\n\t\treturn sb.toString();\n\t}", "private String format(ArrayList<Location> locs) {\n String res = \"\";\n for (Location loc : locs) {\n res += loc.getLatitude() + \"-\" + loc.getLongitude() + \";\";\n }\n return res;\n }", "public static String toCommaSeparatedValues(final List<String> list) {\n if (list == null || list.isEmpty()) {\n return \"\";\n }\n final int listSize = list.size();\n final StringBuilder builder = new StringBuilder();\n for (int i=0; i<listSize; i++) {\n if (i>0) {\n builder.append(',');\n }\n builder.append(list.get(i));\n }\n return builder.toString();\n }", "private static String escape(String s) {\n StringBuilder buf = new StringBuilder();\n int length = s.length();\n for (int i = 0; i < length; i++) {\n char c = s.charAt(i);\n if (c == ',') {\n buf.append(\"\\\\,\");\n } else {\n buf.append(c);\n }\n }\n\n return buf.toString();\n }", "public static String commas(Iterable<?> parts) {\n return join(\", \", parts);\n }", "protected String convertModelOptionsToCommaDelimStr(List<ModelOption> modelOptions) {\n StringBuilder sb = new StringBuilder();\n int cnt = 0;\n for (ModelOption modelOption : modelOptions) {\n if (cnt > 0) {\n sb.append(\",\");\n }\n sb.append(modelOption.getModelId() + \"\");\n cnt++;\n }\n return sb.toString();\n }", "private String buildTagString(ArrayList<String> tagList) {\n String tags = \"\";\n\n for (int i = 0; i < tagList.size(); i++) {\n tags += tagList.get(i);\n\n if (i != tagList.size() - 1)\n tags += \", \";\n }\n\n return tags;\n }", "private String removeLastComma(String str) {\n if (str.length() > 0 && str.charAt(str.length()-1)==',') {\n str = str.substring(0, str.length()-1);\n }\n return str;\n }", "public static String formatLabel(String lbl){\n\t\t\n\t\t// XXX There is be a better way to do this...\n\t\tlbl = lbl.replaceAll(\",\", \"COMMA\");\n\t\tlbl = lbl.replaceAll(\"\\\\$\", \"DOL\");\n\t\tlbl = lbl.replaceAll(\"\\\\?\", \"QMARK\");\n\t\tlbl = lbl.replaceAll(\"\\\\!\", \"EXCMARK\");\n\t\tlbl = lbl.replaceAll(\"'\", \"\");\n\t\t\n\t\treturn lbl;\n\t}", "private String getDepartmentString() {\n String[] departments = contact.getDepartment().split(\"\\\\$\");\n String result = \"\";\n for (String dept : departments)\n result += dept.replace('~', ',') + \"\\n\";\n return result;\n }", "protected String createEmailString(Set emails) {\n StringBuffer commaDelimitedString = new StringBuffer();\n Iterator emailIterator = emails.iterator();\n \n while (emailIterator.hasNext()) {\n String mappedUser = (String) emailIterator.next();\n // append default suffix if need to\n if (mappedUser.indexOf(\"@\") < 0) {\n mappedUser += defaultSuffix;\n }\n \n commaDelimitedString.append(mappedUser);\n if (emailIterator.hasNext()) {\n commaDelimitedString.append(\",\");\n }\n } \n \n LOG.debug(\"List of emails: \" + commaDelimitedString);\n \n return commaDelimitedString.toString();\n }", "@Override\n public String toString() {\n // [Durga,CEO,30000.00,Hyderabad, THEJA,COO,29000.00,Bangalore]\n // String string = String.format(\"%s,%s,%.2f,%s\", name, designation, salary, city);\n String string = String.format(\"(%s,%s,%.2f,%s)\", name, designation, salary, city);\n return string;\n }", "private static String formStringFromList(List<Long> ids)\n {\n if (ids == null || ids.size() == 0)\n return null;\n\n StringBuilder idsBuffer = new StringBuilder();\n for (Long id : ids)\n {\n idsBuffer.append(id).append(\",\");\n }\n\n return idsBuffer.toString().substring(0, idsBuffer.length() - 1);\n }", "private static String removeDigitGroupSeparators(final String input)\n {\n final String output = input.trim();\n\n // Replace one occurrence only, otherwise we will generate an incorrect result\n if (output.contains(\",\"))\n {\n return output.replace(\",\", \"\");\n }\n else\n {\n return output.replace(\".\", \"\");\n }\n }", "public String getCSVString() {\n return getId() + \",\" + noOfRounds + \",\" + caliber + \",\" + manufacturer + \",\" + price;\n }", "static public String getListAsCSV(List<String> list) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tif (list != null) {\r\n\t\t\tfor (Iterator<String> i = list.iterator(); i.hasNext();) {\r\n\t\t\t\tString str = i.next();\r\n\r\n\t\t\t\t// If the string contains a slash make it appear as \\\\ in the\r\n\t\t\t\t// protocol\r\n\t\t\t\t// 1 slash in Java/regex is \\\\\\\\\r\n\t\t\t\tstr = str.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\r\n\t\t\t\tstr = str.replaceAll(\",\", \"\\\\\\\\,\");\r\n\t\t\t\tsb.append(str);\r\n\r\n\t\t\t\tif (i.hasNext()) {\r\n\t\t\t\t\tsb.append('\\\\');\r\n\t\t\t\t\tsb.append(',');\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}", "private String[] commaDelimited(String str) {\n StringTokenizer st = new StringTokenizer(str,\",\");\n String strs[] = new String[st.countTokens()];\n for (int i=0;i<strs.length;i++) strs[i] = Utils.decFmURL(st.nextToken());\n return strs;\n }", "String toCSVString();", "private static String formatActorsString(List<Actor> actors) {\n\t\tString actorsString = \"\";\n\t\tfor(int i = 0; i < actors.size(); i++) {\n\t\t\tActor actor = actors.get(i);\n\t\t\tif(i != actors.size() - 1) {\n\t\t\t\tactorsString += actor.getName() + \", \";\n\t\t\t} else {\n\t\t\t\tactorsString += actor.getName();\n\t\t\t}\n\t\t}\n\t\tif(actorsString.length() >= 54) {\n\t\t\tactorsString = actorsString.substring(0, 50);\n\t\t\tactorsString += \"...\";\n\t\t}\n\t\treturn actorsString;\n\t}", "public void numbersToString(Context ctx){\n\t\t\tboolean first = true;\t\t\t\t\t\t\t\t// if the first dont put a comma\n\t\t\tnamesText = \"\";\t\t\t\t\t\t\t\t\t\t// start of namestext\n\t\t\tfor(String n : numbers.keySet()){\t\t\t\t\t// for all the numbers\n\t\t\t\tString name = numberToString(n,ctx);\t\t\t// get the contact\n\t\t\t\tif(name == null)\t\t\t\t\t\t\t\t// if its null\n\t\t\t\t\tname = n;\t\t\t\t\t\t\t\t\t// name is number\n\t\t\t\tif(!first)\t\t\t\t\t\t\t\t\t\t// if it isnt the first\n\t\t\t\t\tnamesText = namesText + \",\" + name;\t\t\t// put a comma in between\n\t\t\t\telse{\t\t\t\t\t\t\t\t\t\t\t// if it is the fist\n\t\t\t\t\tnamesText = name;\t\t\t\t\t\t\t// put it with no comma\n\t\t\t\t\tfirst = false;\t\t\t\t\t\t\t\t// and say that its not the first\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public String toStringPrologFormatListLo()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Location lo : this.listLocation)\r\n\t\t{\r\n\t\t\toutput += lo.LocationToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\treturn output;\t\r\n\t}", "public static String arrayToCommaSeparatedString(String[] arr) {\n return arrayToSeparatedString(arr, ',');\n }", "public String toString() {\r\n\t\tString output = \"\";\r\n\t\tfor (int n = 0; n < parts.size(); n++){\r\n\t\t\toutput = output + parts.get(n) + \", \";\r\n\t\t}\r\n\t\t\r\n\t\tint toAdd = 5 - parts.size(); \r\n\t\t\t\r\n\t\tfor( int i = 0; i < toAdd; i++ ) {\r\n \t\r\n\t\toutput = output + \"[ ], \";\r\n \r\n\t\t} \r\n\t\t\r\n\t\treturn output;\r\n\t\t\t\r\n\t}", "public static String formatTagString(final List<Tag> tagList) {\r\n\t\tfinal StringBuilder s = new StringBuilder(\"\");\r\n\t\tIterator<Tag> tagI = tagList.iterator();\r\n\t\twhile (tagI.hasNext())\r\n\t\t\ts.append((tagI.next().getName()) + (tagI.hasNext() ? \", \" : \"\"));\r\n\r\n\t\treturn s.toString();\r\n\t}", "private void replaceCommaToDot(String contentString)\n {\n char[] charArray = contentString.toCharArray();\n \n for(int i = 0; i < charArray.length; i++)\n {\n //if comma, then replace to dot.\n if(charArray[i] == ',')\n {\n charArray[i] = '.'; \n }\n } \n //reconvert to String.\n contentString = charArray.toString();\n }", "private String array2CSV(){\r\n String returnMsg = \"\";\r\n for(String[] line : this.linesToPrint){\r\n for(String item : line){\r\n returnMsg += item;\r\n returnMsg += \";\";\r\n }\r\n returnMsg = returnMsg.substring(0,returnMsg.length()-1);\r\n returnMsg += \"\\n\";\r\n }\r\n return returnMsg;\r\n }", "private String getCSVSeparator(){\n DecimalFormatSymbols s = new DecimalFormatSymbols(getLocale());\n if(s.getDecimalSeparator() == ',')\n return \";\";\n else\n return \",\";\n }", "public String join() {\n String result = \"\";\n\n for(int i = 0; i < list.size(); i++) {\n result += list.get(i);\n if (i < list.size() - 1) {\n result += \", \";\n }\n }\n\n return result;\n }", "@Override\n\tpublic String toText() {\n\t\treturn TextParserUtil.toText(rInfoList, \",\");\n\t}", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public String listToString(List<String> list) {\n return TextUtils.join(\", \", list);\n }", "public static void exampleStringJoiner() {\n\t\tStringJoiner example1 = new StringJoiner(\",\"); // passing comma(,) as delimiter\r\n\r\n\t\t// Adding values to StringJoiner\r\n\t\texample1.add(\"Rohini Example1\");\r\n\t\texample1.add(\"Alex Example1\");\r\n\t\texample1.add(\"Peter Example1\");\r\n\r\n\t\tSystem.out.println(\"Example 1 - passing comma(,) as delimiter ... \\n\" + example1);\r\n\t\t\r\n\t\t// Example 2 - passing comma(,) and square-brackets (adding prefix and suffix) as delimiter\r\n\t\tStringJoiner example2 = new StringJoiner(\":\", \"[\", \"]\"); // passing comma(,) and square-brackets as delimiter\r\n\r\n\t\t// Adding values to StringJoiner\r\n\t\texample2.add(\"Rohini Example2\");\r\n\t\texample2.add(\"Raheem Example2\");\r\n\t\tSystem.out.println(\"\\nExample 2 - passing comma(:) and square-brackets (adding prefix and suffix) as delimiter ... \\n\" + example2);\r\n\r\n\t\t// Example 3 - Merge Two StringJoiner\r\n\t\tStringJoiner merge = example1.merge(example2);\r\n\t\tSystem.out.println(\"\\nExample 3 - Merge Two StringJoiner ... \\n\" + merge);\r\n\t}", "protected abstract String format();", "@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"[\");\n\t\tstringBuilder.append(a);\n\t\tstringBuilder.append(\",\");\n\t\tstringBuilder.append(b);\n\t\tstringBuilder.append(\"]\");\n\t\treturn stringBuilder.toString();\n\t\t}", "private static String format(String value) {\n String result = value;\n if (result.contains(\"\\\"\")) {\n result = result.replace(\"\\\"\", \"\\\"\\\"\");\n }\n return result;\n\n }", "public String puncRemoved(String payment){\n String result = \"\";\n for(int i = 0; i < payment.length(); i++){\n if(payment.charAt(i) != ','){\n result = result + payment.charAt(i);\n }\n }\n return result;\n }", "public static String commafyF(int n) {\n //convert n tostr to allow for comma addition\n String ns = Integer.toString(n);\n \n //if d(n)>3, we add commas every third digit\n for(int i = ns.length(); i > 3; i-=3) {\n \n //first d(n)-3 digits, comma, last 3 digits\n ns = ns.substring(0,i-3) + \",\" + ns.substring(i-3);\n }\n return ns;\n }", "public static String commas(Object a, Object... more) {\n if (a instanceof Iterable<?> && more.length == 0) {\n return join(\", \", (Iterable<?>) a);\n }\n List<Object> all = new ArrayList<>(more.length + 1);\n return commas(all);\n }", "public static String format(Long input) {\n DecimalFormat formatter = new DecimalFormat(\"###,###,###\");\n String result = formatter.format(input);\n return result;\n }", "public String toStringPrologFormatListChar()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Character ch : this.listCharacter)\r\n\t\t{\r\n\t\t\toutput += ch.CharToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public String toCsvRow() {\r\n\t return Stream.of(String.valueOf(TxnsRefNo),Description)\r\n\t .map(value -> value.replaceAll(\"\\\"\", \"\\\"\\\"\"))\r\n\t .map(value -> Stream.of(\"\\\"\", \",\").anyMatch(value::contains) ? \"\\\"\" + value + \"\\\"\" : value)\r\n\t .collect(Collectors.joining(\",\"));\r\n\t}", "public static String toDotDecimalSeparator(String str) {\r\n return str.replaceAll(\",(?=[0-9]+,)\", \"\").replaceAll(\",\", \".\");\r\n }", "public static void stringsJoining() {\n\n StringJoiner joiner = new StringJoiner(\" \", \"{\", \"}\");\n String result = joiner.add(\"Dorota\").add(\"is\").add(\"ill\").add(\"and\").add(\"stays\").add(\"home\").toString();\n System.out.println(result);\n }", "public String parameterListToString(){\n StringBuilder sb = new StringBuilder();\n for (String parameter : parameterList){\n sb.append(parameter);\n if (!parameter.equals(parameterList.get(parameterList.size() - 1))){\n sb.append(\", \");\n }\n }\n return sb.toString();\n }", "public String nameString(ArrayList<String> nameList) {\n String nameStore = nameList.get(0) + \", \";\n for (int i = 1; i < nameList.size(); i++) {\n if (i == nameList.size() - 1) {\n nameStore += nameList.get(i);\n } else {\n nameStore += nameList.get(i) + \", \";\n }\n }\n return nameStore;\n }", "private static String formatLog() {\r\n String str = \"\";\r\n\r\n str = log.stream().map((temp) -> temp + \"\\n\").reduce(str, String::concat);\r\n\r\n return str;\r\n }", "private String getValues()\n\t{\n\t\tString values = \"(\";\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tvalues += \"'\" + fieldList.get(spot).getText() + \"'\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tvalues += \");\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalues += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn values;\n\t}", "protected String getParameterSeparator() {\n return \", \";\n }", "private String getUsersToString()\n {\n ArrayList<String> list = new ArrayList<>();\n Iterator iterator = userList.entrySet().iterator();\n while (iterator.hasNext())\n {\n Map.Entry mapEntry = (Map.Entry) iterator.next();\n list.add(\"\" + mapEntry.getKey());\n }\n \n String returnString = \"\";\n if(list.size() > 0)\n {\n returnString = list.get(0);\n for(int i = 1; i < list.size(); i++)\n {\n returnString = returnString + \",\" + list.get(i);\n }\n }\n return returnString;\n }", "public String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = list.get(i);\n output += String.format(\"%2d %s\\n\",i,article.getPrintableFormat());\n }\n return output;\n }", "public void createCsvString(StringBuilder builder, Category e) {\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getName() != null ? e.getName().replace(\",\", \"\") : \"\")\r\n\t\t\t\t+ \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\r\\n\");\r\n\t}", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "public String formatoDecimales(double valorInicial, int numeroDecimales ,int espacios) { \n String number = String.format(\"%.\"+numeroDecimales+\"f\", valorInicial);\n String str = String.valueOf(number);\n String num = str.substring(0, str.indexOf(',')); \n String numDec = str.substring(str.indexOf(',') + 1);\n \n for (int i = num.length(); i < espacios; i++) {\n num = \" \" + num;\n }\n \n for (int i = numDec.length(); i < espacios; i++) {\n numDec = numDec + \" \";\n }\n \n return num +\".\" + numDec;\n }", "public static String joinList(List<String> list) {\r\n //could use String.join or Stream but I found this approach to consistantly be 150-500ns faster\r\n StringBuilder sb = new StringBuilder(list.size());\r\n for (int z = 0; z < list.size() - 1; z++) {\r\n sb.append(list.get(z));\r\n sb.append(',').append(' ');\r\n }\r\n sb.append(list.get(list.size() - 1));\r\n return sb.toString();\r\n }", "public String getSetListString() {\n\t\tString s = \"\";\n\t\tfor (int i = 0; i < setList.size(); i++) {\n\t\t\ts += setList.get(i).toString() + \",\";\n\t\t}\n\t\tif (s.length() >= 1) {\n\t\t\ts = s.substring(0, s.length() - 1); //remove the trailing \",\"\n\t\t}\n\t\treturn s;\n\t}", "public static String formatWhole(int x) {\n return String.format(\"%,d\", x);\n }", "public String[] camposDivididos(){\r\nString[] args=column().split(\"[,]\");\r\nreturn args;\r\n //return Arrays.toString(args);\r\n}", "static String assigneeListAsString(String[] p_userIds)\n {\n StringBuilder users = new StringBuilder();\n if (p_userIds != null && p_userIds.length > 0)\n {\n users.append(p_userIds[0]);\n for (int i = 1; i < p_userIds.length; i++)\n {\n users.append(\",\");\n users.append(p_userIds[i]);\n }\n }\n return users.toString();\n }", "private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }", "public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }", "private String getDescription(int num, String[] data) {\n String description = \"\";\n boolean removedFirstQuote = false;\n for (int j = num; j < data.length; j++) {\n description += data[j];\n if (j == num && description.charAt(0) == '\"') {\n description = description.substring(1);\n removedFirstQuote = true;\n }\n if (j != data.length - 1) {\n description += \",\";\n } else {\n if (removedFirstQuote) {\n description = description.substring(0,description.length()-1);\n }\n }\n }\n return description;\n }", "private String formatStr(String s) {\r\n\t\treturn formatStr(s, null, null);\r\n\t}", "private String formatExpected() {\n String result = \"tokens \";\n if (tokens.length == 1) {\n return \"token \" + tokens[0];\n } else if (tokens.length == 2) {\n return result + tokens[0] + \" and \" + tokens[1];\n }\n\n for (int i = 0; i < tokens.length - 1; i++) {\n result = result.concat(tokens[i] + \", \");\n }\n\n return result + \"and \" + tokens[tokens.length - 1];\n }", "public String toString() {\n/* 46 */ return ModelUtil.toCommaSeparatedList((Object[])getValue());\n/* */ }", "public String delimitValue(String value){\n\t\tif(value==null)\n\t\t\tvalue=\"\";\n\t\tvalue = csvEscapeString(value);\n\t\treturn \"\\\"\" + value + \"\\\"\";\n\t}", "private String constructAuthorsString (List<Author> authors) {\n \tif (authors == null || authors.isEmpty()) {\n \t\treturn \"\";\n \t}\n \t\n \tStringBuilder builder = new StringBuilder();\n \tif (authors.size() > 1) {\n \t\tfor (int i = 0; i < authors.size() - 1; i++) {\n \t\tbuilder.append(authors.get(i).getName());\n \t\tbuilder.append(STRING_SEPARATOR);\n \t}\n \t}\n\t\tbuilder.append(authors.get(authors.size() - 1).getName());\n \treturn builder.toString();\n }", "public String getStringRecord() {\n NumberFormat nf = new DecimalFormat(\"0000.00\");\n String delimiter = \",\";\n\n return String.format(\"%05d\", orderLineId) + delimiter + String.format(\"%05d\", orderId) + delimiter\n + String.format(\"%05d\", userId) + delimiter + String.format(\"%05d\", productId) + delimiter\n + String.format(\"%05d\", orderLineQuantity) + delimiter + nf.format(salesPrice)\n + System.getProperty(\"line.separator\");\n }", "public String csvEscapeString(String value){\n\t\tif(value==null)\n\t\t\tvalue=\"\";\n\t\treturn value.replaceAll(\"\\\"\", \"'\");\n\t}", "private static String explode(Dictionary dictionary) {\n Enumeration keys = dictionary.keys();\n StringBuffer result = new StringBuffer();\n while (keys.hasMoreElements()) {\n Object key = keys.nextElement();\n result.append(String.format(\"%s=%s\", key, dictionary.get(key)));\n if (keys.hasMoreElements()) {\n result.append(\", \");\n }\n }\n return result.toString();\n }", "public static String formatAsCSV(String jsonData){\n String csvData = \"\";\n try {\n JSONParser parser = new JSONParser();\n JSONArray records = null;\n String headerRow = \"\";\n String dataRows = \"\";\n \n String[] arrColNames = {\"recordType\",\"project\",\"projectId\",\"projectName\",\"projectLeadUser\",\"issueKey\",\"issueId\",\"issueCreated\",\"issueUpdated\",\"issueCreatorUserName\",\"issueDueDate\",\"issueRemainingEstimate\",\"issueOriginalEstimate\",\"issuePriority\",\"issueReporter\",\"issueStatus\",\"issueTotalTimeSpent\",\"issueVotes\",\"issueWatches\",\"issueResolution\",\"issueResolutionDate\",\"commentId\",\"commentAuthor\",\"commentAuthorKey\",\"commentCreated\",\"commentUpdated\",\"commentUpdateAuthor\",\"worklogId\",\"worklogAuthor\",\"worklogAuthorKey\",\"worklogCreated\",\"worklogStarted\",\"worklogUpdated\",\"worklogTimeSpent\",\"commentText\",\"worklogText\"};\n List<String>colNames = Arrays.asList(arrColNames);\n \n for(int i=0;i<colNames.size();i++)\n {\n headerRow += colNames.get(i) + \",\";\n }\n headerRow = headerRow.replaceAll(\",$\",\"\\n\");\n \n Object obj = parser.parse(jsonData);\n JSONObject jsonValue = (JSONObject) obj;\n records = (JSONArray) jsonValue.get(\"records\");\n Iterator iterRecords = records.iterator();\n \n while(iterRecords.hasNext())\n {\n JSONObject thisRecord = (JSONObject) iterRecords.next();\n String strRecord = \"\";\n for(int i=0;i<colNames.size();i++)\n {\n String thisColName = colNames.get(i);\n strRecord += \"\\\"\" + (String) thisRecord.get(thisColName) + \"\\\",\";\n }\n strRecord = strRecord.replaceAll(\",$\", \"\\n\");\n dataRows += strRecord;\n }\n \n csvData = headerRow + dataRows;\n \n } catch (Exception ex) {\n System.out.println(\"Error in formatAsCSV: \" + ex.getMessage());\n csvData = \"ERROR\";\n }\n System.out.println(\"\\ncsvData:\");\n System.out.println(csvData); \n return csvData;\n }", "public void buildCsvFormatData(List<BulkRequestItem> exceptionBulkRequestItems, StringBuilder csvFormatDataBuilder) {\n for (BulkRequestItem bulkRequestItem : exceptionBulkRequestItems) {\n csvFormatDataBuilder.append(\"\\n\");\n csvFormatDataBuilder.append(bulkRequestItem.getItemBarcode()).append(\",\");\n csvFormatDataBuilder.append(bulkRequestItem.getCustomerCode()).append(\",\");\n csvFormatDataBuilder.append(bulkRequestItem.getRequestId()).append(\",\");\n csvFormatDataBuilder.append(bulkRequestItem.getRequestStatus()).append(\",\");\n csvFormatDataBuilder.append(StringEscapeUtils.escapeCsv(bulkRequestItem.getStatus()));\n }\n }", "private String collectionToString(Collection<String> terms) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"(\");\n\t\tint counter = 0;\n\t\tfor (String term : terms) {\n\t\t\t// Escape single quotes\n\t\t\tterm = term.replace(\"'\", \"''\");\n\t\t\tbuilder.append(\"'\" + term + \"'\");\n\t\t\tif (counter < terms.size() - 1) {\n\t\t\t\tbuilder.append(\",\");\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t\tbuilder.append(\")\");\n\t\treturn builder.toString();\n\t}", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "public String toString(int precision) {\n\t\treturn formatXYZ(precision,\"(\",\", \",\")\");\n\t}", "static double formatNumber(double d) {\n\tDecimalFormat df= new DecimalFormat(COMMA_SEPERATED);\n\tSystem.out.println(\"number \"+df.format(d));\n\treturn d;\n\t\n\t\n\t}", "public static void main(String[] args) {\n List<String> names = new ArrayList<>();\n StringBuilder sb = new StringBuilder();\n\n names.add(\"melissa\");\n names.add(\"joile\");\n names.add(\"clemence\");\n names.add(\"daniko\");\n for (String name : names) {\n sb.append(name + \",\");\n }\n System.out.println(\"index of last , \" + sb.lastIndexOf(\",\"));\n sb.replace(sb.lastIndexOf(\",\"), sb.lastIndexOf(\",\")+1, \"\");\n System.out.println(\"sb = \" + sb);\n }", "public String toString() {\n StringBuilder string = new StringBuilder();\n Iterator<E> i = iterator();\n if (!this.isEmpty()) {\n while (i.hasNext()) {\n string.append(i.next());\n if (i.hasNext()) {\n string.append(\", \");\n }\n }\n }\n return string.toString();\n }", "private static String[] sepInst(String inst){\n\n String[] separated = new String[3];\n separated[0] = inst.substring(0, inst.indexOf(' '));\n if(-1 == inst.indexOf(',')){//enters if when only one variable\n separated[1] = inst.substring(inst.indexOf(' ')+1, inst.length());\n }else{//enters else when only when two variables\n separated[1] = inst.substring(inst.indexOf(' ')+1, inst.indexOf(','));\n separated[2] = inst.substring(inst.indexOf(',')+2, inst.length());\n }//end ifelse\n\n return separated;\n }", "private static String formatEntry(Object entry){\n return QUOTE + entry.toString() + QUOTE + DELIM;\n }", "public String getCSVString() {\n StringBuilder builder = new StringBuilder();\n\n // key / value header\n builder.append(\"key,\\tvalue\");\n builder.append(System.getProperty(\"line.separator\").toString());\n\n // key / value pairs\n for (Entry<String, String> entry : results.entrySet()) {\n builder.append(entry.getKey());\n builder.append(\",\");\n builder.append(entry.getValue());\n builder.append(System.getProperty(\"line.separator\").toString());\n }\n\n builder.deleteCharAt(builder.length() - 1);\n return builder.toString();\n }", "public static String convertCoordinatesArrayToString(ArrayList<LatLng> coordsArray){\n String result = \"\";\n LatLng coord;\n for (int i=0; i < coordsArray.size(); i+=1) {\n coord = coordsArray.get(i);\n result += coord.latitude + \",\";\n result += coord.longitude;\n if (i+1 < coordsArray.size()){\n result += \",\";\n }\n }\n return result;\n }", "private String getValue(String s)\n {\n if(s.contains(\",\"))\n {\n return s.split(\",\")[0];\n }\n else\n {\n s = s.replaceAll(\"\\\\)\",\"\");\n return s;\n }\n }", "public String toString(){\n\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\tString lastprice = nf.format(this.price);\r\n\t\tString lasttprice = nf.format(this.bulkP);\r\n\t\tif (this.bulkQ == 0){\r\n\t\t\treturn (this.name + \", \" + lastprice);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.name + \", \" + lastprice + \" (\" + bulkQ + \" for \" + lasttprice + \")\";\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String>list=new ArrayList<String>(Arrays.asList(\"c\",\"c++\",\"java\",\"python\",\"html\"));\r\n\t\tStringJoiner sj=new StringJoiner(\",\",\"{\",\"}\");\r\n\t\tlist.forEach(e->sj.add(e));\r\n\t\tSystem.out.println(sj);\r\n\t}", "public static String toCsv(List<String> list) {\r\n\t\tString res = \"\";\r\n\t\tIterator<String> it = list.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tres += it.next();\r\n\t\t\tif (it.hasNext()) {\r\n\t\t\t\tres += \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "public String toString() {\r\n\t\tString ans= date + \" \" + time + \",\" + id + \",\" + p + \",\" + numOfScans + \",\" + wifis.toString();\r\n\t\tfor (int i = 0; i < ans.length(); i++){\r\n\t\t\tif (ans.charAt(i)=='[')\r\n\t\t\t\tans=ans.substring(0, i) + ans.substring(i+1,ans.length()); \r\n\t\t\tif (ans.charAt(i)==']')\r\n\t\t\t\tans=ans.substring(0, i); \r\n\t\t\telse\r\n\t\t\t\tif(ans.charAt(i)==',' && i+1<ans.length() && ans.charAt(i+1)==' ')\r\n\t\t\t\t\tans=ans.substring(0, i+1) + ans.substring(i+2,ans.length());\r\n\t\t}\r\n\t\tif(ans.charAt(ans.length()-1)==',' )\r\n\t\t\tans=ans.substring(0, ans.length()-1);\r\n\t\treturn ans + System.lineSeparator();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"{\" + Strings.join(\",\", keyValuePair) + \"}\";\n\t}", "public static String formatNum(String numString){\n\t\tnumString = numString.replace(\",\",\"\");\n\t\tif(numString.contains(\".\")){\n\t\t\tString result =String.format(\"%1$,f\",Double.parseDouble(numString)).substring(0,String.format(\"%1$,f\",Double.parseDouble(numString)).indexOf('.')+3);\n\t\t\tif(numString.split(\"\\\\.\")[1].length() ==1){\n\t\t\t\treturn result.substring(0,result.length()-1);\n\t\t\t}else{\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}else{\n\t\t\treturn String.format(\"%1$,d\",Long.parseLong(numString));\t\n\t\t}\n\t}", "private String formatSql(String sql) {\n\t\tString sqlStr = formator.format(sql + \";\");\n\t\tif (sqlStr == null) {\n\t\t\tLOGGER.error(\"The formator.format(sql) is a null.\");\n\t\t\treturn null;\n\t\t}\n\n\t\tString trimmedSql = sqlStr.trim();\n\t\tif (!trimmedSql.endsWith(\";\")) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tString formattedSql = trimmedSql.substring(0, trimmedSql.length() - 1);\n\t\treturn formattedSql;\n\t}", "public String contactToString() {\r\n\t\tString toReturn = new String();\r\n\t\tif (contacts.size() > 0) {\r\n\t\t\tfor (int i = 0; i < contacts.size(); i++) {\r\n\t\t\t\ttoReturn += \",\" + contacts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "public static String formatAmountValue(String amount) {\r\n\t\tif(amount!=null){\r\n\t\t\t\t// Remove commas from the amount\r\n\t\t\t\tamount = amount.replaceAll(\",\", \"\");\r\n\t\t\t\t// Remove dollar sign from amount\r\n\t\t\t\tamount = amount.replaceAll(\"$\", \"\");\r\n\t\t\t\t\r\n\t\t\t\t// Remove double quotes\r\n\t\t\t\tamount = amount.replaceAll(\"\\\"\", \"\");\r\n\t\t\t\t// Remove single quotes\r\n\t\t\t\tamount = amount.replaceAll(\"\\'\", \"\");\r\n\t\t }\r\n\t\treturn amount;\r\n\t}" ]
[ "0.70399773", "0.65055126", "0.63944954", "0.62887686", "0.62730604", "0.6249649", "0.6230064", "0.6206203", "0.6106288", "0.60533077", "0.60408413", "0.60081697", "0.5996798", "0.5971386", "0.5951767", "0.5858682", "0.58340764", "0.582909", "0.5790568", "0.5751137", "0.5747828", "0.5726158", "0.57174057", "0.56947136", "0.56686896", "0.56475693", "0.5640602", "0.563142", "0.561154", "0.5604641", "0.55977744", "0.5577854", "0.55729526", "0.55694735", "0.5567718", "0.55459", "0.5539293", "0.5514069", "0.5498789", "0.54948926", "0.54886156", "0.54816663", "0.5480574", "0.5474277", "0.5471595", "0.5455073", "0.54400843", "0.5438618", "0.54381335", "0.5422689", "0.5400278", "0.5396287", "0.53786194", "0.53760874", "0.5356267", "0.5355711", "0.535015", "0.5350093", "0.53420174", "0.5329583", "0.53227293", "0.530457", "0.5298018", "0.5281106", "0.52741575", "0.52651364", "0.52629805", "0.5260878", "0.5256043", "0.525448", "0.5240933", "0.5239479", "0.5229144", "0.5226629", "0.52258205", "0.52224517", "0.5220382", "0.52166617", "0.52163345", "0.5215458", "0.5208486", "0.52042425", "0.52027816", "0.5200988", "0.51934475", "0.51888037", "0.51599175", "0.5156547", "0.5154037", "0.5153819", "0.5137387", "0.51360554", "0.51251143", "0.5115", "0.51137036", "0.51097924", "0.5108971", "0.51082677", "0.510681", "0.51020694" ]
0.74489135
0
Sets the fill grade.
public void setFillLevel(final double fill) { _fillGrade = fill; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGrade() {\n \tthis.grade = trkMdl.getBlock(this.lineColor,this.currentBlock).getGrade();\n \t//int currentBlockID = position.getCurrentBlock();\n \t//Block current = trackModel.getBlock(curentBlockID);\n \t//grade = currentBlock.getGrade();\n }", "public void setGrade (double grade){\n this.grade = grade;\n }", "@Override\n\tpublic void setGrade(int grade) {\n\t\tmodel.setGrade(grade);\n\t}", "public void setGrade(int grade)\n {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public double getFill() {\n\t\treturn _fillGrade;\n\t}", "public void setLevel(int fillLevel)\n\t{\n\t\tthis.fillLevel = fillLevel;\n\t\tthis.latestUpdate = new Date();\n\t}", "public void setGrade(int grade){ ///update com.company.students grade\n this.grade = grade;\n }", "public void setFill(boolean b){\n\t\tthis.fill = b;\n\t}", "public void setFill(boolean fill) {\n isFilled = fill;\n }", "public void setaGrade(Byte aGrade) {\n this.aGrade = aGrade;\n }", "public void setGrade(String grade) {\n this.grade = grade;\n }", "protected void setGrades()\n\t{\n\t\tgradeNomes \t\t= new String[ this.getNumeroMaximoDeAluno() ];\n\t\tgradeNotas \t\t= new int[ this.getNumeroMaximoDeAluno() ];\n\t\tgradeConceitos \t= new int[ this.getNumeroMaximoDeAluno() ];\n\t}", "void setFill(boolean fill);", "public void setGrade(String grade) {\n\t\tGrade = grade;\n\t}", "public void setFillColor(int fillColor) {\n this.setValue(FILL_COLOR_PROPERTY_KEY, fillColor);\n }", "public void setFill(boolean fill) {\n\t\t_fill = fill;\n\t\tnotifyObs(this);\n\t}", "private void assignIntoGrade() {\n }", "public void setFillColor(int fillColor) {\n\t\tthis.fillColor = fillColor;\n\t\tinvalidate();\n\t}", "public void setFillEnabled(boolean fillEnabled){\n this.fillEnabled = fillEnabled;\n refreshTheView();\n }", "public void setFilled ( boolean flag ) {\r\n\t\tfill_flag = flag;\r\n\t}", "public void setFill(RMFill aFill)\n{\n if(RMUtils.equals(getFill(), aFill)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_fill!=null) _fill.removePropertyChangeListener(this);\n firePropertyChange(\"Fill\", _fill, _fill = aFill, -1); // Set value and fire PropertyChange\n if(_fill!=null) _fill.addPropertyChangeListener(this);\n}", "public void setGradingWeight(double weight){\n \tgradingWeight = weight;\n }", "public static void setGrade(Student std) {\n std = new Student(std.getName(), std.getGrade() * 2 );\n std.setGrade( std.getGrade() * 2 );\n }", "public final native void setFill(Colour colour) /*-{\n\t\tthis.setFill([email protected]::toString()());\n\t}-*/;", "public void setFill(boolean fill) {\r\n if (fill) {\r\n \tmPaint.setStyle(Paint.Style.FILL);\r\n }else{\r\n \tmPaint.setStyle(Paint.Style.STROKE);\r\n }\r\n }", "public void setExamGrade()\n {\n examGrade = gradeCalculator();\n }", "public void setGPA(double GPA) {\r\n\t\tif(GPA > 0.0 && GPA <= 4.0) {\r\n\t\t\tthis.GPA = GPA;\r\n\t\t}\r\n\t}", "public void setFilled(boolean filled) {\r\n this.filled = filled;\r\n }", "public void setFilled(boolean filled) \n\t{\n\t\tthis.filled = filled;\n\t}", "public void setFillColor(Color c) {\n fillColor = c;\n }", "private Grade( int high, int low, boolean pass) {\n\t\tthis.high = high;\n\t\tthis.low = low;\n\t\tthis.pass = pass;\n\t}", "public void setFillArea(boolean fillArea) {\n\t\tthis.fillArea = fillArea;\n\t}", "public void setFilled(boolean filled) {\n this.filled = filled;\n }", "public String setLetraDaGrade()\r\n\t{\r\n\t\tString letraDaGrade = \"\";\r\n\t\t\r\n\t\tif(media >= 90.0)\r\n\t\t\tletraDaGrade = \"A\";\r\n\t\telse if (media >= 80.0)\r\n\t\t\tletraDaGrade = \"B\";\r\n\t\telse if (media >= 70.0)\r\n\t\t\tletraDaGrade = \"C\";\r\n\t\telse if (media >= 60.0)\r\n\t\t\tletraDaGrade = \"D\";\r\n\t\telse\r\n\t\t\tletraDaGrade = \"F\";\r\n\t\t\r\n\t\treturn letraDaGrade;\r\n\t}", "public void grade() {\n System.out.print(\"\\nEnter a grade: \");\n double numberGrade = in.nextDouble();\n final double A_MAX = 100;\n final double A_MIN = 90;\n final double B_MIN = 80;\n final double C_MIN = 70;\n final double D_MIN = 60;\n final double F_MIN = 0;\n if (numberGrade >= A_MIN && numberGrade <= A_MAX) {\n System.out.println(\"\\nYou receive an A.\\n\");\n } else if (numberGrade >= B_MIN && numberGrade <= A_MIN) {\n System.out.println(\"\\nYou receive a B.\\n\");\n } else if (numberGrade >= C_MIN && numberGrade <= B_MIN) {\n System.out.println(\"\\nYou receive a C.\\n\");\n } else if (numberGrade >= D_MIN && numberGrade <= C_MIN) {\n System.out.println(\"\\nYou receive a D.\\n\");\n } else if (numberGrade >= F_MIN && numberGrade <= D_MIN) {\n System.out.println(\"\\nYou receive a F.\\n\");\n } else if (numberGrade > 100) {\n System.out.println(\"\\nGrades above 100 are invalid.\\n\");\n } else if (numberGrade < 0) {\n System.out.println(\"\\nGrades below 0 are invalid.\\n\");\n }\n }", "public void setGPA(double newGPA)throws Exception{\n\t\t\n\t\tif ((newGPA >= 0) && (newGPA <= 4.0)){\n\t\t\tthis.gpa = newGPA;\n\t\t\tString txt = Double.toString(newGPA);\n\t\t\toverWriteLine(\"GPA\", txt);\n\t\t}\n\n\t}", "public boolean setGrade (int index, double newGrade){\r\n\r\n\t\tif ((index >= 0 && index <= 2) && (newGrade >= 0 && newGrade <=100)){\r\n\r\n\t\t\tgrades[index] = newGrade;\r\n\t\t\tif (grades[index] == newGrade)\r\n\t\t\t\treturn true;\r\n\t\t\telse \r\n\t\t\t\treturn false;\r\n\t\t}else{ \r\n\t\t\tSystem.out.println(\"Please enter a valid index and grade.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "public void setName(String grade) {\r\n\t\tname = grade;\r\n\t\t\r\n\t}", "private void setFillIndex() {\n\t\tint t = this.fillgingIndex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.fillgingIndex = 0;\n\t\t\tsetComponentsOfIndex();\n\t\t} else {\n\t\t\tthis.fillgingIndex = t;\n\t\t}\n\n\t}", "public static void examGrade(Double mark) {\n if (mark < 50) {\r\n System.out.println(\"F\");\r\n }\r\n if (mark > 50 && mark < 59) {\r\n System.out.println(\"D\");\r\n }\r\n if (mark > 60 && mark < 69) {\r\n System.out.println(\"C\");\r\n }\r\n if (mark > 70 && mark < 79) {\r\n System.out.println(\"B\");\r\n }\r\n if (mark > 80) {\r\n System.out.println(\"A\");\r\n }\r\n }", "@Override\r\n public void setShape (Shape shape,\r\n double grade)\r\n {\r\n// // Check status\r\n// if (glyph.isTransient()) {\r\n// logger.error(\"Setting shape of a transient glyph\");\r\n// }\r\n\r\n // Blacklist the old shape if any\r\n Shape oldShape = getShape();\r\n\r\n if ((oldShape != null) && (oldShape != shape)\r\n && (oldShape != Shape.GLYPH_PART)) {\r\n forbidShape(oldShape);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"Shape {} forbidden for {}\",\r\n oldShape, glyph.idString());\r\n }\r\n }\r\n\r\n if (shape != null) {\r\n // Remove the new shape from the blacklist if any\r\n allowShape(shape);\r\n }\r\n\r\n // Remember the new shape\r\n evaluation = new Evaluation(shape, grade);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"{} assigned {}\", glyph.idString(), evaluation);\r\n }\r\n }", "public void fill(int color)\n {\n fill(new Color(color));\n }", "@Override\n public void fill() {\n graphicsEnvironmentImpl.fill(canvas);\n }", "@Override\n\tpublic void setOutLineFill(String outlinefill) {\n\t\tthis.outLineFill=outlinefill;\n\t}", "public void updateGrades(Grades grade_value) {\n\t\t\n\t}", "public void SetPolyFillMode(short fillmode) throws IOException {\n\t\taddCommandX(META_SETPOLYFILLMODE, fillmode);\n\t}", "public void setGradeInfo(GradeInfo[] gradeInfo) {\n this.gradeInfo = gradeInfo;\n }", "public grade(){}", "public void setFillArea(boolean b)\r\n/* 34: */ {\r\n/* 35: 26 */ this.fillArea = b;repaint();\r\n/* 36: */ }", "public void setFillStyle(STYLE style);", "@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}", "void setCurrentFillColour(Color colour) {\n int colourIndex = shapes.size();\n fillColours.set(colourIndex, colour);\n currentFillColour = colour;\n writeFile.writeFill(colour);\n }", "public Action setFillEnabled(boolean fillEnabled) {\n mFillEnabled = fillEnabled;\n return this;\n }", "public void setGradeName(String gradeName) {\n this.gradeName = gradeName;\n }", "public void newGradeselected() {\n setNewgradeselected(true);\n setGradeselected(false);\n\n }", "public void setG(double aG);", "@Override\r\n public void setEvaluation (Evaluation evaluation)\r\n {\r\n setShape(evaluation.shape, evaluation.grade);\r\n }", "public void fillColor() {\n\t\tSystem.out.println(\"Blue color\");\n\t}", "public void fill(Color color){\n fill(color.rgba());\n }", "public void setFillGradient(Gradient gradient);", "public abstract void setFilled(boolean filled);", "public void setFillColor(Color color);", "@Test\n\tpublic void testAssignGrade4() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "public static void printGrade(int mark){\n \n if (mark <50){\n System.out.println(\"FAIL\");\n }\n else {\n System.out.println(\"PASS\");\n }\n }", "public void setFillColor(Color c) {\n setValue(c, PROP_FILL_COLOR);\n }", "@Override\n public void fill(GL2 gl) {\n draw(gl);\n }", "@Override\n public void toggleFill() {\n // empty bc mock\n }", "@Override\n public void fill(GL2 gl) {\n super.draw(gl);\n }", "public String getGrade() {\n\t\treturn Grade;\n\t}", "public void setGesamtRating() {\n this.gesamtRating = Precision.round((kriterium1 + kriterium2 + kriterium3 + kriterium4 + kriterium5\n + kriterium6 + kriterium7 + kriterium8), 2);\n\n }", "public FlexyDemoSettlingTank(String name, int fillLowPerc, int fillHighPerc, int fillIdealPerc) {\n super(name, fillLowPerc, fillHighPerc, fillIdealPerc);\n }", "public void setIndentFiller(String filler) {\n spaceFill = filler;\n }", "@Override\n\tpublic void view(int grGrade, int lessGrade) {\n\n\t}", "public void grade() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// grade Method initialized\t\t\t\t\t\t\t\t\t\t\t\t\r\n System.out.print(\"Average Marks of a Student is \"+ average+\" and \");\t\t\t\t\t\t\t\t\t\t\t// This will print out the argument and ends the line\r\n if(average>81)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if loop expression, to check the condition\r\n {System.out.print(\"Grade is A : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE A\r\n else if(average>=61 && average<=80)\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.print(\"Grade is B : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE B\r\n else if (average>41 && average<=60)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.print(\"Grade is C : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE C\r\n else if (average>21 && average <=40)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.println(\"Grade is D : Fail\"); }\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE D\r\n else if (average<20)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.println(\"Fail\"); }\t}", "public CourseGrade(LetterGrade lettergrade) {\r\n\t\t\r\n\t\t// Set the private instance variable\r\n\t\tprivateLetterGrade = lettergrade;\r\n\t\t\r\n\t\tswitch(lettergrade)\r\n\t\t{\r\n\t\t\tcase A:\r\n\t\t\tcase A_PLUS:\r\n\t\t\tcase A_MINUS:\r\n\t\t\tcase B:\r\n\t\t\tcase B_PLUS:\r\n\t\t\tcase B_MINUS:\r\n\t\t\tcase C:\r\n\t\t\tcase C_PLUS:\r\n\t\t\tcase C_MINUS:\r\n\t\t\t\tpassing = true;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n public void setUilBoxFillColor(java.lang.Object uilBoxFillColor) throws G2AccessException {\n setAttributeValue (UIL_BOX_FILL_COLOR_, uilBoxFillColor);\n }", "@Override\n\tpublic void updateModel() {\n\n\t\tfinal List<GbGradingSchemaEntry> schemaEntries = this.schemaView.getModelObject();\n\n\t\tfinal Map<String, Double> bottomPercents = new HashMap<>();\n\t\tfor (final GbGradingSchemaEntry schemaEntry : schemaEntries) {\n\t\t\tbottomPercents.put(schemaEntry.getGrade(), schemaEntry.getMinPercent());\n\t\t}\n\n\t\tthis.model.getObject().getGradebookInformation().setSelectedGradingScaleBottomPercents(bottomPercents);\n\n\t\tthis.configuredGradeMappingId = this.currentGradeMappingId;\n\t}", "public boolean getFill(){\n\t\treturn this.fill;\n\t}", "public void gpaConverter() {\r\n\t\tdouble numGPA = this.getNumGrade();\r\n\t\ttry {\r\n\t\t\tif (numGPA >= 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A\"; }\r\n\t\t\tif (3.7 <= numGPA && numGPA < 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A-\"; \r\n\t\t\t}\r\n\t\t\tif (3.3 <= numGPA && numGPA < 3.7) {\r\n\t\t\t\tthis.letterGrade = \"B+\";\r\n\t\t\t}\r\n\t\t\tif (3.0 <= numGPA && numGPA < 3.3) {\r\n\t\t\t\tthis.letterGrade = \"B\";\r\n\t\t\t}\r\n\t\t\tif (2.7 <= numGPA && numGPA < 3.0) {\r\n\t\t\t\tthis.letterGrade = \"B-\";\r\n\t\t\t}\r\n\t\t\tif (2.3 <= numGPA && numGPA < 2.7) {\r\n\t\t\t\tthis.letterGrade = \"C+\";\r\n\t\t\t}\r\n\t\t\tif (2.0 <= numGPA && numGPA < 2.3) {\r\n\t\t\t\tthis.letterGrade = \"C\";\r\n\t\t\t}\r\n\t\t\tif (1.7 <= numGPA && numGPA < 2.0) {\r\n\t\t\t\tthis.letterGrade = \"C-\";\r\n\t\t\t}\r\n\t\t\tif (1.3 <= numGPA && numGPA < 1.7) {\r\n\t\t\t\tthis.letterGrade = \"D+\";\r\n\t\t\t}\r\n\t\t\tif (1.0 <= numGPA && numGPA < 1.3) {\r\n\t\t\t\tthis.letterGrade = \"D\";\r\n\t\t\t}\r\n\t\t\tif (0.7 <= numGPA && numGPA < 1.0) {\r\n\t\t\t\tthis.letterGrade = \"D-\";\r\n\t\t\t}\r\n\t\t\tif (0.0 <= numGPA && numGPA < 0.7) {\r\n\t\t\t\tthis.letterGrade = \"F\";\r\n\t\t\t} \r\n\t\t}\r\n\t\tcatch (InputMismatchException e) {\r\n\t\t\tSystem.out.print(\"Input Mismatch Exception \");\r\n\t\t}\r\n\t\tcatch (NumberFormatException e) {\r\n\t\t\tSystem.out.print(\"Number Format Exception \");\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t}", "public void addGrade(int grade){\n //array list has a method to add().\n this.grades.add(grade);\n }", "public void fill( double val ) {\n try {\n ops.fill(mat, val);\n } catch (ConvertToDenseException e) {\n convertToDense();\n fill(val);\n }\n }", "public void editStudentGPA(Student tempStudent, float fGPA)\n\t{\n\t\ttempStudent.setfGPA(fGPA);\n\t\tthis.saveNeed = true;\n\n\n\t}", "public void setGpa(){\n System.out.println(\"Enter the student's GPA: \");\n this.gpa = input.nextDouble();\n }", "public char getGrade() {\n if (super.getGrade() == 'F') return 'F';\n else return 'P';\n }", "private void applyFill(Graphics2D graphic, Fill fill, Feature feature) {\n if (fill == null) {\n return;\n }\n \n graphic.setColor(Color.decode((String) fill.getColor().getValue(feature)));\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"Setting fill: \" + graphic.getColor().toString());\n }\n \n Number value = (Number) fill.getOpacity().getValue(feature);\n float opacity = value.floatValue();\n graphic.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity));\n \n Graphic grd = fill.getGraphicFill();\n \n if (grd != null) {\n setTexture(graphic, grd, feature);\n } else {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"no graphic fill set\");\n }\n }\n }", "@Override\n\tpublic void view(int intGrade) {\n\n\t}", "public void setup(){\n\t\tprogramGrade = keyboard.nextInt();\n\t\texamGrade = keyboard.nextInt();\n\t}", "public Grade getGrade() {\n return this.grade;\n }", "public void setAreaFillingColor(ColorRGB areaFillingColor) {\n this.areaFillingColor = areaFillingColor;\n currentPath.setFill(Color.rgb(areaFillingColor.getRed(), areaFillingColor.getGreen(), areaFillingColor.getBlue()));\n }", "public void fill(Element el)\n {\n fill(el.getColor());\n }", "@Override\n public void draw(GL2 gl) {\n super.fill(gl);\n }", "@Override\n public void draw(GL2 gl) {\n super.fill(gl);\n }", "public void set_AllSpreadIndexToOne(){\r\n\t//test to see if the fuel moistures are greater than 33 percent.\r\n\t//if they are, set their index value to 1\r\n\tif ((FFM>33)){ // fine fuel greater than 33?\r\n\t\tGRASS=0; \r\n\t\tTIMBER=0;\r\n\t}else{\r\n\t\tTIMBER=1;\r\n\t}\r\n}", "public void setLiterAllocation (BigDecimal LiterAllocation);", "public boolean setExtraGrades(int grade)\n {\n studentInformation.getClasses().ensureGrade(grade);\n extraRows = 0;\n //Extra Book-keeping varible\n this.extraGradeLevel = grade;\n final int oldSize = gradeAndSemesterList.size()-1+extraRows;\n //If there the desired grade level is less than or equal to the current grade level do nothing\n if(gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type1.intValue() > grade)\n return false;\n \n //If not all three of the possible semesters are filled\n if(gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal()< 2)\n extraRows += 2 - gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal();\n \n \n extraRows += 3*(grade-gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type1.intValue());\n \n \n this.fireTableRowsInserted(oldSize, gradeAndSemesterList.size()-1+extraRows);\n return true;\n }", "public void setColor(RMColor aColor)\n{\n // Set color\n if(aColor==null) setFill(null);\n else if(getFill()==null) setFill(new RMFill(aColor));\n else getFill().setColor(aColor);\n}" ]
[ "0.7129434", "0.6978794", "0.68783563", "0.67775565", "0.6762995", "0.6762995", "0.6762995", "0.6762995", "0.6534143", "0.6422359", "0.6417921", "0.63625497", "0.63472223", "0.6327754", "0.6316481", "0.63080317", "0.63024926", "0.62976515", "0.6269397", "0.6240697", "0.615233", "0.6124563", "0.60738665", "0.6040042", "0.600062", "0.59657323", "0.5934238", "0.5915944", "0.5880747", "0.5826738", "0.5813184", "0.5802966", "0.58001924", "0.5766184", "0.57633483", "0.57426846", "0.5738855", "0.5667157", "0.5661653", "0.56520766", "0.56338054", "0.56138533", "0.55787337", "0.55698097", "0.5567247", "0.5562138", "0.55278194", "0.55150306", "0.55149925", "0.54968166", "0.54618794", "0.54467106", "0.54246867", "0.5414472", "0.54092765", "0.54070556", "0.5383971", "0.5360698", "0.5343803", "0.53435457", "0.5336323", "0.5327632", "0.5325218", "0.5304818", "0.5303943", "0.5293469", "0.52756107", "0.5272791", "0.526899", "0.52413964", "0.5234906", "0.5228446", "0.52216995", "0.52165717", "0.5180534", "0.5150245", "0.5146916", "0.5132737", "0.51302445", "0.51289916", "0.51106995", "0.51061845", "0.50964767", "0.5079935", "0.50795853", "0.50789523", "0.5071665", "0.5053828", "0.50519526", "0.5046681", "0.50427014", "0.50388855", "0.5034095", "0.50329703", "0.50167453", "0.50167453", "0.50145364", "0.5014259", "0.50099057", "0.4995225" ]
0.8102897
0
Gets the fill grade.
public double getFill() { return _fillGrade; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Grade grade() {\n ////\n return Grade.average(grades.values());\n }", "public double grade() {\n\n return -1;\n }", "public String getGrade() {\n\t\treturn Grade;\n\t}", "@Override\n\tpublic int getGrade() {\n\t\treturn model.getGrade();\n\t}", "@Override\r\n public double getGrade ()\r\n {\r\n if (evaluation != null) {\r\n return evaluation.grade;\r\n } else {\r\n // No real interest\r\n return Evaluation.ALGORITHM;\r\n }\r\n }", "public int getGrade() {\n\n float x = filterX.filter(this.getSensorValueX());\n float y = filterY.filter(this.getSensorValueY());\n float z = filterZ.filter(this.getSensorValueZ());\n\n this.setGrade((int) Math.toDegrees(Math.atan2(z, y)));\n\n this.setPrevX(x);\n this.setPrevY(y);\n this.setPrevZ(z);\n\n return grade;\n }", "public int getGrade();", "public Byte getaGrade() {\n return aGrade;\n }", "public int getGrade() {\n return grade;\n }", "public Grade getGrade() {\n return this.grade;\n }", "public void setFillLevel(final double fill) {\n\t\t_fillGrade = fill;\n\t}", "public char getGrade() {\n if (super.getGrade() == 'F') return 'F';\n else return 'P';\n }", "public String getGrade() {\n return grade;\n }", "public double calcGrade(){\r\n\r\n /*The grade is calculated using numbers between 0 and 1 so any number greater than 1 will\r\n * be converted into a number between 0 and 1\r\n * */\r\n if (grade.getFinPercent() > 1){\r\n grade.setFinPercent(grade.getFinPercent() / 100);\r\n }\r\n if (grade.getCurrent() > 1){\r\n grade.setCurrent(grade.getCurrent() / 100);\r\n }\r\n if (grade.getGoal() > 1){\r\n grade.setGoal(grade.getGoal() / 100);\r\n }\r\n\r\n\r\n double gradeReq = (grade.getGoal() -( ( 1 - grade.getFinPercent()) * grade.getCurrent())) / grade.getFinPercent();\r\n return gradeReq;\r\n }", "public double getStudentGrade() \n {\n Set<String> cc = courses.keySet();\n for (String c: cc) \n {\n if (courses.get(c).getActive() == false) \n {\n return courses.get(c).getGrade(); \n }\n }\n return 0; \n }", "public int getFinalGrade() {\n return finalGrade;\n }", "public char getLetterGrade()\n\t{\n\t\tdouble grade;\n\t\t\n\t\tgrade = ((((((this.quiz1/QUIZ_MAX) + (this.quiz2/QUIZ_MAX) + (this.quiz3/QUIZ_MAX)) / 3) * QUIZ_WEIGHT) + ((this.midtermExam / MIDTERM_MAX) * MIDTERM_WEIGHT) + ((this.finalExam / FINAL_MAX) * FINAL_WEIGHT)) * 100);\n\t\t\n\t\tif (grade > 100 || grade < 0)\n\t\t{\n\t\t\tSystem.out.println(\"Not a valid grade\");\n\t\t}\n\t\telse if (grade >= 90)\n\t\t{\n\t\t\tfinalGrade = 'A';\n\t\t}\n\t\telse if (grade >= 80)\n\t\t{\n\t\t\tfinalGrade = 'B';\n\t\t}\n\t\telse if (grade >= 70)\n\t\t{\n\t\t\tfinalGrade = 'C';\n\t\t}\n\t\telse if (grade >= 60)\n\t\t{\n\t\t\tfinalGrade = 'D';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinalGrade = 'F';\n\t\t}\n\t\t\n\t\treturn finalGrade;\n\t\t\t\n\t\t}", "public RMFill getFill() { return _fill; }", "public int getGrade() { return grade; }", "public char getGradeLetter() {\n\t\t\n\t\t// get the current overall grade\n\t\tdouble overallAverage = averages[OVERALL];\n\t\t\n\t\t// check its value and return the correct letter\n\t\tif (overallAverage < 60) \n\t\t\treturn 'F';\n\t\telse if (overallAverage < 70) \n\t\t\treturn 'D';\n\t\telse if (overallAverage < 80) \n\t\t\treturn 'C';\n\t\telse if (overallAverage < 90) \n\t\t\treturn 'B';\n\t\telse\n\t\t\treturn 'A';\n\t}", "public double getGPA(){\n if (grade == \"F-\")\n gpa =0.0 ;\n else if (grade == \"D\")\n gpa =1.0 ;\n else if (grade == \"C\")\n gpa =2.0 ;\n else if (grade == \"C+\")\n gpa =2.5 ;\n else if (grade == \"B\")\n gpa =3.0 ;\n else if (grade == \"B\")\n gpa =3.5 ;\n else if (grade == \"A\")\n gpa =4.0 ;\n return gpa;\n}", "public double getGradingWeight() {\n \treturn gradingWeight;\n }", "public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}", "private String calcFinalGrade() {\n\t\tString finalGrade;\n\t\t\n\t\tif (scorePercent >= .895)\n\t\t\tfinalGrade = \"A\";\n\t\telse if(scorePercent >= .795 && scorePercent < .895)\n\t\t\tfinalGrade = \"B\";\n\t\telse if(scorePercent >= .685 && scorePercent < .795)\n\t\t\tfinalGrade = \"C\";\n\t\telse if (scorePercent > .585 && scorePercent < .685)\n\t\t\tfinalGrade = \"D\";\n\t\telse\n\t\t\tfinalGrade = \"F\";\n\n\t\treturn finalGrade;\n\t}", "public double getGPA(){\r\n \tif ( numCredits == 0 ){\r\n \t\tSystem.out.println( \" Student has not earned any credit yet \");\r\n \t\treturn 0 ;\r\n \t}\r\n double GPA = totalGradePoints/numCredits;\r\n GPA *= 100;\r\n GPA = Math.round(GPA);\r\n \tGPA /= 100;\r\n \treturn GPA;\r\n }", "public boolean getFill(){\n\t\treturn this.fill;\n\t}", "public int getGrade(){\n return grade;\n }", "String grade(int marks);", "public GradeInfo[] getGradeInfo() {\n return gradeInfo;\n }", "public static double getOverAllGrade() {\n\t\t\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.US);\n\t\tDecimalFormat grade = new DecimalFormat(\"##.0\", symbols);\n\t\t\n\t\tdouble overAllGrade = 0;\n\t\t\n\t\tfor (double d: Interface.allGrades) {\n\t\t\toverAllGrade += d;\n\t\t}\n\t\t\n\t\treturn Double.parseDouble(grade.format(overAllGrade));\n\t}", "public Color<?> getFillColor(\n )\n {return fillColor;}", "public double getGrade(int index) {\r\n\r\n\t\tif (index >= 0 && index <= 2 ){\r\n\t\t\treturn grades[index];\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Index must be positive and less than 3\");\r\n\t\t\treturn index;\r\n\t\t}\t\t\r\n\r\n\t}", "public String calculateGrade(double marks) {\n\t\tif (marks >= 90)\n\t\t\treturn \"A+\";\n\t\telse if (marks >= 85)\n\t\t\treturn \"A\";\n\t\telse if (marks >= 80)\n\t\t\treturn \"A-\";\n\t\telse if (marks >= 75)\n\t\t\treturn \"B+\";\n\t\telse if (marks >= 70)\n\t\t\treturn \"B\";\n\t\telse if (marks >= 65)\n\t\t\treturn \"B-\";\n\t\telse if (marks >= 60)\n\t\t\treturn \"C+\";\n\t\telse if (marks >= 55)\n\t\t\treturn \"C\";\n\t\telse if (marks >= 50)\n\t\t\treturn \"C-\";\n\t\telse if (marks >= 45)\n\t\t\treturn \"D+\";\n\t\telse if (marks >= 40)\n\t\t\treturn \"D\";\n\t\telse\n\t\t\treturn \"F\";\n\t}", "public double get40To49FieldGoals()\r\n {\r\n return fg_40_49;\r\n }", "public double getLowestGrade(){\n double lowestGrade = 100;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()< lowestGrade)\n lowestGrade = students.get(i).getGrades();\n } // end for\n return lowestGrade;\n }", "char getGrade(int score) {\n\t\t\n\t\tchar letterGrade;\n\t\t\n\t\tif(score>90) {\n\t\t\treturn 'A';\n\t\t}else if(score>80 && score<=90) {\n\t\t\treturn 'B';\n\t\t}else if(score>70 && score<=80) {\n\t\t\treturn 'C';\n\t\t}else if(score>50 && score<=70) {\n\t\t\treturn 'D';\n\t\t}else {\n\t\t\treturn 'F';\n\t\t}\n\t\t\n\t\n\t\t\n\t}", "private float getGrade(ExamPerformance examPerformance) {\n if (examPerformance.isReexamination()) {\n return (examPerformance.getGrade() <= 3) ? 4 : 5;\n } else {\n return examPerformance.getGrade();\n }\n }", "public int getFillColor() {\n return (int) this.getValue(FILL_COLOR_PROPERTY_KEY);\n }", "public String getGradeName() {\n return gradeName;\n }", "public String getOverallGrade(Student student) {\n\t\treturn null;\n\t}", "public Color getFillColor() {\n return fillColor;\n }", "public double computeHeuristicGrade();", "public double getGPA(){\n\t\t\n\t\treturn this.gpa;\n\t}", "public double getGPA() {\r\n\t\treturn GPA;\r\n\t}", "public double getHighestGrade(){\n double highestGrade = 0;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()> highestGrade)\n highestGrade = students.get(i).getGrades();\n }// end for\n return highestGrade;\n }", "Color getCurrentFillColour() {\n return this.currentFillColour;\n }", "public final int getFilled() {\n return filled;\n }", "@SemanticModel(value = \"http://almanac-project.eu/ontologies/smartcity.owl#FillLevelState\", name = \"class\")\n\tpublic Double getLevel()\n\t{\n\t\treturn this.fillLevel;\n\t}", "public double getG();", "public RecodedColor getFillColor(){\n return (RecodedColor) fill.getFillColorLegend();\n }", "char getGrade(int score) {\n\tchar grade;\n\tif(score>90) {\n\t\tgrade='A';\n\t}else if (score>80) {\n\t\t\tgrade='B';\n\t}else if(score>70) {\n\t\t\t\tgrade='C';\n\t}else if(score>50) {\n\t\tgrade='D';\n\t}else {\n\t\tgrade='F';\n\t}\n\treturn grade;\n\t\t\t\t\n\t\t\t}", "public char getLetterGrade() {\r\n\t\treturn letter;\r\n\t}", "public void setGrade() {\n \tthis.grade = trkMdl.getBlock(this.lineColor,this.currentBlock).getGrade();\n \t//int currentBlockID = position.getCurrentBlock();\n \t//Block current = trackModel.getBlock(curentBlockID);\n \t//grade = currentBlock.getGrade();\n }", "public String getGrade(String id) {\n\t\treturn sqlSessionTemplate.selectOne(\"memberInfo.getGrade\", id);\r\n\t}", "public String getGrade(){\n if (avgQuizzes <= 59.49)\n grade = \"F-\";\n else if (avgQuizzes <= 69.49)\n grade = \"D\";\n else if (avgQuizzes <= 74.49)\n grade = \"C\";\n else if (avgQuizzes <= 79.49)\n grade = \"C+\";\n else if (avgQuizzes <= 84.49)\n grade = \"B\";\n else if (avgQuizzes <= 89.49)\n grade = \"B\";\n else if (avgQuizzes <= 100.59)\n grade = \"A\";\n return grade;\n}", "public java.lang.String getStudent_skippedGrade() {\n\t\treturn _primarySchoolStudent.getStudent_skippedGrade();\n\t}", "public int getG();", "public int getEducationalGrade() {\n return educationalGrade;\n }", "public char calculate() {\n int average = average();\n\n if (average >= 90) {\n return Grade.O;\n } else if (average >= 80) {\n return Grade.E;\n } else if (average >= 70) {\n return Grade.A;\n } else if (average >= 55) {\n return Grade.P;\n } else if (average >= 40) {\n return Grade.D;\n } else {\n return Grade.T;\n }\n }", "private String calcGrade(String perc)\r\n\t {\r\n\t\t float percentage = Float.parseFloat(perc);\r\n\t\t if (percentage > 75) return \"A\";\r\n\t\t else if (percentage>=60 && percentage < 75) return \"B\";\r\n\t\t else if (percentage>=45 && percentage < 60) return \"c\";\r\n\t\t else if (percentage>=35 && percentage < 45) return \"D\";\r\n\t\t else \r\n\t\t\t return \"F\";\r\n\t }", "public final int getG() {\n\t\treturn green;\n\t}", "public Grades convertToGradeChar(int mark)\n {\n if ((mark>=0) && (mark <40))\n { \n return Grades.F;\n } else if ((mark >= 40) && (mark <= 49))\n {\n return Grades.D;\n } else if ((mark >= 50) && (mark <= 59))\n {\n return Grades.C;\n } else if ((mark >= 60) && (mark <= 69))\n {\n return Grades.B;\n } else if ((mark >= 70) && (mark <= 100))\n {\n return Grades.A;\n } \n \n return Grades.X;\n }", "public int getG() {\r\n\t\treturn g;\r\n\t}", "Paint getFilling() {\n return bufFill;\n }", "public String setLetraDaGrade()\r\n\t{\r\n\t\tString letraDaGrade = \"\";\r\n\t\t\r\n\t\tif(media >= 90.0)\r\n\t\t\tletraDaGrade = \"A\";\r\n\t\telse if (media >= 80.0)\r\n\t\t\tletraDaGrade = \"B\";\r\n\t\telse if (media >= 70.0)\r\n\t\t\tletraDaGrade = \"C\";\r\n\t\telse if (media >= 60.0)\r\n\t\t\tletraDaGrade = \"D\";\r\n\t\telse\r\n\t\t\tletraDaGrade = \"F\";\r\n\t\t\r\n\t\treturn letraDaGrade;\r\n\t}", "public char Grading(RegCourse a){\n\t\t//CODE HERE\n\t\t\t\t\tif(a.getAccumScore()>=0.8&&a.getAccumScore()<=1){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(4.00);\n\t\t\t\t\t\treturn 'A';\n\t\t\t\t\t}else if(a.getAccumScore()>=0.7&&a.getAccumScore()<0.8){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(3.00);\n\t\t\t\t\t\treturn 'B';\n\t\t\t\t\t}else if(a.getAccumScore()>=0.6&&a.getAccumScore()<0.7){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(2.00);\n\t\t\t\t\t\treturn 'C';\n\t\t\t\t\t}else if(a.getAccumScore()>=0.5&&a.getAccumScore()<0.6){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(1.00);\n\t\t\t\t\t\treturn 'D';\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(0.00);\n\t\t\t\t\t\treturn 'F';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\n\t\t\n\t}", "private String getLetterGrade(double score) {\n int i = (int) score;\n switch (i) {\n case 100:\n case 90:\n return \"A\";\n case 80:\n return \"B\";\n case 70:\n return \"C\";\n case 60:\n return \"D\";\n default:\n return \"F\";\n }\n }", "private int getFillColor() {\n \t\tint id = this.area.getMode() == GPSFilterMode.INCLUDE ? POLYGON_INCLUDE_FILL_COLOR : POLYGON_EXCLUDE_FILL_COLOR;\n \t\treturn adjustAlpha( this.getResources().getColor( id ), 255 * 0.5f );\n \t}", "public char calculate() {\n int average = java.util.stream.IntStream.of(testScores).sum() / testScores.length;\n return Grades.getGrade(average);\n }", "public double get30To39FieldGoals()\r\n {\r\n return fg_30_39;\r\n }", "public void setGrade (double grade){\n this.grade = grade;\n }", "public char getFillingDirection() {\n\t\treturn dir;\n\t}", "public float getG() {\r\n\t\treturn g;\r\n\t}", "public static String getGrade(SalaryGrade[] salaryGrades, int salary) {\n\t\treturn null;\n\t}", "public double get50PlusFieldGoals()\r\n {\r\n return fg_50_plus;\r\n }", "public static int getGrade(int points, int maxPoints) {\r\n double gradePerPoint = 10d / maxPoints;\r\n double grade = gradePerPoint * points - 4;\r\n \r\n return Math.min(5, Math.max(0, (int) Math.floor(grade)));\r\n }", "public double get20To29FieldGoals()\r\n {\r\n return fg_20_29;\r\n }", "public void grade() {\n System.out.print(\"\\nEnter a grade: \");\n double numberGrade = in.nextDouble();\n final double A_MAX = 100;\n final double A_MIN = 90;\n final double B_MIN = 80;\n final double C_MIN = 70;\n final double D_MIN = 60;\n final double F_MIN = 0;\n if (numberGrade >= A_MIN && numberGrade <= A_MAX) {\n System.out.println(\"\\nYou receive an A.\\n\");\n } else if (numberGrade >= B_MIN && numberGrade <= A_MIN) {\n System.out.println(\"\\nYou receive a B.\\n\");\n } else if (numberGrade >= C_MIN && numberGrade <= B_MIN) {\n System.out.println(\"\\nYou receive a C.\\n\");\n } else if (numberGrade >= D_MIN && numberGrade <= C_MIN) {\n System.out.println(\"\\nYou receive a D.\\n\");\n } else if (numberGrade >= F_MIN && numberGrade <= D_MIN) {\n System.out.println(\"\\nYou receive a F.\\n\");\n } else if (numberGrade > 100) {\n System.out.println(\"\\nGrades above 100 are invalid.\\n\");\n } else if (numberGrade < 0) {\n System.out.println(\"\\nGrades below 0 are invalid.\\n\");\n }\n }", "public boolean getIsFill(){\n\t\treturn isFill;\n\t}", "public Grades convertToGrade(int mark)\n {\n if((mark >= 0) && (mark < 40))\n {\n System.out.print(\"Unlucky, you failed with an F.\");\n return Grades.F;\n }\n else if((mark >= 40) && (mark < 50))\n {\n System.out.print(\"You barely passed with a D.\");\n return Grades.D;\n }\n else if((mark >= 50) && (mark < 60))\n {\n System.out.print(\"Not bad. You got a C.\");\n return Grades.C;\n }\n else if((mark >= 60) && (mark < 70))\n {\n System.out.print(\"Good job, You got a B.\");\n return Grades.B;\n }\n else if((mark >=70) && (mark <= 100))\n {\n System.out.print(\"Congratulations, You got an A.\");\n return Grades.A;\n }\n\n return Grades.X;\n }", "public int getEndGrade(String gradeRange) {\n\t\tGradeRangeHelper grh = (GradeRangeHelper) gradeRangeMap.get(gradeRange);\n\t\tif (grh == null) {\n\t\t\treturn -1;\n\t\t}\n\t\t// prtln (\"getEndGrade for \" + grh.label + \": \" + grh.maxGrade);\n\t\treturn grh.maxGrade;\n\t}", "public Integer getSlQltGradeCode() {\n return slQltGradeCode;\n }", "public String computeGrade(double quality) {\n\t\tString grade = \"\";\n\t\t\t\t\n\t\tif (quality < -3)\n\t\t\tgrade = \"C-\";\n\t\telse if (quality < -2)\n\t\t\tgrade = \"C+\";\n\t\telse if (quality < -1)\n\t\t\tgrade = \"C+\";\n\t\telse if (quality < -1)\n\t\t\tgrade = \"B-\";\n\t\telse if (quality < 0)\n\t\t\tgrade = \"B\";\n\t\telse if (quality < 1)\n\t\t\tgrade = \"B+\";\n\t\telse if (quality < 2)\n\t\t\tgrade = \"A-\";\n\t\telse if (quality < 3)\n\t\t\tgrade = \"A\";\n\t\telse //if (quality < 4)\n\t\t\tgrade = \"A+\";\n\t\t\t\t\n\t\treturn grade;\n\t}", "public double get10To19FieldGoals()\r\n {\r\n return fg_0_19;\r\n }", "private String convertNumericToLetter (float grade) {\r\n\r\n // letter grades are indexed by grade point\r\n // the letter grade is added (+1) to the gradeCount array\r\n if(grade >= 93 && grade <= 100) { gradeCount[13] += 1; return grades[13]; } // [13] is A+\r\n if(grade >= 86 && grade < 93) { gradeCount[12] += 1; return grades[12]; } // [12] is A\r\n if(grade >= 80 && grade < 86) { gradeCount[11] += 1; return grades[11]; } // .\r\n if(grade >= 77 && grade < 80) { gradeCount[10] += 1; return grades[10]; } // .\r\n if(grade >= 73 && grade < 77) { gradeCount[9] += 1; return grades[9]; } // .\r\n if(grade >= 70 && grade < 73) { gradeCount[8] += 1; return grades[8]; } // .\r\n if(grade >= 67 && grade < 70) { gradeCount[7] += 1; return grades[7]; } // .\r\n if(grade >= 63 && grade < 67) { gradeCount[6] += 1; return grades[6]; } // .\r\n if(grade >= 60 && grade < 63) { gradeCount[5] += 1; return grades[5]; } // .\r\n if(grade >= 57 && grade < 60) { gradeCount[4] += 1; return grades[4]; } // .\r\n if(grade >= 53 && grade < 57) { gradeCount[3] += 1; return grades[3]; } // .\r\n if(grade >= 50 && grade < 53) { gradeCount[2] += 1; return grades[2]; } // .\r\n if(grade >= 35 && grade < 50) { gradeCount[1] += 1; return grades[1]; } // [1] is F\r\n else { gradeCount[0] += 1; return grades[0]; } // [0] is F-\r\n }", "public int getMax() {\r\n // get root\r\n RedBlackTree.Node<Grade> max = rbt.root;\r\n // loop to right of tree\r\n while (max.rightChild != null) {\r\n max = max.rightChild;\r\n }\r\n\r\n return max.data.getGrade();\r\n }", "public static double calcGPA(char letterGrade) {\n\t\tdouble gpa = 0; //gpa corresponding to the letter grade\n\t\t\n\t\tif (letterGrade == 'A') {\n\t\t\tgpa = 4.0;\n\t\t}else if (letterGrade == 'B') {\n\t\t\tgpa = 3.0;\n\t\t}else if (letterGrade == 'C') {\n\t\t\tgpa = 2.0;\n\t\t}else if (letterGrade == 'D') {\n\t\t\tgpa = 1.0;\n\t\t}else {\n\t\t\tgpa = 0.0;\n\t\t}\n\t\t\n\t\treturn gpa;\t//returns a gpa number\n\t}", "public int getLaGrades() {\n return laGrades;\n }", "public RMColor getColor() { return getFill()==null? RMColor.black : getFill().getColor(); }", "public double weightedGPA() {\r\n\t\t\tdouble average = 0; \r\n\t\t\tdouble gradePoint = 0;\r\n\t\t\tdouble credit = 0;\r\n\t\t\t// Grade points\r\n\t\t\tfor (int i = 0; i < finalGrade.size(); i++) {\r\n\t\t\t\tif (finalGrade.get(i) >= 90 && finalGrade.get(i) <= 100) {\r\n\t\t\t\t\tgradePoint = gradePoint + (9*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 80 && finalGrade.get(i) <= 89.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (8*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 75 && finalGrade.get(i) <= 79.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (7*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 70 && finalGrade.get(i) <= 74.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (6*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 65 && finalGrade.get(i) <= 69.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (5*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 60 && finalGrade.get(i) <= 64.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (4*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 55 && finalGrade.get(i) <= 59.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (3*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 50 && finalGrade.get(i) <= 54.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (2*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 47 && finalGrade.get(i) <= 49.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (1*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) > 47) {\r\n\t\t\t\t\tgradePoint = gradePoint + 0;\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\taverage = gradePoint/credit; // GPA\r\n\t\t\treturn Math.round(average*10)/10.0; // GPA is returned\r\n\t\t}", "public static int grading(int a){\n if (a<=60) {\n System.out.println (\"F\");\n }\n else if (a<=70) {\n System.out.println (\"D\");\n }\n else if (a<=80) {\n System.out.println (\"C\");\n }\n else if (a<=90) {\n System.out.println (\"B\");\n }\n else if (a<=100) {\n System.out.println (\"A\");\n }\n else {\n System.out.println (\"You have gotten a grade greater than 100, you are a true ling ling\");\n }\n\n return a;\n\n }", "public int getExamGradeId() {\n return examGradeId;\n }", "boolean getFill();", "public final int getFillColor() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getFillColor()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getFillColor();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getFillColor()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getFillColor();\n }\n }", "int getG();", "public int getMin() {\r\n // get root\r\n RedBlackTree.Node<Grade> min = rbt.root;\r\n // loop to left of tree\r\n while (min.leftChild != null) {\r\n min = min.leftChild;\r\n }\r\n\r\n return min.data.getGrade();\r\n }", "public String getDegrade() {\n return degrade;\n }", "@Override\n\tpublic List<Road_grade> getAllRoadGrade() {\n\t\treturn this.roadDao.getAllRoadGrade();\n\t}", "public ColorSpace<?> getFillColorSpace(\n )\n {return fillColorSpace;}", "public String findGradeFormatByID (int gradeID);" ]
[ "0.6822902", "0.67961246", "0.67903966", "0.6763642", "0.67400676", "0.67287785", "0.67025906", "0.66879517", "0.6655862", "0.66405106", "0.6632836", "0.6607958", "0.65940887", "0.65369606", "0.6405736", "0.63940233", "0.6377978", "0.6366488", "0.6309324", "0.6275716", "0.62196636", "0.6200807", "0.61205685", "0.61196846", "0.61141735", "0.61043096", "0.61005116", "0.60018617", "0.5970172", "0.5967607", "0.5954263", "0.593887", "0.5931669", "0.5927468", "0.59188175", "0.5914858", "0.59080654", "0.5907877", "0.5904778", "0.5899989", "0.58875316", "0.58830345", "0.58312464", "0.5814599", "0.5798783", "0.5741697", "0.5729307", "0.57147557", "0.5714716", "0.56790316", "0.5665862", "0.5662714", "0.5657183", "0.5639317", "0.5634436", "0.56282425", "0.56200933", "0.5611608", "0.5609603", "0.5604302", "0.56012034", "0.55925256", "0.55686754", "0.55488116", "0.5541012", "0.5531525", "0.55313367", "0.55231464", "0.55212283", "0.5520821", "0.5518778", "0.5517121", "0.55099136", "0.55089694", "0.54930085", "0.5489711", "0.5483448", "0.5481405", "0.54739517", "0.54567856", "0.5454517", "0.54468596", "0.5435881", "0.5432237", "0.54071355", "0.5404988", "0.54046863", "0.5396834", "0.5385042", "0.53820837", "0.5381734", "0.5380787", "0.53775984", "0.5365938", "0.5360952", "0.5344493", "0.5342349", "0.5314848", "0.53130966", "0.5312793" ]
0.8875838
0
Sets the rotation angle.
public void setRotationAngle(final double rotationAngle) { _rotationAngle = rotationAngle; _polylineDecoration.setRotation(Math.toRadians(_rotationAngle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRotationAngle(double angle) {\n if (angle >= MIN_ROTATION_ANGLE && angle <= MAX_ROTATION_ANGLE) {\n rotationAngle = angle;\n }\n }", "public void setAngle(final float angle);", "void setAngle(double angle);", "public void setRotation(float angle) {\n \t\tthis.angle = angle;\n \t\tupdateTransform();\n \t\tfireEvent(new RotationEvent(angle));\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 setRotation(float angle) {\n\t\tthis.rotate(this.rotation - angle);\n\t\trotation -= angle;\n\t}", "public void setAngle(double angle) {\n this.angle = angle;\n }", "public void setAngle(int angle) {\n this.angle = angle;\n notifyViews();\n }", "public void setAngle(int angle) {\r\n\t\tthis.angle = angle;\r\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 void setAngle(double angle) {\n\t\tthis.angle = angle;\n\t}", "public void setAngle(float angle) {\n mAngle = angle;\n }", "public void setAngle(double angle)\n\t{\n\t\tthis.angle = angle;\n\t}", "public void setAngle( double a ) { angle = a; }", "public final void setAngle(int angle) {\r\n\t\tgetState().setAngle(angle);\r\n\t}", "public void setAngle(float angle){\n\n\t}", "public void setAngle(float _angle) {\n\t\tthis.angle = _angle;\n\t}", "public void setRotationAngle(float mAngle) {\n mPolygonShapeSpec.setRotation(mAngle);\n rebuildPolygon();\n invalidate();\n }", "public void setAngle(float angle) {\n this.angle = angle;\n cosAngle = (float) Math.cos(angle);\n sinAngle = 1 - cosAngle * cosAngle;\n }", "public void setAngle(double a) {\n\t\tangle= a;\n\t}", "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}", "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}", "void setAngle(float angle) {\n\t\tarrow.setRotation(angle);\n\t\trequiredSwipeDirection = angle;\n\t\trequiredSwipeMagnitude = DEFAULT_SWIPE_MAGNITUDE;\n\t}", "public void setAngle(double angleRad) {\n synchronized (this.angleLock) {\n this.movementComposer.setOrientationAngle(angleRad);\n }\n }", "public void rotate(float angle);", "public void setRotation(float rotation){\n\t\tmBearing = rotation;\n\t}", "public void setAngle(float angle) {\n this.angle = angle;\n float cos = (float) Math.cos(angle);\n float sin = (float) Math.sin(angle);\n m00 = cos;\n m01 = sin;\n m10 = -sin;\n m11 = cos;\n }", "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 }", "public void rotateToAngle(double angle) {\n controlState = ControlState.POSITION;\n outputPosition = -angle * TurretConstants.TICKS_PER_DEGREE;\n }", "public void setRotation(int degree) {\n\trotation = degree;\n}", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n\t\tmodelRenderer.rotateAngleX = x;\n\t\tmodelRenderer.rotateAngleY = y;\n\t\tmodelRenderer.rotateAngleZ = z;\n\t}", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n\t\tmodelRenderer.rotateAngleX = x;\n\t\tmodelRenderer.rotateAngleY = y;\n\t\tmodelRenderer.rotateAngleZ = z;\n\t}", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n\t\tmodelRenderer.rotateAngleX = x;\n\t\tmodelRenderer.rotateAngleY = y;\n\t\tmodelRenderer.rotateAngleZ = z;\n\t}", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n\t\tmodelRenderer.rotateAngleX = x;\n\t\tmodelRenderer.rotateAngleY = y;\n\t\tmodelRenderer.rotateAngleZ = z;\n\t}", "public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {\n\t\tmodelRenderer.rotateAngleX = x;\n\t\tmodelRenderer.rotateAngleY = y;\n\t\tmodelRenderer.rotateAngleZ = z;\n\t}", "public void setRotation(int rotation) {\r\n\t\tthis.rotation = rotation;\r\n\t}", "public void setAngle(double angle) {\n if (!isReset) {\n System.out.println(\"ARM NOT RESETTED. ROBOT WILL NOT MOVE ARM AS PID WILL DESTROY IT.\");\n armMotor.set(ControlMode.PercentOutput, 0);\n return;\n }\n double targetPositionRotations = angle * Const.kArmDeg2Talon4096Unit * Const.kArmGearRatioArm2Encoder;\n System.out.println(\"setting PID setpoint \" + targetPositionRotations);\n armMotor.set(ControlMode.Position, targetPositionRotations);\n }", "@Override\n\tpublic LSystemBuilder setAngle(double angle) {\n\t\tthis.angle = angle;\n\t\treturn this;\n\t}", "public void setRotateAngle(Cuboid modelRenderer, float x, float y, float z) {\n modelRenderer.rotationPointX = x;\n modelRenderer.rotationPointY = y;\n modelRenderer.rotationPointZ = z;\n }", "public void setRotateAngle(RendererModel RendererModel, float x, float y, float z)\n\t{\n\t\tRendererModel.rotateAngleX = x;\n\t\tRendererModel.rotateAngleY = y;\n\t\tRendererModel.rotateAngleZ = z;\n\t}", "public void moveToAngle(double angle) {\n\t\tangleSetpoint = angle;\n\t}", "@Override\n public void rotate(double angle) {\n graphicsEnvironmentImpl.rotate(canvas, angle);\n }", "public void setRotateAngle(Cuboid model, float x, float y, float z) {\n model.pitch = x;\n model.yaw = y;\n model.roll = z;\n }", "void setAngle(int id, double value);", "void setRotationDegrees(int rotationDegrees) {\n int temp = rotationDegrees % 360;\n if (temp < 0) {\n temp = 360 + temp;\n }\n this.rotationDegrees = temp;\n }", "public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)\n {\n }", "public void setRotate() {\r\n\t\tint npoints = xpoints.length;\r\n\t\tdouble[] tempxpoints = new double[xpoints.length];\r\n\t\tdouble[] tempypoints = new double[xpoints.length];\r\n\t\tdouble radians = Math.toRadians(angle%360);\r\n\t\tdouble y = pivotY;\r\n\t\tdouble x = pivotX;\r\n\t\tfor(int i = 0; i<xpoints.length; i++) {\r\n\t\t\ttempxpoints[i] = (Math.cos(radians)*(xpoints[i]-x)-Math.sin(radians)*(ypoints[i]-y)+x);\r\n\t\t\ttempypoints[i] = (Math.sin(radians)*(xpoints[i]-x)+Math.cos(radians)*(ypoints[i]-y)+y);\r\n\t\t}\r\n\t\txpoints = tempxpoints;\r\n\t\typoints = tempypoints;\r\n\t\tangle = 0;\r\n\t}", "@Override\n public void setTurtleAngle(double angle) {\n screenCreator.updateCommandQueue(\"Angles\", Collections.singletonList(angle));\n }", "public void resetAngle() {\n\t\t//this.angle = (this.orientation % 4 + 4) * (90);\n\t\tthis.angle = this.orientation * 90*-1;\n\t\tthis.tweenAngle.setCurrentValue(this.angle);\n\t\tthis.tweenAngle.setTargetValue(this.angle);\n\t}", "public void setAngleField(String value) {\n JsoHelper.setAttribute(jsObj, \"angleField\", value);\n }", "private void setRotation()\n\t{\n\t\tGL11.glPushMatrix();\n\t\tGL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);\n\t}", "default void set(Vector3DReadOnly axis, double angle)\n {\n getAxis().set(axis);\n setAngle(angle);\n }", "@Override\n public void setOrientation(int degree, boolean animation) {\n String t = getText().toString();\n if(t != null && !t.equals(\"\")){\n mContent = t;\n }\n\n mEnableAnimation = animation;\n // make sure in the range of [0, 359]\n degree = degree >= 0 ? degree % 360 : degree % 360 + 360;\n if (degree == mTargetDegree)\n return;\n\n mTargetDegree = degree;\n if (mEnableAnimation) {\n mStartDegree = mCurrentDegree;\n mAnimationStartTime = AnimationUtils.currentAnimationTimeMillis();\n\n int diff = mTargetDegree - mCurrentDegree;\n diff = diff >= 0 ? diff : 360 + diff; // make it in range [0, 359]\n\n // Make it in range [-179, 180]. That's the shorted distance between the\n // two angles\n diff = diff > 180 ? diff - 360 : diff;\n\n mClockwise = diff >= 0;\n mAnimationEndTime = mAnimationStartTime\n + Math.abs(diff) * 1000 / ANIMATION_SPEED;\n } else {\n mCurrentDegree = mTargetDegree;\n }\n\n invalidate();\n }", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "@VisibleForTesting\n public void setRotation(int newRotation) {\n this.mRotation = newRotation;\n this.mDisplayRotation.setRotation(newRotation);\n }", "public void setRotation(float newRotation)\n {\n setRotation(newRotation, Anchor.CENTER.of(this));\n }", "public Matrix4 setToRotation(Vector3 axis, float angle) {\n if (angle != 0.0f) {\n return set(quat.set(axis, angle));\n }\n idt();\n return this;\n }", "public void setDeviceRotation(int rotation);", "public static void setAngle1(int angle){\r\n\t\tlaunchAngle1 = angle;\r\n\t\ttry {\r\n\t\t\tmanager1.setLaunchAngle(angle);\r\n\t\t} catch (EmitterException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setRotation(float f) {\n this.mRotation = f;\n invalidateSelf();\n }", "public final void setRotation(float newRotation) {\n\t\ttile.setRotation(newRotation);\n\t\tarrow.setRotation(newRotation);\n\t}", "public void setToRotation(double theta_x, double theta_y, double theta_z) {\r\n\t\tthis.set(getRotateInstance(theta_x, theta_y, theta_z));\r\n\t}", "public void setRotationModifer(int degrees) {\n\t\tthis.rotation = degrees;\n\t}", "void resetAngle();", "@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}", "public void setTurtleOrientation(double newAngle){\n\t\tSystem.out.println(\"in set turtle orientation\");\n\t\tmyTurtle.setOrientation(newAngle);\n\t\tupdateTurtleOnView();\n\t}", "public RotationComponent setRotation(float degrees) {\n\trotation = degrees;\n\n\treturn this;\n }", "public void setRotation(Quaternionf quaternion) {\n\t\trotation = quaternion;\n\t\tmodified = true;\n\t}", "public float getAngle() {\n return angle;\n }", "public float getAngle() {\n return angle;\n }", "public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)\n {\n ModelRenderer[] var8 = this.squidTentacles;\n int var9 = var8.length;\n\n for (int var10 = 0; var10 < var9; ++var10)\n {\n ModelRenderer var11 = var8[var10];\n var11.rotateAngleX = par3;\n }\n }", "public void setToRotation(Vector3D anchorPoint, double theta_x,\r\n\t\t\tdouble theta_y, double theta_z) {\r\n\t\tthis.set(getRotateInstance(anchorPoint, theta_x, theta_y, theta_z));\r\n\t}", "public ImageRotator(int receivedAngle){angle = receivedAngle;}", "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 }", "public void setPerihelionAngle(double value) {\n this.perihelionAngle = value;\n }", "public void setPieRotation(int rotation) {\n rotation = (rotation % 360 + 360) % 360;\n mPieRotation = rotation;\n mPieView.rotateTo(rotation);\n }", "void setRotation (DMatrix3C R);", "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "public void setAzimuthAngle(double aziumthAngleDeg) {\r\n // Update the Azimuth Plot (solar vectors)\r\n DefaultValueDataset compassData = (DefaultValueDataset) getDatasets()[SOLAR_AZIMUTH_SERIES];\r\n double A = aziumthAngleDeg;\r\n compassData.setValue(A);\r\n }", "public void setAzimuthAngle( float degrees )\n {\n if ( degrees > MAX_AZI_ANGLE )\n degrees = MAX_AZI_ANGLE;\n else if ( degrees < -MAX_AZI_ANGLE )\n degrees = -MAX_AZI_ANGLE;\n\n azimuth_slider.setValue( (int)(ANGLE_SCALE_FACTOR * degrees) );\n }", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)\n {\n super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity);\n this.wolfHeadMain.rotateAngleX = par5 / (180F / (float)Math.PI);\n this.wolfHeadMain.rotateAngleY = par4 / (180F / (float)Math.PI);\n this.wolfTail.rotateAngleX = par3;\n }", "public double getAngle() { return angle; }", "public void updateAngle(){\n\t\tif (turnUp && (angle < 180) ){\n\t\t\tangle+=1;\n\t\t}\n\t\tif (turnDown && (angle > 0)){\n\t\t\tangle-=1;\n\t\t}\n\t}", "public void setOrientation(float theta) {\n \t\trotateMatrix[0] = (float) Math.cos(theta/180*Math.PI);\n\t\trotateMatrix[1] = (float)-Math.sin(theta/180*Math.PI);\n\t\trotateMatrix[2] = (float) Math.sin(theta/180*Math.PI);\n \t\trotateMatrix[3] = (float) Math.cos(theta/180*Math.PI);\n \t\t\n \t\tinvalidate();\n \t}", "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 double getAngle(){\n\t\treturn this.angle;\n\t}", "public Matrix4 setToRotation(float axisX, float axisY, float axisZ, float angle) {\n if (angle != 0.0f) {\n return set(quat.set(tmpV.set(axisX, axisY, axisZ), angle));\n }\n idt();\n return this;\n }" ]
[ "0.809519", "0.8062537", "0.8034735", "0.79757065", "0.79019994", "0.78355855", "0.7828996", "0.77966046", "0.7760854", "0.7726417", "0.7720127", "0.76900035", "0.767753", "0.7655309", "0.75866514", "0.75316405", "0.75174385", "0.7484579", "0.7431928", "0.74104315", "0.73939455", "0.7361993", "0.73515016", "0.7329338", "0.72441137", "0.72174656", "0.72089833", "0.7180707", "0.7175482", "0.7173864", "0.717078", "0.717078", "0.717078", "0.717078", "0.717078", "0.717078", "0.717078", "0.717078", "0.717078", "0.717078", "0.717078", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.7129461", "0.7114607", "0.70955527", "0.7072656", "0.70203686", "0.70066553", "0.6963154", "0.69271934", "0.6799472", "0.67991936", "0.6782964", "0.6760022", "0.6757076", "0.6748568", "0.67092365", "0.6665641", "0.661881", "0.660127", "0.65767556", "0.65767556", "0.657042", "0.648405", "0.6480295", "0.64708346", "0.6468075", "0.6435198", "0.6429601", "0.6416317", "0.63917524", "0.63878214", "0.6380834", "0.63802797", "0.63176614", "0.6303194", "0.6282176", "0.62675834", "0.6263603", "0.6221601", "0.621866", "0.6216712", "0.6216168", "0.6214198", "0.62135565", "0.62107676", "0.61955184", "0.61943126", "0.61847824", "0.6167273", "0.6165316", "0.6162445", "0.6155588", "0.6149554", "0.6145166", "0.6142438" ]
0.75853896
15
Gets the rotation angle.
public double getRotationAngle() { return _rotationAngle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public float getRotationAngle() {\n return this.mRotationAngle;\n }", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }", "public float getRotationAngle() {\n return mPolygonShapeSpec.getRotation();\n }", "public double getAngle ()\n {\n return angle_;\n }", "public double getAngle() {\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }", "public double getRotation();", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "public int getAngle() {\r\n return angle;\r\n }", "public int getAngle(){\n\t\treturn (int)angle;\n\t}", "public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }", "public double getAngle() {\n\t\treturn this.position[2];\n\t}", "double getAngle();", "double getAngle();", "public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }", "public float getAngle() {\n return angle;\n }", "public float getAngle() {\n return angle;\n }", "public double getAngle();", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}", "public double getAngle(){\n\t\treturn this.angle;\n\t}", "public double getAngle() {\n\t\treturn navx.getAngle();\n\t}", "public double getAngle() { return angle; }", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\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 double getRotation() {\n return getDouble(\"ts\");\n }", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public float getAngle() {\n return mAngle;\n }", "public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }", "public double getAngleInDegrees() {\n return intakeAngle;\n }", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}", "public double angle() {\n return Math.atan2(_y,_x);\n }", "public int getRotation() {\r\n\t\treturn rotation;\r\n\t}", "public float getRotation() {\n\t\treturn rotation;\n\t}", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "int getRotationDegrees() {\n return rotationDegrees;\n }", "public float getRotation() {\n return pm.pen.getLevelValue(PLevel.Type.ROTATION);\n }", "public float getRotation() {\n return this.rotation;\n }", "public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "public double getTurnAngle() {\n return getTurnAngle(turnEncoder.getCount());\n }", "public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }", "public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}", "public float getAngle () {\n\t\treturn body.getAngle();\n\t}", "public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}", "EDataType getAngleDegrees();", "public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }", "public double getRotDiff() {\n\t\treturn rotDiff;\n\t}", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public double getAngle()\n {\n return (AngleAverage);\n }", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "public float getRotation()\n {\n return rotation;\n }", "public float getRawRotationAngle() {\n return this.mRawRotationAngle;\n }", "public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }", "public int getRotation() {\n\t\treturn config & 0x3;\n\t}", "public double radians() {\n return Math.toRadians(this.degrees);\n }", "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "public double getPerihelionAngle() {\n return perihelionAngle;\n }", "int getSensorRotationDegrees();", "public double findAngle() {\n return 0d;\n }", "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public mat4 getRotation() {\n return worldMatrix.getRotation(pr, yr, pr);\n }", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "public double getdegRotationToTarget() {\n NetworkTableEntry tx = m_table.getEntry(\"tx\");\n double x = tx.getDouble(0.0);\n return x;\n }", "public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }", "public float getBaseRotation() {\n return this.baseRotation;\n }", "public double getOrientation()\r\n\t{\r\n\t\treturn Math.atan2(-end.getY()+start.getY(), end.getX()-start.getX());\r\n\t}", "DMatrix3C getRotation();", "protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }", "public static int getRotationAngle(RotationOptions rotationOptions, EncodedImage encodedImage) {\n if (!rotationOptions.rotationEnabled()) {\n return 0;\n }\n int extractOrientationFromMetadata = extractOrientationFromMetadata(encodedImage);\n if (rotationOptions.useImageMetadata()) {\n return extractOrientationFromMetadata;\n }\n return (extractOrientationFromMetadata + rotationOptions.getForcedAngle()) % FULL_ROUND;\n }", "public double getAngleXZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.y/l);\r\n\t}", "public float getOrientation() {\n return this.orientation + this.baseRotation;\n }", "public Rotation2d getHeading() {\n return Rotation2d.fromDegrees(Math.IEEEremainder(gyro.getAngle(), 360) * (Const.kGyroReversed ? -1.0 : 1.0));\n }", "public double getRawAngle()\n {\n double Angle = 0.0;\n\n switch (MajorAxis)\n {\n case X:\n Angle = getAngleX();\n break;\n case Y:\n Angle = getAngleY();\n break;\n case Z:\n Angle = getAngleZ();\n break;\n }\n\n return(Angle);\n }", "int getStartRotationDegree();", "public double getRotation1() {\n return rotation1;\n }", "public double getHeading() {\n return Rotation2d.fromDegrees(m_gyro.getAngle()).getDegrees();\n }", "private double getRotationMomentum()\n\t{\n\t\treturn getRotation() * this.currentMomentMass;\n\t}", "public double PlaneAngle() {\n return OCCwrapJavaJNI.Units_Dimensions_PlaneAngle(swigCPtr, this);\n }", "public double nextAngle()\n {\n return nextAngle();\n }", "public int getDegrees() {\n\t\treturn (int) (value * (180.0d / Math.PI));\n\t}", "public int getDeviceRotation();", "@Override\n\tpublic float getRotation() {\n\t\treturn player.getRotation();\n\t}", "public double getAngleXY() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.z/l);\r\n\t}", "@Override\n\tpublic Rotation3 GetRotation() {\n\t\treturn new Rotation3(0f);\n\t}" ]
[ "0.83617544", "0.8321472", "0.8149913", "0.80506265", "0.7909737", "0.7888285", "0.78069675", "0.77893585", "0.777363", "0.777363", "0.7739106", "0.7727494", "0.7727494", "0.77255476", "0.77203625", "0.7704394", "0.76930785", "0.7681708", "0.76763487", "0.7670231", "0.76427215", "0.7639679", "0.7639679", "0.76331645", "0.76199126", "0.76164633", "0.75984204", "0.7592953", "0.75896174", "0.7588613", "0.7567107", "0.7497776", "0.74870026", "0.7484379", "0.74733394", "0.74445623", "0.7443174", "0.74308866", "0.74250627", "0.7422072", "0.7387477", "0.7371761", "0.735986", "0.73597705", "0.73574305", "0.7351927", "0.7344034", "0.73384285", "0.7314087", "0.7306209", "0.72877234", "0.7206302", "0.71928644", "0.71631956", "0.71534413", "0.7128917", "0.712339", "0.7120177", "0.71095747", "0.70656", "0.70591724", "0.7027927", "0.7017702", "0.7014523", "0.6991047", "0.6978125", "0.69649625", "0.6960281", "0.6925284", "0.69159544", "0.6869504", "0.6854119", "0.68536305", "0.68249756", "0.6778518", "0.6776532", "0.6763914", "0.6759309", "0.6724046", "0.67051536", "0.6681059", "0.66740304", "0.6653956", "0.664706", "0.6645426", "0.66448647", "0.66367006", "0.6636273", "0.6627655", "0.6623667", "0.65820986", "0.6575161", "0.6567486", "0.6551362", "0.6551297", "0.65467423", "0.6536412", "0.6530105", "0.6513739", "0.6497684" ]
0.82710445
2
Sets the transparent state of the background.
public void setTransparent(final boolean transparent) { _transparent = transparent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTransparent(boolean a) {\n\t\tthis.transparent = a;\n\t}", "public void setBackgroundTranslucence(float alpha) {\n\t\tthis.bgAC = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);\n\t}", "protected void setScrimAlpha(float alpha) {\n mShowScrim = alpha > 0f;\n mRenderer.getPaint().setAlpha((int) (alpha * 255));\n invalidate();\n }", "public abstract void setBackgroundPressed(final int rgba);", "@Override\n\tpublic void setTransparency(float transparency) {\n\t\t\n\t}", "public void setBg(){\n this.setBackground(color);\n }", "private void makeTransparent(JButton component)\n {\n component.setOpaque(false);\n component.setContentAreaFilled(false);\n component.setBorderPainted(false);\n }", "private void makeTransparentBackground(View v)\n {\n v.setBackgroundColor(0x00000000); //set the transparent background\n }", "public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }", "public void setContentMouseTransparent(boolean val) {\n\t\tcontent.setMouseTransparent(val);\n\t}", "public abstract void setBackgroundHover(final int rgba);", "public void hide(){\n background.setOpacity(0);\n text.setOpacity(0);\n }", "public native void setOpacity(int opacity);", "protected void addopqueueonBackground() {\n\t\tlv.setClickable(false);\n\t\tlvx.setClickable(false);\n\t\trefresh.setClickable(false);\n\t\tsearch.setClickable(false);\n\t\tsearch.setEnabled(false);\n\t\tlv.setEnabled(false);\n\t\tlvx.setEnabled(false);\n\t\trefresh.setEnabled(false);\n\t\tcancelButton.setClickable(false);\n\t\tcancelButton.setEnabled(false);\n\t\tlistbackground.setAlpha(0.5f);\n\t\tbackground.setAlpha(0.5f);\n\t}", "public StockEvent setBackgroundAlpha(Double backgroundAlpha) {\n this.backgroundAlpha = backgroundAlpha;\n return this;\n }", "public void setActivingColor(){\n this.setBackground(new Color( 213, 228, 242));\n this.forceupdateUI();\n }", "public final void mo39711K() {\n setBackgroundColor(0);\n }", "@Override\n public void setAlpha(int alpha) {\n if (alpha != mAlpha) {\n mAlpha = alpha;\n invalidateSelf();\n }\n }", "public abstract void setForegroundPressed(final int rgba);", "@Override\r\n public void setBackground(Color c) {\r\n super.setBackground(c);\r\n colorWheel = null;\r\n repaint();\r\n }", "public void setBackgroundToDefault(){\n\t\tcurrentBackgroundImage = defaultBackgroundImage;\n\t\tbackgroundPanel.changeBackground(defaultBackgroundImage);\n\t}", "public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}", "public void setEnteredBackground(boolean enteredBackground) {\n this.enteredBackground = enteredBackground;\n }", "protected void setTranslucentStatus(boolean on) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n Window win = getWindow();\n WindowManager.LayoutParams winParams = win.getAttributes();\n final int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS;\n if (on) {\n winParams.flags |= bits;\n } else {\n winParams.flags &= ~bits;\n }\n win.setAttributes(winParams);\n }\n }", "@Override\n public void setAlpha(float alpha) {\n super.setAlpha(alpha);\n\n int newVisibility = alpha <= 0f ? View.GONE : View.VISIBLE;\n setVisibility(newVisibility);\n }", "public void setBackground(Color back) {\r\n this.back = back;\r\n }", "public void setAlpha(float alpha);", "public void setBackground(Paint background) {\r\n Paint old = getBackground();\r\n this.background = background;\r\n firePropertyChange(\"background\", old, getBackground());\r\n }", "private AlphaComposite makeTransparent(float alpha){\n return(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,alpha));\n }", "protected void removealphaOpeque() {\n\t\tlistbackground.setAlpha(1f);\n\t\tbackground.setAlpha(1f);\n\t\tlv.setClickable(true);\n\t\tlvx.setClickable(true);\n\t\trefresh.setClickable(true);\n\t\tsearch.setClickable(true);\n\t\tsearch.setEnabled(true);\n\t\tlv.setEnabled(true);\n\t\tlvx.setEnabled(true);\n\t\tcancelButton.setClickable(true);\n\t\tcancelButton.setEnabled(true);\n\t\trefresh.setEnabled(true);\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.TRANSP,\n jname = \"transp\",\n eventProperty = true)\n public void setTransparency(final String val) {\n transparency = val;\n }", "public boolean getTransparent() {\n\t\treturn _transparent;\n\t}", "public void setBackgroundColor(Color background)\n {\n backgroundColor = background;\n paintAllObjects();\n }", "public void setBackgroundPainted(boolean backPainted) {\r\n boolean old = isBackgroundPainted();\r\n this.backPainted = backPainted;\r\n firePropertyChange(\"backgroundPainted\", old, isBackgroundPainted());\r\n }", "public void setBackground(int index){\r\n\t\tsuper.setBackground(myBackgrounds.get(index));\r\n\t}", "private void clearBackground() {\r\n\t\tg.setColor(Color.WHITE);\r\n\t\tg.fillRect(0,0, TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH);\r\n\t}", "public void enterBackground();", "public void draw() {\n background(0);\n}", "public void setDropActiveBackground() {\n setBackgroundDrawable(getDropActiveBgDrawable());\n }", "public void leftOff() {\r\n\t\tsetLeftColor(0, 0, 0);\r\n\t}", "public void setForegroundTranslucence(float alpha) {\n\t\tthis.fgAC = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);\n\t}", "private void setBackground() throws IOException{\n\t\tBufferedImage backgroundBufferedImage = ImageLoader.getBufferedImage(backgroundImagePath);\n\t\tmainWindow.setBackgroundImage(backgroundBufferedImage);\n\t}", "@Override\n public void setAlpha(int alpha) {\n patternDrawable.setAlpha(alpha);\n }", "protected void setPlayerBackground() { Console.setBackground(Console.YELLOW); }", "@Override\r\n\tpublic void setBackgroundResource(int resid) {\n\t\tsuper.setBackgroundResource(resid);\r\n\t}", "@Override\n public void setFocused()\n {\n setImage(\"MinusFocused.png\");\n }", "public void cancelSelectionBorder(){\n BackgroundImage bgselected= new BackgroundImage(new Image(\"rugbeats/img/Background_selectedhdpi.png\"),BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT,\n new BackgroundSize(1.0, 1.0, true, true, false, false));\n ImgStack.setBackground(new Background(bgselected));\n }", "public void setBackground(){\r\n Image background = new Image(\"Cards/table.jpg\", 192, 80, false, true);\r\n BackgroundImage backgroundImg = new BackgroundImage(background, BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT,BackgroundPosition.DEFAULT, null);\r\n mainPane.setBackground(new Background(backgroundImg));\r\n }", "public TransparencyDemo() {\r\n super();\r\n view3DButton.addItemListener(this);\r\n drawBehindButton.addItemListener(this);\r\n transparencySlider.addChangeListener(this);\r\n }", "@Override\r\n public void setOpaque(boolean bln) {\r\n super.setOpaque(false); \r\n }", "@Override\r\n public void setOpaque(boolean bln) {\r\n super.setOpaque(false); \r\n }", "protected void drawForegroundToBackground() {\n if (backgroundColor == null) { return; }\n\n final BufferedImage backgroundBufferedImage = new BufferedImage(dimension.width, dimension.height, this.bufferedImage.getType());\n final Graphics graphics = backgroundBufferedImage.getGraphics();\n\n // draw current color\n graphics.setColor(backgroundColor);\n graphics.fillRect(0, 0, dimension.width, dimension.height);\n graphics.drawImage(bufferedImage, 0, 0, null);\n\n // draw back to original\n final Graphics graphics2 = bufferedImage.getGraphics();\n graphics2.drawImage(backgroundBufferedImage, 0, 0, null);\n }", "public void allOff() {\r\n\t\tsetAllColor(0, 0, 0);\r\n\t}", "public void setPointerAlpha(int alpha) {\r\n\t\tif (alpha >=0 && alpha <= 255) {\r\n\t\t\tmPointerAlpha = alpha;\r\n\t\t\tmPointerHaloPaint.setAlpha(mPointerAlpha);\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}", "@Override\n public void setBackgroundColor(int backgroundColor) {\n }", "public void ConfiguracionBackground(int nNormal, int nFocus)\n {\n // Establecemos los valores de los background\n m_nBckNormal = nNormal;\n m_nBckFocus = nFocus;\n }", "public static Appearance setTransparentAppearance(Appearance appearance, int mode, float transVal) {\r\n\t\tif (appearance == null) {\r\n\t\t\tappearance = AppearanceFactory.createAppearance();\r\n\t\t}\r\n\r\n\t\tTransparencyAttributes trans = new TransparencyAttributes(mode, transVal);\r\n\t\tappearance.setTransparencyAttributes(trans);\r\n\r\n\t\treturn appearance;\r\n\t}", "protected boolean getTransparent() {\n\treturn isTransparent;\n }", "public void changeBackground(Bitmap bg){\n Drawable newbackground = new BitmapDrawable(getResources(), bg);\n this.setBackground(newbackground);\n\n }", "private void setBackgroundColor(int backColor){\n backgroundColor = backColor;\n touchArea.setBackgroundColor(backgroundColor);\n }", "public void setBackground(int x)\r\n { \t\r\n \tbg.setColor(ptools.color2Color3f(x));\r\n }", "public native boolean transparentImage(PixelPacket color, int opacity)\n\t\t\tthrows MagickException;", "public void invert() {\n int len= currentIm.getRows() * currentIm.getCols();\n \n // invert all pixels (leave alpha/transparency value alone)\n \n // invariant: pixels 0..p-1 have been complemented.\n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= 255 - DM.getRed(rgb);\n int blue= 255 - DM.getBlue(rgb);\n int green= 255 - DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n currentIm.setPixel(p,\n (alpha << 24) | (red << 16) | (green << 8) | blue);\n }\n }", "@Override\n public void onDismiss() {\n backgroundAlpha(1f);\n }", "@Override\n public void paintComponent(final Graphics g) {\n if (!isOpaque()) {\n super.paintComponent(g);\n return;\n }\n \n // use value of JTextField for consistency\n g.setColor(UIManager.getColor(\"TextField.inactiveBackground\"));\n g.fillRect(3, 3, getWidth() - 6, getHeight() - 6);\n \n // do rest, changing opaque to ensure background is not overwritten\n setOpaque(false);\n super.paintComponent(g);\n setOpaque(true);\n }", "public void setBackground(Background bgFront, Background bgBack) {\n\t\tthis.bgFront = bgFront;\n\t\tthis.bgBack = bgBack;\n\t}", "public void Back_To_White(View view) {\r\n lL.setBackgroundColor(Color.WHITE);\r\n }", "public void revertColor()\r\n\t{\r\n\t\tif (savedColor != null)\r\n\t\t{\r\n\t\t\tg.setColor(savedColor);\r\n\t\t}\r\n\t}", "public void linksTransparent(boolean b) { link_trans_cbmi.setSelected(b); }", "private void asignarColor(JPanel pane) {\n pane.setBackground(new Color(236, 37, 32));\n }", "public void setGridOpacity(int opacity) {\n this.gridOpacity = opacity;\n this.repaint();\n }", "public void setPaintAlpha(int newAlpha){\n paintAlpha=Math.round((float)newAlpha/100*255);\n drawPaint.setColor(paintColor);\n drawPaint.setAlpha(paintAlpha);\n }", "public void setBackgroundColor(int color) {\n //this.backgroundColor = 0xFF000000 | color; // Remove the alpha channel\n this.backgroundColor = color;\n if (ad != null) {\n ad.setBackgroundColor(color);\n }\n\n invalidate();\n }", "void disableBackgroundDate();", "public void setBackgroundLayerColor(int color) {\n this.backgroundLayerColor = color;\n }", "public void xtestWindowTransparency() throws Exception {\n if (GraphicsEnvironment.isHeadless())\n return;\n System.setProperty(\"sun.java2d.noddraw\", \"true\");\n GraphicsConfiguration gconfig = WindowUtils.getAlphaCompatibleGraphicsConfiguration();\n Frame root = JOptionPane.getRootFrame();\n final Window background = new Window(root);\n background.setBackground(Color.white);\n background.setLocation(X, Y);\n final JWindow transparent = new JWindow(root, gconfig);\n transparent.setLocation(X, Y);\n ((JComponent)transparent.getContentPane()).setOpaque(false);\n transparent.getContentPane().add(new JComponent() {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\tpublic Dimension getPreferredSize() {\n return new Dimension(W, H);\n }\n protected void paintComponent(Graphics g) {\n g = g.create();\n g.setColor(Color.red);\n g.fillRect(getWidth()/4, getHeight()/4, getWidth()/2, getHeight()/2);\n g.drawRect(0, 0, getWidth()-1, getHeight()-1);\n g.dispose();\n }\n });\n transparent.addMouseListener(handler);\n transparent.addMouseMotionListener(handler);\n \n SwingUtilities.invokeAndWait(new Runnable() { public void run() {\n background.pack();\n background.setSize(new Dimension(W, H));\n background.setVisible(true);\n transparent.pack();\n transparent.setSize(new Dimension(W, H));\n transparent.setVisible(true);\n transparent.toFront();\n }});\n \n WindowUtils.setWindowTransparent(transparent, true);\n \n //robot.delay(60000);\n\n Color sample = robot.getPixelColor(X + W/2, Y + H/2);\n assertEquals(\"Painted pixel should be opaque\", Color.red, sample);\n \n sample = robot.getPixelColor(X + 10, Y + 10);\n assertEquals(\"Unpainted pixel should be transparent\", Color.white, sample);\n }", "private void setAreaTransparent(int p_78434_1_, int p_78434_2_, int p_78434_3_, int p_78434_4_)\r\n {\r\n if (!this.hasTransparency(p_78434_1_, p_78434_2_, p_78434_3_, p_78434_4_))\r\n {\r\n for (int var5 = p_78434_1_; var5 < p_78434_3_; ++var5)\r\n {\r\n for (int var6 = p_78434_2_; var6 < p_78434_4_; ++var6)\r\n {\r\n this.imageData[var5 + var6 * this.imageWidth] &= 16777215;\r\n }\r\n }\r\n }\r\n }", "protected void doDark() {\r\n\t\talpha = 0.5f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "public StockDateTime setBackground(Boolean background1) {\n if (jsBase == null) {\n this.background = null;\n this.background1 = null;\n this.background2 = null;\n \n this.background1 = background1;\n } else {\n this.background1 = background1;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".background(%b)\", background1));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".background(%b);\", background1));\n js.setLength(0);\n }\n }\n return this;\n }", "@Override\n\tpublic Drawable background() {\n\t\treturn null;\n\t}", "protected int getColor() {\n return Color.TRANSPARENT;\n }", "private void setAreaTransparent(int p_78434_1_, int p_78434_2_, int p_78434_3_, int p_78434_4_)\n {\n if (!this.hasTransparency(p_78434_1_, p_78434_2_, p_78434_3_, p_78434_4_))\n {\n for (int var5 = p_78434_1_; var5 < p_78434_3_; ++var5)\n {\n for (int var6 = p_78434_2_; var6 < p_78434_4_; ++var6)\n {\n this.imageData[var5 + var6 * this.imageWidth] &= 16777215;\n }\n }\n }\n }", "public void setAlpha(float alpha) {\n\t\tthis.alpha = alpha;\n\t}", "protected void clearToBack()\n {\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,getBackground());\n\trenderFilledRect(g,0,0,width,height);\n }", "@Override\n public void setBackgroundDrawable(Drawable d) {\n if (d != getBackground()) {\n super.setBackgroundDrawable(d);\n }\n }", "public void setAlpha(int newAlpha)\n {\n setColor(getColor().withAlpha(newAlpha));\n }", "@Override\n\tpublic int getOpacity() {\n\t\treturn 0;\n\t}", "public boolean isTranslucent() {\n return false;\n }", "private void drawBackground(Graphics2D g2d, ScreenParameters screenParameters) {\n Composite defaultComposite = g2d.getComposite();\n g2d.setComposite(LOW_OPACITY);\n g2d.drawImage(background, 0, 0, screenParameters.x, screenParameters.y, null);\n g2d.setComposite(defaultComposite);\n }", "protected int setPaintAlpha(Paint paint, int alpha) {\n final int prevAlpha = paint.getAlpha();\n paint.setAlpha(Ui.modulateAlpha(prevAlpha, alpha));\n return prevAlpha;\n }", "public void fade() {\n if (scene != 4) {\n // checks whether fade is true\n if (fade == true) {\n\n //begins to degrees the transparency variable by 20\n transparency -= fadeSpeed;\n\n // increment the transparency variable back to normal if fade equeals false\n } else if (transparency < 255) {\n transparency += fadeSpeed;\n }\n\n //determines when to change picture and begin to fade it back in\n if (transparency < fadeBoundary) {\n fade = false;\n\n // changes to next image in the slideshow\n slider = (slider + 1) % slideAmount[scene];\n }\n }\n }", "private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}", "public void resetBG() {\n\t\t\tfor(int i = 0; i < colonnes.size(); i++) {\n\t\t\t\tcolonnes.get(i).resetBG();\n\t\t\t}\n\t\t}", "public void setBackgroundImage(BackgroundImage image) {\n this.backgroundImage = image;\n }", "public void setBackground(Color color)\r\n\t{\r\n\t\t// System.out.println(\"setBackground\");\r\n\t}", "public void enterBackground() {\n if (mRenderView != null && !(mRenderView instanceof SurfaceRenderView)) {\n removeView(mRenderView.getView());\n }\n }", "public boolean isBackgroundPainted() {\r\n return backPainted;\r\n }", "public boolean isOpaque()\n/* */ {\n/* 83 */ Color back = getBackground();\n/* 84 */ Component p = getParent();\n/* 85 */ if (p != null) {\n/* 86 */ p = p.getParent();\n/* */ }\n/* */ \n/* 89 */ boolean colorMatch = (back != null) && (p != null) && (back.equals(p.getBackground())) && (p.isOpaque());\n/* */ \n/* */ \n/* 92 */ return (!colorMatch) && (super.isOpaque());\n/* */ }", "protected void fading(float alpha) { }", "private void decorate() {\n setBorderPainted(false);\n setOpaque(true);\n \n setContentAreaFilled(false);\n setMargin(new Insets(1, 1, 1, 1));\n }" ]
[ "0.6638658", "0.6566992", "0.6504804", "0.64314955", "0.62922496", "0.6217981", "0.6205939", "0.6159407", "0.6151275", "0.6099531", "0.59014255", "0.5900722", "0.5848134", "0.5837283", "0.58227295", "0.5808302", "0.5806342", "0.57972157", "0.5774113", "0.57427764", "0.57306594", "0.57235104", "0.5687786", "0.568721", "0.5673838", "0.5659003", "0.5656577", "0.5644833", "0.5624549", "0.5611048", "0.5610721", "0.5604861", "0.5602636", "0.55994046", "0.55668986", "0.55605865", "0.5557971", "0.55571866", "0.5552127", "0.5551909", "0.5544008", "0.55228096", "0.5507838", "0.54884285", "0.547494", "0.5460749", "0.5423214", "0.54177636", "0.541076", "0.53852195", "0.53852195", "0.53771853", "0.5371548", "0.5370985", "0.53632003", "0.5353112", "0.53486973", "0.53197235", "0.5316544", "0.531375", "0.53010225", "0.527402", "0.5271921", "0.5271711", "0.52605605", "0.5254166", "0.5242548", "0.52413815", "0.52340895", "0.5226837", "0.5221919", "0.52201116", "0.5204959", "0.52037984", "0.5201912", "0.51999557", "0.5197313", "0.5197301", "0.51955193", "0.519416", "0.51928335", "0.51752025", "0.517491", "0.51699513", "0.5164761", "0.5164032", "0.5161686", "0.515716", "0.5140175", "0.5137992", "0.5128702", "0.5125857", "0.5101891", "0.5100928", "0.5093963", "0.5088485", "0.50880283", "0.5077534", "0.5076921", "0.5070683" ]
0.7016982
0
Gets the transparent state of the background.
public boolean getTransparent() { return _transparent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTransparency() {\n return Color.TRANSLUCENT;\n }", "protected int getColor() {\n return Color.TRANSPARENT;\n }", "protected boolean getTransparent() {\n\treturn isTransparent;\n }", "public BufferedImage getBackground() {\n BufferedImage background = new BufferedImage(getImageWidth(),\n getImageHeight(), BufferedImage.TYPE_INT_RGB);\n return background;\n }", "public Color getBackground();", "public String getTransparency() {\n return transparency;\n }", "Sprite getBackground();", "@Nullable\n public Background getBackground() {\n if (mImpl.hasBackground()) {\n return Background.fromProto(mImpl.getBackground());\n } else {\n return null;\n }\n }", "public UiBackground getBackground() {\n if (getBackground == null)\n getBackground = new UiBackground(jsBase + \".background()\");\n\n return getBackground;\n }", "public Paint getBackground() {\r\n return background;\r\n }", "public Color getBackground()\r\n\t{\r\n\t\treturn _g2.getBackground();\r\n\t}", "public int getBackground() {\n updateBackgroundID();\n return background;\n }", "public Sprite getBackground() {\n this.background = new CirclesBackground();\n return this.background;\n }", "public Piece.COLOR getInactiveColor() {\n if (Piece.COLOR.RED == getActiveColor())\n return Piece.COLOR.WHITE;\n else\n return Piece.COLOR.RED;\n }", "public Sprite getBackground() {\r\n return new BackGround4();\r\n }", "public int getBackground() {\n return background;\n }", "public Color getBackground(){\r\n return back;\r\n }", "public Background getBackground() {\r\n return this.background;\r\n }", "public int getFragmentBackgroundResource() {\n return R.drawable.transparent;\n }", "public Color getPressedBackgroundColor() {\n return pressedBackgroundColor;\n }", "public float getAlpha() {\n if (this.isConnectedToGame)\n return 1.0f;\n else\n return 0.5f;\n }", "@Override\n\tpublic int getOpacity() {\n\t\treturn PixelFormat.OPAQUE;\n\t}", "public DoubleBackground getBackground() {\n\t\treturn background;\n\t}", "private AlphaComposite makeTransparent(float alpha){\n return(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,alpha));\n }", "public int getTransparency() {\n/* 148 */ return this.bufImg.getColorModel().getTransparency();\n/* */ }", "public Color getGraphBackground() {\r\n \t\treturn graph.getBackground();\r\n \t}", "public int getAlpha()\n {\n return getColor().alpha();\n }", "double getTransparency();", "public int getDrawableBackground() {\n return this.drawable_background;\n }", "public int backgroundColor() {\n // create/return the background color\n return Color.rgb(180, 200, 255);\n }", "public boolean isBackgroundPainted() {\r\n return backPainted;\r\n }", "public double getLastBackgroundLevel() {\r\n return background;\r\n }", "public boolean isOpaque()\n/* */ {\n/* 83 */ Color back = getBackground();\n/* 84 */ Component p = getParent();\n/* 85 */ if (p != null) {\n/* 86 */ p = p.getParent();\n/* */ }\n/* */ \n/* 89 */ boolean colorMatch = (back != null) && (p != null) && (back.equals(p.getBackground())) && (p.isOpaque());\n/* */ \n/* */ \n/* 92 */ return (!colorMatch) && (super.isOpaque());\n/* */ }", "@Override\n public int getOpacity() {\n return DrawableUtils.getOpacityFromColor(DrawableUtils.multiplyColorAlpha(mColor, mAlpha));\n }", "public Texture getBgColor () {\n\t\treturn this.bgColor;\n\t}", "protected Background background () {\n return Background.bordered(0xFFCCCCCC, 0xFFCC99FF, 5).inset(5);\n }", "@Override\n public Region getTransparentRegion() {\n return patternDrawable.getTransparentRegion();\n }", "public Colour getBackgroundColor() {\n return colour == null ? null : colour.getBackground();\n }", "public Color getBackgroundColor() {\n return getValue(PROP_BACKGROUND_COLOR);\n }", "public Color getDateCenterBackgroundImpairColor() {\n\t\treturn dateCenterBackgroundImpairColor;\n\t}", "public BufferedImage getBackgroundImage(){\n\t\treturn currentBackgroundImage;\n\t}", "Color getBackgroundColor();", "int getOpacity();", "public Color getSelectionBackground() {\n checkWidget();\n Color result = selectionBackground;\n if( result == null ) {\n ThemeManager themeMgr = ThemeManager.getInstance();\n CTabFolderThemeAdapter adapter\n = ( CTabFolderThemeAdapter )themeMgr.getThemeAdapter( CTabFolder.class );\n result = adapter.getSelectedBackground( this );\n }\n if( result == null ) {\n // Should never happen as the theming must prevent transparency for\n // this color\n throw new IllegalStateException( \"Transparent selection background color\" );\n }\n return result;\n }", "public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }", "public abstract View getBlackBackground();", "@Override\n\tpublic int getOpacity() {\n\t\treturn 0;\n\t}", "public Color getBackgroundColor(){\n\t\treturn Color.BLACK;\n\t}", "@Override\n\tpublic Drawable background() {\n\t\treturn null;\n\t}", "protected int getShadeAlpha() {\n int a = currAlpha - 80;\n if (a < 0)\n a = 0;\n return a;\n }", "public Color getBackgroundColor() {\n return backColor;\n }", "public String getButtonBgColor() {\r\n\t\tif (_saveButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _saveButton.getButtonBgColor();\r\n\t}", "public CXformWithAlpha getColorTransform() {\n return colorTransform;\n }", "String getTransparencyAsString();", "public java.lang.Integer getBgFlags() {\r\n return bgFlags;\r\n }", "public String getBackgroundImage() {\n\t\treturn this.backgroundImage;\n\t}", "@Override\r\n\t\tpublic int getOpacity()\r\n\t\t{\n\t\t\treturn 0;\r\n\t\t}", "@Override\r\n public Sprite getBackground() {\r\n return new Level3Background();\r\n }", "public boolean isOpaque() {\n return mOpaque;\n }", "public static Color getColor() { return lblColor.getBackground(); }", "@Override\n\t\t\tpublic int getOpacity() {\n\t\t\t\treturn 0;\n\t\t\t}", "public TransparentDataEncryptionActivityStates status() {\n return this.status;\n }", "public Color[] getBackgroundColorsArray() {\n\t\treturn this.BackgroundColor;\n\t}", "public native final String backgroundColor() /*-{\n\t\treturn this.backgroundColor;\n\t}-*/;", "public boolean isTranslucent() {\n return false;\n }", "public Animation inAlpha() {\n\t\treturn getAlphaInAnim(mInDuration, false);\n\t}", "@Override\n public double getGlobalAlpha() {\n return graphicsEnvironmentImpl.getGlobalAlpha(canvas);\n }", "public Color getBackgroundColor() {\n\t\treturn backgroundColor;\n\t}", "public final String getBgColor() {\n\t\treturn bgColor;\n\t}", "public Pic invert() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n current.setRed(255 - current.getRed());\n current.setGreen(255 - current.getGreen());\n current.setBlue(255 - current.getBlue());\n }\n }\n return output;\n }", "public float getOpacity(){\n\t\t\n\t\tif(this.isDestroyed()){\n\t\t\treturn 0;\n\t\t}\n\t\tlong time = System.currentTimeMillis() - creationTime;\n\t\t\n\t\tfloat opacity;\n\t\tif(time == 0 || time == visibleTime){\n\t\t\topacity = 0;\n\t\t}else if(time < visibleTime/4){\n\t\t\topacity = (float)easingInOut(time, 0, 1 , visibleTime/4);\n\t\t}else if (time > (visibleTime/4)*3){\n\t\t\topacity = (float)easingInOut(visibleTime - time, 0, 1,visibleTime/4);\n\t\t}else{\n\t\t\topacity = 1;\n\t\t}\n\t\treturn Math.max(0, Math.min(1,opacity));\n\t}", "public BackgroundImage getBackgroundImage() {\n return this.backgroundImage;\n }", "public Integer getOpacity() {\n return opacity;\n }", "public Color getBackgroundColor()\n {\n return backgroundColor;\n }", "public Color getScreenBackgroundColor();", "private Optional<String> getBackgroundColor() {\n return Optional.ofNullable(this.currentStyle)\n .filter(style -> style.get(PN_BACKGROUND_COLOR_ENABLED, Boolean.FALSE))\n .flatMap(style -> Optional.ofNullable(this.resource.getValueMap().get(PN_BACKGROUND_COLOR, String.class)))\n .filter(StringUtils::isNotEmpty);\n }", "boolean getNoColor();", "public float getConstantOpacity() {\n/* 185 */ return getCOSObject().getFloat(COSName.CA, 1.0F);\n/* */ }", "public Drawable getSelectionModeBackgroundDrawable() {\n return mSelectionModeBackgroundDrawable;\n }", "public GraphBG getGraphBG() {\n if (nobg_rbmi.isSelected()) return GraphBG.NONE;\n else if (geo_out_rbmi.isSelected()) return GraphBG.GEO_OUT;\n else if (geo_fill_rbmi.isSelected()) return GraphBG.GEO_FILL;\n else if (geo_touch_rbmi.isSelected()) return GraphBG.GEO_TOUCH;\n else if (kcores_rbmi.isSelected()) return GraphBG.KCORES;\n else return GraphBG.NONE;\n }", "private static Picture negateColor(Picture pic){\r\n int red = 0, green = 0, blue = 0;\r\n\r\n for( Pixel p : pic.getPixels()){\r\n // get colors of pixel and negate\r\n red = 255 - p.getRed();\r\n green = 255 - p.getGreen();\r\n blue = 255 - p.getBlue();\r\n p.setColor(new Color(red, green, blue));\r\n // pic.setBasicPixel(p.getX(), p.getY(), color.hashCode());\r\n }\r\n return pic;\r\n }", "private Texture createBackground() {\n Pixmap backgroundPixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n backgroundPixmap.setColor(0, 0, 0, 0.3f);\n backgroundPixmap.fill();\n Texture texture = new Texture(backgroundPixmap);\n backgroundPixmap.dispose();\n return texture;\n }", "public float getAlpha() {\n \t\treturn alpha;\n\t}", "public void setBackgroundTranslucence(float alpha) {\n\t\tthis.bgAC = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);\n\t}", "public static float\ngetTransparency(SoState state, int index)\n{\n\t SoLazyElement elem = getInstance(state);\n\n\t if (elem.coinstate.packeddiffuse) {\n\t final float[] transp = new float[1];\n\t final SbColor dummy = new SbColor();\n\t int numt = elem.coinstate.numdiffuse;\n\t dummy.setPackedValue(elem.coinstate.packedarray.get(index < numt ? index : numt-1), transp);\n\t return transp[0];\n\t }\n\t int numt = elem.coinstate.numtransp;\n\t return elem.coinstate.transparray.get(index < numt ? index : numt-1);\t\n}", "@Override\n public int getAlpha() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n return patternDrawable.getAlpha();\n }\n\n return 0xFF;\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTableBackgroundStyle getTblBg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTableBackgroundStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTableBackgroundStyle)get_store().find_element_user(TBLBG$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public final Brush getActiveBrush() {\n return activeBrush;\n }", "public StoneColor getOpposite() {\n if (this== StoneColor.BLACK) {return StoneColor.WHITE;}\n else if (this == StoneColor.WHITE) {return StoneColor.BLACK;}\n return StoneColor.EMPTY;\n }", "public void invert() {\n int len= currentIm.getRows() * currentIm.getCols();\n \n // invert all pixels (leave alpha/transparency value alone)\n \n // invariant: pixels 0..p-1 have been complemented.\n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= 255 - DM.getRed(rgb);\n int blue= 255 - DM.getBlue(rgb);\n int green= 255 - DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n currentIm.setPixel(p,\n (alpha << 24) | (red << 16) | (green << 8) | blue);\n }\n }", "public int getGroundColor() {\n return this.groundColor;\n }", "public Background getBackground(int index){\r\n\t\treturn myBackgrounds.get(index);\r\n\t}", "String getBackdropColorAsString();", "public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }", "public Color getForeground();", "float getBackgroundPower();", "public Color getActiveColor() {\n\t\treturn this.activeColor;\n\t}", "public float getOpacity() { Number n = (Number)get(\"Opacity\"); return n!=null? n.floatValue() : 1; }", "public native boolean transparentImage(PixelPacket color, int opacity)\n\t\t\tthrows MagickException;", "public Pic noRed() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n current.setRed(0);\n }\n }\n return output;\n }" ]
[ "0.6610662", "0.6581616", "0.65387726", "0.6419712", "0.6406946", "0.6375726", "0.6331396", "0.63214916", "0.6301704", "0.6262627", "0.6230362", "0.6150271", "0.61094993", "0.6078013", "0.6070737", "0.6070125", "0.6050176", "0.6033182", "0.603224", "0.601822", "0.60088843", "0.60006475", "0.5992545", "0.5955963", "0.5954857", "0.59538555", "0.5950821", "0.5937801", "0.59035546", "0.58908135", "0.588128", "0.5845401", "0.5840663", "0.5824946", "0.5822441", "0.5801029", "0.579365", "0.57872", "0.57513505", "0.5749975", "0.57367486", "0.5734782", "0.57055867", "0.56800413", "0.5676818", "0.5671903", "0.566523", "0.564291", "0.56339294", "0.5618113", "0.5612286", "0.56031555", "0.55880994", "0.5571296", "0.5569735", "0.5567896", "0.55668026", "0.55385673", "0.5533568", "0.5530416", "0.5518545", "0.5514627", "0.55081654", "0.550294", "0.5490804", "0.54701793", "0.54521745", "0.54392135", "0.543046", "0.54259425", "0.54179317", "0.5412788", "0.53983176", "0.5393893", "0.53910655", "0.5375368", "0.5373517", "0.537266", "0.5365644", "0.5358231", "0.533672", "0.5331218", "0.53297967", "0.5326812", "0.53202343", "0.5314089", "0.530416", "0.5298415", "0.52945906", "0.52779585", "0.52617216", "0.5261386", "0.5256925", "0.5251557", "0.52440935", "0.52391684", "0.5226183", "0.5207091", "0.5206216", "0.5198456" ]
0.70929134
0
This method adds a new node to the LinkedList
public void add(ListNode newNode) { if (length == 0) { firstNode=newNode; } else { ListNode currentNode; ListNode previousNode = null; currentNode = firstNode; while(currentNode!=null) { previousNode = currentNode; currentNode = currentNode.next; } currentNode = newNode; previousNode.next = currentNode; } length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "public void add(Node newNode) {\r\n\t\tif (this.size() == 0) {\r\n\t\t\thead = newNode;\r\n\t\t\ttail = newNode;\r\n\t\t}else {\r\n\t\t\ttail.setNext(newNode); \r\n\t\t\ttail = newNode;\r\n\t\t}\r\n\t\tthis.setSize(this.size() + 1);\r\n\t}", "public void addNode(Node newNode){\r\n\t\t\tNode temp = this.head;\r\n\t\t\tnewNode.prev = null;\r\n\t\t\tif(this.head == null){\r\n\t\t\t\tthis.head = newNode;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\twhile(temp.next!=null){\r\n\t\t\t\t\ttemp = temp.next;\r\n\t\t\t\t}\r\n\t\t\t\ttemp.next = newNode;\r\n\t\t\t\tnewNode.prev = temp;\r\n\t\t\t}\r\n\t\t}", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }", "private void addNode(DLinkedNode node) {\n\t\tnode.prev = head;\n\t\tnode.next = head.next;\n\n\t\thead.next.prev = node;\n\t\thead.next = node;\n\t}", "private void appendNode(int data) {\n\t\tNode currentNode = head;\n\t\tNode newNode = new Node(data);\n\n\t\tif(currentNode==null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tif(currentNode.next==null) {\n\t\t\tcurrentNode.next=newNode;\n\t\t} else {\n\t\t\twhile(currentNode.next!=null) {\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t\tcurrentNode.next = newNode;\n\t\t}\n\t\tSystem.out.println(\" Added new Node to the linkedList \");\n\t}", "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "public void add(E data) {\r\n\t\tNode<E> newNode = new Node<E>(data, null);\r\n\t\t/**\r\n\t\t * If the LinkList is empty, add the node next to the headNode, and it become the last element\r\n\t\t */\r\n\t\tif(headNode.link == null) {\r\n\t\t\theadNode.link = newNode;\r\n\t\t\ttailNode = newNode;\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\ttailNode.link = newNode;\r\n\t\t\ttailNode= newNode;\r\n\t\t}\r\n\t\t\r\n\t\tsize++;\r\n\t}", "public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}", "void addNode(String node);", "public void add(String newData) {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\tNode node = new Node(newData);\n\t\tnode.next = head;\n\t\thead = node;\n\t\tnumElements++;\n\t}", "private void add(int d) {\n Node newNode = new Node(d);\n if(null==head) {\n head = newNode;\n return;\n }\n\n Node tmp = head;\n while(null!=tmp.next) {\n tmp = tmp.next;\n }\n tmp.next = newNode;\n }", "void addNode(int node);", "private void addNode(Node node) {\n node.prev = fakeHead;\n node.next = fakeHead.next;\n \n fakeHead.next.prev = node;\n fakeHead.next = node;\n }", "public void add(E value) { // add a value to the linked list\n\t\tif (head == null) {\n\t\t\thead = new Node<E>(value);\n\t\t\treturn;\n\t\t} else {\n\t\t\tNode<E> temp = new Node<E>(value);\n\t\t\tNode<E> current = head;\n\t\t\twhile (current.getNext() != null) {\n\t\t\t\tcurrent = current.getNext();\n\t\t\t}\n\t\t\t// set the new node's next-node reference to this node's next-node\n\t\t\t// reference\n\t\t\ttemp.setNext(current.getNext());\n\t\t\t// now set this node's next-node reference to the new node\n\t\t\tcurrent.setNext(temp);\n\t\t}\n\t}", "@Override\n public boolean add(ListNode e) {\n if (this.size() != 0){\n ListNode last = this.getLast();\n last.setNext(e);\n }\n return super.add(e);\n }", "public void addNode(int item) { \n //Create a new node \n Node newNode = new Node(item); \n \n //if list is empty, head and tail points to newNode \n if(head == null) { \n head = tail = newNode; \n //head's previous will be null \n head.previous = null; \n //tail's next will be null \n tail.next = null; \n } \n else { \n //add newNode to the end of list. tail->next set to newNode \n tail.next = newNode; \n //newNode->previous set to tail \n newNode.previous = tail; \n //newNode becomes new tail \n tail = newNode; \n //tail's next point to null \n tail.next = null; \n } \n }", "private void add(Node node) {\n Node headNext = head.next;\n head.next = node;\n node.previous = head;\n node.next = headNext;\n headNext.previous = node;\n }", "private void addNode(DLinkedNode node) {\n\t\t\tnode.pre = head;\n\t\t\tnode.post = head.post;\n\n\t\t\thead.post.pre = node;\n\t\t\thead.post = node;\n\t\t}", "public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }", "public void add(Node node) {\n node.next = tail;\n node.prev = tail.prev;\n tail.prev.next = node;\n tail.prev = node;\n size++;\n }", "void append(String new_data) {\n // 1. allocate node \n // 2. put in the data \n Node new_node = new Node(new_data);\n\n Node last = head;\n // used in step 5\n\n // 3. This new node is going to be the last node, so\n // make next of it as NULL\n new_node.next = null;\n\n // 4. If the Linked List is empty, then make the new\n // node as head \n if (head == null) {\n new_node.prev = null;\n head = new_node;\n return;\n }\n\n // 5. Else traverse till the last node \n while (last.next != null) {\n last = last.next;\n }\n\n // 6. Change the next of last node \n last.next = new_node;\n\n // 7. Make last node as previous of new node \n new_node.prev = last;\n }", "public void addNode(int data) {\n\t\t \n\t\tNode newNode = new Node(data);\n\t\t\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}", "private void addNode(DLinkedNode node){\n node.pre = head;\n node.post = head.post;\n\n head.post.pre = node;\n head.post = node;\n }", "public void addNode(NodeImpl node) {\n supervisedNodes.add(node);\n \n colorNodes();\n shortenNodeLabels();\n colorNodeLabels();\n colorNodeLabelBorders();\n }", "private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}", "public void add(E e){\n Node newNode = new Node(e);\n\n if(tail == null){\n this.head = newNode;\n }\n else {\n tail.next = newNode;\n newNode.prev = tail;\n }\n tail = newNode;\n size++;\n }", "public void add(int value) {\nNode newNode = new Node(value);\nif (head == null) {\nhead = newNode;\nsize++;\nreturn;\n}\nNode current = head;\nwhile (current.next != null) {\ncurrent = current.next;\n}\ncurrent.next = newNode;\nsize++;\n}", "public void addLink(E data){\n\t\t\n\t\tNode temp = new Node(data);\n\t\tNode current = head;\t\t//starting at head node and moving to end of list\t\t\t\t\n\t\t\n\t\twhile(current.getNext() != null){\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\tcurrent.setNext(temp);\n\t\tsize++; \t\t\t\t\t// increment the number of element\n\t}", "public void addNode(INode node) {\r\n\t\tnodeList.add(node);\r\n\t}", "@Override\n public ListNode<T> append(T e) {\n \treturn new ListNode<T>(e,this);\n }", "public void addToList(E data){\n if(headNode==null){\n headNode=new Node<E>(data);\n currentNode=headNode;\n }\n else{\n currentNode.next=new Node<E>(data);\n currentNode=currentNode.next;\n }\n size++;\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "public void addNode(Node node){subNodes.add(node);}", "void addAtBegning(int data){\n\t\t\n\t\tNode newNode = new Node(data);\n\t\tnewNode.next = head;\n\t\tif(head != null){\n\t\t\tNode temp = head;\n\t\t\twhile(temp.next != head)\n\t\t\t\ttemp = temp.next;\n\t\t\ttemp.next = newNode;\n\t\t}else{\n\t\t\tnewNode.next = newNode;\n\t\t}\n\t\thead = newNode;\n\t}", "public void add(Node n){\n Node after = head.next;\n head.next = n;\n n.next = after;\n n.prev = head;\n after.prev = n;\n return;\n }", "public void addNode(int data) {\n Node newNode = new Node(data);\n\n if (head == null) { //basically says if there's only one node it's both the head and the tail\n head = newNode;\n tail = newNode;\n listcount = 1;\n } else {\n tail.next = newNode; // the new node is now the tail if one already exists and the other tail variable\n tail = newNode; //with the . is also now the end.\n listcount++;\n }\n }", "public void add(T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n if (head == null)\n head = newNode;\n else {\n\n Node<T> currentNode = head;\n\n while (currentNode.next != null) {\n\n currentNode = currentNode.next;\n\n }\n\n currentNode.next = newNode;\n size++;\n\n }\n }", "public void add(T data) {\n\t\tListNode<T> newTail = new ListNode<T>(data, null);\n\t\tif (empty()) {\n\t\t\tthis.head = newTail;\n\t\t\tthis.size++;\n\t\t} else {\n\t\t\tListNode<T> currentTail = goToIndex(this.size - 1);\n\t\t\tcurrentTail.setNext(newTail);\n\t\t\tthis.size++;\n\t\t}\n\t}", "public void add(T data)\n\t{\n\t\t//set up a new node to reference the data which will be added to the linked list\n\t\tNode<T> newNode = new Node<T>(data);\n\t\t//now you add the node to the linked list\n\t\t//if the linked list is empty then add the node to the head\n\t\tif(head == null)\n\t\t{\n\t\t\thead = newNode;\n\t\t}\n\t\t//if the linked list already has nodes, then add the new node to the end of the linked list\n\t\t//in order to add to the end you have to iterate through the list to find the end of the linked list\n\t\telse\n\t\t{\n\t\t\tNode<T> currentNode = head;\n\t\t\tNode<T> previousNode = head;\n\t\t\twhile(currentNode != null)\n\t\t\t{\n\t\t\t\tpreviousNode = currentNode;\n\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t}\n\t\t\t//you will get out of the loop when you found the end of the linked list\n\t\t\t//so now you can add the new node to the end\n\t\t\tpreviousNode.setNext(newNode);\n\t\t}\n\t}", "private void addNode() {\n // Add GUI node\n int nodeCount = mGraph.getNodeCount();\n Node node = mGraph.addNode(String.valueOf(nodeCount));\n node.addAttribute(\"ui.label\", nodeCount);\n\n // Add Node_GUI node for algorithm to read from\n Node_GUI listNode = new Node_GUI();\n mNodeList.add(listNode);\n }", "public void add(Object data) \r\n\t{\r\n\t\tif(headPointer == null)\r\n\t\t{\r\n\t\t\theadPointer = new Node(data,tail,null);\r\n\t\t}\r\n\t\telse if(tail == null)\r\n\t\t{\r\n\t\t\ttail = new Node(data, null, headPointer);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tNode t = tail;\r\n\t\t\ttail = new Node(data, null, t);\r\n\t\t\tt.setNext(tail);\r\n\t\t\tt.getPrev().setNext(t);\t\t\r\n\t\t}\r\n\t\tincrementCounter();\r\n\t}", "public void append(int new_data) \r\n\t\t{ \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t \r\n\t\t if (head == null) \r\n\t\t { \r\n\t\t head = new Node(new_data); \r\n\t\t return; \r\n\t\t } \r\n\t\t \r\n\t\t new_node.next = null; \r\n\t\t \r\n\t\t Node last = head; \r\n\t\t while (last.next != null) \r\n\t\t last = last.next; \r\n\t\t \r\n\t\t last.next = new_node; \r\n\t\t return; \r\n\t\t}", "private void addNode(Node<AnyType> t) {\n \n if ( isEmpty() ) {\n \n headNode = t;\n tailNode = headNode;\n \n } else { \n \n Node<AnyType> node = getNode( size-1 );\n node.setNextNode( t );\n t.setPreviousNode( node );\n \n tailNode = t;\n \n }\n \n size++;\n \n }", "protected void addingNode( SearchNode n ) { }", "@Override\n\tpublic void add(L value) {\n\t\tif(value==null) throw new NullPointerException();\n\t\tListNode<L> newNode=new ListNode<>(value);\n newNode.storage=value;\n newNode.next=null;\n newNode.previous=last;\n if(last==null){\n first=newNode;\n }else {\n last.next=newNode;\n }\n last=newNode;\n\t\tthis.size++;\n\t\tthis.modificationCount++;\n\t}", "@Override\n public void add(T newItem) {\n LinkedElement<T> tmpElement = new LinkedElement<>(newItem);\n\n if (firstElement == null) {\n firstElement = tmpElement;\n size = 1;\n } else {\n LinkedElement<T> currentElement = firstElement;\n while (currentElement.next != null) {\n currentElement = currentElement.next;\n }\n // currentElement is the last element in the list, now. Meaning that currentElement.next is null.\n currentElement.next = tmpElement; // These two are pointing at each other now.\n tmpElement.prev = currentElement;\n size++;\n }\n }", "public void newNode(E value) throws Exception {\n\t\tif(!hasNext())\n\t\t\tthrow new Exception(\"This node has already been linked\");\n\t\t\n\t\tnext_node = new Node<E>(value);\n\t}", "public void add (Object x) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = new ListNode(x);\n\t\t\tmyTail = myHead;\n\t\t\tmySize++;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = new ListNode(x);\n\t\t\tmyTail = myTail.myNext;\n\t\t\tmySize++;\n\t\t}\n\t\t\n\t}", "public void addNodeToHead(int data) {\r\n\t\tNode temp = head;\r\n\t\tNode new_node = new Node(data);\r\n\t\tif(head == null){\r\n\t\t\thead = new_node;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t \r\n\t\tnew_node.next = temp;\r\n\t\thead = new_node ;\r\n\t}", "public void add(int data)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }", "public void add(String new_word) {\n LinkedList i = this;\n\n while (i.next != null) {\n i = i.next;\n }\n i.next = new LinkedList(new_word);\n }", "public void addNode (NodeState node) throws RepositoryException, IOException\n\t{\n\t}", "public void addNode(Node p_node) {\n\t\tnodes.add(p_node);\n\t}", "private static void appendTheSpecifiedElementToLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t}", "@Override\n public boolean add(Object o) {\n if (o == null) {\n throw new NullPointerException(\"Cannot enter null values\");\n }\n if (size == 0) {\n this.head.setData(o);\n } else {\n Node node = new Node(o, tail, null);\n tail.next = node;\n tail = node;\n }\n size++;\n return true;\n }", "public void add(Node node) {\n if (this.head == null) {\n this.head = node;\n this.tail = node;\n } else {\n this.tail.next = node;\n this.tail = node;\n }\n\n this.length++;\n }", "void append(int new_data) {\n\t\tNode new_node = new Node(new_data);\n\t\tNode last = head;\n\t\tnew_node.next = null;\n\t\tif (head == null) {\n\t\t\tnew_node.prev = null;\n\t\t\thead = new_node;\n\t\t\treturn;\n\t\t}\n\t\twhile (last.next != null)\n\t\t\tlast = last.next;\n\t\tlast.next = new_node;\n\t\tnew_node.prev = last;\n\t}", "public void add(T newVal) {\n//\t\tcreated a empty object reference and store the value of head le instance variable in it\n\t\tLinkedElement<T> temp=le;\n//\t\tif head's le have does have null value then this block will run\n\t\tif(temp==null) {\n//\t\t\tthe head's le changed with this newly created object\n\t\t\tle= new LinkedElement<T>(newVal);\n\t\t}\n//\t\tif head's le have doesn't have null value then this block will run\n\t\telse {\n//\t\t\tthis loop is used to save last object reference in temp\n\t\t\twhile(temp.le!=null) {\n\t\t\t\ttemp=temp.le;\n\t\t\t}\n//\t\tthe last object le changed with this newly created object\n\t\ttemp.le= new LinkedElement<T>(newVal);\n\t\t}\n\t\t\n\t}", "void append(int new_data)\n {\n /* 1. allocate node\n * 2. put in the data */\n Node new_node = new Node(new_data);\n\n Node last = head;/* used in step 5*/\n\n /* 3. This new node is going to be the last node, so\n * make next of it as NULL*/\n new_node.setNext(null);\n\n /* 4. If the Linked List is empty, then make the new\n * node as head */\n if(head == null)\n {\n new_node.setPrev(null);\n head = new_node;\n return;\n }\n\n /* 5. Else traverse till the last node */\n while(last.getNext() != null)\n last = last.getNext();\n\n /* 6. Change the next of last node */\n last.setNext(new_node);\n\n /* 7. Make last node as previous of new node */\n new_node.setPrev(last);\n }", "private void addToHead() {\n Node currentNode = null;\n switch (head.dir) {\n case LEFT:\n currentNode = new Node(head.row - 1, head.col, head.dir);\n break;\n case RIGHT:\n currentNode = new Node(head.row + 1, head.col, head.dir);\n break;\n case UP:\n currentNode = new Node(head.row, head.col - 1, head.dir);\n break;\n case DOWN:\n currentNode = new Node(head.row, head.col + 1, head.dir);\n break;\n }\n currentNode.next = head;\n head.pre = currentNode;\n head = currentNode;\n size++;\n }", "@Override\r\n public void add(E e) {\r\n if (e == null) {\r\n throw new NullPointerException();\r\n }\r\n ListNode newNode = new ListNode(e);\r\n next.prev = newNode;\r\n newNode.next = next;\r\n newNode.prev = previous;\r\n\r\n previous.next = newNode;\r\n \r\n size++;\r\n lastRetrieved = null; \r\n }", "public void add(DNode node)\n\t{\n\t\tif(first==null)\n\t\t{\n\t\t\tfirst=node;\n\t\t\t//System.out.println(\"add first\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//System.out.println(\"add next\");\n\t\t\tDNode tem=first;\n\t\t\twhile(tem.nextDNode!=null)\n\t\t\t{\n\t\t\t\ttem=tem.nextDNode;\n\t\t\t}\n\t\t\ttem.nextDNode=node;\n\t\t}\n\t}", "public void addNode(String node) {\n this.graph.put(node, new LinkedList<>());\n }", "public void add(T value) {\n\t\tNode newNode = new Node(value);\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tNode current = head;\n\t\twhile (current.next != null) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\tcurrent.next = newNode;\n\t}", "public boolean addNode(ListNode node){\n\t\tif(firstNode == null) {\n\t\t\tfirstNode = node;\n\t\t\t// length++;\n\t\t\treturn true;\n\t\t}\n\t\tif(exists(node)) return false;\n\n\t\tListNode temp = firstNode;\n\t\twhile(temp.getNextNode() != null){\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\t\ttemp.setNext(node);\n\t\treturn true;\n\t}", "@Override\r\n public T add(T item) \r\n {\n Node<T> n = new Node<T>();\r\n n.setItem(item);\r\n\r\n if (head == null) { //first one\r\n head = n;\r\n tail = n;\r\n } else {\r\n tail.setNext(n); //tail's next is the new node\r\n n.setPrevious(tail); //points the new node backwards at the tail\r\n tail = n; //sets tail to the node we added\r\n }\r\n\r\n count++;\r\n\r\n return item;\r\n }", "public void addNode(int data) { \r\n //Create a new node \r\n Node newNode = new Node(data); \r\n \r\n //If list is empty \r\n if(head == null) { \r\n //Both head and tail will point to newNode \r\n head = tail = newNode; \r\n //head's previous will point to null \r\n head.previous = null; \r\n //tail's next will point to null, as it is the last node of the list \r\n tail.next = null; \r\n } \r\n else { \r\n //newNode will be added after tail such that tail's next will point to newNode \r\n tail.next = newNode; \r\n //newNode's previous will point to tail \r\n newNode.previous = tail; \r\n //newNode will become new tail \r\n tail = newNode; \r\n //As it is last node, tail's next will point to null \r\n tail.next = null; \r\n } \r\n }", "@Override\n\tpublic boolean add(T data) {\n\t\tLinkedListNode<T> toAdd = new LinkedListNode<T>(tail, tail.getPrevious(), (T) data);\n\t\ttail.getPrevious().setNext(toAdd);\n\t\ttail.setPrevious(toAdd);\n\t\ttoAdd.setNext(tail);\n\t\t\n\t\tmodcount++;\n\t\tnodeCount++;\n\t\t\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean add(E e) {\n\t\tNode<E> element = new Node<E>(e);\n\t\t// 2. Traverse to end of list\n\t\tif (root == null) {\n\t\t\troot = element;\n\t\t} else {\n\t\t\ttail.setNext(element);\n\t\t\telement.setBefore(tail);\n\t\t}\n\t\ttail = element;\n\t\treturn true;\n\t}", "public void addNode(Node node) {\n\t\tnodes.add(node);\n\t}", "boolean add(int x){\n Node u = new Node();\n u.val = x;\n if(n == 0){ //Si es el primer elemento de la lista\n head = u;\n }else{\n tail.next = u; //Enlaza el nuevo nodo\n }\n tail = u; //Cambia la referencia de tail\n n++;\n return true;\n }", "public void add(int num) {\n ListNode newNode = new ListNode(num);\n if (head == null) {\n head = newNode;\n } else {\n head.previous = newNode;\n newNode.next = head;\n head = newNode;\n }\n }", "public Node appendNode(Node node);", "@Override\n public void visit(Node node) {\n nodes.add(node);\n }", "boolean addNode(long idNum, String label);", "public void add(T value) {\n Node<T> newNode = new Node<T>();\n newNode.data = value;\n newNode.next = null;\n if (head == null) {\n head = newNode;\n } else {\n Node<T> last = head;\n while (last.next != null) {\n last = last.next;\n }\n last.next = newNode;\n }\n }", "public void add(int value) {\n Node newNode = new Node(value);\n if(this.head == null) { //head is a pointer\n this.head = newNode;\n } else {\n Node runner = this.head;\n while(runner.next != null) {\n runner = runner.next;\n }\n runner.next = newNode;\n }\n }", "public void append(Node newNode)\r\n {\n newNode.prev = this;\r\n newNode.next = next;\r\n if (next != null)\r\n {\r\n next.prev = newNode;\r\n }\r\n next = newNode;\r\n System.out.println(\"Node added with Traffic Data \" + Arrays.toString(newNode.trafficEntry.toStringArray()) + \" added ontop of \" \r\n + prev.trafficEntry.convertToString());\r\n \r\n }", "public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}", "public void add(U newValue) {\n\t\t\tlinkBeforeNode(new Node<>(newValue), mHead);\n\t\t}", "public void add(int index,Object data)\r\n\t{\r\n\t\tNode n = headPointer;\t\r\n\t\t//System.out.println(\"headPointer is: \" + n.getData());\r\n\t\tint count = 0;\r\n \r\n\t\twhile(count != index)\r\n {\r\n\t\t\t//System.out.println(\"n is: \" + n.getData());\r\n\t\t\tif(n != null)\r\n\t\t\t{\r\n\t\t\t\tn = n.getNext();\t\r\n\t\t\t}\r\n count++;\r\n }\r\n\t//\tSystem.out.println(\"We have fallen out of the loop\");\r\n\t\t\r\n\t\tNode m = new Node(data, n, n.getPrev()); \r\n\t\tm.getPrev().setNext(m);\r\n\t\tn.setPrev(m);\t\r\n\t}", "@Override\n public void add(T elem) {\n if(isEmpty()) { //if list is empty\n prepend(elem);//we can reuse prepend() method to add to the front of list\n }\n else {\n \n last.next = new DLNode(elem, last, null); //new element follows the last one, the previous node is the old last one\n last = last.next; //the last node now is the one that follows the old last one\n }\n \n }", "private void addNodeAtTheEnd(int data) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n ListNode current = head;\n while (current.next != null) {\n current = current.next;\n }\n current.next = newNode;\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}", "static void addToLinkedList(Node head, Node node){\n if (head.getRight()==null){\n node.setRight(node);\n head = node;\n }\n else if (head.getRight()==head){\n node.setLeft(head);\n node.setRight(node);\n head.setRight(node);\n }\n else {\n node.setRight(node);\n Node lastNode = head.getRight();\n while(lastNode.getRight()!=lastNode){\n node.setLeft(lastNode);\n lastNode = lastNode.getRight();\n }\n node.getLeft().setRight(node);\n }\n }", "void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList );\n linkedList.add( 0, \"Mr.\" );\n System.out.println( linkedList );\n\n\n }", "public void add(Item item)\n\t {\n\t Node oldfirst = first;\n\t first = new Node();\n\t first.item = item;\n\t first.next = oldfirst;\n\t N++;\n\t}", "public void add(int element){\n\t\tNode nd = new Node();\n\t\tnd.setElement(element);\n\t\t/**\n\t\t * check if the list is empty\n\t\t */\n\t\tif(head == null){\n\t\t\t//if there is only one element, both head and tail points to the same object.\n\t\t\thead = nd;\n\t\t\ttail = nd;\n\t\t} else {\n\t\t\t//set current tail next link to new node\n\t\t\ttail.setNext(nd);\n\t\t\t//set tail as newly created node\n\t\t\ttail = nd;\n\t\t}\n\t}", "public void add(int v){\n if (head == null) {\n // First node in the list\n head = new Node(v);\n } else {\n // List has nodes\n head.add(v);\n }\n }", "public void add(E item)\n {\n\n Node<E> node = new Node<E>(item);\n // if it is the first item in the list, it sets the current item to the\n // new item\n if (size == 0)\n {\n current = node;\n current.join(current);\n size++;\n return;\n }\n\n Node<E> previous = current.previous();\n previous.split();\n node.join(current);\n previous.join(node);\n current = node;\n\n size++;\n }", "public void add(T x) { \n\t // TODO: This must run in O(1) time.\n\t\t n++;\n\t\t Node curr = new Node(x, head, head.next);\n\t\t head.next = curr;\n\t\t curr.next.prev = curr;\n\t }", "public boolean addNode(NodeType node) {\n\t\treturn false;\n\t}", "public void addNodeAfterThis( int newdata ) {\r\n\t\tlink = new IntNode( newdata, link );\r\n\t}", "public static void testAdd(LinkedList list) {\n\t\tNode n1 = new Node(\"1\");\n\t\tNode n2 = new Node(\"2\");\n\t\tNode n3 = new Node(\"3\");\n\t\tNode n4 = new Node(\"4\");\n\t\t\n\t\t// add to empty list\n\t\tlist.add(n2);\n\t\t\n\t\t// add to end of list\n\t\tlist.add(n4);\n\t\t\n\t\t// add in the middle\n\t\tlist.add(n3);\n\t\t\n\t\t// add at the head\n\t\tlist.add(n1);\n\t\t\n\t\tlist.printForward();\n\t\tSystem.out.println(\"Size: \" + list.getSize());\n\t}", "@Override\n public boolean addNode(String nodeName) throws NodeException {\n Node newNode = new Node(nodeName);\n\n if(!containsNode(newNode)) {\n nodes.add(new Node(nodeName));\n return true;\n } else {\n // Dany prvek uz v listu existuje\n throw new NodeException(\"Vámi zadaný prvek už v listu existuje!\");\n }\n }", "void add(Member node, long now);", "public void addNode(Node node) {\n\t\tthis.nodes.add(node);\n\t}", "void addNode(CommunicationLink communicationLink)\n {\n int nodeId = communicationLink.getInfo().hashCode();\n assert !nodeIds.contains(nodeId);\n nodeIds.add(nodeId);\n allNodes.put(nodeId, communicationLink);\n }" ]
[ "0.7895373", "0.7256669", "0.72439986", "0.72357106", "0.71900666", "0.70915574", "0.70700973", "0.7057491", "0.70306957", "0.7007064", "0.6985194", "0.69318134", "0.6920937", "0.691749", "0.6915058", "0.68879634", "0.6880775", "0.68758214", "0.6865268", "0.6864517", "0.68567646", "0.6851967", "0.6839977", "0.68363273", "0.6834895", "0.68213433", "0.68150747", "0.6813861", "0.6811668", "0.6803145", "0.6797132", "0.67743987", "0.6772149", "0.6766042", "0.67534655", "0.67517954", "0.67506146", "0.67343444", "0.6733652", "0.6730017", "0.672908", "0.6728996", "0.67200136", "0.67096114", "0.6707354", "0.66956747", "0.6688657", "0.6681292", "0.6671723", "0.66675407", "0.6661491", "0.6656586", "0.66554606", "0.66541123", "0.66456926", "0.66329306", "0.66311264", "0.6630002", "0.66239595", "0.6618875", "0.6617402", "0.6614915", "0.66124666", "0.6612059", "0.66114736", "0.659584", "0.65931255", "0.6580615", "0.65800834", "0.6578741", "0.65783733", "0.65765053", "0.65731514", "0.65658927", "0.6563111", "0.6561353", "0.6552543", "0.6548134", "0.65435904", "0.65366685", "0.6533016", "0.652885", "0.6521215", "0.6519861", "0.6512579", "0.64973533", "0.648572", "0.6482676", "0.64822036", "0.64810747", "0.64730006", "0.6469368", "0.64589643", "0.6456409", "0.6453492", "0.6434706", "0.64225197", "0.6417789", "0.64173853", "0.6415563" ]
0.74137145
1
This method Inserts node into a specific index in the LinkedList.
public void insertAtIndex(ListNode newNode, int intendedIndex) { if (length == 0) { newNode.next = firstNode.next; firstNode = newNode; } else if (intendedIndex != 0) { ListNode currentNode; ListNode previousNode; currentNode = this.getNodeAtIndex(intendedIndex); ListNode after = currentNode; previousNode = this.getNodeAtIndex(intendedIndex - 1); if (previousNode != null) { currentNode = newNode; previousNode.next = currentNode; currentNode.next = after; } else { System.out.println("Index is not valid!"); } } else if (intendedIndex == 0) { ListNode after; after = this.getNodeAtIndex(intendedIndex); firstNode = newNode; firstNode.next = after; } length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertAt(int index,int data){\n Node node =new Node();\n node.data=data;\n node.next=null;\n\n if (index == 0) {\n insertAtStart(data);\n }\n\n\nelse{\n Node n = head;\n for (int i=0; i < index-1;i++){\n n =n.next;\n }\n node.next =n.next;\n n.next = node;\n\n}}", "public void insertNodeToTheGivenIndex(int index, int data){\n int size = size(); // for performance improvement!\n\n //Index validation\n checkIndex(index);\n\n if(index==0){\n addNodeToTheStart(data);\n }else if(index==size){\n addNodeToTheEnd(data);\n }\n //Important\n Node newNode = new Node(data);\n Node current = head;\n Node previous = null;\n int i = 0;\n while(i<index){\n previous = current; //Update previous Node in the loop!\n current = current.next;\n i++;\n }\n newNode.next = current;\n assert previous != null;\n previous.next = newNode;\n }", "public void insert(E data, int index) {\r\n\t\tcheckIndex(index);\r\n\t\t\r\n\t\t// If add the index is the tail of the LinkList, call add(data)\r\n\t\tif(index == size) {\r\n\t\t\tadd(data);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\tNode<E> newNode = new Node<E>(data, null);\r\n\t\t\r\n\t\t// Get the (index-1)th node\r\n\t\tNode<E> beforeNode = findNode(index);\r\n\t\tnewNode.link = beforeNode.link;\r\n\t\tbeforeNode.link = newNode;\r\n\t\tsize++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void insert(Object data, int index) throws IndexOutOfBoundsException {\n\n\t\tif (index >= size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\tNode newNode = new Node(data);\n\t\tif (index == 0) {\n\t\t\tnewNode.setNext(head);\n\t\t\thead = newNode;\n\t\t} else {\n\t\t\tNode currentNode = head;\n\t\t\tint currentIndex = 0; // current index\n\t\t\twhile (currentNode != null && currentIndex < index - 1) {\n\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t\tNode previousNode = currentNode; // set the previous node come before the node at the current index\n\t\t\tNode nextNode = currentNode.getNext(); // set the next node to go after the one we are adding\n\t\t\tpreviousNode.setNext(newNode);\n\t\t\tnewNode.setNext(nextNode);\n\t\t}\n\t\tsize++;\n\n\t}", "public void insert(int index, char data)\n {\n if(index >= 0 && index <= numNodes){\n if(index == 0)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }\n else\n {\n //find your previous and your current\n Node curr = find(index);\n Node prev = find(index - 1);\n \n //add the new node with current as the successor and previous as the \n //predecessor\n Node node = new Node(data, curr);\n prev.next = node;\n }\n numNodes++;\n }\n else\n {\n throw new IndexOutOfBoundsException();\n }\n }", "public void insertAtAnyPoint(int index, int data) {\n\t\tNode node = new Node(); // defining random node\n\t\tnode.data = data; // putting data on it\n\t\tnode.next = null;\n\t\tNode n = head; // initial node\n\t\tif(index == 0){\n\t\t\tinsertAtStart(data);\n\t\t}else{\n\t\tfor (int i = 0; i < index-1; i++) {\n\t\t\tn = n.next;\n\t\t}\n\t\tnode.next = n.next;\n\t\tn.next = node;\n\t\t}\n\t}", "void insert(int index, T value) throws ListException;", "public void addAtIndex(int index, int data)\n {\n Node newNode = new Node(data);\n Node oldNode = head;\n\n for (int i=1;i<size;i++)\n {\n if (i == index)\n {\n Node myNode = oldNode.next;\n oldNode.next = newNode;\n newNode.next = myNode;\n break;\n }\n oldNode = oldNode.next;\n }\n size++ ;\n }", "public void insert(int index, T element);", "public void insertAt(String insertData, int index) {\n\t\t// write you code for insertAt using the specification above\n\t\tif(index==0){\n\t\t\tadd(insertData);\n\t\t\treturn;\n\t\t}\n\t\tif(index<=size()){\n\t\t\tNode nodref = head;\n\t\t\tfor (int count = 0; count<index-1; count++){\n\t\t\t\tnodref=nodref.next;\n\t\t\t}\n\t\t\tNode adder = new Node(insertData);\n\t\t\tadder.next = nodref.next;\n\t\t\tnodref.next = adder; \n\t\t\tnumElements++;\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n public void insertAt(T data, int index) {\n if(index > -1 && index <= getSize()) {\n\n if(index == 0){\n this.addToFront(data);\n return;\n }\n if(index == getSize() + 1) {\n this.addToEnd(data);\n return;\n }\n\n Node<T> dataNode = new Node<T>();\n dataNode.setData(data);\n\n int position= 0;\n Node<T> tempData = this.head;\n while(tempData.getNext() != null){\n tempData = tempData.getNext();\n if(position == index - 1 ) {\n //Pointing newly added node, to the one pointed to by element at position = index-1\n dataNode.setNext(tempData.getNext());\n\n tempData.setNext(dataNode);\n break;\n }\n position++;\n }\n }else {\n throw new IndexOutOfBoundException(\"Cannot add Node at provided location\");\n }\n }", "private void addNodeAtIndex(int data, int index) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n int count = 0;\n ListNode current = head;\n while (count < index - 1) {\n count++;\n current = current.next;\n }\n newNode.next = current.next;\n current.next = newNode;\n }", "@Override\n public void insertAtAnyPosition(T value, int index) {\n Node<T> new_node = new Node<>(value);\n if(index < 0)\n throw new IndexOutOfBoundsException();\n else if(index == 0){\n new_node.next = start;\n start = new_node;\n }else{\n Node<T> previous = start;\n for(int i =0;i<index-1;i++)\n {\n previous = previous.next;\n }\n Node<T> curr = previous.next;\n new_node.next = curr;\n previous.next = new_node;\n }\n\n }", "public void addAt(int index, T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n if (index == 0) {\n newNode.next = head;\n head = newNode;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = newNode;\n newNode.next = currentNode;\n }\n size++;\n }", "private void addNode(int index, Node<AnyType> t) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n \n \n if ( index == 0 && !isEmpty() ) {\n \n t.setNextNode( headNode );\n headNode.setPreviousNode( t );\n headNode = t;\n size++;\n \n } else if ( index == 0 && isEmpty() ) { \n \n t.setNextNode( headNode );\n headNode = t;\n size++;\n \n } else if ( index == size ) {\n \n addNode( t );\n \n } else {\n \n Node<AnyType> node = getNode( index );\n \n node.getPreviousNode().setNextNode( t );\n t.setPreviousNode( node.getPreviousNode() );\n node.setPreviousNode( t );\n t.setNextNode( node );\n \n size++;\n \n }\n \n }", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "@Override\n public void add(int index, T elem) {\n if(index < 0 || index >= size()) {//if the required index is not valid, give error\n throw new IndexOutOfBoundsException();\n }\n //if we want to add at the beginning of the list\n if(index == 0) {\n prepend(elem); //reuse prepend method when adding at the start of list\n return;\n }\n //if we want to add inside the list\n DLNode<T> predecessor = first; //create a reference, point it to the first node\n for(int i = 0; i < index - 1; i++) {//locate the preceeding index of the required index\n predecessor = predecessor.next;\n \n }\n DLNode<T> successor = predecessor.next; //another reference, now points to the index we want to add the new node to\n \n DLNode<T> middle = new DLNode(elem, predecessor, successor);//create new node, it's previous node is predecessor, the one after it is successor\n predecessor.next = middle; //new node is assigned to the required index, after predecessor, before successor\n \n if(successor == null) {//if there's no node after the new node\n last = middle; //new node is the last one \n }\n else{ //if there is a successor node exist\n successor.prev = middle; //new node preceeds it's successor\n } \n \n }", "public void addAtIndex(int index, T data) {\n Node<T> newNode = new Node<>();\n newNode.data = data;\n\n if (index == 0) {\n addAtStart(data);\n } else {\n Node<T> node = head;\n for (int i = 0; i < index - 1; i++) {\n node = node.next;\n }\n newNode.next = node.next;\n node.next = newNode;\n }\n }", "public void insertAt(int index, Booking<?> data) {\n\t\t\t\n\t\tBookingNode node = new BookingNode(data);\n\t\tnode.setData(data);\n\t\tnode.next = null;\n\t\t\t\n\t\tif(index == 0) {\n\t\t\tinsertAtStart( data);\n\t\t}else {\n\t\t BookingNode n = head;\n\t\t\tfor(int i = 0; i < index-1; i++) {\n\t\t\t\t\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t node.next = n.next;\n\t\t n.next = node;\n\t\t}\n\t}", "public void insert(int index, T value) {\n extend();\n for (int i = this.list.length-1; i >index; i--) {\n this.list[i] = this.list[i-1];\n }\n this.list[index] = value;\n this.size++;\n }", "public ListNode insertNth(ListNode head, int index, int value){\n\t\tListNode current = head;\n\t\tListNode target = new ListNode(value);\n\t\t\n\t\tif(head == null){\n\t\t\tthrows new IllegalAugumentException(\"Empty List\");\n\t\t}\n\t\twhile(current != null){\n\t\t\tfor(int count = 0; count < index; count++){\n\t\t\t\tcurrent = current.next;\n\t\t\t}\t\n\t\t}\n\t\tif(current == null){\n\t\t\tthrows new IndexOutOfBoundException();\n\t\t}\n\t\ttarget.next = current.next;\n\t\tcurrent.next = node;\n\t\t\n\t\treturn head;\t\t\t\t\n\t}", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}", "public boolean insert(int index, Node node) {\r\n\t\tif (index < 1 || index > this.size()) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IllegalIndexException(\"Exception: the index's out of boundary!\");\r\n\t\t\t} catch (IllegalIndexException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (index == 1) {\r\n\t\t\tnode.setNext(head.getNext()); \r\n\t\t\thead = node;\r\n\t\t}else if (index == this.size()) {\r\n\t\t\ttail.setNext(node);\r\n\t\t\ttail = node;\r\n\t\t}else {\r\n\t\t\tint pointerIndex = 1;\r\n\t\t\tpointer = head;\r\n\t\t\twhile (pointerIndex < index - 1) {\r\n\t\t\t\tpointer = pointer.getNext();\r\n\t\t\t\tpointerIndex++;\r\n\t\t\t}\r\n\t\t\tnode.setNext(pointer.getNext());\r\n\t\t\tpointer.setNext(node);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "void insert(int idx, int val);", "public void add(int index,Object data)\r\n\t{\r\n\t\tNode n = headPointer;\t\r\n\t\t//System.out.println(\"headPointer is: \" + n.getData());\r\n\t\tint count = 0;\r\n \r\n\t\twhile(count != index)\r\n {\r\n\t\t\t//System.out.println(\"n is: \" + n.getData());\r\n\t\t\tif(n != null)\r\n\t\t\t{\r\n\t\t\t\tn = n.getNext();\t\r\n\t\t\t}\r\n count++;\r\n }\r\n\t//\tSystem.out.println(\"We have fallen out of the loop\");\r\n\t\t\r\n\t\tNode m = new Node(data, n, n.getPrev()); \r\n\t\tm.getPrev().setNext(m);\r\n\t\tn.setPrev(m);\t\r\n\t}", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) return;\n\n Node node = head;\n\n for (int i = 0; i < index; i++) {\n node = node.next;\n }\n\n Node newNode = new Node(val);\n newNode.next = node.next;\n newNode.next.prev = newNode;\n node.next = newNode;\n newNode.prev = node;\n size++;\n }", "@Override\r\n public void add(int index, T b) {\r\n head = head.add(index, b);\r\n }", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "@Override\n public void insert(E e, int index)\n throws SequenceException {\n if (index < 0) {\n throw new SequenceException(\"Indexed Element out of Range\");\n }\n\n // There is a special case when the sequence is empty.\n // Then the both the head and tail pointers needs to be\n // initialised to reference the new node.\n if (listHead == null) {\n if (index == 0) {\n listHead = new Node(e);\n listTail = listHead;\n } else {\n throw new SequenceException(\"Indexed element is out of range\");\n }\n }\n\n // There is another special case for insertion at the head of\n // the sequence.\n else if (index == 0) {\n listHead = new Node(e, listHead);\n }\n\n // In the general case, we need to chain down the linked list\n // from the head until we find the location for the new\n // list node. If we reach the end of the list before finding\n // the specified location, we know that the given index was out\n // of range and throw an exception.\n else {\n Node nodePointer = listHead;\n int i = 1;\n while (i < index) {\n nodePointer = nodePointer.next;\n i += 1;\n if (nodePointer == null) {\n throw new SequenceException(\"Indexed Element out of Range\");\n }\n }\n\n // Now we've found the node before the position of the\n // new one, so we 'hook in' the new Node.\n\n nodePointer.next = new Node(e, nodePointer.next);\n\n // Finally we need to check that the tail pointer is\n // correct. Another special case occurs if the new\n // node was inserted at the end, in which case, we need\n // to update the tail pointer.\n if (nodePointer == listTail) {\n listTail = listTail.next;\n }\n }\n }", "public void insertElementAt(Object obj, int index)\n {\n try {element.insertElementAt(obj, index);}\n catch (Exception e) {\n throw new IllegalArgumentException\n (\"VectorLinearList.insertElementAt: \" +\n \"index must be between 0 and size\");\n }\n }", "public void insertElementAt(Object obj, int index);", "public void add(int index, E obj){\n Node n = head;\n Node foo = new Node<E>(obj);\n Node temp = new Node<E>(null);\n int count = 0;\n if(index >= size()){\n index = size(); \n }\n else if (index < 0){\n index = 0;\n }\n while(n.getNext() != null && count != index)\n {\n n = n.getNext();\n temp = n;\n count++;\n }\n temp = n.getNext();\n n.setNext(foo);\n foo.setNext(temp);\n }", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) {\n return;\n }\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n prev.next = new Node(val, prev.next);\n size++;\n }", "public void insert(Object data, int index){\r\n enqueue(data);\r\n }", "@Override\n public void add(int index, T element){\n if(index < 0 || index > size()){\n throw new NullPointerException();\n }else if(isEmpty() || index == size()){\n add(element);\n } else if(index == 0){\n prepend(element);\n } else{\n DLLNode<T> newNode = new DLLNode<T>(element);\n DLLNode<T> rightNode = getCurrentNode(index);\n DLLNode<T> leftNode = rightNode.previous;\n leftNode.successor = newNode;\n newNode.previous = leftNode;\n newNode.successor = rightNode;\n rightNode.previous = newNode;\n }\n }", "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "@Override\n\tpublic void add(int idx, T obj) throws IndexOutOfBoundsException {\n\t\tboolean found = false;\n\t\tint n = 0;\n\t\tListNode tmp = new ListNode(obj);\n\t\tListNode current = head;\n\t\t\n\t\tif (idx < 0 || idx > size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse if (idx == 0) {\n\t\t\ttmp.next = head;\n\t\t\thead = tmp;\n\t\t\tsize++;\n\t\t}\n\t\telse {\n\t\t\twhile (!found) {\n\t\t\t\tif (n == idx - 1) {\n\t\t\t\t\ttmp.next = current.next;\n\t\t\t\t\tcurrent.next = tmp;\n\t\t\t\t\tfound = true;\n\t\t\t\t\tsize++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addAtIndex(int index, int val) {\n if(index>size || index<0)\n return;\n ListNode ptr=new ListNode(val);\n ListNode p=head,follow=head;\n int count=0;\n while (p!=null && count!=index){\n count++;\n follow=p;\n p=p.next;\n }\n if(p==head) {\n if(p == null) {\n head = ptr;\n tail=ptr;\n }\n else {\n ptr.next = head;\n head = ptr;\n }\n size++;\n }\n else if(p==tail){\n ptr.next=p;\n follow.next=ptr;\n size++;\n }\n else if(p==null){\n follow.next=ptr;\n tail=ptr;\n size++;\n }\n else {\n ptr.next = p;\n follow.next = ptr;\n size++;\n }\n }", "public void insert(int index, String fragment);", "public void insertElementAt(Replicated obj, int index)\r\n\t{\n\t\tinsert(obj, index);\r\n\t}", "public void addAtIndex(int index, int val) {\n if (index > this.size) {\n return;\n }\n\n if (index < 0) {\n index = 0;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n\n ListNode node = new ListNode(val);\n node.next = pred.next;\n pred.next = node;\n\n this.size++;\n }", "private void addNodeBefore(SinglyLinkedList.Node<E> node, int idx) throws IndexOutOfBoundsException {\n if (idx == 0) {\n node.next = head;\n head = node;\n\n len += 1;\n return;\n }\n\n addNodeAfter(node, idx - 1);\n }", "public void add(int index, Object data) {\n isValidIndex(index);\n\n Node newNode = new Node(data);\n if (isEmpty()) {\n head = newNode;\n size ++;\n } else if (index == 0) {\n addFirst(data);\n } else {\n Node n = getNode(index - 1);\n newNode.next = n.next;\n n.next = newNode;\n size ++;\n }\n\n if (newNode.next == null) {\n tail = newNode;\n }\n }", "public void add(final T data, final int index) {\n if (index < 0 || index > numElement + 1) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> newNode = new Node<>(data);\n if (index == 0) {\n prepend(data);\n } else if (index == numElement) {\n append(data);\n }\n Node<T> iterator = head;\n for (int currentIndex = 0; currentIndex < index - 1; currentIndex++) {\n iterator = iterator.getNext();\n }\n newNode.setNext(iterator.getNext());\n iterator.setNext(newNode);\n numElement++;\n }", "private void InsertAt(IntRepList.OpNode node, IntRepList.OpNode current) {\n current.prev.next = node;\n node.prev = current.prev;\n node.next = current;\n }", "public void addAtIndex(int index, int val) {\n if (index > size) return;\n //Add at head\n if (index <= 0) {\n addAtHead(val);\n }\n //Add at end\n else if (index == size) {\n addAtTail(val);\n } else {\n ListNode newNode = new ListNode(val);\n ListNode curr = head;\n //Add somewhere in between\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n }\n newNode.next = curr.next;\n curr.next = newNode;\n size++;\n }\n }", "private static void insertAtPos(int data, int pos) {\n\tNode newnode=new Node(data);\n\tNode temp=head;\n\tNode n=head;\n\tint size=0;\n\twhile(n!=null)\n\t{\n\t\tn=n.next;\n\t\ttemp=temp.next;\n\t\tsize++;\n\t}\n\tn=head;\n\ttemp=head;\n\tfor(int i=0;i<pos-2;i++)\n\t{\n\t\tn=n.next;\n\t\ttemp=temp.next;\n\t}\n\ttemp=temp.next;\n\tnewnode.next=n.next;\n\tn.next=newnode;\n\ttemp.prev=newnode;\n\tnewnode.prev=n;\n}", "public Node addNodeAt(Node head, Node nta, int pos) {\n Node temp = head;\n for (int i = 0; i < pos; i++) {\n if (temp.next == null) {\n System.out.println(\"List shorter than the position\");\n return head;\n }\n temp = temp.next;\n }\n temp.next = nta;\n return head;\n }", "public void addAfter(E val, int idx) throws IndexOutOfBoundsException {\n addNodeAfter(new SinglyLinkedList.Node<>(val), idx);\n }", "private static void insertAtHead(int data) {\n\tNode newnode=new Node(data);\n\tnewnode.next=head;\n\tnewnode.prev=null;\n\tif(head!=null)\n\t\thead.prev=newnode;\n\thead=newnode;\n\t\n}", "public void add(int index, T data) {\n\t\tif(index > size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Illegal index: \" + index);\n\t\t}\n\t\t\n\t\tLinkedListNode<T> temp = head.getNext();\n\t\tint i = 0;\n\t\twhile(true) {\n\t\t\tif(temp == null) {\n\t\t\t\tthrow new InternalError(\"add(int index, T data) iterates past the end\");\n\t\t\t}\n\t\t\tif(index == i) {\n\t\t\t\tLinkedListNode<T> toAdd = new LinkedListNode<T>(temp, temp.getPrevious(), data);\n\t\t\t\ttemp.getPrevious().setNext(toAdd);\n\t\t\t\ttemp.setPrevious(toAdd);\n\t\t\t\tmodcount++;\n\t\t\t\tnodeCount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t}", "public void addAtIndex(int idx, Node node) {\n if (!checkIndexBounds(idx)) {\n return;\n }\n\n Node pre = getNodeBeforeIndex(idx);\n Node curr = pre.next;\n pre.next = node;\n node.next = curr;\n this.length++;\n }", "public void insertAtBeginning(int data) {\r\n if(head==null) {\r\n head = new ListNode(data);\r\n return;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n new_node.next=head;\r\n head=new_node;\r\n }", "public void add(T element, int index) {\n int counter = 0;\n Node<T> newNode = new Node(element);\n Node<T> current = itsFirstNode;\n\t\tif (current == null) {\n\t\t\tthrow new NoSuchElementException(\"Beyond size of list or list empty\");\n\t\t}\n\t\twhile (current.getNextNode() != null ) {\n\t\t\tif ((counter == index - 1) || (index == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tcurrent = current.getNextNode();\n\t\t\tcounter++;\n\t\t}\n\t\ttry {\n\t\t\tif (index == 0) {\n\t\t\t\taddAsFirst(newNode);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewNode.setNextNode(current.getNextNode());\n\t\t\t\t(newNode.getNextNode()).setPriorNode(newNode);\n\t\t\t\tcurrent.setNextNode(newNode);\n\t\t\t\tnewNode.setPriorNode(current);\n\t\t\t}\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t// NullPointer is fine\n\t\t}\n size++;\n }", "public void insertAtHead(int data){\n\t\tif(head == null){\n\t\t\thead = new Node(data);\n\t\t\tsize ++;\n\t\t}else{\n\t\t\tNode temp = head;\n\t\t\thead = new Node(data);\n\t\t\thead.setNext(temp);\n\t\t\tsize ++;\n\t\t}\n\t}", "public LinkedListElement add(int Index, T content) throws IndexOutOfBoundsException {\n if (Index == 0) {\n LinkedListElement element = new LinkedListElement(content);\n element.next = this;\n return element;\n } else {\n throw new IndexOutOfBoundsException(\"Methode add: Dieser Index existiert nicht!\");\n }\n }", "public void insert(Node n);", "public void insertAtPos(int val, int position){\n singlyListNode n = new singlyListNode(val, null);\n singlyListNode ptr = this.head;\n int previous = position - 1;\n //find insertion position\n for (int i = 0 ; i < this.listSize; i ++){\n if (i == position){\n singlyListNode temp = ptr.getNextNode();\n ptr.setNextNode(n);\n n.setNextNode(temp);\n break;\n }\n ptr = ptr.getNextNode();\n }\n this.listSize ++;\n }", "public void insertAtHead(singlyListNode n){\n if (this.head == null){\n this.head = n;\n this.tail = this.head;\n }else{\n n.setNextNode(this.head);\n this.head = n;\n }\n this.listSize ++; //increment list capacity\n }", "public void updateNode(int index, int data){\n //index validation\n checkIndex(index);\n if(head.next==null){\n head = new Node(data);\n return;\n }\n\n Node current = head;\n Node prev = null;\n Node newNode = new Node(data);\n int i = 0;\n while (i < index){\n prev = current;\n current = current.next;\n i++;\n }\n newNode.next=current.next;\n assert prev != null;\n prev.next = newNode;\n\n }", "public void insertAtHead(int n){\n singlyListNode newNode = new singlyListNode(n, null);\n if (this.head == null){\n this.head = newNode;\n this.tail = this.head;\n }else{\n newNode.setNextNode(this.head);\n this.head = newNode;\n }\n this.listSize ++;\n }", "public void insertAtIndex(E toInsert, int atIndex) {\n\t\tfor(int x = numElements; x > atIndex; x--) {\n\t\t\telements[x] = elements[x-1];\n\t\t}\n\t\telements[atIndex] = toInsert;\n\t\tnumElements++;\n\t\tresize();\n\t}", "@Override\n public void insertar(int index, T elemento) {\n if (raiz == null) {\n raiz = new NodoBAVL<>(elemento);\n }\n insertarOrdenado(raiz, elemento, index);\n }", "public void insertAtHead(int newValue) {\n DoublyLinkedList newNode = new DoublyLinkedList(newValue, head, head.getNext());\n newNode.getNext().setPrev(newNode);\n head.setNext(newNode);\n length += 1;\n }", "public void insertAtPos(int val , int pos)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if (pos == 1)\n\n {\n\n insertAtStart(val);\n\n return;\n\n } \n\n Node ptr = start;\n\n for (int i = 2; i <= size; i++)\n\n {\n\n if (i == pos)\n\n {\n\n Node tmp = ptr.getLinkNext();\n\n ptr.setLinkNext(nptr);\n\n nptr.setLinkPrev(ptr);\n\n nptr.setLinkNext(tmp);\n\n tmp.setLinkPrev(nptr);\n\n }\n\n ptr = ptr.getLinkNext(); \n\n }\n\n size++ ;\n\n }", "public void insert(int value){\n head = new Node(value,head);\n size++;\n }", "@Override\n\tpublic void add(int index, E element) {\n\t\trangeCheckForAdd(index);\n\t\tif (index==size) {\n\t\t\tNode<E> oldLast = last;\n\t\t\tlast = new Node<E>(oldLast, element, first);\n\t\t\t//这是链表添加的第一个元素\n\t\t\tif (oldLast == null) {\n\t\t\t\tfirst = last;\n\t\t\t\tfirst.next = first;\n\t\t\t\tfirst.prev = first;\n\t\t\t}else {\n\t\t\t\toldLast.next = last;\n\t\t\t\tfirst.prev = last;\n\t\t\t}\n\t\t}else {\n\t\t\tNode<E> next = node(index);\n\t\t\tNode<E> prev = next.prev;\n\t\t\tNode<E> node = new Node<E>(prev, element, next);\n\t\t\tnext.prev = node;\n\t\t\tprev.next = node;\n\t\t\tif (next == first) { // index == 0\n\t\t\t\tfirst = node;\n\t\t\t}\n\t\t}\n\t\tsize ++;\n\t}", "public void insert(int pos, int data){\n\t\tif (pos == 0){\n\t\t\tpreappend(data);\n\t\t\treturn;\n\t\t}\n\n\t\tNode newNode = new Node(data);\n\t\tNode prev = this.head;\n\t\tNode current = prev;\n\t\tint counter = 0;\n\t\twhile(current != null){\n\t\t\tcurrent = current.next;\n\t\t\tcounter++;\n\t\t\tif (counter == pos){\n\t\t\t\tprev.next = newNode;\n\t\t\t\tnewNode.next = current;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (prev.next != null){\n\t\t\t\tprev = prev.next;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Position larger then linkedlist so add to end\n\t\tprev.next = newNode;\n\t\treturn;\n\t}", "public void addAtIndex(int index, T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"You can't insert null \"\n + \"data in the structure.\");\n }\n if (index < 0 || index > size) {\n throw new IndexOutOfBoundsException(\"The data you are trying \"\n + \"to access is null\");\n }\n DoublyLinkedListNode<T> newnode = new DoublyLinkedListNode<T>(data);\n if (size == 0) {\n head = newnode;\n tail = head;\n size += 1;\n } else if (index == 0) {\n addToFront(data);\n } else if (size == index) {\n addToBack(data);\n } else {\n DoublyLinkedListNode<T> pointer = head;\n for (int i = 0; i < index - 1; i++) {\n pointer = pointer.getNext();\n }\n newnode.setNext(pointer.getNext());\n newnode.getNext().setPrevious(newnode);\n pointer.setNext(newnode);\n newnode.setPrevious(pointer);\n size += 1;\n }\n\n\n\n }", "@Override\n public void add(int index, int element) {\n Entry newElement = new Entry(element);\n Entry tmp = getEntry(index);\n newElement.next = tmp;\n newElement.previous = tmp.previous;\n tmp.previous.next = newElement;\n tmp.previous = newElement;\n size++;\n }", "public void insert(int info) {\n\t\tnode one = new node(info);\n\t\tif(head != null) {\n\t\t\tone.next = head;\n\t\t} \n\t\thead = one;\n\n\t\t//OR\n\t\t//insertAt(info, 0);\n\t}", "public void insertAtHead(T v)\n\t{\n\t\tNode newNode = new Node(v);\n\t\t\n\t\t//point the next of head to new node\n\t\tnewNode.next = head;\n\t\t\n\t\t//Change the head reference to the new node\n\t\thead = newNode;\n\t\t\n\t\t//increase the size\n\t\tsize++;\n\t}", "public void add(int index, T element)\r\n {\r\n Node<T> newNode = new Node<T>(element);\r\n Node<T> walker; // needed for traversing the list\r\n \r\n if ((index < 0) || (index > numElements))\r\n throw new IndexOutOfBoundsException(\r\n \"Illegal index \" + index + \" passed to add method.\\n\");\r\n\r\n if (front == null) // add to empty list\r\n { \r\n front = newNode;\r\n rear = newNode;\r\n }\r\n else if (index == 0) // add to front\r\n {\r\n newNode.next = front;\r\n front = newNode;\r\n }\r\n else if (index == size()) // add to rear\r\n {\r\n rear.next = newNode;\r\n rear = newNode;\r\n }\r\n else // add to interior part of list\r\n {\r\n walker = front; \r\n for (int i=0; i<(index-1); i++)\r\n {\r\n walker = walker.next;\r\n }\r\n newNode.next = walker.next;\r\n walker.next = newNode;\r\n }\r\n numElements++;\r\n }", "public void insert(int value, int pos){\n if (head != null) {\n // Have a first node\n head = head.insert(value,pos);\n } else {\n // List empty\n this.add(value);\n }\n }", "public synchronized void insertElementAt(WModelObject object, int index)\n\t{\n\t\tm_elements.insertElementAt(object, index);\n\t}", "public void insertAtPos(singlyListNode n, int position){\n singlyListNode ptr = this.head;\n int previous = position - 1;\n //find insertion position\n for (int i = 0 ; i < this.listSize; i ++){\n if (i == position){\n singlyListNode temp = ptr.getNextNode();\n ptr.setNextNode(n);\n n.setNextNode(temp);\n break;\n }\n ptr = ptr.getNextNode();\n }\n this.listSize ++;\n }", "public void insert(int value){\n linkedList.insertLast(value);\n }", "public void add(int index, int data) throws OutOfBoundsException {\n\n\t\tif (index == 0) {\n\t\t\tNode right = head;\n\t\t\thead = new Node(right, data);\n\t\t} else if (index == size) {\n\t\t\tNode left = retrieve(size - 1);\n\t\t\tleft.setNextNode(new Node(null, data));\n\n\t\t} else {\n\t\t\tNode left = retrieve(index - 1);\n\t\t\tNode right = retrieve(index);\n\t\t\tNode noo = new Node(right, data);\n\t\t\tleft.setNextNode(noo);\n\t\t}\n\t\tsize++;\n\t}", "public void insertNode(Item it) {\n this.currentPosition = new Node(this.currentPosition, it, this.currentPosition.next);\n }", "public void add(int index, AnyType t) throws IndexOutOfBoundsException, NullPointerException {\n \n if ( t == null ) throw new NullPointerException();\n \n addNode( index, new Node<AnyType>(t) );\n \n }", "public boolean ListInsert(int i,T e){\n int j,k,l;\n // k is the index of the last element\n k = MAXSIZE-1;\n if(i<0||i>ListLength())\n return false;\n // Get index of free element\n j = Malloc_SSL();\n // If malloc success\n if(j!=0)\n {\n StaticLinkList[j].data = e;\n // Find the element,who is in front of the ith element\n for (l = 0; l < i; l++)\n k = StaticLinkList[k].cur;\n // s->next = p->next\n StaticLinkList[j].cur = StaticLinkList[k].cur;\n // p->next = s\n StaticLinkList[k].cur = j;\n return true;\n }\n return false;\n }", "public void insertAtBeginning(int data) {\r\n //creating node\r\n Node node = new Node(data);\r\n //setting the next reference of node to refer to head or start of list\r\n node.setNext(head);\r\n // setting the head to refer node\r\n head = node;\r\n }", "public void insertAtPos(int val , int pos)\n {\n List nptr = new List(val, null, null); \n if (pos == 1)\n {\n insertAtStart(val);\n return;\n } \n List ptr = start;\n for (int i = 2; i <= size; i++)\n {\n if (i == pos)\n {\n List tmp = ptr.getListNext();\n ptr.setListNext(nptr);\n nptr.setListPrev(ptr);\n nptr.setListNext(tmp);\n tmp.setListPrev(nptr);\n }\n ptr = ptr.getListNext(); \n }\n size++ ;\n }", "public void add(int index, T obj) {\r\n if (index < 0 || size < index) {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n if (obj == null) {\r\n throw new IllegalArgumentException(\"Cannot add null \"\r\n + \"objects to a list\");\r\n }\r\n\r\n Node<T> current;\r\n if (index == size) {\r\n current = tail;\r\n }\r\n else {\r\n current = getNodeAtIndex(index);\r\n }\r\n\r\n Node<T> newNode = new Node<T>(obj);\r\n newNode.setPrevious(current.previous());\r\n newNode.setNext(current);\r\n current.previous().setNext(newNode);\r\n current.setPrevious(newNode);\r\n size++;\r\n\r\n }", "@Override\r\n public void insert(int index, Copiable value) throws IndexRangeException {\r\n if (index >= 0 && index <= count) {\r\n if (list.length == count) {\r\n Copiable[] list2 = new Copiable[2 * list.length];\r\n for (int k = 0; k < list.length; k++) {\r\n list2[k] = list[k];\r\n }\r\n list = list2;\r\n }\r\n for (int i = count; i > index; i--) {\r\n list[i] = list[i - 1];\r\n }\r\n list[index] = value;\r\n count++;\r\n } else {\r\n throw new IndexRangeException(0, count, index);\r\n }\r\n }", "public void addAtIndex(int index, int val) {\n if(index==0) {\n addAtHead(val);\n return;\n }\n if(index==len) {\n addAtTail(val);\n return;\n }\n if(index>0 && index<len) {\n SingleNode cur = new SingleNode(val,null);\n SingleNode pre = head;\n for(int i=0; i<index-1; i++) {\n pre = pre.next;\n }\n cur.next = pre.next;\n pre.next = cur;\n len++;\n }\n }", "public void add(int index, E data) {\n if (index == 0) {\n DoublyLinkedNode<E> newNode = new DoublyLinkedNode<E>(data);\n newNode.addAfter(head);\n size++;\n }\n else if (index == size) {\n DoublyLinkedNode<E> newNode = new DoublyLinkedNode<E>(data);\n newNode.addAfter(tail.getPrevious());\n size++;\n }\n else if (index > 0 && index < size) {\n DoublyLinkedNode<E> newNode = new DoublyLinkedNode<E>(data);\n newNode.addAfter(this.getNodeAt(index).getPrevious());\n size++;\n }\n else {\n throw new IndexOutOfBoundsException();\n }\n }", "public void add (int index, E item)\n {\n if (index < 0 || index > size) {\n throw new\n IndexOutOfBoundsException(Integer.toString(index));\n }\n if (index == 0)\n addFirst(item);\n else {\n Node<E> node = getNode(index - 1);\n addAfter(node, item);\n }\n }", "void add(int index, T element);", "void add(int index, T element);", "void insert(T value, int position);", "public void add(int index, T element) {\n\t\tif (index < 0 || index > size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tif (index == 0) {\n\t\t\tinsertHead(element);\n\t\t\treturn;\n\t\t}\n\t\tif (index == size) {\n\t\t\tinsertTail(element);\n\t\t}\n\t\tNode<T> curNode = head;\n\t\twhile (index != 1) {\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tNode<T> temp = curNode.next;\n\t\tcurNode.next = new Node<>(element);\n\t\tcurNode.next.next = temp;\n\t\tsize++;\n\t}", "void insert(Object value, int position);", "public void insert(int pos,int data)\n{\n Node n=new Node(data);\nint count=1;\nNode last=head;\n\nif(pos==0)\n{\n n.next=last;\n head=n;\n}\nelse\n{\nif(pos>length())\n{\n pos=length();\n}\nwhile(count<pos)\n{\n last=last.next;\ncount++;\n}\nn.next=last.next;\nlast.next=n;\n}\n}", "public void insertInstanceInNode(int index_node, Instance instance) {\r\n \r\n noduri.get(index_node).instances.add(0, instance);\r\n noduri.get(index_node).dimensiune++;\r\n }", "public void insert(T aData) {\r\n\t\tListNode newNode = new ListNode(aData, null);\r\n\t\tif (head == null) {\r\n\t\t\thead = curr = newNode;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tListNode temp = head;\r\n\t\t// Equivalent of the for loop for an array\r\n\t\twhile (temp.link != null) {\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t\ttemp.link = newNode;\r\n\t}", "public void insert(int index, int data) {\n\n // double the Vector if it's full\n if (isFull())\n doubleSize();\n\n // Exception: index out of range\n if (index > dataSize)\n throw new IllegalStateException();\n\n // Move items 1 step forward\n if (index != dataSize)\n moveRight(index);\n\n // Place the item at the specified position\n array[index] = data;\n dataSize++;\n }", "public void add(int index, E x) {\n\t\tif (index < 0 || index > mSize) // == mSize allowed\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tif (size() == 0)\n\t\t\taddFirst(x);\n\t\telse {\n\t\t\taddBefore(getNode(index, 0, size()), x);\n\t\t\tmSize++;\n\t\t\tmodCount++;\n\t\t}\n\t}", "void insert(int data, int position) {\n\t \n\t Node newNode = new Node(data); \n\t \n\t //Empty List - Returned newly created node or null\n\t if (head==null){\n\t \thead = newNode;\n\t \treturn;\n\t \t}\n\t \n\t //Inserting a Node before the head of the List\n\t if (position == 0){\n\t \tnewNode.next = head;\n\t \thead.prev = newNode;\n\t \thead = newNode;\n\t \treturn;\n\t \t} \n\n\n\t Node toIterate = new Node(data);\n\t toIterate = head; // A node equal to the head is created in order to find the new \n\t \t\t\t\t\t//position without changing the head\n\t \n\t for (int currPosition = 0; currPosition < position -1 && toIterate.next != null; toIterate = toIterate.next){ \n\t currPosition++; \n\t }\n\n\t //Inserting a Node in-between a List or at the end of of a List\n\t newNode.next = toIterate.next;\n\t toIterate.next.prev = newNode;\n\t newNode.prev = toIterate;\n\t toIterate.next = newNode;\n\t \n\t}" ]
[ "0.78280926", "0.7765545", "0.7668145", "0.7601151", "0.7518405", "0.74334204", "0.7398514", "0.7353415", "0.7310058", "0.7291306", "0.7289898", "0.7265482", "0.7251414", "0.7229084", "0.7069026", "0.7055109", "0.70457935", "0.70306706", "0.70093507", "0.70016474", "0.6955499", "0.6952535", "0.6939486", "0.69394696", "0.6935458", "0.69263023", "0.6870363", "0.6844294", "0.6825477", "0.6787716", "0.6746067", "0.67143273", "0.6713577", "0.67076725", "0.670086", "0.667068", "0.664549", "0.6587826", "0.6574165", "0.6571792", "0.656864", "0.6565428", "0.6565218", "0.65439963", "0.65432346", "0.653523", "0.65344894", "0.6533853", "0.6531198", "0.6529436", "0.65276337", "0.6518956", "0.6464466", "0.64519477", "0.64475185", "0.64469135", "0.6442457", "0.6439948", "0.64385515", "0.6421821", "0.6415096", "0.6398746", "0.63955384", "0.6387422", "0.6383583", "0.63829744", "0.6377383", "0.6361017", "0.6357303", "0.6355457", "0.63489807", "0.6346753", "0.63306516", "0.63235873", "0.6296045", "0.62870026", "0.6285748", "0.6282236", "0.6271775", "0.6262395", "0.6260224", "0.6255727", "0.62555134", "0.6253395", "0.62338966", "0.6232491", "0.62311316", "0.62293535", "0.62080646", "0.6207141", "0.6207141", "0.619278", "0.6192179", "0.618855", "0.61878294", "0.6184579", "0.61662763", "0.6147585", "0.6138272", "0.6137124" ]
0.72082186
14
This method checks if the LinkedList is emtpy. It returns true if the bag is empty and false otherwise.
public boolean isLinkedListEmpty() { return(firstNode==null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty(){\n\t\treturn sizeOfLinkedList() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn(head == null);\t\t\n\t}", "public boolean isEmpty()\r\n\t {\r\n\t return head == null;\r\n\t }", "public boolean isEmpty()\n {\n return head == null;\n }", "public boolean empty()\n {\n\treturn null == head;\n }", "public boolean isEmpty() {\n\t\tif (l.getHead() == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isEmpty(){\n\n\t\treturn (head==null);\n\t}", "public boolean isEmpty() {\r\n\t\treturn head == null;\r\n\t}", "public boolean isEmpty() {\r\n\t\treturn head == null;\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tif (head == null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n\t\tif (head == null) \n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isEmpty() {\n\t\treturn head == null;\n\t}", "public boolean isEmpty() {\n\t\treturn head == null;\n\t}", "public boolean isEmpty() {\n\t\treturn head == null;\n\t}", "public boolean isEmpty() {\n\t\treturn head == null;\n\t}", "public boolean isEmpty() {\n return (head == tail) && size == 0;//size==0时为空\n }", "public boolean isEmpty()\n\t{\n\t\treturn (head == null);\n\t}", "public boolean isEmpty() { return head==null;}", "public boolean isEmpty()\n {\n return ll.getSize()==0? true: false;\n }", "public boolean isEmpty()\n\t{\n\t\tif (head == null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n return head == null;\n }", "public boolean isEmpty() {\n return head == null;\n }", "public boolean isEmpty()\r\n {\r\n return (head==null);\r\n }", "public boolean isEmpty() {\n return head.next == null;\n }", "public boolean isEmpty()\n\t{\n\t\tif(head == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isEmpty()\n\t{\n\t\tif(head == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isEmpty(){\n return this.head==null;\n }", "public boolean isEmpty() {\n\t\t\n\t\tif(head==null){\n\t\treturn true;\n\t\t}\n\t\telse{\n\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn bst.isEmpty();\n\t}", "public boolean isEmpty()\n {\n if (this.head == null)\n return true;\n else\n return false;\n \n }", "public boolean isEmpty()\n {\n if(head == null){\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}", "public boolean empty()\n {\n boolean check;\n if(head.data == null && tail.data == null)\n check = true;\n else\n check = false;\n return check;\n }", "public boolean isEmpty() {\n \n if(RBT.size() == 0)\n return true;\n else\n return false; \n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn bnetMap.size() == 0;\n\t}", "public boolean isEmpty() {\n return head.next == head;\n }", "public boolean isEmpty(){\n\t\treturn (head == null) && (tail == null);\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}", "public synchronized boolean isEmpty() {\n\t\treturn head.getNext() == tail;\n\t}", "private boolean isEmpty(){\n return head==null;\n }", "public boolean empty() { \t \n\t\t return size <= 0;\t \n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\t//if head is null\n\t\tif (head == null) {\n\t\t\t//return true, no items in list\n\t\t\treturn true;\n\t\t}\n\t\t//otherwise\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n return head == null || tail == null;\n }", "public boolean isEmpty() {\n \t\treturn size == 0;\n \n \t}", "@Override\n public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return downStack.isEmpty();\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n\t\treturn nodeList.isEmpty() && edgeList.isEmpty();\n\t}", "public boolean isEmpty()\n {\n return this.size == 0;\n }", "public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean empty() {\n return size <= 0;\n }", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty(){\n return this.listSize == 0;\n }", "private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}", "public boolean empty() {\r\n return size == 0;\r\n }", "public boolean empty() {\n return size == 0;\n }", "public boolean isEmpty(){\n\t\treturn tail <= 0;\n\t}", "@Override\n public boolean isEmpty() {\n return this.size==0;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return stack.isListEmpty();\n }", "public boolean isEmpty() {\n\t return size == 0;\n\t }", "public boolean isEmpty(){\r\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn (head==tail);\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "boolean isEmpty() {\n\t\treturn m_list_nodes.size() == 0;\n\t}", "public boolean isEmpty() {\r\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean isEmpty() {\n\t\treturn (_items.size() == 0);\n\t}", "public boolean isEmpty() {\n \treturn size == 0;\n }", "public boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean isEmpty() {\r\n return size == 0;\r\n }", "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "public final boolean isEmpty() {\r\n\t\treturn this.size == 0;\r\n\t}", "public boolean isEmpty() {\n return head == tail;\n }", "@Override\n public boolean isEmpty()\n {\n return size == 0;\n }", "public boolean isEmpty() {\r\n \r\n return size == 0;\r\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return size == 0;\n }" ]
[ "0.82265615", "0.7739114", "0.7737108", "0.7735662", "0.7721559", "0.7706232", "0.7701657", "0.7699804", "0.7699804", "0.7695575", "0.7683843", "0.7681283", "0.7681283", "0.7681283", "0.7681283", "0.7680471", "0.766417", "0.7654195", "0.7652234", "0.7648464", "0.76468587", "0.76468587", "0.76368344", "0.76309633", "0.75851953", "0.75851953", "0.75787824", "0.7552141", "0.75493443", "0.75387496", "0.75240076", "0.751776", "0.750625", "0.7497434", "0.74718493", "0.7463618", "0.7461882", "0.74458987", "0.743846", "0.7424594", "0.74237347", "0.74203384", "0.74203384", "0.74190426", "0.7414761", "0.7408504", "0.7395683", "0.73946404", "0.7387124", "0.7385957", "0.7383404", "0.7382962", "0.7378661", "0.7378661", "0.7378661", "0.7376244", "0.73672366", "0.7363982", "0.7363147", "0.73620534", "0.73619825", "0.73617685", "0.73616356", "0.7359901", "0.7359436", "0.73593634", "0.73585945", "0.73585945", "0.7354345", "0.7350883", "0.7350555", "0.73488146", "0.7336464", "0.73337555", "0.73337555", "0.73337555", "0.7329201", "0.732843", "0.7328204", "0.732794", "0.7326848", "0.7325136", "0.7325136", "0.7323217", "0.7322495", "0.7319008", "0.73145664", "0.7312366", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701", "0.7308701" ]
0.76387936
22
This method removes the node that contains the given "Storable" object.
public void remove(Comparable removedString) { ListNode currentNode = null; while (currentNode != null && removed == false) { returnifInTheFirstNode(); returnIfInTheCurrentNode(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeNode(NodeKey key);", "public boolean removeNode(Node n);", "public void removeGeneralEncapsulatedObject( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}", "@Override\n public boolean remove(Object o) {\n if (contains(o)) {\n root = root.removeElement(o);\n size--;\n return true;\n }\n return false;\n }", "protected void removeNode( String workspaceName,\n NodeKey key,\n NodeKey parentKey,\n Path path,\n Name primaryType,\n Set<Name> mixinTypes ) {\n\n }", "public boolean remove(objectType obj);", "@Override\r\n public Object removeElement(Object key) throws ElementNotFoundException {\r\n Item item; // Item removed from tree\r\n\r\n // Find the node containing the key\r\n TFNode foundNode = findNode(key);\r\n \r\n // Check node\r\n if (foundNode == null) {\r\n throw new ElementNotFoundException(\"Key not found in tree\");\r\n }\r\n\r\n int index = FFGTE(foundNode, key);\r\n TFNode removeNode = foundNode;\r\n\r\n // If it is not a leaf\r\n if (foundNode.getChild(0) != null) {\r\n removeNode = findIoS(foundNode, key);\r\n // Replace the item to be removed with the IoS\r\n item = foundNode.replaceItem(index, removeNode.removeItem(0));\r\n } else {\r\n // Node is at a leaf, just remove the item\r\n item = foundNode.removeItem(index);\r\n }\r\n\r\n // Check and fix any underflow on removed node\r\n fixUnderflow(removeNode);\r\n\r\n // Decrement size\r\n --size;\r\n\r\n return item;\r\n }", "@Override\n public V remove(K key, V value) {\n Node saveRemove = new Node(null,null);\n root = removeHelper(key,value,root,saveRemove);\n return saveRemove.value;\n }", "@DISPID(2)\n\t// = 0x2. The runtime will prefer the VTID if present\n\t@VTID(8)\n\tvoid removeChild(@MarshalAs(NativeType.VARIANT) java.lang.Object node);", "public Node removeFromChain();", "public Object remove(Object o) {\n for(int a=0;a<nodes.size();a++)\n if(((Node)nodes.elementAt(a)).data==o)\n return ((Node)nodes.remove(a)).data;\n return null;\n }", "void deleteNode(ZVNode node);", "public void remove(Comparable obj)\n {\n \t fixup(root, deleteNode(root, obj));\n }", "Object remove();", "@Override\n\tpublic void remove(DuNode s) {\n\t\t\n\t}", "public void removeObject(java.lang.Object object) {}", "boolean removeNode(N node);", "public void removeByObject()\r\n\t{\n\t}", "public abstract LocalAbstractObject deleteObject(UniqueID objectID) throws NoSuchElementException, BucketStorageException;", "void removeHasNodeID(Integer oldHasNodeID);", "@Override\r\n\tpublic Integer removeRecord(SubstageDocument object) throws Exception {\n\t\treturn null;\r\n\t}", "@Override\n public V remove(K key) {\n // just using a temp node to save the the .value of the removed node.\n Node saveRemove = new Node(null, null);\n root = removeHelper(key, root, saveRemove);\n return saveRemove.value;\n }", "public void DoRemoveFromNest(Holdable p);", "@SuppressWarnings(\"unchecked\")\n @Override\n public boolean remove(Object o) {\n final Node<E>[] update = new Node[MAX_LEVEL];\n final E element = (E) o;\n Node<E> curr = head;\n for (int i = level - 1; i >= 0; i--) {\n while (curr.next[i] != head && comparator.compare(curr.next[i].element, element) < 0)\n curr = curr.next[i];\n update[i] = curr;\n }\n curr = curr.next();\n if (curr == head || comparator.compare(curr.element, element) != 0)\n return false;\n delete(curr, update);\n return true;\n }", "public void remove() {\n removeNode(this);\n }", "@Override\n\tpublic Node removeNode() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\t// BreadthFirstSearch using a queue, first in first out principle\n\t\treturn frontier.removeFirst();\n\t}", "public boolean removeElement(Object obj);", "void remover(Object o);", "public void remove(GeometricalObject object);", "public abstract void removedFromWidgetTree();", "@Override\r\n\tpublic Object removeObject(Object key) {\n\t\treturn null;\r\n\t}", "public Node<E> delete(E payload) {\n Node<E> parent = searchParent(payload);\n Node<E> current = search(payload);\n if (current != null)\n return delete(current, parent);\n else\n return null;\n }", "public synchronized void remove(E object) {\n Node<E> temp = first;\n while (temp.next != null) {\n if (first.object.equals(object)) {\n first = first.next;\n } else if (temp.object.equals(object)) {\n Node<E> forChangeLinks = temp;\n temp.next.prev = temp.prev;\n temp.prev.next = temp.next;\n }\n temp = temp.next;\n }\n }", "void remove(GeometricalObject object);", "@Override\n public boolean remove(T item) {\n //find the node with the value\n Node n = getRefTo(item);\n //make sure it actually is in the set\n if(n == null)\n return false;\n //reassign the value from the first node to the removed node\n n.value = first.value;\n //take out the first node\n remove();\n return true;\n }", "private boolean removeNode(NeuralNode node) {\r\n\t\treturn innerNodes.remove(node);\r\n\t}", "@Override\n\tpublic TreeNode remove() {\n\t\treturn null;\n\t}", "public Object remove();", "void arbitraryRemove(Nodefh node){\n\t\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t\tnode.Parent = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t\tnode.Parent = null;\n\n\t\t}\n\t\tif(node.Child!=null){\n\t\t\tNodefh temp = node.Child;\n\t\t\tif(node.Child.Right!=null){\n\t\t\t\ttemp = node.Child.Right;\n\t\t\t}\n\t\t\tfhInsert(node.Child);\n\t\t\twhile(temp!=node.Child.Right){\n\t\t\t\tfhInsert(temp);\n\t\t\t\ttemp = temp.Right;\n\t\t\t}\n\n\t\t}\n\n\t}", "public void removeGameObj(GameObject obj){\n display.getChildren().remove(obj.getDisplay());\n }", "private void RemoveRootNode() {\n\t\t\n\t\troot_map.remove(this);\n\t\tis_node_set = false;\n\t\tif(left_ptr == null && right_ptr == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tleft_ptr.RemoveRootNode();\n\t\tright_ptr.RemoveRootNode();\n\t}", "public void delete(SplayNode n) {\n\t\t this.splay(n);\n\n\t\t SplayTree leftSubtree = new SplayTree();\n\t\t leftSubtree.root = this.root.left;\n\t\t if(leftSubtree.root != null)\n\t\t leftSubtree.root.parent = null;\n\n\t\t SplayTree rightSubtree = new SplayTree();\n\t\t rightSubtree.root = this.root.right;\n\t\t if(rightSubtree.root != null)\n\t\t rightSubtree.root.parent = null;\n\n\t\t if(leftSubtree.root != null) {\n\t\t \tSplayNode m = leftSubtree.maximum(leftSubtree.root);\n\t\t leftSubtree.splay(m);\n\t\t leftSubtree.root.right = rightSubtree.root;\n\t\t this.root = leftSubtree.root;\n\t\t }\n\t\t else {\n\t\t this.root = rightSubtree.root;\n\t\t }\n\t\t }", "public BinaryNode removeNode(BinaryNode node){\n if(isLeaf(node)){//base case\n BinaryNode parent = (BinaryNode) node.getParent();\n if(parent == null){\n root = null;\n }\n else{\n parent.removeChild(node);\n }\n size--;\n return parent;\n }\n BinaryNode lower = descendant(node);\n promote(lower, node);\n return removeNode(lower);\n }", "boolean removeObject(String id);", "@Override\n public void delete(K key){\n try {\n this.rootNode = deleteNode(this.rootNode, key);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }", "public void remove( AnyType x )\r\n\t{\r\n\t\troot = remove( x, root );\r\n\t}", "public Object delete()\n {\n\t Generics opaqueObject = null;\n\t \t \n\t if (firstObject != null) {\n\t\t opaqueObject = AL.get(0);\n\t\t //firstObject = firstObject.getNext();\n\t\t firstObject = AL.get(1);\n\t\t if (firstObject == null)\n\t\t\t lastObject = firstObject;\n\t\t else\n\t\t\t AL.set(AL.indexOf(lastObject),null);\n\t\t\t //headNode.setPrevNode(null);\n\t }\n\t \t\t\n\t return opaqueObject;\n }", "public void onRemoveNode(Node node) {\n\t}", "public boolean remove(New object);", "public void removeChild(WSLNode node) {children.removeElement(node);}", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "public boolean remove(Object obj);", "@Override\n\t\tpublic boolean remove(Object o) {\n\t\t\treturn false;\n\t\t}", "private Node delete(Order ord2) {\n\t\treturn null;\n\t}", "public boolean remove(E obj)\n {\n Node r = head; \n int count = 0;\n while(r.getNext() != null)\n {\n r = r.getNext();\n count++;\n if(r.getValue().equals(obj))\n {\n remove(count); \n }\n }\n return true;\n }", "public boolean remove(RealObject o);", "public void removeNode(Node<E> node) {\n super.removeNode(node);\n addNodeToCache(node);\n }", "public Entry remove(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n n.remove();\n size--;\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null; \n }", "private void removeNode(DLinkedNode node){\n DLinkedNode pre = node.pre;\n DLinkedNode post = node.post;\n\n pre.post = post;\n post.pre = pre;\n }", "@Override\r\n\tpublic Ngo delete(Ngo obj) {\n\t\treturn null;\r\n\t}", "void removeChild(Object child);", "public boolean remove(Object o);", "private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.canvas.uRemove(this.curr_obj);\n\t\t\tthis.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n\n this.curr_obj = null;\n }\n\t}", "public void cutNode ()\n {\n copyNode();\n deleteNode();\n }", "public final void removeFirst() {\n this.size--;\n setFirst((Node) ((Node) get()).get());\n }", "public void delete() {\n this.root = null;\n }", "public Object removeFirst()\n {\n return ((Node)nodes.remove(0)).data;\n }", "@Test\n public void remove_BST_1_CaseLeafRight()\n {\n BinarySearchTree bst = new BinarySearchTree();\n No root = new No(6);\n No leaf = new No(9);\n \n bst.insert(null, root);\n //bst.printTree();\n \n bst.insert(root, new No(2));\n //bst.printTree();\n \n bst.insert(root, leaf);\n //bst.printTree();\n //System.err.println(); // Print[ERR] Devido a prioridade do buffer de impressao (out, err)\n \n assertEquals(leaf, bst.remove(leaf));\n assertEquals(new Integer(2), bst.size());\n //bst.printTree();\n }", "public void removeNode()\n\t{\n\t\tif (parent != null)\n\t\t\tparent.removeChild(this);\n\t}", "boolean removeObject(int ID) throws DatabaseNotAccessibleException;", "E remove(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\tE obj = nodes[index].remove(this, element.hashCode(), (byte) 1);\n\t\t\tif (obj != null) {\n\t\t\t\tsize--;\n\t\t\t}\n\t\t\treturn obj;\n\t\t}", "@Test\n public void remove_BST_0_CaseRootLeafRight()\n {\n BinarySearchTree bst = new BinarySearchTree();\n No root = new No(2);\n No no = new No(3);\n \n bst.insert(root, root);\n //bst.printTree();\n \n bst.insert(root, no);\n //bst.printTree();\n //System.err.println(); // Print[ERR] Devido a prioridade do buffer de impressao (out, err)\n \n assertEquals(new Integer(2), bst.size());\n assertEquals(no, bst.remove(no));\n assertEquals(new Integer(1), bst.size());\n //bst.printTree();\n }", "public void removeGeneralEncapsulatedObject(DataObject value) {\r\n\t\tBase.remove(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}", "@Override\n\tpublic T remover(String obj) {\n\t\treturn null;\n\t}", "public void delById(Serializable id) ;", "private void removeNode(DLinkedNode node) {\n\t\t\tDLinkedNode pre = node.pre;\n\t\t\tDLinkedNode post = node.post;\n\n\t\t\tpre.post = post;\n\t\t\tpost.pre = pre;\n\t\t}", "public void removeNode(Integer nodeID) throws IOException, XMLStreamException {\n if (this.IPmap.containsKey(nodeID)) {\n\n this.IPmap.remove(nodeID);\n this.fileOwnerMap.remove(nodeID);\n if (this.IPmap.size() > 1) {\n //writeToXML();\n for (Map.Entry<Integer, String> entry : IPmap.entrySet()) {\n System.out.println(\"Key: \" + entry.getKey() + \". Value: \" + entry.getValue());\n }\n }\n System.out.printf(\"Node removed\");\n } else System.out.println(\"Node not in system.\");\n }", "boolean removeObjectFlowState(ObjectFlowState objectFlowState);", "public Node remove() {\n Node result = peek();\n\n //new root is last leaf\n heap[1] = heap[size];\n heap[size] = null;\n size--;\n\n //reconstruct heap\n shiftDown();\n\n return result;\n }", "public void removeEncodedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "void removeNode(ANode<T> a) {\n return;\n }", "SNode removeStr(String str);", "@Override\n\tpublic boolean remove(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean remove(Object o) {\n\t\treturn false;\n\t}", "public void remove(AnyType x) {\n LinkedListIterator<AnyType> p = findPrevious(x);\n\n if (p.current.next != null) {\n p.current.next = p.current.next.next; // Bypass deleted node\n }\n }", "@Override\n\tpublic boolean delete(Eleve o) {\n\t\tmap.remove(o.getId(), o);\n\t\treturn true;\n\t}", "public void remove(GObject object);", "void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}", "void deleteTree(TreeNode node) \n {\n root = null; \n }", "public abstract void removeChild(Node node);", "void removeNode(ANode<T> a) {\n if (this.equals(a)) {\n this.remove();\n }\n else {\n this.next.removeNode(a);\n }\n }", "Object removeFirst();", "private void deleteNode(Node n) {\n n.next.pre = n.pre;\n n.pre.next = n.next;\n }", "abstract AbstractTree<T> removeSubtree(Node<T> subtreeRoot);", "public void delete(K u) {\n\t\tnodes.remove(u);\n\t\troot = null;\n//\t\tfor (Map.Entry<K, V> entry : nodes.entrySet()) {\n//\t\t K key = entry.getKey();\n//\t\t V value = entry.getValue();\n//\t\t add(key, value);\n//\t\t}\n\t\t\n\t\tIterator<Map.Entry<K, V>> entries = nodes.entrySet().iterator();\n\t\twhile (entries.hasNext()) {\n\t\t Map.Entry<K, V> entry = entries.next();\n\t\t System.out.println(\"Key = \" + entry.getKey() + \", Value = \" + entry.getValue());\n\t\t K key = entry.getKey();\n\t\t V value = entry.getValue();\n\t\t add(key, value);\n\t\t}\n\t}", "@Transactional\n void remove(DataRistorante risto);", "private Node popNode() {\n\t\treturn open.remove(0);\n\t}", "public boolean removeTree(String treeName);", "public E BSTRemove(Position<E> arg) throws InvalidPositionException {\n PNode<E> v = validate(arg);\n E old = v.element();\n \n if (v.left != null && v.left.isExternal()){\n RemoveExternal(v.left);\n }else if (v.right != null && v.right.isExternal()){\n RemoveExternal(v.right);\n }else{ // find v's\n PNode<E> w = v.right;\n while (w != null && w.isInternal()){\n w = w.left;\n }\n v.setElement( w.parent.element() );\n RemoveExternal(w);\n }\n //checkRoot();\n \n return old;\n }", "public E remove(String key) {\n TSTNode<E> node = getNode(key);\n deleteNode(getNode(key));\n return (node != null ? node.data : null);\n }", "public void removeFromParent();" ]
[ "0.58307713", "0.5721918", "0.57093006", "0.56907964", "0.5678929", "0.56477165", "0.56069463", "0.5593234", "0.5576298", "0.55603015", "0.55424285", "0.55287546", "0.5519504", "0.5516995", "0.5516616", "0.5504147", "0.550392", "0.54668254", "0.54648256", "0.5453632", "0.54523975", "0.5410322", "0.5387826", "0.53868043", "0.53833055", "0.5376201", "0.5360722", "0.53490853", "0.5343972", "0.53378505", "0.5335641", "0.53327423", "0.532606", "0.53231674", "0.5320417", "0.52973944", "0.5287898", "0.5287589", "0.52835447", "0.52817875", "0.52737087", "0.5265535", "0.5264437", "0.5259088", "0.5255817", "0.5238557", "0.52380973", "0.52341455", "0.5227776", "0.52264875", "0.52260685", "0.5223999", "0.5187828", "0.5181782", "0.5179528", "0.5161019", "0.51550424", "0.5136882", "0.5129002", "0.51242614", "0.5118935", "0.5118481", "0.5114192", "0.5100144", "0.5096576", "0.50888276", "0.5085051", "0.5075484", "0.50650406", "0.50592905", "0.5058575", "0.50558263", "0.5050409", "0.50475746", "0.50395924", "0.50379705", "0.50328606", "0.5031311", "0.5031298", "0.502683", "0.50227344", "0.5019797", "0.5019627", "0.5019627", "0.50185174", "0.50178057", "0.50051224", "0.5004871", "0.5004055", "0.50016916", "0.4995231", "0.49946013", "0.49941346", "0.4986114", "0.49844983", "0.4974985", "0.49663386", "0.49619144", "0.49562234", "0.4954429", "0.4952502" ]
0.0
-1
This method clears the linkedList
public void clearLinkedList() { firstNode = null; length = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearList() {\n\t\thead = null;\n\t\tlength = 0;\n\t}", "public void clearList() {\n\t\tthis.head = null;\n\t\tthis.tail = null;\n\t\tlength = 0;\n\t}", "public void clear ()\n {\n headNode.next = null;\n currentNode = headNode;\n size = 0;\n }", "public void clear() {\n\t\thead = null;\n\t}", "public void clear ()\n {\n\n while (head != null) {\n head.data = null;\n head = head.next;\n }\n size = 0;\n }", "public void clear() {\n\t\thead = null;\n\t\tsize = 0;\n\n\t}", "public void clear() {\n head = null;\n numElement = 0;\n }", "@Override\n\tpublic void clear() {\n\t\thead = null;\n\t\tsize = 0;\n\t}", "@Override\n public void clear() {\n this.head.setData(null);\n this.head.next = this.head;\n this.head.prev = this.head;\n this.tail = this.head;\n size = 0;\n }", "public void clear() {\n\t\thead.setNext(null);\n\t\tmodcount++;\n\t\tnodeCount = 0;\n\t}", "public void clear() {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n \n headNode = null;\n tailNode = null;\n size=0;\n \n }", "public void clear() {\n this.next = null;\n this.mList.clear();\n this.notifyDataSetChanged();\n }", "public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }", "@Override\n public void clear() {\n head = null;\n size = 0;\n }", "public void clear() {\n used = 0;\n head = -1;\n }", "public void clear()\n {\n\thead = null;\n\ttail = null;\n }", "public void clear()\n\t{\n\t\t// resets the list to empty: O(1).\n\t\thead = null;\n\t\ttail = null;\n\t}", "public void clear()\n {\n\tsize = 0;\n\thead = new SkipListNode<K>();\n }", "public void clear() {\n\n\t\thead = null;\n\t\ttail = null;\n\t\telements = 0;\n\t}", "public void clear() {\n\t\thead = tail = null;\n\t}", "public void clear() {\n\t\tmSize = 0;\n\t\tmHead = new Node(null, null);\n\t\tmTail = new Node(null, null);\n\t\tmHead.next = mTail;\n\t\tmodCount++;\n\t}", "public void clear() {\n head = null;\n tail = null;\n size = 0;\n\n }", "public void clear() {\n\t\tnodeList.clear();\n\t}", "public void clear() {\n size = 0;\n head = new DoublyLinkedNode<E>(null);\n tail = new DoublyLinkedNode<E>(null);\n head.linkWith(tail);\n }", "public void reset() {\n this.list.clear();\n }", "public void clearList()\n\t{\n\t\tnodeManager.clearList();\n\t}", "public void clear() {\n head = tail = null;\n size = 0;\n }", "@Override\n public void clear() {\n wordsLinkedList.clear();\n }", "public void clearList ( T data ) {\n\t\t//set head to be null\n\t\thead = null;\n\t}", "public void Reset()\n {\n this.list1.clear();\n }", "public void clear()\n {\n Node currNode = this.head;\n while(currNode.next != this.tail)\n {\n currNode.next.remove();\n }\n }", "public void clear(){\n firstNode = null;\n lastNode = null;\n }", "protected void clear() {\n\n\t\tthis.myRRList.clear();\n\t}", "@Override\n public void clear() { //I still don't understand the benefits of the way you wrote this method in class\n this.size = 0; //Wouldn't doing it this way be more efficient because it is a constant complexity?\n this.head = null;\n }", "public void clear() {\n\t\tif(size == 0) return;\r\n\t\telse {\r\n\t\t\thead.clear();\r\n\t\t\ttail.clear();\r\n\t\t}\r\n\t\tsize = 0;\r\n\t}", "public void clear() {\n\t\tlists.clear();\n\t}", "public void clear()\t{nodes.clear(); allLinks.clear();}", "public void deleteWholeList()\n {\n head = null;\n }", "public void clearList() {\n\t\tdeletedList.clear();\n\t}", "@Override\n\tpublic void clear() {\n\t\tNode currentNode = firstNode;\n\t\tNode previousNode = firstNode;\n\t\t\n\t\twhile(firstNode.getNextNode() != null){\n\t\t\t\n\t\t\t\tpreviousNode = currentNode;\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tpreviousNode.next = currentNode.getNextNode();\n\t\t}\n\t\tfirstNode = null;\n\t\tnumberOfEntries = 0;\n\t}", "public void clear() {\n Node<T> it = head.get();\n for (int i = 0; i < capacity; i++) {\n // Trash the element\n it.element = null;\n // Mark it free.\n it.free.set(true);\n it = it.next;\n }\n }", "public void clear() {\n this.first = null;\n this.last = null;\n this.nrOfElements = 0;\n }", "public void clear() {\n list = new Object[MIN_CAPACITY];\n n = 0;\n }", "public void clear()\r\n {\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "@Override\n public void clear() {\n size = 0;\n first = null;\n last = null;\n }", "public void clear()\n {\n current = null;\n size = 0;\n }", "public void deleteAll(){\r\n\t\thead = null;\r\n\t}", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "@Override\r\n public void clear() {\r\n \r\n this.array = new LinkedList[capacity];\r\n \r\n this.size = 0;\r\n \r\n }", "void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}", "@Override\r\n\tpublic void clear() {\n\t\tnodo<T> tmp;\r\n\t\twhile(sentinel.getNext()!=null) {\r\n\t\t\ttmp=sentinel.getNext();\r\n\t\t\tsentinel.setNext(null);\r\n\t\t\tsentinel=tmp;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.gc();\r\n\t\tcount=0;\r\n\t}", "public void removeAll() {\n\t\thead = new DoublyNode(null);\r\n\t\thead.setPrev(head);\r\n\t\thead.setNext(head);\r\n\t\tnumItems = 0;\r\n\t}", "public void clear(){\r\n NotesList.clear();\r\n }", "public void clear() {\n\t\tstringList = null;\n\t}", "public void deleteList() {\n this.head = deleteListWrap(this.head);\n }", "public void reset() {\n next = 0;\n renderList.clear();\n viewList.clear();\n }", "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public void clear() {\r\n size = 0;\r\n hashTable = new LinkedList[capacity];\r\n }", "public void clear() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n size = 0;\r\n }", "void clear(int list) {\n\t\tint last = getLast(list);\n\t\twhile (last != nullNode()) {\n\t\t\tint n = last;\n\t\t\tlast = getPrev(n);\n\t\t\tfreeNode_(n);\n\t\t}\n\t\tm_lists.setField(list, 0, -1);\n\t\tm_lists.setField(list, 1, -1);\n\t\tsetListSize_(list, 0);\n\t}", "public void clear()\n {\n nodes.clear();\n }", "public void clear() {\n first = null;\n n = 0;\n }", "public void clear() {\r\n\t\t\r\n\t\ttopNode = null; // Sets topNode pointer to null.\r\n\t\t\r\n\t}", "@Override\n public void makeEmpty() {\n this.head = null;\n this.tail = null;\n }", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public void clear() {\r\n modCount++;\r\n header.next = header.previous = header;\r\n size = 0;\r\n }", "void clear() {\n\t\t// Initialize new empty list, clearing out old data\n\t\tmNewsList = new ArrayList<>();\n\t}", "public final void clear()\n {\n this.pointer = 0;\n }", "public void removeAllItems()\r\n {\r\n head = tail = null;\r\n nItems = 0;\r\n }", "private void clearLinks() {\n links_ = emptyProtobufList();\n }", "private void clearLists() {\r\n if (memoryLists == null) return;\r\n\r\n for (int i = 0; i < this.memoryLists.length; i++) {\r\n this.lastChanged[i] = -1;\r\n\r\n // clear list\r\n memoryLists[i].setModel(new DefaultListModel());\r\n }\r\n\r\n this.memoryBlocks = null;\r\n this.memoryLists = null;\r\n }", "public void clear(){\r\n\t\tbeginMarker.next = endMarker;\r\n\t\tendMarker.prev = beginMarker;\r\n\t\tnumAdded=0;\r\n\t\tsize=0;\r\n \tmodCount++;\r\n\t}", "public void clearList() {\n data.clear();\n notifyDataSetChanged();\n }", "public void clear()\n {\n }", "public void makeEmpty() {\n System.out.println(\"List is now empty\");\n head = null;\n tail = null;\n\n }", "public void clear() {\n\t\t\tsuper.clear();\n\t\t\tjgraph.getGraphLayoutCache().remove(nullnodes.toArray());\n\t\t\tnullnodes = new LinkedList<DefaultGraphCell>();\n\t\t}", "public void clear() {\n lists = new TernarySearchTree<>();\n }", "public void clear() {\n this.layers.clear();\n list.clear();\n }", "void clear() {\n\t\t\tfor (int i = 0 ; i < nodes.length; i++) {\n\t\t\t\tnodes[i].clear((byte) 1);\n\t\t\t}\n\t\t\tsize = 0;\n\t\t}", "public void clear() {\n \tthis.listShapes.clear();\n }", "public void clear() {\n\t\tIterator<E> iterator = this.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\titerator.next();\n\t\t\titerator.remove();\n\t\t}\n\t}", "@Override\n\tpublic void clear()\n\t{\n\t\t/*\n\t\t * TODO This doesn't actually notify GraphChangeListeners, is that a\n\t\t * problem? - probably is ... thpr, 6/27/07\n\t\t */\n\t\tnodeEdgeMap.clear();\n\t\tnodeList.clear();\n\t\tedgeList.clear();\n\t}", "public void clear() {\n\t\t\r\n\t}", "public void clear() {\n\t\tlist = new ArrayList<String>();\n\t\tword = \"\";\n\t}", "public void clear(){\n\t\tclear(0);\n\t}", "public void clear()\n {\n this.mi_Size = 0;\n this.m_RootNode = null;\n this.m_FirstNode = null;\n this.m_LastNode = null;\n }", "public final void clear() {\n clear(true);\n }", "@Override\n\tpublic void clear() {\n\t\tthis.first=null;\n\t\tthis.last=null;\n\t\tthis.size=0;\n\t\tthis.modificationCount++;\n\t}", "public void clear(){\r\n MetersList.clear();\r\n }", "public void clear () {\n\t\treset();\n\t}", "public void clear() {\n\t\tpointList.clear();\n\t\tySum = 0;\n\t}", "public void clear() {\r\n\t\tbitset.clear();\r\n\t\tnumberOfAddedElements = 0;\r\n\t}", "public synchronized void clear()\n {\n clear(false);\n }", "public void removeFirst() {\n\t\t\thead = head.next;\n\t\t}", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "public void clear() {\r\n GiftList.clear();\r\n names = new LinkedList<>();\r\n totalGifts = 0;\r\n totalCost = 0;\r\n }", "public void clear() {\n for (int i = 0; i < size; i++) genericArrayList[i] = null;\n size = 0;\n }", "void clear()\n\t{\n\t\tfront = null;\n\t\tback = null;\n\t\tcursor = null;\n\t\tlength = 0;\n\t\tindex = -1;\n\t}", "public void deleteAtStart() {\n head = head.next;\n size--;\n }", "public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}", "public void reset() {\r\n\t\t//begin\r\n\t\tproducerList.clear();\r\n\t\tretailerList.clear();\r\n\t\tBroker.resetLists();\r\n\t\t//end\r\n\t}" ]
[ "0.8592266", "0.82664466", "0.81584996", "0.814652", "0.814597", "0.81432134", "0.81051534", "0.8052791", "0.7990205", "0.79727745", "0.79691386", "0.7949005", "0.79458326", "0.79436964", "0.79167277", "0.7856992", "0.7843267", "0.7842049", "0.78279465", "0.7813407", "0.7804004", "0.77929735", "0.7766114", "0.7760077", "0.77500147", "0.7745304", "0.7740979", "0.76993686", "0.76324296", "0.7610913", "0.75730705", "0.7560383", "0.75581384", "0.75186235", "0.74908596", "0.74544376", "0.7393717", "0.7357431", "0.7349025", "0.73198795", "0.7316124", "0.730344", "0.7295759", "0.7282238", "0.7270111", "0.72566324", "0.7226695", "0.7223312", "0.72115225", "0.72094035", "0.71897894", "0.7153829", "0.7126347", "0.7123701", "0.7065399", "0.70559806", "0.70550686", "0.7041682", "0.7040797", "0.70371526", "0.7030724", "0.7016813", "0.70105255", "0.6991031", "0.69787115", "0.697426", "0.6957912", "0.6935184", "0.69247675", "0.6924604", "0.6917254", "0.6913219", "0.68718755", "0.6863025", "0.68583757", "0.68583494", "0.6858251", "0.6857858", "0.68527967", "0.6850531", "0.6848866", "0.6848691", "0.6828724", "0.6814538", "0.6808233", "0.6798323", "0.6792685", "0.6792063", "0.6781786", "0.6774747", "0.676965", "0.6758618", "0.6757734", "0.67566544", "0.6731102", "0.6730581", "0.67280895", "0.6724406", "0.672277", "0.67222697" ]
0.8380722
1
This method returns true if any of the nodes in the LinkedList contains "value" for their data. Otherwise return false.
public boolean contains(Comparable value) { ListNode currentNode; currentNode = firstNode; while (currentNode != null) { if (currentNode.data.equals(value)) { return true; } else { currentNode = currentNode.next; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsValue(V value) {\r\n for (Node datum : data) {\r\n if (datum != null) {\r\n Node targetNode = datum;\r\n while (targetNode != null) {\r\n if (targetNode.value == value || targetNode.value.equals(value)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n\r\n }\r\n }\r\n return false;\r\n }", "@Override public boolean containsValue(Object value) {\n if (value == null) {\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (e.value == null) {\n return true;\n }\n }\n return false;\n }\n\n // value is non-null\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (value.equals(e.value)) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(T value) {\n\t\tif (head.value.equals(value)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn contains(head, value);\n\t\t}\n\t}", "public boolean containsValue(Object value) {\r\n\t\tTableEntry<K, V> currentElement = null;\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (table[i] == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = table[i];\r\n\r\n\t\t\tdo {\r\n\t\t\t\tif (currentElement.value.equals(value)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentElement = currentElement.next;\r\n\t\t\t} while (currentElement != null);\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean contains(@NotNull T value) {\n Node curr = this.head.get();\n while(curr != null && curr.getValue().compareTo(value) < 0){\n curr = curr.getNext().getReference();\n }\n return curr != null && Objects.equals(curr.getValue(), value) && !curr.getNext().isMarked();\n }", "public boolean contains(K value)\n {\n\tArrayList<SkipListNode<K>> pred = findPredecessors(value); //Predecessors\n\tSkipListNode<K> predNode = pred.get(0); //Predecessor at level 0\n\n\t//If the node is not the last in the list and its data is equal to value, contains is true. \n\t//If the node is the last in the list or the value after predNode does not equal value, contains must be false\n\treturn (predNode.next(0) != null) && (predNode.next(0).data().compareTo(value) == 0);\n }", "@Override\n public boolean containsValue(Object value) {\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry.getValue().equals(value)) {\n return true;\n }\n }\n }\n return false;\n }", "boolean Exists(int value) {\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tif (curr.data == value)\n\t\t\t\treturn true;\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains(T value) {\n Node<T> cur = root;\n while (cur != null) {\n int cmp = cur.value.compareTo(value);\n\n if (cmp == 0)\n return true;\n else if (cmp < 0)\n cur = cur.right;\n else\n cur = cur.left;\n }\n return false;\n }", "@Override\n public boolean containsValue(Object value) {\n \t\n \tfor(int i=0;i<buckets.length;i++) {\n\t \tLinkedList<Entry> tempBucket = buckets[i];\n\t \t\n\t \tfor(int j=0;j<tempBucket.size();j++) {\n\t \t\tEntry tempEntry = tempBucket.get(j);\n\t \t\t\n\t \t\tif(tempEntry.getValue() == value) {\n\t \t\t\treturn true;\n\t \t\t}\n\t \t}\n \t}\n \t\n return false;\n }", "@Override\n public boolean containsValue(Object value) {\n // Walk the values.\n for (Map.Entry<String, T> e : entries.values()) {\n if (value.equals(e.getValue())) {\n // Its there!\n return true;\n }\n }\n return false;\n }", "private boolean contains(TreeNode node, Object value)\r\n {\r\n if (node == null)\r\n return false;\r\n else\r\n {\r\n int diff = ((Comparable<Object>)value).compareTo(node.getValue());\r\n if (diff == 0)\r\n return true;\r\n else if (diff < 0)\r\n return contains(node.getLeft(), value);\r\n else // if (diff > 0)\r\n return contains(node.getRight(), value);\r\n }\r\n }", "@Override\n public boolean containsAll(LinkedList linkedlist) {\n Node currNode = linkedlist.head;\n while(currNode.getNextNode() != null){\n if(!this.contains(currNode.getItem())){\n return false;\n }\n currNode = currNode.getNextNode();\n }\n return true;\n }", "public boolean containsValue(Object value) {\n\t\treturn false;\r\n\t}", "public boolean containsValue(Object value) {\n for (int i = 0; i < size; i++) {\n Entry entry = order[i];\n\n if (eq(value, entry.getValue())) {\n return true;\n }\n }\n\n return false;\n }", "public boolean contains(T value) {\n if (value == null)\n return false;\n\n Node<T> current = root;\n\n // find\n while (current != null) {\n int diff = current.data.compareTo(value);\n if (diff == 0)//when found\n return true;\n else if (diff < 0)\n current = current.right;//check right sub tree\n else\n current = current.left;//check left subtree\n }\n\n return false;//not found\n }", "@Override\n\t\t\tpublic boolean containsValue(Object value) {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean contains(Object value)\r\n {\r\n return contains(root, value);\r\n }", "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn false;\n\t}", "public boolean containsValue(V value) {\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tif(k.value.equals(value)) {\n\t\t return true;\n\t\t}\n\t }\n\t}\n\treturn false;\n }", "@Override\n\tpublic boolean contains(T elem) {\n\t\tfor (int i = 0; i < valCount; ++i) {\n\t\t\tif (values[i].equals(elem)) { // if current value is same\n\t\t\t\treturn true;\n\t\t\t} else if (comp.compare(values[i],elem) < 0) { // finds the set of children that can possibly contain elem\n\t\t\t\treturn children[i].contains(elem);\n\t\t\t}\n\t\t}\n\t\tif (childCount > 1) { // check final set of children\n\t\t\treturn children[valCount - 1].contains(elem);\n\t\t}\n\t\treturn false;\n\t}", "private boolean _contains(Node node, T value) {\n if (node == null)\n return false;\n /** if the value is found */\n if (value.compareTo(node.element) == 0) {\n return true;\n }\n /** Otherwise, continue the search recursively */\n return value.compareTo(node.element) < 0 ? _contains(node.left, value) : _contains(node.right, value);\n\n }", "@Override\n\tpublic boolean contains(Object data) {\n\t\t// int index = 0;\n\t\t\n\t\tNode current = head;\n\t\t\n\t\tif (head == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t//System.out.println(\"(contains method)This is the current \" + current.getElement());\n\t\t//System.out.println();\n\t\twhile (current != null) {\n\t\t\tif (current.getElement().equals(data)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tcurrent = current.getNext();\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean containsValue(Object value) {\r\n\t\tif (value == null) throw new NullPointerException();\r\n\t\tfor (K key : keySet()) {\r\n\t\t\tif (get(key).equals(value)) return true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean containsValue(V value)\r\n\t{\r\n\t\tList<V> values = values();\r\n\t\t\r\n\t\tfor(V element : values)\r\n\t\t{\r\n\t\t\tif(element.equals(value))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean contains(T value) { return root == null ? false : root.contains(value); }", "public boolean contains(T value) {\n for (T tmp : arr) {\n if (tmp.equals(value)) {\n return true;\n }\n }\n return false;\n }", "public boolean contains (E val) {\n return containsRecursive(root, val);\n }", "@Override\n public boolean hasNext() {\n return this.position != values.length && values[this.position] != null;\n }", "public boolean contains (T data){\r\n\t\tif (data == null)\r\n\t\t\tthrow new IllegalArgumentException(\"data cannot be null\"); \r\n\t\t//can't be in empty node\r\n\t\tif (isEmpty())\r\n\t\t\treturn false;\r\n\t\tArrayNode<T> temp = beginMarker.next;\r\n\t\t//loop through nodes\r\n\t\twhile (temp != endMarker){\r\n\t\t\t//past this node\r\n\t\t\tif (temp.getLast().compareTo(data) < 0){\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//loop through possible node\r\n\t\t\t\tfor (int i=0; i< temp.getArraySize();i++){\r\n\t\t\t\t\t//found\r\n\t\t\t\t\tif (temp.get(i).equals(data))\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t//iterate\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean containsValue(Object toFind)\n\t\t{\n\t\t\tif(value != null && toFind.equals(value))\n\t\t\t\treturn true;\n\t\t\tif(nextMap == null)\n\t\t\t\treturn false;\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tif(node.containsValue(toFind))\n\t\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "public boolean contains(T aData) {\r\n\t\tListNode temp = head;\r\n\t\twhile (temp != null) {\r\n\t\t\tif (temp.data.equals(aData)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(String key) {\n\t \tNode node = get(key);\n\t return node!=null && node.value!=null;\n\t }", "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn map.containsValue(value);\n\t}", "@Override\n public boolean hasNext() {\n return (this.index != values.length) && (values[index] != null);\n }", "public boolean includes(int findValue) {\r\n Node currentNode = head;\r\n\r\n while (currentNode != null) {\r\n if (currentNode.data == findValue) {\r\n return true;\r\n }\r\n currentNode = currentNode.next;\r\n\r\n }\r\n return false;\r\n\r\n\r\n }", "public boolean contains(T data)\r\n {\r\n if(containsData.contains(data) == true) //Checking my hashset of data to see if our data has been inserted!\r\n return true;\r\n \r\n return false;//If we didnt find the node within our list, return false. \r\n }", "boolean containsValue(Object value) throws NullPointerException;", "public boolean contains(String value){\n if (value == null)\n return false;\n int index = clamp(value);\n if (linkedListStrings[index] == null)\n return false;\n else\n return linkedListStrings[index].contains(value);\n\n\n }", "public boolean containsValue(V value) {\r\n\t\tfor (LinkedList<KVPair> i : hashMapArray) {\r\n\t\t\tif (i!= null) {\r\n\t\t\t\tfor (int k = 0; k<i.size(); k++) {\r\n\t\t\t\t\tif (i.get(k).getValue() == value) {\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}", "boolean containsValue(Object value);", "public boolean hasValue(String value) {\r\n\t\tfor(Attribute curAttr: valInstances) {\r\n\t\t\tif(value.equals(curAttr.getVal())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(Object value) {\n\t\treturn false;\n\t}", "public boolean hasValue() {\n return value_ != null;\n }", "public boolean containsValue(Object value) {\n return map.containsValue(value);\n }", "public boolean hasValue() {\n return valueBuilder_ != null || value_ != null;\n }", "public abstract boolean containsValue(V value);", "@Override\r\n\t\tpublic boolean contains(E value) {\n\t\t\treturn value == null;\r\n\t\t}", "public boolean contains(Node n) {\n\t\t\n\t\t//Validate n has a value\n\t\tif (n == null) { \n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//Node not present in hashmap\n\t\tif (!nodes.contains(n)) {\n\t\t\treturn false; \n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }", "public boolean contains(final Object value) {\n\t\tboolean found = false;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (elements[i].equals(value)) {\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif (indexOf(value) != -1) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn nextNode != null;\n\t\t}", "@Override\n public boolean contains(T item) {\n Node n = first;\n //walk through the linked list untill you reach the end\n while(n != null) {\n //see if the item exists in the set, if it does return true\n if(n.value.equals(item))\n return true;\n //move to the next node\n n = n.next;\n }\n //if not found return false\n return false;\n }", "public boolean hasValue(final Class<? extends T> clazz) {\n return data.stream().anyMatch(element -> clazz.isAssignableFrom(element.getClass()));\n }", "@Override\r\n\t\tpublic boolean hasNext() {\r\n\t\t\t\r\n\t\t\treturn currentNode.nextNode != null;\r\n\t\t}", "@Override\r\n\t\tpublic boolean hasNext() {\n\t\t\treturn nextNode != null;\r\n\t\t}", "@Override\r\n public boolean hasNext() {\r\n return node.next() != tail;\r\n }", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains(Object o) {\n\t\tNode<E> check = head;\r\n\t\twhile(check.getNext() != null) {\r\n\t\t\tif(check.getData().equals((E)o))\r\n\t\t\t\treturn true;\r\n\t\t\tcheck = check.getNext();\r\n\t\t}\r\n\t\treturn tail.getData().equals(o);\r\n\t}", "public boolean containsValue(Object value) {\r\n for (Map.Entry<K, V> pair : entrySet()) {\r\n // Optimize in case the Entry is one of our own.\r\n if (pair.getValue().equals(value) && ((CacheData<K, V>) pair).validateKey() != null) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Override\r\n public boolean hasNext() {\r\n return (next.data != null);\r\n }", "public boolean add(T value) {\n\t\tNode<T> last = null;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tlast = current;\n\t\t}\n\t\tif (last != null) {\n\t\t\tlast.next = new Node<>(value);\n\t\t} else {\n\t\t\tstart = new Node<>(value);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean contains(Object object) {\n T value = (T) object;\n boolean result = false;\n for (int index = 0; index < this.values.length; index++) {\n T data = (T) this.values[index];\n if (data != null) {\n if (value.equals(data)) {\n result = true;\n }\n }\n }\n\n return result;\n }", "private boolean isEqualList(List<Node> a, List<Node> b, boolean value){\n\t\tList<Node> tmp1 = new ArrayList<Node>(a);\n\t\tList<Node> tmp2 = new ArrayList<Node>(b);\n\t\tfor(Node n1 : tmp1){\n\t\t\tfor(Node n2 : tmp2){\n\t\t\t\tif((value && n1.isEqualNode(n2)) || (!value && n1.isSameNode(n2)))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void searchNode(int value) { \r\n int i = 1; \r\n boolean flag = false; \r\n //Node current will point to head \r\n Node current = head; \r\n \r\n //Checks whether the list is empty \r\n if(head == null) { \r\n System.out.println(\"List is empty\"); \r\n return; \r\n } \r\n while(current != null) { \r\n //Compare value to be searched with each node in the list \r\n if(current.data == value) { \r\n flag = true; \r\n break; \r\n } \r\n current = current.next; \r\n i++; \r\n } \r\n if(flag) \r\n System.out.println(\"Node is present in the list at the position : \" + i); \r\n else \r\n System.out.println(\"Node is not present in the list\"); \r\n }", "@Override\n public boolean hasNext() {\n return nextNode != null;\n }", "public boolean contains(T element) {\n\t\tif (head == null)\n\t\t\treturn false;\n\t\tNode<T> curNode = head;\n\t\twhile (curNode != null) {\n\t\t\tif (curNode.value.equals(element))\n\t\t\t\treturn true;\n\t\t\tcurNode = curNode.next;\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains(Object o) {\n\t\tNode p;\n\t\tint k;\n\n\t\tif (o != null) {\n\t\t\tfor (k = 0, p = mHead.next; k < mSize; p = p.next, k++)\n\t\t\t\tif (o.equals(p.data))\n\t\t\t\t\treturn true;\n\t\t} else {\n\t\t\tfor (k = 0, p = mHead.next; k < mSize; p = p.next, k++)\n\t\t\t\tif (p.data == null)\n\t\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "boolean hasVal();", "boolean hasVal();", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "@Override\n public boolean hasNext() {\n\n return curr.nextNode != null && curr.nextNode != tail;\n }", "public void searchNode(int value) {\n int i = 1;\n boolean flag = false;\n Node current = head;\n if (head == null) {\n System.out.println(\"List is empty\");\n return;\n }\n while (current != null) {\n if (current.data == value) {\n flag = true;\n break;\n }\n current = current.next;\n i++;\n }\n if (flag)\n System.out.println(\"Node is present in the list at the position::\" + i);\n else\n System.out.println(\"Node is note present in the list\");\n }", "public boolean contains(Item item){\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perfrom contains because the DList instance is empty!\");\n for(Node temp = first.next; temp.next!=null; temp=temp.next)\n if(temp.data.equals(item)) return true;\n return false; \n }", "public boolean contains(E obj)\n {\n Node m = head;\n while( m.getNext() != null)\n {\n m = m.getNext();\n if(m.getValue().equals(obj))\n {\n return true; \n }\n }\n return false;\n }", "public boolean containsValue(Object v) {\n/* 119 */ return false;\n/* */ }", "public boolean isEmptyValue() {\r\n if(value == null){\r\n return true;\r\n }\r\n if(value.isEmpty()){\r\n return true;\r\n }\r\n if(value.size() == 1){\r\n if(value.get(0)!=null){\r\n return value.get(0).length() == 0;\r\n }else{\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private boolean isJunctionValueNodeForChance(Node chanceOrDecNode, Node valueNode) {\n NodeList childrenUtils;\n\n childrenUtils = chanceOrDecNode.getChildrenNodes();\n return diag.areAscendantsOf(valueNode, childrenUtils);\n }", "public boolean search(int val) {\n\n\t\tDLNode n = head;\n\t\tif (n == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tint nc = nodeCounter();\n\n\t\tfor (int i = 0; i < nc; i++) {\n\n\t\t\tif (n.val == val) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (n.val == Integer.MIN_VALUE) {\n\t\t\t\tboolean check = n.list.search(val);\n\t\t\t\tif (check) {\n\t\t\t\t\treturn check;\n\t\t\t\t}\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t\treturn false;\n\n\t}", "public boolean isValueExists(String key, String value) {\n\t\tSystem.out.println(\"Checking for value : \" + value + \" existance\");\n\t\tboolean valueExist = false;\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\tif (dictMap.containsKey(key)) {\n\t\t\t\tList<String> membersList = dictMap.get(key);\n\t\t\t\tif (membersList.contains(value))\n\t\t\t\t\tvalueExist = true;\n\t\t\t}\n\t\t}\n\t\treturn valueExist;\n\t}", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif(indexOf(value)!=-1)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean search(int value)\n{\n if(head==null)\n return false;\nelse\n{\n Node last=head;\n while(last.next!=null)\n{\n if(last.data==value)\n return true;\n\nlast=last.next;\n}\nreturn false;\n}\n}", "public boolean contains(Node node) {\n\t\tk key = (k) node.getKey();\n\t\tv value = (v) node.getValue();\n\t\treturn contains(key, value);\n\t}", "private boolean isJunctionValueNodeForDecision(Node chanceOrDecNode, Node valueNode) {\n NodeList influentialUtils;\n NodeList negativeUtilities;\n\n influentialUtils = chanceOrDecNode.getChildrenNodes();\n negativeUtilities = obtainNegativeUtilityNodes();\n influentialUtils.merge(negativeUtilities);\n return diag.areAscendantsOf(valueNode, influentialUtils);\n }", "public boolean hasNext() {\n\t\treturn next_node == null;\n\t}" ]
[ "0.80932266", "0.7392105", "0.73140955", "0.726488", "0.7213613", "0.7121381", "0.70232224", "0.69817173", "0.6825309", "0.6784568", "0.6722364", "0.6588937", "0.65777045", "0.65554535", "0.65420985", "0.6541202", "0.6467096", "0.6466332", "0.6439431", "0.643128", "0.64273447", "0.6386913", "0.63661027", "0.63615817", "0.6352381", "0.63318497", "0.6268724", "0.6266452", "0.6253544", "0.6248982", "0.6243295", "0.6238688", "0.6238293", "0.62355024", "0.62353474", "0.62346125", "0.62307054", "0.62224317", "0.6198539", "0.6197329", "0.61742157", "0.61533606", "0.614619", "0.6127234", "0.61268765", "0.61161697", "0.61096454", "0.6101973", "0.60910374", "0.60655564", "0.6063101", "0.6062057", "0.60383165", "0.6016167", "0.6000964", "0.5994772", "0.5992224", "0.598077", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.59726924", "0.5963784", "0.5958634", "0.5937763", "0.59325516", "0.5924831", "0.59204674", "0.59078693", "0.5891967", "0.5890205", "0.58853894", "0.5872371", "0.5845999", "0.5845999", "0.58404076", "0.5835049", "0.58188456", "0.5801249", "0.5793245", "0.5782903", "0.57792985", "0.5763578", "0.57610345", "0.57566786", "0.5756407", "0.5754019", "0.57504594", "0.5748473", "0.5744513" ]
0.7624744
1
getter method that gets the size of the LinkedList.
public int returnSize() { return length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int sizeOfLinkedList(){\n\t\treturn size;\n\t}", "@Override\n public int size() {\n\n Node nodePointer = listHead;\n int size = 0;\n while (nodePointer != null) {\n size += 1;\n nodePointer = nodePointer.next;\n }\n return size;\n }", "public int getSize() {\n\t\tint size = 0;\n\t\tNode current = head;\n\t\twhile (current != null) {\n\t\t\tcurrent = current.next;\n\t\t\tsize++;\n\t\t}\n\t\treturn size;\n\t}", "@Override\n public int size() {\n if(isEmpty()){ //if list is empty, size is 0\n return 0;\n }\n /*int size = 1; //if list is not empty, then we have at least one element in it\n DLNode<T> current = last; //a reference, pointing to the last element\n while(current.prev != null){\n current = current.prev;\n size++;\n }*/\n \n int count = 0;\n DLNode<T> p = first;\n while (p != null){\n count++;\n p = p.next;\n }\n //return size;\n return count;\n }", "public int size() {\n//\t\tint rtn = 0;\n//\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n//\t\t\trtn++;\t\n//\t\t}\n//\t\treturn rtn;\n\t\treturn mySize;\n\t}", "public int size() {\n ListNode current = front;\n int size = 0;\n while (current != null) {\n size += 1;\n current = current.next;\n }\n return size;\n }", "public int length() {\n int ret_val = 1;\n LinkedList i = this;\n\n while (i.next != null) {\n i = i.next;\n ret_val++;\n }\n return ret_val;\n }", "public int getSize() {\n\t\tint size=0;\n\t\tfor(Node<E> p=head.next;p!=null; p=p.next){\n\t\t\tsize++;\n\t\t}\n\t\treturn size;\n\t}", "int size()\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Initialize the counter to -1\n\t\tint count = -1;\n\t\t\n\t\t//Count the number of elements of the Linked List\n\t\twhile(ref != null)\n\t\t{\n\t\t\tcount++;\n\t\t\tref = ref.next;\n\t\t}\n\t\t\n\t\t//Return the number of elements as the size of the Linked List\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn recSize(head);\n\t}", "public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }", "public int size() {\n\r\n int size = 0;\r\n for(Node n = head; n.getNext() != null; n = n.getNext()) {\r\n size++;\r\n }\r\n\r\n return size;\r\n }", "public int size() {\n\t\tint rtn = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\trtn++;\n\t\t}\n\t\tthis.mySize = rtn;\n\t\treturn rtn;\n\t}", "public int size() {\n if (head == null) {\n return 0;\n } else {\n int size = 0;\n while (head.getNext() != null) {\n head = head.getNext();\n size++;\n }\n return size;\n }\n }", "public int size() {\n\t\tint size = 0;\n\t\tnode tmp = head;\n\t\twhile(tmp != null) {\n\t\t\tsize++;\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn size;\n\t}", "public int size(){\n if (head == null) {\n // Empty list\n return 0;\n } else {\n return head.size();\n }\n }", "int size() {\n if (this.next.equals(this)) {\n return 0;\n }\n return this.next.size(this);\n }", "public int size()\n { \t\n \t//initialize a counter to measure the size of the list\n int sizeVar = 0;\n //create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //update counter while there are still nodes\n while(localNode != null)\n {\n sizeVar += 1;\n localNode = localNode.getNext();\n }\n \n return sizeVar;\n }", "@Override\n public Integer getSize() {\n Integer size = 0;\n Node<T> tempNode = this.head;\n while(tempNode.getNext() != null){\n tempNode = tempNode.getNext();\n size++;\n }\n return size;\n }", "public int getSize()\n {\n return ll.getSize();\n }", "public int size()\n {\n \tDNode<E> temp=first;\n \tint count=0;\n \twhile(temp!=null)\t\t//Iterating till the end of the list\n \t{\n \t\tcount++;\n \t\ttemp=temp.next;\n \t}\n \treturn count;\n }", "public int size() {\n // recursive approach seems more perspicuous\n if( headReference == null) return 0;\n else return size( headReference);\n }", "public int size() {\n Node<T> temp = head;\n int count = 0;\n while (temp != null)\n {\n count++;\n temp = temp.next;\n }\n return count;\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public int size() {\n\t\tint count = 0;\n\t\tListNode current = front;\n\t\twhile (current != null) {\n\t\t\tcurrent = current.next;\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public int size()\n {\n Node n = head.getNext();\n int count = 0;\n while(n != null)\n {\n count++; \n n = n.getNext();\n }\n return count;\n }", "public int size() {\n \t\n \tint i = 0;\n \t\n \twhile(this.front != null) {\n \t\ti = i+1;\n \t\tthis.front = this.front.next; \n \t}\n \t\n \treturn i;\n \t\n }", "public int size() {\r\n\t\t\tint size = 0;\r\n\t\t\tListNode counter = header;\r\n\t\t\twhile (counter != null) {\r\n\t\t\t\tsize++;\r\n\t\t\t\tcounter = counter.next;\r\n\t\t\t}\r\n\t\t\treturn size;\r\n\t\t}", "public int size()\n\t{\n\t\treturn listSize;\n\t}", "public int size()\n {\n int result = 0;\n SingleNode current = head;\n \n while (current != null)\n {\n result++;\n current = current.getNext();\n }\n return result;\n }", "public int size() {\n return headReference == null ? 0 : headReference.size();\n }", "public int size() {\n\t\t//if the head isn't null\n\t\tif (head != null) {\n\t\t\t//create a node that's set to the head\n\t\t\tLinkedListNode<T> node = head;\n\t\t\t//set number of nodes to 0\n\t\t\tint numNodes = 0;\n\n\t\t\t//while the node isn't null\n\t\t\twhile (node != null) {\n\t\t\t\t//increment the number of nodes\n\t\t\t\tnumNodes++;\n\t\t\t\t//set node to the next node\n\t\t\t\tnode = node.getNext();\n\t\t\t}\n\t\t\t//return the number of nodes\n\t\t\treturn numNodes;\n\t\t}\n\t\t//otherwise, the head is null meaning the list is empty\n\t\telse {\n\t\t\t//size is 0 (empty)\n\t\t\treturn 0;\n\t\t}\n\t}", "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "public int getSize()\n\t{\n\t\t// returns n, the number of strings in the list: O(n).\n\t\tint count = 0;\n \t\tnode p = head; \n\t\twhile (p != null)\n \t\t{\n \t\tcount ++;\n \t\tp = p.next;\n \t\t}\n \t\treturn count;\n\t}", "public int size()\n\t{\n\t\tint count = 0;\n\t\tSinglyLinkedListNode node = head;\n\t\twhile(head != null)\n\t\t{\n\t\t\tcount++;\n\t\t\tif(node.getNext() != null)\n\t\t\t{\n\t\t\t\tnode = node.getNext();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public int size() {\n if(head == null) {\n return 0;\n }\n \n int i = 1;\n Node<T> node = head;\n while(node.getNext() != null) {\n node = node.getNext();\n i++;\n }\n return i;\n }", "@Override\n public int size()\n {\n int numLinks = 0;\n Node currNode = this.head.next; \n while(currNode.next != null)\n {\n numLinks++;\n currNode = currNode.next;\n }\n return numLinks;\n }", "public int length(){\n\t\tint cnt = 0;\n\t\tNode temp = this.head;\n\t\twhile(temp != null){\n\t\t\ttemp = temp.next;\n\t\t\tcnt++;\n\t\t}\n\t\treturn cnt;\n\t}", "public int length() {\n\tif (next == null) return 1;\n\telse return 1 + next.length();\n }", "public int length(){\r\n int counter = 0;\r\n ListNode c = head;\r\n while(c != null){\r\n c = c.getLink();\r\n counter++;\r\n }\r\n return counter;\r\n }", "public int size(){\n\t\tNode<E> current = top;\n\t\tint size = 0;\n\t\t\n\t\twhile(current != null){\n\t\t\tcurrent = current.next;\n\t\t\tsize++;\n\t\t}\n\t\t\n\t\treturn size;\n\t}", "public int length()\n {\n int count = 0;\n Node position = head;\n\n while(position != null)\n {\n count++;\n position = position.nLink;\n } // end while\n\n return count;\n }", "public int getSize () {\n return this.list.size();\n }", "public int size() {\n\t\t\n\t\tint count = 0;\n\t\t\n\t\t// Iterate through list and increment count until pointer cycles back to head (tail.next)\n\t\tfor (Node curr = head; curr == tail.next; curr = curr.next) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\treturn count;\n\t}", "public int getSize() \r\n {\r\n return list.size();\r\n }", "public int get_size();", "public int get_size();", "public int size()\n\t{\n\t\tint count = 0;\n\t\tif(this.isEmpty())\n\t\t\treturn count;\n\t\telse\n\t\t{\n\t\t\t// Loop through and count the number of nodes.\n\t\t\tNode<T> curr = head;\t\n\t\t\twhile(curr != null)\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\tcurr = curr.getNext();\n\t\t\t}\n\t\t\treturn count;\n\t\t}\n\t}", "public int size() {\n if (first.p == null) return 0;\n int counter = 1;\n Node n = first;\n while (!n.next.equals(first) && counter != 0) {\n counter++;\n n = n.next;\n }\n return counter;\n }", "@Override\n public int size() {\n return wordsLinkedList.size();\n }", "int node_size()\n {\n Node temp =headnode;\n int count=0;\n while (temp.next!=null)\n {\n count++;\n temp=temp.next;\n }\n return count;\n }", "public int getSize() {\n return list.size();\n }", "public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int getSize()\n {\n return pList.size();\n }", "public int size() {\n\t\tint count = 0;\n\t\tfor (Node<T> current = start; current == null; current = current.next) {\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size () {\r\n return this.size;\r\n }", "@Contract(pure = true)\n public static <E> int listLength(Node<E> head) {\n Node<E> cursor;\n int answer;\n\n answer = 0;\n for (cursor = head; cursor != null; cursor = cursor.getNext()) { answer++; }\n return answer;\n }", "public long size() {\n return links.length * links.length;\n }", "public int getListSize() {\n return listSize;\n }", "public int getLength()\n\t{\n\t\tDNode tem=first;\n\t\tint length=0;\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\tlength=length+1;\n\t\t\ttem=tem.nextDNode;\n\t\t}\n\t\tif(first!=null)\n\t\t\tlength=length+1;\n\t\treturn length;\n\t}", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size()\r\n {\r\n return size;\r\n }", "public int size() {\n int found = 0;\n Node<T> it = head.get();\n // Do a raw count.\n for (int i = 0; i < capacity; i++) {\n if (!it.free.get()) {\n found += 1;\n }\n it = it.next;\n }\n return found;\n }", "public int size()\n {\n return this.size;\n }", "public int size() {\n return this.n;\n }", "@Override\n public int size()\n {\n return next;\n }", "public int size()\n {\n return this.size;\n }", "public int size() {\n\t\treturn list.size();\n\t}", "public int size()\r\n { \r\n return numNodes;\r\n }", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public int size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int size()\n {\n if(_list!=null)\n return _list.size();\n return 0;\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\r\n return size;\r\n }", "public int ListLength(){\n int j = 0;\n // Get index of the first element with value\n int i = StaticLinkList[MAXSIZE-1].cur;\n while (i!=0)\n {\n i = StaticLinkList[i].cur;\n j++;\n }\n return j;\n }", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }", "public int size()\n {\n return size;\n }", "public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }", "public int size()\n {\n return size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int size() {\n return this.size;\n }", "public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }", "public int size() {\n\t return list.size();\n }", "public int size() {\r\n return size;\r\n }", "public int size() {\n // DO NOT MODIFY!\n return size;\n }", "public int size()\n\t{\n\t\treturn list.size();\n\t}" ]
[ "0.88281864", "0.8132139", "0.80767727", "0.8066676", "0.80474526", "0.80321276", "0.8032034", "0.8005826", "0.79799676", "0.79688", "0.79512626", "0.792954", "0.7914197", "0.79099876", "0.78999925", "0.78959954", "0.78681684", "0.7863424", "0.7793718", "0.7764154", "0.775008", "0.77260935", "0.7712908", "0.7698071", "0.76971674", "0.7695519", "0.76808447", "0.7671148", "0.76153636", "0.7583405", "0.7569344", "0.7567371", "0.7553558", "0.7551375", "0.75443476", "0.75160503", "0.7508553", "0.7507615", "0.7493029", "0.7484515", "0.7447157", "0.7437873", "0.74327165", "0.74154806", "0.74010026", "0.73767114", "0.73767114", "0.73538744", "0.73518735", "0.7347293", "0.734376", "0.7334562", "0.73252857", "0.73097444", "0.72874045", "0.72779745", "0.7267194", "0.72562116", "0.72398233", "0.7238527", "0.7237182", "0.7235954", "0.7235954", "0.7235954", "0.72272736", "0.72216976", "0.72156876", "0.7208271", "0.72036535", "0.71953326", "0.7176152", "0.7172788", "0.7172788", "0.71713096", "0.7168171", "0.71679384", "0.71679384", "0.71679384", "0.71679384", "0.71644825", "0.716364", "0.716364", "0.716364", "0.716364", "0.7163342", "0.7160338", "0.7157775", "0.7157775", "0.7157775", "0.7157775", "0.7157775", "0.7157775", "0.7157775", "0.7157775", "0.7157775", "0.7157775", "0.7154631", "0.7154491", "0.7153257", "0.71507657", "0.71462196" ]
0.0
-1
This method returns the data of a node at a given index
public ListNode getNodeAtIndex(int linkedListIndex) { int indexRunner = 0; int index = linkedListIndex; ListNode runner = firstNode; while (indexRunner < index && runner != null) { indexRunner++; runner = runner.next; } if (runner != null) { return runner; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getDataFromGivenIndex(int index){\n //Index validation\n checkIndex(index);\n return getNodeFromGivenIndex(index).data;\n }", "public @Override E get(int index) {\n \treturn getNode(index).data;\n }", "int getData(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 0);\n\t}", "public Object get(int index) {\n isValidIndex(index);\n return getNode(index).data;\n }", "public T get(int index) {\r\n return getNodeAtIndex(index).getData();\r\n }", "public int get(int index) {\n\t\treturn nodeAt(index).data;\n\t}", "public Node<E> get(int index){\r\n if (index < 0 || index >=theData.size() ) return null;\r\n return theData.get(index);\r\n }", "public E get(int index) {\n return this.getNodeAt(index).getData();\n }", "public E get(int index) {\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\treturn getNode(index).data;\n\t}", "public Object get(int index) {\n Node answer = first;\n for (int i = 0; i < index; i++) {\n answer = answer.next;\n }\n return answer.data;\n }", "E getData(int index);", "public AnyType get( int index ) throws IndexOutOfBoundsException {\n \n return getNode( index ).getData();\n \n }", "public T getData(int index){\n if(index < 0 || index >= data.size())\n return null;\n\n //give back the data\n return data.get(index);\n }", "public E get ( int index)\n {\n if (index < 0 || index >= size) {\n throw new\n IndexOutOfBoundsException(Integer.toString(index));\n }\n Node<E> node = getNode(index);\n return node.data;\n }", "public int getData(int index) {\n return data_.get(index);\n }", "public E get(int index) {\n\t\tcheckBounds(index);\r\n\t\treturn getNode(index).getData();\r\n\t}", "public int getData(int index) {\n return data_.get(index);\n }", "public int get(int index) {\n if(index>-1 && index<len) {\n SingleNode iSingleNode = head;\n for(int i=0; i<index; i++) {\n\n iSingleNode = iSingleNode.next;\n }\n return iSingleNode.data;\n }\n return 0;\n }", "public Object get(final int index) {\n if (checkIfInvalidIndex(index)) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> iterator = head;\n for (int currentIndex = 0; currentIndex < index; currentIndex++) {\n iterator = iterator.getNext();\n }\n return iterator.getData();\n }", "public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}", "public U get(int index) throws IndexOutOfBoundsException {\n\t\t\tif (index >= mLength || index < 0) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Supplied index is invalid.\");\n\t\t\t}\n\n\t\t\treturn getNodeAtIndex(index).getValue();\n\t\t}", "public Object get( int index )\n {\n\treturn _data[index];\n }", "public T get(int index) {\n if (index == 0) {\n return head.data;\n } else {\n Node<T> currentNode = head;\n for (int i = 0; i < index; i++) {\n if (currentNode.next != null) {\n currentNode = currentNode.next;\n } else {\n return null;\n }\n }\n return currentNode.data;\n }\n }", "public Object get(int index) {\n if (index >= _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode current = start;\n for (int i = 0; i<index; i++ ) {\n current = current.next;\n }\n return current.data;\n }", "public abstract Object \t\tgetNodeValue(int nodeIndex,int nodeColumn);", "public T get(int index) {\n\t\tint at = 1;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (at == index) {\n\t\t\t\treturn current.value;\n\t\t\t}\n\t\t\tat++;\n\t\t}\n\t\t// We couldn't find it, throw an exception!\n\t\tthrow new IndexOutOfBoundsException();\n\t}", "@Override\n\tpublic String getElementAt(int index) {\n\t\treturn datas.get(index);\n\t}", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "public T get(int index) {\n if (index < 0 || index > size - 1) {\n throw new IndexOutOfBoundsException(\"Cannot access data outside \"\n + \"the size of the data structure(null)\");\n } else {\n if (index == 0) {\n return head.getData();\n } else if (index == size - 1) {\n return tail.getData();\n }\n Object[] myarray = this.toArray();\n return (T) myarray[index];\n }\n }", "public E get(int index)\n { \n if(index >= size() || index < 0)\n {\n return null; \n }\n Node<E> n = getNode(index);\n return n.getValue();\n }", "public int[] getData(int index) {\n // retrieve the length \n int l = theList.get(index);\n // now retrieve the characters for this data block\n int data[] = new int[l];\n for(int i=0; i<l; i++) {\n data[i] = theList.get(index+1+i);\n }\n return data;\n }", "public Node getNode(int index)\r\n {\r\n\tif (nodes == null)\r\n\t getNodes();\r\n return nodes[index];\r\n }", "public int get(int index) {\n\t checkIndex(index);\n\t return elementData[index];\n\t }", "@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }", "io.netifi.proteus.admin.om.Node getNodes(int index);", "@Override\n public E get(int index) {\n if (index < 0 || index >= size()) {\n throw new IndexOutOfBoundsException(\"Index range : 0 - \" + (size() - 1));\n }\n Node n = this.head;\n int i = 0;\n while (n != null) {\n if (i == index) {\n return (E) n.getData();\n }\n i++;\n n = n.next;\n }\n return null;\n }", "@Override\n\tpublic T get(int index) {\n\t\tif (index >= 0 && index < size) {\n\t\t\treturn data[index];\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public T get(final int index) {\n this.checkIndex(index);\n return this.data[index];\n }", "public T get(int index) {\r\n if (index==0) {\r\n return getFront();\r\n }\r\n else if (index==length()-1)\r\n return getBack();\r\n else if (index>=length())\r\n return null;\r\n else {\r\n ListNode currentNode = head; \r\n for(int i=1; i<=index; i++)\r\n currentNode = currentNode.getLink();\r\n return (T) currentNode.getData(); \r\n }\r\n }", "public T get(int listIndex) {\n int treeIndex = searchIndex(listIndex);\n return this.getHelper(treeIndex).data;\n }", "public String getElementAt(int index)\n\t{\n\t\t// returns the string at the specified index (0.. n-1): O(n).\n\t\tint count = 0;\n\t\tnode p = head;\n\t\twhile(p.next != null&&count<index)\n\t\t{\n\t\t\tcount++;\n\t\t\tp=p.next;\n\t\t}\n\t\treturn p.getData();\n\t}", "public com.google.protobuf.ByteString getData(int index) {\n return data_.get(index);\n }", "public com.google.protobuf.ByteString getData(int index) {\n return data_.get(index);\n }", "@Override\n public Object getValueAt( Object node, int i )\n {\n return node;\n }", "public com.google.protobuf.ByteString getData(int index) {\n return data_.get(index);\n }", "public com.google.protobuf.ByteString getData(int index) {\n return data_.get(index);\n }", "public E get(int index) {\r\n\t\tif (indices.get(index) == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(index).data;\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic T get(int idx) throws IndexOutOfBoundsException {\n\t\tboolean found = false;\n\t\tint n = 0;\n\t\tListNode current = head;\n\t\t\n\t\tif (idx < 0 || idx > size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse {\n\t\t\twhile (!found) {\n\t\t\t\tif (n == idx) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\treturn current.datum;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null; // Due to index checking, this should never be reached.\n\t}", "com.google.protobuf.ByteString getData(int index);", "com.google.protobuf.ByteString getData(int index);", "public T get(int index) {\n\t\tif (index < 0 || index >= size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tNode<T> curNode = head;\n\t\twhile (index != -1) {\n\t\t\tif (index == 0) {\n\t\t\t\treturn curNode.value;\n\t\t\t}\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tthrow new ArrayIndexOutOfBoundsException();\n\t}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getNode(int index);", "public long [] getData(Long index);", "@Override\n public T get(int index){\n if(isEmpty()){\n return null;\n } else{ \n DLLNode<T> current = first;\n for(int i = 0; i < index - 1; i++){\n current = current.successor;\n }\n return current.element;\n }\n }", "public Object get(int index)\r\n\t// post: returns the element at the specified position in this list.\r\n\t{\n\t\tif (index <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\tNode current = head.getNext();\r\n\t\tfor (int i = 1; i < index; i++) {\r\n\t\t\tif (current.getNext() == null)\r\n\t\t\t\treturn null;\r\n\r\n\t\t\tcurrent = current.getNext();\r\n\t\t}\r\n\t\treturn current.getData();\r\n\t}", "public NodeList<T> getNode(int index){\n if(index < 0){ throw new IndexOutOfBoundsException(); }\n\n NodeList<T> f = getFirst();\n\n// for(int i = 0; (f != null) && (i < index); i++){\n// f = f.getNext();\n// }\n\n while ((f != null) && (index > 0)){\n index--;\n f = f.getNext();\n }\n\n if(f == null){ throw new IndexOutOfBoundsException(); }\n return f;\n }", "public E get(int index){\n\t\t\n\t\tif (index <= 0){\t\t// the linked list index starts at 0, not 1\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tNode current = head.getNext();\n\t\t\n\t\tfor (int i = 1; i < index; i ++){\n\t\t\tif (current.getNext() == null){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\treturn current.getData();\n\t}", "public int getDataMemory(int index)\n {\n int retValue = 0;\n try { retValue = data_memory[index].intValue(); }\n catch (ArrayIndexOutOfBoundsException OOB) { }\n return retValue;\n }", "public FSMNode get(int index) {\n return get(root, index);\n }", "@Override\n public T get(int index){\n if(isEmpty() || index > size() || index < 0){//if list is empty or given index is invalid, provide error message\n throw new IndexOutOfBoundsException();\n }\n \n DLNode<T> current = first;//a reference pointing to the first node\n for (int i = 0; i < index; i++) {//find the required index using a loop\n current = current.next;\n }\n return current.elem;//return element at the specified index\n }", "@Override\n public Object getElementAt(int index) {\n Object resultado = null;\n resultado = nodos.get(index).getCentroTrabajo().getNombre();\n \n return resultado;\n }", "@Override\r\n\tpublic E get(int index) throws IndexOutOfBoundsException {\r\n\t\tif (index < 0 || index >= size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\tE result = null;\r\n\t\tif (front != null && index == 0) {\r\n\t\t\treturn front.data;\r\n\t\t} \r\n\t\tListNode current = front;\r\n\t\twhile (index > 0) {\r\n\t\t\tcurrent = current.next;\r\n\t\t\tindex--;\r\n\t\t\t}\t\t\t\r\n\t\t//check not beyond end of list\r\n\t\t\tif (current != null) {\t\t\t\t\r\n\t\t\t\tresult = current.data;\r\n\t\t\t}\r\n\t\treturn result;\r\n\t}", "int get(int index)\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Initialize the counter to -1\n\t\tint count = -1;\n\t\t\n\t\t//Traverse the Linked List until the Node with position index is reached\n\t\twhile(count != index)\n\t\t{\n\t\t\tcount++;\n\t\t\tref = ref.next;\n\t\t}\n\t\t\n\t\t//Return the value of the Node having position index\n\t\treturn ref.value;\n\t}", "@Override\n public E get(int index) throws IndexOutOfBoundsException\n {\n if(index > size() - 1 || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n return currNode.getElement(); \n }", "public int get(int index) {\n if (index < 0 || index >= size) return -1;\n Node cur = dummyHead.next; //头节点\n for (int i = 0; i < index; i++) {\n cur = cur.next;\n }\n return cur.val;\n }", "public Object get(int index)\n // returns the element at the specified position in this list.\n {\n if (index <= 0)\n return null;\n \n CrunchifyNode crunchifyCurrent = head.getNext();\n for (int i = 1; i < index; i++) {\n if (crunchifyCurrent.getNext() == null)\n return null;\n \n crunchifyCurrent = crunchifyCurrent.getNext();\n }\n return crunchifyCurrent.getData();\n }", "public TreeNode getChildAt(int i) { return data[i]; }", "public abstract Object getValueAt(int nodeIndex,int nodeRow,int nodeColumn);", "public Object get(int index) \r\n throws ListIndexOutOfBoundsException {\r\n\t\t\t\t\tif (index >= 0 && index <= numItems) { // If statement to catch out of bounds exception\r\n\t\t\t\t\t\t Node curr = head; // states curr is at head posistion\r\n\t\t\t\t\t\t for (int i = 1; i < index; i++) { // for loop to get to the current posistion that is equivelnt to i\r\n\t\t\t\t\t\t\t curr = curr.getNext();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t return curr.getItem(); // returns item in current node\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t throw new ListIndexOutOfBoundsException (\"List index out of bounds\"); // else throws an index out of bounds exception\r\n\t\t\t\t\t}\r\n }", "double clientData(final int index, final int data);", "private CommunicationLink getNodeByIndex(int index)\n {\n if (allNodes.size() == 0)\n {\n return null;\n }\n try\n {\n return allNodes.get(nodeIds.get(index));\n } catch (Exception e)\n {\n return null;\n }\n }", "abstract public Object getValue(int index);", "public long getNodeIndex();", "private DoublyLinkedNode<E> getNodeAt(int index) {\n if (index >= 0 && index <= size && !this.isEmpty()) {\n DoublyLinkedNode<E> iter = head.getNext();\n for (int i = 0; i < index; i++) {\n iter = iter.getNext();\n }\n\n return iter;\n }\n else {\n throw new IndexOutOfBoundsException();\n }\n }", "public E get(int index){\n if (index < 0 || index >= size){\n throw new ArrayIndexOutOfBoundsException(index);\n }\n return theData[index];\n }", "public Object getValue(int index);", "public E get(int index) {\n\t\tresetIterator();\n\t\tif (index < 0 || index >= size) {\n\t\t\treturn null;\n\t\t}\n\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tnext();\n\t\t}\n\t\treturn iterator.data;\n\t}", "@Override\r\n\tpublic double getValue(int index) {\n\t\tif (data==null) return 0;\r\n\t\t\r\n\t\tdouble d = 0;\r\n\t\tint begin=index+pos;\r\n\t\tif (begin<0) begin=0;\r\n\t\tif (begin>data.size()-1) begin = data.size()-1;\r\n\t\td = data.get(begin).getOpen();\r\n\t\t\r\n\t\treturn d;\r\n\t}", "public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}", "@Override\n public T get(int index) {\n return indexCheck(index) ? (T) data[index] : null;\n }", "public Object get(int index) {\r\n return entry(index).element;\r\n }", "private Node<AnyType> getNode(int index) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n * Your implementation MUST do the following link traversals:\n * \n * 1) If the index location is <= floor( size/2 ), start traversal from head node\n * 2) if the index location is > floor( size/2), start traversal from tail node\n * \n * Your code will be reviewed by instructor to ensure the two conditions\n * are fully meet by your solution.\n * \n */\n \n if ( index < 0 || index >= size ) {\n \n throw new IndexOutOfBoundsException();\n \n }\n \n Node<AnyType> node = null;\n \n if ( index <= Math.floor( ((double)size)/2.0 ) ) {\n \n node = headNode;\n \n for ( int i=1; i<=index; i++ ) {\n \n node = node.getNextNode();\n \n }\n \n } else {\n \n node = tailNode;\n \n for ( int i=(size-1); i>index; i-- ) {\n \n node = node.getPreviousNode();\n \n }\n \n }\n \n return node;\n \n }", "entities.Torrent.NodeId getNodes(int index);", "public CoreRenderNodeDesc get(long index) {\n return new CoreRenderNodeDesc(CoreJni.getInCoreRenderNodeDescArrayView(this.agpCptr, this, index), true);\n }", "Nda<V> getAt( int i );", "public com.rpg.framework.database.Protocol.MonsterState getData(int index) {\n return data_.get(index);\n }", "public T get(int index){\n if(!rangeCheck(index)){\n return null;\n }\n return (T)data[index];\n }", "com.rpg.framework.database.Protocol.MonsterState getData(int index);", "public NodeRef getDataNode(String ip) {\r\n\t\treturn nodeMap.get(ip);\r\n\t}", "protected ArrayNode<T> getNode(int idx){\r\n\t\tif ((idx < 0)||(idx>nodeCount()-1))\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t//loops through nodes to find\r\n\t\tArrayNode<T> current = beginMarker.next;\r\n\t\tfor(int i=0; i<idx; i++){\r\n\t\t\t current = current.next;\r\n\t\t}\r\n\t\treturn current;\r\n\t}", "public double[] getData(int index) {\n\t\treturn m_Data[index];\n\t}", "@Override\n\tpublic Object retrieve(int index) throws IndexOutOfBoundsException {\n\n\n\t\t// Check for valid size\n\t\tif (index < 0 || index >= this.size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\t// set the position of the current node to the head\n\t\tNode current = head;\n\n\t\t// move through the list\n\t\tif (index == 0) {// head\n\t\t\treturn head.getElement();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(i == index) {\n\t\t\t\treturn current.getElement();\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.getNext(); // set the node to the next node\n\t\t}\n\n\t\t// return the element in the node\n\t\treturn null;\n\t}", "public Object get(int index);", "public Object get(int index);", "Map<String,String> getNodeData(T node);", "@Override\n public final JsonNode get(int index) { return null; }", "public com.rpg.framework.database.Protocol.MonsterState getData(int index) {\n if (dataBuilder_ == null) {\n return data_.get(index);\n } else {\n return dataBuilder_.getMessage(index);\n }\n }", "db.fennec.proto.FDataEntryProto getData(int index);", "public int getElement(int index) {\r\n\t\t//Defensive\r\n\t\tif (index < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index less than zero\");\r\n\t\t}\r\n\t\tif (index >= getLength()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index out of upper bound\");\r\n\t\t}\r\n\t\tif (getLength() <= 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"The array does not yet exist\");\r\n\t\t}\r\n\t\t\r\n\t\treturn getNodeAt(index).value;\r\n\t}", "public float get(int index) {\r\n RangeCheck(index);\r\n return elementData[index];\r\n }" ]
[ "0.8156549", "0.80566114", "0.7986764", "0.79027885", "0.7798415", "0.77436525", "0.75045574", "0.7459944", "0.7432847", "0.7429427", "0.73714703", "0.7243175", "0.72315603", "0.72313505", "0.718601", "0.7177268", "0.71351624", "0.7125584", "0.70109695", "0.69467133", "0.6945049", "0.6919821", "0.68917793", "0.68864954", "0.6756288", "0.67362005", "0.6678661", "0.66512644", "0.6627622", "0.66001064", "0.65706277", "0.6538632", "0.65277785", "0.6521682", "0.650084", "0.64907885", "0.64779776", "0.64777875", "0.64609426", "0.644074", "0.64316165", "0.6423658", "0.6423199", "0.6423199", "0.6401123", "0.6386581", "0.6386581", "0.63854474", "0.6381987", "0.6368783", "0.6368783", "0.6365553", "0.6361331", "0.63433105", "0.6331891", "0.6325619", "0.6325429", "0.6322313", "0.6315338", "0.6311361", "0.63048595", "0.6298025", "0.62914294", "0.6283808", "0.6275413", "0.62678546", "0.62629247", "0.62582105", "0.6251736", "0.6242845", "0.62347025", "0.62287974", "0.62285084", "0.62215674", "0.622101", "0.6213799", "0.6208629", "0.62015617", "0.6199334", "0.61918795", "0.61805993", "0.61763346", "0.61755514", "0.61725783", "0.61702543", "0.61683124", "0.6166714", "0.6165316", "0.61610365", "0.61500084", "0.6138434", "0.61288637", "0.6126641", "0.61261517", "0.61261517", "0.6125704", "0.61249596", "0.6123736", "0.61090314", "0.6101268", "0.609941" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter r1's center x-, y-coordinates, width, and height: "); double x1 = input.nextDouble(); double y1 = input.nextDouble(); double w1 = input.nextDouble(); double h1 = input.nextDouble(); System.out.print("Enter r2's center x-, y-coordinates, width, and height: "); double x2 = input.nextDouble(); double y2 = input.nextDouble(); double w2 = input.nextDouble(); double h2 = input.nextDouble(); double inMinX = x1-(w1-w2)/2; double inMaxX = x1+(w1-w2)/2; double inMinY = y1-(h1-h2)/2; double inMaxY = y1+(h1-h2)/2; double outMinX = x1-(w1+w2)/2; double outMaxX = x1+(w1+w2)/2; double outMinY = y1-(h1+h2)/2; double outMaxY = y1+(h1+h2)/2; if(x2>=inMinX&&x2<=inMaxX&&y2>=inMinY&&y2<=inMaxY) { System.out.println("r2 is inside r1"); } else if(x2>=outMaxX||x2<=outMinX||y2>=outMaxY||y2<=outMinY) { System.out.println("r2 does not overlap r1"); } else { System.out.println("r2 overlaps r1"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by zhaohui on 18/01/2018.
public interface WayBillDao extends JpaRepository<WayBill, Integer>{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\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}", "public final void mo51373a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\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\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void init() {\n\n\t}", "@Override\n protected void initialize() \n {\n \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\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void gored() {\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 public void init() {}", "@Override\n public int describeContents() { return 0; }", "@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 protected void init() {\n }", "@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}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "Petunia() {\r\n\t\t}", "private void m50366E() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "private void init() {\n\n\n\n }", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}" ]
[ "0.61645174", "0.60601825", "0.5934683", "0.5879335", "0.5879335", "0.58423984", "0.5838256", "0.58364046", "0.5785977", "0.5750824", "0.574921", "0.57429266", "0.5717068", "0.57056093", "0.5687903", "0.5678691", "0.5653833", "0.565312", "0.5651082", "0.56431633", "0.56412417", "0.56355196", "0.5634885", "0.5634885", "0.5628688", "0.562105", "0.56054413", "0.5588548", "0.5585027", "0.5575002", "0.55670315", "0.5554643", "0.55479085", "0.55479085", "0.55479085", "0.55479085", "0.55479085", "0.5541088", "0.5540018", "0.5537188", "0.55171543", "0.55108696", "0.55108696", "0.55108696", "0.55108696", "0.55108696", "0.55108696", "0.54981905", "0.5491041", "0.5469019", "0.5469019", "0.54664236", "0.5459996", "0.54568416", "0.545448", "0.545448", "0.545448", "0.5450428", "0.544962", "0.54404736", "0.54404736", "0.54404736", "0.5437391", "0.54326016", "0.54326016", "0.54326016", "0.5430512", "0.54299957", "0.54299957", "0.5415368", "0.5414936", "0.5414313", "0.53936404", "0.53936404", "0.53936404", "0.53936404", "0.53936404", "0.53936404", "0.53936404", "0.5393286", "0.5385409", "0.53766334", "0.53739387", "0.53682387", "0.53664184", "0.5363891", "0.5357452", "0.53551674", "0.5354215", "0.5353955", "0.5351754", "0.53500056", "0.53475547", "0.53436816", "0.5334506", "0.5333869", "0.5330266", "0.53295416", "0.53127253", "0.5305186", "0.5305031" ]
0.0
-1
the directions that the monster (Tyrone) can go north, east, south and west.
public Room goNorth(Room curRoom) { return gameMap.getRoom(curRoom.getX(), curRoom.getY() - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Direction> getValidDirectionsForMovement();", "public Directions getDirectionsOfHits() {\n\t\tList<Coordinate> woundPositions = getWoundPositions();\n\t\tif (woundPositions.get(0).getxPosition() == woundPositions.get(1).getxPosition())\n\t\t\treturn Directions.NORTH;\n\t\telse\n\t\t\treturn Directions.WEST;\n\t}", "public List<Direction> getDirections(Tile t1, Tile t2) {\n List<Direction> directions = new ArrayList<Direction>();\n if (t1.getRow() < t2.getRow()) {\n if (t2.getRow() - t1.getRow() >= gameSetup.getRows() / 2) {\n directions.add(Direction.NORTH);\n } else {\n directions.add(Direction.SOUTH);\n }\n } else if (t1.getRow() > t2.getRow()) {\n if (t1.getRow() - t2.getRow() >= gameSetup.getRows() / 2) {\n directions.add(Direction.SOUTH);\n } else {\n directions.add(Direction.NORTH);\n }\n }\n\n if (t1.getCol() < t2.getCol()) {\n if (t2.getCol() - t1.getCol() >= gameSetup.getCols() / 2) {\n directions.add(Direction.WEST);\n } else {\n directions.add(Direction.EAST);\n }\n } else if (t1.getCol() > t2.getCol()) {\n if (t1.getCol() - t2.getCol() >= gameSetup.getCols() / 2) {\n directions.add(Direction.EAST);\n } else {\n directions.add(Direction.WEST);\n }\n }\n\n return directions;\n }", "public void findValidMoveDirections(){\n\t\t\n\t\tif(currentTile == 2 && (tileRotation == 0 || tileRotation == 180)){ // in vertical I configuration\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: T E,W: F\");\n\t\t}\n\t\telse if(currentTile == 2 && (tileRotation == 90 || tileRotation == 270)){ // in horizontal I configuration\n\t\t\tcanMoveNorth = false; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: F E,W: T\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 3 && tileRotation == 0){ // L rotated 0 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,E: T S,W: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 90){ // L rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W: T S,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 180){ // L rotated 180 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W: T N,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 270){ // L rotated 270 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,E: T N,W: F\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 4 && tileRotation == 0){ // T rotated 0 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W,E: T N: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 90){ // T rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,E: T W: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 180){ // T rotated 180 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W,E: T S: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 270){ // T rotated 270 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W: T E: F\");\n\t\t}\n\t\telse if(currentTile == 5){ //in plus tile\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W,E: T\");\n\t\t}\n\t\t\n\t}", "public Direction getMove(){\n\t\tif (diam < 3){\n\t\t\tdiam++;\n\t\t\tjustnow = \"east\";\n\t\t\treturn Direction.EAST;\n\t\t}\n\t\telse if (diam < 6){\n\t\t\tdiam++;\n\t\t\tjustnow = \"south\";\n\t\t\treturn Direction.SOUTH;\n\t\t}\n\t\telse if (diam < 9){\n\t\t\tdiam++;\n\t\t\tjustnow = \"west\";\n\t\t\treturn Direction.WEST;\n\t\t}\n\t\telse if (diam < 12){\n\t\t\tdiam++;\n\t\t\tjustnow = \"north\";\n\t\t\treturn Direction.NORTH;\n\t\t}\n\t\telse {\n\t\t\tdiam = 0;\n\t\t\tdiam++;\n\t\t\tjustnow = \"east\";\n\t\t\treturn Direction.EAST;\n\t\t}\t\n\t}", "Directions getDirections(){\n return this.dir;\n }", "private String getPossibleDirections() {\n\t\t\n\t\tString directionsToReturn=\"\";\n\t\t\n\t\tif(entity.getFrontCell() != null) {\n\t\t\t\n\t\tHashSet<E_Direction> possibleDirections = entity.getFrontCell().getPossibleDirections();\n\t\tint size=possibleDirections.size();\n\t\t\n\t\tE_Direction[] directions = new E_Direction[size];\n\t\tdirections = possibleDirections.toArray(directions);\n\t\t\n\t\tif(size > 1) directionsToReturn = directions[0].toString()+\",\"+directions[1].toString(); \n\t\n\t\telse\n directionsToReturn = directions[0].toString();\n\t\n\t\t}\n\t\t\n\t\t\n\t\treturn directionsToReturn; // the directons text to string\n\t\t\n\t}", "public int getDirectionToward(Location anotherLocation)\n\t{\n\t\tdouble\tdeltaX = anotherLocation.getX() - mX;\n\t\tdouble\tdeltaY = anotherLocation.getY() - mY;\n\t\tdouble\tdegrees = (360.0 / (2 * Math.PI)) * Math.atan(deltaY / deltaX);\n\t\t\n\t\tif (Math.abs(degrees) > 67.5) // either north or south\n\t\t{\n\t\t\treturn deltaY > 0 ? SOUTH : NORTH;\n\t\t}\n\t\telse if (Math.abs(degrees) > 22.5) // one of the four diagonals\n\t\t{\n\t\t\tif (deltaY < 0)\n\t\t\t{\n\t\t\t\treturn deltaX > 0 ? NORTHEAST : NORTHWEST;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn deltaX > 0 ? SOUTHEAST : SOUTHWEST;\n\t\t\t}\n\t\t}\n\t\telse // either east or west\n\t\t{\n\t\t\treturn deltaX > 0 ? EAST : WEST;\n\t\t}\n\t}", "int getDirection();", "@Override\n\tpublic Direction getMove() {\n if (ticks < MAX_TICKS_PER_ROUND - 100) {\n Direction[] dirs = Direction.values();\n return dirs[random.nextInt(dirs.length)];\n } else {\n // Move towards boat\n int deltaX = 0;\n int deltaY = 0;\n if (currentLocation.getX() < 0)\n deltaX = 1;\n else if (currentLocation.getX() > 0)\n deltaX = -1;\n\n if (currentLocation.getY() < 0)\n deltaY = 1;\n else if (currentLocation.getY() > 0)\n deltaY = -1;\n\n if (deltaX > 0 && deltaY == 0) {\n return Direction.E;\n } else if (deltaX > 0 && deltaY > 0) {\n return Direction.NE;\n } else if (deltaX > 0 && deltaY < 0) {\n return Direction.SE;\n } else if (deltaX == 0 && deltaY == 0) {\n return Direction.STAYPUT;\n } else if (deltaX == 0 && deltaY < 0) {\n return Direction.N;\n } else if (deltaX == 0 && deltaY > 0) {\n return Direction.S;\n } else if (deltaX < 0 && deltaY == 0) {\n return Direction.W;\n } else if (deltaX < 0 && deltaY > 0) {\n return Direction.NW;\n } else if (deltaX < 0 && deltaY < 0) {\n return Direction.NE;\n } else {\n throw new RuntimeException(\"I HAVE NO IDEA\");\n }\n }\n\t}", "public Direction getDirect() {\n \tif(xMoving && yMoving){\n \t\tif(right && down)\n \t\t\tdir = Direction.SOUTHEAST;\n \t\telse if(right && !down)\n \t\t\tdir = Direction.NORTHEAST;\n \t\telse if(!right && down)\n \t\t\tdir = Direction.SOUTHWEST;\n \t\telse\n \t\t\tdir = Direction.NORTHWEST;\n \t}\n \telse if(xMoving){\n \t\tdir = right ? Direction.EAST : Direction.WEST;\n \t}\n \telse if(yMoving){\n \t\tdir = down ? Direction.SOUTH : Direction.NORTH;\n \t}\n \treturn dir;\n }", "public Direction getCorrectRobotDirection();", "public int getDirection();", "public static Direction getSumOfDirections(Direction[] allDirection) {\n int dx = 0;\n int dy = 0;\n int length = allDirection.length;\n for (int i = 0; i < length; i++) {\n dx = allDirection[i].dx;\n dy = allDirection[i].dy;\n }\n\n if (dx > 0) {\n if (dy < 0) {\n return Direction.NORTH_EAST;\n }\n else if (dy > 0) {\n return Direction.SOUTH_EAST;\n }\n else {\n return Direction.EAST;\n }\n }\n else if (dx < 0) {\n if (dy < 0) {\n return Direction.NORTH_WEST;\n }\n else if (dy > 0) {\n return Direction.SOUTH_WEST;\n }\n else {\n return Direction.WEST;\n }\n }\n else {\n if (dy < 0) {\n return Direction.NORTH;\n }\n else if (dy > 0) {\n return Direction.SOUTH;\n }\n }\n\n return Direction.NONE;\n }", "protected final Direction getDirection() {\n\t\treturn tile.getDirection();\n\t}", "public static int[] isMonsterInSight(Player curr) {\n int[] ans = {-1, -1};\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n String name = curr.getName();\n if (bodyDir == UP) {\n dirs.add(UP);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(DOWN);\n }\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(LEFT);\n }\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(UP);\n }\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(RIGHT);\n }\n }\n\n if (dirs == null || dirs.size() == 0)\n return ans; //{-1,-1}\n for (int m = 0; m < players.length; m++) { //skip player if Vehicle is not mind controlled and the player is not a monster\n //skip player if Vehicle is mind controlled and the player is a monster\n if (players[m] == null || players[m].getName().equals(\"NONE\") || curr == players[m] ||\n ((curr instanceof Vehicle && !((Vehicle) (curr)).isMindControlled()) && !(players[m] instanceof Monster)) ||\n ((curr instanceof Vehicle && ((Vehicle) (curr)).isMindControlled()) && (players[m] instanceof Monster)))\n continue;\n int mR = players[m].getRow();\n int mC = players[m].getCol();\n\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 0; r--) { //coastguard, destroyer, fighter planes and artillery have the monsters position known - the monster is not hidden by structures\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length; c++) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 0; c--) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n }\n if (skip)\n continue;\n }\n }\n return ans;\n }", "public List<Dir> getDirections(){\n List<Dir> dirs = new ArrayList<>();\n for(Dash d : dashes){\n dirs.add(d.getDir());\n }\n return dirs;\n }", "private List<Direction> determinePossibleDirections(View v) {\n\t\tDirection[] allDirections = Direction.values();\n\t\tArrayList<Direction> possibleDirections = new ArrayList<Direction>();\n\n\t\tfor (Direction d : allDirections) {\n\t\t\tif (v.mayMove(d)) {\n\t\t\t\t// Yes, this is a valid direction\n\t\t\t\tpossibleDirections.add(d);\n\t\t\t}\n\t\t}\n\n\t\treturn possibleDirections;\n\t}", "@Override\n public Position[] getCanMoves() {\n PieceWay way = new PieceWay(getPosition());\n Position[] PawnWay = way.waysPawnPos(color);\n return PawnWay;\n }", "public Direction getAIDirection (Tile[][] map) {\n\n // Determine valid directions\n ArrayList<Direction> validDirections = new ArrayList<>();\n for (Direction direction : Direction.cardinals) {\n Coordinates targetCoordinates = Utility.locateDirection(this.getPosition(), direction);\n Tile targetTile = map[targetCoordinates.getY()][targetCoordinates.getX()];\n if (targetTile.getTerrain().equals(Terrain.EMPTY)) validDirections.add(direction);\n }\n\n // Seek random direction if backtrack is not the only viable option\n if (validDirections.size() > 1) {\n while (true) {\n Direction direction = validDirections.get(new Random().nextInt(validDirections.size()));\n Coordinates targetCoordinates = Utility.locateDirection(this.getPosition(), direction);\n Tile targetTile = map[targetCoordinates.getY()][targetCoordinates.getX()];\n\n boolean isBackTrack = false;\n if (\n targetTile.getPosition().getX() == previousLocation.getX()\n && targetTile.getPosition().getY() == previousLocation.getY()\n ) isBackTrack = true;\n\n if (targetTile.getTerrain().equals(Terrain.EMPTY) && !isBackTrack) return direction;\n }\n }\n else return validDirections.get(0);\n }", "public com.hps.july.persistence.Direction getDirections() throws Exception {\n\tDirectionAccessBean bean = constructDirections();\n\tif (bean != null)\n\t return (Direction)bean.getEJBRef();\n\telse\n\t return null;\n\n}", "private static Directions getDirection() {\n\t\t\treturn values()[rand.nextInt(4)];\n\t\t}", "private static int[] decideDirection(boolean[][] maze, int x, int y){\n if (Random.Int(4) == 0 && //1 in 4 chance\n checkValidMove(maze, x, y, new int[]{0, -1})){\n return new int[]{0, -1};\n }\n\n //attempts to move right\n if (Random.Int(3) == 0 && //1 in 3 chance\n checkValidMove(maze, x, y, new int[]{1, 0})){\n return new int[]{1, 0};\n }\n\n //attempts to move down\n if (Random.Int(2) == 0 && //1 in 2 chance\n checkValidMove(maze, x, y, new int[]{0, 1})){\n return new int[]{0, 1};\n }\n\n //attempts to move left\n if (\n checkValidMove(maze, x, y, new int[]{-1, 0})){\n return new int[]{-1, 0};\n }\n\n return null;\n }", "public void getMovements()\n {\n if(\n Greenfoot.isKeyDown(\"Up\")||Greenfoot.isKeyDown(\"W\")||\n Greenfoot.isKeyDown(\"Down\")||Greenfoot.isKeyDown(\"S\")||\n Greenfoot.isKeyDown(\"Right\")||Greenfoot.isKeyDown(\"D\")||\n Greenfoot.isKeyDown(\"Left\") ||Greenfoot.isKeyDown(\"A\")||\n getWorld().getObjects(Traps.class).isEmpty() == false //car trap engendre un mouvement sans les touches directionnelles\n )\n {\n isMoved = true;\n }\n else{isMoved = false;}\n }", "private Direction calcDirection(int rowD, int colD) {\n // Kuninkaan alapuolella\n if (rowD < 0) {\n if (colD < 0) return Direction.SOUTHWEST;\n if (colD > 0) return Direction.SOUTHEAST;\n return Direction.SOUTH;\n }\n // Kuninkaan yläpuolella\n if (rowD > 0) {\n if (colD < 0) return Direction.NORTHWEST;\n if (colD > 0) return Direction.NORTHEAST;\n return Direction.NORTH;\n }\n // Kuninkaan tasossa\n if (colD < 0) return Direction.WEST;\n return Direction.EAST;\n }", "public Collection<? extends Direction> getDirections ()\r\n {\r\n return directions;\r\n }", "public Direction getMostValuableDirection(Location location) {\r\n\t\tint northSum = 0, southSum = 0, westSum = 0, eastSum = 0;\r\n\t\t// the neighbors are saved in an array and we know the order for each\r\n\t\t// neighbor\r\n\t\tArrayList<Location> neighbors = location.getNeighbors(location, map, 1);\r\n\t\t// so we know the north neighbors are on the 0, 1, 2 positions\r\n\t\tif(neighbors.get(0).getSite().owner != myID) {\r\n\t\t\tnorthSum += neighbors.get(0).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(1).getSite().owner != myID) {\r\n\t\t\tnorthSum += neighbors.get(1).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(2).getSite().owner != myID) {\r\n\t\t\tnorthSum += neighbors.get(2).getSite().strength;\r\n\t\t}\r\n\r\n\t\t// the east neighbors are on the 3, 4, 5 positions\r\n\t\tif(neighbors.get(3).getSite().owner != myID) {\r\n\t\t\teastSum += neighbors.get(3).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(4).getSite().owner != myID) {\r\n\t\t\teastSum += neighbors.get(4).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(5).getSite().owner != myID) {\r\n\t\t\teastSum += neighbors.get(5).getSite().strength;\r\n\t\t}\r\n\r\n\t\t// the south neighbors are on the 6, 7, 8 positions\r\n\t\tif(neighbors.get(6).getSite().owner != myID) {\r\n\t\t\tsouthSum += neighbors.get(6).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(7).getSite().owner != myID) {\r\n\t\t\tsouthSum += neighbors.get(7).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(8).getSite().owner != myID) {\r\n\t\t\tsouthSum += neighbors.get(8).getSite().strength;\r\n\t\t}\r\n\r\n\t\t// the west neighbors are on the 9, 10, 11 positions\r\n\t\tif(neighbors.get(9).getSite().owner != myID) {\r\n\t\t\twestSum += neighbors.get(9).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(10).getSite().owner != myID) {\r\n\t\t\twestSum += neighbors.get(10).getSite().strength;\r\n\t\t}\r\n\t\tif(neighbors.get(11).getSite().owner != myID) {\r\n\t\t\twestSum += neighbors.get(11).getSite().strength;\r\n\t\t}\r\n\t\t// get maximum sum\r\n\t\tfloat max = Math.max(Math.max(northSum, southSum), Math.max(eastSum, westSum));\r\n\t\t// return the best direction\r\n\t\tif (max == northSum)\r\n\t\t\treturn Direction.NORTH;\r\n\t\telse if (max == southSum)\r\n\t\t\treturn Direction.SOUTH;\r\n\t\telse if (max == eastSum)\r\n\t\t\treturn Direction.EAST;\r\n\t\telse\r\n\t\t\treturn Direction.WEST;\r\n\t}", "private void calculateTurn () {\n // Do we need a turn? If not, we're done.\n if (dirOne.opposite() == dirTwo) return;\n /*\n * We need a turn. The coordinates of the turn point will be the x\n * coordinate of the north/south leg and the y coordinate of the\n * east/west leg.\n */\n if (dirOne == Direction.north || dirOne == Direction.south) {\n xTurn = xOne;\n yTurn = yTwo;\n } else {\n xTurn = xTwo;\n yTurn = yOne;\n }\n }", "String getDirection();", "public void directionRestriction(){\n \t\n }", "void setDirections(Directions dir){\n this.dir = dir;\n }", "public float getDirection();", "private int[] FindNextDirection(Tile start)\n {\n int[] direction = new int[2];\n Tile up = grid.GetTile(start.getXPlace(), start.getYPlace() - 1);\n Tile right = grid.GetTile(start.getXPlace() + 1, start.getYPlace());\n Tile down = grid.GetTile(start.getXPlace(), start.getYPlace() + 1);\n Tile left = grid.GetTile(start.getXPlace() - 1, start.getYPlace() - 1);\n \n if(start.getType() == up.getType())\n {\n direction[0] = 0;\n direction[1] = -1;\n }\n else if(start.getType() == right.getType())\n {\n direction[0] = 1;\n direction[1] = 0;\n }\n else if(start.getType() == down.getType())\n {\n direction[0] = 0;\n direction[1] = 1;\n }\n else if(start.getType() == left.getType())\n {\n direction[0] = -1;\n direction[1] = 0;\n }\n else\n {\n direction[0] = 2;\n direction[1] = 2;\n System.out.println(\"NO DIRECTION FOUND.\");\n }\n return direction;\n }", "public double getDirectionMove();", "public abstract int getDirection();", "private Direction getNextDirection(int xDiff, int yDiff) {\n \n // figure out the direction the footman needs to move in\n if(xDiff == 1 && yDiff == 1)\n {\n return Direction.SOUTHEAST;\n }\n else if(xDiff == 1 && yDiff == 0)\n {\n return Direction.EAST;\n }\n else if(xDiff == 1 && yDiff == -1)\n {\n return Direction.NORTHEAST;\n }\n else if(xDiff == 0 && yDiff == 1)\n {\n return Direction.SOUTH;\n }\n else if(xDiff == 0 && yDiff == -1)\n {\n return Direction.NORTH;\n }\n else if(xDiff == -1 && yDiff == 1)\n {\n return Direction.SOUTHWEST;\n }\n else if(xDiff == -1 && yDiff == 0)\n {\n return Direction.WEST;\n }\n else if(xDiff == -1 && yDiff == -1)\n {\n return Direction.NORTHWEST;\n }\n \n System.err.println(\"Invalid path. Could not determine direction\");\n return null;\n }", "public HashSet<Position> casesAutour()\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (Direction d : Direction.values())\n s.add(this.relativePos(d));\n\n return s;\n }", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "public int getWallDirection(int d, int s) {\n\t\t// d = player direction\n\t\t// s = screen gfx position\n\n\t\t//I should be able to use the below in an array to work out all directions\n\t\t//current plus direction = wall face i.e.\n\t\t//If a wall is currently North which is a 0 + player direction. Say Player is facing East = 1\n\t\t// 0 + 1 = 1 (North Wall becomes East)\n\t\tint[] Wall = new int [32];\n\t\tWall[0] = 0;\n\t\tWall[1] = 1;\n\t\tWall[2] = 2;\n\t\tWall[3] = 3;\n\t\tWall[4] = 2;\n\t\tWall[5] = 1;\n\t\tWall[6] = 2;\n\t\tWall[7] = 3;\n\t\tWall[8] = 2;\n\t\tWall[9] = 2;\n\t\tWall[10] = 1;\n\t\tWall[11] = 2;\n\t\tWall[12] = 3;\n\t\tWall[13] = 2;\n\t\tWall[14] = 2;\n\t\tWall[15] = 1;\n\t\tWall[16] = 2;\n\t\tWall[17] = 3;\n\t\tWall[18] = 2;\n\t\tWall[19] = 1;\n\t\tWall[20] = 2;\n\t\tWall[21] = 1;\n\t\tWall[22] = 3;\n\t\tWall[23] = 2;\n\t\tWall[24] = 3;\n\t\tWall[25] = 2;\n\t\tWall[26] = 1;\n\t\tWall[27] = 3;\n\t\tWall[28] = 2;\n\t\tWall[29] = 3; //2\n\t\tWall[30] = 0; //3\n\t\tWall[31] = 1; //0\n\n\t\tWall[s] = Wall[s] + d;\n\n\t\tif (Wall[s] > 3) {\n\t\t\tWall[s] = (Wall[s] - 3) -1;\n\t\t}\n\n\n\t\treturn Wall[s];\n\n\n\t}", "boolean hasDirection();", "private void calculateDirection(){\n\t\tif(waypoints.size() > 0){\n\t\t\tif(getDistanceToWaypoint() <= getSpeed()){\n\t\t\t\tsetPosition(new Vector2(waypoints.remove(0)));\n\t\t\t\tsetCurrentWaypoint(getCurrentWaypoint() + 1);\n\t\t\t}else{\t\t\n\t\t\t\tVector2 target = new Vector2(waypoints.get(0));\n\t\t\t\tVector2 newDirection = new Vector2(target.sub(getPosition())); \n\t\t\t\tsetDirection(newDirection);\n\t\t\t}\n\t\t}else{\n\t\t\tsetDirection(new Vector2(0, 0));\n\t\t}\n\t}", "public int determineDirection(Point p0, Point p1) {\n \tif (p0.y == p1.y && ((p0.x > p1.x && !(p0.x == map[0].length - 1 && p1.x == 0)) \n \t\t\t|| (p1.x == map[0].length - 1 && p0.x == 0))) { \n \t\treturn 4; }\n \tif (p0.y == p1.y ) { \n \t\treturn 6; }\n \tif (p0.x == p1.x && ((p0.y > p1.y && !(p0.y == map.length - 1 && p1.y == 0))\n \t\t\t|| (p1.y == map.length - 1 && p0.y == 0)) ) { \n \t\treturn 8; }\n \treturn 2;\n }", "@Override\n\tpublic Direction getMove() {\n\t\t//Equal probability for each of the 8 compass direction, as well as staying stationary\n\t\treturn choices[this.random.nextInt(9)];\n\t}", "@Override\n\tpublic Direction nextMove(State state)\n\t{\n\t\t\n\t\tthis.direction = Direction.STAY;\n\t\tthis.hero = state.hero();\n\t\tthis.position = new Point( this.hero.position.right, this.hero.position.left ); //x and y are reversed, really\n\t\t\n\t\tthis.pathMap = new PathMap( state, this.position.x, this.position.y );\n\n\t\t//find the richest hero\n\t\tHero richestHero = state.game.heroes.get(0);\n\t\tif( richestHero == this.hero ) { richestHero = state.game.heroes.get(1); } //just grab another hero if we are #0\n\t\t\n\t\tfor( Hero hero : state.game.heroes )\n\t\t{\n\t\t\tif( hero != this.hero && hero.gold > richestHero.gold )\n\t\t\t{\n\t\t\t\trichestHero = hero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//get all interesting sites\n\t\tList<TileInfo> minesInRange = this.pathMap.getSitesInRange( TileType.FREE_MINE, 20 );\t//mines in vicinity\n\t\tList<TileInfo> takenMinesInRange = this.pathMap.getSitesInRange( TileType.TAKEN_MINE, (100-richestHero.life)/2 );\t//mines in vicinity\n\t\tList<TileInfo> pubsInRange = this.pathMap.getSitesInRange( TileType.TAVERN, (int)(Math.pow(100-this.hero.life,2)*state.game.board.size/5000) );\t\t//pubs in vicinity\n\t\t\n\t\t//first visit pubs (apparently we need it)\n\t\tif( pubsInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( pubsInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit the mines\n\t\telse if( minesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( minesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit taken mines\n\t\telse if( takenMinesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( takenMinesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then hunt for players\n\t\telse\n\t\t{\n\t\t\t//kill the richest hero! (but first full health)\n\t\t\tif( this.hero.life > 85 )\n\t\t\t{\n\t\t\t\tthis.direction = this.pathMap.getDirectionTo( richestHero.position.right, richestHero.position.left );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//run away!!!\n\t\t\t\tthis.direction = intToDir( (int)(Math.random()*4) );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//VisualPathMap.getInstance( pathMap );\n\t\t\n\t\treturn this.direction;\n\t}", "public ArrayList<String> getSupportedDirections() {\n\t\treturn dictionary.getSupportedDirections();\n\t}", "public boolean canTeleport(Entity t) {\r\n if (getDirection() == Direction.EAST && (t.getLocation().getX() - getLocation().getX()) < 4 && (t.getLocation().getX() - getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.WEST && (getLocation().getX() - t.getLocation().getX()) < 4 && (getLocation().getX() - t.getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.NORTH && (t.getLocation().getY() - getLocation().getY()) < 4 && (t.getLocation().getY() - getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.SOUTH && (getLocation().getY() - t.getLocation().getY()) < 4 && (getLocation().getY() - t.getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n return false;\r\n }", "public ArrayList<Location> getMoveLocations()\n {\n ArrayList<Location> locs = new ArrayList<Location>();\n ArrayList<Location> validLocations = getGrid().getValidAdjacentLocations(getLocation());\n for (Location neighborLoc : validLocations)\n {\n if (getGrid().get(neighborLoc) == null || getGrid().get(neighborLoc) instanceof AbstractPokemon || getGrid().get(neighborLoc) instanceof PokemonTrainer)\n locs.add(neighborLoc);\n }\n return locs;\n }", "Direction invert() {\n switch (this) {\n case NORTH: return SOUTH;\n case SOUTH: return NORTH;\n case EAST: return WEST;\n case WEST: return EAST;\n case NORTH_EAST: return SOUTH_WEST;\n case NORTH_WEST: return SOUTH_EAST;\n case SOUTH_EAST: return NORTH_WEST;\n case SOUTH_WEST: return NORTH_EAST;\n default: return NULL;\n }\n }", "public static String findDirection(XYLocation initial, XYLocation goingTo) {\n\t\tfloat goingToX = goingTo.getX();\n\t\tfloat goingToY = goingTo.getY();\n\t\tfloat initialX = initial.getX();\n\t\tfloat inititalY = initial.getY();\n\t\tfloat theta = (float) Math.atan2(goingToY - inititalY, goingToX - initialX);\n\t\t\n\t\tif (Math.abs(theta) <= oneEighthPI && Math.abs(theta) >= negOneEighthPI) {\n\t\t\t\treturn \"East\";\n\t\t\t} else if (theta > oneEighthPI && theta < threeEighthsPI) {\n\t\t\t\treturn \"SouthEast\";\n\t\t\t} else if (theta > negThreeEighthsPI && theta < negOneEighthPI) {\n\t\t\t\treturn \"NorthEast\";\n\t\t\t} else if (theta > threeEighthsPI && theta < fiveEighthsPI) {\n\t\t\t\treturn \"South\";\n\t\t\t} else if (theta > negFiveEighthsPI && theta < negThreeEighthsPI){\n\t\t\t\treturn \"North\";\n\t\t\t} else if (theta > fiveEighthsPI && theta < sevenEighthsPI) {\n\t\t\t\treturn \"SouthWest\";\n\t\t\t} else if (theta > negSevenEighthsPI && theta < negFiveEighthsPI) {\n\t\t\t\treturn \"NorthWest\";\n\t\t\t} else {\n\t\t\t\treturn \"West\";\n\t\t\t}\n\t}", "public ForgeDirection toForgeDirection()\n {\n for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS)\n {\n if (this.x == direction.offsetX && this.y == direction.offsetY && this.z == direction.offsetZ)\n {\n return direction;\n }\n }\n\n return ForgeDirection.UNKNOWN;\n }", "@Nullable\n private Direction getFrameDirection() {\n //Cache the chunks we are looking up to check the frames of\n // Note: We can use an array based map, because we check suck a small area, that if we do go across chunks\n // we will be in at most two in general due to the size of our teleporter. But given we need to check multiple\n // directions we might end up checking two different cross chunk directions which would end up at three\n Long2ObjectMap<ChunkAccess> chunkMap = new Long2ObjectArrayMap<>(3);\n Object2BooleanMap<BlockPos> cachedIsFrame = new Object2BooleanOpenHashMap<>();\n for (Direction direction : EnumUtils.DIRECTIONS) {\n if (hasFrame(chunkMap, cachedIsFrame, direction, false)) {\n frameRotated = false;\n return direction;\n } else if (hasFrame(chunkMap, cachedIsFrame, direction, true)) {\n frameRotated = true;\n return direction;\n }\n }\n return null;\n }", "private void setDirection() {\r\n\t\tif (destinationFloor > initialFloor){\r\n\t\t\tdirection = 1;\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t}\r\n\t}", "public List<Direction> directionsVers(Lutin lutin) {\n return coord.directionsVers(lutin.coord);\n\n }", "public int getDirection()\r\n\t{\r\n\t\treturn direction;\r\n\t}", "public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }", "public static Direction getDirection(Point start, Point end)\n \t{\n \t\tif( start.x - end.x > 0) //left\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topleft;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botleft;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.left;\n \t\t}\n \t\telse if ( start.x - end.x < 0) //right\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topright;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botright;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.right;\n \t\t}\n \t\telse // no x movement (only up or down)\n \t\t{\n \t\t\tif(start.y - end.y < 0)\n \t\t\t\treturn Board.Direction.up;\n \t\t\tif(start.y - end.y > 0)\n \t\t\t\treturn Board.Direction.down;\n \t\t\telse\n \t\t\t\treturn Board.Direction.none; //no movement\n \t\t}\n \t}", "default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }", "public double getDirectionView();", "public int[] direction(Node from, Node to) {\n int dx = to.getX() - from.getX();\n int dy = to.getY() - from.getY();\n int[] direction = {0, 0};\n \n if (dx != 0) {\n direction[0] = dx/Math.abs(dx);\n }\n \n if (dy != 0) {\n direction[1] = dy/Math.abs(dy);\n }\n \n return direction;\n }", "private void findWay(MazeCell[] surrounds) {\r\n for (int i = 0; i < surrounds.length; i++) {\r\n if (surrounds[i].isMovable && surrounds[i].getFootprint()) {\r\n int d = faceDir.ordinal();\r\n faceDir = Direction.values()[(d + i) % 4];\r\n }\r\n }\r\n }", "private String getDirectionAnt(Board inputBoard, String antName) {\nString dir = \"\";\nfor (int p = 0; p < inputBoard.getAntsOnBoard().size(); p++) {\nif (antName.equalsIgnoreCase(inputBoard.getAntsOnBoard().get(p).getName())) {\ndir = inputBoard.getAntsOnBoard().get(p).getDirection();\n}\n}\nif (dir.isEmpty()) {\nTerminal.printError(\"This ant is not on board\");\n}\nreturn dir;\n}", "private void drive2Neighbor(int nx, int ny) throws Exception {\n\t\t//note that since the map is upside down, so all left-right turn is switched here\n\t\tswitch(robot.getCurrentDirection()) {\n\t\tcase East:\n\t\t\tif (nx > robot.getCurrentPosition()[0]){\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase West:\n\t\t\tif (nx < robot.getCurrentPosition()[0]){\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase North:\n\t\t\tif (nx > robot.getCurrentPosition()[0]){\n\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase South:\n\t\t\tif (nx < robot.getCurrentPosition()[0]){\n\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "private AntDirection getAntDirection(int directionVal) {\r\n\t\tAntDirection direction = AntDirection.EAST;\r\n\t\tswitch (directionVal) {\r\n\t\t\tcase 0: direction = AntDirection.EAST; \r\n\t\t\tbreak;\r\n\t\t\tcase 1: direction = AntDirection.SOUTH_EAST;\r\n\t\t\tbreak;\r\n\t\t\tcase 2: direction = AntDirection.SOUTH_WEST; \r\n\t\t\tbreak;\r\n\t\t\tcase 3: direction = AntDirection.WEST;\r\n\t\t\tbreak;\r\n\t\t\tcase 4: direction = AntDirection.NORTH_WEST; \r\n\t\t\tbreak;\r\n\t\t\tcase 5: direction = AntDirection.NORTH_EAST;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn direction;\r\n\t}", "private int getDist(int x, int y, int direction) {\n\t\tint Spaces = 0;\n\t\tif(direction == 0)\n\t\t{\n\t\t\t\n\t\t\tPoint nextPoint = new Point(x, y++);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y++);\n\t\t\t}\n\t\t}\n\t\tif(direction == 1)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x++, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x++, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 2)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x--, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x--, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 3)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x, y--);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y--);\n\t\t\t}\n\t\t}\n\t\treturn Spaces;\n\t}", "public Vector3d getDirection() { return mDirection; }", "@Test\n\t\t\tpublic void adjacentToDoorwayTest() {\n\t\t\t\t//Tests with a space to the left of a leftward door\n\t\t\t\tSet<BoardCell> testList = board.getAdjList(11, 15);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(11, 16)));\n\t\t\t\t//Tests with a space to the right of a rightward door\n\t\t\t\ttestList = board.getAdjList(12, 7);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(12, 6)));\n\t\t\t\t//Tests with a space below a downward door\n\t\t\t\ttestList = board.getAdjList(6, 15);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(5, 15)));\n\t\t\t\t//Tests with a space above an upward door\n\t\t\t\ttestList = board.getAdjList(15, 19);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(16, 19)));\n\t\t\t\n\t\t\t}", "boolean checkDir(Directions dir);", "public int getDirection() {\n return direction;\n }", "public int getDirection() {\n return direction;\n }", "public int getDirection() {\n return direction;\n }", "public boolean isWalkway(){\n\t\treturn (cellType == CellType.WALKWAY);\n\t}", "public Direction getMove() {\n\n // If 'count' is >= 3, then reset 'value' for next random direction.\n if (this.count >= 3) {\n this.value = this.generator.nextInt(4); // new value\n this.count = 0; // reset count to 0\n }\n \n ++this.count; // increment count for each call\n if (this.value == 0) {\n return Direction.NORTH;\n }\n else if (this.value == 1) {\n return Direction.SOUTH;\n }\n else if (this.value == 2) {\n return Direction.WEST;\n }\n else { // if value == 3\n return Direction.EAST;\n }\n }", "public void getDirections(Location startLocation, Location endLocation) {\n getDirections(startLocation.getCoordinates(), endLocation.getCoordinates());\n }", "public ArrayList<Direction> allowedDirections(Location location) {\r\n\t\tint proposedStrength = location.getSite().production;\r\n\t\tArrayList<Direction> allowedDirection = new ArrayList<Direction>();\r\n\t\tArrayList<Location> allowedNeighbors = new ArrayList<Location>(4);\r\n\t\tallowedNeighbors = location.getNeighbors(location, map, 1);\r\n\t\t// Iterating the allowedNeighbors array\r\n\t\tfor (int i = 0; i < allowedNeighbors.size(); i++) {\r\n\t\t\t// for each neighbor, we check if the square can move in its\r\n\t\t\t// direction\r\n\t\t\tLocation currentNeighbor = allowedNeighbors.get(i);\r\n\t\t\tif (currentNeighbor.getNeighborDirection(location, currentNeighbor, map) != Direction.STILL)\r\n\t\t\t\tif (currentNeighbor.getSite().isAllowed(proposedStrength)) {\r\n\t\t\t\t\tallowedDirection.add(currentNeighbor.getNeighborDirection(location, currentNeighbor, map));\r\n\t\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn allowedDirection;\r\n\t}", "void check_alien_direction() {\n // Aliens are moving right, check if aliens will move off screen\n if (Alien.direction == Alien.Directions.RIGHT) {\n double max_x = rightmost_alien_x();\n // Alien1 has largest width, so we use that one to calculate if all aliens will fit\n if (max_x + Dimensions.ALIEN1_WIDTH + Dimensions.X_PADDING > scene_width){\n Alien.changeDirections();\n }\n }\n\n // Aliens are moving left, check if aliens will move off screen\n else if (Alien.direction == Alien.Directions.LEFT) {\n double min_x = leftmost_alien_x();\n if (min_x < Dimensions.X_PADDING){\n Alien.changeDirections();\n }\n }\n\n // Aliens are moving down, check if they finished moving down\n else if (Alien.direction == Alien.Directions.DOWN &&\n Alien.down_distance_travelled >= Dimensions.ALIEN_VERTICAL_SPACE){\n random_alien_fires(); // After aliens all descend one row, one of the ships fires at the player\n Alien.changeDirections();\n }\n }", "public MapCell[] getNeighbors(){\n\t\tMapCell[] neighbors = new MapCell[4];\n\t\tneighbors[0] = getNeighbor(\"east\");\n\t\tneighbors[1] = getNeighbor(\"north\");;\n\t\tneighbors[2] = getNeighbor(\"west\");\n\t\tneighbors[3] = getNeighbor(\"south\");\n\t\treturn neighbors;\n\t}", "public String switchDirection(MapTile[][] scanMapTiles, String direction) {\n\tswitch (direction) {\n\tcase \"E\":\n\t\treturn south;\n\tcase \"S\":\n\t\treturn west;\n\tcase \"N\":\n\t\treturn east;\n\tcase \"W\":\n\t\treturn north;\n\tdefault:\n\t\treturn null;\n\n\t}\n\n}", "public static List<MoveType> bestDirections(Point start, Point end) {\n List<MoveType> bestDirections = new ArrayList<>();\n int x = end.x - start.x;\n int y = end.y - start.y;\n if (Math.abs(y) > Math.abs(x)){\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n } else if(Math.abs(y) < Math.abs(x)) {\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n }\n return bestDirections;\n }", "public void RunwaySystem()\r\n\t{\r\n\t\t// if the wind direction is between 136 and 225\r\n\t\tif(wind_direction >= 136 && wind_direction <= 225)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wind direction is \" + wind_direction + \"° blowing North to South\");\r\n\t\t\trunway_number = 18;\r\n\t\t\trunway_direction = \" facing South to North.\";\r\n\t\t}\r\n\t\t// if the wind direction is between 1 and 45 and between 316 and 360\r\n\t\telse if((wind_direction >= 1 && wind_direction <= 45) || \r\n\t\t\t\t(wind_direction >= 316 && wind_direction <= 360))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wind direction is \" + wind_direction + \"° blowing South to North\");\r\n\t\t\trunway_number = 36;\r\n\t\t\trunway_direction = \" facing North to South.\";\r\n\t\t}\r\n\t\telse if(wind_direction >= 46 && wind_direction <= 135)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wind direction is \" + wind_direction + \"° blowing West to East\");\r\n\t\t\trunway_number = 9;\r\n\t\t\trunway_direction = \" facing East to West.\";\r\n\t\t}\r\n\t\t// if the wind direction is between 226 and 315\r\n\t\telse if(wind_direction >= 226 && wind_direction <= 315)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wind direction is \" + wind_direction + \"° blowing East to West\");\r\n\t\t\trunway_number = 27;\r\n\t\t\trunway_direction = \" facing West to East.\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Not a valid wind direction\");\r\n\t\t}\r\n\t}", "@Test\n\tpublic void FourDoorDirections() {\n\t\tBoardCell room = board.getCellAt(2, 2);\n\t\tassertTrue(room.isDoorway());\n\t\tassertEquals(DoorDirection.DOWN, room.getDoorDirection());\n\t\t//tests that the door at [13][3] points up\n\t\troom = board.getCellAt(13, 3);\n\t\tassertTrue(room.isDoorway());\n\t\tassertEquals(DoorDirection.UP, room.getDoorDirection());\n\t\t//tests that the door at [7][4] points right\n\t\troom = board.getCellAt(7, 4);\n\t\tassertTrue(room.isDoorway());\n\t\tassertEquals(DoorDirection.RIGHT, room.getDoorDirection());\n\t\t//tests that the door at [13][17] points left\n\t\troom = board.getCellAt(13, 17);\n\t\tassertTrue(room.isDoorway());\n\t\tassertEquals(DoorDirection.LEFT, room.getDoorDirection());\n\t\t// Test that room pieces that aren't doors know it\n\t\troom = board.getCellAt(0, 0);\n\t\tassertFalse(room.isDoorway());\t\n\t\t// Test that walkways are not doors\n\t\tBoardCell cell = board.getCellAt(0, 4);\n\t\tassertFalse(cell.isDoorway());\t\t\n\t}", "@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<Coordinate> jumps = new ArrayList<>();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (Board.inBounds(tempCoordinate1)) {\n jumps.add(tempCoordinate1);\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (Board.inBounds(tempCoordinate2)) {\n jumps.add(tempCoordinate2);\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (Board.inBounds(tempCoordinate3)) {\n jumps.add(tempCoordinate3);\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (Board.inBounds(tempCoordinate4)) {\n jumps.add(tempCoordinate4);\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (Board.inBounds(tempCoordinate5)) {\n jumps.add(tempCoordinate5);\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (Board.inBounds(tempCoordinate6)) {\n jumps.add(tempCoordinate6);\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (Board.inBounds(tempCoordinate7)) {\n jumps.add(tempCoordinate7);\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n if (Board.inBounds(tempCoordinate8)) {\n jumps.add(tempCoordinate8);\n }\n\n if (!jumps.isEmpty()) {\n moves.put(Direction.Jump, jumps);\n }\n return moves;\n }", "public Direction()\n {\n dirInDegrees = 0; // default to North\n }", "public static CreatureStatusType getMovingType(int xDirection, int yDirection) {\n\t\tif (xDirection == 0) {\n\t\t\tif (yDirection == 0)\n\t\t\t\treturn STANDING;\n\t\t\telse if (yDirection == 1)\n\t\t\t\treturn MOVING_SOUTH;\n\t\t\telse\n\t\t\t\treturn MOVING_NORTH;\n\t\t} else if (xDirection == 1) {\n\t\t\tif (yDirection == 0)\n\t\t\t\treturn MOVING_EAST;\n\t\t\telse if (yDirection == 1)\n\t\t\t\treturn MOVING_SOUTHEAST;\n\t\t\telse\n\t\t\t\treturn MOVING_NORTHEAST;\n\t\t} else {\n\t\t\tif (yDirection == 0)\n\t\t\t\treturn MOVING_WEST;\n\t\t\telse if (yDirection == 1)\n\t\t\t\treturn MOVING_SOUTHWEST;\n\t\t\telse\n\t\t\t\treturn MOVING_NORTHWEST;\n\t\t}\n\t}", "private Direction.directionType turnDirection (int x, int y, int dx, int dy)\n {\n if (connectedTiles[y + dx][x + dy] != null)\n return Direction.intPairToDirection(new IntPair(dy, dx));\n\n return Direction.intPairToDirection(new IntPair(-dy, -dx));\n }", "public static Direction getDirection(Tile origin, Tile target) {\n\t\tint x1 = origin.getX();\n\t\tint y1 = origin.getY();\n\t\tint x2 = target.getX();\n\t\tint y2 = target.getY();\n\t\tint dx = x2 - x1;\n\t\tint dy = y2 - y1;\n\n\t\t// cardinal directions\n\t\tif (dx == 0)\n\t\t\tif (y1 < y2)\n\t\t\t\treturn Direction.East;\n\t\t\telse if (y1 > y2)\n\t\t\t\treturn Direction.West;\n\t\tif (dy == 0) {\n\t\t\tif (x1 < x2)\n\t\t\t\treturn Direction.South;\n\t\t\telse if (x1 > x2)\n\t\t\t\treturn Direction.North;\n\t\t}\n\n\t\t// ordinal directions\n\t\tif (dx == dy || dx == -dy) {\n\t\t\tif (x1 < x2)\n\t\t\t\tif (y1 < y2)\n\t\t\t\t\treturn Direction.SouthEast;\n\t\t\t\telse if (y1 > y2)\n\t\t\t\t\treturn Direction.SouthWest;\n\t\t\tif (x1 > x2)\n\t\t\t\tif (y1 < y2)\n\t\t\t\t\treturn Direction.NorthEast;\n\t\t\t\telse if (y1 > y2)\n\t\t\t\t\treturn Direction.NorthWest;\n\t\t}\n\n\t\treturn null;\n\t}", "public Location getAdjacentLocation(char direction)\n\t{\n\t\tswitch (direction) {\n\t\t\tcase 'l': // location to left of current\n\t\t\t\treturn new Location(x - 1, y, Block.EMPTY);\n\t\t\tcase 'r': // location to the right of current\n\t\t\t\treturn new Location(x + 1, y, Block.EMPTY);\n\t\t\tcase 'u': // location above current\n\t\t\t\treturn new Location(x, y - 1, Block.EMPTY);\n\t\t\tcase 'd': // location below current, only option left\n\t\t\tdefault:\n\t\t\t\treturn new Location(x, y + 1, Block.EMPTY);\n\t\t}\n\t}", "public void getDirections(double startLat, double startLong, double endLat, double endLong) {\n getDirections(startLong + \",\" + startLat, endLong + \",\" + endLat);\n }", "protected int bestDirection(int _y, int _x)\n {\n int sX = -1, sY = -1;\n for (int i = 0; i < m; i++) {\n boolean breakable = false;\n for (int j = 0; j < n; j++) {\n if (map[i][j] == 'p' || map[i][j] == '5') {\n sX = i;\n sY = j;\n breakable = true;\n break;\n }\n }\n if(breakable) break;\n sX =0; sY = 0;\n }\n Pair s = new Pair(sX, sY);\n Queue<Pair> queue = new Queue<Pair>();\n int[][] distance = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n distance[i][j] = -1;\n distance[sX][sY] = 0;\n queue.add(s);\n /*\n System.out.println(\"DEBUG TIME!!!!\");\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.print(map[i][j]);\n System.out.println();\n }\n System.out.println();\n */\n while (!queue.isEmpty())\n {\n Pair u = queue.remove();\n for (int i = 0; i < 4; i++)\n {\n int x = u.getX() + hX[i];\n int y = u.getY() + hY[i];\n if (!validate(x, y)) continue;\n if (distance[x][y] != -1) continue;\n if (!canGo.get(map[x][y])) continue;\n distance[x][y] = distance[u.getX()][u.getY()] + 1;\n queue.add(new Pair(x, y));\n }\n }\n\n //slove if this enemy in danger\n //System.out.println(_x + \" \" + _y);\n if (inDanger[_x][_y])\n {\n int direction = -1;\n boolean canAlive = false;\n int curDistance = dangerDistance[_x][_y];\n int distanceToBomber = m * n;\n if (curDistance == -1) return 0;\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y)) continue;\n if (dangerDistance[x][y] == -1) continue;\n if (dangerDistance[x][y] < curDistance)\n {\n curDistance = dangerDistance[x][y];\n direction = i;\n distanceToBomber = distance[x][y];\n } else if (dangerDistance[x][y] == curDistance)\n {\n if (distanceToBomber == -1 || distanceToBomber > distance[x][y])\n {\n direction = i;\n distanceToBomber = distance[x][y];\n }\n }\n }\n if (direction == -1) direction = random.nextInt(4);\n allowSpeedUp = true;\n return direction;\n }\n // or not, it will try to catch bomber\n else\n {\n /*\n System.out.println(\"x = \" + _x + \"y = \" + _y);\n for(int i = 0; i < n; i++) System.out.printf(\"%2d \",i);\n System.out.println();\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.printf(\"%2d \",distance[i][j]);\n System.out.println();\n }\n System.out.println();\n System.out.println();\n */\n int direction = -1;\n int[] die = new int[4];\n for (int i = 0; i < 4; i++)\n die[i] = 0;\n int curDistance = distance[_x][_y];\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y))\n {\n die[i] = 1;\n continue;\n }\n ;\n if (inDanger[x][y])\n {\n die[i] = 2;\n continue;\n }\n if (distance[x][y] == -1) continue;\n if (distance[x][y] < curDistance)\n {\n curDistance = distance[x][y];\n direction = i;\n }\n }\n if(curDistance < 4) allowSpeedUp = true;\n else allowSpeedUp = false; //TODO: TEST :))\n if (direction == -1)\n {\n for (int i = 0; i < 4; i++)\n if (die[i] == 0) return i;\n for (int i = 0; i < 4; i++)\n if (die[i] == 1) return i;\n return 0;\n } else return direction;\n }\n }", "public float getDirection()\r\n {\r\n return direction;\r\n }", "public DIRECTION getDirection(int index) {\n if (gameData.charAt(index) == 'L') {\n return DIRECTION.LEFT;\n } else if (gameData.charAt(index) == 'R') {\n return DIRECTION.RIGHT;\n } else {\n System.out.println(\"GameData.getDirection: ERROR GETTING DIRECTION!!!!\");\n }\n return null;\n }", "public int getNorth() {\n return north;\n }", "public Direction getDirection()\n {\n return dir;\n }", "public int getChnlWalkway(){\n return this.mFarm.getChnlWalkway();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.DirectionOfTravelPEL getDirectionOfTravel();", "@Test\n\t\t\tpublic void doorwayAdjacentSpots() {\n\t\t\t\t//Tests a left doorway for the spot to its left\n\t\t\t\tSet<BoardCell> testList = board.getAdjList(0, 18);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(0, 17)));\n\t\t\t\t//Tests a right door for the spot on its right\n\t\t\t\ttestList = board.getAdjList(17, 4);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(17, 5)));\n\t\t\t\t//Tests a down door for the space below\n\t\t\t\ttestList = board.getAdjList(5, 15);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(6, 15)));\n\t\t\t\t//Tests an up door with the space above\n\t\t\t\ttestList = board.getAdjList(14, 9);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(13, 9)));\n\t\t\t\n\t\t\t}", "public void moveInDirection(Direction dir, Unit unit){\n\t\t if(dir!=null){\n\t\t\t if(debug){\n\t\t\t\t System.out.println(\"about to move unit \"+unitID+\" \"+dir.name());\n\t\t\t\t System.out.println(\"currentLocation \"+unit.location().mapLocation());\n\t\t\t }\n if(dir.equals(Direction.Southwest)){\n \tif (gc.canMove(unitID, Direction.Southwest)) {\n gc.moveRobot(unitID, Direction.Southwest);\n System.out.println(\"moving south west\");\n \t}\n }else if(dir.equals(Direction.Southeast)){\n \tif (gc.canMove(unitID, Direction.Southeast)) {\n gc.moveRobot(unitID, Direction.Southeast);\n System.out.println(\"moving south east\");\n \t}\n }else if(dir.equals(Direction.South)){\n \tif (gc.canMove(unitID, Direction.South)) {\n gc.moveRobot(unitID, Direction.South);\n System.out.println(\"moving south\");\n \t}\n }\n else if(dir.equals(Direction.East)){\n \tif (gc.canMove(unitID, Direction.East)) {\n gc.moveRobot(unitID, Direction.East);\n System.out.println(\"moving east\");\n \t}\n }\n else if(dir.equals(Direction.West)){\n \tif (gc.canMove(unitID, Direction.West)) {\n gc.moveRobot(unitID, Direction.West);\n System.out.println(\"moving west\");\n \t}\n }else if(dir.equals(Direction.Northeast)){\n \tif (gc.canMove(unitID, Direction.Northeast)) {\n gc.moveRobot(unitID, Direction.Northeast);\n System.out.println(\"moving north east\");\n \t}\n }else if(dir.equals(Direction.Northwest)){\n \tif (gc.canMove(unitID, Direction.Northwest)) {\n gc.moveRobot(unitID, Direction.Northwest);\n System.out.println(\"moving north west\");\n \t}\n }else if(dir.equals(Direction.North)){\n \tif (gc.canMove(unitID, Direction.North)) {\n gc.moveRobot(unitID, Direction.North);\n System.out.println(\"moving north\");\n \t}\n }\n }\n\t\t\n\t}", "public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "public Point nextRoom() {\n Point nr;\n switch (direction) {\n case NORTH:\n nr = new Point(0, -1);\n break;\n case SOUTH:\n nr = new Point(0, 1);\n break;\n case EAST:\n nr = new Point(1, 0);\n break;\n case WEST:\n nr = new Point(-1, 0);\n break;\n default:\n nr = new Point(0, 0);\n break;\n }\n return nr;\n }", "public HashMap<String, Way> getWays() {\n return ways;\n }", "public void setAdjacent()\r\n {\n \t\r\n adjacentTiles = new Tile[6];\r\n \r\n \r\n //Driver.map[VERT][HOR]\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos > 1) //topleft\r\n {\r\n \ttopLeft = Driver.map[verticalPos + 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \ttopLeft = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length - 2) //top\r\n {\r\n \ttop = Driver.map[verticalPos + 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \ttop = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos < Driver.map[0].length) //topright\r\n {\r\n \ttopRight = Driver.map[verticalPos + 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \ttopRight = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos < Driver.map[0].length) //bottomright\r\n {\r\n \tbottomRight = Driver.map[verticalPos - 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \tbottomRight = null;\r\n }\r\n \r\n if(verticalPos > 2) //bottom\r\n {\r\n \tbottom = Driver.map[verticalPos - 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \tbottom = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos > 1) //botttomLeft\r\n {\r\n \tbottomLeft = Driver.map[verticalPos - 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \tbottomLeft = null;\r\n }\r\n \t\r\n \r\n adjacentTiles[0] = topLeft;\r\n adjacentTiles[1] = top;\r\n adjacentTiles[2] = topRight;\r\n adjacentTiles[3] = bottomRight;\r\n adjacentTiles[4] = bottom;\r\n adjacentTiles[5] = bottomLeft;\r\n \r\n \r\n// System.out.print(\"main tile \" + getHor() + \", \" + getVert() + \" \");\r\n// for(int i = 0; i < adjacentTiles.length; i++)\r\n// {\r\n// \tif( adjacentTiles[i] != null)\r\n// \t\tSystem.out.print(adjacentTiles[i].getHor() + \", \" + adjacentTiles[i].getVert() + \" | \");\r\n// \telse\r\n// \t\tSystem.out.print(\"null \");\r\n// }\r\n// System.out.println();\r\n \r\n }" ]
[ "0.70904934", "0.6707342", "0.6651103", "0.65964687", "0.6504645", "0.6413884", "0.6392469", "0.6217869", "0.61548036", "0.61371505", "0.611935", "0.6114538", "0.60949385", "0.6059871", "0.60467", "0.59913504", "0.5986564", "0.5973792", "0.5949041", "0.59422857", "0.59221345", "0.59124523", "0.5899019", "0.5878881", "0.5877014", "0.58766115", "0.5863567", "0.5854706", "0.5813127", "0.5812904", "0.57980835", "0.5795298", "0.5794644", "0.57724166", "0.5757533", "0.57338804", "0.57275504", "0.57123893", "0.5699873", "0.5699123", "0.5687834", "0.56864077", "0.56859004", "0.56842357", "0.56815994", "0.5671927", "0.5669536", "0.5668043", "0.5663876", "0.56374574", "0.56159586", "0.5611681", "0.5608946", "0.55859303", "0.557404", "0.5571496", "0.55559254", "0.5554452", "0.55440456", "0.55263025", "0.5512763", "0.55075926", "0.55024743", "0.55003244", "0.5491042", "0.5490029", "0.5488971", "0.5479838", "0.5479838", "0.5479687", "0.54785615", "0.5474125", "0.54642564", "0.545799", "0.5457192", "0.54517514", "0.5445411", "0.54437494", "0.544369", "0.5437638", "0.54352665", "0.5429496", "0.5412823", "0.54110223", "0.54074484", "0.54063374", "0.5405056", "0.5404293", "0.5399928", "0.5399878", "0.53938323", "0.537163", "0.53626597", "0.5358011", "0.5358008", "0.5353321", "0.5350927", "0.5349464", "0.53477526", "0.5344729", "0.53383917" ]
0.0
-1
/ / / / / / / / / / /
public Header getContentEncoding() { /* 89 */ return this.contentEncoding; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "public double getWidth() {\n return this.size * 2.0; \n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void getTile_B8();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public String ring();", "int width();", "public void gored() {\n\t\t\n\t}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public abstract String division();", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\n public void bfs() {\n\n }", "long getWidth();", "double getNewWidth();", "static int getNumPatterns() { return 64; }", "public int my_leaf_count();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo33732Px();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "double seBlesser();", "int getTribeSize();", "Operations operations();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public double getPerimiter(){return (2*height +2*width);}", "public int getWidth(){\n return width;\n }", "public void leerPlanesDietas();", "public void skystonePos4() {\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public String getRing();", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void SubRect(){\n\t\n}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public abstract double getBaseWidth();", "protected int parent(int i) { return (i - 1) / 2; }", "public static int size_parent() {\n return (8 / 8);\n }", "static void pyramid(){\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int expand();", "public abstract int getSpotsNeeded();", "Parallelogram(){\n length = width = height = 0;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "void walk() {\n\t\t\n\t}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public int getWidth()\n {return width;}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "long getMid();", "long getMid();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "int depth();", "int depth();", "int getSpriteArraySize();", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "String directsTo();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int getWidth1();", "public String getRingback();", "void sharpen();", "void sharpen();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.55392164", "0.5443003", "0.52042043", "0.51812166", "0.5094322", "0.5058843", "0.5053321", "0.50448096", "0.5025622", "0.5012025", "0.50120205", "0.50111294", "0.5003863", "0.49984357", "0.49974853", "0.4984652", "0.49787974", "0.4978001", "0.49672434", "0.4957116", "0.49109024", "0.4910386", "0.48967022", "0.4876905", "0.487085", "0.48654708", "0.4841933", "0.4841014", "0.48407227", "0.4835763", "0.48317468", "0.48255932", "0.48220322", "0.48146325", "0.48097908", "0.48060393", "0.48055384", "0.48047745", "0.4793867", "0.47932616", "0.4788294", "0.47812766", "0.47791523", "0.47715652", "0.47693276", "0.47665676", "0.47615334", "0.47570154", "0.47515267", "0.4751021", "0.4750375", "0.47483787", "0.47476646", "0.4747093", "0.47461408", "0.47414568", "0.47334513", "0.47322845", "0.47316003", "0.47276506", "0.4726742", "0.47263405", "0.47229314", "0.47138077", "0.47085243", "0.47076228", "0.47040048", "0.47033733", "0.4696212", "0.46957305", "0.46948212", "0.46947682", "0.46868473", "0.46863204", "0.46863204", "0.4686214", "0.46861508", "0.4686107", "0.4686107", "0.4682487", "0.46823722", "0.46823463", "0.468075", "0.46747723", "0.4672262", "0.46679607", "0.466698", "0.46668187", "0.46668187", "0.46642795", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412" ]
0.0
-1
/ / / / / / / / / /
public boolean isChunked() { /* 101 */ return this.chunked; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "double passer();", "int getWidth() {return width;}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "public String ring();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void gored() {\n\t\t\n\t}", "public void getTile_B8();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public String toString(){ return \"DIV\";}", "int width();", "public abstract String division();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "@Override\n public void bfs() {\n\n }", "public int getEdgeCount() \n {\n return 3;\n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\npublic void processDirection() {\n\t\n}", "double getNewWidth();", "long getWidth();", "public int generateRoshambo(){\n ;]\n\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double volume(){\n return width*height*depth;\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int my_leaf_count();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "Operations operations();", "static int getNumPatterns() { return 64; }", "void mo33732Px();", "public double getPerimiter(){return (2*height +2*width);}", "double seBlesser();", "public void SubRect(){\n\t\n}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public int getWidth(){\n return width;\n }", "static void pyramid(){\n\t}", "public void leerPlanesDietas();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public String getRing();", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "void walk() {\n\t\t\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "int getTribeSize();", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "public abstract double getBaseWidth();", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "void sharpen();", "void sharpen();", "double getPerimeter(){\n return 2*height+width;\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "int expand();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static int size_parent() {\n return (8 / 8);\n }", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "String directsTo();", "int depth();", "int depth();", "int getWidth1();", "public abstract int getSpotsNeeded();", "public int upright();", "public void stg() {\n\n\t}", "int getR();", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "public String getRingback();", "double getWidth();", "double getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5540896", "0.5446543", "0.5227331", "0.52141076", "0.5111389", "0.50963986", "0.50654864", "0.5038032", "0.50336593", "0.501189", "0.50033337", "0.5002645", "0.4999724", "0.4997505", "0.49938273", "0.4988672", "0.4982446", "0.49785286", "0.4967535", "0.49578318", "0.4915642", "0.49043542", "0.4896837", "0.48817068", "0.48615584", "0.48489416", "0.4838888", "0.48292333", "0.48239383", "0.48229367", "0.48212478", "0.48193154", "0.48124096", "0.48111546", "0.4806745", "0.4804178", "0.48025957", "0.47942734", "0.4787015", "0.47851548", "0.47835702", "0.47725245", "0.47664967", "0.476185", "0.4760751", "0.47598377", "0.4759025", "0.4757917", "0.47506076", "0.47504088", "0.47497043", "0.47486544", "0.4747894", "0.4746228", "0.4741946", "0.47376034", "0.47327974", "0.47300422", "0.4727591", "0.47272107", "0.47263286", "0.47261053", "0.47214398", "0.47212386", "0.47205597", "0.47184741", "0.47169027", "0.47127956", "0.47109538", "0.47052673", "0.47015747", "0.47015747", "0.47005445", "0.46963036", "0.46961927", "0.46945545", "0.46940103", "0.46804753", "0.4678816", "0.46784258", "0.4676913", "0.46759227", "0.46728146", "0.46719387", "0.46686554", "0.46686554", "0.4666156", "0.46614605", "0.46611053", "0.466004", "0.46565068", "0.46531367", "0.4652937", "0.4652573", "0.4652573", "0.46524948", "0.46524948", "0.46524948", "0.46524948", "0.46524948", "0.46524948" ]
0.0
-1
/ / / / / / / / / / /
public void setContentType(Header contentType) { /* 114 */ this.contentType = contentType; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.size * 2.0; \n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void getTile_B8();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public String ring();", "public void gored() {\n\t\t\n\t}", "int width();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public abstract String division();", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\n public void bfs() {\n\n }", "long getWidth();", "double getNewWidth();", "static int getNumPatterns() { return 64; }", "public int my_leaf_count();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo33732Px();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "double seBlesser();", "int getTribeSize();", "Operations operations();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public double getPerimiter(){return (2*height +2*width);}", "public int getWidth(){\n return width;\n }", "public void leerPlanesDietas();", "public void skystonePos4() {\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public String getRing();", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void SubRect(){\n\t\n}", "public abstract double getBaseWidth();", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "static void pyramid(){\n\t}", "public static int size_parent() {\n return (8 / 8);\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int expand();", "public abstract int getSpotsNeeded();", "Parallelogram(){\n length = width = height = 0;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public int getWidth()\n {return width;}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "int depth();", "int depth();", "long getMid();", "long getMid();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "String directsTo();", "int getSpriteArraySize();", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int getWidth1();", "public String getRingback();", "void sharpen();", "void sharpen();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5540745", "0.5444497", "0.5205538", "0.5182055", "0.5094161", "0.50587463", "0.5053648", "0.50452423", "0.50258267", "0.50122976", "0.5012191", "0.50119436", "0.50044477", "0.49989554", "0.49980396", "0.49847832", "0.49795863", "0.49785143", "0.4966902", "0.49588826", "0.491195", "0.49114203", "0.48977208", "0.48783925", "0.4871045", "0.4866241", "0.48425886", "0.48414746", "0.48404667", "0.48359194", "0.48321852", "0.48264593", "0.48214784", "0.48163307", "0.48100394", "0.48063412", "0.48053867", "0.4804083", "0.4794161", "0.47927848", "0.4788403", "0.47818738", "0.47784477", "0.47709942", "0.4770795", "0.4766995", "0.47618645", "0.47570822", "0.4752602", "0.4751775", "0.4751225", "0.47489616", "0.47487566", "0.474798", "0.47473353", "0.47425666", "0.47340578", "0.47319007", "0.47315216", "0.4729219", "0.4727721", "0.47272617", "0.47233397", "0.47144157", "0.47093782", "0.47075313", "0.47051412", "0.47038573", "0.46964964", "0.4695774", "0.46953171", "0.46950933", "0.46876776", "0.46871465", "0.46871465", "0.46869987", "0.46869987", "0.4686779", "0.46865502", "0.46834555", "0.46825886", "0.46823603", "0.46798244", "0.4674724", "0.46727514", "0.46678638", "0.4667731", "0.4665962", "0.4665962", "0.46643248", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606" ]
0.0
-1
/ / / / / / / / /
public void setContentType(String ctString) { /* */ BasicHeader basicHeader; /* 126 */ Header h = null; /* 127 */ if (ctString != null) { /* 128 */ basicHeader = new BasicHeader("Content-Type", ctString); /* */ } /* 130 */ setContentType((Header)basicHeader); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\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\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / / / /
public void setContentEncoding(Header contentEncoding) { /* 143 */ this.contentEncoding = contentEncoding; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "public double getWidth() {\n return this.size * 2.0; \n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void getTile_B8();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public String ring();", "int width();", "public void gored() {\n\t\t\n\t}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public abstract String division();", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\n public void bfs() {\n\n }", "long getWidth();", "double getNewWidth();", "static int getNumPatterns() { return 64; }", "public int my_leaf_count();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo33732Px();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "double seBlesser();", "int getTribeSize();", "Operations operations();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public double getPerimiter(){return (2*height +2*width);}", "public int getWidth(){\n return width;\n }", "public void leerPlanesDietas();", "public void skystonePos4() {\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public String getRing();", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void SubRect(){\n\t\n}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public abstract double getBaseWidth();", "protected int parent(int i) { return (i - 1) / 2; }", "public static int size_parent() {\n return (8 / 8);\n }", "static void pyramid(){\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int expand();", "public abstract int getSpotsNeeded();", "Parallelogram(){\n length = width = height = 0;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "void walk() {\n\t\t\n\t}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public int getWidth()\n {return width;}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "long getMid();", "long getMid();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "int depth();", "int depth();", "int getSpriteArraySize();", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "String directsTo();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int getWidth1();", "public String getRingback();", "void sharpen();", "void sharpen();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.55392164", "0.5443003", "0.52042043", "0.51812166", "0.5094322", "0.5058843", "0.5053321", "0.50448096", "0.5025622", "0.5012025", "0.50120205", "0.50111294", "0.5003863", "0.49984357", "0.49974853", "0.4984652", "0.49787974", "0.4978001", "0.49672434", "0.4957116", "0.49109024", "0.4910386", "0.48967022", "0.4876905", "0.487085", "0.48654708", "0.4841933", "0.4841014", "0.48407227", "0.4835763", "0.48317468", "0.48255932", "0.48220322", "0.48146325", "0.48097908", "0.48060393", "0.48055384", "0.48047745", "0.4793867", "0.47932616", "0.4788294", "0.47812766", "0.47791523", "0.47715652", "0.47693276", "0.47665676", "0.47615334", "0.47570154", "0.47515267", "0.4751021", "0.4750375", "0.47483787", "0.47476646", "0.4747093", "0.47461408", "0.47414568", "0.47334513", "0.47322845", "0.47316003", "0.47276506", "0.4726742", "0.47263405", "0.47229314", "0.47138077", "0.47085243", "0.47076228", "0.47040048", "0.47033733", "0.4696212", "0.46957305", "0.46948212", "0.46947682", "0.46868473", "0.46863204", "0.46863204", "0.4686214", "0.46861508", "0.4686107", "0.4686107", "0.4682487", "0.46823722", "0.46823463", "0.468075", "0.46747723", "0.4672262", "0.46679607", "0.466698", "0.46668187", "0.46668187", "0.46642795", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412", "0.46641412" ]
0.0
-1
/ / / / / / / / /
public void setContentEncoding(String ceString) { /* */ BasicHeader basicHeader; /* 155 */ Header h = null; /* 156 */ if (ceString != null) { /* 157 */ basicHeader = new BasicHeader("Content-Encoding", ceString); /* */ } /* 159 */ setContentEncoding((Header)basicHeader); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\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\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / / / / / / / / / /
public void setChunked(boolean b) { /* 178 */ this.chunked = b; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "double passer();", "public Integer getWidth(){return this.width;}", "int getWidth() {return width;}", "static int getNumPatterns() { return 64; }", "int width();", "public abstract void bepaalGrootte();", "public void divide() {\n\t\t\n\t}", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "private int rightChild(int i){return 2*i+2;}", "public void gored() {\n\t\t\n\t}", "int getTribeSize();", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public int getEdgeCount() \n {\n return 3;\n }", "void mo33732Px();", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "long getWidth();", "public String ring();", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "double seBlesser();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "public double getWidth() { return _width<0? -_width : _width; }", "double getNewWidth();", "public int generateRoshambo(){\n ;]\n\n }", "public String toString(){ return \"DIV\";}", "public abstract int getSpotsNeeded();", "public static int size_parent() {\n return (8 / 8);\n }", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "public int my_leaf_count();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "int getSize ();", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "@Override\n public void bfs() {\n\n }", "int getSpriteArraySize();", "long getMid();", "long getMid();", "public static int size_parentId() {\n return (16 / 8);\n }", "public int getTakeSpace() {\n return 0;\n }", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract String division();", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "int expand();", "public void skystonePos4() {\n }", "public void leerPlanesDietas();", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int getWidth(){\n return width;\n }", "@Override\npublic void processDirection() {\n\t\n}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public abstract double getBaseWidth();", "@Override\n\tprotected void interr() {\n\t}", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int length() { return 1+maxidx; }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public int getWidth()\n {return width;}", "public String getRing();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "Operations operations();", "@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}", "private void poetries() {\n\n\t}", "public void method_4270() {}", "public static int offset_parent() {\n return (40 / 8);\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "int align();", "int depth();", "int depth();", "public double getPerimiter(){return (2*height +2*width);}", "double volume(){\n return width*height*depth;\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public String getRingback();", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public int width();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "String directsTo();", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public double width() { return _width; }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }", "Parallelogram(){\n length = width = height = 0;\n }", "public void Exterior() {\n\t\t\r\n\t}", "static int size_of_inx(String passed){\n\t\treturn 1;\n\t}", "int getWidth()\n {\n return width;\n }", "static int size_of_xra(String passed){\n\t\treturn 1;\n\t}", "public int get_resource_distance() {\n return 1;\r\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5398624", "0.5302166", "0.50988036", "0.50856084", "0.50632095", "0.505399", "0.50325966", "0.5016769", "0.49988022", "0.49945837", "0.49838054", "0.49793383", "0.49702466", "0.4950869", "0.4929731", "0.49185315", "0.4905335", "0.49045703", "0.49035764", "0.48944765", "0.48881772", "0.48841313", "0.48697373", "0.48662102", "0.4859132", "0.48571044", "0.48566234", "0.48479423", "0.48443612", "0.48427612", "0.48377773", "0.48328573", "0.48282477", "0.4820829", "0.4818008", "0.4811484", "0.48112682", "0.48014867", "0.47940284", "0.4791919", "0.47814164", "0.47804675", "0.47804675", "0.4775813", "0.47685337", "0.47678813", "0.47635207", "0.4763394", "0.47630307", "0.47621614", "0.4758771", "0.47562164", "0.47521442", "0.4743488", "0.4742876", "0.4736554", "0.4731526", "0.47295758", "0.4725888", "0.4724361", "0.4723426", "0.4716053", "0.47099674", "0.47095725", "0.47046798", "0.4700592", "0.4700235", "0.4700144", "0.46979344", "0.46940005", "0.46891275", "0.4686902", "0.4686528", "0.46803764", "0.46798548", "0.46798548", "0.46737376", "0.46736604", "0.46706793", "0.46694884", "0.4667834", "0.4666972", "0.46658915", "0.46651667", "0.46623358", "0.46619323", "0.4661325", "0.4660259", "0.46581724", "0.46574423", "0.46535093", "0.46533716", "0.46520585", "0.4649601", "0.46495068", "0.4648742", "0.463668", "0.463668", "0.463668", "0.463668", "0.463668" ]
0.0
-1
/ / / / / / /
@Deprecated /* */ public void consumeContent() throws IOException {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public void gored() {\n\t\t\n\t}", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public abstract String division();", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "int getWidth() {return width;}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int width();", "Operations operations();", "void sharpen();", "void sharpen();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "static void pyramid(){\n\t}", "public Integer getWidth(){return this.width;}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void skystonePos4() {\n }", "void mo33732Px();", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "public void SubRect(){\n\t\n}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "void walk() {\n\t\t\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public double getWidth() { return _width<0? -_width : _width; }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void stg() {\n\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\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\tSystem.out.println();\n\t\t}\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double getPerimeter(){\n return 2*height+width;\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public double getPerimiter(){return (2*height +2*width);}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "double getNewWidth();", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double seBlesser();", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public void leerPlanesDietas();", "@Override\r\n public void draw()\r\n {\n\r\n }", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void block(Directions dir);", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public String getRing();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth(){\n return width;\n }", "public int upright();", "protected int parent(int i) { return (i - 1) / 2; }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "double volume() {\n\treturn width*height*depth;\n}", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "public void snare();", "void ringBell() {\n\n }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public void skystonePos2() {\n }", "public int my_leaf_count();", "@Override\n\tpublic void draw3() {\n\n\t}" ]
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.48604724", "0.48558092", "0.48546165", "0.48490012", "0.4843668", "0.4843668", "0.48420057", "0.4839597", "0.4832105", "0.4817357", "0.481569", "0.48122767", "0.48085573", "0.48065376", "0.48032433", "0.48032212", "0.4799707", "0.4798766", "0.47978994", "0.47978172", "0.47921672", "0.47903922", "0.4790111", "0.47886384", "0.47843018", "0.47837785", "0.47828907", "0.47826976", "0.4776919", "0.47767594", "0.47767594", "0.47766045", "0.4764252", "0.47560593", "0.4753577", "0.4752732", "0.47510985", "0.47496924", "0.47485355", "0.4748455", "0.4746839", "0.4744132", "0.47203988", "0.4713808", "0.4711382", "0.47113234", "0.47096533", "0.47075558", "0.47029856", "0.4701444", "0.47014076", "0.46973658", "0.46969122", "0.4692372", "0.46897912", "0.4683049", "0.4681391", "0.46810925", "0.46750805", "0.46722633", "0.46681988", "0.466349", "0.46618745", "0.46606532", "0.46533036", "0.46485004", "0.46464643", "0.46447286", "0.46447286", "0.46438906", "0.46405315", "0.46397775", "0.4634643", "0.46339533", "0.4633923", "0.4632826", "0.4631328", "0.46299514", "0.46285036", "0.46276402", "0.4625902" ]
0.0
-1
/ / / / / / /
public String toString() { /* 195 */ StringBuilder sb = new StringBuilder(); /* 196 */ sb.append('['); /* 197 */ if (this.contentType != null) { /* 198 */ sb.append("Content-Type: "); /* 199 */ sb.append(this.contentType.getValue()); /* 200 */ sb.append(','); /* */ } /* 202 */ if (this.contentEncoding != null) { /* 203 */ sb.append("Content-Encoding: "); /* 204 */ sb.append(this.contentEncoding.getValue()); /* 205 */ sb.append(','); /* */ } /* 207 */ long len = getContentLength(); /* 208 */ if (len >= 0L) { /* 209 */ sb.append("Content-Length: "); /* 210 */ sb.append(len); /* 211 */ sb.append(','); /* */ } /* 213 */ sb.append("Chunked: "); /* 214 */ sb.append(this.chunked); /* 215 */ sb.append(']'); /* 216 */ return sb.toString(); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public void gored() {\n\t\t\n\t}", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public abstract String division();", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "int getWidth() {return width;}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "int width();", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "Operations operations();", "void sharpen();", "void sharpen();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "static void pyramid(){\n\t}", "public Integer getWidth(){return this.width;}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "void mo33732Px();", "public void skystonePos4() {\n }", "public void SubRect(){\n\t\n}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void walk() {\n\t\t\n\t}", "public double getWidth() { return _width<0? -_width : _width; }", "public void stg() {\n\n\t}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\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 {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\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\tSystem.out.println();\n\t\t}\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double getPerimeter(){\n return 2*height+width;\n }", "public double getPerimiter(){return (2*height +2*width);}", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "double getNewWidth();", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double seBlesser();", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public void leerPlanesDietas();", "@Override\r\n public void draw()\r\n {\n\r\n }", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void block(Directions dir);", "public String getRing();", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public int getWidth(){\n return width;\n }", "public int upright();", "protected int parent(int i) { return (i - 1) / 2; }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public void snare();", "double volume() {\n\treturn width*height*depth;\n}", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "void ringBell() {\n\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public void skystonePos2() {\n }", "public int my_leaf_count();", "@Override\n\tpublic void draw3() {\n\n\t}" ]
[ "0.54569614", "0.5368001", "0.53633887", "0.5257851", "0.5214055", "0.5173116", "0.51397747", "0.5088974", "0.5074065", "0.50495464", "0.50273895", "0.4998961", "0.49731052", "0.49444273", "0.49405497", "0.49384844", "0.49107248", "0.4895794", "0.4873521", "0.48623255", "0.48614675", "0.48556954", "0.48544264", "0.48497277", "0.4845457", "0.4845457", "0.48410392", "0.48396412", "0.4833956", "0.48187226", "0.48176584", "0.48138356", "0.4810554", "0.4808166", "0.4805954", "0.4805166", "0.47992682", "0.47986695", "0.47983608", "0.47976676", "0.47920913", "0.47906682", "0.4790145", "0.4789585", "0.4784618", "0.47837234", "0.47833133", "0.47828907", "0.47784325", "0.47784325", "0.47773144", "0.47770143", "0.476282", "0.47583622", "0.47538778", "0.4753789", "0.4751011", "0.4749639", "0.47495306", "0.47485998", "0.47474122", "0.47448263", "0.4722112", "0.47145966", "0.47130358", "0.4711283", "0.47102427", "0.47091904", "0.47019714", "0.47016394", "0.47013664", "0.4700065", "0.46983528", "0.46942216", "0.46890047", "0.4684722", "0.4683382", "0.46804076", "0.46751797", "0.46696374", "0.46693942", "0.46644765", "0.46623433", "0.46608487", "0.46548173", "0.46484488", "0.46463764", "0.4646314", "0.4646314", "0.46447775", "0.4641397", "0.46388793", "0.46354964", "0.46353757", "0.46345162", "0.46333185", "0.46317786", "0.4630475", "0.46303135", "0.46284002", "0.4627158" ]
0.0
-1
TODO Autogenerated method stub
@Override protected WineFragmentAdapter doInBackground( FragmentManager... params) { return new WineFragmentAdapter(params[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onPostExecute(WineFragmentAdapter result) { super.onPostExecute(result); mAdapter = result; mViewPager.setAdapter(mAdapter); int position = getArguments().getInt(SELECT_WINE_INDEX, 0); // Toast.makeText(getActivity(), "vino " + position, // Toast.LENGTH_SHORT) // .show(); showWine(position); proDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by Administrator on 2018/2/3 0003.
public interface IgetCKXX { public Map<String,String> getCKXX(String idnum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\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 }", "protected MetadataUGWD() {/* intentionally empty block */}", "public Pitonyak_09_02() {\r\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo12930a() {\n }", "private TMCourse() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo55254a() {\n }", "private Singletion3() {}", "@Override\n public int describeContents() { return 0; }", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "protected void mo6255a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\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 create() {\n\n\t}", "public void mo1531a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "zzang mo29839S() throws RemoteException;", "@Override\n protected void initialize() \n {\n \n }", "public void mo9848a() {\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "public void mo21877s() {\n }", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "private void m50366E() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private static void oneUserExample()\t{\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private UsineJoueur() {}", "public contrustor(){\r\n\t}", "public void mo3376r() {\n }", "public void autoDetails() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "public static void listing5_14() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n public int getVersion() {\n return 0;\n }", "public void mo21878t() {\n }", "@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 }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n void init() {\n }", "private void kk12() {\n\n\t}" ]
[ "0.60665405", "0.5926349", "0.5795968", "0.57409644", "0.5698483", "0.56660366", "0.5652111", "0.56463873", "0.5641467", "0.55915827", "0.55915827", "0.55915827", "0.55915827", "0.55915827", "0.55915827", "0.55915827", "0.5590777", "0.5581503", "0.5576103", "0.55596995", "0.5554261", "0.5542723", "0.55339545", "0.55339545", "0.55325866", "0.55322474", "0.55166924", "0.5506722", "0.5502883", "0.55005157", "0.54848975", "0.5479909", "0.54717565", "0.5471471", "0.5469391", "0.54680103", "0.5465091", "0.5464575", "0.544329", "0.5439751", "0.5439123", "0.5428916", "0.54186416", "0.54039425", "0.53994787", "0.5399007", "0.5399007", "0.53926814", "0.5383737", "0.53791714", "0.5370034", "0.536745", "0.5339096", "0.5338892", "0.53357095", "0.53357095", "0.53357095", "0.53357095", "0.53357095", "0.53357095", "0.5335043", "0.5327466", "0.5324541", "0.5323612", "0.5321861", "0.5318728", "0.5310841", "0.5310824", "0.5305497", "0.5297534", "0.52920073", "0.52887297", "0.5272495", "0.5263979", "0.5263979", "0.52616394", "0.5258712", "0.52553576", "0.52541715", "0.525012", "0.5246415", "0.52433246", "0.5240967", "0.5238699", "0.52376485", "0.52305406", "0.5229498", "0.5224684", "0.5224439", "0.5224216", "0.52220625", "0.5219908", "0.52181554", "0.52181554", "0.52181554", "0.52181554", "0.52181554", "0.5215603", "0.5215348", "0.5214416", "0.5208042" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int t = Integer.parseInt(br.readLine()); int a = 0, b = 0; for (int i = 0; i < t; i++) { StringTokenizer st = new StringTokenizer(br.readLine()); a = Integer.parseInt(st.nextToken()); b = Integer.parseInt(st.nextToken()); bw.write(solution(a, b) + "\n"); } bw.flush(); bw.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int getContentView() { return R.layout.activity_home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onDataFinish(Bundle savedInstanceState) { super.onDataFinish(savedInstanceState); findViewById(R.id.top_back).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub finish(); } }); try { mCatalogObj = MConfig.CatalogList.get(getIntent().getIntExtra("index", 0)); mCatalogId = getIntent().getStringExtra("ids"); state = getIntent().getStringExtra("state"); title = getIntent().getStringExtra("title"); if (TextUtils.isEmpty(state)) { titlebar.setVisibility(View.VISIBLE); } else { mCatalogId = state; titlebar.setVisibility(View.GONE); } } catch (Exception e) { if (e != null) { Log.i("dzy", e.toString()); } finish(); } initSliding(false); if (!TextUtils.isEmpty(title)) { setTitle(title); } else { setTitle(mCatalogObj.name); } // setModuleMenuSelectedItem(mCatalogObj.index); mTitleBarAddBtn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO } }); inflater = LayoutInflater.from(this); if (mImageCarousel == null) { mImageCarousel = new AdvancedImageCarousel(this); mImageCarousel.setDefaultImage(R.drawable.default_thumbnail_banner); mImageCarousel.setLoadingImage(R.drawable.default_thumbnail_banner); mImageCarousel.setErrorImage(R.drawable.default_thumbnail_banner); mImageCarousel.setAspectRatio(1.78f); mImageCarousel.setScaleType(ScaleType.CENTER_CROP); mImageCarousel.setIntervalTime(3000); mImageCarousel.setDotViewMargin(0, 0, ScaleConversion.dip2px(this, 10), ScaleConversion.dip2px(this, 8)); } mImageCarousel.removeAllCarouselView(); mImageCarousel.setVisibility(View.GONE); mImageCarouselLayout = new LinearLayout(this); mImageCarouselLayout.setGravity(Gravity.CENTER); mImageCarouselLayout.addView(mImageCarousel); mListView.addHeaderView(mImageCarouselLayout); mImageCarouselBottomView = (RelativeLayout) inflater.inflate(R.layout.layout_carousel_bottomview, null); mImageCarouselBottomViewIcon = (ImageView) mImageCarouselBottomView.findViewById(R.id.icon); mImageCarouselBottomViewTitle = (TextView) mImageCarouselBottomView.findViewById(R.id.title); mImageCarousel.addBottomView(mImageCarouselBottomView); setupTabBar(); SharedPreferences adManager = getSharedPreferences("ad_manager", 0); if (adManager.getBoolean("banner_enable", false)) { new Handler().postDelayed(new Runnable() { @Override public void run() { new AdBanner(HomeActivity.this, mCatalogObj.id, mAdLayout, mAdImage, mAdCloseBtn, false); } }, 5000); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { finish(); }
{ "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
Retrieve server list from config file and set it up for server setting helper
private void setServerList() { ArrayList<ServerObjInfo> _serverList = ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE); ServerSettingHelper.getInstance().setServerInfoList(_serverList); int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, "-1")); mSetting.setDomainIndex(String.valueOf(selectedServerIdx)); mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setOldServerList(String oldConfigFile) {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromOldConfigFile(oldConfigFile);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n if (_serverList.size() == 0) return;\n /* force app to start login screen */\n mSetting.setDomainIndex(\"0\");\n mSetting.setCurrentServer(_serverList.get(0));\n _serverList.get(0).isAutoLoginEnabled = false;\n\n /* persist the configuration */\n new Thread(new Runnable() {\n @Override\n public void run() {\n Log.i(TAG, \"persisting config\");\n SettingUtils.persistServerSetting(mContext);\n }\n }).start();\n }", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "public void setDnsServersApp(String[] servers);", "public void setDnsServers(String[] servers);", "@Override\n\tpublic String[] GetFileServers() {\n\t\tString fservers[]=new String[list.size()];\n\t\tint i=0;\n\t\tfor(String s:list){\n\t\t\tfservers[i++]=s;\n\t\t}\n\t\treturn fservers;\n\t}", "public List<Server> getServerList() {\n return serverList;\n }", "private String getZkServers(ServletContext context){\n Configuration config = new Configuration();\n config.addResource(\"pxf-site.xml\");\n String zk_hosts = config.get(\"zookeeper\");\n if(LOG.isDebugEnabled())\n LOG.debug(\"zookeeper server is :\" + zk_hosts);\n\n return zk_hosts;\n }", "protected void init(Iterable<String> servers) {}", "public void setupWebServers(){\n if(rwsServer == null || csaServer == null){\n String serverURL = getFirstAttribute(cn,FRONTEND_ADDRESS_TAG);\n setupWebServers(serverURL);\n }\n }", "public List<String> getCPanelServerList() {\n\t\tString cPanelServerList = getProperties().getProperty(\"cpanel.server.list\").trim();\n\t\tString[] cPanelServerArray= cPanelServerList.split(\"#\");\n\t\tList<String> result = new ArrayList<String>(); \n\t\tfor(String cPanelServer: cPanelServerArray){\n\t\t\tString[] params = cPanelServer.split(\",\");\n\t\t\tif(params!= null && params.length>1){\n\t\t\t\tString cpanelIP = params[0];\n\t\t\t\tresult.add(cpanelIP);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public ServerList getServers() {\r\n return this.servers;\r\n }", "void init(){\n \tRootServers = new String[15];\r\n RootServers[0] = \"198.41.0.4\";\r\n RootServers[1] = \"199.9.14.201\";\r\n RootServers[2] = \"192.33.4.12\";\r\n RootServers[3] = \"199.7.91.13[\";\r\n RootServers[4] = \"192.203.230.10\";\r\n RootServers[5] = \"192.5.5.241\";\r\n RootServers[6] = \"192.112.36.4\";\r\n RootServers[7] = \"198.97.190.53\";\r\n RootServers[8] = \"192.36.148.17\";\r\n RootServers[9] = \"192.58.128.30\";\r\n RootServers[10] = \"193.0.14.129\";\r\n RootServers[11] = \"199.7.83.42\";\r\n RootServers[12] = \"202.12.27.33\";\r\n }", "public List<Server> getServerList() {\n return new ArrayList<Server>(serversList);\n }", "public ArrayList<Server> getServers(){\n return this.serversList;\n }", "private static ServerConfigPOJO defaultServerConfig() {\n return ServerConfigParser.readServerConfig();\n }", "public static List<Object[]> getServerDetails(){\n\t\t\n\t\tString filePath = Holders.getFlatConfig().get(\"statusFile.use\").toString();\n\n\t\treturn getServerDetailsFromCSV(filePath, \"hostname\", \"user\",\"password\");\n\t}", "private void createWebServers() throws Exception {\r\n\t\tXPathReader xmlReader = new XPathReader(CONFIGURE_FILE);\r\n\t\tNodeList webServerNodeList = (NodeList) xmlReader.getElement(\"/application/webServer\");\r\n\t\tfor(int idx = 1; idx <= webServerNodeList.getLength(); idx ++ ) {\r\n\t\t\tString webServerExpression = String.format(\"/application/webServer[%d]\", idx);\r\n\t\t\tString id = xmlReader.getTextContent(webServerExpression + \"/@id\");\r\n\t\t\tint port = Integer.parseInt(xmlReader.getTextContent(webServerExpression + \"/@port\"));\r\n\t\t\tWebServer webServer = new WebServer();\r\n\t\t\twebServer.setPort(port);\r\n\t\t\t\r\n\t\t\t// setting SSL properties\r\n\t\t\tif(xmlReader.hasElement(webServerExpression + \"/ssl\")) {\r\n\t\t\t\twebServer.setSsl(true);\r\n\t\t\t\tString keyStorePath = xmlReader.getTextContent(webServerExpression + \"/ssl/keyStorePath\");\r\n\t\t\t\tString keyStoreType = xmlReader.getTextContent(webServerExpression + \"/ssl/keyStoreType\");\r\n\t\t\t\tString keyStorePass = xmlReader.getTextContent(webServerExpression + \"/ssl/keyStorePass\");\r\n\t\t\t\twebServer.setKeyStorePath(keyStorePath);\r\n\t\t\t\twebServer.setKeyStoreType(keyStoreType);\r\n\t\t\t\twebServer.setKeyStorePass(keyStorePass);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// adds context\r\n\t\t\tNodeList contextNodeList = (NodeList) xmlReader.getElement(webServerExpression + \"/context\");\r\n\t\t\tfor(int i = 1; i <= contextNodeList.getLength(); i ++) {\r\n\t\t\t\tString contextExpression = String.format(webServerExpression + \"/context[%d]\", i);\r\n\t\t\t\tString path = xmlReader.getTextContent(contextExpression + \"/@path\");\r\n\t\t\t\tString resourceBase = xmlReader.getTextContent(contextExpression + \"/resourceBase\");\r\n\t\t\t\tString descriptor = xmlReader.getTextContent(contextExpression + \"/descriptor\");\r\n\t\t\t\tWebServerContext webServerContext = new WebServerContext();\r\n\t\t\t\twebServerContext.setContextPath(path);\r\n\t\t\t\twebServerContext.setResourceBase(resourceBase);\r\n\t\t\t\twebServerContext.setDescriptor(descriptor);\r\n\t\t\t\twebServer.addContext(webServerContext);\r\n\t\t\t}\r\n\r\n\t\t\t// add webServer\r\n\t\t\twebServers.put(id, webServer);\r\n\t\t}\r\n\t}", "public ServerConfigImpl() {\n this.expectations = new ExpectationsImpl(globalEncoders, globalDecoders);\n this.requirements = new RequirementsImpl();\n }", "Collection<String> readConfigs();", "List<Map<String,Object>> getConfigList(VirtualHost vhost, String configtype);", "public List<ServerHardware> getServers();", "public List<Server> getAllServers(){\n\t\tlogger.info(\"Getting the all server details\");\n\t\treturn new ArrayList<Server>(servers.values());\n\t}", "private List<ServiceDTO> getCustomizedConfigService() {\n String configServices = System.getProperty(\"apollo.configService\");\n if (Strings.isNullOrEmpty(configServices)) {\n // 2. Get from OS environment variable\n configServices = System.getenv(\"APOLLO_CONFIGSERVICE\");\n }\n if (Strings.isNullOrEmpty(configServices)) {\n // 3. Get from server.properties\n configServices = Foundation.server().getProperty(\"apollo.configService\", null);\n }\n\n if (Strings.isNullOrEmpty(configServices)) {\n return null;\n }\n\n logger.warn(\"Located config services from apollo.configService configuration: {}, will not refresh config services from remote meta service!\", configServices);\n\n // mock service dto list\n String[] configServiceUrls = configServices.split(\",\");\n List<ServiceDTO> serviceDTOS = Lists.newArrayList();\n\n for (String configServiceUrl : configServiceUrls) {\n configServiceUrl = configServiceUrl.trim();\n ServiceDTO serviceDTO = new ServiceDTO();\n serviceDTO.setHomepageUrl(configServiceUrl);\n serviceDTO.setAppName(ServiceNameConsts.APOLLO_CONFIGSERVICE);\n serviceDTO.setInstanceId(configServiceUrl);\n serviceDTOS.add(serviceDTO);\n }\n\n return serviceDTOS;\n }", "private void setServerAddressList(){\n\n if (mCallBack != null){\n mCallBack.onGetServerAddressListCompleted(mServerAddressList);\n }\n }", "public void initServers(List<IdnsServers> servers) {\n\t\tfor(IdnsServers server: servers) {\n\t\t\tAllservers.add(server.getName());\n\t\t\trouters.put(server.getName(), server.getServers());\n\t\t}\n\t}", "public ServerConfig() {\n initComponents();\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(ServerConfig.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void setStunServer(String server);", "@Override\n public void configure(Context context) {\n this.pollFrequency = context.getInteger(this.CONF_POLL_FREQUENCY, DEFAULT_POLL_FREQUENCY);\n //zabbix hosts\n String hosts = context.getString(this.CONF_HOSTS);\n if (hosts == null || hosts.isEmpty()) {\n throw new ConfigurationException(\"Hosts list cannot be empty.\");\n }\n parseHostsFromString(hosts);\n\n }", "public static ConfigServer createConfigServer(String fileConfigjSon){\n\t\tMap<String, String> json = new HashMap<String, String>();\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\n\t\ttry {\n\t\t\tjson = mapper.readValue(new File(fileConfigjSon),\n\t\t\t\t\tnew TypeReference<HashMap<String, String>>() {\n\t\t\t\t\t});\n\t\t} catch (JsonParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JsonMappingException 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\tint port = Integer.parseInt(json.get(\"Port\"));\n\t\tString logs = json.get(\"LogsPath\");\n\t\tString answers = json.get(\"AnswersPath\");\n\t\tint maxFileSize = Integer.parseInt(json.get(\"MaxFileSize\"));\n\t\tlong comeback = Long.parseLong(json.get(\"Comeback\"));\n\t\t\n\t\treturn new ConfigServer(port, logs, answers, maxFileSize, comeback);\n\t}", "private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }", "List<HttpServletServer> getHttpServers();", "public static List<SkungeeServer> getServers() {\n\t\treturn ServerManager.getServers();\n\t}", "private static ServerConfigPOJO customServerConfig(String[] args) {\n return CommandLineParser.parseUserArgs(args);\n }", "List<Server> servers() {\n return servers;\n }", "public static void setUpServer() {\n\t\tList<ServerDefinition> srvToSC0CascDefs = new ArrayList<ServerDefinition>();\r\n\t\tServerDefinition srvToSC0CascDef = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH, TestConstants.logbackSrv, TestConstants.pubServerName1,\r\n\t\t\t\tTestConstants.PORT_PUB_SRV_TCP, TestConstants.PORT_SC0_TCP, 1, 1, TestConstants.pubServiceName1);\r\n\t\tsrvToSC0CascDefs.add(srvToSC0CascDef);\r\n\t\tSystemSuperTest.srvDefs = srvToSC0CascDefs;\r\n\t}", "public NetworkInstance[] getServers();", "@PostMapping(value = \"/readUpdateServerConfList\")\n\tpublic @ResponseBody ResultVO readUpdateServerConfList() {\n\n\t\tResultVO resultVO = new ResultVO();\n\n\t\ttry {\n\n\t\t\tresultVO = ctrlMstService.readCtrlItemAndPropList(GPMSConstants.CTRL_UPDATE_SERVER_CONF);\n\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readUpdateServerConfList : {}, {}, {}\", GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR), ex.toString());\n\t\t\tresultVO = null;\n\t\t}\n\n\t\treturn resultVO;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void parseConfig() {\n\t\t_nameservers = new ArrayList<String>();\n\t\t_nameserverPorts = new ArrayList<String>();\n\n\t\t_props = new Hashtable<String,String>();\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\n\t\t// Cache Size\n\t\t_cacheSize = Integer.parseInt(_root.getChild(\"pdbi\", ns).getChild(\n\t\t\t\t\"CacheSize\", ns).getTextTrim());\n\n\t\t// get the location of the scripts and web pages\n\t\tscriptLocationSci1 = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectorySci1\",ns).getTextTrim();\n\t\tscriptLocationSci2 = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectorySci2\",ns).getTextTrim();\n\t\tscriptLocationFT = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectoryFT\",ns).getTextTrim();\n\t\tgradeWeb = _root.getChild(\"pdbi\",ns).getChild(\"webDirectory\",ns).getTextTrim();\n\t\t// Load Properties\n\t\tList propElements = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"properties\", ns)\n\t\t\t\t\t\t\t\t .getChildren(\"prop\", ns);\n\t\tIterator i = propElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_props.put(current.getAttributeValue(\"key\"),\n\t\t\t current.getAttributeValue(\"value\"));\n\t\t}\n\n\t\t// Load Starting NameComponent\n\t\tString start = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"NameComponent\", ns)\n\t\t\t\t\t\t\t.getAttributeValue(\"start\");\n\t\tif (start.equals(\"1\") || start.equals(\"true\")) {\n\t\t\t_nameComponentIDs = new ArrayList<String>();\n\t\t\t_nameComponentKinds = new ArrayList<String>();\n\t\t\tList ncElements = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"NameComponent\", ns)\n\t\t\t\t\t\t\t\t .getChildren(\"item\", ns);\n\t\t\ti = ncElements.iterator();\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tElement current = (Element)i.next();\n\t\t\t\tString id = current.getAttributeValue(\"id\");\n\t\t\t\tString kind = current.getAttributeValue(\"kind\");\n\t\t\t\t_nameComponentIDs.add(id);\n\t\t\t\t_nameComponentKinds.add(kind);\n\t\t\t}\n\t\t} else {\n\t\t\t_nameComponentIDs = null;\n\t\t\t_nameComponentKinds = null;\n\t\t}\n\t\t\t\n\n\t\t// Load NameServers\n\t\tList nameServerElements = _root.getChild(\"pdbi\", ns)\n\t\t\t.getChild(\"nameServers\", ns)\n\t\t\t.getChildren(\"nameServer\", ns);\n\t\ti = nameServerElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_nameservers.add(current.getChild(\"identifier\", ns)\n\t\t\t\t\t.getTextTrim());\n\t\t}\n\n\t\t// Load NameServer Ports\n\t\tList nameServerPortElements = _root.getChild(\"pdbi\", ns)\n\t\t\t.getChild(\"nameServerPorts\", ns)\n\t\t\t.getChildren(\"nameServerPort\", ns);\n\t\ti = nameServerPortElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_nameserverPorts.add(current.getChild(\"pidentifier\", ns)\n\t\t\t\t\t.getTextTrim());\n\t\t}\n\t}", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "public List<ServerServices> listServerServices();", "public synchronized void setServers(ServerList servers) {\r\n this.servers.clear();\r\n \r\n if (servers != null) {\r\n this.servers.addAll(servers);\r\n }\r\n }", "public List<SkungeeServer> getServers(String... servers) {\n\t\treturn ServerManager.getServers(servers);\n\t}", "public void setServer(Server server) {\n\t\t\r\n\t}", "public static ServerList getCurrentList(Context context) {\n if (sCurrentList != null)\n return sCurrentList;\n\n try {\n sCurrentList = parseCachedList(context);\n }\n catch (IOException e) {\n try {\n sCurrentList = parseBuiltinList(context);\n }\n catch (IOException be) {\n Log.w(TAG, \"unable to load builtin server list\", be);\n }\n }\n\n return sCurrentList;\n }", "public LocalServerConfig getConfig() {\n return serverConfig;\n }", "private void parseClientConfigFile(){\n\n boolean isClientFile = false; //states if the config-file is a clients file\n String line = \"\";\n\n try{\n buffReader = new BufferedReader(new FileReader (new File(logFileName) ));\n\n while( buffReader.ready()) {\n line = buffReader.readLine().trim();\n //check to see if <client> tag exists\n if (line.startsWith(\"<client>\")){\n isClientFile = true;\n }\n \n if (isClientFile){\n if (line.startsWith(\"<name>\")){\n this.name = line.substring(6, line.length()-7);\n } else if (line.startsWith(\"<key>\")){\n this.key = line.substring(5, line.length()-6);\n } else if (line.startsWith(\"<serverip>\")){\n this.serverIpString = line.substring(10, line.length()-11);\n } else if (line.startsWith(\"<serverport>\")){\n this.serverPort = Integer.valueOf(line.substring(12, line.length()-13));\n } else if (line.startsWith(\"<clientListenPort>\")){\n clientListenPort = Integer.valueOf(line.substring(18, line.length()-19));\n }\n else\n continue;\n } else\n initializeNA();\n }\n\n } catch (FileNotFoundException fnfEx){\n ClientInterface.getjTextArea1().append(\"Could not FIND client's Configuration File.\");\n initializeNA();\n } catch (IOException ioEx){\n ClientInterface.getjTextArea1().append(\"Could not OPEN client's Configuration File.\");\n initializeNA();\n }\n }", "public void intServerEnv() {\n\t\tServerUtils serverUtils = new ServerUtils();\n\t\tTouchstoneParsers parsers = new TouchstoneParsers();\n\n\t\tString CONFIGFILE = psoResourcePkg + \"/configs/server.properties\";\n\t\tString testConfigFile = ServerUtils.class.getResource(CONFIGFILE).getFile();\n\n\t\tHashMap<String, HashMap<String, String>> configPropsMap = parsers.readPropsFile(new File(testConfigFile));\n\t\thostIP = (configPropsMap.get(\"URL_PARAMS\").get(\"LOCAL_ENV\").equalsIgnoreCase(\"yes\") ? \"localhost\" : serverUtils.getHostIp());\n\n\t\t// JDBC driver name and database URL\n\t\tJDBC_DRIVER=\"com.mysql.jdbc.Driver\";\n\t\tDB_URL=\"jdbc:mysql://\" + hostIP + \"/psotest\";\n\n\t\t// Database credentials\n\t\tUSERID = configPropsMap.get(\"SERVER_ENV\").get(\"USERID\");\n\t\tPASSWORD = configPropsMap.get(\"SERVER_ENV\").get(\"PASSWORD\");\n\n\t\t// Database tables:\n\t\tCLICKS_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"CLICKS_TABLE\");\n\t\tBEACON_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"BEACON_TABLE\");\n\n\t}", "private void initConfigServices() {\n List<ServiceDTO> customizedConfigServices = getCustomizedConfigService();\n\n if (customizedConfigServices != null) {\n setConfigServices(customizedConfigServices);\n return;\n }\n\n // update from meta service\n this.tryUpdateConfigServices();\n this.schedulePeriodicRefresh();\n }", "private void configureServerInstance() {\n final String myUrl = \"http://68.71.213.88/pepinstances/json\";\n final HttpClient client = HttpClientBuilder.create().build();\n final HttpPost httpPost = new HttpPost(myUrl);\n\n httpPost.addHeader(\"Connection\", \"keep-alive\");\n httpPost.addHeader(\"X-Conversation-Id\", \"BeepBeep123456\");\n httpPost.addHeader(\"Content-Type\", \"application/json\");\n httpPost.addHeader(\"X-API-Version\", \"1\");\n httpPost.addHeader(\"Accept\", \"application/json;apiversion=1\");\n httpPost.addHeader(\"Authorization\", \"BEARER \" + token);\n httpPost.addHeader(\"X-Disney-Internal-PoolOverride-WDPROAPI\",\n \"XXXXXXXXXXXXXXXXXXXXXXXXX\");\n\n final String bodyRequest = \"\";\n HttpEntity entity;\n try {\n entity = new ByteArrayEntity(bodyRequest.getBytes(\"UTF-8\"));\n httpPost.setEntity(entity);\n\n final HttpResponse response = client.execute(httpPost);\n final HttpEntity eResponse = response.getEntity();\n final String responseBody = EntityUtils.toString(eResponse);\n final JSONObject lampStack = new JSONObject(responseBody)\n .getJSONObject(\"LAMPSTACK\");\n if (lampStack.getString(\"LIVE INSTANCE\").equals(\"A\")) {\n setServerInstance(\"A\");\n } else if (lampStack.getString(\"LIVE INSTANCE\").equals(\"B\")) {\n setServerInstance(\"B\");\n } else {\n setServerInstance(\"B\");\n }\n\n } catch (final Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic ServerServices duplexstreamGlobalVarsInit(List<String> configList)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public static void loadConfig() throws IOException {\n\t\t// initialize hash map\n\t\tserverOptions = new HashMap<>();\n\t\t// Get config from file system\n\t\tClass<ConfigurationHandler> configurationHandler = ConfigurationHandler.class;\n\t\tInputStream inputStream = configurationHandler.getResourceAsStream(\"/Config/app.properties\");\n\t\tInputStreamReader isReader = new InputStreamReader(inputStream);\n\t //Creating a BufferedReader object\n\t BufferedReader reader = new BufferedReader(isReader);\n\t String str;\n\t while((str = reader.readLine())!= null){\n\t \t if (str.contains(\"=\")) {\n\t \t\t String[] config = str.split(\" = \", 2);\n\t \t serverOptions.put(config[0], config[1]);\n\t \t }\n\t }\n\t}", "@Override\n\tpublic ServerServices upstreamGlobalVarsInit(List<String> configList)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public HttpServerConfiguration() {\n this.sessionsEnabled = true;\n this.connectors = new ArrayList<HttpConnectorConfiguration>();\n this.sslConnectors = new ArrayList<HttpSslConnectorConfiguration>();\n this.minThreads = 5;\n this.maxThreads = 50;\n }", "List<Long> getServers();", "public void doFiles(){\r\n serversDir = new File(rootDirPath+\"/servers/\");\r\n serverList = new File(rootDirPath+\"serverList.txt\");\r\n if(!serversDir.exists()){ //if server Directory doesn't exist\r\n serversDir.mkdirs(); //create it\r\n }\r\n updateServerList();\r\n }", "public DnsSrvResolverBuilder servers(List<String> servers) {\n return new DnsSrvResolverBuilder(reporter, retainData, cacheLookups, dnsLookupTimeoutMillis,\n retentionDurationMillis, servers, executor);\n }", "protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }", "HashMap getRequestingHosts()\n {\n return configfile.requesting_hosts;\n }", "public void setServerIds(java.lang.String[] serverIds) {\r\n this.serverIds = serverIds;\r\n }", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "public String getServerName();", "private void loadRemoteConfig()\n {\n try\n {\n if ( Config.getInstance().getProperty( GlobalIds.CONFIG_REALM ) == null )\n {\n LOG.warn( \"Config realm not enabled\" );\n return;\n }\n // Retrieve parameters from the config node stored in target LDAP DIT:\n String realmName = config.getString( GlobalIds.CONFIG_REALM, \"DEFAULT\" );\n if ( realmName != null && realmName.length() > 0 )\n {\n LOG.info( \"static init: load config realm [{}]\", realmName );\n Properties props = getRemoteConfig( realmName );\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n config.setProperty( key, val );\n }\n }\n\n //init ldap util vals since config is stored on server\n boolean ldapfilterSizeFound = ( getProperty( GlobalIds.LDAP_FILTER_SIZE_PROP ) != null );\n LdapUtil.getInstance().setLdapfilterSizeFound(ldapfilterSizeFound);\n LdapUtil.getInstance().setLdapMetaChars( loadLdapEscapeChars() );\n LdapUtil.getInstance().setLdapReplVals( loadValidLdapVals() );\n try\n {\n String lenProp = getProperty( GlobalIds.LDAP_FILTER_SIZE_PROP );\n if ( ldapfilterSizeFound )\n {\n LdapUtil.getInstance().setLdapFilterSize(Integer.valueOf( lenProp ));\n }\n }\n catch ( java.lang.NumberFormatException nfe )\n {\n String error = \"loadRemoteConfig caught NumberFormatException=\" + nfe;\n LOG.warn( error );\n }\n remoteConfigLoaded = true;\n }\n else\n {\n LOG.info( \"static init: config realm not setup\" );\n }\n }\n catch ( SecurityException se )\n {\n String error = \"static init: Error loading from remote config: SecurityException=\"\n + se;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_INITIALIZE_FAILED, error, se );\n }\n }", "public void parseServerFile() throws IOException {\r\n /* Creates new Scanner object of the filePath */\r\n Scanner scan = new Scanner(filePath).useDelimiter(\"version=\");\r\n /* Creates new Scanner object for the server version */\r\n Scanner scanVersion = new Scanner(scan.next()).useDelimiter(\"name=\");\r\n /* Sets the server version number */\r\n this.setVersion(scanVersion.next());\r\n /* Creates new Scanner object for the server name */\r\n Scanner scanName = \r\n new Scanner(scanVersion.next()).useDelimiter(\"host=\");\r\n /* Sets the server name */\r\n this.setName(scanName.next());\r\n /* Creates new Scanner object for the server ip address */\r\n Scanner scanAddress = new Scanner(scanName.next());\r\n /* Sets the server ip address */\r\n this.setIPAddress(scanAddress.next()); \r\n }", "public void setHosts(List<String> hosts) {\n setProperty(HOSTS, hosts);\n }", "public void setServerName(String serverName){\n this.serverName = serverName;\n }", "private static void loadConfig(String configFile) throws Exception {\n\t\t// System.out.println(\"Loading configuration from file \" + configFile);\n\t\tProperties props = new Properties();\n\t\tFileInputStream fis = new FileInputStream(configFile);\n\t\tprops.load(fis);\n\t\tfis.close();\n\n\t\tfor (String key : props.stringPropertyNames()) {\n\t\t\tif (key.startsWith(\"engine.\")) {\n\t\t\t\tif (key.startsWith(\"engine.jmxport.\")) {\n\t\t\t\t\tString port = props.getProperty(key, \"\").trim();\n\t\t\t\t\tif (port.length() > 0) {\n\t\t\t\t\t\tString host = props.getProperty(key.replaceFirst(\"jmxport\", \"jmxhost\"), \"localhost\").trim();\n\t\t\t\t\t\tString user = props.getProperty(key.replaceFirst(\"jmxport\", \"username\"), \"\").trim();\n\t\t\t\t\t\tString passwd = props.getProperty(key.replaceFirst(\"jmxport\", \"password\"), \"\").trim();\n\t\t\t\t\t\tString name = props.getProperty(key.replaceFirst(\"jmxport\", \"name\"), \"BE\").trim();\n\t\t\t\t\t\tif (user.length() == 0 || passwd.length() == 0) {\n\t\t\t\t\t\t\t// do not use authentication if user or password is\n\t\t\t\t\t\t\t// blank\n\t\t\t\t\t\t\tuser = null;\n\t\t\t\t\t\t\tpasswd = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString jmxKey = host + \":\" + port;\n\t\t\t\t\t\tif (!clientMap.containsKey(jmxKey)) {\n\t\t\t\t\t\t\t// connect to JMX and initialize it for stat\n\t\t\t\t\t\t\t// collection\n\t\t\t\t\t\t\t// System.out.println(String.format(\"Connect to\n\t\t\t\t\t\t\t// engine %s at %s:%s\", name, host, port));\n\t\t\t\t\t\t\tClient c = new Client(name, host, Integer.parseInt(port), user, passwd);\n\t\t\t\t\t\t\tclientMap.put(jmxKey, c);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (key.startsWith(\"report.\")) {\n\t\t\t\tString type = props.getProperty(key, \"\").trim();\n\t\t\t\tif (type.length() > 0) {\n\t\t\t\t\tif (!statTypes.containsKey(type)) {\n\t\t\t\t\t\t// default no special includes, i.e., report all\n\t\t\t\t\t\t// entities\n\t\t\t\t\t\tstatTypes.put(type, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"Add report type \" + type);\n\t\t\t} else if (key.startsWith(\"include.\")) {\n\t\t\t\t// add included entity pattern to specified stat type\n\t\t\t\tString[] tokens = key.split(\"\\\\.\");\n\t\t\t\tSet<String> includes = statTypes.get(tokens[1]);\n\t\t\t\tif (null == includes) {\n\t\t\t\t\tincludes = new HashSet<String>();\n\t\t\t\t\tstatTypes.put(tokens[1], includes);\n\t\t\t\t}\n\t\t\t\tString pattern = props.getProperty(key, \"\").trim();\n\t\t\t\tif (pattern.length() > 0) {\n\t\t\t\t\tincludes.add(pattern);\n\t\t\t\t}\n\t\t\t\t// System.out.println(String.format(\"Report %s includes entity\n\t\t\t\t// pattern %s\", tokens[1], pattern));\n\t\t\t} else if (key.equals(\"interval\")) {\n\t\t\t\tinterval = Integer.parseInt(props.getProperty(key, \"30\").trim());\n\t\t\t\t// System.out.println(\"Write stats every \" + interval + \"\n\t\t\t\t// seconds\");\n\t\t\t} else if (key.equals(\"ignoreInternalEntity\")) {\n\t\t\t\tignoreInternalEntity = Boolean.parseBoolean(props.getProperty(key, \"false\").trim());\n\t\t\t\tif (ignoreInternalEntity) {\n\t\t\t\t\t// System.out.println(\"Ignore stats of BE internal\n\t\t\t\t\t// entities\");\n\t\t\t\t}\n\t\t\t} else if (key.equals(\"reportFolder\")) {\n\t\t\t\treportFolder = props.getProperty(key, \"\").trim();\n\t\t\t\tif (0 == reportFolder.length()) {\n\t\t\t\t\treportFolder = null;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Statistics report is in folder \" + reportFolder);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"ignore config property \" + key);\n\t\t\t}\n\t\t}\n\t}", "List<String> getConfigFilePaths();", "public static ServerConfiguration getServerConfiguration() {\n return getOctaneDescriptor().getServerConfiguration();\n }", "void startServer(String name, Config.ServerConfig config);", "public void setServer (\r\n String strServer) throws java.io.IOException, com.linar.jintegra.AutomationException;", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "public ASPBuffer getLogonDomainList()\n {\n return configfile.domain_list;\n }", "public static void readConfig() {\n\t\tint[] defaultBanned = Loader.isModLoaded(\"twilightforest\") ? new int[]{7} : new int[0];\n\t\t\n\t\tDIMENSION_LIST = ConfigHelpers.getIntArray(config, \"dimensionIdList\", \"general\", defaultBanned, \"The list of dimension IDs, used as a allow-list or deny-list, depending on your other config settings. Internal numeric IDs, please.\");\n\t\t\n\t\tMODE = ConfigHelpers.getEnum(config, \"mode\", \"general\", ListMode.DENY_LIST, \"What mode should Broken Wings operate under?\", (mode) -> {\n\t\t\tswitch (mode) {\n\t\t\t\tcase DENY_LIST: return \"Flying is disabled in only the dimensions listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALLOW_LIST: return \"Flying is disabled in all dimensions, except the ones listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALWAYS_DENY: return \"Flying is always disabled, regardless of dimension ID.\";\n\t\t\t\tcase ALWAYS_ALLOW: return \"Flying is never disabled (it's like the mod isn't even installed)\";\n\t\t\t\tdefault: return \"h\";\n\t\t\t}\n\t\t}, ListMode.class);\n\t\t\n\t\tARMOR_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyArmor\", \"general\", new ItemList(), \"A player wearing one of these armor pieces will be immune to the no-flight rule.\");\n\t\t\n\t\tINVENTORY_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyInventory\", \"general\", new ItemList(), \"A player with one of these items in their inventory will be immune to the no-flight rule.\");\n\t\t\n\t\tif(Loader.isModLoaded(\"baubles\")) {\n\t\t\tBUBBLE_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyBauble\", \"general\", new ItemList(), \"A player wearing one of these Baubles will be immune to the no-flight rule.\");\n\t\t} else {\n\t\t\tBUBBLE_BYPASS_KEYS = new ItemList();\n\t\t}\n\t\t\n\t\t//Countermeasures\n\t\tCountermeasures.readConfig(config);\n\t\t\n\t\t//Effects\n\t\tPRINT_TO_LOG = config.getBoolean(\"printToLog\", \"effects\", true, \"Should a message be printed to the server console when a player is dropped from the sky?\");\n\t\t\n\t\tSEND_STATUS_MESSAGE = config.getBoolean(\"sendStatusMessage\", \"effects\", true, \"Should players receive a status message when they are dropped from the sky?\");\n\t\t\n\t\tSHOW_PARTICLES = config.getBoolean(\"showParticles\", \"effects\", true, \"Should players create particle effects when they are dropped from the sky?\");\n\t\t\n\t\tEFFECT_INTERVAL = config.getInt(\"effectInterval\", \"effects\", 3, 0, Integer.MAX_VALUE, \"To prevent spamming players and the server console, how many seconds will need to pass before performing another effect? (Players will still drop out of the sky if they try to fly faster than this interval.)\");\n\t\t\n\t\tFIXED_MESSAGE = config.getString(\"fixedStatusMessage\", \"effects\", \"\", \"Whatever you enter here will be sent to players when they are dropped out of the sky if 'effects.sendStatusMessage' is enabled. If this is empty, I'll choose from my own internal list of (tacky) messages.\").trim();\n\t\t\n\t\t//Client\n\t\tSHOW_BYPASS_KEY_TOOLTIP = config.getBoolean(\"showBypassKeyTooltip\", \"client\", true, \"Show a tooltip on items that are bypass-keys informing the player that they can use this item to bypass the rule.\");\n\t\t\n\t\tif(config.hasChanged()) config.save();\n\t}", "ArrayList<ArrayList<String>> get_config(){\n return config_file.r_wartosci();\n }", "@Override\n\tpublic List<String> getServersDescription() {\n\t\treturn null;\n\t}", "private void getExternalConfig()\n {\n String PREFIX = \"getExternalConfig override name [{}] value [{}]\";\n // Check to see if the ldap host has been overridden by a system property:\n String szValue = System.getProperty( EXT_LDAP_HOST );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_HOST, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_HOST, szValue );\n }\n // Check to see if the ldap port has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_PORT );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_PORT, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_PORT, szValue );\n }\n\n // Check to see if the admin pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_UID );\n }\n\n // Check to see if the admin pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_PW );\n }\n\n // Check to see if the admin pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n }\n\n // Check to see if the admin pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n }\n\n // Check to see if the log pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_UID );\n }\n\n // Check to see if the log pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_PW );\n }\n\n // Check to see if the log pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n }\n\n // Check to see if the log pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n }\n\n // Check to see if ssl enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL, szValue );\n }\n \n // Check to see if start tls enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_STARTTLS );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n }\n\n // Check to see if the ssl debug enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL_DEBUG );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n }\n\n // Check to see if the trust store location has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE, szValue );\n }\n\n // Check to see if the trust store password has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_PW, szValue );\n // never display password value to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.TRUST_STORE_PW );\n }\n\n // Check to see if the trust store onclasspath parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_ONCLASSPATH );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n }\n\n // Check to see if the suffix has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_SUFFIX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SUFFIX, szValue );\n LOG.info( PREFIX, GlobalIds.SUFFIX, szValue );\n\n }\n\n // Check to see if the config realm name has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_REALM );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_REALM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_REALM, szValue );\n }\n\n // Check to see if the config node dn has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_ROOT_DN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_ROOT_PARAM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_ROOT_PARAM, szValue );\n }\n\n // Check to see if the ldap server type has been overridden by a system property:\n szValue = System.getProperty( EXT_SERVER_TYPE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SERVER_TYPE, szValue );\n LOG.info( PREFIX, GlobalIds.SERVER_TYPE, szValue );\n }\n\n // Check to see if ARBAC02 checking enforced in service layer:\n szValue = System.getProperty( EXT_IS_ARBAC02 );\n if( StringUtils.isNotEmpty( szValue ))\n {\n Boolean isArbac02 = Boolean. valueOf( szValue );\n config.setProperty( GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n LOG.info( PREFIX, GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n }\n }", "private void loadConfig()\n {\n File config = new File(\"config.ini\");\n\n if (config.exists())\n {\n try\n {\n BufferedReader in = new BufferedReader(new FileReader(config));\n\n configLine = Integer.parseInt(in.readLine());\n configString = in.readLine();\n socketSelect = (in.readLine()).split(\",\");\n in.close();\n }\n catch (Exception e)\n {\n System.exit(1);\n }\n }\n else\n {\n System.exit(1);\n }\n }", "protected void printServerConfig(){\n\t\t/*String filePrefix = System.getProperty(\"user.dir\")+\"/src/server/\"+gameName;\n\t\tFile gameFolderServ = new File(filePrefix);\n\t\tString filePrefix2 = System.getProperty(\"user.dir\")+\"/src/auctions/\"+gameName;\n\t\tFile gameFolderAuct = new File(filePrefix2);\n\n\t\tFile server_config = new File(filePrefix+\"/Config_AuctionServer.txt\");\n\t\t*/\n\t\tFile server_config = new File(\"src/server/\"+\"Config_AuctionServer.txt\");\n\t\tif(!server_config.exists()){\n\n\t\t\t try{\n\n\t\t\t\t //gameFolderServ.mkdir();\n\t\t\t\t // gameFolderAuct.mkdir();\n\t\t\t\t server_config.createNewFile();\n\t\t\t\t FileWriter fstream = new FileWriter(server_config);\n\t\t\t\t BufferedWriter out = new BufferedWriter(fstream);\n\t\t\t\t if(localIP){\n\t\t\t\t\t out.write(\"Host_IP:local\\n\");\n\t\t\t\t }else{\n\t\t\t\t\t out.write(\"Host_IP:public\\n\");\n\t\t\t\t }\n\n\t\t\t\t out.write(\"Port_Number:\"+port+\"\\n\");\n\t\t\t\t //out.newLine();\n\n\t\t\t\t out.write(\"Min_Number_Clients:\"+minClients+\"\\n\");\n\t\t\t\t out.write(\"Max_Number_Clients:\"+maxClients+\"\\n\");\n\t\t\t\t out.write(\"Max_Wait_For_Clients:\"+maxWait+\"\\n\");\n\t\t\t\t out.write(\"Response_Time:\"+responseTime);\n\t\t\t\t out.newLine();\n\t\t\t\t if(respTime){\n\t\t\t\t\t out.write(\"Full_Response_Time:true\");\n\t\t\t\t }else{\n\t\t\t\t\t out.write(\"Full_Response_Time:false\");\n\t\t\t\t }\n\t\t\t\t out.newLine();\n\t\t\t\t out.write(\"Server_Log_File:Log_AuctionServer.txt\");\n\t\t\t\t out.newLine();\n\t\t\t\t out.write(\"Server_Results_File:Results_AuctionServer.txt\");\n\t\t\t\t out.newLine();\n\n\t\t\t\t if(maxSeq>1 && maxSim>1){\n\t\t\t\t\t out.write(\"Auction_Type:SequentialAuction\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_Sequential_of_Simultaneous.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else if(maxSeq>1){\n\t\t\t\t\t out.write(\"Auction_Type:SequentialAuction\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_SequentialAuction_0.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else if(maxSim>1){\n\t\t\t\t\t out.write(\"Auction_Type:SimultaneousAuction\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_SimultaneousAuction_0.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else if(maxSeq==1 && maxSim==1){\n\t\t\t\t\t out.write(\"Auction_Type:\"+getAuctionName(auctionsSchedule[0])+\"\\n\");\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_\"+getAuctionName(auctionsSchedule[0])+\"_0_0.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else{\n\t\t\t\t\t System.out.println(\"ERROR: no auctions\");\n\t\t\t\t }\n\n\t\t\t\t out.write(\"Valuation_Type:\"+valueFxn);\n\t\t\t\t out.newLine();\n\t\t\t\t out.write(\"Valuation_Config_File:Config_Valuation\"+valueFxn+\".txt\");\n\n\t\t\t\t out.close();\n\n\t\t\t }catch (IOException e){\n\t\t\t\t\tSystem.out.println(\"file error creating Server Config.\");\n\t\t\t}\n\t\t}\n\t}", "private List<PeerConnection.IceServer> createIceServers() {\n List<PeerConnection.IceServer> iceServers = new ArrayList<>();\n\n String username = null;\n String password = null;\n List<String> uris = null;\n\n for (int index = 0; index < uris.size(); index++) {\n String url = uris.get(index);\n\n if ((null != username) && (null != password)) {\n iceServers.add(new PeerConnection.IceServer(url, username, password));\n } else {\n iceServers.add(new PeerConnection.IceServer(url));\n }\n }\n\n // define at least on server\n if (iceServers.isEmpty()) {\n iceServers.add(new PeerConnection.IceServer(\"stun:stun.l.google.com:19302\"));\n }\n\n return iceServers;\n }", "public java.lang.String[] getServerIds() {\r\n return serverIds;\r\n }", "public void setSERVER(String SERVER) {\n \t\tthis.SERVER = SERVER;\n \t}", "public void setServer(int server) {\n this.server = server;\n }", "void setExcludeList(SynchronizationRequest req, Zipper zipper) {\n\n try { \n String serverName = req.getServerName();\n List list = (List)_excludeCache.get(serverName);\n if (list == null) {\n Properties env = req.getEnvironmentProperties();\n // admin config context\n ConfigContext ctx = _ctx.getConfigContext();\n Domain domain = (Domain) ctx.getRootConfigBean();\n Server server = domain.getServers().getServerByName(serverName);\n if (server != null) {\n ServerDirector director=new ServerDirector(ctx, serverName);\n List excludes = director.constructExcludes();\n list = new ArrayList();\n int size = excludes.size();\n for (int i=0; i<size; i++) {\n String path = (String) excludes.get(i);\n String tPath = \n TextProcess.tokenizeConfig(path, serverName, env);\n list.add(tPath);\n }\n // add the list to the cache\n _excludeCache.put(serverName, list);\n }\n }\n _logger.log(Level.FINE, \"Excluded List \" + list);\n zipper.addToExcludeList(list);\n } catch (Exception e) {\n _logger.log(Level.FINE, \"Excluded List can not be set\", e);\n }\n }", "@Override\n public void initialize(ServerConfiguration config) {\n }", "public List<String> dnsServers() {\n return this.dnsServers;\n }", "public List<String> nameServers() {\n return this.nameServers;\n }", "static public List<com.mongodb.ServerAddress> convertToServerAddressList(String serverAddresses){\n\t\tif (serverAddresses == null)\n\t\t\treturn null;\n\t\tList<com.mongodb.ServerAddress> svrAddrList = new ArrayList<com.mongodb.ServerAddress>();\n\t\tString[] serverAddressStrAry = serverAddresses.split(\";\");\n\t\tfor(int i=0; i<serverAddressStrAry.length; i++){\n\t\t\tString serverAddressStr = serverAddressStrAry[i];\n\t\t\tif (serverAddressStr.length() > 0){\n\t\t\t\tString[] serverAddressParts = serverAddressStr.split(\":\");\n\t\t\t\tif (serverAddressParts.length < 2){\n\t\t\t\t\tDemoBaseException.throwEx2(ErrCode.Dev_Common, \"serverAddressParts.length < 2\", serverAddresses,serverAddressStr);\n\t\t\t\t}\n\t\t\t\tString hostPart = serverAddressParts[0];\n\t\t\t\tString portPart = serverAddressParts[1].trim();\n\t\t\t\tint port = Integer.parseInt(portPart);\n\t\t\t\tcom.mongodb.ServerAddress srvAddress = new com.mongodb.ServerAddress(hostPart, port);\n\t\t\t\tsvrAddrList.add(srvAddress);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(svrAddrList+\"\");\n\t\t\n\t\treturn svrAddrList;\n\t}", "@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }", "public void setHostList(List<Host> hostLst){\r\n\t\tthis.hostList = hostLst;\r\n\t}", "@Override\n @GET\n @Path(\"/servers\")\n @Produces(\"application/json\")\n public Response getServers() throws Exception {\n log.trace(\"getServers() started.\");\n JSONArray json = new JSONArray();\n for (Server server : cluster.getServerList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/servers/%d\", rootUri, server.getServerId());\n String serverUri = String.format(\"/providers/%d/servers/%d\", provider.getProviderId(), server.getServerId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", serverUri);\n json.put(o);\n }\n\n log.trace(\"getServers() finished successfully.\");\n return Response.ok(json.toString()).build();\n }", "ServerEntry getServer();", "public Server getServer(int index) {\n return serverArray[index];\n }", "public interface GlobalServerConfiguration {\n\n /**\n * Gets the location for the AdapterConfig for the specified namespace\n */\n public String getAdapterConfigLocation(String namespace);\n\n /**\n * Gets the location of the FeedConfig for the specified namespace\n */\n public String getFeedConfigLocation(String namespace);\n\n /**\n * Gets the Feed Configuration suffix\n */\n public String getFeedConfigSuffix();\n\n /**\n * Gets the namespace\n */\n public String getFeedNamespace(String namespace);\n\n /**\n * Gets the namespace prefix\n */\n public String getFeedNamespacePrefix(String namespace);\n\n /**\n * Gets the Server port\n */\n public int getPort();\n\n /**\n * Gets the URI for the feedserver with the specified namespace\n */\n public String getServerUri(String namespace);\n\n /**\n * Gets URI prefix for Feeds\n */\n public String getFeedPathPrefix();\n\n /**\n * Gets the {@link FeedConfiguration} for the specified feed in the namespace\n * \n * @param namespace The namespace the feed is in\n * @param feedId The feed to get the {@link FeedConfiguration} for\n * @param userId User email of per user feed requested; null if not per user feed\n */\n public FeedConfiguration getFeedConfiguration(String namespace, String feedId, String userId)\n throws FeedConfigStoreException;\n\n /**\n * Get the fully qualified class name for adapter wrapper manager.\n * \n * @return fully qualified class name for adapter wrapper manager.\n */\n public String getWrapperManagerClassName();\n\n /**\n * Gets the {@link FeedConfigStore} for the Server Configuration\n */\n public FeedConfigStore getFeedConfigStore();\n\n /**\n * Get the fully qualified class name of the provider that will be used for\n * this server.\n * \n * @return fully qualified class name of the Provider.\n */\n public String getProviderClassName();\n\n @SuppressWarnings(\"unchecked\")\n public AdapterBackendPool getAdapterBackendPool(String poolId);\n\n @SuppressWarnings(\"unchecked\")\n public void setAdapterBackendPool(String poolId, AdapterBackendPool pool);\n\n public AclValidator getAclValidator();\n\n public void setAclValidator(AclValidator aclValidator);\n\n}", "public ProxyConfig[] getProxyConfigList();", "public void setServer(Server server) {\n this.server = server;\n }", "public void addServer(String nameServer) { \n Server server = new Server(nameServer);\n serversList.add(server);\n }", "public Set<String> getNSDsSetFromConfig()\n {\n DMLogger.methodStarted();\n\n String jsonTxt = \"\";\n try\n {\n jsonTxt = ssh.runCommand( \"less /etc/ddn/directmon/system-config.json\" );\n }\n catch( Exception e )\n {\n String errorText = \" Error with 'ssh.runCommand( \\\"less /etc/ddn/directmon/system-config.json\\\" );' , e\";\n DMLogger.errorInMethod( errorText );\n throw new RuntimeException( errorText );\n }\n\n JSONObject json = ( JSONObject ) JSONSerializer.toJSON( jsonTxt );\n Set<String> s = json.keySet();\n\n List<String> solutionsWithNSD = new ArrayList<String>();\n\n List<String> solutionTypes = new ArrayList<String>();\n for( Object value : s )\n {\n\n if( !value.toString().contains( \":sfa\" ) )\n {\n Set<String> keySet = json.getJSONObject( value.toString() ).keySet();\n solutionsWithNSD.addAll( keySet );\n solutionTypes.add( value.toString() );\n }\n\n }\n\n List<Collection> nsdAndStorageList = new ArrayList<Collection>();\n for( Object value : s )\n {\n\n if( !value.toString().contains( \":sfa\" ) )\n {\n for( String nsdSolution : solutionsWithNSD )\n {\n nsdAndStorageList.add( json.getJSONObject( value.toString() ).getJSONObject( nsdSolution ).values() );\n }\n }\n }\n\n List<String> nsdList = new ArrayList<String>();\n for( Collection aNsdAndStorageList : nsdAndStorageList )\n {\n int currentNdsCount = aNsdAndStorageList.toArray()[0].toString().split( \"],\" ).length;\n\n for( int j = 0; j < currentNdsCount; j++ )\n {\n // [[\"qa-nsd1\"\n String tmp = aNsdAndStorageList.toArray()[0].toString().split( \"],\" )[j].split( \",\\\"nsd\\\",\" )[0];\n tmp = tmp.substring( tmp.indexOf( \"\\\"\" ) + 1, tmp.length() - 1 );\n nsdList.add( tmp );\n }\n }\n\n Set<String> result = new TreeSet<String>( nsdList );\n\n DMLogger.methodFinished( result );\n return result;\n }", "private List<Server> getRemoteServers() {\n if (!isDas())\n throw new RuntimeException(\"Internal Error\"); // todo?\n\n List<Server> notdas = new ArrayList<Server>(targets.size());\n String dasName = serverEnv.getInstanceName();\n\n for (Server server : targets) {\n if (!dasName.equals(server.getName()))\n notdas.add(server);\n }\n\n return notdas;\n }", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\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}).start();\n\t}", "private static void readSiteConfig() {\n\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(\"SiteConfiguration.txt\"))) {\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line = br.readLine().strip().toUpperCase();\n\t\t\t\tSite readSite = new Site(line);\n\n\t\t\t\tsites.putIfAbsent(readSite.getSiteName(), readSite);\n\t\t\t}\n\t\t}catch (IOException ioe) {\n\t\t\tlogger.log(Level.WARNING, \"Could not read SiteConfig file properly! \" + ioe);\n\t\t}\n\t}" ]
[ "0.65907055", "0.6344071", "0.63096946", "0.62786835", "0.62312204", "0.6208253", "0.62029433", "0.6200481", "0.61954623", "0.6181031", "0.6155865", "0.6142431", "0.61142963", "0.61121887", "0.6092299", "0.6090419", "0.6073275", "0.6001034", "0.59788084", "0.5970853", "0.5953606", "0.5953293", "0.5886257", "0.5882096", "0.5858654", "0.58327967", "0.58263683", "0.58236223", "0.58177054", "0.5801559", "0.5773292", "0.57598424", "0.57502514", "0.5744895", "0.5740328", "0.5731194", "0.5705913", "0.5697712", "0.56961566", "0.56879926", "0.5687002", "0.5662462", "0.5654168", "0.5651313", "0.56436837", "0.56334376", "0.5589622", "0.5556951", "0.5551569", "0.55354446", "0.5535315", "0.55313575", "0.55229837", "0.5519787", "0.55093366", "0.55065095", "0.550431", "0.550066", "0.54998046", "0.5497335", "0.5488488", "0.5488404", "0.5483829", "0.5475576", "0.5422239", "0.5416671", "0.54149383", "0.53931105", "0.5385446", "0.538471", "0.53762", "0.5374516", "0.5367906", "0.53585356", "0.5343627", "0.53394264", "0.5334827", "0.53319556", "0.53283215", "0.5316445", "0.5309862", "0.53091407", "0.53004575", "0.5294995", "0.52931666", "0.5289691", "0.528862", "0.5285634", "0.5275187", "0.52719283", "0.5271536", "0.5271136", "0.526466", "0.526302", "0.52585936", "0.52427834", "0.52403444", "0.52402985", "0.5238855", "0.5235978" ]
0.74937826
0
Get server list from previous config of app
private void setOldServerList(String oldConfigFile) { ArrayList<ServerObjInfo> _serverList = ServerConfigurationUtils.getServerListFromOldConfigFile(oldConfigFile); ServerSettingHelper.getInstance().setServerInfoList(_serverList); if (_serverList.size() == 0) return; /* force app to start login screen */ mSetting.setDomainIndex("0"); mSetting.setCurrentServer(_serverList.get(0)); _serverList.get(0).isAutoLoginEnabled = false; /* persist the configuration */ new Thread(new Runnable() { @Override public void run() { Log.i(TAG, "persisting config"); SettingUtils.persistServerSetting(mContext); } }).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Server> getServerList() {\n return serverList;\n }", "public List<Server> getServerList() {\n return new ArrayList<Server>(serversList);\n }", "public ArrayList<Server> getServers(){\n return this.serversList;\n }", "public static ServerList getCurrentList(Context context) {\n if (sCurrentList != null)\n return sCurrentList;\n\n try {\n sCurrentList = parseCachedList(context);\n }\n catch (IOException e) {\n try {\n sCurrentList = parseBuiltinList(context);\n }\n catch (IOException be) {\n Log.w(TAG, \"unable to load builtin server list\", be);\n }\n }\n\n return sCurrentList;\n }", "List<Server> servers() {\n return servers;\n }", "public ServerList getServers() {\r\n return this.servers;\r\n }", "private String getZkServers(ServletContext context){\n Configuration config = new Configuration();\n config.addResource(\"pxf-site.xml\");\n String zk_hosts = config.get(\"zookeeper\");\n if(LOG.isDebugEnabled())\n LOG.debug(\"zookeeper server is :\" + zk_hosts);\n\n return zk_hosts;\n }", "public List<String> getCPanelServerList() {\n\t\tString cPanelServerList = getProperties().getProperty(\"cpanel.server.list\").trim();\n\t\tString[] cPanelServerArray= cPanelServerList.split(\"#\");\n\t\tList<String> result = new ArrayList<String>(); \n\t\tfor(String cPanelServer: cPanelServerArray){\n\t\t\tString[] params = cPanelServer.split(\",\");\n\t\t\tif(params!= null && params.length>1){\n\t\t\t\tString cpanelIP = params[0];\n\t\t\t\tresult.add(cpanelIP);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public List<Server> getAllServers(){\n\t\tlogger.info(\"Getting the all server details\");\n\t\treturn new ArrayList<Server>(servers.values());\n\t}", "public List<ServerHardware> getServers();", "public List<ServerServices> listServerServices();", "public NetworkInstance[] getServers();", "List<Long> getServers();", "@Override\n\tpublic String[] GetFileServers() {\n\t\tString fservers[]=new String[list.size()];\n\t\tint i=0;\n\t\tfor(String s:list){\n\t\t\tfservers[i++]=s;\n\t\t}\n\t\treturn fservers;\n\t}", "List<HttpServletServer> getHttpServers();", "public ArrayList<String> getWebserverUrl() {\n\n if (webListener.isServiceFound()) {\n return webListener.getServiceURLs();\n }\n return new ArrayList<>();\n }", "public ArrayList<String> getNameServerUrl() {\n\n if (nameListener.isServiceFound()) {\n return nameListener.getServiceURLs();\n }\n return new ArrayList<>();\n }", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "public ProxyConfig[] getProxyConfigList();", "public static List<SkungeeServer> getServers() {\n\t\treturn ServerManager.getServers();\n\t}", "List<Map<String,Object>> getConfigList(VirtualHost vhost, String configtype);", "List<String> getHosts();", "public Object[] getNameServers() {\n\t\treturn _nameservers.toArray();\n\t}", "private List<Server> getRemoteServers() {\n if (!isDas())\n throw new RuntimeException(\"Internal Error\"); // todo?\n\n List<Server> notdas = new ArrayList<Server>(targets.size());\n String dasName = serverEnv.getInstanceName();\n\n for (Server server : targets) {\n if (!dasName.equals(server.getName()))\n notdas.add(server);\n }\n\n return notdas;\n }", "public static List<Object[]> getServerDetails(){\n\t\t\n\t\tString filePath = Holders.getFlatConfig().get(\"statusFile.use\").toString();\n\n\t\treturn getServerDetailsFromCSV(filePath, \"hostname\", \"user\",\"password\");\n\t}", "public List<String> nameServers() {\n return this.nameServers;\n }", "public java.lang.String[] getServerIds() {\r\n return serverIds;\r\n }", "private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, \"-1\"));\n mSetting.setDomainIndex(String.valueOf(selectedServerIdx));\n mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx));\n }", "private List<ServiceDTO> getCustomizedConfigService() {\n String configServices = System.getProperty(\"apollo.configService\");\n if (Strings.isNullOrEmpty(configServices)) {\n // 2. Get from OS environment variable\n configServices = System.getenv(\"APOLLO_CONFIGSERVICE\");\n }\n if (Strings.isNullOrEmpty(configServices)) {\n // 3. Get from server.properties\n configServices = Foundation.server().getProperty(\"apollo.configService\", null);\n }\n\n if (Strings.isNullOrEmpty(configServices)) {\n return null;\n }\n\n logger.warn(\"Located config services from apollo.configService configuration: {}, will not refresh config services from remote meta service!\", configServices);\n\n // mock service dto list\n String[] configServiceUrls = configServices.split(\",\");\n List<ServiceDTO> serviceDTOS = Lists.newArrayList();\n\n for (String configServiceUrl : configServiceUrls) {\n configServiceUrl = configServiceUrl.trim();\n ServiceDTO serviceDTO = new ServiceDTO();\n serviceDTO.setHomepageUrl(configServiceUrl);\n serviceDTO.setAppName(ServiceNameConsts.APOLLO_CONFIGSERVICE);\n serviceDTO.setInstanceId(configServiceUrl);\n serviceDTOS.add(serviceDTO);\n }\n\n return serviceDTOS;\n }", "public List<Map.Entry<String, L>> entries() {\n rwLock.readLock().lock();\n try {\n return new ArrayList<Map.Entry<String, L>>(serversToLoad.entrySet());\n } finally {\n rwLock.readLock().unlock();\n }\n }", "List<String> getSubProtocols();", "@Override\n public List<AppServerType> getServerType()\n {\n return AppServerType.allvalues();\n }", "public static Server [] getServers(){\r\n Enumeration serversEnum = servers.elements();\r\n Server [] arr = new Server[servers.size()];\r\n for (int i = 0; i < arr.length; i++)\r\n arr[i] = (Server)serversEnum.nextElement();\r\n\r\n return arr;\r\n }", "public ASPBuffer getLogonDomainList()\n {\n return configfile.domain_list;\n }", "HashMap getRequestingHosts()\n {\n return configfile.requesting_hosts;\n }", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionList();", "Collection<String> readConfigs();", "List<Map<String,Object>> getConfigList(Request request, String configtype);", "@Override\n\tpublic ArrayList<String> getHost() {\n\t\treturn null;\n\t}", "ArrayList<ArrayList<String>> get_config(){\n return config_file.r_wartosci();\n }", "@Override\n @GET\n @Path(\"/servers\")\n @Produces(\"application/json\")\n public Response getServers() throws Exception {\n log.trace(\"getServers() started.\");\n JSONArray json = new JSONArray();\n for (Server server : cluster.getServerList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/servers/%d\", rootUri, server.getServerId());\n String serverUri = String.format(\"/providers/%d/servers/%d\", provider.getProviderId(), server.getServerId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", serverUri);\n json.put(o);\n }\n\n log.trace(\"getServers() finished successfully.\");\n return Response.ok(json.toString()).build();\n }", "public List<String> dnsServers() {\n return this.dnsServers;\n }", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList getServiceConfigurationList();", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<APIServerList, APIServer> listAPIServer();", "@Override\n\tpublic List<String> getServersDescription() {\n\t\treturn null;\n\t}", "public LocalServerConfig getConfig() {\n return serverConfig;\n }", "@PostMapping(value = \"/readUpdateServerConfList\")\n\tpublic @ResponseBody ResultVO readUpdateServerConfList() {\n\n\t\tResultVO resultVO = new ResultVO();\n\n\t\ttry {\n\n\t\t\tresultVO = ctrlMstService.readCtrlItemAndPropList(GPMSConstants.CTRL_UPDATE_SERVER_CONF);\n\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readUpdateServerConfList : {}, {}, {}\", GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR), ex.toString());\n\t\t\tresultVO = null;\n\t\t}\n\n\t\treturn resultVO;\n\t}", "AppConfiguration getApplicationList()\n throws SAXException, IOException;", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\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}).start();\n\t}", "public static void clientListUpdater() {\r\n\t\tclientList.clear();\r\n\t\tclientList.addAll(serverConnector.getAllClients());\r\n\t}", "private String[] getConfiguration() {\n String[] result = new String[6];\n // Query the latest configuration file made and send it back in an array of strings\n String query = \"SELECT * FROM configuration ORDER BY configuration_id DESC LIMIT 1\";\n sendQuery(query);\n try {\n if(resultSet.next()) {\n for (int i = 1; i < 7; i++) {\n result[i-1] = resultSet.getString(i);\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return result;\n }", "public ArrayList<ClientHandler> getClientList()\n {\n return clientList;\n }", "@Override\n public List<String> getDnsServerAddresses()\n {\n final List<String> servers = new ArrayList<>();\n final Network network = getActiveNetwork();\n if (network == null) {\n return null;\n }\n\n LinkProperties linkProperties = connectivityManager.getLinkProperties(network);\n if (linkProperties == null) {\n return null;\n }\n\n int vpnOffset = 0;\n final NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network);\n final boolean isVpn = networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_VPN;\n final List<String> v4v6Servers = getIPv4First(linkProperties.getDnsServers());\n // Timber.d(\"hasDefaultRoute: %s activeNetwork: %s || isVpn: %s || IP: %s\",\n // hasDefaultRoute(linkProperties), network, isVpn, toListOfStrings(linkProperties.getDnsServers()));\n\n if (isVpn) {\n servers.addAll(0, v4v6Servers);\n // vpnOffset += v4v6Servers.size();\n }\n // Prioritize the DNS servers of links which have a default route\n else if (hasDefaultRoute(linkProperties)) {\n servers.addAll(vpnOffset, v4v6Servers);\n }\n else {\n servers.addAll(v4v6Servers);\n }\n\n // Timber.d(\"dns Server Addresses (linkProperty): %s\", servers);\n return servers;\n }", "List<storage_server_connections> getAllForStorage(String storage);", "public Map<String, List<String>> getServices();", "public List<String> getHosts() {\n return getProperty(HOSTS);\n }", "private void setServerAddressList(){\n\n if (mCallBack != null){\n mCallBack.onGetServerAddressListCompleted(mServerAddressList);\n }\n }", "public void getGameList() {\n try {\n write(\"get gamelist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:getGameList\");\n }\n }", "public abstract String [] listDatabases();", "@Override\n\tpublic Collection<InetSocketAddress> getAvaliableServers() {\n\t\treturn null;\n\t}", "public List<String> getServices() throws IOException;", "public ArrayList<ServerSocket> getConnectedClients() {\n return connectedClients;\n }", "java.util.List<online_info>\n getInfoList();", "public String[] listConnections() {\n\t\t\tString[] conns = new String[keyToConn.entrySet().size()];\n\t\t\tint i = 0;\n\n\t\t\tfor (Map.Entry<String, Connection> entry : keyToConn.entrySet()) {\n\t\t\t\t// WebSocket ws = entry.getKey();\n\t\t\t\tConnection conn = entry.getValue();\n\t\t\t\tconns[i] = String.format(\"%s@%s\", conn.user, entry.getKey());\n\t\t\t\t++i;\n\t\t\t}\n\t\t\tArrays.sort(conns);\n\t\t\treturn conns;\n\t\t}", "public PropertyRemoteServers getServers() {\n return this.m_Servers;\n }", "public ArrayList<String> getDbSlaves() throws JsonSyntaxException, JsonIOException, IOException {\n ArrayList<String> dbslaves = new ArrayList<>();\n if (dbhosts != null) {\n for (String h : dbhosts) {\n dbslaves.add(h);\n }\n return dbslaves;\n }\n if (slavesFile != null) {\n File f = new File(slavesFile);\n FileInputStream input = new FileInputStream(f);\n Gson gson = new Gson();\n Hosts hosts = gson.fromJson(new InputStreamReader(input), Hosts.class);\n dbhosts = hosts.getHosts();\n if (hosts != null) {\n for (String host : hosts.getHosts()) {\n dbslaves.add(host);\n }\n }\n }\n return dbslaves;\n }", "public Vector getRemoteAppList(String s_user_for, String site) throws Exception{\r\n\t\tVector result_list = null;\r\n\t\ttry {\r\n\t\t\tif (site.equalsIgnoreCase(\"production\")) {\r\n\t\t\t\tsetldschema( PropertyLoader.getConfig(\"ldschema.xml.url\") );\r\n\t\t\t\tresult_list = constructApplist(PropertyLoader.getConfig(\"applist.xml.url\"), s_user_for);\r\n\t\t\t} else if (site.equalsIgnoreCase(\"pre-production\")){\r\n\t\t\t\tsetldschema( PropertyLoader.getConfig(\"ldschema.xml.url\") );\r\n\t\t\t\tresult_list = constructApplist(PropertyLoader.getConfig(\"ppapplist.xml.url\"), s_user_for);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\":getRemoteAppList\" + e.getMessage(), e);\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t}\r\n\t\treturn result_list;\r\n\t}", "java.util.List<java.lang.String>\n getEnvList();", "public List<ApplicationGatewayBackendHealthServerInner> servers() {\n return this.servers;\n }", "@OAMany(\n displayName = \"App Servers\", \n toClass = AppServer.class, \n reverseName = AppServer.P_AppUserLogin, \n isProcessed = true, \n createMethod = false\n )\n private Hub<AppServer> getAppServers() {\n return null;\n }", "List<String> getConfigFilePaths();", "public List<ATNConfig> elements() { return configs; }", "@Override\n public KimbleClient[] clientStartInfo() {\n return clients;\n }", "@Override public Collection<String> getServerIds() {\n return getTrackedBranches().getServerIds();\n }", "@Override\n public void onApplicationEvent(HeartbeatEvent event) {\n\n final Collection<String> discoveryUrls = config.getServiceUrl().values();\n\n logger.info(\"discovery URLS\" + discoveryUrls);\n\n int serverCount = 0;\n String defaultZone = \"\";\n\n for (final String discoveryUrl : discoveryUrls) {\n defaultZone += (serverCount > 0 ? (\",\" + discoveryUrl) : discoveryUrl);\n serverCount++;\n if (serverCount == DISCOVERY_SERVER_URL_MAX_COUNT) {\n break;\n }\n }\n\n config.getServiceUrl().put(DISCOVERY_CLIENT_ZONE, defaultZone);\n\n }", "public Vector getConfigurations() {\n return getConfigurations(DEFAULT_DB_CONFIG_TABLE);\n }", "void init(){\n \tRootServers = new String[15];\r\n RootServers[0] = \"198.41.0.4\";\r\n RootServers[1] = \"199.9.14.201\";\r\n RootServers[2] = \"192.33.4.12\";\r\n RootServers[3] = \"199.7.91.13[\";\r\n RootServers[4] = \"192.203.230.10\";\r\n RootServers[5] = \"192.5.5.241\";\r\n RootServers[6] = \"192.112.36.4\";\r\n RootServers[7] = \"198.97.190.53\";\r\n RootServers[8] = \"192.36.148.17\";\r\n RootServers[9] = \"192.58.128.30\";\r\n RootServers[10] = \"193.0.14.129\";\r\n RootServers[11] = \"199.7.83.42\";\r\n RootServers[12] = \"202.12.27.33\";\r\n }", "public List<SkungeeServer> getServers(String... servers) {\n\t\treturn ServerManager.getServers(servers);\n\t}", "@Override\n\tpublic List<Config_Entity> get_all_config() {\n\t\treturn config.get_all_config();\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<APIServerList, APIServer> listAPIServer(\n @QueryMap ListAPIServer queryParameters);", "public String getServerName();", "public void setDnsServersApp(String[] servers);", "public List<String> listAllRemoteSites () {\r\n\t\ttry {\r\n\t\t\tList<String> urls = new ArrayList<String>();\r\n\t\t\tpstmt = conn.prepareStatement(\"SELECT * FROM RemoteSite\");\r\n\t\t\trset = pstmt.executeQuery();\r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\turls.add(rset.getString(\"url\"));\r\n\t\t\t}\r\n\t\t\treturn urls;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tDatabaseConnection.closeStmt(pstmt, rset);\r\n\t\t}\r\n\t}", "@Override\n public Observable<ServerConfigBean> getServerConfig() {\n\n return Observable.create(new Observable.OnSubscribe<ServerConfigBean>() {\n @Override\n public void call(Subscriber<? super ServerConfigBean> subscriber) {\n ServerConfigBean bean = new ServerConfigBean();\n bean.setSplashUrl(\"http://biggar.image.alimmdn.com/1464166847649\");\n subscriber.onNext(bean);\n }\n }\n\n );\n }", "java.util.List<? extends io.netifi.proteus.admin.om.ConnectionOrBuilder> \n getConnectionsOrBuilderList();", "org.jacorb.imr.HostInfo[] list_hosts();", "long[] getAllServerSocketIds();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();", "public Map<String,ClientHandler> getUserList()\n {\n return userList;\n }", "private String[] loadSites() {\n RealmConfiguration realmConfig = new RealmConfiguration.Builder(getApplicationContext()).build();\n Realm.setDefaultConfiguration(realmConfig);\n Realm realm = Realm.getDefaultInstance();\n RealmQuery<Sites> query = realm.where(Sites.class);\n RealmResults<Sites> sites = query.findAll();\n int sitesCount = sites.size();\n String[] sitesArray = new String[sitesCount];\n for (int i = 0; i < sitesCount; i++) {\n String siteName = sites.get(i).getName();\n sitesArray[i] = siteName;\n }\n realm.close();\n return sitesArray;\n }", "private static ServerConfigPOJO defaultServerConfig() {\n return ServerConfigParser.readServerConfig();\n }", "public List<String> allClients() throws IOException {\n String httpResponse = httpGet(baseUrl.resolve(\"/automation/v2/clients\"));\n return mapper.readValue(httpResponse, new TypeReference<List<String>>() {\n });\n }", "public synchronized List<ServerThread> getConnectionArray() {\r\n return connectionArray;\r\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response index() {\n ArrayList<String> serversClone = new ArrayList<>();\n this.cm.getServers().forEach(server -> {\n serversClone.add(server);\n });\n while (!serversClone.isEmpty()) {\n String selectedServer = this.cm.getServer();\n serversClone.remove(selectedServer);\n try{\n String endpoint = \"http://\" + selectedServer\n + \"/WebService/webresources/files\";\n String methodType=\"GET\";\n URL url = new URL(endpoint);\n HttpURLConnection urlConnection = (HttpURLConnection) \n url.openConnection();\n urlConnection.setRequestMethod(methodType);\n urlConnection.setDoOutput(true);\n urlConnection.setRequestProperty(\n \"Content-type\", MediaType.APPLICATION_JSON\n );\n urlConnection.setRequestProperty(\n \"Accept\", MediaType.APPLICATION_JSON\n );\n int httpResponseCode = urlConnection.getResponseCode();\n if (httpResponseCode == HttpURLConnection.HTTP_OK) {\n BufferedReader in = new BufferedReader(\n new InputStreamReader(urlConnection.getInputStream()));\n String inputLine;\n StringBuilder content = new StringBuilder();\n while ((inputLine = in.readLine()) != null) {\n content.append(inputLine);\n }\n return Response.ok(content.toString()).build();\n } else {\n if (serversClone.isEmpty()) {\n return Response\n .status(httpResponseCode).build();\n }\n } \n } catch (IOException ex) {\n System.err.println(ex);\n return Response.serverError().build();\n }\n }\n return Response.status(HttpURLConnection.HTTP_UNAVAILABLE).build();\n }", "protected List<String> configurationArguments() {\n List<String> args = new ArrayList<String>();\n return args;\n }", "List<IConnector> getConnectors();", "public static List getList(String key) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return null;\n }\n return cur.getList(key);\n }", "public Set<String> getGameListClients() {\n return this.gameListClients;\n }", "public void setupWebServers(){\n if(rwsServer == null || csaServer == null){\n String serverURL = getFirstAttribute(cn,FRONTEND_ADDRESS_TAG);\n setupWebServers(serverURL);\n }\n }", "public ServerConfigManager getServerConfigManager() {\n return this.serverConfigManager;\n }" ]
[ "0.7142184", "0.69971246", "0.69555527", "0.67791164", "0.67401", "0.6713404", "0.6677674", "0.66712165", "0.66560435", "0.66559947", "0.66478336", "0.65972066", "0.6588199", "0.649931", "0.64372706", "0.6397306", "0.6378225", "0.632135", "0.63108474", "0.6310581", "0.63081634", "0.6297783", "0.62580544", "0.6252182", "0.6247944", "0.62427616", "0.6168794", "0.6137851", "0.6090835", "0.60665363", "0.6044466", "0.60314095", "0.59794044", "0.59687895", "0.5942363", "0.5930895", "0.59128594", "0.59087783", "0.59019256", "0.58938533", "0.5885943", "0.58554137", "0.5842178", "0.5811379", "0.58092195", "0.57986516", "0.57885903", "0.57763946", "0.5775664", "0.5770358", "0.57596326", "0.57379144", "0.5723957", "0.5722062", "0.57205576", "0.57087994", "0.57046914", "0.5694307", "0.5684893", "0.5663528", "0.5644806", "0.5642371", "0.5639589", "0.56320333", "0.5606834", "0.5596994", "0.559265", "0.55924183", "0.5591527", "0.5583951", "0.55747336", "0.5571637", "0.55676746", "0.5565891", "0.5563038", "0.55521744", "0.5550326", "0.5548174", "0.55471", "0.55452096", "0.55437654", "0.5543438", "0.5541023", "0.552277", "0.5512536", "0.54995054", "0.54990125", "0.5482725", "0.54739964", "0.5472609", "0.54725456", "0.54680973", "0.54564726", "0.54474443", "0.5444004", "0.54308563", "0.54298544", "0.5425898", "0.5423873", "0.5420124" ]
0.6218043
26
Provide app version for setting
private void setAppVersion() { try { String appVer = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName; ServerSettingHelper.getInstance().setApplicationVersion(appVer); } catch (NameNotFoundException e) { if (Config.GD_ERROR_LOGS_ENABLED) Log.e("NameNotFoundException", "Error of getting package information!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getAppVersion(){\r\n return getProperty(\"version\");\r\n }", "public String getAppVersion() { return appVersion; }", "public static String getAppVersion() {\n \t\tif (props.containsKey(\"app.version\")) {\n \t\t\treturn props.getProperty(\"app.version\");\n \t\t} else {\n \t\t\treturn \"unspecified\";\n \t\t}\n \t}", "java.lang.String getApplicationVersion();", "@Key(\"application.version\")\n\tString applicationVersion();", "public String getAppVersion() {\n return appVersion;\n }", "void setApplicationVersion(java.lang.String applicationVersion);", "public static String getApplicationVersion() {\n String appVersion = Settings.getAppVersion();\n return appVersion != null ? appVersion : \"?\";\n }", "public void setManifestVersion() {\n\t\tSharedPreferences.Editor editor = sp.edit();\n\t\teditor.putString(VERSION_KEY, thisVersion);\n\t\teditor.commit();\n\t}", "public static String getAppVersionName(Context ctx) {\n String mAppVer = \"1.0\";\n /*try {\n PackageManager pm = ctx.getPackageManager();\n PackageInfo pi = pm.getPackageInfo(ctx.getPackageName(), 0);\n mAppVer = pi.versionName != null ? pi.versionName : mAppVer ;\n } catch (Exception e) {\n }*/\n return mAppVer;\n }", "public void setVersion(String version);", "void setVersion(String version);", "void setVersion(String version);", "public void setAppVersion(String appVersion) {\n this.appVersion = appVersion == null ? null : appVersion.trim();\n }", "void setVersion(long version);", "public void setVersion(String version){\r\n this.version = version;\r\n }", "private static String getAppVersionNumber(Context c) {\n String version = \"N/A\";\n try {\n final PackageManager packageManager = c.getPackageManager();\n if (packageManager == null) {\n return version;\n }\n\n PackageInfo packageInfo = packageManager.getPackageInfo(c.getPackageName(), 0);\n version = packageInfo.versionName;\n }\n catch (Exception e) {\n FLog.e(TAG, \"Unable to read the app version!\", e);\n }\n\n return version;\n }", "public String getVersion(){\r\n return version;\r\n }", "public String getProductVersion();", "public static String getAppVersionNumber(Context context) {\n\n\t\tString version = \"1.0\";\n\t\ttry {\n\t\t\tversion = context.getPackageManager().getPackageInfo(\n\t\t\t\t\tcontext.getPackageName(), 0).versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn \"app-\" + version;\n\t}", "String buildVersion();", "String offerVersion();", "public static String obtenerversionApp(Context context){\n String respuesta=\"\";\n try {\n PackageInfo packageInfo=context.getPackageManager().getPackageInfo(context.getPackageName(),0);\n respuesta=packageInfo.versionName;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n return respuesta;\n }", "public String getStrappver() {\n return strappver;\n }", "public static final String getVersion() { return version; }", "public static final String getVersion() { return version; }", "public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}", "default String getVersion()\n {\n return getString( \"version\", \"Unknown Version\");\n }", "public static String getVersion() {\n\t\treturn version;\r\n\t}", "public static String getVersion() {\n\t\treturn version;\n\t}", "public static String getVersion() {\n return version;\n }", "public static String getVersion() {\n return version;\n }", "int getCurrentVersion();", "public void setVersion(String version)\n {\n this.ver = version;\n }", "@Override\n\tpublic java.lang.String getVersion() {\n\t\treturn _scienceApp.getVersion();\n\t}", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public static int getAppVersionCode(){\n PackageManager pm = getContext().getPackageManager();\n if(pm != null) {\n PackageInfo pi;\n try {\n pi = pm.getPackageInfo(getContext().getPackageName(), 0);\n if(pi != null) {\n return pi.versionCode;\n }\n }catch(NameNotFoundException e) {\n e.printStackTrace();\n }\n }\n return -1;\n }", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "public void setVersion(String version)\n {\n this.version = version;\n }", "private static String getVersionFromManifest() {\n return ChronicleMapBuilder.class.getPackage().getImplementationVersion();\n }", "public void setVersion(int value) {\n this.version = value;\n }", "String getSdkVersion() {\n return sdkVersion;\n }", "public static String getAppVersionNameOld(Context context) {\n String versionName = \"\";\n try {\n // ---get the package info---\n PackageManager pm = context.getPackageManager();\n PackageInfo pi = pm.getPackageInfo(context.getPackageName(), 0);\n versionName = pi.versionName;\n if (TextUtils.isEmpty(versionName)) {\n return \"\";\n }\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n }\n return versionName;\n }", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public static String getVersion() {\n\t\treturn \"1.0.3\";\n\t}", "public String getVersion () {\r\n return version;\r\n }", "public void setVersion(String version) {\n\t\t\r\n\t}", "private void setVersionNumber(int version) {\n versionNumber = version;\n }", "@Override\n\tpublic ApiResponseResult queryAppVersion() throws Exception {\n\t\tMap m = new HashMap();\n\t\t List<Map<String, Object>> l = sysUserDao.queryAppVersion();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Version\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t return ApiResponseResult.failure(\"未设置更新版本\");\n\t\t }\n\t\t \n\t\t l = sysUserDao.queryApkUrl();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Url\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t return ApiResponseResult.failure(\"未设置更新版本的下载地址\");\n\t\t }\n\t\t \n\t\t l = sysUserDao.queryAppSize();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Size\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t m.put(\"Size\", 0);\n\t\t }\n\t\t\n\t\treturn ApiResponseResult.success().data(m);\n\t}", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "public void setVersion(int version) {\n this.version = version;\n }", "public void setVersion(int version) {\n this.version = version;\n }", "public String GetVersion() {\n\t\tString adapter_version = \"version: \" + adapter_version_;\n\t\treturn adapter_version;\n\t}", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "@Override\n public String getVersionString() {\n return versionString;\n }", "public String getVersion() {\r\n return version;\r\n }", "public default String getVersion() {\n return Constants.VERSION_1;\n }", "public String getBuildVersion() {\n try {\n Properties versionFileProperties = new Properties();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(\"version.properties\");\n if (inputStream != null) {\n versionFileProperties.load(inputStream);\n return versionFileProperties.getProperty(\"version\", \"\") + \" \" + versionFileProperties.getProperty(\"timestamp\", \"\");\n }\n } catch (IOException e) {\n Logger.getLogger(OnStartup.class.getName()).log(Level.SEVERE, null, e);\n }\n return \"\";\n }", "public abstract String getVersion();", "public abstract String getVersion();", "public abstract String getVersion();", "public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager.getPackageInfo(\n\t\t\t\t\tgetPackageName(), 0);\n\t\t\tversion = packageInfo.versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn version;\n\t}", "public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager.getPackageInfo(\n\t\t\t\t\tgetPackageName(), 0);\n\t\t\tversion = packageInfo.versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn version;\n\t}", "public String getVersion()\n {\n return version;\n }", "public void setVersion(long version) {\n this.version = version;\n }", "void xsetApplicationVersion(com.microsoft.schemas.office.x2006.digsig.STVersion applicationVersion);", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public void setVersion(Integer version)\r\n {\r\n this.version = version;\r\n }", "public void setVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}", "@Override\n\tpublic void setVersion(java.lang.String version) {\n\t\t_scienceApp.setVersion(version);\n\t}", "private String getVersionName() {\n\n\t\tString versionName = \"\";\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager\n\t\t\t\t\t.getPackageInfo(getPackageName(), 0);// 获取包的内容\n\t\t\t// int versionCode = packageInfo.versionCode;\n\t\t\tversionName = packageInfo.versionName;\n\t\t\tSystem.out.println(\"versionName = \" + versionName);\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn versionName;\n\t}" ]
[ "0.7939517", "0.7875554", "0.76167685", "0.75680214", "0.7522436", "0.7491004", "0.7365591", "0.7095798", "0.6893855", "0.6805105", "0.677182", "0.67552406", "0.67552406", "0.66615134", "0.66571325", "0.66424406", "0.6613589", "0.6608105", "0.6600664", "0.6566861", "0.6539161", "0.65160716", "0.64654195", "0.64255124", "0.64173794", "0.64173794", "0.64155704", "0.6404104", "0.6402628", "0.63914126", "0.63761604", "0.63761604", "0.6370037", "0.6360902", "0.6358667", "0.6351899", "0.6351899", "0.6343389", "0.6296057", "0.6296057", "0.6296057", "0.6296057", "0.6296057", "0.6296057", "0.6296057", "0.6296057", "0.62810504", "0.627898", "0.62701154", "0.62593436", "0.62555367", "0.62488365", "0.62488365", "0.62488365", "0.62488365", "0.62455016", "0.62443554", "0.6242552", "0.6237971", "0.6231857", "0.623074", "0.623074", "0.623074", "0.623074", "0.62281126", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.62278265", "0.621156", "0.621156", "0.62110025", "0.62024075", "0.62024075", "0.62024075", "0.6198175", "0.6194903", "0.6184195", "0.61836237", "0.61825085", "0.61825085", "0.61825085", "0.61790925", "0.61790925", "0.6176003", "0.6174038", "0.617001", "0.61489487", "0.61489487", "0.6140569", "0.6140053", "0.613374", "0.6132088" ]
0.78360015
2
Initialize SocialImageLoader when application start up and clear all data cache.
private void initSocialImageLoader() { if (SocialDetailHelper.getInstance().socialImageLoader == null) { SocialDetailHelper.getInstance().socialImageLoader = new SocialImageLoader(mContext); SocialDetailHelper.getInstance().socialImageLoader.clearCache(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initImageLoader() {\n if (!ImageLoader.getInstance().isInited()) {\n ImageLoaderConfiguration config = ImageLoaderConfiguration.createDefault(getActivity().getApplicationContext());\n ImageLoader.getInstance().init(config);\n }\n }", "private void initImageLoader() {\n UniversalImageLoader universalImageLoader = new UniversalImageLoader(mContext);\n ImageLoader.getInstance().init(universalImageLoader.getConfig());\n }", "private void initImageLoader() {\n ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(this);\n config.threadPriority(Thread.NORM_PRIORITY - 2);\n config.denyCacheImageMultipleSizesInMemory();\n config.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n config.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n config.tasksProcessingOrder(QueueProcessingType.LIFO);\n // Initialize ImageLoader with configuration.\n ImageLoader.getInstance().init(config.build());\n }", "public static void initImageLoader() {\n }", "private void initializeImageLoader(MyApplication myApplication) {\n\t\tImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(myApplication).threadPriority(Thread.NORM_PRIORITY - 2)\n\t\t\t\t.denyCacheImageMultipleSizesInMemory().discCacheFileNameGenerator(new Md5FileNameGenerator())\n\t\t\t\t.tasksProcessingOrder(QueueProcessingType.LIFO).writeDebugLogs() // Remove\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// release\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// app\n\t\t\t\t.build();\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config);\n\t}", "private void init() {\n clearCaches();\n }", "private static void initImageLoader(Context context) {\n\t\tImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n\t\tconfig.threadPriority(Thread.NORM_PRIORITY - 2);\n\t\tconfig.denyCacheImageMultipleSizesInMemory();\n\t\tconfig.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n\t\tconfig.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n\t\tconfig.tasksProcessingOrder(QueueProcessingType.LIFO);\n\t\tconfig.writeDebugLogs(); // Remove for release app\n\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config.build());\n\t}", "private void initImageLoader(Context context) {\n\t\tImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n\t\tconfig.threadPriority(Thread.NORM_PRIORITY - 2);\n\t\tconfig.denyCacheImageMultipleSizesInMemory();\n\t\tconfig.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n\t\tconfig.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n\t\tconfig.tasksProcessingOrder(QueueProcessingType.LIFO);\n\t\tconfig.writeDebugLogs(); // Remove for release app\n\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config.build());\n\t}", "private void setImageLoader() {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof BaseActivity) {\n\t\t\tBaseActivity activity = (BaseActivity) mContext;\n\t\t\timageLoader = activity.getImageLoader();\n\t\t}\n\t}", "public static void initImageLoader(Context context) {\n ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n config.threadPriority(Thread.NORM_PRIORITY - 2);\n config.denyCacheImageMultipleSizesInMemory();\n config.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n config.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n config.tasksProcessingOrder(QueueProcessingType.LIFO);\n //config.writeDebugLogs(); // Remove for release app\n\n // Initialize ImageLoader with configuration.\n ImageLoader.getInstance().init(config.build());\n }", "public void initImageLoader(Context context) {\n\n ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)\n .threadPoolSize(1)\n .tasksProcessingOrder(QueueProcessingType.LIFO)\n .diskCacheFileNameGenerator(new Md5FileNameGenerator())\n .threadPriority(Thread.NORM_PRIORITY - 2)\n .denyCacheImageMultipleSizesInMemory()\n .memoryCache(new WeakMemoryCache())\n .build();\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config);\n\t}", "public static void initImageLoader(Context context) {\n ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n config.threadPriority(Thread.NORM_PRIORITY - 2);\n config.denyCacheImageMultipleSizesInMemory();\n config.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n config.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n config.tasksProcessingOrder(QueueProcessingType.LIFO);\n config.writeDebugLogs(); // Remove for release app\n\n // Initialize ImageLoader with configuration.\n ImageLoader.getInstance().init(config.build());\n }", "public static void initImageLoader(Context context) {\n ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(\n context).threadPriority(Thread.NORM_PRIORITY - 2)\n .diskCacheFileNameGenerator(new Md5FileNameGenerator())\n\n .diskCacheSize(50 * 1024 * 1024)\n .tasksProcessingOrder(QueueProcessingType.LIFO)\n .build();\n ImageLoader.getInstance().init(config);\n }", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "private void init() {\r\n\r\n analyticsManager = new xxxxAnalytics(getApplicationContext());\r\n\r\n analyticsSender = new AnalyticsSender(this);\r\n\r\n provider = FeedProviderImpl.getInstance(this);\r\n\r\n feedId = getIntent().getExtras().getInt(Constants.FEED_ID);\r\n if (provider != null) {\r\n friendFeed = provider.getFeed(feedId);\r\n }\r\n\r\n unifiedSocialWindowView = findViewById(R.id.linearLayoutForUnifiedSocialWindow);\r\n\r\n\r\n // Get member contacts.\r\n memberContacts = provider.getContacts(feedId);\r\n\r\n lastDiffs = new LinkedBlockingDeque<Integer>();\r\n }", "public static void initImageLoader(Context context) {\n\t\tImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)\n\t\t.threadPriority(Thread.NORM_PRIORITY - 2)\n\t\t.denyCacheImageMultipleSizesInMemory()\n\t\t.diskCacheFileNameGenerator(new Md5FileNameGenerator())\n\t\t.diskCacheSize(50 * 1024 * 1024) // 50 Mb\n\t\t.tasksProcessingOrder(QueueProcessingType.LIFO)\n\t\t.writeDebugLogs() // Remove for release app\n\t\t.build();\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config);\n\t}", "public static void initImageLoader(Context context) {\n\t\tImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)\n\t\t\t\t.threadPriority(Thread.NORM_PRIORITY - 2)\n\t\t\t\t.denyCacheImageMultipleSizesInMemory()\n\t\t\t\t.memoryCache(new WeakMemoryCache())\n\t\t\t\t.diskCacheFileNameGenerator(new Md5FileNameGenerator())\n\t\t\t\t.tasksProcessingOrder(QueueProcessingType.LIFO)\n\t\t\t\t.writeDebugLogs() // Remove for release app\n\t\t\t\t.build();\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config);\n\t}", "public static void initImageLoader(Context context) {\n\t\tFile cacheDir = StorageUtils.getCacheDirectory(context);\n\t\tImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)\n\t\t\t\t.threadPriority(Thread.NORM_PRIORITY - 2)\n\t\t\t\t.denyCacheImageMultipleSizesInMemory() \n//\t\t\t\t.discCache(new UnlimitedDiscCache(cacheDir)) // default\n\t\t\t\t.discCacheFileNameGenerator(new Md5FileNameGenerator())\n\t\t\t\t.memoryCache(new LruMemoryCache(2 * 1024 * 1024))\n\t\t\t\t.tasksProcessingOrder(QueueProcessingType.LIFO)\n\t\t\t\t.writeDebugLogs() // Remove for release app\t\t\t\t\n\t\t\t\t.build();\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config);\n\t}", "public static void initialize() {\r\n\t\tif (!connectionByProjectIdMap.isEmpty()) {\r\n\t\t\tcloseAllMsiDb();\r\n\t\t\tconnectionByProjectIdMap.clear();\r\n\t\t}\r\n\t\tif (udsDbConnection != null) {\r\n\t\t\tinitializeUdsDb();\r\n\t\t}\r\n\t}", "public static void initImageLoader(Context context) {\n\t}", "public void initialize() {\n this.loadDownloadList();\n }", "private void initDataLoader() {\n\t}", "public void initImageLoader(Context context){\n ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)\n\t .memoryCacheExtraOptions(1200, 1000) // default = device screen dimensions\n\t .discCacheExtraOptions(1200, 1000, CompressFormat.JPEG, 85, null)\n\t .threadPoolSize(3) // default\n\t .threadPriority(Thread.NORM_PRIORITY - 1) // default\n\t .tasksProcessingOrder(QueueProcessingType.FIFO) // default\n\t .denyCacheImageMultipleSizesInMemory()\n\t .memoryCache(new LruMemoryCache(2 * 1024 * 1024))\n\t .memoryCacheSize(2 * 1024 * 1024)\n\t .memoryCacheSizePercentage(13) // default\n\t .discCacheSize(50 * 1024 * 1024)\n\t .discCacheFileCount(100)\n\t .discCacheFileNameGenerator(new HashCodeFileNameGenerator()) // default\n\t .imageDownloader(new BaseImageDownloader(context)) // default\n\t .defaultDisplayImageOptions(DisplayImageOptions.createSimple()) // default\n\t .writeDebugLogs()\n .build();\n ImageLoader.getInstance().init(config);\n\t}", "private void setUpImageLoader() {\n\t\tfinal DisplayMetrics displayMetrics = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n\t\tfinal int height = displayMetrics.heightPixels;\n\t\tfinal int width = displayMetrics.widthPixels;\n\n\t\t// For this sample we'll use half of the longest width to resize our images. As the\n\t\t// image scaling ensures the image is larger than this, we should be left with a\n\t\t// resolution that is appropriate for both portrait and landscape. For best image quality\n\t\t// we shouldn't divide by 2, but this will use more memory and require a larger memory\n\t\t// cache.\n\t\tfinal int longest = (height > width ? height : width) / 4;\n\n\t\tImageCache.ImageCacheParams cacheParams =\n\t\t\t\tnew ImageCache.ImageCacheParams(this, IMAGE_CACHE_DIR);\n\t\tcacheParams.setMemCacheSizePercent(0.25f); // Set memory cache to 25% of app memory\n\n\t\timageResizer = new ImageResizer(this, longest);\n\t\timageResizer.addImageCache(getSupportFragmentManager(), cacheParams);\n\t\timageResizer.setImageFadeIn(true);\n\t}", "public void initialize() {\n this.loadNewsList();\n }", "private void initData() {\n\t\tmImageLoader = VolleyUtil.getInstance(this).getImageLoader();\n\t\tmNetworkImageView.setImageUrl(Pictures.pictures[3], mImageLoader);\n\t\tmNetworkImageView.setErrorImageResId(R.drawable.ic_pic_error);\n\t\tmNetworkImageView.setDefaultImageResId(R.drawable.ic_pic_default);\n\t}", "private void initShare() {\n // Create ShareHelper\n mShareHelper = new ShareHelper(mContext);\n }", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "private synchronized void lazyInit() {\n logger.debug(\"+\");\n if(lazyInitDone) {\n logger.debug(\"- already inited\");\n return;\n }\n lazyInitDone = true;\n AlbumUploadProfile.get().init();\n ImageUploadProfile.get().init();\n BannerUploadProfile.get().init();\n SiteMapBuilder.getInstance().getHandlers().put(\"menu\", new MenuPagesHandler());\n SiteMapBuilder.getInstance().getHandlers().put(\"unlinked\", new UnlinkedPagesHandler());\n try { DictionaryFileBuilder.getInstance().generate(false); }\n catch (CriticalException ex) { logger.error(\"Exception\", ex); }\n logger.debug(\"-\");\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tdoBindService();\r\n\t\tinitImageLoaderConfig();\r\n\t}", "public void init(Context mContext)\n {\n if(mImageRepository!=null)\n {\n return;\n }\n\n mImageRepository=ImageRepository.getInstance(mContext);\n\n //getting list from mImageRepository\n mImagesList=mImageRepository.getImageList();\n }", "static public void initSettings() {\n iSettings = BitmapSettings.getSettings();\n iSettings.load();\n }", "protected void initializeInstances() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n if (mUserCache == null) {\n mUserCache = new UserCache();\n }\n if(mGlobalGroupContainer == null) {\n mGlobalGroupContainer = new GroupContainer(getApplicationContext());\n }\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n\n if(mGlobalContactContainer == null) {\n mGlobalContactContainer = new ContactContainer(getApplicationContext());\n mGlobalContactContainer.setContactSortKey(Contact.UserSortKey.USER_FIRST_NAME);\n }\n }", "@PostConstruct\n\tprotected void init() {\n\t\tLOGGER.info(\"GalleryModel init Start\");\n\t\tcharacterList.clear();\n\t\ttry {\n\t\t\tif (resource != null && !resource.getPath().contains(\"conf\")) {\n\t\t\t\t\tresolver = resource.getResourceResolver();\n\t\t\t\t\thomePagePath=TrainingHelper.getHomePagePath(resource);\n\t\t\t\t\tif(homePagePath!=null){\n\t\t\t\t\tlandinggridPath = homePagePath;\n\t\t\t\t\tif (!linkNavigationCheck) {\n\t\t\t\t\t\tlinkNavOption = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tcheckLandingGridPath();\n\t\t\t\t\tif (!\"products\".equals(galleryFor)) {\n\t\t\t\t\t\tcharacterList = tileGalleryAndLandingService.getAllTiles(landinggridPath, galleryFor, \"landing\",\n\t\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Exception Occured\", e);\n\t\t}\n\t\tLOGGER.info(\"GalleryModel init End\");\n\t}", "protected void initSingletons()\n {\n Singleton.initInstance();\n }", "private void initPerRequestState() {\n if (this.trendValueDao == null) {\n this.trendValueDao = new MetricTrendValueDataSource();\n }\n }", "public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}", "private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }", "private void configurePhotoLoaders() {\n String themePhotosUrl = null;\n String myPhotosUrl = null;\n String friendPhotosUrl = null;\n\n if (mTheme != null) {\n themePhotosUrl = String.format(Endpoints.THEME_PHOTO_LIST, mTheme.id);\n\n if (!isAuthenticating() && mPhotoUser != null) {\n myPhotosUrl = String.format(Endpoints.USER_THEME_PHOTO_LIST, Endpoints.ME_ID,\n mTheme.id);\n\n friendPhotosUrl = String.format(Endpoints.FRIENDS_PHOTO_LIST, Endpoints.ME_ID,\n mTheme.id);\n }\n }\n\n mThemePhotosLoader = restartLoader(mLoaderMgr, THEME_PHOTOS_ID, mThemePhotosLoader,\n new PhotoCallbacks(THEME_PHOTOS_ID, mThemePhotos), themePhotosUrl);\n mMyPhotosLoader = restartLoader(mLoaderMgr, MY_PHOTOS_ID, mMyPhotosLoader,\n new PhotoCallbacks(MY_PHOTOS_ID, mMyPhotos), myPhotosUrl);\n mFriendPhotosLoader = restartLoader(mLoaderMgr, FRIEND_PHOTOS_ID, mFriendPhotosLoader,\n new PhotoCallbacks(FRIEND_PHOTOS_ID, mFriendPhotos), friendPhotosUrl);\n }", "public void init() {\n // TODO start asynchronous download of heavy resources\n }", "@PostConstruct\n\tpublic void init() {\n\t // TODO create cacheTreeMgr using HashMap or EhCache\n cacheTree = new CacheTreeHashMap();\n\t cacheTree.init();\n\t}", "private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }", "protected void initializeCache() {\n\t\tif (cache == null){\n\t\t\tcache = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\telse{\n\t\t\tcache.clear();\n\t\t}\n\t}", "@PostConstruct\n/* */ public void init()\n/* */ {\n/* 44 */ this.albumList = this.galleryManager.loadAllAlbums();\n/* */ }", "protected void initialize() {\n // Attribute Load\n this.attributeMap.clear();\n this.attributeMap.putAll(this.loadAttribute());\n // RuleUnique Load\n this.unique = this.loadRule();\n // Marker Load\n this.marker = this.loadMarker();\n // Reference Load\n this.reference = this.loadReference();\n }", "private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\tBufferedReader fileReader = null;\n\t\ttry {\n\t\t\tResource resource = resourceLoader.getResource(\"classpath:JetBlue_Airports.csv\");\n\t\t\tfileReader = new BufferedReader(new FileReader(resource.getFile()));\n\t\t\tairportList = CsvReaderUtil.formAirportList(fileReader);\n\t\t\tLOG.info(\"Loaded data from csv file on startup, total airports: {}\", airportList.size());\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Exception: \", e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileReader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLOG.error(\"Exception while closing csv file, exception: \", e);\n\t\t\t}\n\t\t}\n\t}", "private void init() {\n\t\tback=(ImageView)this.findViewById(R.id.back);\n\t\taddUser=(ImageView)this.findViewById(R.id.adduser);\n\t\tgrid=(GridView)this.findViewById(R.id.gridview);\n\t}", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "public void initialize() {\n this.loadBidDetails();\n }", "private void initClassloaders() {\n\t\tthis.commonloader = createClassloader(\"common\",null);\n\t\tthis.sharedloader = createClassloader(\"shared\", commonloader);\n\t\tthis.catalinaloader = createClassloader(\"server\", commonloader);\n\t}", "private void init(){\n if(!initializing) {\n Initializer init = new Initializer();\n InitializationDetails initializationDetails = new InitializationDetails(url, download, reset, deviceID, this);\n init.execute(initializationDetails);\n initializing = true;\n }\n }", "@Override\n protected void onReset() {\n super.onReset();\n\n // Ensure the loader is stopped\n onStopLoading();\n\n // At this point we can release the resources associated with 'apps' if needed.\n if (mData != null) {\n onReleaseResources(mData);\n mData = null;\n }\n }", "private void initializeImageModels() {\n for(ImageModel model : GalleryFragment.listImageModel){\n imgList.add(model.getImagePath());\n }\n }", "public static synchronized void init()\n {\n lazyinit();\n }", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "public void initializeAfterLoading() {\n sortMediaFiles();\n }", "private void initialize() {\n\t\tcacheableImpl = new CacheableImpl();\n\t\tsetToolTipText(\"\");\n\t}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "private void init() {\n filmCollection = new FilmCollection();\n cameraCollection = new CameraCollection();\n }", "public static void facebookInitializePlugin() {\n ThreadUtil.performOnMainThread(new Runnable() {\n @Override\n public void run() {\n if (_instance != null && _instance.facebookInteractionLayer == null) {\n _instance.callbackManager = CallbackManager.Factory.create();\n _instance.facebookInteractionLayer = new FacebookInteractionLayer(_instance.callbackManager);\n AndroidNativeFacebook_onSDKInitialized();\n }\n }\n });\n }", "public void init() {\n\t\t\n\t\t\n\t\tprepareGaborFilterBankConcurrent();\n\t\t\n\t\tprepareGaborFilterBankConcurrentEnergy();\n\t}", "private void init() {\n\n if (currUserPayments == null) {\n currUserPayments = new ArrayList<>();\n }\n\n networkHelper = NetworkHelper.getInstance(getApplicationContext());\n\n binding = ActivityPaymentsBinding.inflate(getLayoutInflater());\n View view = binding.getRoot();\n setContentView(view);\n\n listHelper = ListHelper.getInstance();\n\n\n getAllExpenses();\n invokeOnClickListeners();\n recyclerViewInit();\n\n }", "void init() {\n\t\tinitTypes();\n\t\tinitGlobalFunctions();\n\t\tinitFunctions();\n\t\tinitClasses();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (imageLoader != null) {\n\t\t\timageLoader.clearMemoryCache();\n\t\t}\n\t}", "public void setImageLoader(ImageLoader imageLoader) {\n/* 248 */ this.loader = imageLoader;\n/* */ }", "public void initData() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // number the loaderManager with mPage as may be requesting up to three lots of JSON for each tab\n loaderManager.initLoader(FETCH_STOCK_PICKING_LOADER_ID, null, loadStockPickingFromServerListener);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n View loadingIndicator = getView().findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n mEmptyStateTextView.setText(R.string.error_no_internet_connection);\n }\n }", "public static void init() {\r\n load();\r\n registerEventListener();\r\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n // TODO\n processImage = new Image(\"/icons/process.gif\");\n processImageView = new ImageView(processImage);\n processImageView.setVisible(false);\n Rectangle2D d = Screen.getPrimary().getVisualBounds();\n Format format = new SimpleDateFormat(\"d-M-yyyy\");\n tableList = FXCollections.observableArrayList();\n allMembers = FXCollections.observableArrayList();\n db = new DBAccess();\n dateLabel.setText(format.format(new Date()));\n prevDateBtn.setText(\"<\");\n refreshGrid.add(processImageView, 0, 0);\n setColumnSize((d.getWidth() - 265) / 6);\n setProcess();\n prevDateBtn.setVisible(false);\n nextDateBtn.setVisible(false);\n } catch (Exception ex) { System.out.println(ex); }\n }", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "@Override\n protected void onReset() {\n super.onReset();\n // Ensure the loader is stopped\n onStopLoading();\n // At this point we can release the resources associated with 'apps'\n // if needed.\n if (mData != null) {\n onReleaseResources(mData);\n mData = null;\n }\n unregisterObserver();\n }", "public final void init() {\n connectDB();\n\n initMainPanel();\n\n initOthers();\n }", "private void initComponents() {\r\n\t\trand = new Random();\r\n\t\tfetchProfiles();\r\n\t\tgetPeopleFromFile();\r\n\t}", "@Before\n public void init() {\n Cache cache = cacheManager.getCache(\"default-test\");\n cache.clear();\n\n }", "@PostConstruct\r\n\tpublic void init() {\n\t\tzeroLeggedOAuthProviderProcessingFilter = new ZeroLeggedOAuthProviderProcessingFilter(\r\n\t\t\t\toauthConsumerDetailsService, oauthNonceServices, oauthProcessingFilterEntryPoint,\r\n\t\t\t\toauthAuthenticationHandler, oauthProviderTokenServices, true);\r\n\t}", "@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }", "protected synchronized void clearURLLoader() {\r\n currentLoader = null;\r\n }", "private void initialize()\r\n {\r\n this.workspace = null;\r\n this.currentUser = null;\r\n this.created = new Date();\r\n this.securityInfo = null;\r\n }", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "private void init() {\n mCacheUtil = ExoPlayerCacheUtil.getInstance(this);\n\n //Lets put our array of URLs into a simple array adapter to display to the user\n ListView choicesListView = findViewById(R.id.lv_choices);\n mChoicesAdapter = new MediaListAdapter(this,\n R.layout.media_list_item, Arrays.asList(TestStreams.getHlsArray()));\n choicesListView.setAdapter(mChoicesAdapter);\n choicesListView.setOnItemClickListener(this);\n\n //The below code are just dummy fillers to provide a header and footer divider\n LayoutInflater inflater = getLayoutInflater();\n TextView tvEmptyHeader = (TextView) inflater.inflate(R.layout.choice_list_item, null);\n TextView tvEmptyFooter = (TextView) inflater.inflate(R.layout.choice_list_item, null);\n choicesListView.addHeaderView(tvEmptyHeader);\n choicesListView.addFooterView(tvEmptyFooter);\n\n LogTrace.d(TAG, \"Initialization complete.\");\n }", "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "private void init() {\n if (mHeadline != null) {\n mHeadlingString = StringEscapeUtils.unescapeHtml4(mHeadline.getMain());\n }\n\n for (ArticleMultimedia multimedia : mMultimedia) {\n if (multimedia.getSubtype().equals(\"thumbnail\")) {\n mThumbnail = getMultimediaUrl(multimedia);\n }\n }\n }", "private void initialize() {\n setImageResource(R.drawable.content);\n }", "private void manageLoaders() {\n\n // note: null is used in place of a Bundle object since all additional\n // parameters for Loader are global variables\n\n // get LoaderManager and initialise the loader\n if (getSupportLoaderManager().getLoader(LOADER_ID_01) == null) {\n getSupportLoaderManager().initLoader(LOADER_ID_01, null, this);\n } else {\n getSupportLoaderManager().restartLoader(LOADER_ID_01, null, this);\n }\n }", "public CoreImageHandler() {\n loaded = new ConcurrentHashMap<URL, CoreImage>();\n }", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "private void init() {\n mWallpaperRecycler.setLayoutManager(new GridLayoutManager(getContext(), 2));\n mWallpaperRecycler.setHasFixedSize(true);\n mWallpaperAdapter = new WallpaperAdapter(getContext(), mEmptyView, this);\n mWallpaperRecycler.setAdapter(mWallpaperAdapter);\n\n\n mPresenter = new TrendingWallpapersPresenterImpl(\n ThreadExecutor.getInstance(),\n MainThreadImpl.getInstance(),\n this,\n mUnsplashRepository);\n }", "private void init() {\n\t\tinitData();\n\t\tmViewPager = (ViewPagerCompat) findViewById(R.id.id_viewpager);\n\t\tnaviBar = findViewById(R.id.navi_bar);\n\t\tNavigationBarUtils.initNavigationBar(this, naviBar, true, ScreenContents.class, false, ScreenViewPager.class,\n\t\t\t\tfalse, ScreenContents.class);\n\t\tmViewPager.setPageTransformer(true, new DepthPageTransformer());\n\t\t// mViewPager.setPageTransformer(true, new RotateDownPageTransformer());\n\t\tmViewPager.setAdapter(new PagerAdapter() {\n\t\t\t@Override\n\t\t\tpublic Object instantiateItem(ViewGroup container, int position) {\n\n\t\t\t\tcontainer.addView(mImageViews.get(position));\n\t\t\t\treturn mImageViews.get(position);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void destroyItem(ViewGroup container, int position, Object object) {\n\n\t\t\t\tcontainer.removeView(mImageViews.get(position));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean isViewFromObject(View view, Object object) {\n\t\t\t\treturn view == object;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn mImgIds.length;\n\t\t\t}\n\t\t});\n\t}", "@PostConstruct\n protected void init() {\n direccionRegionalList = new ArrayList<InstitucionRequerida>();\n direccionRegionalList = institucionRequeridaServicio.getDireccionRegionalList();\n gadList = new ArrayList<InstitucionRequerida>();\n gadList = institucionRequeridaServicio.getGADList();\n registroMixtoList = new ArrayList<InstitucionRequerida>();\n registroMixtoList = institucionRequeridaServicio.getRegistroMixtoList();\n }", "public static void init() {\n\t\tmusicManager = new MusicManager();\n\t}", "public void init() throws CacheException {\n // no-op\n }", "protected void init() {\n init(null);\n }", "private void loadStaticData() {\n\t\tLog.d(TAG, \"Loading static data ...\");\n\n\t\tfinal String url = CommonUtilities.SERVERURL\n\t\t\t\t+ CommonUtilities.API_GET_STATIC_DATA;\n\t\tfinal Handler mHandlerFeed = new Handler();\n\t\tfinal Runnable mUpdateResultsFeed = new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tresponseString = null;\n\n\t\t\t\tif (jsonStr != null) {\n\t\t\t\t\tsaveGender(jsonStr);\n\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(context.getApplicationContext(),\n\t\t\t\t\t\t\tgetString(R.string.server_error),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tprogress = ProgressDialog.show(context,\n\t\t\t\tgetString(R.string.preparing_data),\n\t\t\t\tgetString(R.string.preparing_data), true, false);\n\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tjsonParser = new JSONParser();\n\t\t\t\tjsonStr = jsonParser.getHttpResultUrlGet(url);\n\n\t\t\t\tif (progress != null && progress.isShowing()) {\n\t\t\t\t\tprogress.dismiss();\n\t\t\t\t\tmHandlerFeed.post(mUpdateResultsFeed);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}.start();\n\t}", "@PostConstruct\n public void init() {\n oAuthProviders.registerProvider(this);\n }", "private void initiateLoader() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = null;\n if (connMgr != null) {\n networkInfo = connMgr.getActiveNetworkInfo();\n }\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n avi.show();\n loadingIndicator.setVisibility(View.VISIBLE);\n errorContainer.setVisibility(View.GONE);\n LoaderManager loaderManager = getSupportLoaderManager();\n String url = BASE_URL + \"&from=\" + fromDate;\n url += \"&to=\" + toDate;\n url += \"&page=\" + currentPageNo;\n url += \"&sortBy=\" + sortPreference;\n if (queryText != null) {\n url += \"&q=\" + queryText;\n }\n\n Bundle args = new Bundle();\n args.putString(URL_KEY, url);\n if (forceLoad) {\n loaderManager.restartLoader(LAST_LOADER_ID, args, this);\n forceLoad = false;\n } else {\n LAST_LOADER_ID = NEWS_LOADER_ID;\n }\n if (!loaderInitiated) {\n loaderManager.initLoader(NEWS_LOADER_ID, args, this);\n loaderInitiated = true;\n } else {\n loaderManager.restartLoader(NEWS_LOADER_ID, args, this);\n }\n } else {\n avi.hide();\n loadingIndicator.setVisibility(View.GONE);\n ((TextView) errorContainer.findViewById(R.id.tvErrorDesc)).setText(R.string.no_conn_error_message);\n errorContainer.setVisibility(View.VISIBLE);\n }\n }", "void init() {\n List<Artifact> artifacts = null;\n final List<RepositoryInfo> infos = RepositoryPreferences.getInstance().getRepositoryInfos();\n for (final RepositoryInfo info : infos) {\n if (info.isLocal()) {\n final File localrepo = new File(info.getRepositoryPath() + File.separator\n + DEFAULT_GID_PREFIX.replace('.', '/'));\n if (localrepo.exists()) {\n artifacts = resolveArtifacts(new File(info.getRepositoryPath()), localrepo);\n }\n }\n }\n\n if (artifacts == null) {\n artifacts = new ArrayList<Artifact>(1);\n }\n\n populateLocalTree(artifacts);\n populateAppPane(model.getApps());\n }", "private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }", "public void initialize() {\n // empty for now\n }", "public void initialize()\n {\n \t// Luodaan manager-luokat\n EffectManager.getInstance();\n MessageManager.getInstance();\n CameraManager.getInstance();\n\n // Luodaan pelitilan eri osat\n backgroundManager = new BackgroundManager(wrapper);\n \tweaponManager = new WeaponManager();\n hud = new Hud(context, weaponManager);\n touchManager = new TouchManager(dm, surfaceView, context, hud, weaponManager);\n gameMode = new GameMode(gameActivity, this, dm, context, hud, weaponManager);\n \n // Järjestellään Wrapperin listat uudelleen\n wrapper.sortDrawables();\n wrapper.generateAiGroups();\n \n // Merkitään kaikki ladatuiksi\n allLoaded = true;\n }", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }" ]
[ "0.75157666", "0.7484586", "0.71161216", "0.69575953", "0.68287855", "0.67087907", "0.65634173", "0.6557389", "0.64397156", "0.6404986", "0.6402734", "0.6389499", "0.63528645", "0.634913", "0.63451254", "0.6337446", "0.6328543", "0.6288996", "0.6266991", "0.6251213", "0.62072563", "0.61958176", "0.6195666", "0.61435765", "0.6107599", "0.6106227", "0.5978206", "0.5912831", "0.59033364", "0.58424044", "0.58337086", "0.581917", "0.5816248", "0.58118397", "0.57149845", "0.57121766", "0.5708301", "0.56821054", "0.5678668", "0.5676429", "0.5671257", "0.5664475", "0.5636218", "0.56163764", "0.5609131", "0.5602114", "0.5598288", "0.55886877", "0.55880606", "0.5584765", "0.5577409", "0.55730677", "0.5571275", "0.5565472", "0.5538863", "0.553149", "0.5521815", "0.551555", "0.55087775", "0.5508463", "0.55082184", "0.549826", "0.5496635", "0.54880226", "0.5484211", "0.5462172", "0.545734", "0.5447442", "0.54434335", "0.54377687", "0.543773", "0.5428757", "0.5428079", "0.5427827", "0.5418022", "0.54179984", "0.54113305", "0.5408698", "0.5401016", "0.5397971", "0.53960127", "0.5388889", "0.53862596", "0.5385181", "0.5375424", "0.5372135", "0.53663605", "0.5362893", "0.53627974", "0.5357556", "0.5357293", "0.5355026", "0.53545743", "0.5354243", "0.5351647", "0.5350745", "0.5346609", "0.5343124", "0.53396755", "0.5339592" ]
0.8552787
0
Created by maoyiding on 17711.
@Component @Mapper public interface AppraiseMapper { /** * 获取所有评价 * @return */ List<Appraise> getAll(); /** * 添加评价 * @return */ boolean addAppraise(Appraise appraise); }
{ "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}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "public void mo4359a() {\n }", "@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\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void m50366E() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\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 protected void initialize() {\n\n \n }", "private void init() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void skystonePos4() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\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\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo6081a() {\n }", "@Override\n public void init() {}", "private void strin() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo12628c() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void init() {\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void skystonePos6() {\n }", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void method_4270() {}", "Constructor() {\r\n\t\t \r\n\t }", "public abstract void mo70713b();", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.6066535", "0.5983616", "0.58933425", "0.5876099", "0.5844577", "0.5844577", "0.58179295", "0.5779001", "0.57746774", "0.5736305", "0.57216793", "0.5719395", "0.5719056", "0.5716877", "0.5710716", "0.569092", "0.56842315", "0.56841534", "0.56819487", "0.5681717", "0.56562704", "0.56562704", "0.56562704", "0.56562704", "0.56562704", "0.56343126", "0.56330013", "0.5619899", "0.56157124", "0.5613835", "0.56136435", "0.56067014", "0.56020164", "0.55936486", "0.5592258", "0.55843186", "0.55388516", "0.55388516", "0.5531791", "0.5531791", "0.5531791", "0.5531791", "0.5531791", "0.5531791", "0.5531791", "0.55297047", "0.55273175", "0.5518861", "0.5508426", "0.55018765", "0.54929036", "0.548509", "0.548509", "0.548509", "0.54835266", "0.54825693", "0.54825693", "0.54825693", "0.54797727", "0.54797727", "0.54797727", "0.54724884", "0.54692525", "0.5463507", "0.5457985", "0.54552066", "0.5451795", "0.5451795", "0.54516554", "0.5446822", "0.5443749", "0.54399204", "0.54373926", "0.54250914", "0.54214615", "0.54214615", "0.54214615", "0.54214615", "0.54214615", "0.54214615", "0.5421001", "0.54209477", "0.5417306", "0.54153246", "0.541498", "0.54141617", "0.5408343", "0.5400059", "0.5396823", "0.5389497", "0.5387446", "0.5387281", "0.53836435", "0.53835833", "0.53835833", "0.5380357", "0.5370062", "0.53624964", "0.53591394", "0.5353709", "0.5344565" ]
0.0
-1
This method allows to get all the Blocks for the Class on which it is;
public Collection<AssertStatement> getAsserts() { return asserts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BlockType[] getBlocks() {\n return blocks;\n }", "List<Block> blocks();", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public ArrayList<Block> getBlocks() {\n ArrayList<Block> blocks = new ArrayList<>();\n\n for (Vector2D pos : template) {\n blocks.add(new Block(pos.addVectorGetNewVector(center), this.color));\n }\n return blocks;\n }", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "public ProductionBlock[] getAllProductionBlocks();", "public static LinkedList<TempBlock> getAll(Block block) {\r\n\t\treturn instances_.get(block);\r\n\t}", "List<Block> getBlocksByCongName(String congName);", "@Override\n public List<Block> blocks() {\n List<Block> blocksList = new ArrayList<Block>();\n\n //Setting the blocks\n for (int j = 0; j <= 14; j++) {\n if (j == 0 || j == 1) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN));\n } else if (j == 2 || j == 3) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK));\n } else if (j == 4 || j == 5) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE));\n } else if (j == 6 || j == 7 || j == 8) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN));\n } else if (j == 9 || j == 10) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW));\n } else if (j == 11 || j == 12) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE));\n } else if (j == 13 || j == 14) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED));\n }\n }\n\n return blocksList;\n }", "public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "public Iterator<Map.Entry<Integer, Block>> listBlocks () {\n return this.blockMap.entrySet().iterator();\n }", "protected Block getBlock() {\r\n return this.block;\r\n }", "Set<? extends IRBasicBlock> getBlocks();", "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "public ArrayList<Block> getMap(){\r\n\t\treturn new ArrayList<Block>(this.blockMap);\r\n\t}", "public Block getBlock()\n {\n return block;\n }", "public static BlockExpression block(Class clazz, Iterable<Expression> expressions) { throw Extensions.todo(); }", "public BlockType getType()\n {\n return blockType;\n }", "public Set<InactivationBlockingMetadata> getAllInactivationBlockingDefinitions(\n @SuppressWarnings(\"rawtypes\") Class inactivationBlockedBusinessObjectClass) {\n Set<InactivationBlockingMetadata> blockingClasses\n = getDataDictionary().getAllInactivationBlockingMetadatas(inactivationBlockedBusinessObjectClass);\n if (blockingClasses == null) {\n return Collections.emptySet();\n }\n return blockingClasses;\n }", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "Block getBlock(String congName, String blockName, String blockNumber);", "private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "List<Block> getBlocks(String congName, String[] blockArray);", "public Block[] getCannons() {\n\t\tArrayList<Block> cannons = new ArrayList<Block>();\n\t\tfor (int i = 0; i < this.blocks.length; i++) {\n\t\t\tif (blocks[i].getType().equals(Material.DISPENSER))\n\t\t\t\tcannons.add(blocks[i]);\n\t\t}\n\t\treturn cannons.toArray(new Block[0]);\n\t}", "public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}", "public static BlockExpression block(Class clazz, Expression[] expressions) { throw Extensions.todo(); }", "@RequestMapping(value = \"getBlocks\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic BlockListResponseDTO getBlocks() {\r\n\t\tBlockListResponseDTO response = new BlockListResponseDTO();\r\n\t\ttry {\r\n\t\t\tresponse = blockService.getBlocks();\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tList<Parameter> parameters = e.getParamList();\r\n\t\t\tErrorDTO error = new ErrorDTO();\r\n\t\t\terror.setErrCode(e.getError().getErrCode());\r\n\t\t\terror.setParams(parameters);\r\n\t\t\terror.setDisplayErrMsg(e.isDisplayErrMsg());\r\n\t\t\tresponse.setError(error);\r\n\t\t\tresponse.setSuccess(false);\r\n\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public Block getBlock() {\n\t\treturn this.block;\n\t}", "public Collection<Block> getBadBlocks() {\n return badBlocks.asMap().values();\n }", "public List<VeinBlock> getAliasedBlocks() {\n\t\treturn new ArrayList<>(blocks);\n\t}", "@GetMapping(\"/getallblock\")\n\tpublic List<StudentRegistration> getAllBlockStudent() {\n\t\treturn srepo.findByStatus(\"blocked\");\n\t}", "public Block[] getTestBlocks(Class<?> c, int[] indices, int arrayCursor) {\n\t\tassert c != null;\n\t\tassert indices != null;\n\t\t\n\t\tif (!plans.containsKey(c)) {\t//cache miss\n\t\t\tplans.put(c, new ClassUnderTest(c, MAX_PLAN_RECURSION));\n\t\t}\t\t\n\t\tClassUnderTest node = plans.get(c);\t\t\n\n\t\t/* Retrieve distinct selected plans from plan space */\n\t\tList<Block> res = new Vector<Block>();\n\t\tfor (int i=0; i+arrayCursor<indices.length && i<MAX_NR_TEST_METHS_PER_CLASS; i++) {\n\t\t\t\tres.add(node.getBlock(indices[i+arrayCursor]));\n\t\t}\n\t\treturn res.toArray(new Block[res.size()]);\n\t}", "public Block getObj()\n\t{\n\t\treturn block;\n\t}", "public BranchGroup blocksScene(){\n\t\t\n\t\tIterator iterator = blocks.iterator();\n\t\t\n\t\twhile(iterator.hasNext()){\n\t\t\tbg.addChild(((Block) iterator.next()).boxGridScene());\n\t\t}\n\t\treturn bg;\n\t}", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "Block getBlockByNumber(long number);", "public Block getBlock() {\n return (Block)getChild(0);\n }", "public static BlockExpression block(Class clazz, Iterable<ParameterExpression> variables, Iterable<Expression> expressions) { throw Extensions.todo(); }", "public static BlockExpression block(Class clazz, Iterable<ParameterExpression> variables, Expression[] expressions) { throw Extensions.todo(); }", "BlockStore getBlockStore();", "public Iterator getIterator() {\n\t\t\n\t\treturn blocks.iterator();\n\t\t\n\t}", "Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;", "public Array<BlockDrawable> getFallingBlocksToDraw() {\r\n\t\tif (hasFalling())\r\n\t\t\treturn falling.allOuterBlocks();\r\n\t\treturn new Array<BlockDrawable>();\r\n\t}", "public Block getBlock(int index){\n\t\treturn ds[index];\n\t}", "public Block getBlockByID(Integer blockID){\n for (Block block : this.blocks) {\n if(block.getID().equals(blockID))\n {\n return block;\n }\n }\n return null;\n }", "private void loadBlockConfig(List<Element> blocks) {\n\t\tthis.blockConfigs = new ArrayList<BlockConfig>();\n\t\tfor (Element e : blocks) {\n\t\t\tString className = e.attributeValue(\"className\");\n\t\t\tint w = Integer.parseInt(e.attributeValue(\"w\"));\n\t\t\tint h = Integer.parseInt(e.attributeValue(\"h\"));\n\t\t\tint x = Integer.parseInt(e.attributeValue(\"x\"));\n\t\t\tint y = Integer.parseInt(e.attributeValue(\"y\"));\n\t\t\tblockConfigs.add(new BlockConfig(className, w, h, x, y));\n\t\t}\n\t}", "public Array<BlockDrawable> getBoardBlocksToDraw() {\r\n\t\tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\t\t\r\n\t\treturn blocksToDraw;\r\n\t}", "public Block accessBlock(int i){\n\t\treturn blocks[i]; \n\t}", "Collection<BuildingBlock> findBuildingBlocksbyBranchIdAndBuildingBlockType(Long branchId, BuildingBlockConstant buildingBlockType) throws BusinessException;", "public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}", "public void showblocks() {\n System.out.println(\"\");\n EcgCheck chk = EcgCheck.getInstance();\n System.out.println(\" Show Blocks\");\n\n }", "Block getHiveBlock();", "phaseI.Hdfs.BlockLocations getNewBlock();", "public Response getBlock(int row) {\n return blockList.get(row);\n }", "private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }", "List<MemoryBlockDB> getBlocks(Address start, Address end) {\n\t\tList<MemoryBlockDB> list = new ArrayList<>();\n\n\t\tList<MemoryBlockDB> tmpBlocks = blocks;\n\t\tint index = Collections.binarySearch(tmpBlocks, start, BLOCK_ADDRESS_COMPARATOR);\n\t\tif (index < 0) {\n\t\t\tindex = -index - 2;\n\t\t}\n\t\tif (index >= 0) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.contains(start)) {\n\t\t\t\tlist.add(block);\n\t\t\t}\n\t\t}\n\n\t\twhile (++index < tmpBlocks.size()) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.getStart().compareTo(end) > 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist.add(block);\n\t\t}\n\n\t\treturn list;\n\t}", "public StructuredBlock[] getSubBlocks() {\n\t\treturn subBlocks;\n\t}", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "public Block getBlockBelow() {\r\n\t\tif(onGround) {\r\n\t\t\tVector4f hitbox = getHitBox(worldPos);\r\n\t\t\tfloat x = hitbox.x + (hitbox.z - hitbox.x) / 2f;\r\n\t\t\tfloat y = hitbox.y - 0.1f;\r\n\t\t\tBlock b = BlockManager.getBlock(new Vector2f(x, y));\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ItemDefinition getBlock(int id) {\n\t\treturn itemsArray[id];\n\t}", "public Array<BlockDrawable> getGhostBlocksToDraw() {\t\t\r\n\t\tif(hasFalling()){\r\n\t\t\treturn ghost.allOuterBlocks();\r\n\t\t}\t\t\r\n\t\treturn new Array<BlockDrawable>();\r\n\t}", "public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}", "public List<AbstractIndex> loadAndGetBlocks(List<TableBlockInfo> tableBlocksInfos,\n AbsoluteTableIdentifier absoluteTableIdentifier) throws IndexBuilderException {\n List<AbstractIndex> loadedBlocksList =\n new ArrayList<AbstractIndex>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);\n addTableLockObject(absoluteTableIdentifier);\n // sort the block infos\n // so block will be loaded in sorted order this will be required for\n // query execution\n Collections.sort(tableBlocksInfos);\n // get the instance\n Object lockObject = tableLockMap.get(absoluteTableIdentifier);\n Map<TableBlockInfo, AbstractIndex> tableBlockMapTemp = null;\n // Acquire the lock to ensure only one query is loading the table blocks\n // if same block is assigned to both the queries\n synchronized (lockObject) {\n tableBlockMapTemp = tableBlocksMap.get(absoluteTableIdentifier);\n // if it is loading for first time\n if (null == tableBlockMapTemp) {\n tableBlockMapTemp = new ConcurrentHashMap<TableBlockInfo, AbstractIndex>();\n tableBlocksMap.put(absoluteTableIdentifier, tableBlockMapTemp);\n }\n }\n AbstractIndex tableBlock = null;\n DataFileFooter footer = null;\n try {\n for (TableBlockInfo blockInfo : tableBlocksInfos) {\n // if table block is already loaded then do not load\n // that block\n tableBlock = tableBlockMapTemp.get(blockInfo);\n // if block is not loaded\n if (null == tableBlock) {\n // check any lock object is present in\n // block info lock map\n Object blockInfoLockObject = blockInfoLock.get(blockInfo);\n // if lock object is not present then acquire\n // the lock in block info lock and add a lock object in the map for\n // particular block info, added double checking mechanism to add the lock\n // object so in case of concurrent query we for same block info only one lock\n // object will be added\n if (null == blockInfoLockObject) {\n synchronized (blockInfoLock) {\n // again checking the block info lock, to check whether lock object is present\n // or not if now also not present then add a lock object\n blockInfoLockObject = blockInfoLock.get(blockInfo);\n if (null == blockInfoLockObject) {\n blockInfoLockObject = new Object();\n blockInfoLock.put(blockInfo, blockInfoLockObject);\n }\n }\n }\n //acquire the lock for particular block info\n synchronized (blockInfoLockObject) {\n // check again whether block is present or not to avoid the\n // same block is loaded\n //more than once in case of concurrent query\n tableBlock = tableBlockMapTemp.get(blockInfo);\n // if still block is not present then load the block\n if (null == tableBlock) {\n // getting the data file meta data of the block\n footer = CarbonUtil\n .readMetadatFile(blockInfo.getFilePath(), blockInfo.getBlockOffset(),\n blockInfo.getBlockLength());\n tableBlock = new BlockIndex();\n footer.setTableBlockInfo(blockInfo);\n // building the block\n tableBlock.buildIndex(Arrays.asList(footer));\n tableBlockMapTemp.put(blockInfo, tableBlock);\n // finally remove the lock object from block info lock as once block is loaded\n // it will not come inside this if condition\n blockInfoLock.remove(blockInfo);\n }\n }\n }\n loadedBlocksList.add(tableBlock);\n }\n } catch (CarbonUtilException e) {\n LOGGER.error(\"Problem while loading the block\");\n throw new IndexBuilderException(e);\n }\n return loadedBlocksList;\n }", "java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();", "@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }", "public List<BlockEle> toBlockEles() {\n List<BlockEle> blockEles = new ArrayList<BlockEle>();\n\n for(Block block : blocks) {\n blockEles.add(block.toBlockEle());\n }\n\n return blockEles;\n }", "@Override\n\tprotected void buildBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t// create text name and description if null\n\t\tString id = regSetProperties.getId();\n\t\tString refId = regSetProperties.getBaseName(); // ref used for block structure lookup\n\t\t\n\t\tString textName = regSetProperties.getTextName();\n\t\tif (textName == null) textName = \"Block \" + id;\n\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// \" + textName));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\")); \n\n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName); \n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block\n\t\tString escRegSetId = escapeReservedString(regSetProperties.getId());\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t\tif (regSetProperties.isRootInstance())\n\t\t\t func.addStatement(\"return \" + escRegSetId + \";\");\n\t\telse {\n\t\t\tfunc.addStatement(\"ALTPBLOCK_T alt_parent = m_parent.get_alt_block();\");\n\t\t\tif (regSetProperties.isReplicated())\n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \"[m_rep];\");\n\t\t\telse \n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \";\"); \n\t\t}\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\")); \n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}", "private void createBlocks(){\n for (int row=0; row < grid.length; row++) \n {\n for (int column=0; column < grid[row].length; column++)\n {\n boolean player = false;\n boolean walkable;\n \n switch (grid[row][column]){\n case(0) : \n returnImage = wall; \n walkable = false;\n break;\n case(2) : \n returnImage = start; \n walkable = true;\n player = true;\n break;\n case(4) : \n returnImage = finish; \n walkable = true;\n break;\n \n default :\n returnImage = pad; \n walkable = false;\n }\n \n \n Block blok;\n try {\n if(player==true) \n { \n blok = new Block(returnImage, blockSize, true);\n blok.setTopImage(held);\n }else\n {\n blok = new Block(returnImage, blockSize, false);\n }\n blocks.add(blok);\n } catch (Exception e) {\n \n }\n } \n \n }\n \n }", "@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }", "public List<ByteString> getBlocksBuffers() {\n final ByteString blocksBuf = getBlocksBuffer();\n final List<ByteString> buffers;\n final int size = blocksBuf.size();\n if (size <= CHUNK_SIZE) {\n buffers = Collections.singletonList(blocksBuf);\n } else {\n buffers = new ArrayList<ByteString>();\n for (int pos=0; pos < size; pos += CHUNK_SIZE) {\n // this doesn't actually copy the data\n buffers.add(blocksBuf.substring(pos, Math.min(pos+CHUNK_SIZE, size)));\n }\n }\n return buffers;\n }", "Block createBlock();", "private static void registerBlocks() {\n for(Block block : modBlocks) {\n ForgeRegistries.BLOCKS.register(block);\n\n ItemBlock itemBlock = new ItemBlock(block);\n itemBlock.setRegistryName(block.getRegistryName());\n ForgeRegistries.ITEMS.register(itemBlock);\n }\n }", "public JsonObject raw_block() {\n \tJsonObject block = new JsonObject();\n \tblock.addProperty(\"BlockID\", blockId);\n \tif(!BlockChain.isEmpty())\n \t block.addProperty(\"PrevHash\", Hash.getHashString(getLongestBranch().last_block.toString()));\n \telse {\n \t\tblock.addProperty(\"PrevHash\", \"0000000000000000000000000000000000000000000000000000000000000000\");\n \t}\n \tblock.addProperty(\"Nonce\", \"00000000\");\n block.addProperty(\"MinerID\", \"Server\"+String.format(\"%02d\", minerId));\n \n \tJsonArray newTxPool = new JsonArray();\n \tJsonArray transactions = new JsonArray();\n \tint N = TxPool_new.size();\n \tint i;\n \tfor (i=0; i<N && i<50; i++) {\n \t\ttransactions.add(TxPool_new.get(i));\n \t\t//TxPool_used.add(TxPool_new.get(i));\n \t}\n \tfor (; i<N; i++)\n \t\tnewTxPool.add(TxPool_new.get(i));\n \tblock.add(\"Transactions\", transactions);\n\n \treturn block;\n }", "public ItemDefinition getBlock(String name) {\n\t\tfor (ItemDefinition def : itemsArray)\n\t\t{\n\t\t\tif (def != null)\n\t\t\t\tif (def.getName().equalsIgnoreCase(name))\n\t\t\t\t\treturn def;\n\t\t}\n\t\treturn null;\n\t}", "protected Set locateBlock(final String blockName) {\n Set matches = new java.util.HashSet();\n for (Iterator it = blocks.keySet().iterator(); it.hasNext(); ) {\n Object b = it.next();\n if (b.toString().endsWith('.' + blockName)) {\n matches.add(b);\n }\n }\n return matches;\n }", "public java.util.List<java.lang.Integer>\n getBlockNumsList() {\n return blockNums_;\n }", "public java.util.List<java.lang.Integer>\n getBlockNumsList() {\n return blockNums_;\n }", "public Block getFrom() {\n\t\t\treturn Block.getBlockById(fromId);\n\t\t}", "public byte[][][] getBlockDatas() {\n \t\treturn this.blockDatas;\n \t}", "Block getBlockByHash(byte[] hash);", "phaseI.Hdfs.BlockLocations getBlockInfo();", "public ProductionBlock getSpecificProductionBlock(int id);", "public phaseI.Hdfs.BlockLocations getBlockLocations(int index) {\n return blockLocations_.get(index);\n }", "public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }", "String getBlockName() {\n return this.blockName;\n }", "public final static BlockManager getBlockManager() {\r\n\t\treturn blockManager;\r\n\t}", "@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "public static ArrayList<Block> getBlocksAround(Location center, int radius) {\n \tArrayList<Block> list = new ArrayList<>();\n\t\tfor (double x = center.getX() - radius; x <= center.getX() + radius; x++) {\n\t\t\tfor (double z = center.getZ() - radius; z <= center.getZ() + radius; z++) {\n\t\t\t\tLocation loc = new Location(center.getWorld(), x, center.getY(), z);\n\t\t\t\tif (loc.getBlock().getType().isSolid()) {\n\t\t\t\t\tlist.add(loc.getBlock());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlist.remove(center.getBlock());\n\t\treturn list;\n\t}", "phaseI.Hdfs.BlockLocations getBlockLocations(int index);", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "phaseI.Hdfs.BlockLocationsOrBuilder getBlockInfoOrBuilder();", "public void loadLiabilitiesBuildingBlocks() {\n\t\tif (this.loadLiabilityTypesFromDB) {\n\t\t\tthis.liabilitiesTypeBuildingBlocks = this.buildingBlockService.findBuildingBlocksbyBranchIdAndBuildingBlockType(this.sessionBean.getCurrentBranch()\n\t\t\t\t\t.getId(), BuildingBlockConstant.LIABILITY_TYPE);\n\t\t\tthis.loadLiabilityTypesFromDB = false;\n\t\t}\n\t}" ]
[ "0.7375908", "0.7200809", "0.7049624", "0.7037432", "0.697191", "0.6917506", "0.6891312", "0.6858922", "0.6824178", "0.67747986", "0.6708682", "0.670307", "0.66874903", "0.6663993", "0.6507999", "0.6478038", "0.6432435", "0.6420729", "0.63665944", "0.63217205", "0.63004726", "0.6281052", "0.6212216", "0.61918056", "0.61725104", "0.6146255", "0.6130409", "0.61151284", "0.6114105", "0.6104959", "0.6056555", "0.6002729", "0.59870505", "0.5975724", "0.59326214", "0.59129673", "0.59047395", "0.5880002", "0.5860548", "0.5835506", "0.5823839", "0.5819915", "0.58178395", "0.5741352", "0.5703111", "0.5696819", "0.5686566", "0.56861365", "0.5647824", "0.56459546", "0.56285006", "0.56189173", "0.5611386", "0.56064355", "0.5601201", "0.55958676", "0.5564051", "0.5550504", "0.5532407", "0.5528931", "0.5525889", "0.552302", "0.552021", "0.5518612", "0.55055577", "0.5487719", "0.5479268", "0.5474318", "0.5466768", "0.5459434", "0.54530835", "0.5448449", "0.54473317", "0.5416647", "0.5408054", "0.53935355", "0.5388009", "0.5386377", "0.53857523", "0.53804207", "0.5369807", "0.5359682", "0.53520817", "0.53479475", "0.53479475", "0.5347327", "0.53268003", "0.53242475", "0.53205997", "0.53191584", "0.5297966", "0.52978766", "0.5285767", "0.52836394", "0.5282426", "0.5277142", "0.5267605", "0.5267213", "0.5266035", "0.5250482", "0.5240651" ]
0.0
-1
New PartDb Table include partTbl/singleTbl/broadcastTbl of new part db
public boolean isNewPartDbTable(String tbName) { return partInfoCtxCache.containsKey(tbName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "tbls createtbls();", "private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}", "TableFull createTableFull();", "public void createTableMain() {\n db.execSQL(\"create table if not exists \" + MAIN_TABLE_NAME + \" (\"\n + KEY_ROWID_MAIN + \" integer primary key autoincrement, \"\n + KEY_TABLE_NAME_MAIN + \" string not null, \"\n + KEY_MAIN_LANGUAGE_1 + \" integer not null, \"\n + KEY_MAIN_LANGUAGE_2 + \" integer not null);\");\n }", "private void setNewTable() {\n\n for (List<Entity> list:\n masterList) {\n for (Entity entity :\n list) {\n entity.removeFromWorld();\n }\n list.clear();\n }\n\n gameFacade.setGameTable(gameFacade.newFullPlayableTable(\"asd\",\n 6, 0.5, 2, 2));\n for (Bumper bumper :\n gameFacade.getBumpers()) {\n Entity bumperEntity = factory.newBumperEntity(bumper);\n targets.add(bumperEntity);\n getGameWorld().addEntity(bumperEntity);\n }\n\n for (Target target :\n gameFacade.getTargets()) {\n Entity targetEntity = factory.newTargetEntity(target);\n targets.add(targetEntity);\n getGameWorld().addEntity(targetEntity);\n }\n }", "BTable createBTable();", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public String CreateTableEventMasterSQL() {\n String sql = \"\";\n sql += \"CREATE TABLE Event_Master (\";\n sql += \"_eventId INTEGER PRIMARY KEY AUTOINCREMENT, \";\n sql += \"Name TEXT, \";\n sql += \"Date TEXT, \";\n sql += \"Time TEXT ); \";\n return sql;\n }", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"'LOCAL_SUB_TYPE_ID' (\" + //\n \"'TYPE_ID' TEXT PRIMARY KEY NOT NULL ,\" + // 0: typeId\n \"'LOCAL_UPDATE_TIME' INTEGER,\" + // 1: localUpdateTime\n \"'LOCALNAME' TEXT);\"); // 2: localname\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"SCAN_SUB\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY ,\" + // 0: subID\n \"\\\"MAIN_ID\\\" INTEGER,\" + // 1: mainID\n \"\\\"SCAN_TYPE\\\" TEXT,\" + // 2: scanType\n \"\\\"SCAN_TIME\\\" TEXT,\" + // 3: scanTime\n \"\\\"BAR_CODE\\\" TEXT,\" + // 4: barCode\n \"\\\"SN\\\" TEXT,\" + // 5: sn\n \"\\\"STATE\\\" INTEGER,\" + // 6: state\n \"\\\"MANUAL\\\" INTEGER NOT NULL ,\" + // 7: manual\n \"\\\"EDIT_TIME\\\" TEXT,\" + // 8: editTime\n \"\\\"IS_UPLOAD\\\" INTEGER NOT NULL );\"); // 9: isUpload\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"TB_CONVERSATION\\\" (\" + //\n \"\\\"id\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: ID\n \"\\\"is_notify\\\" INTEGER,\" + // 1: isNotify\n \"\\\"msg_src_no\\\" TEXT NOT NULL ,\" + // 2: msgSrcNo\n \"\\\"msg_dst_no\\\" TEXT NOT NULL ,\" + // 3: msgDstNo\n \"\\\"group_no\\\" TEXT,\" + // 4: groupNo\n \"\\\"login_no\\\" TEXT,\" + // 5: loginNo\n \"\\\"last_msg_type\\\" INTEGER,\" + // 6: lastMsgType\n \"\\\"last_msg_content\\\" TEXT,\" + // 7: lastMsgContent\n \"\\\"last_msg_time\\\" INTEGER,\" + // 8: lastMsgTime\n \"\\\"last_msg_status\\\" INTEGER,\" + // 9: lastMsgStatus\n \"\\\"last_msg_direction\\\" INTEGER,\" + // 10: lastMsgDirection\n \"\\\"unread_msg_counts\\\" INTEGER,\" + // 11: unreadMsgCounts\n \"\\\"stick_time\\\" INTEGER);\"); // 12: stickTime\n }", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(SQL_CREATE_ENTRIES);\n\t\tLog.i(\"into\",\"oncreate\");\n\t\t\t \n\t\tfor(int i=0; i<5; i++) {\n\t\t\tLog.i(\"into\",\"intialising tables\");\n\t\t\tContentValues values= new ContentValues();\n\t\t\tvalues.put(COLUMN_NAME_ID, i+1);\n\t\t\tvalues.put(COLUMN_NAME_PERIOD1, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD4, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD3, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD2, \"nil\");\n\t\t\tdb.insert(TABLE_NAME_TIMETABLE, null, values);\n\t\t}\t\t\n\t}", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "public void CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "protected abstract void addTables();", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"PLAN_PARTY_ELEMENTS\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY ,\" + // 0: id\n \"\\\"STATUS\\\" TEXT,\" + // 1: status\n \"\\\"PLANNED_BEER\\\" INTEGER,\" + // 2: plannedBeer\n \"\\\"PLANNED_WINE\\\" INTEGER,\" + // 3: plannedWine\n \"\\\"PLANNED_DRINK\\\" INTEGER,\" + // 4: plannedDrink\n \"\\\"PLANNED_SHOT\\\" INTEGER,\" + // 5: plannedShot\n \"\\\"AFT_REG_BEER\\\" INTEGER,\" + // 6: aftRegBeer\n \"\\\"AFT_REG_WINE\\\" INTEGER,\" + // 7: aftRegWine\n \"\\\"AFT_REG_DRINK\\\" INTEGER,\" + // 8: aftRegDrink\n \"\\\"AFT_REG_SHOT\\\" INTEGER,\" + // 9: aftRegShot\n \"\\\"FIRST_UNIT_ADDED_DATE\\\" INTEGER,\" + // 10: firstUnitAddedDate\n \"\\\"START_TIME_STAMP\\\" INTEGER,\" + // 11: startTimeStamp\n \"\\\"END_TIME_STAMP\\\" INTEGER);\"); // 12: endTimeStamp\n }", "public void createVirtualTable(){\n\n\t\t\n\t\tif(DBHandler.getConnection()==null){\n\t\t\treturn;\n\t\t}\n\n\t\tif(DBHandler.tableExists(name())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tStatement s = DBHandler.getConnection().createStatement();\n\t\t\ts.execute(\"create virtual table \"+name()+\" using fts4(\"+struct()+\")\");\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tMainFrame.print(e.getMessage());\n\t\t}\n\t}", "private void renameAnalyticsPeriodBoundaryTableToPeriodBoundary()\r\n {\r\n\r\n String sql =\r\n \"INSERT INTO periodboundary(periodboundaryid, uid, code, created, lastupdated, lastupdatedby, boundarytarget, analyticsperiodboundarytype, offsetperiods, offsetperiodtypeid, programindicatorid) \" +\r\n \"SELECT analyticsperiodboundaryid, uid, code, created, lastupdated, lastupdatedby, boundarytarget, analyticsperiodboundarytype, offsetperiods, offsetperiodtypeid, programindicatorid \" +\r\n \"FROM analyticsperiodboundary; \" +\r\n \"DROP TABLE analyticsperiodboundary;\";\r\n\r\n executeSql( sql );\r\n\r\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"BACK_ALARM_MODEL\\\" (\" + //\n \"\\\"BACKID\\\" TEXT,\" + // 0: BACKID\n \"\\\"RECEPID\\\" TEXT,\" + // 1: RECEPID\n \"\\\"USERID\\\" TEXT,\" + // 2: USERID\n \"\\\"DQID\\\" TEXT,\" + // 3: DQID\n \"\\\"DQNAME\\\" TEXT,\" + // 4: DQNAME\n \"\\\"CHECKER\\\" TEXT,\" + // 5: CHECKER\n \"\\\"BACKTIME\\\" TEXT,\" + // 6: BACKTIME\n \"\\\"BACKSTATUS\\\" TEXT,\" + // 7: BACKSTATUS\n \"\\\"ISFIRE\\\" TEXT,\" + // 8: ISFIRE\n \"\\\"FIRETYPE\\\" TEXT,\" + // 9: FIRETYPE\n \"\\\"FIRESIUATION\\\" TEXT,\" + // 10: FIRESIUATION\n \"\\\"POLICESIUATION\\\" TEXT,\" + // 11: POLICESIUATION\n \"\\\"BELONGAREAID\\\" TEXT,\" + // 12: BELONGAREAID\n \"\\\"BELONGAREANAME\\\" TEXT,\" + // 13: BELONGAREANAME\n \"\\\"INRELATION\\\" TEXT,\" + // 14: INRELATION\n \"\\\"REMARK\\\" TEXT,\" + // 15: REMARK\n \"\\\"REMARK1\\\" TEXT,\" + // 16: REMARK1\n \"\\\"REMARK2\\\" TEXT);\"); // 17: REMARK2\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"LOCAL_BEAN\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: id\n \"\\\"saveTime\\\" INTEGER NOT NULL ,\" + // 1: saveTime\n \"\\\"showTitle\\\" TEXT,\" + // 2: showTitle\n \"\\\"showDetail\\\" TEXT,\" + // 3: showDetail\n \"\\\"lat\\\" REAL NOT NULL ,\" + // 4: lat\n \"\\\"lng\\\" REAL NOT NULL ,\" + // 5: lng\n \"\\\"telephone\\\" TEXT,\" + // 6: telephone\n \"\\\"type\\\" INTEGER NOT NULL ,\" + // 7: type\n \"\\\"business\\\" TEXT);\"); // 8: business\n }", "TABLE createTABLE();", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "Table8 create(Table8 table8);", "public void createTables() throws Exception{\n\t\tcreate_table(\"tab_global\", \"param\", 1);\n\t\t\n\t\tPut put = new Put(Bytes.toBytes(\"row_userid\"));\n\t\tlong id = 0;\n\t\tput.add(Bytes.toBytes(\"param\"), \n\t\t\t\tBytes.toBytes(\"userid\"), \n\t\t\t\tBytes.toBytes(id));\n\t\tHTable ht = new HTable(conf, \"tab_global\");\n\t\tht.put(put);\n\t\t\n\t\tcreate_table(\"tab_user2id\", \"info\", 1);\n\t\tcreate_table(\"tab_id2user\", \"info\", 1);\n\t\t\n\t\t//table_follow\t{userid}\tname:{userid}\n\t\tcreate_table(\"tab_follow\", \"name\", 1);\n\t\t\n\t\t//table_followed\trowkey:{userid}_{userid} CF:userid\n\t\tcreate_table(\"tab_followed\", \"userid\", 1);\n\t\t\n\t\t//tab_post\trowkey:postid\tCF:post:username post:content post:ts\n\t\tcreate_table(\"tab_post\", \"post\", 1);\n\t\tput = new Put(Bytes.toBytes(\"row_postid\"));\n\t\tid = 0;\n\t\tput.add(Bytes.toBytes(\"param\"), \n\t\t\t\tBytes.toBytes(\"postid\"), \n\t\t\t\tBytes.toBytes(id));\n\t\tht.put(put);\n\t\t\n\t\t//tab_inbox\t\trowkey:userid+postid\tCF:postid\n\t\tcreate_table(\"tab_inbox\", \"postid\", 1);\n\t\tht.close();\n\t}", "protected void createTableListenings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Listenings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"user\t\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track\t\t\tVARCHAR(259),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"playcount\t\tINTEGER,\" \t\t\t\t\t\t\t\t\t\t\t+ \n\t\t\t\t\"FOREIGN KEY (user) REFERENCES Persons(lfm_username),\" \t\t\t\t+\n\t\t\t\t\"FOREIGN KEY (listens_to) REFERENCES Recordings(unique_track)\"\t\t+\n\t\t\t\t\");\"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public void createNewTable() {\n String dropOld = \"DROP TABLE IF EXISTS card;\";\n\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS card (\\n\"\n + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \\n\"\n + \"number TEXT, \\n\"\n + \"pin TEXT,\\n\"\n + \"balance INTEGER DEFAULT 0\"\n + \");\";\n\n try (Connection connection = connect();\n Statement stmt = connection.createStatement()) {\n\n //drop old table\n stmt.execute(dropOld);\n\n //create a new table\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(\"Exception3: \" + e.getMessage());\n }\n }", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "public void updateSelectedDb() {\n if (this.getSelectedDb().getDb_name() != null) {\n //TableList temp = new TableList();\n \n fetchLoginDetails();\n this.setMsg(\"Created !! \");\n //this.getColumnList().clear();\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable().selectedDbUpdated :: \" + this.getColumnList().size());\n DbListDAO dbdao = new DbListDAO();\n this.setSelectedDb(dbdao.findDBListbyDBName(this.getSelectedDb().getDb_name()));\n //temp.setDb_id(this.getSelectedDb().getId());\n //temp.setTbl_name(this.getNewTable().getTbl_name().replaceAll(\" \", \"\"));\n //temp.setNo_of_col(0);\n //DBHandler dbHandler = new DBHandler();\n /*if (dbHandler.createTable(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name())) {\n TblListDAO tbldao = new TblListDAO();\n boolean flag = tbldao.createNewTable(temp);\n TableList temp2=tbldao.getTblDetails(temp.getTbl_name());\n for (ColList c : this.getColumnList()) {\n ColListDAO coldao=new ColListDAO();\n c.setTbl_id(temp2.getId());\n coldao.createNewColumn(c);\n dbHandler.createColumn(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name(), c.getCol_name());\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable() :: \" + c.toString());\n }\n boolean s_flag=dbHandler.buildSchema(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name(),this.getColumnList());\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable() :: Schema Creation Status :: \"+s_flag);\n this.getNewTable().setTbl_name(\"\");\n this.setMsg(\"Created !! \" + flag);\n } else {\n this.getNewTable().setTbl_name(\"\");\n this.setMsg(\"Table Creation failed.\");\n }*/\n\n //this.getNewTable().setTbl_name(\"\");\n //this.getColumnList().clear();\n\n } else {\n //this.setMsg(\"Select Database\");\n //this.getNewTable().setTbl_name(\"\");\n //this.getColumnList().clear();\n }\n\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle addNewWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(WHOLETBL$2);\n return target;\n }\n }", "public void doCreateTable();", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"kctBaseStation\\\" (\" + //\n \"\\\"ID\\\" TEXT PRIMARY KEY NOT NULL ,\" + // 0: id\n \"\\\"CRIME_ID\\\" TEXT,\" + // 1: crimeId\n \"\\\"BS__TYPE\\\" TEXT,\" + // 2: BS_TYPE\n \"\\\"IFACTIVE\\\" TEXT,\" + // 3: IFACTIVE\n \"\\\"MCC__MNC\\\" TEXT,\" + // 4: MCC_MNC\n \"\\\"LAC\\\" TEXT,\" + // 5: LAC\n \"\\\"CELL__ID\\\" TEXT,\" + // 6: CELL_ID\n \"\\\"LOCALE__DATA__ID\\\" TEXT,\" + // 7: LOCALE_DATA_ID\n \"\\\"COL__TIME\\\" TEXT,\" + // 8: COL_TIME\n \"\\\"PCI\\\" TEXT,\" + // 9: PCI\n \"\\\"CELL\\\" TEXT,\" + // 10: CELL\n \"\\\"RSRP\\\" TEXT,\" + // 11: RSRP\n \"\\\"RSSI\\\" TEXT,\" + // 12: RSSI\n \"\\\"TAC\\\" TEXT,\" + // 13: TAC\n \"\\\"REG__ZONE\\\" TEXT,\" + // 14: REG_ZONE\n \"\\\"SID\\\" TEXT,\" + // 15: SID\n \"\\\"NID\\\" TEXT,\" + // 16: NID\n \"\\\"BASE__ID\\\" TEXT,\" + // 17: BASE_ID\n \"\\\"CDMA__CH\\\" TEXT,\" + // 18: CDMA_CH\n \"\\\"PN\\\" TEXT,\" + // 19: PN\n \"\\\"STRENGTH\\\" TEXT,\" + // 20: STRENGTH\n \"\\\"BCCH\\\" TEXT,\" + // 21: BCCH\n \"\\\"BSIC\\\" TEXT,\" + // 22: BSIC\n \"\\\"SYS__BAND\\\" TEXT,\" + // 23: SYS_BAND\n \"\\\"LON\\\" TEXT,\" + // 24: LON\n \"\\\"LAT\\\" TEXT,\" + // 25: LAT\n \"\\\"ERFCN\\\" TEXT,\" + // 26: ERFCN\n \"\\\"BAND\\\" TEXT,\" + // 27: BAND\n \"\\\"EARFCN\\\" TEXT,\" + // 28: EARFCN\n \"\\\"RSRQ\\\" TEXT,\" + // 29: RSRQ\n \"\\\"RAC\\\" TEXT,\" + // 30: RAC\n \"\\\"RNCID\\\" TEXT,\" + // 31: RNCID\n \"\\\"ENBID\\\" TEXT,\" + // 32: ENBID\n \"\\\"PHYCELLID\\\" TEXT,\" + // 33: PHYCELLID\n \"\\\"CELLPARAMID\\\" TEXT,\" + // 34: CELLPARAMID\n \"\\\"UUID\\\" TEXT,\" + // 35: UUID\n \"\\\"START_TIME\\\" INTEGER NOT NULL ,\" + // 36: startTime\n \"\\\"END_TIME\\\" INTEGER NOT NULL );\"); // 37: endTime\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"LIVE_KIND_OBJ\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: keyL\n \"\\\"COL_NAME\\\" TEXT NOT NULL ,\" + // 1: colName\n \"\\\"COL_ID\\\" TEXT NOT NULL ,\" + // 2: colId\n \"\\\"HAVE_CHILDREN\\\" INTEGER NOT NULL ,\" + // 3: haveChildren\n \"\\\"CHAL_NUM\\\" INTEGER NOT NULL ,\" + // 4: chalNum\n \"\\\"PAGE_NUM\\\" INTEGER NOT NULL ,\" + // 5: pageNum\n \"\\\"C_KNUM\\\" INTEGER NOT NULL ,\" + // 6: cKNum\n \"\\\"P_TYPE\\\" INTEGER NOT NULL );\"); // 7: pType\n // Add Indexes\n db.execSQL(\"CREATE UNIQUE INDEX \" + constraint + \"IDX_LIVE_KIND_OBJ_COL_ID_COL_NAME ON \\\"LIVE_KIND_OBJ\\\"\" +\n \" (\\\"COL_ID\\\" ASC,\\\"COL_NAME\\\" ASC);\");\n }", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "@Override\n public void createTable() {\n String[] TABLE_COLUMNS_ATLAS = {\n TableColumn.ChecklistTable.CID + \" INTEGER PRIMARY KEY AUTOINCREMENT\",\n TableColumn.ChecklistTable.PID + \" INTEGER NOT NULL\",\n TableColumn.ChecklistTable.REAL + \" INTEGER DEFAULT 0\",\n TableColumn.ChecklistTable.UNIT_ID + \" INTEGER\",\n TableColumn.ChecklistTable.WAREHOUSE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.QUEUE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.CATEGORIES_ID + \" INTEGER\",\n TableColumn.ChecklistTable.DATE + \" DATE\",\n TableColumn.ChecklistTable.RECORDTIME + \" DATE\",\n TableColumn.ChecklistTable.CONFIRM + \" INTEGER DEFAULT 0\"\n };\n\n //TODO: create table\n database.execSQL(makeSQLCreateTable(TABLE_NAME, TABLE_COLUMNS_ATLAS));\n\n addColumn(TableColumn.ChecklistTable.CONFIRM, \" INTEGER DEFAULT 0\");\n\n //TODO: show table\n XCursor cursor = selectTable();\n printData(TABLE_NAME, cursor);\n cursor.close();\n }", "public static void create_join_CP(String databaseCT,String rchain,Connection con2) throws SQLException{\n\t\t\n\t\tString table_name = databaseCT+\"_CT.\"+rchain.substring(0,rchain.length()-1) + \"_CT`\";\n\t\t//System.out.println(databaseCT+\"_CT\");\n\t\tString newTable_name = rchain.substring(0,rchain.length()-1) + \"_CT_KLD`\";\n\t\t//System.out.println(table_name);\n\t\t// table_name is input contingency table, newTable_name will be output KLD table\n\t\tStatement st=con2.createStatement();\n ResultSet rst=st.executeQuery(\"show columns from \"+table_name+\" ;\");\n // System.out.println(\"show columns from \"+table_name+\" ;\");\n while(rst.next()){\n \tcolumn_names.add(\"`\"+rst.getString(1)+\"`\");\n \tcolumn_names_CP.add(\"`\"+rst.getString(1)+\"_CP`\");\n \t// add conditional probability column for each attribute column\n }\n \n \n st.execute(\"drop table if exists \" + newTable_name);\n String query1=\"create table \" + newTable_name + \" ( id int(11) NOT NULL AUTO_INCREMENT, MULT BIGINT(21), \" ;\n // make query string for creating KLD table\n // auto index each row in table\n for(int i=1; i<column_names.size(); i++){\n \tquery1 = query1 + column_names.get(i) + \" VARCHAR(45),\" + column_names_CP.get(i) + \" float(7,6) ,\";\n // add column headers\t\t\n }\n query1 = query1 + \" JP float, JP_DB float, KLD float default 0, PRIMARY KEY (id) ) engine=INNODB;\";\n //System.out.println(query1);\n st.execute(query1);\n \n // copy the values from the mult table. CP values are null at this point.\n String query2 = \"insert into \" + newTable_name + \" ( MULT\";\n for(int i=1; i<column_names.size(); i++){\n \tquery2 = query2 + \", \" + column_names.get(i);\n }\n query2 = query2 + \" ) select * from \"+table_name+\"; \"; // Nov 28 @ zqian, do not use \"*\" in terms of query optimization\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nov 28 @ zqian, adding covering index to CT table for query string \n System.out.println(query2);\n st.execute(query2);\n \n System.out.println(\"\\n insert into KLD table conditional probability for each node\"); // zqian\n //insert CP value to attributes\n insert_CP_Values(rchain, newTable_name,con2);\n System.out.println(\"\\n compute Bayes net joint probabilities \"); //zqian\n //compute Bayes net joint probabilities \n cal_KLD(newTable_name,con2);\n \n \n st.close();\n\t}", "public static void buildOfficeTable() {\n\t\tif (TableExists(\"office\"))\n\t\t\treturn;// if office table has been built, no need to build again\n\t\tConnect connectLocal = new Connect(\"local\", localDatabase);\n\t\tConnection localConnection = connectLocal.getConnection();\n\t\tConnect connectServer = new Connect(\"server\", serverDatabase);\n\t\tConnection serverConnection = connectServer.getConnection();\n\t\tResultSet rs;\n\t\tList<String> emails = new ArrayList<>();\n\t\ttry {\n\t\t\tStatement stmtserver = serverConnection.createStatement();\n\t\t\trs = stmtserver.executeQuery(\n\t\t\t\t\tString.format(\"select email from USER where office is not null and email is not null\"));\n\t\t\twhile (rs.next()) {\n\t\t\t\temails.add(rs.getString(1));\n\t\t\t}\n\t\t\tStatement stmtlocal = localConnection.createStatement();\n\t\t\t//System.out.println(emails.size());\n\t\t\tfor (int i = 0; i < emails.size(); i++) {\n\t\t\t\trs = stmtserver.executeQuery(String.format(\n\t\t\t\t\t\t\"select INFRASTRUCTURE.name from USER, INFRASTRUCTURE\"\n\t\t\t\t\t\t\t\t+ \" where USER.office=INFRASTRUCTURE.SEMANTIC_ENTITY_ID and USER.email='%s'\",\n\t\t\t\t\t\temails.get(i)));\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tstmtlocal.executeUpdate(String.format(\"insert into office(email,office) value('%s','%s')\",\n\t\t\t\t\t\t\temails.get(i), rs.getString(1)));\n\t\t\t\t}\n\t\t\t}\n\t\t\trs.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tconnectLocal.close();\n\t\tconnectServer.close();\n\t}", "public JSObject createSyncTable() {\n // Open the database for writing\n JSObject retObj = new JSObject();\n SQLiteDatabase db = null;\n try {\n db = getConnection(false, secret);\n // check if the table has already been created\n boolean isExists = uJson.isTableExists(this, db, \"sync_table\");\n if (!isExists) {\n Date date = new Date();\n long syncTime = date.getTime() / 1000L;\n String[] statements = {\n \"BEGIN TRANSACTION;\",\n \"CREATE TABLE IF NOT EXISTS sync_table (\" + \"id INTEGER PRIMARY KEY NOT NULL,\" + \"sync_date INTEGER);\",\n \"INSERT INTO sync_table (sync_date) VALUES ('\" + syncTime + \"');\",\n \"COMMIT TRANSACTION;\"\n };\n retObj = execute(db, statements);\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error: createSyncTable failed: \", e);\n } finally {\n if (db != null) db.close();\n return retObj;\n }\n }", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_topic_\" +shortname +\r\n\t\t\"(tid varchar(50) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" istop tinyint UNSIGNED ZEROFILL, \" + // Is this keyword a top keyword for this topic\r\n\t\t\" PRIMARY KEY (tid,keyword)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"MESSAGE\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: _id\n \"\\\"MSG_ID\\\" TEXT,\" + // 1: msg_id\n \"\\\"ISREAD\\\" TEXT,\" + // 2: isread\n \"\\\"READTIME\\\" TEXT,\" + // 3: readtime\n \"\\\"ISTOP\\\" TEXT,\" + // 4: istop\n \"\\\"MC_ID\\\" TEXT,\" + // 5: mc_id\n \"\\\"ICON\\\" TEXT,\" + // 6: icon\n \"\\\"URL\\\" TEXT,\" + // 7: url\n \"\\\"TITLE\\\" TEXT,\" + // 8: title\n \"\\\"ISHREF\\\" TEXT,\" + // 9: ishref\n \"\\\"SUETIME\\\" INTEGER NOT NULL ,\" + // 10: suetime\n \"\\\"TYPE\\\" TEXT,\" + // 11: type\n \"\\\"MODULE\\\" TEXT,\" + // 12: module\n \"\\\"MODULE_ID\\\" TEXT);\"); // 13: module_id\n }", "public void updateSelectedTable() {\n if (this.getSelectedTable().getTbl_name() != null) {\n //TableList temp = new TableList();\n \n fetchLoginDetails();\n this.setMsg(\"Created !! \");\n //this.getColumnList().clear();\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable().selectedTbUpdated :: \" + this.getColumnList().size());\n TblListDAO tbdao = new TblListDAO();\n this.setSelectedTable(tbdao.getTblDetails(selectedTable.getTbl_name()));\n //temp.setDb_id(this.getSelectedDb().getId());\n //temp.setTbl_name(this.getNewTable().getTbl_name().replaceAll(\" \", \"\"));\n //temp.setNo_of_col(0);\n //DBHandler dbHandler = new DBHandler();\n /*if (dbHandler.createTable(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name())) {\n TblListDAO tbldao = new TblListDAO();\n boolean flag = tbldao.createNewTable(temp);\n TableList temp2=tbldao.getTblDetails(temp.getTbl_name());\n for (ColList c : this.getColumnList()) {\n ColListDAO coldao=new ColListDAO();\n c.setTbl_id(temp2.getId());\n coldao.createNewColumn(c);\n dbHandler.createColumn(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name(), c.getCol_name());\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable() :: \" + c.toString());\n }\n boolean s_flag=dbHandler.buildSchema(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name(),this.getColumnList());\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable() :: Schema Creation Status :: \"+s_flag);\n this.getNewTable().setTbl_name(\"\");\n this.setMsg(\"Created !! \" + flag);\n } else {\n this.getNewTable().setTbl_name(\"\");\n this.setMsg(\"Table Creation failed.\");\n }*/\n\n //this.getNewTable().setTbl_name(\"\");\n //this.getColumnList().clear();\n\n } else {\n //this.setMsg(\"Select Database\");\n //this.getNewTable().setTbl_name(\"\");\n //this.getColumnList().clear();\n }\n\n }", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "FromTable createFromTable();", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"'P5P10' (\" + //\n \"'_id' INTEGER PRIMARY KEY ,\" + // 0: id\n \"'ARMF' INTEGER,\" + // 1: armf\n \"'PCTF' INTEGER,\" + // 2: pctf\n \"'ESAL' INTEGER,\" + // 3: esal\n \"'BEN' INTEGER,\" + // 4: ben\n \"'CDEL' INTEGER,\" + // 5: cdel\n \"'DTRA' INTEGER,\" + // 6: dtra\n \"'FOTL' INTEGER,\" + // 7: fotl\n \"'ORIGEN' INTEGER,\" + // 8: origen\n \"'OBSER' TEXT,\" + // 9: obser\n \"'ID_FORMULARIO' INTEGER);\"); // 10: id_formulario\n }", "public void createdb(SQLiteDatabase db) {\n\t\t//\r\n\t\t// String create_table_group = \"CREATE TABLE\" + \" \" + TABLE_GROUP + \"(\"\r\n\t\t// + GROUP_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + GROUP_GID + \" \"\r\n\t\t// + TYPE_TEXT + \",\" + GROUP_NAME + \" \" + TYPE_TEXT + \")\";\r\n\t\t//\r\n\t\t// String create_table_communication = \"CREATE TABLE\" + \" \" + TABLE_MSG\r\n\t\t// + \"(\" + MSG_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + MSG_WEBID + \" \"\r\n\t\t// + TYPE_TEXT + \",\" + MSG_PIC + \" \" + TYPE_TEXT + \",\"\r\n\t\t// + MSG_REMARK + \" \" + TYPE_TEXT + \",\" + MSG_TIME + \" \"\r\n\t\t// + TYPE_TEXT + \")\";\r\n\r\n\t\tString create_table_news = \"CREATE TABLE\" + \" \" + TABLE_NEWS + \"(\"\r\n\t\t\t\t+ NEWS_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + NEWS_TITLE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_SOURCE + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_AUTHOR + \" \" + TYPE_TEXT + \",\" + NEWS_PICTURE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_CONTENT + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_CREATETIME + \" \" + TYPE_TEXT + \",\" + NEWS_TYPE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_WEBID + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_THUMBNAIL + \" \" + TYPE_TEXT + \")\";\r\n\r\n\t\t// db.execSQL(create_table_favor);\r\n\t\t// db.execSQL(create_table_group);\r\n\t\t// db.execSQL(create_table_communication);\r\n\t\tdb.execSQL(create_table_news);\r\n\t}", "private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }", "private void createTables() {\n\t\tStatement s = null;\n\t\ttry {\n\t\t\ts = conn.createStatement();\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString createString = \"CREATE TABLE targeteprs (\" +\n\t\t\t\t\t \"targetepr varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"uniqueID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created targetepr table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\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\tcreateString = \"CREATE TABLE workflow (\" +\n\t\t\t\t\t \"uniqueID varchar(100) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created workflow table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "protected void createTableRecordings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Recordings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"artist_name\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track_name\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"CONSTRAINT unique_track PRIMARY KEY (artist_name, track_name)\" \t+\n\t\t\t\t\");\"\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n final String SQL_CREATE_WAITLIST_TABLE = \"CREATE TABLE \" + ScheduleContract.ScheduleEntry.TABLE_NAME + \" (\" +\n ScheduleContract.ScheduleEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n ScheduleContract.ScheduleEntry.COLUMN_MED_DESCRIPTION + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_MED_INSTRUCTION + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_USAGE_STATUS + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_TIMESTAMP + \" TIMESTAMP DEFAULT CURRENT_TIMESTAMP\" +\n \");\";\n\n sqLiteDatabase.execSQL(SQL_CREATE_WAITLIST_TABLE);\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"SUPERVISIONSTANDARD_PARAGRAPH\\\" (\" + //\n \"\\\"ID\\\" INTEGER,\" + // 0: id\n \"\\\"CHAPTERID\\\" INTEGER,\" + // 1: chapterid\n \"\\\"PARTID\\\" INTEGER,\" + // 2: partid\n \"\\\"PARAGRAPHID\\\" INTEGER,\" + // 3: paragraphid\n \"\\\"PARAGRAPHNAME\\\" TEXT,\" + // 4: paragraphname\n \"\\\"PARAGRAPH\\\" TEXT,\" + // 5: paragraph\n \"\\\"NSPECTIONQUANTITY\\\" TEXT,\" + // 6: nspectionquantity\n \"\\\"INSPECTIONMETHOD\\\" TEXT);\"); // 7: inspectionmethod\n }", "protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"FITTING_TABLE\\\" (\" + //\n \"\\\"NAME\\\" TEXT PRIMARY KEY NOT NULL ,\" + // 0: name\n \"\\\"DB_NAME\\\" TEXT,\" + // 1: dbName\n \"\\\"CATEGORY\\\" TEXT,\" + // 2: category\n \"\\\"DES\\\" TEXT,\" + // 3: des\n \"\\\"LAYOUT_RESOURCE_ID\\\" INTEGER);\"); // 4: layoutResourceID\n }", "public static void createItemTable() {\n\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\t// Drop table if already exists and as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_DROP_ITEM_TABLE));\n\t\t\t// Create new items table as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_CREATE_ITEM_TABLE));\n\t\t\t// Insert records into item table in the beginning as per SQL query available in\n\t\t\t// Query.xml\t\t\t\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_INSERT_BEGIN_ITEM_TABLE));\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t}\n\t}", "public static void createItemTable() {\n\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\t// Drop table if already exists and as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_DROP_ITEM_TABLE));\n\t\t\t// Create new items table as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_CREATE_ITEM_TABLE));\n\t\t\t// Insert records into item table in the beginning as per SQL query available in\n\t\t\t// Query.xml\t\t\t\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_INSERT_BEGIN_ITEM_TABLE));\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t}\n\t}", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "private void createTables() throws DatabaseAccessException {\n\t\tStatement stmt = null;\n\t\tPreparedStatement prepStmt = null;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// be sure to drop all tables in case someone manipulated the database manually\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS DynamicConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Features;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Groups;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Metadata;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Objects;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS StaticConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Subspaces;\");\n\n\t\t\t// populate database with tables.. by using ugly sql\n\t\t\tstmt.executeUpdate(\"CREATE TABLE DynamicConstraints(Id INTEGER PRIMARY KEY AUTOINCREMENT,\"\n\t\t\t\t\t+ \" Operator INTEGER, FeatureReference INTEGER,\"\n\t\t\t\t\t+ \" GroupReference INTEGER, Value FLOAT, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Features(Id INTEGER PRIMARY KEY AUTOINCREMENT,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"), OutlierFlag BOOLEAN, Min FLOAT, Max FLOAT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Groups(Id INTEGER PRIMARY KEY AUTOINCREMENT, Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"),\"\n\t\t\t\t\t+ \" Visibility BOOLEAN, Color INTEGER, ColorCalculatedByFeature INTEGER, Description TEXT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Metadata(Version INTEGER);\");\n\n\t\t\t// Object table is created in initFeatures, to boost performance\n\n\t\t\tstmt.executeUpdate(\"CREATE TABLE StaticConstraints(Id INTEGER, GroupReference INTEGER,\"\n\t\t\t\t\t+ \" ObjectReference INTEGER, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Subspaces(Id INTEGER, FeatureReference INTEGER,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"));\");\n\n\t\t\tstmt.close();\n\n\t\t\t// after creating the tables, write the layout version\n\t\t\tprepStmt = this.connection.prepareStatement(\"INSERT INTO Metadata VALUES(?);\");\n\t\t\tprepStmt.setInt(1, DatabaseConfiguration.LAYOUTVERSION);\n\t\t\tprepStmt.execute();\n\n\t\t\tprepStmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseAccessException(Failure.LAYOUT);\n\t\t}\n\t}", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"BIG_MONSTERS\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: id\n \"\\\"NAME\\\" TEXT,\" + // 1: name\n \"\\\"TIPS\\\" TEXT,\" + // 2: tips\n \"\\\"ATTACK\\\" INTEGER NOT NULL ,\" + // 3: attack\n \"\\\"ARMOR\\\" INTEGER NOT NULL ,\" + // 4: armor\n \"\\\"LIFE\\\" INTEGER NOT NULL ,\" + // 5: life\n \"\\\"TYPE\\\" TEXT,\" + // 6: type\n \"\\\"MONSTER_PLACE_ID\\\" INTEGER NOT NULL ,\" + // 7: monsterPlaceId\n \"\\\"EXP\\\" INTEGER NOT NULL ,\" + // 8: exp\n \"\\\"MONEY\\\" INTEGER NOT NULL ,\" + // 9: money\n \"\\\"DROP_GOODS_ID\\\" INTEGER,\" + // 10: dropGoodsId\n \"\\\"CONSUME_POWER\\\" INTEGER NOT NULL ,\" + // 11: consumePower\n \"\\\"IS_GONE\\\" INTEGER NOT NULL ,\" + // 12: isGone\n \"\\\"IS_DEAD\\\" INTEGER NOT NULL ,\" + // 13: isDead\n \"\\\"DAYS\\\" INTEGER NOT NULL ,\" + // 14: days\n \"\\\"ATTACK_SPEED\\\" INTEGER NOT NULL );\"); // 15: attackSpeed\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"SHOP_RECEIVABLE_ENTITY\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE ,\" + // 0: id\n \"\\\"PARTNER_CODE\\\" TEXT,\" + // 1: partnerCode\n \"\\\"ACCOUNT_TYPE\\\" INTEGER,\" + // 2: accountType\n \"\\\"SHOP_BANK\\\" TEXT,\" + // 3: shopBank\n \"\\\"SHOP_PROVINCE\\\" TEXT,\" + // 4: shopProvince\n \"\\\"SHOP_CITY\\\" TEXT,\" + // 5: shopCity\n \"\\\"BANK_BRANCH\\\" TEXT,\" + // 6: bankBranch\n \"\\\"ACCOUNT_NAME\\\" TEXT,\" + // 7: accountName\n \"\\\"BANK_ACCOUNT\\\" TEXT);\"); // 8: bankAccount\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"NEWS\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY ,\" + // 0: _id\n \"\\\"IMGURL\\\" TEXT,\" + // 1: imgurl\n \"\\\"HAS_CONTENT\\\" TEXT,\" + // 2: has_content\n \"\\\"DOCURL\\\" TEXT,\" + // 3: docurl\n \"\\\"TIME\\\" TEXT,\" + // 4: time\n \"\\\"TITLE\\\" TEXT,\" + // 5: title\n \"\\\"CHANNELNAME\\\" TEXT,\" + // 6: channelname\n \"\\\"ID\\\" INTEGER NOT NULL );\"); // 7: id\n }", "private void initTables() {\n insert(\"CREATE TABLE IF NOT EXISTS `player_info` (`player` VARCHAR(64) PRIMARY KEY NOT NULL, `json` LONGTEXT)\");\n }", "public static void createAllTables(Database db, boolean ifNotExists) {\n DiaryReviewDao.createTable(db, ifNotExists);\n EncourageSentenceDao.createTable(db, ifNotExists);\n ImportDateDao.createTable(db, ifNotExists);\n ScheduleTodoDao.createTable(db, ifNotExists);\n TargetDao.createTable(db, ifNotExists);\n TomatoTodoDao.createTable(db, ifNotExists);\n UpTempletDao.createTable(db, ifNotExists);\n UserDao.createTable(db, ifNotExists);\n }", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "Table createTable();", "void prepareTables();", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"FARM_FIELD\\\" (\" + //\n \"\\\"FIELD_ID\\\" INTEGER,\" + // 0: fieldId\n \"\\\"FIELD_NAME\\\" TEXT,\" + // 1: fieldName\n \"\\\"STATE\\\" INTEGER NOT NULL ,\" + // 2: state\n \"\\\"FIELD_AREA\\\" REAL,\" + // 3: fieldArea\n \"\\\"MATURE_DEGREE\\\" REAL,\" + // 4: matureDegree\n \"\\\"LATITUDE\\\" REAL,\" + // 5: latitude\n \"\\\"LONGITUDE\\\" REAL,\" + // 6: longitude\n \"\\\"CURRENT_SOW_TIME\\\" TEXT,\" + // 7: currentSowTime\n \"\\\"CURRENT_MATURE_TIME\\\" TEXT,\" + // 8: currentMatureTime\n \"\\\"NEXT_SOW_TIME\\\" TEXT,\" + // 9: nextSowTime\n \"\\\"FARM_ID\\\" INTEGER,\" + // 10: farmId\n \"\\\"PLANT_NUM\\\" INTEGER NOT NULL ,\" + // 11: plantNum\n \"\\\"EXPECT_HARVEST_NUM\\\" INTEGER NOT NULL ,\" + // 12: expectHarvestNum\n \"\\\"ACTUAL_HARVEST_NUM\\\" INTEGER NOT NULL ,\" + // 13: actualHarvestNum\n \"\\\"TOTALDAY\\\" INTEGER NOT NULL ,\" + // 14: totalday\n \"\\\"PLANTDAY\\\" INTEGER NOT NULL ,\" + // 15: plantday\n \"\\\"PLANT_HISTORY_ID\\\" INTEGER NOT NULL ,\" + // 16: plantHistoryId\n \"\\\"HARVEST_HISTORY_ID\\\" INTEGER NOT NULL ,\" + // 17: harvestHistoryId\n \"\\\"CURRENT_VFCROPS_ID\\\" INTEGER NOT NULL ,\" + // 18: currentVFcropsId\n \"\\\"NEXT_VFCROPS_ID\\\" INTEGER NOT NULL );\"); // 19: nextVFcropsId\n }", "private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column nodeId = new Column(\"NODE_ID\");\n nodeId.setMappedType(\"VARCHAR\");\n nodeId.setPrimaryKey(true);\n nodeId.setRequired(true);\n nodeId.setSize(\"50\");\n Column status = new Column(\"STATUS\");\n status.setMappedType(\"VARCHAR\");\n status.setSize(\"10\");\n status.setRequired(true);\n status.setDefaultValue(\"NEW\");\n Column startTime = new Column(\"START_TIME\");\n startTime.setMappedType(\"TIMESTAMP\");\n Column endTime = new Column(\"END_TIME\");\n endTime.setMappedType(\"TIMESTAMP\");\n\n Table table = new Table(STRESS_TEST_STATUS, runId, nodeId, status, startTime, endTime);\n\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"HINT\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: id\n \"\\\"USR_ID\\\" INTEGER NOT NULL ,\" + // 1: usrId\n \"\\\"TYPE\\\" TEXT,\" + // 2: type\n \"\\\"TARGET_ID\\\" TEXT,\" + // 3: targetId\n \"\\\"UN_READ_COUNT\\\" INTEGER,\" + // 4: unReadCount\n \"\\\"LAST_MESSAGE\\\" TEXT,\" + // 5: lastMessage\n \"\\\"LAST_READ_TIME\\\" TEXT,\" + // 6: lastReadTime\n \"\\\"LOCAL_MESSAGE_TIME\\\" TEXT);\"); // 7: localMessageTime\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"RECORD\\\" (\" + //\n \"\\\"id\\\" INTEGER PRIMARY KEY ,\" + // 0: id\n \"\\\"IDD\\\" TEXT,\" + // 1: idd\n \"\\\"VALUE_CHAR\\\" TEXT,\" + // 2: valueChar\n \"\\\"VALUE_FLOAT\\\" REAL NOT NULL ,\" + // 3: valueFloat\n \"\\\"VALUE_STRING\\\" TEXT,\" + // 4: valueString\n \"\\\"PATROL_RECORD_DATE\\\" INTEGER NOT NULL ,\" + // 5: patrolRecordDate\n \"\\\"DEVICE_ID\\\" TEXT,\" + // 6: deviceId\n \"\\\"PATROL_CONTENT_ID\\\" TEXT,\" + // 7: patrolContentId\n \"\\\"FID\\\" INTEGER,\" + // 8: fid\n \"\\\"WHOLE_ID\\\" INTEGER);\"); // 9: wholeID\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString[] tables = CREATE_TABLES.split(\";\");\n\t\tfor(String SQL : tables){\n\t\t db.execSQL(SQL);\n\t\t}\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString createWLanTrackingTable = \"CREATE TABLE WLAN_TRACK (\"\n\t\t\t\t+ \"UUID Text,\" + \"TIMESTAMP Text,\" + \"LATITUDE Real,\"\n\t\t\t\t+ \"LONGITUDE Real,\" + \"WLAN_SSID Text);\";\n\t\tdb.execSQL(createWLanTrackingTable);\n\n\t\tString createBTTrackingTable = \"CRATE TABLE BT_TRACK (\" + \"UUID Text, \"\n\t\t\t\t+ \"TIMESTAMP Text,\" + \"LATITUDE Real,\" + \"LONGITUDE Real, \"\n\t\t\t\t+ \"BT_ADRESS Text);\";\n\t\tdb.execSQL(createBTTrackingTable);\n\n\t}", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"DCPURCHASE_DATA\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ,\" + // 0: id\n \"\\\"VFCROPS_ID\\\" INTEGER NOT NULL ,\" + // 1: vfcropsId\n \"\\\"EXPECTNEEDS_NUM\\\" INTEGER NOT NULL ,\" + // 2: expectneedsNum\n \"\\\"DATE\\\" TEXT,\" + // 3: date\n \"\\\"DCID\\\" INTEGER NOT NULL );\"); // 4: dcid\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"'ORDER_BATCH' (\" + //\n \"'ID' TEXT PRIMARY KEY NOT NULL ,\" + // 0: id\n \"'COOPERATE_ID' TEXT NOT NULL ,\" + // 1: cooperateId\n \"'S_PDTG_CUSTFULLNAME' TEXT,\" + // 2: sPdtgCustfullname\n \"'L_PDTG_BATCH' INTEGER NOT NULL ,\" + // 3: lPdtgBatch\n \"'DRIVERS_ID' TEXT NOT NULL ,\" + // 4: driversID\n \"'EVALUATION' TEXT,\" + // 5: evaluation\n \"'CAN_EVALUTAION' TEXT,\" + // 6: canEvalutaion\n \"'STATUS' TEXT NOT NULL ,\" + // 7: status\n \"'ADD_TIME' INTEGER NOT NULL ,\" + // 8: addTime\n \"'EDIT_TIME' INTEGER,\" + // 9: editTime\n \"'USER_NAME' TEXT NOT NULL );\"); // 10: userName\n }", "public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {\n CriuzesDao.createTable(db, ifNotExists);\n Criuzes_TMPDao.createTable(db, ifNotExists);\n CabinsDao.createTable(db, ifNotExists);\n Cabins_TMPDao.createTable(db, ifNotExists);\n ExcursionsDao.createTable(db, ifNotExists);\n Excursions_TMPDao.createTable(db, ifNotExists);\n GuestsDao.createTable(db, ifNotExists);\n Guests_TMPDao.createTable(db, ifNotExists);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"Create table \"+TABLE_NAME+\"(id INTEGER PRIMARY KEY AUTOINCREMENT,address_type VARCHAR,name VARCHAR,pincode VARCHAR,city VARCHAR,state VARCHAR,area VARCHAR,address VARCHAR,landmark VARCHAR,\"+mobile+\" VARCHAR,alternate_no VARCHAR);\");\n db.execSQL(\" Create table \"+CART_TABLE_NAME+\"(id INTEGER,count INTEGER,datetime VARCHAR,size VARCHAR)\");\n db.execSQL(\" Create table \"+WISHLIST_TABLE_NAME+\"(whishlist_id INTEGER)\");\n\n }", "TableInstance createTableInstance();", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\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\t\n\t\t}", "public JSObject createSyncTable() {\n // Open the database for writing\n JSObject retObj = new JSObject();\n SQLiteDatabase db = null;\n try {\n db = getConnection(false, secret);\n // check if the table has already been created\n boolean isExists = isTableExists(db, \"sync_table\");\n if (!isExists) {\n Date date = new Date();\n long syncTime = date.getTime() / 1000L;\n String[] statements = {\n \"BEGIN TRANSACTION;\",\n \"CREATE TABLE IF NOT EXISTS sync_table (\" + \"id INTEGER PRIMARY KEY NOT NULL,\" + \"sync_date INTEGER);\",\n \"INSERT INTO sync_table (sync_date) VALUES ('\" + syncTime + \"');\",\n \"COMMIT TRANSACTION;\"\n };\n retObj = execute(db, statements);\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error: createSyncTable failed: \", e);\n } finally {\n if (db != null) db.close();\n return retObj;\n }\n }", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"CHAT_LOG\\\" (\" + //\n \"\\\"CHAT_LOG_ID\\\" TEXT PRIMARY KEY NOT NULL ,\" + // 0: chatLogId\n \"\\\"TYPE\\\" INTEGER NOT NULL ,\" + // 1: type\n \"\\\"CONTENT\\\" TEXT NOT NULL ,\" + // 2: content\n \"\\\"CREATE_BY\\\" TEXT NOT NULL ,\" + // 3: createBy\n \"\\\"CREATE_DATE\\\" INTEGER NOT NULL );\"); // 4: createDate\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"OBD_TT\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE ,\" + // 0: id\n \"\\\"CONTEN\\\" TEXT,\" + // 1: conten\n \"\\\"OBD_TYPE\\\" TEXT,\" + // 2: obdType\n \"\\\"SNCODE\\\" INTEGER NOT NULL ,\" + // 3: sncode\n \"\\\"STROKE_ID\\\" INTEGER NOT NULL ,\" + // 4: strokeId\n \"\\\"DATA_BYTES\\\" INTEGER NOT NULL ,\" + // 5: dataBytes\n \"\\\"OCC_TIME\\\" INTEGER NOT NULL ,\" + // 6: occTime\n \"\\\"HOT_CAR_TIME\\\" INTEGER NOT NULL ,\" + // 7: hotCarTime\n \"\\\"TRAVEL_TIME\\\" INTEGER NOT NULL ,\" + // 8: travelTime\n \"\\\"IDLE_SPEED_TIME\\\" INTEGER NOT NULL ,\" + // 9: idleSpeedTime\n \"\\\"TRAVEL_MILEAGE\\\" REAL NOT NULL ,\" + // 10: travelMileage\n \"\\\"IDLE_FUEL\\\" REAL NOT NULL ,\" + // 11: idleFuel\n \"\\\"DRIVING_FUEL\\\" REAL NOT NULL ,\" + // 12: drivingFuel\n \"\\\"AVERAGE_FUEL\\\" REAL NOT NULL ,\" + // 13: averageFuel\n \"\\\"MAX_RPM\\\" INTEGER NOT NULL ,\" + // 14: maxRpm\n \"\\\"MAX_SPEED\\\" INTEGER NOT NULL ,\" + // 15: maxSpeed\n \"\\\"HIGHEST_TEMPERATURE\\\" INTEGER NOT NULL ,\" + // 16: highestTemperature\n \"\\\"LOWEST_TEMPERATURE\\\" INTEGER NOT NULL ,\" + // 17: lowestTemperature\n \"\\\"MAX_ACCELERATION\\\" REAL NOT NULL ,\" + // 18: maxAcceleration\n \"\\\"MIN_ACCELERATION\\\" REAL NOT NULL ,\" + // 19: minAcceleration\n \"\\\"SOLAR_TERM_DOOR\\\" REAL NOT NULL ,\" + // 20: solarTermDoor\n \"\\\"ACCELERATION_TIMES\\\" INTEGER NOT NULL ,\" + // 21: accelerationTimes\n \"\\\"DECELERATION_TIMES\\\" INTEGER NOT NULL ,\" + // 22: decelerationTimes\n \"\\\"FAULT_CODE_NUM\\\" INTEGER NOT NULL ,\" + // 23: faultCodeNum\n \"\\\"SPEEDING_TIME\\\" INTEGER NOT NULL ,\" + // 24: speedingTime\n \"\\\"ONE_MINUTES_IDLE_TIMES\\\" INTEGER NOT NULL ,\" + // 25: oneMinutesIdleTimes\n \"\\\"MAX_TIRE_PRESSURE\\\" TEXT,\" + // 26: maxTirePressure\n \"\\\"MIN_TIRE_PRESSURE\\\" TEXT,\" + // 27: minTirePressure\n \"\\\"MAX_TIRE_TEMPERATURE\\\" TEXT,\" + // 28: maxTireTemperature\n \"\\\"MIN_TIRE_TEMPERATURE\\\" TEXT,\" + // 29: minTireTemperature\n \"\\\"TIRE_STATE\\\" TEXT,\" + // 30: tireState\n \"\\\"STOP_TIME\\\" INTEGER NOT NULL ,\" + // 31: stopTime\n \"\\\"START_TIME\\\" INTEGER NOT NULL ,\" + // 32: startTime\n \"\\\"CREATE_AT_TIME\\\" TEXT);\"); // 33: createAtTime\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"ExtraDetails\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY ASC ,\" + // 0: id\n \"\\\"PRICE\\\" REAL,\" + // 1: price\n \"\\\"PAY_PRICE\\\" REAL,\" + // 2: payPrice\n \"\\\"IS_PRINTED\\\" INTEGER,\" + // 3: isPrinted\n \"\\\"START_TIME\\\" INTEGER,\" + // 4: startTime\n \"\\\"STOP_TIME\\\" INTEGER,\" + // 5: stopTime\n \"\\\"TABLE_NAME\\\" TEXT,\" + // 6: tableName\n \"\\\"EXTRA_NAME\\\" TEXT,\" + // 7: extraName\n \"\\\"IS_COMPLEMENT\\\" INTEGER,\" + // 8: isComplement\n \"\\\"PX_ORDER_INFO_ID\\\" INTEGER);\"); // 9: pxOrderInfoId\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"'P7P4' (\" + //\n \"'_id' INTEGER PRIMARY KEY ,\" + // 0: id\n \"'LFDC' INTEGER,\" + // 1: lfdc\n \"'LFPE' INTEGER,\" + // 2: lfpe\n \"'LFCD' INTEGER,\" + // 3: lfcd\n \"'LFAU' INTEGER,\" + // 4: lfau\n \"'ORIGEN' INTEGER,\" + // 5: origen\n \"'OBSER' TEXT,\" + // 6: obser\n \"'ID_FORMULARIO' INTEGER);\"); // 7: id_formulario\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db)\n\t{\n\t\tString photoSQL = \"CREATE TABLE photoFile(photo_id varchar(10) primary key , \" +\n\t\t\t\t\"photoUrl varchar(20), \" +\n \t\t\"photoNum varchar(20))\";\n\t\t\n\t\tString allPhotoSQL = \"CREATE TABLE photoList(allPhoto_id varchar(10) primary key , \" +\n \t\t\"allPhotoUrl varchar(20))\";\n\t\tdb.execSQL(photoSQL);\n\t\tLog.d(\"my\", \"create table photoSQL:\"+photoSQL);\n\t\tdb.execSQL(allPhotoSQL);\n\t\tLog.d(\"my\", \"create table allPhotoSQL:\"+allPhotoSQL);\n\t\t\n\t\t\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n new Tables(db).makeContactTable();\n new Tables(db).makeTalkTable();\n new Tables(db).makeConferenceTable();\n new Tables(db).makeNotificationTable();\n }", "private void createDBProcedure() {\r\n try {\r\n Class.forName(myDriver);\r\n Connection conn = DriverManager.getConnection(myUrl, myUser, myPass);\r\n for (File sentiment : sentimentsFoldersList) {\r\n try {\r\n String queryCreate\r\n = \"CREATE TABLE \" + sentiment.getName().toUpperCase()\r\n + \" (WORD VARCHAR(50), COUNT_RES INT, PERC_RES FLOAT, COUNT_TWEET INT, PRIMARY KEY(WORD) )\";\r\n Statement st_create = conn.createStatement();\r\n st_create.executeUpdate(queryCreate);\r\n System.out.println(\"TABLE \" + sentiment.getName().toLowerCase() + \" CREATED\");\r\n st_create.close();\r\n } catch (SQLException ex) {\r\n if (ex.getErrorCode() == 955) {\r\n System.out.println(\"TABLE \" + sentiment.getName().toLowerCase() + \" WAS ALREADY PRESENT...\");\r\n }\r\n }\r\n }\r\n conn.close();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n System.out.println(ex.toString());\r\n }\r\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"DEVICE_INFOS\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE ,\" + // 0: ID\n \"\\\"DEV_ID\\\" TEXT,\" + // 1: dev_id\n \"\\\"IMG_URL\\\" TEXT,\" + // 2: img_url\n \"\\\"STATE\\\" INTEGER NOT NULL );\"); // 3: state\n }", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "public static void addDbCols(List<Individual> rows, Connection c, String[] tables, List<Column> allColumns) throws IOException {\n\t\tMenu menu = new AutoMenu();\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tfor (int i = 0; i < tables.length; i++) {\n\t\t\t\tString table = tables[i];\n\t\t\t\tboolean choice = menu.getChoice(table); //insurance\n\t\t\t\tif (choice) {\n\t\t\t\t\t//medical records\n\t\t\t\t\tString[] addTables = menu.getMvTables(table);\n\t\t\t\t\tfor (int j = 0; j < addTables.length; j++) {\t\n\t\t\t\t\t\tString newTable = addTables[j];\n\n\t\t\t\t\t\tList<Column> newTableCols = menu.getTableCols(newTable, allColumns); //disease, prescription\n\t\t\t\t\t\tColumn mv = null;\t\n\t\t\t\t\t\tColumn mv2 = null;\n\t\t\t\t\t\tfor (Column col : newTableCols) {\n\t\t\t\t\t\t\tSource s = menu.getSource(col);\n\t\t\t\t\t\t\tif (s.equals(Source.MULTI_VALUE)) {\n\t\t\t\t\t\t\t\tmv = col;\n\t\t\t\t\t\t\t} else if (s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\tmv2 = col;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mvType = \"\";\n\t\t\t\t\t\tString mv2Type = \"\";\n\t\t\t\t\t\tString addCreate = \"CREATE TABLE \" + newTable + \"( \";\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Column col : newTableCols) {\n\t\t\t\t\t\t\tSource s = menu.getSource(col);\n\t\t\t\t\t\t\tString val = rows.get(0).getValues().get(col);\n\t\t\t\t\t\t\tString type = \"\";\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(val);\n\t\t\t\t\t\t\t\ttype = \"BIGINT\";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\ttype = \"VARCHAR\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\taddCreate = addCreate + col.datatype + \" \" + type + \" NOT NULL, \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (s.equals(Source.MULTI_VALUE)) {\n\t\t\t\t\t\t\t\tmvType = type;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmv2Type = type;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\taddCreate = addCreate + mv.datatype + \" \" + mvType + \n\t\t\t\t\t\t\t\t\", \" + mv2.datatype + \" \" + mv2Type + \");\"; //so matches\n\t\t\t\t\t\t//order below\n\n\t\t\t\tstmt = c.prepareStatement(addCreate);\n\t\t\t\tstmt.executeUpdate();\t\t\t\n\t\t\t\tString all = \"\";\n\t\t\t\tString some = \"\";\n\t\t\t\tString none = \"\";\n\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\tnone = none + colTwo.datatype + \",\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnone = none.substring(0, none.length() - 1);\n\t\t\t\tsome = none + \",\" + mv.datatype;\n\t\t\t\tall = some + \",\" + mv2.datatype;\n\n\t\t\t\tfor (Individual person : rows) {\n\t\t\t\t\tMap<String, String> mvMap = person.mvTwo;\n\t\t\t\t\tMap<Column, String> vals = person.getValues();\t\t\t\n\t\t\t\t\tif (mvMap.size() > 0) {\n\t\t\t\t\tfor (String mvS : mvMap.keySet()) {\n\t\t\t\t\t\tString mv2S = mvMap.get(mvS);\n\t\t\t\t\t\tif (mv2S.length() > 0) {\n\t\t\t\t\t\tString[] parts = mv2S.split(\",\");\n\t\t\t\t\t\tfor (int l = 0; l < parts.length; l++) {\n\t\t\t\t\t\t\tString addInsert = \"INSERT INTO \" + newTable + \" (\" + all + \") \" + \" VALUES (\";\t \n\t\t\t\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\t\tString check = vals.get(colTwo);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(check);\n\t\t\t\t\t\t\t\t\t\taddInsert = addInsert + check + \", \";\n\t\t\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + check + \"', \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(mvS);\n\t\t\t\t\t\t\t\taddInsert = addInsert + mvS + \", \";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + mvS + \"', \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(parts[l]);\n\t\t\t\t\t\t\t\taddInsert = addInsert + parts[l] + \");\";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + parts[l] + \"');\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstmt = c.prepareStatement(addInsert);\n\t\t\t\t\t\t\tstmt.executeUpdate();\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString addInsert = \"INSERT INTO \" + newTable + \" (\" + some + \") \" + \" VALUES (\";\n\t\t\t\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\t\tString check = vals.get(colTwo);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(check);\n\t\t\t\t\t\t\t\t\t\taddInsert = addInsert + check + \", \";\n\t\t\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + check + \"', \";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\"what is disease: \" + mvS);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(mvS);\n\t\t\t\t\t\t\t\taddInsert = addInsert + mvS + \");\";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + mvS + \"');\";\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\tstmt = c.prepareStatement(addInsert);\n\t\t\t\t\t\t\tstmt.executeUpdate();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tString addInsert = \"INSERT INTO \" + newTable + \" (\" + none + \") \" + \" VALUES (\";\n\t\t\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\tString check = vals.get(colTwo);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tInteger.parseInt(check);\n\t\t\t\t\t\t\t\t\taddInsert = addInsert + check + \", \";\n\t\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + check + \"', \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\taddInsert = addInsert.substring(0, addInsert.length() - 2) + \");\";\n\t\t\t\t\t\tstmt = c.prepareStatement(addInsert);\n\t\t\t\t\t\tstmt.executeUpdate();\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t \t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t\t\t\t\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n\t System.exit(0);\n\t\t}\t\t\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "public void createNewTable() throws WoodsException{\n\t\t\tuserTable = new Table(tableName);\n\t\t\tDatabase.get().storeTable(tableName, userTable);\n\t\t}", "public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public static void changeTableNameToEcMother(@NonNull SQLiteDatabase database) {\n database.execSQL(\"PRAGMA foreign_keys=off\");\n database.beginTransaction();\n\n database.execSQL(\"CREATE TABLE ec_mother(id VARCHAR PRIMARY KEY,relationalid VARCHAR, details VARCHAR, is_closed TINYINT DEFAULT 0, base_entity_id VARCHAR,register_id VARCHAR,first_name VARCHAR,last_name VARCHAR,dob VARCHAR,dob_unknown VARCHAR,last_interacted_with VARCHAR,date_removed VARCHAR,phone_number VARCHAR,alt_name VARCHAR,alt_phone_number VARCHAR,reminders VARCHAR,home_address VARCHAR,edd VARCHAR,red_flag_count VARCHAR,yellow_flag_count VARCHAR,contact_status VARCHAR,next_contact VARCHAR,next_contact_date VARCHAR,last_contact_record_date VARCHAR,visit_start_date VARCHAR)\");\n\n String copyDataSQL = String.format(\"INSERT INTO %s(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) SELECT %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s FROM %s\",\n DBConstantsUtils.WOMAN_TABLE_NAME,\n \"id\",\n DBConstantsUtils.KeyUtils.RELATIONAL_ID,\n DBConstantsUtils.KeyUtils.BASE_ENTITY_ID,\n DBConstantsUtils.KeyUtils.ANC_ID,\n DBConstantsUtils.KeyUtils.FIRST_NAME,\n DBConstantsUtils.KeyUtils.LAST_NAME,\n DBConstantsUtils.KeyUtils.DOB,\n DBConstantsUtils.KeyUtils.DOB_UNKNOWN,\n DBConstantsUtils.KeyUtils.LAST_INTERACTED_WITH,\n DBConstantsUtils.KeyUtils.DATE_REMOVED,\n DBConstantsUtils.KeyUtils.PHONE_NUMBER,\n DBConstantsUtils.KeyUtils.ALT_NAME,\n DBConstantsUtils.KeyUtils.ALT_PHONE_NUMBER,\n DBConstantsUtils.KeyUtils.REMINDERS,\n DBConstantsUtils.KeyUtils.HOME_ADDRESS,\n DBConstantsUtils.KeyUtils.EDD,\n DBConstantsUtils.KeyUtils.RED_FLAG_COUNT,\n DBConstantsUtils.KeyUtils.YELLOW_FLAG_COUNT,\n DBConstantsUtils.KeyUtils.CONTACT_STATUS,\n DBConstantsUtils.KeyUtils.NEXT_CONTACT,\n DBConstantsUtils.KeyUtils.NEXT_CONTACT_DATE,\n DBConstantsUtils.KeyUtils.LAST_CONTACT_RECORD_DATE,\n DBConstantsUtils.KeyUtils.VISIT_START_DATE,\n \"id\",\n DBConstantsUtils.KeyUtils.RELATIONAL_ID,\n DBConstantsUtils.KeyUtils.BASE_ENTITY_ID,\n \"anc_id\",\n DBConstantsUtils.KeyUtils.FIRST_NAME,\n DBConstantsUtils.KeyUtils.LAST_NAME,\n DBConstantsUtils.KeyUtils.DOB,\n DBConstantsUtils.KeyUtils.DOB_UNKNOWN,\n DBConstantsUtils.KeyUtils.LAST_INTERACTED_WITH,\n DBConstantsUtils.KeyUtils.DATE_REMOVED,\n DBConstantsUtils.KeyUtils.PHONE_NUMBER,\n DBConstantsUtils.KeyUtils.ALT_NAME,\n DBConstantsUtils.KeyUtils.ALT_PHONE_NUMBER,\n DBConstantsUtils.KeyUtils.REMINDERS,\n DBConstantsUtils.KeyUtils.HOME_ADDRESS,\n DBConstantsUtils.KeyUtils.EDD,\n DBConstantsUtils.KeyUtils.RED_FLAG_COUNT,\n DBConstantsUtils.KeyUtils.YELLOW_FLAG_COUNT,\n DBConstantsUtils.KeyUtils.CONTACT_STATUS,\n DBConstantsUtils.KeyUtils.NEXT_CONTACT,\n DBConstantsUtils.KeyUtils.NEXT_CONTACT_DATE,\n DBConstantsUtils.KeyUtils.LAST_CONTACT_RECORD_DATE,\n DBConstantsUtils.KeyUtils.VISIT_START_DATE,\n \"ec_woman\");\n\n // Copy over the data\n database.execSQL(copyDataSQL);\n database.execSQL(\"DROP TABLE ec_woman\");\n\n // Create ec_mother indexes\n database.execSQL(\"CREATE INDEX ec_mother_base_entity_id_index ON ec_mother(base_entity_id COLLATE NOCASE)\");\n database.execSQL(\"CREATE INDEX ec_mother_id_index ON ec_mother(id COLLATE NOCASE)\");\n database.execSQL(\"CREATE INDEX ec_mother_relationalid_index ON ec_mother(relationalid COLLATE NOCASE)\");\n\n // Create ec_mother FTS table\n database.execSQL(\"create virtual table ec_mother_search using fts4 (object_id,object_relational_id,phrase,is_closed TINYINT DEFAULT 0,base_entity_id,first_name,last_name,last_interacted_with,date_removed)\");\n\n // Copy the current FTS table ec_woman_sesarch into ec_mother_search\n database.execSQL(\"insert into ec_mother_search(object_id, object_relational_id, phrase, is_closed, base_entity_id, first_name, last_name, last_interacted_with, date_removed) \" +\n \"SELECT object_id, object_relational_id, phrase, is_closed, base_entity_id, first_name, last_name, last_interacted_with, date_removed FROM ec_woman_search\");\n\n // Delete the previous FTS table ec_woman_search\n database.execSQL(\"DROP TABLE ec_woman_search\");\n\n // Update the ec_details to use register_id\n database.execSQL(\"UPDATE ec_details SET key = 'register_id' WHERE key = 'anc_id'\");\n\n database.setTransactionSuccessful();\n database.endTransaction();\n database.execSQL(\"PRAGMA foreign_keys=on;\");\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"RECORD\\\" (\" + //\n \"\\\"KEY\\\" TEXT PRIMARY KEY NOT NULL UNIQUE ,\" + // 0: key\n \"\\\"TAKE_TIME\\\" INTEGER NOT NULL ,\" + // 1: takeTime\n \"\\\"FINISH_DATE\\\" INTEGER NOT NULL ,\" + // 2: finishDate\n \"\\\"DIFFICULTY\\\" INTEGER NOT NULL ,\" + // 3: difficulty\n \"\\\"MODE\\\" INTEGER NOT NULL );\"); // 4: mode\n }", "public static void loadSellTable()\n {\n final String QUERY = \"SELECT Sells.SellId, Sells.ProductId, Clients.FirstName, Clients.LastName, Products.ProductName, Sells.Stock, Sells.FinalPrice \"\n + \"FROM Sells, Products, Clients WHERE Sells.ProductId = Products.ProductId AND Sells.ClientId=Clients.clientId\";\n\n DefaultTableModel dtm = (DefaultTableModel) new SellDatabase().selectTable(QUERY);\n sellTable.setModel(dtm);\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"'RECYCLE_SCAN' (\" + //\n \"'_id' INTEGER PRIMARY KEY ,\" + // 0: id\n \"'L_PDTG_BATCH' INTEGER NOT NULL ,\" + // 1: lPdtgBatch\n \"'RECYCLE_SCAN_TIME' INTEGER NOT NULL ,\" + // 2: recycleScanTime\n \"'SCAN_CODE' TEXT NOT NULL ,\" + // 3: scanCode\n \"'STATUS' TEXT NOT NULL ,\" + // 4: status\n \"'EDIT_TIME' INTEGER,\" + // 5: editTime\n \"'USER_NAME' TEXT NOT NULL ,\" + // 6: userName\n \"'RECYCLE_TYPE' INTEGER NOT NULL ,\" + // 7: recycleType\n \"'RECYCLE_TYPE_VALUE' TEXT NOT NULL );\"); // 8: recycleTypeValue\n }" ]
[ "0.62856865", "0.59584194", "0.5917206", "0.5747341", "0.57308066", "0.57303363", "0.5684791", "0.56596833", "0.56029654", "0.5593535", "0.55810076", "0.5565453", "0.5549549", "0.5535479", "0.55296063", "0.5525826", "0.5523942", "0.55232704", "0.5496638", "0.5496564", "0.5494424", "0.54743814", "0.5465435", "0.54609364", "0.5459022", "0.5452026", "0.54497427", "0.54445565", "0.54373485", "0.5435017", "0.54166603", "0.5405879", "0.53913337", "0.53911954", "0.53882045", "0.5382269", "0.53771764", "0.5371955", "0.5368276", "0.5356802", "0.5344501", "0.53379124", "0.5324348", "0.5320646", "0.53051937", "0.5304869", "0.5304697", "0.5298737", "0.5298057", "0.5296286", "0.52945334", "0.5285464", "0.5282329", "0.5282068", "0.52796966", "0.527586", "0.5272212", "0.5270175", "0.5270175", "0.52697474", "0.52689874", "0.5258392", "0.525582", "0.52472043", "0.52468234", "0.5238086", "0.5236101", "0.52340233", "0.52329934", "0.5229141", "0.52223986", "0.5215611", "0.5214491", "0.5213012", "0.5212446", "0.5210545", "0.5206231", "0.5199599", "0.5197159", "0.51918304", "0.51883566", "0.51881146", "0.5186188", "0.5165016", "0.51624846", "0.51593935", "0.5159274", "0.51399654", "0.51393104", "0.51386476", "0.513808", "0.51371384", "0.5135133", "0.5134287", "0.5130988", "0.51277363", "0.51174974", "0.5113444", "0.5111277", "0.51093554" ]
0.5448493
27
Hospital hospital = hospitalRepository.getOne(payload.getHospitalId()); user.setHospital(hospital);
private User toUserModel(User user, UserCreateController.Payload payload) { BeanUtils.copyPropertiesIfNotNull(payload, user.getUserInfo()); BeanUtils.copyPropertiesIfNotNull(payload, user); return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface HospitalisationRepository extends JpaRepository<Hospitalisation,Long> {\n\n}", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "public Employee save(Employee employee){\n return employeeRepository.save(employee);\n }", "public User saveUser(UserDto userDto);", "public void setHospital(String hospital) {\r\n this.hospital = hospital;\r\n }", "UserDTO addNewData(UserDTO userDTO);", "@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }", "UserEntity updateUser(UserEntity userEntity);", "HospitalType selectByPrimaryKey(String id);", "@GetMapping(\"/{id}\")\n public ResponseEntity updateOne(@PathVariable Long id){\n Employee employee=hr_service.findById(id);\n\n return new ResponseEntity<>(employee, HttpStatus.OK);\n }", "@Override\n\tpublic Hopital updateHopital(Hopital hopital) {\n\t\treturn hopitalRepository.save(hopital);\n\t}", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "public UserEntity save(UserEntity userEntity);", "public void updateByEntity(Paciente paciente) {\n\t\n}", "public interface HospitalCardDAO {\n int createHospitalCard(HospitalCard hospitalCard);\n\n HospitalCard getHospitalCardById(int hospitalCardId);\n\n HospitalCard getHospitalCardByPatientId(int patientId);\n\n List<HospitalCard> getAllHospitalCards();\n\n boolean updateHospitalCard(HospitalCard hospitalCard);\n\n boolean deleteHospitalCardById(int hospitalCardId);\n}", "public UserInformation findInformationById(int id);", "public void update(Employee employee){\n employeeRepository.save(employee);\n }", "public void setUser(User user) { this.user = user; }", "public User updateUser(User user);", "@Override\r\n\tpublic ResponseEntity<User> addEmployee(User user, String authToken) throws ManualException {\r\n\t\t\r\n\t\tfinal Session session=sessionFactory.openSession();\r\n\t\tResponseEntity<User> responseEntity = new ResponseEntity<User>(HttpStatus.BAD_REQUEST);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tString characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@_$!#\";\r\n\t\t\tString password = RandomStringUtils.random( 15, characters );\r\n\t\t\t\r\n\t\t\tuser.getUserCredential().setPassword(Encrypt.encrypt(password));\r\n\t\t\t\r\n\t\t\t/* check for authToken of admin */\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tAuthTable authtable=session.get(AuthTable.class, authToken);\r\n\t\t\tUser adminUser=session.get(User.class, authtable.getUser().getEmpId());\r\n\t\r\n\t\t\t/* Adding skills to user object */\r\n\t\t\tList<Skill> skills = new ArrayList<Skill>();\r\n\t\t\tfor(Skill s:user.getSkills()){\r\n\t\t\t\tString h=\"from skill where skillName='\"+s.getSkillName()+\"'\";\r\n\t\t\t\tQuery q=session.createQuery(h);\r\n\t\t\t\tif(!q.list().isEmpty())\r\n\t\t\t\t\tskills.addAll(q.list());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Adding department to user object */\r\n\t\t\tif(user.getDepartment()!=null){\r\n\t\t\t\tString h=\"from department where departmentName='\"+user.getDepartment().getDepartmentName()+\"'\";\r\n\t\t\t\tQuery q=session.createQuery(h);\r\n\t\t\t\tif(!q.list().isEmpty())\r\n\t\t\t\t\tuser.setDepartment(((Department)q.list().get(0)));\r\n\t\t\t\telse\r\n\t\t\t\t\tuser.setDepartment(null);\r\n\t\t\t}\r\n\t\r\n\t\t\t\r\n\t\t\t/* Adding project to user object */\r\n\t\t\tif(user.getProject()!=null){\r\n\t\t\t\tString h=\"from project where projectName='\"+user.getProject().getProjectName()+\"'\";\r\n\t\t\t\tQuery q=session.createQuery(h);\r\n\t\t\t\tif(!q.list().isEmpty())\r\n\t\t\t\t\tuser.setProject(((Project)q.list().get(0)));\r\n\t\t\t\telse\r\n\t\t\t\t\tuser.setProject(null);\r\n\t\t\t}\r\n\t\t\r\n\t\t\tuser.setSkills(skills);\r\n\t\r\n\t\t\tif(adminUser.getUsertype().equals(\"Admin\")){\r\n\t\t\t\tif(user==null||user.getUserCredential()==null){\r\n\t\t\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.BAD_REQUEST);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t/* Stores user and UserCredential in database */\r\n\t\t\t\t\tsession.persist(user);\r\n\t\t\t\t\t\r\n\t\t\t\t\tString msg=env.getProperty(\"email.welcome.message\")+\"\\n\\nUsername: \"+user.getUserCredential().getUsername()+\"\\n\\nPassword: \"+password;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t/* sends Welcome Email */\r\n\t\t\t\t\temail.sendEmail(user.getEmail(), \"Welcome\" , msg);\r\n\t\t\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.OK);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* entry in operation table */\r\n\t\t\t\t\tOperationImpl operationImpl= new OperationImpl();\r\n\t\t\t\t\toperationImpl.addOperation(session, adminUser, \"Added Employee \"+user.getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.UNAUTHORIZED);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tresponseEntity= new ResponseEntity<User>(HttpStatus.BAD_REQUEST);\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn responseEntity;\r\n\t\t}\r\n\t}", "Patient update(Patient patient);", "User saveUser(User user);", "public interface UserDataRepository extends JpaRepository<UserData, Long> {\n //Object save(UserDataVO userData);\n UserData findById(long id);\n}", "public interface AppHealthDataDao {\n public AppHealthData findByType(String type, String idNo) throws Exception;\n\n public AppHealthData findByPatientId(String patientId, String ghh000,String type) throws Exception;\n\n public void addHealthDataImplements(JSONObject jsonall,String idNo,String card,String type,String requestUserId,String requestUserName,String userType) throws Exception;\n}", "void saveAdditionalInformation(UserDTO userDTO);", "public interface UserRespository extends JpaRepository<User,Long>{\n}", "public User findById(Long id){\n return userRepository.findOne(id);\n }", "User editUser(User user);", "public Employee findEmployee(Long id);", "public User saveUser(User user);", "Patient save(Patient patient);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TreatmentRepository extends JpaRepository<Treatment,Long> {\n\n @Query(\"select treatment from Treatment treatment where treatment.doctor.login = \" +\n \"?#{principal.username}\")\n List<Treatment> findByUserIsCurrentUser();\n\n Set<Treatment> findByPatientId(Long patientId);\n}", "Optional<VitalDTO> findOne(Long id);", "public User findUserById(int id);", "int updateByPrimaryKey(HospitalType record);", "EmployeeDTO findById(Long employeeId);", "public interface AdminUserRepository {\n AdminUserDTO findUser(AdminUserDTO adminUserDTO) throws Exception;\n}", "int updateUserById( User user);", "@Repository\npublic interface UserMapper {\n\n User findById(@Param(\"id\") Integer id);\n User findBypassword(User user);\n void addUser(User user);\n\n}", "@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}", "Employee setId(Short id);", "void updateUser(UserDTO user);", "public interface EmploymentSurveyService extends Service<EmploymentSurvey> {\n\n /**\n * 通过userId获得用户就业意向信息\n * @param stuId\n */\n Result getInfoByUserId(Integer stuId);\n\n}", "public User update(User user) throws DataAccessException;", "public interface UserService {\n UserInfo findByOpenid(String openid);\n}", "@Override\r\n public User userfindById(Integer u_id) {\n return userMapper.userfindById(u_id);\r\n }", "public Person getUserById(int id);", "Hotel saveHotel(Hotel hotel);", "User getUser(User user) ;", "UserDTO findUserById(Long id);", "@SuppressWarnings(\"unused\")\npublic interface IsHeadOfRepository extends JpaRepository<IsHeadOf,Long> {\n\n @Query(\"select isHeadOf from IsHeadOf isHeadOf where isHeadOf.head.login = ?#{principal.username}\")\n List<IsHeadOf> findByHeadIsCurrentUser();\n\n @Query(\"select isHeadOf from IsHeadOf isHeadOf where isHeadOf.employee.login = ?#{principal.username}\")\n List<IsHeadOf> findByEmployeeIsCurrentUser();\n\n IsHeadOf findOneByHeadAndEmployee(User head, User employee);\n}", "Integer addUser(ServiceUserEntity user);", "public User updateUser(long id, UserDto userDto);", "public User getUser(){return this.user;}", "public Employee createOne(Employee employee) {\n return employeeRepository.save(employee);\n }", "public void updateEmployeeDetails(EmployeeDetails employeeDetails);", "User createUser(User user);", "public User getUser(Long userId);", "public interface UserInfoRepository extends JpaRepository<UserInfoEntity,Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ExaminerRepository extends JpaRepository<Examiner, Long>,JpaSpecificationExecutor<Examiner>{\n\n Examiner findOneByUserId(Long userId);\n\n @Query(value = \"select u.id as uid,u.login,u.password_hash,e.id as eid,e.name,e.department_id,e.cell_phone,e.email,e.sex,e.birth,e.location,e.phone,e.address from examiner e LEFT JOIN jhi_user u on e.user_id = u.id\",nativeQuery = true)\n List<Object[]> exprotExaminerAndUserMessage();\n\n List<Examiner> findAllByDepartmentId(Long departmentId);\n}", "UserInfo getUserById(Integer user_id);", "void save(UserDetails userDetails);", "public User findOne(Long id){\n //findById is a CrudRepository method. it replaced findOne CrudRepostory method in earlier spring boot versions\n return userRepository.findById(id).orElse(null);//define this method in the repository\n }", "public User getUserById(Long id) throws Exception;", "@Test\n public void testSetHospedaje() {\n HospedajeEntity hospedaje = new HospedajeEntity();\n hospedaje.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setHospedaje(hospedaje);\n Assert.assertTrue(hospedajeL.getHospedaje().getId().equals(hospedaje.getId()));\n }", "void MypageUpdate(SecondUserDto userId) throws Exception;", "public User getUserById(Long userId);", "public User findById(Long id);", "public String enroll(UserDto userDto);", "public void addEmployee(Employee employee) {\n employeeRepository.save(employee);\n }", "public ResponseEntity<ShiftMasterDTO> persistShiftMaster(ShiftMasterDTO shiftmaster);", "public User save(User user);", "public String getHospitalId() {\n return hospitalId;\n }", "public void setHospital (jkt.hms.masters.business.MasHospital hospital) {\n\t\tthis.hospital = hospital;\n\t}", "public void setHospital (jkt.hms.masters.business.MasHospital hospital) {\n\t\tthis.hospital = hospital;\n\t}", "public void setHospital (jkt.hms.masters.business.MasHospital hospital) {\n\t\tthis.hospital = hospital;\n\t}", "public interface ShipmentRepository extends CrudRepository<ShipmentModel, Long> {\n\n ShipmentModel findByShipmentId(long shipmentId);\n\n}", "public User findById(int userId);", "public void setEmployeeId(long employeeId);", "public User saveuser(User newUser){\n Optional<User> user = userRepo.findById(newUser.getGoogleId());\n if(!user.isPresent()){\n userRepo.save(newUser);\n return newUser;\n }\n else{\n throw new UserNotFoundException(\" \");\n }\n }", "private void updateHocSinh() {\n\t\thocsinh user = new hocsinh();\n\n\t\tuser.setMa(txtMa.getText());\n\t\tuser.setTen(txtTen.getText());\n\t\tuser.setTuoi(txtTuoi.getText());\n\t\tuser.setSdt(txtSdt.getText());\n\t\tuser.setDiaChi(txtDiaChi.getText());\n\t\tuser.setEmail(txtEmail.getText());\n\t\t\n\n\t\thocsinhdao.updateUser(user);\n\t}", "public User saveUser(User user){\n return userRepository.save(user);\n }", "public void addHospital(Hospital hospital) {\n\t\tlistOfHospitals.add(hospital); // Adds the object of the model \"hospital\" to the list created above\n\t\tString hospitalName = hospital.getHospitalName();\t// Gets the String name from the hospital model\n\t\tLong regionId = hospital.getRegionId(); // Gets the integer value of the region id\n System.out.println(\"regionId from GUI hospital object: \"+regionId);\n\t\t\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t \n session.beginTransaction();\n \n Query regquery = session.createQuery(\"from Region where id= :id\");\n regquery.setLong(\"id\", regionId);\n Region region = (Region) regquery.uniqueResult();\n session.save(new Hospital(hospital.getHospitalName(), region));\n //session.save(hospital);\n session.getTransaction().commit();\n session.close();\n \n\t\t//Connection connection = null;\t// Instantiation of the connection to the database\n\t\t\n\t\t/**\n\t\t * The following contains a set of prepared statements to be prepared to be synchronized to the MySql database.\n\t\t * The prepared statements pull information that was saved to the model via the form submission.\n\t\t */\n /*\n\t\ttry {\n\t\t\tconnection = dataSource.getConnection(); // Connection of the dataSource with the MySql sever\n\t\t\t\n\t\t\tString sql = \"Insert into hospital (id, name, region_id) values(?, ?, ?)\"; // First sql statement that contains the information to query into hospital\n\t\t\tPreparedStatement ps = connection.prepareStatement(sql); // Instantiation of the class \"PreparedStatement\" of how the query statements are prepared to be added to the database and establishment of the sql query\n\t\t\t\n\t\t\tps.setInt(1, this.getMaxHospitalID()+1);\n\t\t\tps.setString(2, hospitalName);\n\t\t\tps.setInt(3, regionId);\n\t\t\t\n\t\t\tps.executeUpdate();\n\t\t\tps.close();\n\t\t} catch (SQLException e) { // Catches SQL exception errors\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tif (connection != null) { // Closes SQL connection \n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t*/\n\t\treturn;\n\t}", "User save(User user);", "public interface UserDetailsRepository extends CrudRepository<UserDetails, Long> {\n}", "public interface ShopperPersonRepository extends CrudRepository<ShopperPerson, Long> {\n}", "public void setLoggedUser(CustomEmployee user) {\n loggedUser = user;\n }", "int insert(HospitalType record);", "public Student getStudent(Student entity){\r\n return repo.findOne(entity.getID());\r\n }", "public void saveUser(IUser user);", "Employee findById(int id);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EmployeeDetailsRepository extends JpaRepository<EmployeeDetails, Long> {\n\t\n\tOptional<EmployeeDetails> findByUserId(Long id);\n\n}", "public interface BabyInfoRepository extends JpaRepository<BabyInfo, Integer> {\n\n @Query(\"SELECT bi FROM BabyInfo bi WHERE bi.user.id = :user_id\")\n BabyInfo findByUser(@Param(\"user_id\") Integer id);\n}", "@PostMapping(\"/employees\")\n Mono<Employee> newEmployee(@RequestBody Employee newEmployee) {\n return pensionLookup(newEmployee.getName())\n .map(pensionId -> {\n newEmployee.setPensionId(pensionId);\n return newEmployee;\n })\n .flatMap(this.repository::save);\n }", "@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<User> getUser(@PathVariable(\"id\") long id) {\n Optional<User> user = userService.findById(id);\n\n// user.ifPresent(item -> user1 = item);\n\n if (user.isPresent())\n return new ResponseEntity<>(user.get(), HttpStatus.OK);\n else return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }", "User getUserById(Long id);", "User getUserById(Long id);", "Department createOrUpdate(Department department);", "public UserTO getUser (String id);", "public interface IUserService {\n \n User queryUserById(long id);\n}", "@Repository\npublic interface TeacherRepository extends JpaRepository<Teacher, Long> {\n Teacher findOneByUuid(String uuid);\n void deleteByUuid(String uuid);\n}" ]
[ "0.6421517", "0.6007115", "0.5968038", "0.5956619", "0.5916815", "0.591674", "0.58803266", "0.58682775", "0.585005", "0.58066916", "0.5806255", "0.5786679", "0.5784769", "0.5782625", "0.57617515", "0.57597417", "0.5753843", "0.57144487", "0.56970376", "0.5691767", "0.5681066", "0.5669672", "0.5658293", "0.5650233", "0.564945", "0.56353575", "0.56350917", "0.5625244", "0.56242687", "0.5621172", "0.562031", "0.56199026", "0.56135654", "0.56044644", "0.5604152", "0.5602321", "0.5601961", "0.5594813", "0.5592144", "0.55909693", "0.55894136", "0.5584879", "0.55815685", "0.5578503", "0.5577651", "0.5569316", "0.5557683", "0.5557542", "0.5552887", "0.5551856", "0.55455947", "0.55455637", "0.55434525", "0.554269", "0.55414385", "0.5541031", "0.55359083", "0.55341303", "0.55334646", "0.55332696", "0.55320644", "0.5530537", "0.5530059", "0.5529386", "0.5529212", "0.55266243", "0.5524829", "0.55160135", "0.55114233", "0.55114055", "0.5510311", "0.5503308", "0.550322", "0.5496066", "0.5496066", "0.5496066", "0.549505", "0.54917955", "0.54877126", "0.5486361", "0.54859793", "0.54806685", "0.54780173", "0.54755104", "0.54639405", "0.5457601", "0.54574937", "0.5455482", "0.54548556", "0.5454661", "0.5449154", "0.5444654", "0.5444236", "0.54438496", "0.5443134", "0.5441393", "0.5441393", "0.54389495", "0.5435862", "0.5433664", "0.5426026" ]
0.0
-1
Base Case : If j is source
public void printPath(ArrayList<Integer> parent, int index, Graph graph){ if (parent.get(index)==-1) return; //recurse till we get src printPath(parent, parent.get(index), graph); shortestVerticesToPlot.add(graph.vertices.get(index).point); System.out.print(index + "\t\t"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSource();", "public abstract Object getSource();", "boolean isSource();", "public boolean isSource() {\r\n \t\treturn source;\r\n \t}", "public Object getSource() {return source;}", "public abstract Source getSource();", "public boolean isSource()\n\t{\n\t\treturn isSource;\n\t}", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "protected boolean isSourceElement() {\n\t\treturn false;\n\t}", "boolean hasSource();", "public abstract T getSource();", "public abstract String getSource();", "public boolean isSource() {\n\t\treturn direction.isSource();\n\t}", "Source getSrc();", "java.lang.String getSource();", "java.lang.String getSource();", "Variable getSourceVariable();", "@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}", "public long getSource()\r\n { return src; }", "State getSource();", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "public void setSource(String source) {\n _source = source;\n }", "public void setSource (String source);", "Type getSource();", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public SourceIF source() {\n\t\treturn this.source;\n\t}", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "@Override\n public String getSource()\n {\n return null;\n }", "String getSource();", "public T caseSource(Source object)\n {\n return null;\n }", "public Object getSource() { return this.s; }", "public void setSource(String source);", "NumberVariable getSource();", "@Override\n public String getSource() {\n return this.src;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "@DISPID(-2147417088)\n @PropGet\n int sourceIndex();", "@Override\n public Vertex getSource() {\n return sourceVertex;\n }", "@Override\n\tpublic VType getSource() {\n\t\t// TODO: Add your code here\n\t\treturn super.from;\n\t}", "private String findSource(Request request) {\n String current = \"class\";\n String source = current;\n // check the java execution params for dev or prod values\n RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean();\n List<String> arguments = runtimeMxBean.getInputArguments();\n // it will be run only for the first request\n if (startParameterSource == null) {\n // this condition will met only once per lifecycle\n startParameterSource = \"\";\n for (String arg : arguments) {\n if (arg != null && arg.startsWith(\"-Dtarget.source=\")) {\n startParameterSource = arg.substring(\"-Dtarget.source=\".length());\n break;\n }\n }\n }\n // first level is jvm parameter\n if (startParameterSource != null) {\n current = startParameterSource;\n }\n\n // second is the session\n if (request.getSession().containsKey(\"Dtarget.source\") && request.getSession().get(\"Dtarget.source\") != null) {\n current = String.valueOf(request.getSession().get(\"Dtarget.source\"));\n }\n\n // third is the header\n if (request.getHeader(\"Dtarget.source\") != null) {\n current = request.getHeader(\"Dtarget.source\");\n }\n\n // last is the request\n if (request.get(\"Dtarget.source\") != null) {\n current = request.get(\"Dtarget.source\");\n }\n\n if (\"db\".equalsIgnoreCase(current)) {\n source = \"db\";\n } else if (\"db-update-from-file\".equalsIgnoreCase(current)) {\n source = \"db-update-from-file\";\n } else if (\"file\".equalsIgnoreCase(current)) {\n source = \"file\";\n } else if (\"class\".equalsIgnoreCase(current)) {\n source = \"class\";\n }\n\n // return current execution source\n return source;\n }", "@Test\n\tpublic void sourcesTest() {\n\t\tgraph.addVertex(A);\n\t\tgraph.addVertex(B);\n\t\tgraph.addVertex(C);\n\t\tgraph.addVertex(D);\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_0.addVertices(vertices);\n\t\tgraph.addEdge(edge_0);\n\t\tassertTrue(graph.sources(B).keySet().contains(A));\n\t\tassertTrue(graph.sources(B).get(A) == 1);\n\t}", "java.lang.String getSrc();", "public String getSource ();", "public String getSource(int i)\r\n { return this.history.get(i).source;\r\n }", "@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();", "public int getSource(){\r\n\t\treturn this.source;\r\n\t}", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "public boolean isSetSource() {\n return this.source != null;\n }", "public boolean isSetSource() {\n return this.source != null;\n }", "public Object getSource() {\n\t\treturn source;\n\t}", "public Object getSource() {\n\t\treturn source;\n\t}", "public String get_source() {\n\t\treturn source;\n\t}", "public String getSource();", "@OutVertex\n ActionTrigger getSource();", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public boolean isTriggeringToSource() {\n return getFlow().getSignificanceToSource() == Flow.Significance.Triggers;\n }", "@Override\n public String getName() {\n return source.getName();\n }", "@Override\r\n\tpublic String getSource() {\n\t\treturn null;\r\n\t}", "protected Source getSource() {\r\n return source;\r\n }", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "@Override public Map<L, Integer> sources(L target) {\r\n Map<L, Integer> res= new HashMap <L, Integer>();\r\n \tif(!vertices.contains(target)) {\r\n \t\t//System.out.println(target+\" is not in the graph!\");\r\n \t\treturn res;\r\n \t}\r\n \tIterator<Edge<L>> iter=edges.iterator();\r\n \twhile(iter.hasNext()) {\r\n \t\tEdge<L> tmp=iter.next();\r\n \t\t//if(tmp.getTarget()==target)\r\n \t\tif(tmp.getTarget().equals(target))\r\n \t\t\r\n \t\t\tres.put(tmp.getSource(), tmp.getWeight());\r\n \t\t\r\n \t}\r\n \tcheckRep();\r\n \treturn res;\r\n }", "public State getsourcestate(){\n\t\treturn this.sourcestate;\n\t}", "@Override\n\tpublic Object visitDeclaration_SourceSink(Declaration_SourceSink declaration_SourceSink, Object arg)\n\t\t\tthrows Exception {\n\t\tfv = cw.visitField(ACC_STATIC, declaration_SourceSink.name, \"Ljava/lang/String;\", null, null);\n\t\tfv.visitEnd();\n\t\tif(declaration_SourceSink.source!=null){\n\t\t\tdeclaration_SourceSink.source.visit(this, arg);\n\t\t\tmv.visitFieldInsn(PUTSTATIC, className, declaration_SourceSink.name, \"Ljava/lang/String;\");\n\t\t}\n\t\treturn null;\n\t}", "public Object getSource() {\n return source;\n }", "@Override\r\n public String getSource()\r\n {\n return null;\r\n }", "public int getSource() {\n\t\treturn source;\n\t}", "public Class<?> getSource() {\r\n \t\treturn source;\r\n \t}", "public int getSrc() {\n\t\treturn src;\n\t}", "public boolean isSetSource() {\n return this.Source != null;\n }", "public void setCurrentSource(Object source) {\r\n if (source instanceof IModelNode) {\r\n newSource = (IModelNode) source;\r\n newTarget = null;\r\n }\r\n }", "public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }", "ElementCircuit getSource();", "public void setSource(Byte source) {\r\n this.source = source;\r\n }", "public abstract int getSourceIndex(int index);", "@Override\n public abstract SourcePoint getSourcePoint();", "java.lang.String getAssociatedSource();", "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "Node getSourceNode();", "public boolean isSetSource() {\n\t\treturn this.source != null;\n\t}", "public boolean j() {\n return this.a != null;\n }", "public String getSource() {\r\n return source;\r\n }", "@com.facebook.react.uimanager.annotations.ReactProp(name = \"src\")\n public void setSource(@javax.annotation.Nullable java.lang.String r4) {\n /*\n r3 = this;\n r0 = 0;\n if (r4 == 0) goto L_0x0017;\n L_0x0003:\n r1 = android.net.Uri.parse(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = r1.getScheme();\t Catch:{ Exception -> 0x0025 }\n if (r2 != 0) goto L_0x0023;\n L_0x000d:\n if (r0 != 0) goto L_0x0017;\n L_0x000f:\n r0 = r3.E();\n r0 = m12032a(r0, r4);\n L_0x0017:\n r1 = r3.f11557g;\n if (r0 == r1) goto L_0x001e;\n L_0x001b:\n r3.x();\n L_0x001e:\n r3.f11557g = r0;\n return;\n L_0x0021:\n r1 = move-exception;\n r1 = r0;\n L_0x0023:\n r0 = r1;\n goto L_0x000d;\n L_0x0025:\n r0 = move-exception;\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode.setSource(java.lang.String):void\");\n }", "public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }", "public Element lookupSourceOrOutput()\n {\n for (Element e: Element.values())\n if (e.sourceOf == this || this.sourceOf == e)\n return e;\n\n return null;\n }", "@InVertex\n Object getTarget();", "public String toString()\n\t{return getClass().getName()+\"[source=\"+source+\",id=\"+id+']';}", "public Node source() {\n\t\treturn _source;\n\t}", "protected String getFromSource() {\n return sourceTable;\n }", "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "public boolean isSourceFromTxnDetailApplet() {\n\t return this.isSourceFromTxnDetailApplet;\n }", "public Vertex getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}", "public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}", "public int sourceStart()\n\t{\n\t\treturn sourceStart;\n\t}", "private CanonizeSource() {}", "public T getSource() {\n return source;\n }", "DelegateCaseExecution getSourceExecution();", "@Override public Map<L, Integer> targets(L source) {\r\n \t Map<L, Integer> res= new HashMap <L, Integer>();\r\n \tif(!vertices.contains(source)) {\r\n \t\t//System.out.println(source+\" is not in the graph!\");\r\n \t\treturn res;\r\n \t}\r\n \tIterator<Edge<L>> iter=edges.iterator();\r\n \twhile(iter.hasNext()) {\r\n \t\tEdge<L> tmp=iter.next();\r\n \t\t//if(tmp.getSource()==source)\r\n \t\tif(tmp.getSource().equals(source))\r\n \t\t\tres.put(tmp.getTarget(), tmp.getWeight());\r\n \t\t\r\n \t}\r\n \tcheckRep();\r\n \treturn res;\r\n\r\n }", "public String method_110() {\r\n String[] var10000 = field_5917;\r\n return \"FlatLevelSource\";\r\n }" ]
[ "0.63789636", "0.6377021", "0.6367091", "0.63093334", "0.62024844", "0.6047472", "0.6040028", "0.59872985", "0.59667325", "0.5901832", "0.58871704", "0.58251804", "0.5800742", "0.5782137", "0.5764213", "0.5764213", "0.5759476", "0.57550114", "0.57304907", "0.5727709", "0.5715822", "0.57153386", "0.5670203", "0.56699234", "0.5662793", "0.5660858", "0.56604874", "0.5656528", "0.56530225", "0.5637124", "0.5636405", "0.56276596", "0.5613215", "0.5605776", "0.5603968", "0.55964303", "0.55964303", "0.55719244", "0.5554117", "0.55437386", "0.55301416", "0.5529808", "0.5527988", "0.55033773", "0.5502516", "0.5502246", "0.5501265", "0.5476171", "0.54601604", "0.54601604", "0.54454696", "0.54454696", "0.54428774", "0.54428035", "0.54358864", "0.54092807", "0.540615", "0.5400797", "0.53969413", "0.5394777", "0.53889894", "0.53883296", "0.53752506", "0.53717065", "0.5365907", "0.5359806", "0.53591293", "0.5336884", "0.53355056", "0.53079516", "0.5303682", "0.52897567", "0.52873796", "0.5286772", "0.5281803", "0.5278343", "0.5275251", "0.5260078", "0.52596146", "0.5258812", "0.5254055", "0.525164", "0.52507025", "0.5233329", "0.5231458", "0.52153003", "0.5210957", "0.5207415", "0.51978153", "0.51964086", "0.5192277", "0.5188648", "0.51817274", "0.5178815", "0.51774377", "0.51765215", "0.5164797", "0.51586264", "0.51535046", "0.5146675", "0.51443857" ]
0.0
-1
Constructor for a new game
public Game() throws IOException { //reading the game.txt file try { HeliCopIn = new Scanner(HeliCopFile); String line = ""; while ( HeliCopIn.hasNext() ) { line = HeliCopIn.nextLine(); StringTokenizer GameTokenizer = new StringTokenizer(line); if ( !GameTokenizer.hasMoreTokens() || GameTokenizer.countTokens() != 5 ) { continue; } int XCoord = Integer.parseInt(GameTokenizer.nextToken()); int YCoord = Integer.parseInt(GameTokenizer.nextToken()); int health = Integer.parseInt(GameTokenizer.nextToken()); int NumRocketsStart = Integer.parseInt(GameTokenizer.nextToken()); int NumBulletsStart = Integer.parseInt(GameTokenizer.nextToken()); if (Player.Validate(line) == true) { //creating a new player and initialising the number of bullets; pl = new Player(XCoord,YCoord,health,NumRocketsStart,NumBulletsStart); pl.NumBullets = pl.GetNumBulletsStart(); pl.NumRockets = pl.GetnumRocketsStart(); // System.out.println(XCoord) ; //System.out.println(YCoord) ; //System.out.println(health) ; //System.out.println(NumRocketsStart) ; //System.out.println(NumBulletsStart) ; } } } catch (FileNotFoundException ex) { ex.printStackTrace(); } finally { if ( HeliCopIn != null ) { HeliCopIn.close(); } } //loading the background image and explosion image try { BackGround = ImageIO.read(new File("images\\finalcloud.jpg")); } catch (IOException e) { e.printStackTrace(); } try { Explosion = ImageIO.read(new File("images\\explosion.gif")); } catch (IOException e) { e.printStackTrace(); } try { GameOver = ImageIO.read(new File("images\\gameover.gif")); } catch (IOException e) { e.printStackTrace(); } try { GameWin = ImageIO.read(new File("images\\gamewin.gif")); } catch (IOException e) { e.printStackTrace(); } update(); int del = 2000; // createEnemyHelicopter(); time = new Timer(del , new ActionListener() { @Override public void actionPerformed(ActionEvent e) { createEnemyHelicopter(); } }); time.start(); time = new Timer(delay , new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if (GameOn==true ){ updateEnemies(); UpdateBullets(); UpdateRockets(); pl.Update(); repaint(); } try { WiriteToBinary(); } catch (IOException e1) { e1.printStackTrace(); } } }); time.start(); //WiriteToBinary(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Game() {}", "public Game() {\n\n\t}", "public Game(){\n\n }", "public Game() {\n }", "public PlayableGame() {\r\n\r\n }", "public MiniGame() {\n\n\t}", "public Game() \n {\n parser = new Parser();\n name = new String();\n player = new Player();\n ai = new AI();\n createRooms();\n rand = -1;\n enemyPresent = false;\n wantToQuit = false;\n alive = true;\n createItems();\n createWeapons();\n createEnemy();\n setEnemy();\n setItems();\n setWeapons();\n setExits();\n }", "private Game() {}", "public Game()\n {\n createRooms();\n parser= new Parser();\n }", "public Game() \n {\n createRooms();\n parser = new Parser();\n }", "public Game() \n {\n createRooms();\n parser = new Parser();\n }", "public Game() {\n parser = new Parser();\n }", "public Game(){\n player = new Player(createRooms());\n parser = new Parser(); \n }", "public OrchardGame() {\n\t\t\n\t}", "public GdGame()\n\t{\n\t\tthis(100);\t\t\n\t}", "public Game() \n {\n Logger.setLogger(null);\n createInstances();\n parser = new Parser();\n player = new Player();\n userInputs = new ArrayList<String>();\n }", "public BeanGame () {\n\t}", "public Game() {\n\n GameBoard gameBoard = new GameBoard();\n Renderer renderer = new Renderer(gameBoard);\n }", "public GamePlayer() {}", "public GameState() {}", "public Game() \n {\n parser = new Parser();\n }", "public GameOfLifeTest()\n {\n }", "public playGame()\n {\n // initialise instance variables\n //no constructor\n }", "public Game() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor (int i = 0; i < NBCARDS; i++) {\r\n\t\t\tcards.add(new Card());\r\n\t\t}\r\n\t\tplayers = new ArrayList<Player>();\r\n\t\tfor (int i = 0; i < NBPLAYER; i++) {\r\n\t\t\tplayers.add(new Player(i + 1));\r\n\t\t}\r\n\t}", "public Game createGame();", "public Game() {\n generatePort();\n status = Status.ATTENTE;\n generateGameID();\n name = \"GameG4B\";\n players = new ArrayList<>();\n maxRealPlayer = 0;\n maxVirtualPlayer = 0;\n realPlayerNb = 0;\n virtualPlayerNb = 0;\n rounds = new ArrayList<>();\n currentRound = 0;\n }", "public Game() {\n this.date = LocalDateTime.now();\n }", "public Game() {\n\t\tbPlayer = new Player(false);\n\t\twPlayer = new Player(true);\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Game() { \n super(1000, 640, 1);\n updateScore(0);\n }", "public Game()\n {\n // initialise instance variables\n playerName = \"\";\n gameTotal = 0;\n }", "private GameBoard() {}", "private GameManager() \n\t{\n\t\t\n\t}", "private GameInformation() {\n }", "public Game() {\r\n\r\n\t\tmakeFrame();\r\n\t\tisClicked = false;\r\n\t\tisPlaying = false;\r\n\t\tlevelEasy = true;\r\n\t\tlevelIntermediate = false;\r\n\t\tlevelHard = false;\r\n\t\tplayerScore = 0;\r\n\r\n\t}", "public BoardGame()\n\t{\n\t\tplayerPieces = new LinkedHashMap<String, GamePiece>();\n\t\tplayerLocations = new LinkedHashMap<String, Location>();\n\t\t\n\t}", "public Game()//Method was given\n {\n parser = new Parser();\n player = new Player();\n }", "public GameWorld(){\r\n\t\t\r\n\t}", "public ParkingSquare(Game game) \r\n {\r\n super(game);\r\n }", "public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}", "public Game()\r\n\t{\r\n\t\tenemy = new ArrayList<Enemy>();\r\n\t\tbullets = new ArrayList<Bullet>();\r\n\t\tplatforms = new ArrayList<Platforms>();\r\n\t\tsetAlive(false);\r\n\t\tlevel = 1;\r\n\t\tscore = 0;\r\n\t}", "public void initGame() {\n this.game = new Game();\n }", "public Level3(Game game)\n {\n super(game);\n \n // set game var\n g = game;\n \n // set world\n world = game.getWorld();\n //set player\n player = game.getPlayer();\n // set default enemy exists state\n enemyExist = true;\n // set frame\n frame = g.getFrame();\n\n }", "public Game() {\n initializeBoard();\n }", "public Game() {\n\t\tusers = new ArrayList<>();\n\t\ttmpTeam = new UserTeam();\n\t\tcore = new Core();\n\t\tmarket = new Market(core);\n\t}", "void newGame() {\n logger.log(\"New game starting.\");\n logger.log(divider);\n\n\n // Create the deck.\n createDeck();\n logger.log(\"Deck loaded: \" + deck.toString());\n\t logger.log(divider);\n\n\n // Shuffle the deck.\n shuffleDeck();\n logger.log(\"Deck shuffled: \" + deck.toString());\n logger.log(divider);\n\n // Create the players.\n createPlayers();\n setGameState(GameState.PLAYERS_SPAWNED);\n\n // Deal cards to players' decks.\n deal();\n for (Player player : players) {\n logger.log(\"Hand: \" + player);\n }\n \n\n // Randomly select the active player for the first round.\n selectRandomPlayer();\n\n setGameState(GameState.NEW_GAME_INITIALISED);\n }", "public Game()\r\n { \r\n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\r\n super(800, 600, 1);\r\n \r\n // add grill obj on left\r\n grill = new Grill();\r\n addObject(grill, 200, 400);\r\n \r\n // add table on right\r\n prepTable = new PrepTable();\r\n addObject(prepTable, 600, 400);\r\n \r\n // add all the table buttons\r\n addTableButtons();\r\n \r\n // add timer text\r\n timerText = new Text(\"2:00\");\r\n addObject(timerText, 60, 30);\r\n \r\n // setup the timer\r\n frameRate = 60;\r\n timeLeft = frameRate * 2;\r\n \r\n // setup the points\r\n score = 0;\r\n scoreText = new Text(\"$0\");\r\n addObject(scoreText, 50, 80);\r\n \r\n // setup orders\r\n orders = new ArrayList<Order>();\r\n orderTimer = frameRate * 4; // start with a 4 sec delay before the first order\r\n \r\n // the game is still updating\r\n stillRunning = true;\r\n \r\n // fix layering order\r\n setPaintOrder(Text.class, Topping.class, Button.class, Patty.class, Order.class);\r\n \r\n // set order variance\r\n orderVariance = 2 * frameRate;\r\n \r\n // init seconds counter\r\n totalSecondsElapsed = 0;\r\n }", "public WarGame() {\r\n\t\tsetGame();\r\n\t}", "public Game() {\n board = new FourBoard();\n }", "public Player(Game game){\r\n this.game = game;\r\n }", "public Game(Game game) {\n this.players = game.players.stream()\n .map(Player::new)\n .collect(Collectors.toCollection(LinkedList::new));\n this.playerStack = new ActionStack(game.playerStack, this);\n this.gameStack = new ActionStack(game.gameStack, this);\n// this.phase =\n }", "public void createGame();", "public Menu(Game game) {\n this.game = game;\n }", "public Game() {\n String configPath= String.valueOf(getClass().getResource(\"/config/conf.xml\"));\n\n listeners= new ArrayList<>();\n assembler= new Assembler(configPath);\n levelApple= (ILevel) assembler.newInstance(\"levelApple\");\n levelRarity= (ILevel) assembler.newInstance(\"levelRarity\");\n levelRainbow= (ILevel) assembler.newInstance(\"levelRainbow\");\n levelRunning= levelApple;\n levelApple.selected();\n levelFlutter= null;\n levelPinky= null;\n jukebox = (Jukebox) assembler.newInstance(\"jukebox\");\n jukebox.switchTo(\"apple\");\n event = new LevelChangeEvent();\n event.setNumberOfLevel(6);\n setEventSelected(true, false, false);\n setEventRunning(true, true, true);\n }", "public Game() {\n initComponents();\n }", "public BlackJackGame()\r\n\t{\r\n\t\tplayer1 = new Player();\r\n\t\tdealer = new Player();\r\n\t\tcardDeck = new Deck();\r\n\t\tendGame = false;\r\n\t}", "public Game() {\n gameRounds = 0;\n players.add(mHuman);\n players.add(mComputer);\n }", "public BattleShipGame(){\n ui = new UserInterface();\n played = false;\n highestScore = 0;\n }", "public void newGame() {\n\n //reset game board before initializing newgame\n clearGame();\n \n whiteplayer = new Player(\"white\", chessboard, this);\n blackplayer = new Player(\"black\", chessboard, this);\n colorsTurn = \"white\";\n gamelog.logCurrentTurn(colorsTurn);\n\n }", "public void newGame();", "public void newGame();", "public void newGame();", "public AbstractGameState() {\n\t\tsuper();\n\t}", "public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1, false); \n Greenfoot.start(); //Autostart the game\n Greenfoot.setSpeed(50); // Set the speed to 30%\n setBackground(bgImage);// Set the background image\n \n //Create instance\n \n Airplane gameplayer = new Airplane ();\n addObject (gameplayer, 100, getHeight()/2);\n \n }", "public Game(){\n\t\tDimension dimension = new Dimension(Game.WIDTH, Game.HEIGHT); //Create dimensions for window size\n\t\tsetPreferredSize(dimension); //Set the start size\n\t\tsetMinimumSize(dimension); //Set the min size\n\t\tsetMaximumSize(dimension); //Set the max size, this locks the window size.\n\t\taddKeyListener(this); //Add the key listener to the game object\n\t\tlevel1(); //Load level 1\n\t\twinScreen = new WinScreen(); //Create win object\n\t\tdeadScreen = new DeadScreen(); //Create dead object\n\t\tstartScreen = new StartScreen(); //Create startScreen object\n\t\tpauseScreen = new PauseScreen(); //Create pauseScreen object\n\t\tspriteSheet = new SpriteSheet(\"img/sprites.png\"); //Create SpriteSheet object\n\t\tnew Texture(); //Initialize texture object\n\t}", "public Game() \n {\n gameLoaded = false;\n }", "public HowToPlay()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(763, 578, 1); \n //HowToPlay play = new HowToPlay();\n }", "public void InitGame(){\n System.out.format(\"New game initiated ...\");\n Game game = new Game(client_List);\n SetGame(game);\n }", "Game() {\n _randomSource = new Random();\n\n _players = new Player[2];\n _input = new BufferedReader(new InputStreamReader(System.in));\n _players[0] = new HumanPlayer(BP, this);\n _players[1] = new MachinePlayer(WP, this);\n _playing = false;\n }", "public GameOfLifeGameActivity() {\n\t\tsuper(new GameOfLifeModel(), new GameOfLifeController(), new GameOfLifeView());\n\t\tsetKeyResources(R.layout.game, R.id.game_surface);\n\t}", "public Game() {\n playerBlack = new Player(Player.BLACK);\n playerBlack.setIsTurn(true);\n playerWhite = new Player(Player.WHITE);\n playerWhite.setIsTurn(false);\n boardObject = new Board();\n\n // Set invalid parameters to start. This is used in move verification.\n potentialSuccessiveSlot = new Slot(Board.MAX_ROW, Board.MAX_COLUMN, 2);\n slotFrom = boardObject.getSlot(-1, -1);\n slotTo = boardObject.getSlot(-1, -1);\n\n // First click is always true in the starting game state.\n firstClick = true;\n\n successiveMove = false;\n turnColor = Slot.BLACK;\n\n rootValues = new ArrayList<>();\n plyCutoff = 0;\n minimaxMove = null;\n firstClickCompMove = true;\n alphaBetaEnable = false;\n }", "void startGame(int gameId) {\n game = new Game(gameId);\n }", "public CardGameFramework()\n {\n this(1, 0, 0, null, 4, 13);\n }", "public Game(String customMapName) {\n genericWorldMap = new GenericWorldMap(customMapName);\n players = new LinkedList<Player>();\n dice = new Dice();\n observers = new LinkedList<>();\n gameState = GameState.MESSAGE;\n }", "public CardGame(){\n this.handOne = new Hand();\n this.handTwo = new Hand();\n this.gameDeck = new Deck();\n this.playerScore = 0;\n this.oppoScore = 0;\n }", "public MemoryGame() {\n infoCard = new Dialogue(\"Memory! As a cashier, you must be able to remember customers' orders. Click cards to flip over and match pairs. Good luck!\", \"Coworker\");\n drawing = new MemoryGameDrawing();\n Utility.changeDrawing(drawing);\n bgm = new BGM(\"memory\");\n bgm.play();\n }", "public void newGameJBJ() {\n newGame();\n min = 0; max = 1000;\n myctr.setMinMaxLabel();\n myctr.setLabels();\n }", "public Game() {\n super(\"Project 6 Game\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n gamePanel = new GamePanel();\n setContentPane(gamePanel);\n pack();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "public Game()\r\n\t{\r\n\t\tthis.players = new Player[Config.PlayerLimit];\r\n\t\tthis.resetGame();\r\n\t}", "public Game() {\t\t\t\t\t\n\t\t\n\t\tmDeck = new Deck();\t\t\t\t\t\t\t\t\t\t\t\n\t\tmDealer = new Dealer(mDeck.getCard(), mDeck.getCard());\t//dealer gets a random value card twice to initialise the dealers hand with 2 cards\n\t\tmUser = new User();\t\t\t\t\t\t\t\t\t\t\t\n\t\tgiveCard();\t\t\t\t\t\n\t}", "@Override\n public void newGame() {\n //TODO Implement this method\n }", "public Game(String gamename)\n\t{\n\t\tsuper(gamename);\n\t\tthis.addState(new Menu(menu));\n\t\tthis.addState(new Play(play));\n\t\tthis.addState(new Credits(credits));\n\t\tthis.addState(new Pause(pause));\n\t}", "public MainMenu(Game game) {\r\n\t\tsuper(game);\r\n\t}", "public Game() {\n\t\tthis.board = new Board();\n\t\tthis.pieces = new HashMap<Chess.Color, List<Piece>>();\n\t\tthis.pieces.put(Chess.Color.WHITE, new ArrayList<Piece>());\n\t\tthis.pieces.put(Chess.Color.BLACK, new ArrayList<Piece>());\n\t\tthis.moveStack = new Stack<Move>();\n\t}", "public void newGame() {\r\n\r\n gameObjects.newGame();\r\n\r\n // Reset the mScore\r\n playState.mScore = 0;\r\n\r\n // Setup mNextFrameTime so an update can triggered\r\n mNextFrameTime = System.currentTimeMillis();\r\n }", "public Game(Boolean newGame) throws IOException, InterruptedException {\n if (newGame)\n\n { market = new Market();\n reserve = new Reserve();\n\n productionCardDecks = new ArrayList<>();\n\n deckProductionCardOneBlu = new DeckProductionCardOneBlu();\n deckProductionCardTwoBlu = new DeckProductionCardTwoBlu();\n deckProductionCardThreeBlu = new DeckProductionCardThreeBlu();\n\n deckProductionCardOneGreen = new DeckProductionCardOneGreen();\n deckProductionCardTwoGreen = new DeckProductionCardTwoGreen();\n deckProductionCardThreeGreen = new DeckProductionCardThreeGreen();\n\n deckProductionCardOneViolet = new DeckProductionCardOneViolet();\n deckProductionCardTwoViolet = new DeckProductionCardTwoViolet();\n deckProductionCardThreeViolet = new DeckProductionCardThreeViolet();\n\n deckProductionCardOneYellow = new DeckProductionCardOneYellow();\n deckProductionCardTwoYellow = new DeckProductionCardTwoYellow();\n deckProductionCardThreeYellow = new DeckProductionCardThreeYellow();\n\n\n productionCardDecks.add(deckProductionCardOneBlu);\n productionCardDecks.add(deckProductionCardTwoBlu);\n productionCardDecks.add(deckProductionCardThreeBlu);\n productionCardDecks.add(deckProductionCardOneGreen);\n productionCardDecks.add(deckProductionCardTwoGreen);\n productionCardDecks.add(deckProductionCardThreeGreen);\n productionCardDecks.add(deckProductionCardOneViolet);\n productionCardDecks.add(deckProductionCardTwoViolet);\n productionCardDecks.add(deckProductionCardThreeViolet);\n productionCardDecks.add(deckProductionCardOneYellow);\n productionCardDecks.add(deckProductionCardTwoYellow);\n productionCardDecks.add(deckProductionCardThreeYellow);\n\n deckLeaderCard= new DeckLeaderCard();}\n else {\n restoreGame();\n }\n this.isOver=false;\n\n }", "void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}", "public GameSession()\r\n {\r\n red = new Player(\"Red\");\r\n blue = new Player(\"Blue\");\r\n \r\n gameBoard = new Board();\r\n \r\n redRounds = 0;\r\n blueRounds = 0;\r\n \r\n currentRedScore = 0;\r\n currentBlueScore = 0;\r\n \r\n matchEnd = false;\r\n roundEnd = false;\r\n \r\n redWin = false;\r\n blueWin = false;\r\n \r\n move[0] = -1;\r\n move[1] = -1;\r\n \r\n line[0] = -1;\r\n line[1] = -1;\r\n }", "public States(Gameengine game) {\r\n\t\tthis.game = game;\r\n\t}", "public void newGame(){\n\t\tsoundMan.BackgroundMusic1();\n\n\t\tstatus.setGameStarting(true);\n\n\t\t// init game variables\n\t\tbullets = new ArrayList<Bullet>();\n\n\t\tstatus.setShipsLeft(8);\n\t\tstatus.setGameOver(false);\n\n\t\tif (!status.getNewLevel()) {\n\t\t\tstatus.setAsteroidsDestroyed(0);\n\t\t}\n\n\t\tstatus.setNewAsteroid(false);\n\n\t\t// init the ship and the asteroid\n\t\tnewShip(gameScreen);\n\t\tnewAsteroid(gameScreen);\n\n\t\t// prepare game screen\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic2();\n\t\tsoundMan.StopMusic3();\n\t\tsoundMan.StopMusic4();\n\t\tsoundMan.StopMusic5();\n\t\tsoundMan.StopMusic6();\n\t\t// delay to display \"Get Ready\" message for 1.5 seconds\n\t\tTimer timer = new Timer(1500, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameStarting(false);\n\t\t\t\tstatus.setGameStarted(true);\t\n\n\t\t\t\tstatus.setLevel(1);\n\t\t\t\tstatus.setNumLevel(1);\n\t\t\t\tstatus.setScore(0);\n\t\t\t\tstatus.setYouWin(false);\n\t\t\t\tstatus.setBossLife(0);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}", "public CardGameFramework() {\n this(1, 0, 0, null, 4, 13);\n }", "public Game() {\n\t\tsuper();\n\t\tgameModel = new GameModel();\n\t\tview = new GamePane(gameModel);\n\t\t\n\t\tadd(view);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}", "public Game() {\n board = new TileState[BOARD_SIZE][BOARD_SIZE];\n for(int i=0; i<BOARD_SIZE; i++)\n for(int j=0; j<BOARD_SIZE; j++)\n board[i][j] = TileState.BLANK;\n movesPlayed = 0;\n playerOneTurn = true;\n gameOver = false;\n }", "private GameController() {\n\n }", "public PlayStation4Game() \n\t{\n\t\t// TODO Auto-generated constructor stub\n\t\tsuper();\n\t\tgameTrophies = new ArrayList<PlayStationTrophy>();\n\t}", "public Game() {\n //Create the deck of cards\n cards = new Card[52 * numDecks];\n cards = initialize(cards, numDecks);\n cards = shuffleDeck(cards, numDecks);\n }", "public GameCursor() {\n }", "public GameStart() {\n\t\tsuper(\"First 2D Game\");\n\t}", "public Game(String id){\n this.id = id;\n players = new ArrayList<>();\n }", "public Game(int choose) {\n\t\tthis.board = new Grid();\n\t\tthis.sp = 200;\n\t\tthis.spawnZombie(choose);\n\t}", "public Game(){\n\t\tDimension size = new Dimension(width * scale, height * scale);\n\t\tsetPreferredSize(size);\n\t\t\n\t\tscreen = new Screen(width, height);//instantiated the new screen\n\t\t\n\t\tframe = new JFrame();\n\t\t\n\t}", "public Game() {\n Random rand = new Random();\n for (int i = 0; i < NB_ELEMENTS_PLATEAU; i++) {\n Case current_case;\n int entity = rand.nextInt(10);\n switch (entity) {\n case 0:\n current_case = new Dragon();\n break;\n case 1:\n current_case = new Gobelin();\n break;\n case 2:\n current_case = new Sorcier();\n break;\n case 3:\n current_case = new Eclair();\n break;\n case 4:\n current_case = new Epee();\n break;\n case 5:\n current_case = new GrandePotion();\n break;\n case 6:\n current_case = new Massue();\n break;\n case 7:\n current_case = new StandardPotion();\n break;\n case 8:\n current_case = new BouleDeFeu();\n break;\n default:\n current_case = null;\n }\n\n plateau.add(current_case);\n }\n\n System.out.println(\"\\u001B[35mPlateau géréné aléatoirement:\");\n for (int i = 0; i < NB_ELEMENTS_PLATEAU; i++) {\n System.out.println(\"| \" + (i + 1) + \" | \" + plateau.get(i) + \" |\");\n }\n }" ]
[ "0.84696484", "0.83490264", "0.82617754", "0.8258332", "0.8125296", "0.8101999", "0.8012881", "0.8009615", "0.7991374", "0.79402465", "0.79402465", "0.78777814", "0.78719884", "0.7819811", "0.77922565", "0.7735778", "0.7726124", "0.76811224", "0.7629969", "0.7628352", "0.7587057", "0.75617945", "0.7559372", "0.7554863", "0.7552235", "0.75392157", "0.7534381", "0.74957234", "0.7489527", "0.7437635", "0.73649997", "0.7359527", "0.73536056", "0.7342859", "0.73364717", "0.7330271", "0.7327381", "0.7318914", "0.7310387", "0.72996885", "0.72636646", "0.7249265", "0.72438675", "0.72405094", "0.7214907", "0.7207911", "0.72067714", "0.7203598", "0.7168163", "0.71663916", "0.71566385", "0.7131488", "0.71281326", "0.7118075", "0.71119666", "0.71019393", "0.7085654", "0.7080125", "0.7079899", "0.7079899", "0.7079899", "0.70705396", "0.7057498", "0.70556355", "0.7043319", "0.7029729", "0.7023709", "0.7020723", "0.7019235", "0.7009676", "0.70090866", "0.70062494", "0.69988763", "0.6979546", "0.697723", "0.6971697", "0.69587636", "0.6954943", "0.69527924", "0.69509304", "0.69355524", "0.6932506", "0.69213456", "0.6919648", "0.69142145", "0.6912459", "0.6909891", "0.6909703", "0.6906063", "0.69050753", "0.6899249", "0.6894411", "0.6891864", "0.68834645", "0.68826485", "0.68780154", "0.6877533", "0.6874605", "0.6871976", "0.6869898", "0.6859742" ]
0.0
-1
function the update the game as well as the game characters
public void update(){ //Key listener for keyboard input addKeyListener(new KeyAdapter(){ @Override public void keyPressed(KeyEvent e) { // Moving on the x axis. if((e.getKeyCode() == KeyEvent.VK_D) || e.getKeyCode() == (KeyEvent.VK_RIGHT)) pl.moveXspeed += pl.accelXspeed; else if(e.getKeyCode() == (KeyEvent.VK_A) || e.getKeyCode() == (KeyEvent.VK_LEFT)) pl.moveXspeed -= pl.accelXspeed; // Moving on the y axis. if(e.getKeyCode() == (KeyEvent.VK_W) || e.getKeyCode() == (KeyEvent.VK_UP)) pl.moveYspeed -= pl.accelYspeed; else if(e.getKeyCode() == (KeyEvent.VK_S) || e.getKeyCode() == (KeyEvent.VK_DOWN)) pl.moveYspeed += pl.accelYspeed; else { } if (GameOn == true){ } else if (GameOn == false ) { repaint(); Data = " Number of rockets remaining: " + pl.NumRockets + "Number of bullets remaining: " +pl.NumBullets + " Remaining health: " +pl.Health +" Number of runway enemies: " + RunAwayEnemies + " Number of destroyed enemies: " +DestroyedEnemies; Email = new EmailGUI(Data); } /* else if (WinsState == true ) { repaint(); //*******************stoip game here and send email with game details Data = " Number of rockets remaining: " + pl.NumRockets +"," + " Number of bullets remaining: " +pl.NumBullets+"," + " Remaining health: " +pl.Health+"," + " Number of destroyed enemies: " +DestroyedEnemies+"," +" Number of runway enemies: " + RunAwayEnemies; Email = new EmailGUI(Data); }*/ } }); //mouse listener for mouse input addMouseListener(new MouseListener() { @Override public void mouseClicked(MouseEvent e) { //actions performed when mouse button 1 is pressed if (e.getButton() == MouseEvent.BUTTON1) { if (pl.NumBullets > 0) { //creates shoot and adds the to the list pl.Shoot(); BulletFired = true; bul = new Bullet(pl.GetXCoord() + 240,pl.GetYCoord() + 70); BulletList.add(bul); } else if (pl.NumBullets <= 0) { GameOn = false; } } //actions performed when mouse button 2 is pressed if (e.getButton() == MouseEvent.BUTTON3) { if (pl.NumRockets > 0) { //creates rockets and adds the to the list pl.FireRocket(); RocketFired = true; rock = new Rocket(pl.GetXCoord() + 200,pl.GetYCoord() + 60); RocketList.add(rock); } } } @Override public void mousePressed(MouseEvent e) { } @Override public void mouseReleased(MouseEvent e) { } @Override public void mouseEntered(MouseEvent e) { } @Override public void mouseExited(MouseEvent e) { } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "public void gameupdate(){\n game.update();\r\n panel.formUpdate(game.lives);\r\n }", "@Override\n public void update(Input input) {\n // Logic to update the game, as per specification must go here\n\n if (this.endOfGame || input.wasPressed(Keys.ESCAPE)) {\n Window.close();\n } else {\n // draw background\n BACKGROUND.drawFromTopLeft(0, 0);\n // update the frame\n if (tick > TICK_CYCLE) {\n tick = 1;\n // update player's state\n this.player.update(this);\n }\n\n tick++;\n\n // draw all the characters\n player.draw();\n treasure.draw();\n for (Point pos: zombies.keySet()) {\n Zombie zombie = zombies.get(pos);\n zombie.draw();\n }\n for (Point pos: sandwiches.keySet()) {\n Sandwich sandwich = sandwiches.get(pos);\n sandwich.draw();\n }\n if (player.getShot()) {\n player.getBullet().draw();\n }\n }\n\n\n }", "public void update()\n {\n done = false;\n if(data.size()==0)\n {\n data.add('0');\n data.add('0');\n data.add('0');\n data.add('0');\n data.add('0');\n }\n\n boolean isPressed = shot;\n\n keyUP = data.get(0) == '1';\n keyDOWN = data.get(1) == '1';\n keyLEFT = data.get(2) == '1';\n keyRIGHT = data.get(3) == '1';\n shot = data.get(4) == '1';\n\n if(!shot && isPressed)\n {\n if (canShot)\n {\n status.setShot(true);\n if (getBulletType ().equals (\"Laser\"))\n {\n bullets.add (new LaserBulletMulti (getCanonStartX (), getCanonStartY (),\n getDegree (), System.currentTimeMillis (), walls, tanks,canonPower,this.code,kills));\n setBulletType (\"Normal\");\n } else\n {\n bullets.add (new BulletMulti (getCanonStartX (), getCanonStartY (),\n getDegree (), System.currentTimeMillis (), walls, tanks,canonPower,this.code,kills));\n }\n\n canShot = false;\n shot = true;\n new Thread (new Runnable () {\n @Override\n public void run () {\n try {\n Thread.sleep (100);\n shot = false;\n } catch (InterruptedException e) {\n e.printStackTrace ();\n }\n }\n }).start ();\n new Thread (new Runnable () {\n @Override\n public void run () {\n try {\n Thread.sleep (500);\n canShot = true;\n } catch (InterruptedException e) {\n e.printStackTrace ();\n }\n }\n }).start ();\n }\n }\n\n int forX = (int) (6 * Math.cos (Math.toRadians (this.getDegree ())));\n int forY = (int) (6 * Math.sin (Math.toRadians (this.getDegree ())));\n\n if(keyUP && canMove(forX , forY) && isEmpty(forX,forY,1))\n {\n this.addLocX(forX);\n this.addLocY(forY);\n }\n if(keyDOWN && canMove(-1*forX , -1*forY) && isEmpty(forX,forY,-1))\n {\n this.addLocX(-1*forX);\n this.addLocY(-1*forY);\n }\n\n checkPrize();\n\n if(keyRIGHT && !keyLEFT)\n this.increaseDegree();\n\n if(!keyRIGHT && keyLEFT)\n this.decreaseDegree();\n\n\n this.setLocX(Math.max(this.getLocX(), 0));\n this.setLocX(Math.min(this.getLocX(), GameFrameMulti.GAME_WIDTH - 30));\n this.setLocY(Math.max(this.getLocY(), 0));\n this.setLocY(Math.min(this.getLocY(), GameFrameMulti.GAME_HEIGHT - 30));\n done = true;\n }", "@Override\n\tpublic void update(Game game) {\n\t\t\n\t}", "@Override\n public void update(ArrayList<String> pressedKeys) {\n\n\n super.update(pressedKeys);\n// if(!backgroundMusic.play && x==0){\n// x=1;\n// backgroundMusic.playMusic(\"resources/oceanOperator.mp3\");\n// }\n\n if (state == STATE.MENU) {\n\n }\n\n //moveGameY(1);\n\n else if (state == STATE.GAME) {\n if (player != null && !player.isDead) {\n player.update(pressedKeys);\n }\n if (player.getLifeCount() <= 0) {\n complete = true;\n player.isDead = true;\n }\n\n\n if (transitionYCurrent < transitionY) {\n moveGameY(transitionYSpeed);\n transitionYCurrent += transitionYSpeed;\n }\n\n if(complete && !player.isDead){\n System.out.println(\"you won!\");\n state = STATE.COMPLETE;\n\n\n }\n\n if (player != null && !player.isDead) {\n// for (int i = 0; i < enemies.size(); i++) {\n// if (player.playerCollidesWith(enemies.get(i)) && enemies.get(i).dead == false && player.canGetHurt()) {\n// damageThePlayer();\n// }\n// }\n\n for (int i = 0; i < currentRoom.getSpikeList().size(); i++) {\n SpikeTile spikes = currentRoom.getSpikeList().get(i);\n if (player.feetCollideWith(spikes) && spikes.getStateName() == \"idle up\" && player.canGetHurt()) {\n damageThePlayer();\n }\n }\n\n\n if (player.playerCollidesWith(coin)) {\n coin.handleEvent(collidedEvent);\n myQuestManager.handleEvent(PickedUpEvent);\n }\n player.update();\n checkCollisions(player);\n\n\n for (int i = 0; i < player.playerBullets.size(); i++) {\n Bullet bul = player.playerBullets.get(i);\n bul.update(pressedKeys);\n if (bul.getShotTimer() >= bul.getShotCap()) {\n\n player.playerBullets.remove(i);\n }\n }\n\n TweenJuggler.getInstance().nextFrame();\n\n boolean pickpocketTrigger = false;\n for (int i = 0; i < enemies.size(); i++) {\n\n Enemy enemy = enemies.get(i);\n if (player.getHitBox().intersects(enemy.getPickpocketRect())) {\n pickpocketTrigger = true;\n pickpocketEnemy = enemy;\n }\n\n }\n pickpocket = pickpocketTrigger;\n if (!pickpocket)\n pickpocketEnemy = null;\n }\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_W))) {\n for (int i = 0; i < currentRoom.getDoors().size(); i++) {\n if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_open\" && transitionPhase == false) {\n transitionPhase = true;\n currentRoom.fadeOut();\n queuedRoom = currentRoom.getDoors().get(i).getNextRoom();\n queuedRoom.fadeIn();\n transitionYCurrent = 0;\n enemies = new ArrayList<>();\n pressedKeys.remove(KeyEvent.getKeyText(KeyEvent.VK_W));\n }\n }\n\n }\n\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_E))) {\n if (pickpocket == true && pickpocketEnemy != null) {\n keyCount += pickpocketEnemy.pickpocketKeys();\n int knives = pickpocketEnemy.pickpocketKnives();\n knifeCount += knives;\n System.out.println(knives);\n// int n = rand.nextInt(3) + 1;\n// if (n == 1) {\n//\n// itemString = \"You found a knife!\";\n// } else if (n == 2) {\n// keyCount++;\n// itemString = \"You found a key!\";\n//\n// } else if (n == 3) {\n// itemString = \"No items found.\";\n// }\n }\n\n\n for (int i = 0; i < currentRoom.getDoors().size(); i++) {\n\n if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_closed\") {\n if (keyCount > 0) {\n soundEffects.playSoundEffect(\"resources/chains.wav\",0);\n currentRoom.getDoors().get(i).setAnimationState(\"door_opening\", \"door_open\");\n itemString = \"Door unlocked\";\n keyCount--;\n } else {\n soundEffects.playMusic(\"resources/door_locked.wav\");\n }\n } else if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_open\" && transitionPhase == false) {\n transitionPhase = true;\n currentRoom.fadeOut();\n queuedRoom = currentRoom.getDoors().get(i).getNextRoom();\n queuedRoom.fadeIn();\n transitionYCurrent = 0;\n enemies = new ArrayList<>();\n }\n }\n\n for (int i = 0; i < currentRoom.getChests().size(); i++) {\n TreasureChest chest = currentRoom.getChests().get(i);\n if (player.feetCollideWith(chest) && chest.getStateName() == \"closed\") {\n chest.setAnimationState(\"open\", \"\");\n if (chest.getItem().equals(\"key\")) {\n keyCount++;\n } else if (chest.getItem().equals(\"knife\")) {\n knifeCount++;\n }\n }\n }\n\n\n pressedKeys.remove(KeyEvent.getKeyText(KeyEvent.VK_E));\n }\n\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_P))) {\n if (complete == true) {\n removeAll();\n complete = false;\n currentLevel = 0;\n\n\n tutorial = new TutorialLevel1(\"Tutorial\");\n tutorial.run();\n addChild(tutorial);\n\n\n myLevel = new Level0(\"Room1\");\n myLevel.run();\n addChild(myLevel);\n\n\n myLevel1 = new Level1(\"Room2\");\n myLevel1.run();\n myLevel1.hide();\n addChild(myLevel1);\n\n myLevel2 = new ahmedslevel(\"Room3\", player);\n myLevel2.run();\n myLevel2.hide();\n addChild(myLevel2);\n\n myLevel3 = new BrighamLevel(\"Room4\");\n myLevel3.run();\n myLevel3.hide();\n addChild(myLevel3);\n\n level4 = new AlternatingSpikesLevel(\"Room6\");\n level4.run();\n level4.hide();\n addChild(level4);\n\n\n bossLevel = new BossLevel(\"Room5\", player);\n bossLevel.run();\n bossLevel.hide();\n addChild(bossLevel);\n\n\n tutorial.mapDoorToRoom(0,myLevel);\n myLevel.mapDoorToRoom(0, myLevel1);\n myLevel1.mapDoorToRoom(0, myLevel2);\n myLevel2.mapDoorToRoom(0, myLevel3);\n myLevel3.mapDoorToRoom(0, level4);\n level4.mapDoorToRoom(0, bossLevel);\n currentRoom = tutorial;\n\n enemies = currentRoom.enemies;\n\n player.isDead = false;\n player.setLifeCount(3);\n player.setPositionX(550);\n player.setPositionY(700);\n knifeCount = 4;\n keyCount = 0;\n backgroundMusic.stop();\n backgroundMusic.playSoundEffect(\"resources/oceanOperator.wav\", 100);\n } else {\n state = STATE.PAUSE;\n\n }\n }\n for (int i = 0; i < enemies.size(); i++) {\n Enemy currentEnemy = enemies.get(i);\n currentEnemy.update();\n if (!currentEnemy.dead) {\n if (currentEnemy.enemyBullet != null) {\n currentEnemy.enemyBullet.update(pressedKeys);\n if (currentEnemy.enemyBullet.getShotTimer() >= currentEnemy.enemyBullet.getShotCap()) {\n currentEnemy.enemyBullet = null;\n }\n }\n if (currentEnemy.isInView(player, currentRoom.coverList)) {\n// System.out.println(currentRoom.coverList.get(0));\n if (complete == false) {\n if (currentEnemy.enemyBullet == null) {\n currentEnemy.enemyBullet = new Bullet(\"bullet\", \"knife.png\", 0.4);\n currentEnemy.enemyBullet.setStart(currentEnemy.getPositionX() + currentEnemy.getUnscaledWidth() / 2, currentEnemy.getPositionY() + currentEnemy.getUnscaledHeight() / 2);\n currentEnemy.enemyBullet.setEnd(player.getPositionX(), player.getPositionY());\n TweenTransitions enemyBulletPath = new TweenTransitions(\"linearTransition\");\n Tween enemyBulletmovement = new Tween(currentEnemy.enemyBullet, enemyBulletPath);\n enemyBulletmovement.animate(TweenableParams.X, currentEnemy.enemyBullet.startValX, currentEnemy.enemyBullet.endValX, 0.4);\n enemyBulletmovement.animate(TweenableParams.Y, currentEnemy.enemyBullet.startValY, currentEnemy.enemyBullet.endValY, 0.4);\n TweenJuggler.getInstance().add(enemyBulletmovement);\n currentEnemy.handleEvent(throwKnife);\n }\n }\n if (currentEnemy.enemyBullet != null) {\n// System.out.println(currentEnemy.enemyBullet.getShotTimer());\n if (currentEnemy.enemyBullet.collidesWith(player) && player.canGetHurt()) {\n damageThePlayer();\n currentEnemy.enemyBullet = null;\n break;\n }\n for (int j = 0; j < currentRoom.collisionArray.size(); j++) {\n if (currentEnemy.enemyBullet.collidesWith(currentRoom.collisionArray.get(j))) {\n currentEnemy.enemyBullet = null;\n break;\n }\n }\n\n }\n }\n\n\n for (int j = 0; j < player.playerBullets.size(); j++) {\n Bullet bul = player.playerBullets.get(j);\n// for (int k = 0; k < currentRoom.collisionArray.size(); k++) {\n// if (bul.collidesWith(currentRoom.collisionArray.get(k))) {\n// player.playerBullets.remove(j);\n// break;\n// }\n// }\n if (bul != null) {\n if (bul.collidesWith(enemies.get(i))) {\n enemies.get(i).dead = true;\n enemies.get(i).enemyBullet = null;\n if (enemies.get(i).getStateName().contains(\"right\")) {\n enemies.get(i).setDelay(90);\n enemies.get(i).setAnimationState(\"dying right\", \"dead right\");\n } else {\n enemies.get(i).setDelay(90);\n enemies.get(i).setAnimationState(\"dying left\", \"dead left\");\n }\n if (player.playerBullets.size() > j)\n player.playerBullets.remove(j);\n }\n\n }\n }\n }\n }\n\n for (int j = 0; j < player.playerBullets.size(); j++) {\n Bullet bul = player.playerBullets.get(j);\n for (int k = 0; k < currentRoom.collisionArray.size(); k++) {\n if (bul.collidesWith(currentRoom.collisionArray.get(k))) {\n player.playerBullets.remove(j);\n break;\n }\n }\n }\n\n currentRoom.update();\n\n if (queuedRoom != null) {\n queuedRoom.update();\n\n if (queuedRoom.getDoneFading() && currentRoom.getDoneFading()) {\n\n queuedRoom.setDoneFading(false);\n currentRoom.setDoneFading(false);\n if(queuedRoom == bossLevel){\n backgroundMusic.stop();\n bossLevel.intro();\n }\n currentRoom = queuedRoom;\n enemies = currentRoom.enemies;\n queuedRoom = null;\n transitionPhase = false;\n currentQuestObjective = 0;\n }\n }\n }\n if (keyCount > 0){\n currentQuestObjective = 1;\n }\n else if(currentRoom == bossLevel){\n currentQuestObjective = 2;\n }\n\n if(bossLevel != null) {\n if (bossLevel.endgame == true) {\n state = STATE.COMPLETE;\n System.out.println(\"you won!\");\n quitButton.setPositionX(300);\n\n }\n }\n }", "public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}", "public void gameUpdate() {\n\t\t\n\t\t// Remember our homeTilePosition at the first frame\n\t\tif (bwapi.getFrameCount() == 1) {\n\t\t\tint cc = BuildManager.getInstance().getNearestUnit(UnitTypes.Terran_Command_Center.ordinal(), 0, 0);\n\t\t\tif (cc == -1) cc = BuildManager.getInstance().getNearestUnit(UnitTypes.Zerg_Hatchery.ordinal(), 0, 0);\n\t\t\tif (cc == -1) cc = BuildManager.getInstance().getNearestUnit(UnitTypes.Protoss_Nexus.ordinal(), 0, 0);\n\t\t\thomePositionX = bwapi.getUnit(cc).getX();\n\t\t\thomePositionY = bwapi.getUnit(cc).getY();\n\t\t\n\t\t\tResourceManager.getInstance().gameStart(bwapi.getMyUnits());\n\t\t}\n\t\t\n\t\t/*\n\t\tif(ResourceManager.getInstance().numWorkers() == 10 && ScoutManager.getInstance().numScouts() == 0) {\n\t\t\tbwapi.printText(\"Assigning a scout\");\n\t\t\tneedsScout();\n\t\t}\n\t\t*/\n\t\t\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.gameUpdate();\n\t\t\n\t\t// Draw debug information on screen\n\t\tdrawDebugInfo();\n\n\t\t\n\t\t// Call the act() method every 30 frames\n\t\tif (bwapi.getFrameCount() % 30 == 0) {\n\t\t\tact();\n\t\t}\n\t}", "@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}", "@Override\n public void update() {\n if (Screen.checkState(GameState.RUNNING)) {\n healthToDraw = getPlayer().getHealth();\n maxHealthToDraw = getPlayer().getMaxHealth();\n minesToDraw = getPlayer().getCurrentMines();\n maxMinesToDraw = getPlayer().getMaxMines();\n currentLevelToDraw = Screen.getRoomHandler().getCurrentLevel();\n defenseToDraw = getPlayer().getDefense();\n speedToDraw = getPlayer().getSpeed();\n rangeToDraw = getPlayer().getSmallPlayerRange();\n damageToDraw = getPlayer().getPlayerDamage();\n playerRings = getPlayer().getRings();\n skillsToDraw = new Skill[4];\n for (int i = 0; i < getPlayer().getSkills().size(); i++) {\n if ( i < 4) {\n skillsToDraw[i] = getPlayer().getSkills().get(i);\n }\n }\n }\n }", "public void update() {\n\t\tImage background_buffer = createImage(stats.getWidth(),\n\t\t\t\tstats.getHeight());\n\t\tGraphics background_buffer_graphics = background_buffer.getGraphics();\n\t\t// updates the stats on screen\n\t\tbackground_buffer_graphics.drawString(\n\t\t\t\t\"Current Move: \" + (model.isWhiteToPlay() ? \"White\" : \"Black\"),\n\t\t\t\t5, 20);\n\t\tbackground_buffer_graphics.drawString(\"White Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getWhiteScore()), 20, 125);\n\t\tbackground_buffer_graphics.drawString(\"Black Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getBlackScore()), 20, 145);\n\n\t\tImage wc = null;\n\t\tImage bc = null;\n\t\t//\n\t\ttry {\n\t\t\twc = ImageIO.read(new File((\"images/white_piece.png\")));\n\t\t\tbc = ImageIO.read(new File((\"images/black_piece.png\")));\n\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\tif (model.isWhiteToPlay()) {\n\t\t\tbackground_buffer_graphics.drawImage(wc, 25, 30, null, null);\n\n\t\t} else {\n\t\t\tbackground_buffer_graphics.drawImage(bc, 25, 30, null, null);\n\n\t\t}\n\n\t\tstats.getGraphics().drawImage(background_buffer, 0, 0, null);\n\n\t}", "@Override\n\tpublic void update() {\n\t\tticks++;\n\t\tswitch (state) {\n\t\tcase MENU:\n\t\tcase INTRO:\n\t\t\tupdateBackground();\n\t\t\tbreak;\n\n\t\tcase PLAYING:\n\t\t\tbreak;\n\t\tcase GAMEOVER:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\n\t\t}\n\n\t\tWorld.update();\n\t\tScreen.update();\n\n\t}", "public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }", "protected void updateGameState() {\n }", "public void gameUpdate()\n {\n\t\tcheckCollisions();\n\t\t\n\t\tif(up)\t\tcraft.accelerat();\t\t\n\t\tif(left)\tcraft.rotateLeft();\n\t\tif(right) \tcraft.rotateRight();\n\t\t\n\t\tcraft.move();\n\t\tmoveAstroids();\n }", "public void update() {\n\t\tupdateController();\n\t\tupdateTimer();\n\t\tupdateTrifecta();\n\t\tupdateGyro();\n\t\tupdateGameTime();\n\t\t//updateTilt();\n\t}", "public void updateGameWorld() {\r\n\t\t//divide the user entered height by the height of the canvas to get a ratio\r\n\t\tfloat canvas_height = Window.getCanvas().getHeight();\r\n\t\tfloat new_height = EnvironmentVariables.getHeight();\r\n\t\tfloat ratio = new_height / canvas_height;\r\n\t\t\r\n\t\t//use this ration th=o set the new meter value\r\n\t\tEnvironmentVariables.setMeter(EnvironmentVariables.getMeter() * ratio);\r\n\t\t\r\n\t\t//use the ratio to set all objects new location\r\n\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tif(EnvironmentVariables.getMainPlayer() != null) {\r\n\t\t\tEnvironmentVariables.getMainPlayer().setX(EnvironmentVariables.getMainPlayer().getX() * ratio);\r\n\t\t\tEnvironmentVariables.getMainPlayer().setY(EnvironmentVariables.getMainPlayer().getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "public void update()\n\t{\n\t\tgameTime++;\n\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < gameObj[i].size(); j++)\n\t\t\t{\n\t\t\t\t/*If the object implements movable\n\t\t\t\t * call the move method in each object\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof Imovable)\n\t\t\t\t\t((MovableObject)gameObj[i].get(j)).move();\n\t\t\t\t/*call CheckBlink() method in SpaceStation\n\t\t\t\t * if the time % blinkRate == 0\n\t\t\t\t * the visibility with be switched\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof SpaceStation)\n\t\t\t\t\t((SpaceStation)gameObj[i].get(j)).checkBlink(gameTime);\n\t\t\t\t/*check if missiles are out of fuel\n\t\t\t\tand remove if fuel = 0\n\t\t\t\t*/\n\t\t\t\tif(gameObj[i].get(j) instanceof Missile)\n\t\t\t\t\tif(((Missile)gameObj[i].get(j)).getFuel() <= 0)\n\t\t\t\t\t\tgameObj[i].remove(j);\n\t\t\t}\n\t\t}\t\t\n\t\tSystem.out.println(\"World updated\");\n\t}", "public void update(float dt) {\r\n\t\tif (pauseMenuActive() || isComplete() || isFailure()) return;\r\n\t\taction = movementController.update();\r\n\t\tplatformController.update(dt);\r\n\r\n\t\tCharacterModel lead = movementController.getLead();\r\n\t\tCharacterModel avatar = movementController.getAvatar();\r\n\t\tholdingHands = movementController.isHoldingHands();\r\n\r\n\t\tif (movementController.getSwitchedCharacters()) {\r\n\t\t\tswitching = !switching;\r\n\r\n\t\t}\r\n\t\t// Increase animation frame of background\r\n\t\tbackgroundAnimeframe += backgroundAnimationSpeed;\r\n\t\tif (backgroundAnimeframe >= backgroundNumAnimFrames) {\r\n\t\t\tbackgroundAnimeframe = 0;\r\n\t\t}\r\n\r\n\t\tif(holdingHands){\r\n\t\t\tif(lead == somni){\r\n\t\t\t\t// draw somni, phobia, and the hands\r\n\t\t\t\tcombined.setTexture(somnisTexture[action], animationSpeed[action], framePixelWidth[action], offsetsX[action], offsetsY[action],\r\n\t\t\t\t\t\tphobiasTexture[action], animationSpeed[action], framePixelWidth[action], secOffsetsX[action], secOffsetsY[action],\r\n\t\t\t\t\t\tsomniPhobiaHandsTexture, thirdOffsetsX[action], thirdOffsetsY[action]);\r\n\t\t\t}else{\r\n\t\t\t\t// draw phobia, somni, and the hands\r\n\t\t\t\tcombined.setTexture(phobiasTexture[action], animationSpeed[action], framePixelWidth[action], offsetsX[action], offsetsY[action],\r\n\t\t\t\t\t\tsomnisTexture[action], animationSpeed[action], framePixelWidth[action], secOffsetsX[action], secOffsetsY[action],\r\n\t\t\t\t\t\tphobiaSomniHandsTexture, thirdOffsetsX[action], thirdOffsetsY[action]);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(avatar == somni){\r\n\t\t\t\t// draw somni\r\n\t\t\t\tif ((action == 2 || action ==3 || action ==5)&& !avatar.justPropelled()) {\r\n\t\t\t\t\tint facing = somni.isFacingRight()? 1:-1;\r\n\t\t\t\t\t//draw somni with small dash ring\r\n\t\t\t\t\tsomni.setTexture(somnisTexture[action], animationSpeed[action], framePixelWidth[action], 0, 0,\r\n\t\t\t\t\t\t\tyellowRingSmallTexture, 0.2f, 128, 0, -5, facing * dashAngles[action]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (movementController.canHoldHands()){\r\n\t\t\t\t\t\t// somni reaches out hand when phobia within distance\r\n\t\t\t\t\t\tint f = movementController.faceTowards();\r\n\t\t\t\t\t\tsomni.setTexture(somnisTexture[action], animationSpeed[action], framePixelWidth[action], 0, 0,\r\n\t\t\t\t\t\t\t\tsomniHandsTextures[f], thirdOffsetsX[action+6*(f+1)], thirdOffsetsY[action]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// only draw somni\r\n\t\t\t\t\t\tsomni.setTexture(somnisTexture[action], animationSpeed[action], framePixelWidth[action]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// draw phobia\r\n\t\t\t\tif (action == 2 && somni.justPropelled()){\r\n\t\t\t\t\t// draw phobia and a propelling hand\r\n\t\t\t\t\tphobia.setTexture(phobiaIdleTexture, animationSpeed[0], framePixelWidth[0], 0, 0,\r\n\t\t\t\t\t\t\tblueRingBigTexture, 0.2f, 128, secOffsetsX[action], secOffsetsY[action], propelAngles[action]);\r\n\t\t\t\t} else if ((action == 3 || action == 5) && somni.justPropelled()) {\r\n\t\t\t\t\t// draw phobia and an upward propelling hand\r\n\t\t\t\t\tint facing = phobia.isFacingRight()? 1:-1;\r\n\t\t\t\t\tphobia.setTexture(phobiaIdleTexture, animationSpeed[0], framePixelWidth[0], 0, 0,\r\n\t\t\t\t\t\t\tblueRingBigTexture, 0.2f, 128, secOffsetsX[action], secOffsetsY[action], facing*propelAngles[action]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// only draw phobia\r\n\t\t\t\t\tphobia.setTexture(phobiaIdleTexture, animationSpeed[0], framePixelWidth[0]);\r\n\t\t\t\t}\r\n\r\n\t\t\t}else{\r\n\t\t\t\t// draw the leading character phobia\r\n\t\t\t\tif ((action == 2 || action == 3 || action == 5) && !avatar.justPropelled()){\r\n\t\t\t\t\tint facing = phobia.isFacingRight()? 1:-1;\r\n\t\t\t\t\t// draw phobia with small dash ring\r\n\t\t\t\t\tphobia.setTexture(phobiasTexture[action], animationSpeed[action], framePixelWidth[action], 0, 0,\r\n\t\t\t\t\t\t\tblueRingSmallTexture, 0.2f, 128, 0, -5, facing*dashAngles[action]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (movementController.canHoldHands()){\r\n\t\t\t\t\t\t// phobia reaches out hand when somni within distance\r\n\t\t\t\t\t\tint f = movementController.faceTowards();\r\n\t\t\t\t\t\tphobia.setTexture(phobiasTexture[action], animationSpeed[action], framePixelWidth[action], 0, 0,\r\n\t\t\t\t\t\t\t\tphobiaHandsTextures[f], thirdOffsetsX[action+6*(f+1)], thirdOffsetsY[action]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// only draw phobia\r\n\t\t\t\t\t\tphobia.setTexture(phobiasTexture[action], animationSpeed[action], framePixelWidth[action]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// draw the idle character somni\r\n\t\t\t\tif (action == 2 && phobia.justPropelled()){\r\n\t\t\t\t\t// draw somni with a propelling hand\r\n\t\t\t\t\tsomni.setTexture(somniIdleTexture, animationSpeed[0], framePixelWidth[0],0, 0,\r\n\t\t\t\t\t\t\tyellowRingBigTexture, 0.2f, 128, secOffsetsX[action], secOffsetsY[action], propelAngles[action]);\r\n\t\t\t\t} else if ( (action == 3 || action ==5 ) && phobia.justPropelled()) {\r\n\t\t\t\t\tint facing = somni.isFacingRight()? 1:-1;\r\n\t\t\t\t\tsomni.setTexture(somniIdleTexture, animationSpeed[0], framePixelWidth[0], 0, 0,\r\n\t\t\t\t\t\t\tyellowRingBigTexture, 0.2f, 128, secOffsetsX[action], secOffsetsY[action], facing*propelAngles[action]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// only draw somni\r\n\t\t\t\t\tsomni.setTexture(somniIdleTexture, animationSpeed[0], framePixelWidth[0]);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tmovementController.setJustSeparated(false);\r\n\t\t\tmovementController.setJustPropelled(false);\r\n\t\t}\r\n\r\n\t\t// Set camera position bounded by the canvas size\r\n\t\tcamera = canvas.getCamera();\r\n\r\n\t\tif (cameraCenter == null) {\r\n\t\t\tcameraCenter = new Vector2(avatar.getX(), avatar.getY());\r\n\t\t\tcameraCenter.x = avatar.getX();\r\n\t\t\tcameraCenter.y = avatar.getY();\r\n\t\t}\r\n\r\n\t\tfloat PAN_DISTANCE = 100f;\r\n\t\tfloat CAMERA_SPEED = 10f;\r\n\r\n\t\tfloat newX = avatar.getX() * canvas.PPM;\r\n\t\tfloat camX = InputController.getInstance().getCameraHorizontal();\r\n\t\tif (camX != 0) {\r\n\t\t\tpanMovement.x = camX * CAMERA_SPEED * canvas.PPM;\r\n\t\t} else {\r\n\t\t\tpanMovement.x = 0;\r\n\t\t}\r\n\r\n\t\tfloat camY = InputController.getInstance().getCameraVertical();\r\n\t\tif (camY != 0) {\r\n\t\t\tpanMovement.y = camY * CAMERA_SPEED * canvas.PPM;\r\n\t\t} else {\r\n\t\t\tpanMovement.y = 0;\r\n\t\t}\r\n\r\n\t\tfloat newY = avatar.getY() * canvas.PPM;\r\n\r\n\t\tnewX = Math.min(newX, widthUpperBound);\r\n\t\tnewX = Math.max(canvas.getWidth() / 2, newX);\r\n\t\tfloat displacementX = newX - camera.position.x;\r\n\t\tfloat lerpDisplacementX = Math.abs(displacementX + panMovement.x) < PAN_DISTANCE * canvas.PPM ?\r\n\t\t\t\tdisplacementX + panMovement.x : displacementX;\r\n\t\tcamera.position.x += lerpDisplacementX * LERP * dt;\r\n\r\n\t\tnewY = Math.min(newY, heightUpperBound);\r\n\t\tnewY = Math.max(canvas.getHeight() / 2, newY);\r\n\t\tfloat displacementY = newY - camera.position.y;\r\n\t\tfloat lerpDisplacementY = Math.abs(displacementY + panMovement.y) < PAN_DISTANCE * canvas.PPM ?\r\n\t\t\t\tdisplacementY + panMovement.y : displacementY;\r\n\t\tcamera.position.y += lerpDisplacementY * LERP * dt;\r\n\r\n\t\tcamera.update();\r\n\r\n\t}", "@Override\n public void updateDebugText(MiniGame game)\n {\n }", "private static void updateGame()\n {\n GameView.gameStatus.setText(\"Score: \" + computerScore + \"-\" + playerScore);\n if (computerScore + playerScore == NUM_CARDS_PER_HAND) {\n if (computerScore > playerScore) {\n GameView.gameText.setText(\"Computer Wins!\");\n Timer.stop = true;\n }\n else if (playerScore > computerScore) {\n GameView.gameText.setText(\"You win!\");\n Timer.stop = true;\n }\n else {\n GameView.gameText.setText(\"Tie game!\"); \n Timer.stop = true;\n }\n }\n }", "public void updateUi() {\n updateTextView(R.id.blindword, gameInstance.getBlindWord(), EditMode.ADDSPACING);\n updateTextView(R.id.guessedletters, gameInstance.getGuessedSoFar(), EditMode.ADDSPACING);\n\n int livesTotal = settings.getInt(\"lives\", 7);\n int livesLeft = gameInstance.getLives();\n StringBuilder healthbar = new StringBuilder();\n for(int i=0;i<livesLeft;i++) {\n healthbar.append('\\u2764'); //black heart\n }\n\n for(int i=0;i<(livesTotal - livesLeft);i++) {\n healthbar.append('\\u2661'); //white heart\n }\n\n updateTextView(R.id.healthbar, healthbar.toString(), EditMode.NONE);\n\n gameOverListener();\n\n }", "@Override\n public void updateDebugText(MiniGame game) {\n }", "public void update(){\n\t\tupdatePlayerPosition();\n\t\thandleCollisions();\n\t}", "public void update(){\n if(newPlayer.getRunning()) {\n\n if (botborder.isEmpty())\n {\n newPlayer.setRunning(false);\n return;\n }\n if (topborder.isEmpty())\n {\n newPlayer.setRunning(false);\n return;\n }\n\n background.update();\n newPlayer.update();\n\n\n //A threshold that the border can have based on the score\n maxBorderHeight = 30+newPlayer.getScore()/difficulty;\n if (maxBorderHeight > height/4){\n maxBorderHeight = height/4;\n minBorderHeight = 5+newPlayer.getScore()/difficulty;\n }\n\n for (int i = 0; i < topborder.size(); i++){\n if (collision(topborder.get(i), newPlayer)){\n newPlayer.setRunning(false);\n }\n }\n for (int i = 0; i < botborder.size(); i++){\n if (collision(botborder.get(i), newPlayer)){\n newPlayer.setRunning(false);\n }\n }\n\n this.updateTopBorder();\n //Create the borders\n this.updateBotBorder();\n\n //Adds smoke from spaceship from the timer\n long timeElapsed = (System.nanoTime() - outTimer)/1000000;\n if(timeElapsed > 120){\n effect.add(new Effects(newPlayer.getX(), newPlayer.getY()+30)); //Balls will appear out of backside of spaceship.\n outTimer = System.nanoTime();\n }\n for (int i = 0; i < effect.size(); i++){\n //Go through every ball and then update\n effect.get(i).update();\n if (effect.get(i).getX()<-10){\n effect.remove(i); //Removes the balls that are off the screen\n }\n }\n\n //Adds enemies in, first one in middle, rest are random\n long enemyElapsed = (System.nanoTime()- enemyStart)/1000000;\n //Higher the score is, the less delay there is\n if (enemyElapsed> (1500 - newPlayer.getScore()/4)){\n\n if (enemy.size() == 0){\n enemy.add(new Enemy(BitmapFactory.decodeResource(getResources(),R.drawable.enemy1), width+10, height + 50,25, 30, 30, 1));\n }\n else {\n enemy.add(new Enemy(BitmapFactory.decodeResource(getResources(),R.drawable.enemy1), width + 10, (int) (rng.nextDouble()*(height-(maxBorderHeight*2))+maxBorderHeight),25,30, newPlayer.getScore(), 1));\n }\n //Reset Timer\n enemyStart = System.nanoTime();\n\n }\n\n long shipElapsed = (System.nanoTime()-secondaryTimer)/1000000;\n\n\n if (newPlayer.getScore() == 150){\n level = 2;\n }\n\n //Randomised spot for secondary enemy\n if (newPlayer.getScore()%150==0) {\n if (newEnemy.size() == 0) {\n newEnemy.add(new secondaryEnemy(BitmapFactory.decodeResource(getResources(), R.drawable.enemy2), width + 5, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 32, 26, 5, 1));\n newEnemy.add(new secondaryEnemy(BitmapFactory.decodeResource(getResources(), R.drawable.enemy2), width + 5, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 32, 26, 5, 1));\n }\n\n secondaryTimer = System.nanoTime();\n }\n\n long thirdElapsed = (System.nanoTime()- tertiaryTimer)/1000000;\n\n if (newPlayer.getScore() == 300){\n level = 3;\n }\n if (level == 3) {\n if (enemyElapsed> (1500 - newPlayer.getScore()/4))\n\n //CHANGE THIS YOU PLEB!!!!\n if (thirdEnemy.size() == 0) {\n thirdEnemy.add(new thirdShip(BitmapFactory.decodeResource(getResources(), R.drawable.longship), width + 10, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 31, 49, 45, 1));\n } else {\n thirdEnemy.add(new thirdShip(BitmapFactory.decodeResource(getResources(), R.drawable.longship), width + 10, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 31, 49, newPlayer.getScore()/4, 1));\n }\n\n //Reset Timer\n tertiaryTimer = System.nanoTime();\n }\n\n //Go through every enemy and collision will check if two game objects are colliding.\n for (int i = 0; i < enemy.size(); i++){\n enemy.get(i).update();\n if(collision(enemy.get(i), newPlayer)){\n enemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (enemy.get(i).getX()<-100){\n enemy.remove(i);\n break;\n }\n }\n\n for (int i = 0; i < newEnemy.size(); i++) {\n newEnemy.get(i).update();\n if (collision(newEnemy.get(i), newPlayer)) {\n newEnemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (newEnemy.get(i).getX() < -100) {\n newEnemy.remove(i);\n break;\n }\n }\n\n for (int i = 0; i < thirdEnemy.size(); i++) {\n thirdEnemy.get(i).update();\n if (collision(thirdEnemy.get(i), newPlayer)) {\n thirdEnemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (thirdEnemy.get(i).getX() < -100) {\n thirdEnemy.remove(i);\n break;\n }\n }\n\n }\n else {\n //Reset the acceleration of the player, if not reset then the start death animation will occur and everything will reset\n newPlayer.resetAcceleration();\n if (!reset){\n gamenew = false;\n startDeath = System.nanoTime();\n reset = true;\n disappear = true;\n death = new deathAnimation(BitmapFactory.decodeResource(getResources(),R.drawable.damage), newPlayer.getX(),newPlayer.getY()-30,329,137,1);\n level = 1;\n }\n death.update();\n\n long timeElapsed = (System.nanoTime()-startDeath)/1000000;\n\n //If time has passed and there is no new game yet, then create a new game.\n if (timeElapsed > 2500 && !gamenew){\n newGame();\n }\n\n }\n }", "public void update() {\r\n gameObjects.update(playState);\r\n }", "@Override\n\tpublic void render () {\n\t\tGdx.gl.glClearColor(1, 0, 0, 1);\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\tbatch.begin();\n\t\tif (gameOver) {\n\t\t\tbatch.draw(textureGameOver, 0, 0);\n\t\t\tbatch.draw(textureRematch, (WIDTH/2) - (textureRematch.getWidth()/2), 128);\n\n\t\t\tif (player1.character.getHitPoints() <= 0)\n\t\t\t{\n\t\t\t\tbatch.draw(texture2wins, (WIDTH/2) - (texture2wins.getWidth()/2), 416);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbatch.draw(texture1wins,(WIDTH/2) - (texture1wins.getWidth()/2),416);\n\t\t\t}\n\t\t\tbatch.end();\n\n\t\t\tKeyboard masterKey = new Keyboard();\n\t\t\tif (masterKey.isEnterPressed())\n\t\t\t{\n\t\t\t\tgameOver = false;\n\t\t\t\tcreate();\n\t\t\t}\n\t\t}\n\t\t\t/*\n\t\t\tString str;\n\t\t\tif (player1.character.getHitPoints() <= 0)\n\t\t\t\tstr = \"Two\";\n\t\t\telse\n\t\t\t\tstr = \"One\";\n\t\t\tswitch (PopUpQuestion.TwoOptions(null, \"Play again!\", \"Exit\", \"Player \" + str + \" Wins!\", \" \"))\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\tdispose();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tdispose();*/\n\t\telse if (!paused) {\n\t\t\tdrawRefresh();\n\t\t\tball.render();\n\t\t\tplayer1.render();\n\t\t\tplayer2.render();\n\t\t\tcheckForHits();\n\t\t}\n\t\telse// if (paused)\n\t\t{\n\t\t\tbatch.draw(backgroundImage, 0, 0);\n\t\t\tbatch.draw(textureShade, 0, 0);\n\t\t\tbatch.draw(texturePause, (WIDTH / 2) - (texturePause.getWidth() / 2), (HEIGHT / 2) - (texturePause.getHeight() / 2) + 50);\n\t\t\tbatch.draw(textureControls, 0, 0);\n\t\t\tbatch.end();\n\t\t\tif (player1.doUnpause() || player2.doUnpause())\n\t\t\t\tpause(false);\n\t\t}\n\t}", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "void doUpdate() {\n\t\tdrawPlayer(backBufferContext, context);\n\t\tcheckForInteractions();\n\t}", "public boolean refreshGame() {\n\n\t\tif(currentRoom.isStoryActive()) {\n\t\t\tcurrentRoom.draw(bufferedG);\n\t\t\tp1.draw(bufferedG, up1, up2, up3, down1, down2, down3, left1,\n\t\t\t\t\tleft2, left3, right1, right2, right3,imgWeapon);\n\t\t\tPlayer p;\n\t\t\tfor(int i =0;i<players.size();i++) {\n\t\t\t\tp = players.get(i);\n\t\t\t\tif(p != null) {\n\t\t\t\t\tp.draw(bufferedG, up1, up2, up3, down1, down2, down3, left1,\n\t\t\t\t\t\t\tleft2, left3, right1, right2, right3,imgWeapon);\n\t\t\t\t\tif(i != Integer.parseInt(playerRef.getKey())) {\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\tif(storyCount==0) {\n\t\t\t\tfor(int i =0;i<players.size();i++) {\n\t\t\t\t\tp = players.get(i);\n\t\t\t\t\tif(p != null) {\n\t\t\t\t\t\tframe.removeKeyListener(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tframe.removeKeyListener(p1);\n\t\t\t\tstoryCount++;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t\telse if(!currentRoom.isStoryActive() && storyCount!=0) {\n\t\t\tPlayer p;\n\t\t\tfor(int i =0;i<players.size();i++) {\n\t\t\t\tp = players.get(i);\n\t\t\t\tif(p != null) {\n\t\t\t\t\tframe.addKeyListener(p1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tframe.addKeyListener(p1);\n\t\t\tstoryCount=0;\n\t\t}\n\n\n\t\n\t\tif(!loaded) {\n\t\t\treturn true;\n\t\t}\n\t\tcurrentRoom.draw(bufferedG);\n\t\tPlayer p;\n\t\tfor(int i =0;i<players.size();i++) {\n\t\t\tp = players.get(i);\n\t\t\tif(p != null) {\n\t\t\t\tp.draw(bufferedG, up1, up2, up3, down1, down2, down3, left1,\n\t\t\t\t\t\tleft2, left3, right1, right2, right3, imgWeapon);\n\t\t\t\tif(i != Integer.parseInt(playerRef.getKey())) {\n\t\t\t\t\tp1.collisionCheck(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tp1.draw(getBufferedGraphics(), up1, up2, up3, down1, down2, down3, left1,\n\t\t\t\tleft2, left3, right1, right2, right3, imgWeapon);\n\t\tWeapon temp=p1.getWeapon();\n\t\tenemies.collide(currentRoom);\n\t\tenemies.collide(temp);\n\t\tenemies.collide(p1);\n\t\tboolean collided = currentRoom.collisionCheck(p1);\n\t\tif(!collided)\n\t\t\tp1.move();\n\t\tif(p1.getHealth()<=0) {\n\t\t\tplayerRef.removeValueAsync();\n\t\t\treturn true;\n\n\n\t\t}\n\t\tPlayerData data = new PlayerData();\n\t\tdata.x = p1.getX();\n\t\tdata.y = p1.getY();\n\t\tdata.up = p1.getUp();\n\t\tdata.down = p1.getDown();\n\t\tdata.left = p1.getLeft();\n\t\tdata.right = p1.getRight();\n\t\tdata.health = p1.getHealth();\n\t\tdata.swing = p1.getSwing();\n\t\tplayerRef.setValueAsync(data);\n\n\n\t\n\t\tenemies.moveAll(p1.getX(), p1.getY());\n\n\n\t\t\n\t\tenemies.drawAll(bufferedG, p1.getX(), p1.getY());\n\t\tif(currentRoom instanceof EnemyRoom) {\n\t\t\t((EnemyRoom) currentRoom).reduceEnemiesLeft(enemies);\n\t\t}\n\n\n\t\tif(currentRoom.checkWhetherCanMoveToNextRoom()) {\n\t\t\tif(currentRoom instanceof EnemyRoom) {\n\t\t\t\tif(p1.getHitbox().intersects(((EnemyRoom) currentRoom).getHitboxForNextRoomPlate())){\n\t\t\t\t\tcurrentRoom = rooms.pop();\n\t\t\t\t\tframe.addMouseListener(currentRoom);\n\t\t\t\t\tif(currentRoom instanceof BossRoom) {\n\n\t\t\t\t\t\tint temp1=0;\n\t\t\t\t\t\tfor(int i =0;i<players.size();i++) {\n\t\t\t\t\t\t\tif(players.get(i)!=null) {\n\t\t\t\t\t\t\t\ttemp1 =i;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(temp);\n\t\t\t\t\t\tif(currentRoom instanceof BossRoom && Integer.parseInt(playerRef.getKey())==temp1)\n\t\t\t\t\t\t\tenemies.spawnRoomEnemiesForBossRoom((BossRoom)currentRoom);\n\n\t\t\t\t\t\tp1.setX(550);\n\t\t\t\t\t\tp1.setY(100);\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentRoom instanceof EnemyRoom) {\n\t\t\t\t\t\tenemies.spawnRoomEnemies(((EnemyRoom) currentRoom).getOriginalNumberOfEnemies());\n\t\t\t\t\t\tp1.setX(550);\n\t\t\t\t\t\tp1.setY(100);\n\t\t\t\t\t}\n\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(currentRoom instanceof BossRoom) {\n\t\t\t\tif(p1.getHitbox().intersects(((EnemyRoom) currentRoom).getHitboxForNextRoomPlate())){\n\t\t\t\t\tcurrentRoom = rooms.pop();\n\t\t\t\t\tframe.addMouseListener(currentRoom);\n\t\t\t\t\t\n\t\t\t\t\tint temp1=0;\n\t\t\t\t\tfor(int i =0;i<players.size();i++) {\n\t\t\t\t\t\tif(players.get(i)!=null) {\n\t\t\t\t\t\t\ttemp1 =i;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\t\n\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(currentRoom instanceof EnemyRoom) {\n\t\t\t\t\t\tenemies.spawnRoomEnemies(((EnemyRoom) currentRoom).getOriginalNumberOfEnemies());\n\t\t\t\t\t}\n\n\t\t\t\t\tp1.setX(550);\n\t\t\t\t\tp1.setY(100);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\trepaint();\n\t\treturn false;\n\t}", "public void update(){\n\t\tif(saveTimer < 300) saveTimer ++;\n\t\ttimer ++;\n\t\t\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(JudokaComponent.input.right) selectedItem = 8;\n\t\tif(JudokaComponent.input.left) selectedItem = 0;\n\t\tif(JudokaComponent.input.escape) JudokaComponent.changeMenu(JudokaComponent.MAIN);\n\t\t\n\t\tif(selectedItem < -1) selectedItem = -1;\n\t\tif(selectedItem > 8) selectedItem = 8;\n\t\t\n\t\tif(selectedItem == -1) {\n\t\t\tname += JudokaComponent.input.getTypedKey();\n\t\t\tif(JudokaComponent.input.backSpace && name.length() > 0) name = name.substring(0, name.length() - 1);\n\t\t\tif(name.length() > 16) name = name.substring(0, name.length() - 1);\n\t\t}\n\t\t\n\t\tif(JudokaComponent.input.enter) {\n\t\t\tif(selectedItem > 1 && selectedItem < 5)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{0, selectedItem});\n\t\t\telse if(selectedItem > 4 && selectedItem != 8)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{1, selectedItem});\n\t\t\telse if(selectedItem == 0)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{3, selectedItem});\n\t\t\telse if(selectedItem == 1)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{4, selectedItem});\n\t\t\telse if(selectedItem == 8){\n\t\t\t\tboolean notReadyToSave = false;\n\t\t\t\tfor(Technique t: techniques) {\n\t\t\t\t\tif(t == null ) notReadyToSave = true;\n\t\t\t\t}\n\t\t\t\tif (!notReadyToSave){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tJudokaComponent.propertyFileHandler.saveJudoka(techniques, name);\n\t\t\t\t\t\tsaveTimer = 0;\n\t\t\t\t\t} catch (FileNotFoundException e) { e.printStackTrace();\n\t\t\t\t\t} catch (ParserConfigurationException e) { e.printStackTrace();\n\t\t\t\t\t} catch (IOException e) { e.printStackTrace(); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//Overflow handler\n\t\tif(timer == Integer.MAX_VALUE) timer = 0;\n\t}", "private void updateGame() {\n\t\tif (levelStartTimer.isRunning() && !timer.isRunning())\n\t\t\ttimer.start();\n\t\tif (timer.isRunning()) {\n\t\t\tpacman.update();\n\t\t\tfor (Ghost ghost : ghosts)\n\t\t\t\tghost.update();\n\t\t\tupdateHighScore();\n\t\t\tupdatePacmansAnimation();\n\n\t\t\tfor (Ghost ghost : ghosts)\n\t\t\t\tif (ghost.isCollidedWithPacman(pacman)) {\n\t\t\t\t\tif (pacman.getNumberOfLives() > 0) {\n\t\t\t\t\t\tinitLevelAfterDeath();\n\t\t\t\t\t\tlogger.info(\"Pacman has died\");\n\t\t\t\t\t} else\n\t\t\t\t\t\tgameEnded();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t}\n\t\trepaint();\n\t}", "@Override\r\n\tpublic void update() {\n\t\tListIterator<Player> it = players.listIterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tit.next().update();\r\n\t\t}\r\n\t\t// Logica del juego, etc\r\n\t\tcontrolMenu();\r\n\t}", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "@Override\n\tpublic void update() {\n\t\tcanBuild = true;\n\t\tfor (Ship s : SceneManager.sm.currSector.ships) {\n\t\t\tif (!s.isPlayer) {\n\t\t\t\tif (s.cm.distanceTo(p.cm) < 2500) {\n\t\t\t\t\tcanBuild = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (SceneManager.sm.endSector.clear && SceneManager.sm.currSector.pos.isSame(SceneManager.sm.endSector.pos)) {\n\t\t\tSystem.out.println(\"Game WON\");\n\t\t\tthis.setActive(false);\n\t\t\tSceneManager.ws.setActive(true);\n\t\t}\n\t\tif (p.destroyed) {\n\t\t\tSystem.out.println(\"Game LOST\");\n\t\t\tthis.setActive(false);\n\t\t\tSceneManager.ls.setActive(true);\n\t\t}\n\n\t\tshipYard.update();\n\t\tstarMap.update();\n\n\t\t// TODO remove before flight: to draw where mouse is - temp\n\t\t// if (InputManager.mouse[2]) {\n\t\t// System.out.println(InputManager.mPos.toString());\n\t\t// }\n\n\t\tif (InputManager.keys[81])\n\t\t\tp.cmdRotate(false);\n\t\tif (InputManager.keys[69])\n\t\t\tp.cmdRotate(true);\n\t\tif (InputManager.keys[87])\n\t\t\tp.cmdMove(0, 1);\n\t\tif (InputManager.keys[83])\n\t\t\tp.cmdMove(2, 1);\n\t\tif (InputManager.keys[65])\n\t\t\tp.cmdMove(3, 1);\n\t\tif (InputManager.keys[68])\n\t\t\tp.cmdMove(1, 1);\n\t\tif (InputManager.keys[38]) {\n\t\t\tCamera.yOff += 10 * (1 / Camera.scale);\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t}\n\t\tif (InputManager.keys[40]) {\n\t\t\tCamera.yOff -= 10 * (1 / Camera.scale);\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t}\n\t\tif (InputManager.keys[39]) {\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t\tCamera.xOff -= 10 * (1 / Camera.scale);\n\t\t}\n\t\tif (InputManager.keys[37]) {\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t\tCamera.xOff += 10 * (1 / Camera.scale);\n\t\t}\n\n\t\t// key to go to build area - b\n\t\tif (canBuild && InputManager.keysReleased[66] || shipYard.clicked) {\n\t\t\tswtichToBuild();\n\t\t}\n\t\tif (InputManager.keysReleased[77] || starMap.clicked) {\n\t\t\tswtichToStarMap();\n\t\t}\n\t\t\n\t\t// key to select a ship - no use atm\n\t\tif (InputManager.mouse[1]) {\n\t\t\t//selected = SceneManager.sm.currSector.getClickShip();\n\t\t\t// now have a ship selected\n\t\t}\n\t\t\n\t\tif(InputManager.keysReleased[32]) {\n\t\t\tcamFocus = p.cm;\n\t\t}\n\n\t\t// key to move the camera to a ship or area\n\t\tif (InputManager.mouseReleased[2]) {\n\t\t\teyeFocused = false;\n\t\t\tif(SceneManager.sm.currSector.getClickShip() != null)\n\t\t\t{\n\t\t\t\tcamFocus = SceneManager.sm.currSector.getClickShip().cm;\n\t\t\t}else if(Camera.toScreen(eyeLoc).distanceTo(InputManager.mPos) < 40){\n\t\t\t\tcamFocus = eyeLoc;\n\t\t\t\teyeFocused = true;\n\t\t\t}else {\n\t\t\t\tcamFocus = Camera.toMap(InputManager.mPos.x, InputManager.mPos.y);\n\t\t\t}\n\t\t}\n\t\tif (partTarget != null && partTarget.health <= 0)\n\t\t\tpartTarget = null;\n\n\t\tif (partTarget == null && target != null)\n\t\t\tp.shoot(target);\n\n\t\tif (partTarget == null && target == null)\n\t\t\tp.ceaseFire();\n\n\t\tif (target != null && InputManager.mouseReleased[3] && !target.destroyed) {\n\t\t\tpartTarget = SceneManager.sm.currSector.getClickShipPart(target);\n\t\t\tp.shoot(partTarget);\n\t\t}\n\n\t\tif (InputManager.mouseReleased[3]) {\n\t\t\ttarget = SceneManager.sm.currSector.getClickShip();\n\t\t\tif (target != null && partTarget == null) {\n\t\t\t\tp.shoot(target);\n\t\t\t}\n\t\t}\n\t\tif (target != null && (target.destroyed || target.isPlayer)) {\n\t\t\ttarget = null;\n\t\t\tpartTarget = null;\n\t\t\tp.ceaseFire();\n\t\t}\n\n\t\tif (camFocus != null)\n\t\t\tCamera.focus(camFocus);\n\t\t// if(selected != null) selected.vel.print();\n\n\t\tSceneManager.sm.currSector.update();\n\t}", "private void updateSprites() {\n\t\tpaddle1.setX(paddle1X);\r\n\t\tpaddle1.setY(paddle1Y);\r\n\r\n\t\tpaddle2.setX(paddle2X);\r\n\t\tpaddle2.setY(paddle2Y);\r\n\r\n\t\tball.setX(ballX);\r\n\t\tball.setY(ballY);\r\n\r\n\t\tscore.setVisible(paused);\r\n\t}", "public void update(float dt) {\n if (codeOn == true) {\n //do nothing\n } else {\n handleinput(dt);\n }\n //movedRight(dt);\n //takes 1 step in the physics simulation 60 times per second\n world.step(1 / 60f, 6, 2);\n player.update(dt);\n\n //if character dies, freeze the camera right where he died\n if (player.currentState != Adventurer.State.DEAD) {\n gamecam.position.x = player.b2body.getPosition().x;\n }\n\n hud.update(dt);\n\n for (Enemy enemy : creator.getDungeonMonster()) {\n enemy.update(dt);\n if (enemy.getX() < player.getX() + 220 / DefaultValues.PPM) {\n enemy.b2body.setActive(true);//activate goomba\n }\n }\n if (DefaultValues.questActivated == true) {\n quest1 = true;\n quest2 = false;\n DefaultValues.questActivated = false;\n stage.addActor(dialog);\n }\n\n if (DefaultValues.quest2Activated == true) {\n quest1 = false;\n quest2 = true;\n DefaultValues.quest2Activated = false;\n stage.addActor(dialog2);\n }\n\n if (touchedFinishline == true) {\n if (progressInsideTaskTwo == 100) {\n if (saveProcessor.checkAchievement() == true) {\n DungeonCoder.manager.get(\"UIElements/Animation/achievement.mp3\", Sound.class).play();\n }\n DungeonCoder.manager.get(\"UIElements/Animation/stagecomplete.mp3\", Sound.class).play();\n hud.stopMusic();\n touchedFinishline = false;\n saveProcessor.insClear();\n System.out.println(\"Total clear:\" + saveProcessor.getTotalCleared());\n System.out.printf(\"You have cleared %d instructional stages.\\n\", saveProcessor.getInsCleared());\n dispose();\n game.setScreen(new StageThreeComplete(game));\n } else {\n touchedFinishline = false;\n new Dialog(\"Dungeon Coder\", skin, \"dialog\") {\n protected void result(Object object) {\n }\n }.text(\"You have not fulfil the requirement to complete the stage!\").button(\" Ok \", true).show(stage);\n }\n }\n\n\n //update gamecam with correct corrdinates after changes\n gamecam.update();\n\n //tell renderer to draw only what our camera can see in our game world\n renderer.setView(gamecam);\n\n }", "public void actionPerformed (ActionEvent e)\r\n {\r\n \tgame.update();\r\n \trepaint();\r\n }", "private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }", "@Override\n\t public void actionPerformed(ActionEvent e) {\n\t\t isPlayerDead();\n\t\t isGameRunning();\n\n\t updatePlayer();\n\t updateCentipede();\n\t updateMissiles();\n\t\t updateMushrooms();\n\t updateSpider();\n\n\t checkCollisions();\n\t repaint();\n\t }", "public void update() {\n\t\t//TODO: permanent solution to render mode switching (maybe command terminal)\n\t\tif(Input.getInstance().isKeyPushed(Keys.KEY_P)) {\n\t\t\ttestEntity.setActiveRenderComponent(RenderComponents.POINT_RENDERER_COMPONENT);\n\t\t\ttestEntity2.setActiveRenderComponent(RenderComponents.POINT_RENDERER_COMPONENT);\n\t\t}\n\t\tif(Input.getInstance().isKeyPushed(Keys.KEY_L)) {\n\t\t\ttestEntity.setActiveRenderComponent(RenderComponents.WIREFRAME_RENDERER_COMPONENT);\n\t\t\ttestEntity2.setActiveRenderComponent(RenderComponents.WIREFRAME_RENDERER_COMPONENT);\n\t\t}\n\t\tif(Input.getInstance().isKeyPushed(Keys.KEY_O)) {\n\t\t\ttestEntity.setActiveRenderComponent(RenderComponents.RENDERER_COMPONENT);\n\t\t\ttestEntity2.setActiveRenderComponent(RenderComponents.RENDERER_COMPONENT);\n\t\t}\n\t}", "public void update(){\n\t\tthis.game.atacarZombies(this.x, this.y, this.damage, 1, false); //Misma fila\n\t\tthis.game.atacarZombies(this.x-1, this.y, this.damage, 1, false); //Fila arriba\n\t\tthis.game.atacarZombies(this.x+1, this.y, this.damage, 1, false); //Fila abajo\n\t\tthis.turno++;\n\t}", "public void update(double delta){\n \tthis.av.update();\n \t\n \t//checar� a cada update se haver� colis�o\n \tfor(int i=0;i<10;i++){\n \t\t//se houver colis�o entre Avatar e os lixos normais, ser�o acrescidos 10 pontos ao player\n\t\t\tif(this.lixo[i].collision(av, lixo[i])){\n\t\t\t\tScorePanel.score += 10;\n\t\t\t}\n\t\t}\n \t\n \t//Checa se todos os lixos Foram coletados\n<<<<<<< HEAD\n \tif(ScorePanel.getScore() == 100 && telaConcluida == false){\n \t\ttelaConcluida = true;\n \t\t//JOptionPane.showMessageDialog(null, \"Fase 1 conclu�da!!!\");\n \t\t//ScorePanel.setScoreToZero();\n=======\n \tif(Garbage.getScore() == 100){\n \t\tJOptionPane.showMessageDialog(null, \"Fase 1 conclu�da!!!\");\n \t\tGarbage.setScoreToZero();\n>>>>>>> c1516bff6596a16ab28a02b04aa726b8350d9899\n \t}\n \t\n \t//se houver colis�o entre Avatar e o lixo especial, ser�o acrescidos 10 segundos a mais para o player\n \tif(lixoEspecial.collision(av, lixoEspecial)){\n \t\tTimerGameplay.tempo += 10; \n \t}\n }\n \n //atualiza renderização\n public void draw(){\n \tthis.repaint();\n }\n\t\n\t@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t/*/limites do campo e coordenadas\n\t\tSystem.out.println(\"ACTION EVENT\");\n\t\t\n\t\tif(this.av.x<0){\n\t\t\tthis.av.vx = 0;\n\t\t\tthis.av.x = 0;\n\t\t}\n\t\t\n\t\tif(this.av.x> 800){\n\t\t\tthis.av.vx = 0;\n\t\t\tthis.av.x = 800;\n\t\t}\n\t\t\n\t\tif(this.av.y<0){\n\t\t\tthis.av.vy = 0;\n\t\t\tthis.av.y = 0;\n\t\t}\n\t\t\n\t\tif(this.av.y> 570){\n\t\t\tthis.av.vy = 0;\n\t\t\tthis.av.y = 570;\n\t\t}\n\t\tthis.av.x = this.av.x + this.av.vx;\n\t\tthis.av.y = this.av.y + this.av.vy;\n\t\t\n\t\t//repaint();//*/\n\t}//*/\n\n\t@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tthis.av.keyPressed(e);\n\t}\n\n\t@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\tthis.av.keyReleased(e);\n\t}\n\n\t@Override\n\tpublic void keyTyped(KeyEvent e) {}", "public void updateGame(){\n\t\tbird.tick(input);\n\t\tthis.spawnObstacle();\n\t\tif(this.obstacles.size() > 0 && this.goals.size() > 0){\n\t\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\t\tObstacle obs = obstacles.get(i);\n\t\t\t\tobs.tick();\n\t\t\t\tif(this.bird.onCollision(obs.x, obs.y, obs.w,obs.h)){\n\t\t\t\t\tthis.gameOver = true;\n\t\t\t\t\tSound.dead.play();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<this.goals.size();i++){\n\t\t\t\tGoal goal = goals.get(i);\n\t\t\t\tgoal.tick();\n\t\t\t\tif(this.bird.onCollision(goal.x, goal.y, goal.w,goal.h) && goal.active){\n\t\t\t\t\tSound.clink.play();\n\t\t\t\t\tthis.numGoals++;\n\t\t\t\t\tif(this.numGoals > this.bestScore) this.bestScore = this.numGoals;\n\t\t\t\t\tgoal.active = false;\n\t\t\t\t\tSystem.out.println(this.numGoals);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }", "public void update() {\n\t\tint xa = 0, ya = 0; \n\t\tif(game.getPlayer().x < 0){\n\t\t\txa -= 2;\n\t\t}else if(game.getPlayer().x + 32 > game.getScreen().width){\n\t\t\txa += 2;\n\t\t}\n\t\tif(game.getPlayer().y < 0){\n\t\t\tya -= 2;\n\t\t}else if(game.getPlayer().y + 32 > game.getScreen().height){\n\t\t\tya +=2;\n\t\t}\n\t\t\n\t\tif (xa != 0 || ya!= 0) move(xa, ya);\n\t\t\n\t\t//detects if the mouse is clicking on the interface\n\t\t/*if(Mouse.getButton() == 1 && Mouse.getX() >= 0 && Mouse.getX() <= 1200 && Mouse.getY() > 525 && Mouse.getY() < 675) {\n\t\t\tclicked = true;\n\t\t} else {\n\t\t\tclicked = false;\n\t\t}*/\n\t\t\n\t\treturn;\n\t}", "private void doGameCycle() {\n update();\n repaint();\n }", "private void update() {\n\t\t// Every frame will update these variables, independent of game state\n\t\tmCamera.update();\n\t\tfloat deltaTime = Gdx.graphics.getDeltaTime();\n mHealthText = \"Castle Strength: \" + mCastleHealth;\n mRoundScoreText = \"This Round Score: \" + mRoundScore;\n\t\tmTotalScoreText = \"Total Game Score: \" + mTotalScore;\n\n\t\t// Switch statement to handle game state\n\t\tswitch (mGameState) {\n\t\t\tcase STATE_PRE_GAME:\n\t\t\t\t// Before the game starts, the first two buttons (new game and resume) are visible\n\t\t\t\tmButtons[0].setVisible(true);\n\t\t\t\tmButtons[1].setVisible(true);\n\t\t\t\tcheckStartNewGameButton();\n\t\t\t\tcheckLoadGameButton();\n\t\t\t\tbreak;\n\t\t\tcase STATE_ROUND_START:\n\t\t\t\tmButtons[2].setVisible(true);\n\t\t\t\thandleRoundStart();\n\t\t\t\tcheckPauseGameButton();\n\t\t\t\tbreak;\n\t\t\tcase STATE_ROUND_PLAY:\n\t\t\t\tmButtons[2].setVisible(true);\n\t\t\t\tif(!mPaused) {\n\t\t\t\t\thandleStandardGameplay(deltaTime);\n\t\t\t\t\tcheckPauseGameButton();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmButtons[3].setVisible(true);\n\t\t\t\t\tcheckResumeGameButton();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase STATE_ROUND_OVER:\n\t\t\t\tmButtons[4].setVisible(true);\n\t\t\t\tmButtons[5].setVisible(true);\n\t\t\t\tmButtons[6].setVisible(true);\n\t\t\t\tcheckRepairCastleButton();\n\t\t\t\tcheckSaveGameButton();\n\t\t\t\tcheckNextRoundButton();\n\t\t\t\tbreak;\n\t\t\tcase STATE_GAME_OVER:\n\t\t\t\tmButtons[0].setVisible(true);\n\t\t\t\tcheckStartNewGameButton();\n\t\t\t\tbreak;\n\t\t}\n\n\n\t}", "public void render(Graphics2D g){\n if(game.gameState == Game.AppState.MENU){\n Font fnt0 = new Font(\"Serif\", Font.BOLD,45);\n Font fnt1 = new Font(\"Serif\", Font.BOLD,25);\n\n g.setFont(fnt0);\n g.setColor(Color.BLACK);\n g.drawString(\"DYNA BLASTER\", 122, 100);\n\n g.setFont(fnt1);\n g.fillRect(190,200,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"PLAY\", 268, 235);\n\n g.setColor(Color.BLACK);\n g.fillRect(190,300,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"BEST RESULTS\", 205, 335);\n\n g.setColor(Color.BLACK);\n g.fillRect(190,400,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"HELP\", 268, 435);\n\n g.setColor(Color.BLACK);\n g.fillRect(190,500,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"EXIT\", 272, 535);\n }\n else if(game.gameState == Game.AppState.RESULTS){\n Font fnt0 = new Font(\"Serif\", Font.BOLD, 35);\n Font fnt1 = new Font(\"Serif\", Font.BOLD, 25);\n Font fnt2 = new Font(\"Serif\", Font.BOLD, 20);\n\n g.setFont(fnt0);\n g.setColor(Color.BLACK);\n g.drawString(\"LIST\", 255, 80);\n g.setFont(fnt2);\n g.drawString(\"Place Nick Score\", 70, 120);\n for(int i=0;i<10;i++) {\n g.drawString(i+1+\" \"+handler.scores.getScores(i), 90, 150+30*i);\n }\n g.setFont(fnt1);\n g.setColor(Color.BLACK);\n g.fillRect(190,500,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"BACK\", 265, 535);\n }\n else if(game.gameState == Game.AppState.HELP){\n Font fnt0 = new Font(\"Serif\", Font.BOLD, 35);\n Font fnt1 = new Font(\"Serif\", Font.BOLD, 25);\n Font fnt2 = new Font(\"Serif\", Font.BOLD, 20);\n Font fnt3 = new Font(\"Serif\", Font.PLAIN, 16);\n\n g.setFont(fnt0);\n g.setColor(Color.BLACK);\n g.drawString(\"HELP\", 255, 100);\n String []command=helpconfig.gethelpstring();\n g.setFont(fnt2);\n g.drawString(command[0], 70, 150);\n g.setFont(fnt3);\n g.drawString(command[1], 70, 170);\n g.drawString(command[2], 70, 190);\n g.setFont(fnt2);\n g.drawString(command[3], 70, 230);\n g.setFont(fnt3);\n for(int i=4;i<helpconfig.get_length_of_commands();i++) {\n g.drawString(command[i], 70, 250+(i-4)*20);\n\n }\n g.setFont(fnt1);\n g.setColor(Color.BLACK);\n g.fillRect(190,500,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"BACK\", 265, 535);\n }\n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n }else{\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n \n \n if(!gameover){\n player.render(g);\n borrego.render(g);\n rayo.render(g);\n \n for (Enemy brick : enemies) {\n brick.render(g);\n //bomba.render(g);\n }\n \n for (Fortaleza fortaleza : fortalezas) {\n fortaleza.render(g);\n }\n \n for (Bomba bomba: bombas){\n bomba.render(g);\n }\n \n drawScore(g);\n drawLives(g,vidas);\n }else if(gameover){\n drawGameOver(g);\n }\n \n\n if (lost && !gameover){\n drawLost(g);\n }\n if (pause && !lost && !gameover){\n drawPause(g);\n }\n if(win && !lost && !pause && !lost &&!gameover){\n \n drawWin(g);\n }\n \n bs.show();\n g.dispose();\n }\n }", "public static void main(String[] args) throws Exception\n {\n StdDraw.setCanvasSize(1920, 1080);\n StdDraw.setXscale(0, 1920);\n StdDraw.setYscale(0, 1080);\n //enable the calcul off the next screen before displaying\n //increase fluidity\n StdDraw.enableDoubleBuffering();\n\n int level;\n int number_of_wins = 0;\n RefreshTimer refresh_timer; //needed to get the same refresh rate\n //between every computer\n\n// StdAudio.loop(\"audio/background_low.wav\");\n //this music had to be remove for the zip to be less than 20MB...\n\n while (true) //the whole ame loop\n {\n IngameTimer timer1 = null; //timers for respawn\n IngameTimer timer2 = null;\n StdDraw.clear();\n int lives = 3; //chosen number of lives\n int lives2 = 3;\n Wrapper.first_player_points = 0;\n Wrapper.second_player_points = 0;\n //draw the menu screen, waiting for a key pressed\n while(true)\n {\n if (StdDraw.isKeyPressed(77)) //M key\n {\n DrawAll.drawMore();\n StdDraw.show();\n while (!StdDraw.isKeyPressed(82)) //R key\n {\n if (StdDraw.isKeyPressed(27))\n System.exit(0);\n }\n }\n else\n {\n DrawAll.drawStart();\n StdDraw.show();\n if (StdDraw.isKeyPressed(49)) //1 key\n {\n level = 1;\n break;\n }\n\n if (StdDraw.isKeyPressed(50)) //2 key\n {\n level = 2;\n break;\n }\n if (StdDraw.isKeyPressed(51)) //3 key\n {\n level = 3;\n break;\n }\n if (StdDraw.isKeyPressed(27)) //escape key\n System.exit(0);\n }\n }\n StdAudio.close();\n StdAudio.play(\"audio/start_click_v2.wav\");\n //create a new SpaceInvaders object and initliaze Wrapper variables\n Wrapper.initializeVariables();\n SpaceInvaders SI = new SpaceInvaders(level, number_of_wins);\n refresh_timer = new RefreshTimer(1); //just to avoid a null\n //comparision every iteration of the loop below\n //THE PLAYING PART\n while (SI.aliensWon() == 0)\n {\n if (refresh_timer.getTime() == 0)\n {\n refresh_timer = new RefreshTimer(20);\n\n //restart if no aliens left\n if (SI.aliensLeft() == 0)\n {\n DrawAll.drawWon();\n StdDraw.show();\n StdAudio.play(\"audio/win.wav\");\n WaitTimer timer = new WaitTimer(3000);\n synchronized (Wrapper.lock){Wrapper.lock.wait();}\n SI = new SpaceInvaders(level, ++number_of_wins);\n Wrapper.initializeVariables();\n }\n\n //pause screen\n if (StdDraw.isKeyPressed(80))\n {\n SI.pause();\n DrawAll.drawPause();\n StdDraw.show();\n while(true)\n {\n if (StdDraw.isKeyPressed(27)) //escape key\n System.exit(0);\n\n if (StdDraw.isKeyPressed(82)) //R key\n break;\n }\n SI.resume();\n }\n\n //calcul part\n SI.movePlayer();\n SI.updateBullets();\n SI.updateAliens();\n\n if (level != 2)\n SI.updateProtections();\n\n if (level == 1)\n {\n if (SI.player.isAlive() == 1)\n SI.updateBonus();\n if (Wrapper.extraLife() == 1)\n lives++;\n }\n\n //drawing part\n StdDraw.clear();\n //draw background\n DrawAll.drawBackground();\n //go SpaceInvaders.java to see what it draws\n SI.drawEverything();\n //draw rocket lives\n DrawAll.drawLivesFirst(lives);\n\n if (level != 3)\n DrawAll.drawPoints(SI);\n else\n {\n DrawAll.drawPointsMulti(SI);\n DrawAll.drawLivesSecond(lives2);\n }\n\n //check if player is still alive\n if (SI.player.isAlive() == 0)\n {\n DrawAll.drawDead(SI.player);\n if (timer1 == null)\n {\n timer1 = new IngameTimer(1000);\n lives--;\n if (lives == 0)\n break;\n }\n else if (timer1.time == 0)\n {\n timer1 = null;\n if (level != 3)\n SI.restart();\n else\n SI.player.restart();\n Wrapper.repositioning();\n }\n if (level != 3)\n DrawAll.drawDeadScreen();\n }\n\n //check game state (finished, lost, win\n if (SI.player2.isAlive() == 0)\n {\n DrawAll.drawDead(SI.player2);\n if (timer2 == null)\n {\n timer2 = new IngameTimer(1000);\n lives2--;\n if (lives2 == 0)\n break;\n }\n else if (timer2.time == 0)\n {\n timer2 = null;\n SI.player2.restart();\n }\n }\n }\n //need to pause the display of the images, otherwise\n //we literally see nothing\n StdDraw.show(10);\n }\n\n number_of_wins = 0;\n\n StdAudio.play(\"audio/game_over_v3.wav\");\n\n if (SI.aliensWon() == 1)\n {\n DrawAll.drawAliensWon();\n DrawAll.drawDead(SI.player);\n }\n\n if (lives == 0 && level != 3)\n DrawAll.drawAliensWon();\n else if (lives == 0)\n DrawAll.drawDeadPlayer1();\n else if (lives2 == 0)\n DrawAll.drawDeadPlayer2();\n\n StdDraw.show();\n\n WaitTimer timer = new WaitTimer(1000);\n synchronized (Wrapper.lock){Wrapper.lock.wait();}\n\n IngameTimer timer3 = null;\n int n = 5;\n int changed;\n if (level != 3)\n changed = Scoreboard.checkSolo();\n else\n changed = Scoreboard.checkMulti();\n\n //wait for key pressed\n while(true)\n {\n if (n == -1)\n break;\n else if (timer3 == null)\n timer3 = new IngameTimer(1200);\n else if (timer3.time == 0)\n {\n DrawAll.drawGameOver(level, SI.aliensWon(),\n lives, lives2, n, changed);\n n--;\n timer3 = null;\n StdDraw.show();\n }\n if (StdDraw.isKeyPressed(27)) //escape key\n {\n System.exit(0);\n break;\n }\n if (StdDraw.isKeyPressed(82)) //r key\n {\n break;\n }\n }\n }\n }", "@Test\n\tpublic final void testGameUpdateAndDraw() {\n\t\tgsm = GameStateManager.getInstance();\n\t\t// System.out.println(gsm.getCurrentState());\n\t\t// System.out.println(GameStateManager.MENUSTATE);\n\t\t// assertEquals(gsm.getCurrentState(), GameStateManager.MENUSTATE);\n\t\t// gsm.setState(GameStateManager.LEVELSTATE);\n\t\tassertEquals(gsm.getCurrentState(), GameStateManager.LEVELSTATE);\n\t\tfor (int i = 0; i < 6000; i++) {\n\t\t\tgsm.update();\n\t\t\tgsm.draw(g2d);\n\t\t}\n\t}", "public void update() ;", "@Override\n public void characterRPClassUpdate(RPObject character) {\n }", "public void Update(int i, String s){\n\t\tint j;\n\t\tint arrX,arrY,arrJ;\n\t\t\n\t\tScanner sc = new Scanner(s).useDelimiter(\",\");\n\t\t// update Players\n\t\tplayers[i][0] = sc.nextInt();\n\t\tplayers[i][1] = sc.nextInt();\n\t\tplayers[i][2] = sc.nextInt();\n\t\t//update Arrows\n\t\tarrow_num[i] = sc.nextInt();\n\t\tfor(j=0;j<arrow_num[i];j++){\n\t\t\tarrJ = sc.nextInt();\n\t\t\tarrX = sc.nextInt();\n\t\t\tarrY = sc.nextInt();\n\t\t\tif(checkCollisions(arrX,arrY)){\n\t\t\t\tSystem.out.println(\"Collision Detected\");\n\t\t\t\tarrow_num[i] -= 1;\n\t\t\t} else {\n\t\t\t\tarrows[i][j][0] = arrX;\n\t\t\t\tarrows[i][j][1] = arrY;\n\t\t\t\tarrows[i][j][2] = arrJ;\n\t\t\t}\n\t\t\tif(enemy_num == 0){\n\t\t\t\tRandom r_gen1 = new Random();\n\t\t\t\taddEnemy(r_gen1.nextInt(10));\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Receive Special Weapons\n\t\tif(sc.nextInt() != 0){\n\t\t\tarrX = sc.nextInt();\n\t\t\tarrY = sc.nextInt();\n\t\t\tif(checkCollisions(arrX, arrY)){\n\t\t\t\tSystem.out.println(\"Collision Detected\");\n\t\t\t} else{\n\t\t\t\tspecWep[i][0] = arrX;\n\t\t\t\tspecWep[i][1] = arrY;\n\t\t\t}\n\t\t} else {\n\t\t\tspecWep[i][0] = 0;\n\t\t\tspecWep[i][1] = 0;\n\t\t}\n\t\t\n\t\tmoveEnemies();\n\t\t// Add Arrows\n\t\tif(shoot_timer > 30){\n\t\t\tRandom r_gen = new Random();\n\t\t\tfor(j=0;j<enemy_num;j++){\n\t\t\t\tif((r_gen.nextInt(1000)%3) != 0) {\n\t\t\t\t\tAddEnemyArrow(j);\n\t\t\t\t\tshoot_timer = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tshoot_timer ++;\n\t\t\tSystem.out.println(\"Incrementing Shoot Timer\");\n\t\t}\n\t\tmoveEnemyArrows();\n\t\tcheckPlayerCollisions(players[i][1], players [i][2]);\n\t}", "@Override\n\tpublic void update(GameContainer gc) {\n\t\t\n\t}", "public void update()\n {\n int screenHeight;\n int screenWidth;\n \n // Only update if the video memory has been updated\n// if (!videocard.vgaMemReqUpdate)\n// return;\n\n // Determine if in graphic/text mode; this is set in graphics register 0x06\n if (videocard.graphicsController.alphaNumDisable != 0)\n {}\n\n // alphaNumDisable == 0; Text mode\n else\n {\n // Cursor attributes\n int cursorXPos; // Cursor column position\n int cursorYPos; // Cursor row position\n int cursorWidth = 8; // 8 or 9 pixel cursor width\n int fullCursorAddress = 162; // Cursor location (byte number in vga memory) \n\n // Screen attributes \n int maxScanLine = 15; // Character height - 1\n int numColumns = 80; // (Char. clocks - 1) + 1 , i.e. number of columns\n int numRows = 25; // Number of text rows in screen \n screenWidth = cursorWidth * numColumns; // Screen width in pixels\n videocard.verticalDisplayEnd = 399;\n screenHeight = videocard.verticalDisplayEnd + 1; // Screen height in pixels\n \n int fullStartAddress = 0; // Upper left character of screen\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" update() in progress; text mode\");\n \n // Collect text features to be passed to screen update\n textModeAttribs.fullStartAddress = (short) 0; \n textModeAttribs.cursorStartLine = (byte) 14;\n textModeAttribs.cursorEndLine = (byte) 15;\n textModeAttribs.lineOffset = (short) 160;\n textModeAttribs.lineCompare = (short) 1023;\n textModeAttribs.horizPanning = (byte) 0;\n textModeAttribs.vertPanning = (byte) 0;\n textModeAttribs.lineGraphics = 1;\n textModeAttribs.splitHorizPanning = 0;\n \n // Check if the GUI window needs to be resized\n if ((screenWidth != oldScreenWidth) || (screenHeight != oldScreenHeight) || (maxScanLine != oldMaxScanLine))\n {\n screen.updateScreenSize(screenWidth, screenHeight, cursorWidth, maxScanLine + 1);\n oldScreenWidth = screenWidth;\n oldScreenHeight = screenHeight;\n oldMaxScanLine = maxScanLine;\n }\n\n // Determine cursor position in terms of rows and columns\n if (fullCursorAddress < fullStartAddress) // Cursor is not on screen, so set unreachable values\n {\n cursorXPos = 0xFFFF;\n cursorYPos = 0xFFFF;\n }\n else // Cursor is on screen, calculate position\n {\n cursorXPos = ((fullCursorAddress - fullStartAddress) / 2) % (screenWidth / cursorWidth);\n cursorYPos = ((fullCursorAddress - fullStartAddress) / 2) / (screenWidth / cursorWidth);\n }\n \n // Call screen update for text mode\n screen.updateText(0, fullStartAddress, cursorXPos, cursorYPos, textModeAttribs.getAttributes(), numRows);\n \n // Screen has been updated, copy new contents into 'snapshot'\n System.arraycopy(videocard.vgaMemory, fullStartAddress, videocard.textSnapshot, 0, 2 * numColumns * numRows);\n \n videocard.vgaMemReqUpdate = false;\n }\n }", "public void updateGraphics() {\n\t\t// Draw the background. DO NOT REMOVE!\n\t\tthis.clear();\n\t\t\n\t\t// Draw the title\n\t\tthis.displayTitle();\n\n\t\t// Draw the board and snake\n\t\t// TODO: Add your code here :)\n\t\tfor(int i = 0; i < this.theData.getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < this.theData.getNumColumns(); j++) {\n\t\t\t\tthis.drawSquare(j * Preferences.CELL_SIZE, i * Preferences.CELL_SIZE,\n\t\t\t\t\t\tthis.theData.getCellColor(i, j));\n\t\t\t}\n\t\t}\n\t\t// The method drawSquare (below) will likely be helpful :)\n\n\t\t\n\t\t// Draw the game-over message, if appropriate.\n\t\tif (this.theData.getGameOver())\n\t\t\tthis.displayGameOver();\n\t}", "public void update() {\n\t\tif (MainClass.getPlayer().isJumping()) {\n\t\t\tcurrentImage = characterJumped;\n\t\t} else if(Math.abs(MainClass.getPlayer().getSpeedY()) > Player.getFallspeed() ) {\n\t\t\tcurrentImage = characterJumped;\n\t\t} else if(MainClass.getPlayer().isCovered() == true) {\n\t\t\tcurrentImage = characterCover;\n\t\t} else if(MainClass.getPlayer().isJumping() == false && MainClass.getPlayer().isCovered() == false) {\n\t\t\tcurrentImage = super.getCurrentImage();\n\t\t}\n\t\tthis.update(25);\n\t\n\t}", "public void update(boolean updateWorld) {\n println(\"GUI\", \"Updating the UI...\");\n Player p = ToF.getWorld().getPlayer();\n \n if(updateWorld)\n ToF.getWorld().nextTick();\n \n move(p, NORTH, (Shape) MoveNorth);\n move(p, SOUTH, (Shape) MoveSouth);\n move(p, EAST, (Shape) MoveEast);\n move(p, WEST, (Shape) MoveWest);\n move(p, UP, ButtonUpstairs);\n move(p, DOWN, ButtonDownstairs);\n updateMap();\n updateBars();\n updateInventory();\n \n if(ToF.getWorld().getPlayer().isDead())\n ifLose();\n \n UnderAttack.setVisible(ToF.getWorld().getPlayer().getOpponent().isPresent());\n UnderAttack.setText(\"Under Attack \" + ToF.getWorld().selectEntities(\n e -> ToF.getWorld().getPlayer().getLocation().equals(e.getLocation())\n ).count());\n if(p.getOpponent().isPresent()){\n ToF.getWorld().selectEntities(\n e -> ToF.getWorld().getPlayer().getLocation().equals(e.getLocation())\n ).forEach(e -> ToF.getWorld().newMessage(new Message()\n .add(\"Your opponent\")\n .add(e.getName())\n .add(\"has\")\n .add(e.getHealthBar().getCurrent() + \"HP\"))\n );\n }\n \n if(ToF.getWorld().isFullyExplored())\n ifWin();\n \n Message msg;\n while((msg = ToF.getWorld().getNextMessage()) != null){\n Text.setText(msg.toStringSimple() + \"\\n\" + Text.getText()\n .substring(0, min(1000, Text.getText().length())));\n }\n }", "public void displayGameMode (Graphics g1)\n {\n if (state == 1)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/1/2player2.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/1/1player2.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/1/plain2.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 2)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/2/2player2.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/2/1player2.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/2/plain2.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 3)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/3/2player.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/3/1player.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/3/plain.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 4)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/4/2player.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/4/1player.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/4/plain.png\").getImage(), 0, 0, null);\n }\n \n bird1.displayDisplayCharacter (g1);\n bird2.displayDisplayCharacter (g1);\n bird3.displayDisplayCharacter (g1);\n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }", "public void update(){\r\n\t\t\r\n\t}", "private void update() {\n if(!Constants.GAME_OVER) {\n deltaTime = (int) (System.currentTimeMillis() - startTime);\n startTime = System.currentTimeMillis();\n elapsedTime = (int) (System.currentTimeMillis() - initTime)/1000;\n Constants.ELAPSED_TIME = elapsedTime;\n //Log.d(\"FRAMES \", \"\"+ Constants.FRAME_COUNT);\n //call update on every object\n player.update();\n enemyManager.update(player);\n starManager.update(player.getSpeed());\n asteroidManager.update(player);\n } else {\n playing = false;\n sound.stopBg();\n for(int i = 0; i < highScore.length; i++) {\n if (Constants.SCORE > highScore[i]) {\n final int endI = i;\n highScore[i] = Constants.SCORE;\n // Log.d(\"SCORE \", \"\" + highScore[i]);\n break;\n }\n }\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n for(int i = 0; i < highScore.length; i++) {\n int index = i + 1;\n editor.putInt(\"score\" + index, highScore[i]);\n }\n editor.apply();\n }\n }", "public void update( ) {\n\t\tdraw( );\n\t}", "public void update()\n\t{\n\t\t// Place this GameCanvas at the proper location and size\n\t\tthis.setBounds(0, 0, game.getWindow().getWidth(), game.getWindow().getHeight());\n\t\t\n\t\tif (timeCount > game.getFps())\n\t\t\ttimeCount = 0;\n\t\t\n\t\ttimeCount++;\n\t}", "void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}", "public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }", "private void updateObjects(Graphics g){\n\t\tclearMhos(g);\n\t\tclearPlayer(g);\n\t\tdrawMhos(g);\n\t\tdrawPlayer(g);\n\t\tdrawFences(g);\n\t\tDraw.drawInstructions(g,smallFont);\n\t}", "public void update() {\r\n\t\t\r\n\t}", "public void drawScreen(int par1, int par2, float par3)\n {\n \tStringTranslate var1 = StringTranslate.getInstance();\n this.drawDefaultBackground();\n this.drawCenteredString(this.fontRenderer, this.screenTitle, this.width / 2, 20, 16777215);\n int var4 = this.func_73907_g();\n int var5 = 0;\n\n while (var5 < this.options.keyBindings.length)\n {\n boolean var6 = false;\n int var7 = 0;\n\n while (true)\n {\n if (var7 < this.options.keyBindings.length) // checking for collisions in the minimap's bindings, and the game's bindings from 0 to the size of the minimap's bindings\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || (var7 == var5 || this.options.keyBindings[var5].keyCode != this.options.keyBindings[var7].keyCode) && (this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode))\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n \n if (var7 < this.options.game.gameSettings.keyBindings.length) // continue checking for collisions only among the standard game's keybindings - an array larger than that of the minimap.\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode)\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n\n if (this.buttonId == var5) // buttonId is currently being edited button. Draw > ??? <\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7f> \\u00a7e??? \\u00a7f<\";\n }\n else if (var6) // key collision, draw red\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7c\" + this.options.getOptionDisplayString(var5);\n }\n else // just show current binding\n {\n ((GuiButton)this.controlList.get(var5)).displayString = this.options.getOptionDisplayString(var5);\n }\n\n this.drawString(this.fontRenderer, this.options.getKeyBindingDescription(var5), var4 + var5 % 2 * 160 + 70 + 6, this.height / 6 + 24 * (var5 >> 1) + 7, -1);\n ++var5;\n break;\n }\n }\n \n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind1\"), this.width / 2, this.height / 6 + 115, 16777215);\n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind2\"), this.width / 2, this.height / 6 + 129, 16777215);\n\n\n super.drawScreen(par1, par2, par3);\n }", "public void gameOver() {\n\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 30);\n g.setFont(small);\n g.drawString(\"GAME OVER\", 250, 300);\n g.drawString(\"PRESS R TO RESTART GAME\", 150,400 );\n if(keyManager.restart==true)\n {\n gameOver=true;\n aliens.clear();\n shotVisible=false;\n Assets.init();\n \n player = new Player(getWidth() / 2, getHeight() - 100, 1, 60, 40, this);\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 6; j++) {\n aliens.add(new Alien(150 + 50 * j, 50 + 50 * i, 1, 40, 40, this));\n }\n }\n \n \n }\n }", "public void update() {\n\n\t\tif (!talking) {\n\t\t\tif (pointWalking) {\n\t\t\t\tpointWalkBehavior();\n\t\t\t} else if (behavior == ACTION.STAND) {\n\n\t\t\t} else if (behavior == ACTION.ROTATE) {\n\t\t\t\trotatingBehavior();\n\t\t\t} else if (behavior == ACTION.RANDOM) {\n\t\t\t\trandomBehavior();\n\t\t\t} else if (behavior == ACTION.WANDER) {\n\t\t\t\twanderingBehavior();\n\t\t\t} else if (behavior == ACTION.PATROL) {\n\t\t\t\tpatrolBehavior();\n\t\t\t}\n\t\t}\n\t}", "public void update()\n\t{\n\t\tsetFont(attribs.getFont());\n\t\tTextMeshGenerator.generateTextVao(this.text, this.attribs, this.font, this.mesh);\n\t\tsize = new Vector2f(mesh.maxPoint.x(), mesh.maxPoint.y());\n\t}", "public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}", "@Override\n public void render() {\n if (!gameOver && !youWin) this.update();\n\n //Dibujamos\n this.draw();\n }", "public void updateNames() {\n\n List<Team> teams = Guser.getTeams();\n int position = getTeam();\n\n try {\n\n JSONObject json = new JSONObject(getIntent().getExtras().getString(\"json\"));\n\n if(!gameMaster.getE(1).isDead()) {\n ((TextView)findViewById(R.id.eslot1)).setText(json.getJSONObject(\"char1\").getString(\"graphic\"));\n ((TextView)findViewById(R.id.eslot1)).setTextColor(Color.parseColor(json.getJSONObject(\"char1\").getString(\"color\")));\n }\n if(!gameMaster.getE(2).isDead()) {\n ((TextView)findViewById(R.id.eslot2)).setText(json.getJSONObject(\"char2\").getString(\"graphic\"));\n ((TextView)findViewById(R.id.eslot2)).setTextColor(Color.parseColor(json.getJSONObject(\"char2\").getString(\"color\")));\n }\n if(!gameMaster.getE(3).isDead()) {\n ((TextView)findViewById(R.id.eslot3)).setText(json.getJSONObject(\"char3\").getString(\"graphic\"));\n ((TextView)findViewById(R.id.eslot3)).setTextColor(Color.parseColor(json.getJSONObject(\"char3\").getString(\"color\")));\n }\n if(!gameMaster.getE(4).isDead()) {\n ((TextView)findViewById(R.id.eslot4)).setText(json.getJSONObject(\"char4\").getString(\"graphic\"));\n ((TextView)findViewById(R.id.eslot4)).setTextColor(Color.parseColor(json.getJSONObject(\"char4\").getString(\"color\")));\n }\n\n } catch (JSONException e) {\n\n e.printStackTrace();\n }\n\n ((TextView)findViewById(R.id.pslot1)).setText(Guser.getGraphicFromPosition(teams.get(position).getChar1()));\n ((TextView)findViewById(R.id.pslot2)).setText(Guser.getGraphicFromPosition(teams.get(position).getChar2()));\n ((TextView)findViewById(R.id.pslot3)).setText(Guser.getGraphicFromPosition(teams.get(position).getChar3()));\n ((TextView)findViewById(R.id.pslot4)).setText(Guser.getGraphicFromPosition(teams.get(position).getChar4()));\n\n ((TextView)findViewById(R.id.pslot1)).setTextColor(Color.parseColor(Guser.getColorFromPosition(teams.get(position).getChar1())));\n ((TextView)findViewById(R.id.pslot2)).setTextColor(Color.parseColor(Guser.getColorFromPosition(teams.get(position).getChar2())));\n ((TextView)findViewById(R.id.pslot3)).setTextColor(Color.parseColor(Guser.getColorFromPosition(teams.get(position).getChar3())));\n ((TextView)findViewById(R.id.pslot4)).setTextColor(Color.parseColor(Guser.getColorFromPosition(teams.get(position).getChar4())));\n }", "@Override\n\t\t\t\tpublic void keyPressed(KeyEvent e)\n\t\t\t\t{\n\t\t\t\t if((e.getKeyCode() == KeyEvent.VK_D) || e.getKeyCode() == (KeyEvent.VK_RIGHT))\n\t\t\t\t pl.moveXspeed += pl.accelXspeed;\n\t\t\t\t \t\t\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_A) || e.getKeyCode() == (KeyEvent.VK_LEFT))\n\t\t\t\t pl.moveXspeed -= pl.accelXspeed;\n\t\t\t\t \n\t\t\t\t // Moving on the y axis.\n\t\t\t\t if(e.getKeyCode() == (KeyEvent.VK_W) || e.getKeyCode() == (KeyEvent.VK_UP))\n\t\t\t\t pl.moveYspeed -= pl.accelYspeed;\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_S) || e.getKeyCode() == (KeyEvent.VK_DOWN))\n\t\t\t\t pl.moveYspeed += pl.accelYspeed;\n\t\t\t\t else\n\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 if (GameOn == true){\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t else if (GameOn == false )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t \n\t\t\t\t \t \t\t\t\t\t\t\t\n\t\t\t\t\t\tData = \" Number of rockets remaining: \" + pl.NumRockets \n\t\t\t\t\t\t\t+ \"Number of bullets remaining: \" +pl.NumBullets\n\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health\n\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies\n\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies;\n\t\t\t\t \n\t\t\t\t \t Email = new EmailGUI(Data); \n\t\t\t\t \t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t /* else if (WinsState == true )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t //*******************stoip game here and send email with game details\n\t\t\t\t \t Data = \" Number of rockets remaining: \" + pl.NumRockets +\",\" \n\t\t\t\t\t\t\t\t\t+ \" Number of bullets remaining: \" +pl.NumBullets+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies+\",\"\n\t\t\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t \t Email = new EmailGUI(Data); \n\t\t\t\t\t\t \t \n\t\t\t\t }*/\n\t\t\t\t\n\t\t\t\t}", "@Override\n public void update() {\n if(alive==false){\n afterBeKilled();\n return;\n }\n animate();\n chooseState();\n checkBeKilled();\n if(attack){\n if(timeBetweenShot<0){\n chooseDirection();\n attack();\n timeBetweenShot=15;\n }\n else{\n timeBetweenShot--;\n }\n\n }\n else{\n calculateMove();\n setRectangle();\n }\n }", "public void render(GameContainer gc, Graphics g){\n\n for(Renderable r:renderables){\n r.render(gc, g);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.VICTORYROOM) {\n this.gameData.getImageList().get(2).draw(226, 284);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.DEFEATROOM) {\n this.gameData.getImageList().get(3).draw(120, 288);\n }\n\n\n if(roomType == GAMEROOM){\n\n for(Renderable l: this.gameData.getLinkList()){\n l.render(gc, g);\n }\n for(Renderable s: this.gameData.getSystemList()){\n s.render(gc, g);\n }\n\n this.gameData.getImageList().get(0).draw(300, 5);\n this.gameData.getImageList().get(1).draw(800, 5);\n this.gameData.getButtonsImages().get(\"Enemy\").drawNextSubimage(600, 16);\n this.gameData.getButtonsImages().get(\"Allied\").drawNextSubimage(500, 16);\n\n TrueTypeFont font = this.gameData.getFont(\"UITopFont\");\n font.drawString(536, 0, \"VS\" , Color.green);\n\n int popa = this.gameData.getPopA();\n int pope = this.gameData.getPopE();\n int resa = this.gameData.getResA();\n int rese = this.gameData.getResE();\n\n if ( popa > 1000000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000000 + \"M\"), 0, \"\"+popa/1000000 + \"M\" , Color.cyan);\n else if ( popa > 1000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000 + \"K\"), 0, \"\"+popa/1000 + \"K\" , Color.cyan);\n else font.drawString(480 - font.getWidth(\"\"+popa), 0, \"\"+popa , Color.cyan);\n font.drawString(295 - font.getWidth(\"\"+resa), 0, \"\"+resa , Color.cyan);\n\n if ( pope > 1000000 ) font.drawString(620, 0, \"\"+pope/1000000 + \"M\" , Color.red);\n else if ( pope > 1000 ) font.drawString(620, 0, \"\"+pope/1000 + \"K\" , Color.red);\n else font.drawString(620, 0, \"\"+pope , Color.red);\n font.drawString(830, 0, \"\"+rese , Color.red);\n\n for(WindowSystem w: this.gameData.getWindowList()){\n if(w.getMs().isShowWindow())\n w.render(gc, g);\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n }", "public void update(){\n\t\t//Arm up (spool out cable from winch while going up)\n\t\tif(Robot.stick.getRawButton(4)){\n\t\t\ttalonArm.set(SmartDashboard.getNumber(\"Climber Arm Speed: \", 0.5));\n\t\t\twinchGroup.set(-SmartDashboard.getNumber(\"Climber Winch Speed: \", 0.25));\n\t\t}\n\t\t//Arm down\n\t\telse if(Robot.stick.getRawButton(2)){\n\t\t\ttalonArm.set(-SmartDashboard.getNumber(\"Climber Arm Speed: \", 0.5));\n\t\t}\n\t\t//Stop moving\n\t\telse{\n\t\t\ttalonArm.set(0);\n\t\t\twinchGroup.set(0);\n\t\t}\n\t\t//Climb with winch\n\t\tif(Robot.stick.getRawButton(1)){\n\t\t\twinchGroup.set(SmartDashboard.getNumber(\"Climber Winch Speed: \", 0.25));\n\t\t}\n\t}", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update() {\n\t\t\n\t}", "@Override\n public void update(Input input) {\n\n tickCounter++;\n // This logic was taken from the sample solution\n if (this.endOfGame || input.wasPressed(Keys.ESCAPE)){\n Window.close();\n } else{\n BACKGROUND.drawFromTopLeft(0, 0);\n treasure.printImage();\n displayEntity(entityList);\n\n // Game proceeds as the speed of a tick\n if (tickCounter%10 == 0){\n player.printImage();\n\n // Player updates including the movement and setting her direction\n player.playerUpdate(this);\n\n // Bullet movement to a zombie\n if(player.getShooting()) {\n player.getBullet().printImage();\n player.getBullet().move();\n\n }\n\n\n } else {\n player.printImage();\n if(player.getShooting()){\n player.getBullet().printImage();\n }\n }\n }\n }" ]
[ "0.70985377", "0.70835453", "0.7066767", "0.69658655", "0.6938015", "0.6935518", "0.68727106", "0.6808423", "0.6776788", "0.6709139", "0.6696304", "0.6672432", "0.66716856", "0.6599922", "0.65983427", "0.65901595", "0.65900546", "0.65897757", "0.6565734", "0.6565734", "0.6565734", "0.6565734", "0.6565734", "0.6565734", "0.6565734", "0.6565734", "0.65562505", "0.65304035", "0.6528343", "0.65270317", "0.65121174", "0.65119183", "0.6503575", "0.6500272", "0.6492972", "0.64895904", "0.64835817", "0.6482676", "0.64528364", "0.64084613", "0.6405535", "0.64039606", "0.64012665", "0.6398121", "0.6396", "0.6393754", "0.63845617", "0.63697845", "0.6366603", "0.63606143", "0.6349003", "0.6345675", "0.6332027", "0.63283914", "0.63162965", "0.63128436", "0.6312816", "0.63119495", "0.6306764", "0.6306429", "0.63013124", "0.62958246", "0.6295091", "0.62895274", "0.6288784", "0.6283325", "0.62761277", "0.62746066", "0.6272694", "0.6270035", "0.625747", "0.6256889", "0.6256154", "0.6245283", "0.62362176", "0.6235252", "0.6231365", "0.6229217", "0.6225952", "0.6222576", "0.6222516", "0.62222904", "0.62215424", "0.6219561", "0.6217181", "0.62128216", "0.6198651", "0.6198206", "0.6197853", "0.6196851", "0.61951697", "0.6194786", "0.6194786", "0.6194786", "0.6194786", "0.6194786", "0.6194786", "0.6194786", "0.6191067", "0.618656" ]
0.7034485
3