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
Register a new tick callback
public void registerTickCallback(final BitfinexTickerSymbol symbol, final BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException { tickerCallbacks.registerCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EngineTickCallback {\n\t/**\n\t * The method the engine calls when it ticks.\n\t */\n\tvoid tick();\n}", "public interface OnTickListener {\r\n void onTick();\r\n}", "@Override\n public void onTick(long arg0) {\n }", "public boolean onTick();", "@Override\n\t\tpublic void onTick(long arg0) {\n\t\t\t\n\t\t}", "void tick(long tickSinceStart);", "void tick(long ticksSinceStart);", "public void tick() {\r\n }", "public abstract void onTick(long millisUntilFinished);", "public void tick();", "public void tick();", "public void tick();", "public void tick() {\r\n tick++;\r\n }", "protected abstract void tick();", "public void tick(double dt) {\n }", "public void tick() {\n\t}", "public void tick() {\n\t}", "void setTick(int tick);", "public abstract void tick();", "void incrementTick();", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\n\tpublic void tick() {\n\n\t}", "void tick();", "void tick();", "@Subscribe\n public void onTick(EventTick IlIlIIIIllIlIIl) {\n }", "private void checkTickListener()\n\t{\n\t}", "public void setOnTickListener(OnTickListener listener)\r\n\t{\r\n\t\ttickListener = listener;\r\n\t}", "public final void onWorldTick() {\n onTick();\n }", "@Override\r\n\t\tprotected void onTick() {\n\r\n\t\t}", "public void onTick(long millisUntilFinished) {\n\t\t }", "@Override\n public void onTick() {\n \n }", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "void tick(H host, int systemTick);", "public abstract void update(int tick);", "@Override\n\tpublic void tick(TrafficSignal TS) {\n\t\t\n\t}", "public void setFireTicks ( int ticks ) {\n\t\texecute ( handle -> handle.setFireTicks ( ticks ) );\n\t}", "public interface TickListener {\n void playingFieldHasTicked();\n}", "public void handleNewTick(final BitfinexTickerSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\ttickerCallbacks.handleEvent(currencyPair, tick);\n\t}", "@Override\n public void tick() {\n super.tick();\n }", "public void onTick(long millisUntilFinished) {\n }", "public void onTick(long millisUntilFinished) {\n }", "public void setTick(long tick) {\n this.tick = tick;\n }", "public void setTick(long tick) {\n this.tick = tick;\n }", "@Override\n public void onTick(long millisUntilFinished) {\n }", "@Override\n\tpublic void onTickInGame() {\n\t\tticksExisted += 1;\n\t}", "public void onTick(long millisUntilFinished) {\n }", "protected WrapperTickEvent()\n {\n }", "public void onTick(long millisUntilFinished) {\n }", "public static void tick() {\n if (tickTime == 0L) {\n tickTime = System.currentTimeMillis();\n } else {\n System.err.println(\"Must call tock before tick\");\n System.exit(1);\n }\n }", "@Override\n public void onTick(long millisUntilFinished) {\n }", "@Override\n public void onTick(long millisUntilFinished) {\n }", "public Tick() {\n\t\tthis.start = System.currentTimeMillis();\n\t\tthis.last = start;\n\t}", "@Override\n\t\tpublic void onTick(long millisUntilFinished) {\n\t\t}", "public void onTimeTick() {\n tick++;\n try {\n sendBeaconLog(10);\n } catch (InterruptedException e) {\n }\n if (tick % 10 == 0) {\n sendDirectedPresence();\n }\n }", "public synchronized void tick(){\r\n\t\ttime++;\r\n\t\tnotifyAll();\r\n\t}", "void drawCurrentTick();", "private static void tickOnThread() {\n final Thread thread = new Thread(new Runnable(){\n @Override\n public void run() {\n tick(true);\n }\n });\n thread.start();\n }", "public void tick()\r\n\t{\r\n\t\tduration = (int) (((Sys.getTime() - lastCall) * resolution) / Sys\r\n\t\t\t\t.getTimerResolution());\r\n\t\tlastCall = Sys.getTime();\r\n\t}", "public void tick() {\n\t\ttick(1);\n\t}", "@Override\n public void reactTo(Tick tick) {\n\ttry {\n\t Thread.sleep(FRAME_INTERVAL_MILLIS);\n\t} catch (InterruptedException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\tscreen.update();\n\tmpq.add(new Tick(tick.time() + 1));\n }", "public void onTick(long millisUntilFinished) {\n }", "public void onTick(long millisUntilFinished) {\n }", "@Override\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t}", "public void onTick() {\n // Tick all particles\n Iterator<Particle> iterator = this.particles.iterator();\n while (iterator.hasNext()) {\n Particle particle = iterator.next();\n\n // Tick this particle\n particle.onTick();\n\n // Remove particle when removed flag is set\n if (particle.removed) {\n iterator.remove();\n }\n }\n }", "boolean trigger(int ticks);", "@Override\r\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t\t\r\n\t\t\t}", "public void onTick()\n\t{\n\t\tsuper.onTick();\n\t\ttime++;\n\t\tif(time>=40)\n\t\t{\n\t\t\tif(direction == 0)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t\telse if(direction == 1)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t}\n\t\tif(direction == 0)\n\t\t{\n\t\t\tleft();\n\t\t\tif(hitcher!= null)\n\t\t\t{\n\t\t\t\thitcher.left(speed);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(direction == 1)\n\t\t{\n\t\t\tright();\n\t\t\tif(hitcher!=null)\n\t\t\t{\n\t\t\t\thitcher.right(speed);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void cycleOutput(long tick)\n {\n }", "public void tick(){\n camera.tick(player);\n handler.tick();\n }", "public void tick(Integer tickerPos) {\n ticker.setY(tickerPos * CELL_HEIGHT);\n ticker.toFront();\n\n }", "void turnTick(Unit unit);", "public void onTick(long millisUntilFinished) {\n\t }", "@Override\r\n\tpublic void registerObserver(BeatObserver o) {\n\r\n\t}", "public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\tcandleCallbacks.handleEvent(currencyPair, tick);\n\t}", "public void handleTicksList(final BitfinexTickerSymbol symbol, final List<BitfinexTick> ticksBuffer) {\n\t\ttickerCallbacks.handleEventsList(symbol, ticksBuffer);\n\t}", "public void setTickFreq(long tickFreq) {\n\t\tthis.tickFreq = tickFreq;\n\t}", "public void onTick(long millisecondsUnitlFinished){\n\n Log.i(\"info\", String.valueOf(millisecondsUnitlFinished / 1000));\n\n }", "@Override\n public void livingTick() {\n super.livingTick();\n }", "public interface ITickTimer<H extends Object>\n{\n /**\n * Called each tick of the host machine, item, or entity\n *\n * @param host - optional, host of the timer\n * @param systemTick - tick of the machine, item, or entity\n */\n void tick(H host, int systemTick);\n}", "@Override\n protected void tick(final Tuple tuple) {\n\n }", "public void setTicks(final int t) {\r\n ticks = t;\r\n }", "public boolean hasTick();", "public void onTick(long millisUntilFinished) {\n updatedTime = millisUntilFinished;\n\n // Mise à jour\n update();\n }", "void setLastTickPos(Vec3 pos);", "public interface TimeDriven {\n TradeSignal onSecondTick();\n}", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "@Override\n public void timingSourceTick(TimingSource source, long nanoTime) {\n if (isRunning())\n notifyListenersAboutATimingSourceTick(nanoTime);\n }", "protected abstract void registerObserver();", "private void answerTick(Tick tick) {\n\t\tTickAnswer tickAnswer = new TickAnswer(tick, this);\n\t\tEventBus.getDefault().post(tickAnswer);\n\t}", "public void addTimeObserver(TimeObserver observer);" ]
[ "0.68207455", "0.6751216", "0.67103225", "0.6688099", "0.66807276", "0.6617441", "0.6548646", "0.6519665", "0.64598423", "0.64547", "0.64547", "0.64547", "0.64198637", "0.6394068", "0.6378133", "0.6371842", "0.6371842", "0.63616574", "0.63282555", "0.6314355", "0.62979305", "0.62979305", "0.62979305", "0.62979305", "0.62979305", "0.62979305", "0.62979305", "0.6297177", "0.6297177", "0.6250292", "0.6240336", "0.6240336", "0.61991686", "0.61916596", "0.6110444", "0.6103548", "0.60529834", "0.6039771", "0.60309106", "0.6003729", "0.59487534", "0.59364545", "0.59233755", "0.58857894", "0.58716863", "0.5842822", "0.5772062", "0.57683015", "0.57389235", "0.5716174", "0.5716174", "0.5694644", "0.5661331", "0.5651945", "0.56297314", "0.562031", "0.56182414", "0.5611062", "0.5611062", "0.5593421", "0.5585431", "0.5583966", "0.55807686", "0.5573279", "0.5561468", "0.55482846", "0.5544402", "0.553386", "0.55325985", "0.55325985", "0.54932463", "0.5484439", "0.5456842", "0.54346716", "0.54346716", "0.53993684", "0.539658", "0.5389041", "0.5386883", "0.53849185", "0.5381911", "0.5358244", "0.53461874", "0.534332", "0.53229105", "0.53222215", "0.5308198", "0.52940005", "0.52915674", "0.5282197", "0.52811766", "0.52749795", "0.5273047", "0.52706444", "0.52692485", "0.52671546", "0.5258417", "0.52506214", "0.5234148", "0.52229077" ]
0.63860434
14
Remove the a tick callback
public boolean removeTickCallback(final BitfinexTickerSymbol symbol, final BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException { return tickerCallbacks.removeCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void decrementTick();", "public void o() {\n this.f760a.p().removeCallbacks(this.g);\n }", "public synchronized void stop(){\n\t\tif (tickHandle != null){\n\t\t\ttickHandle.cancel(false);\n\t\t\ttickHandle = null;\n\t\t}\n\t}", "KeyFrame removeKeyFrame(int tick) throws IllegalArgumentException;", "private void m76756h() {\n if (this.f61634d != null) {\n this.f61634d.removeAllListeners();\n this.f61634d.cancel();\n this.f61634d = null;\n }\n }", "public void removeTimeObserver(TimeObserver observer);", "private void m7230f() {\n this.f5601w.removeCallbacks(this.f5579D);\n }", "void unsetTimeInterval();", "@Override\n public void onTick(long arg0) {\n }", "public void cancelAnimationCallback() {\n this.mChoreographer.removeCallbacks(1, this.mNormalizedAnimationCallback, null);\n }", "@Override\r\n\tpublic void removeObserver(BeatObserver o) {\n\r\n\t}", "public void invalidateTickerHeartbeat() {\n\t\t// Invalidate last tick timetamps\n\t\tsynchronized (lastTick) {\n\t\t\tlastTickTimestamp.clear();\t\n\t\t}\n\t}", "@Override\n public void run() {\n signalPanel.clearChart();\n }", "private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "public void tick() {\n if (alpha > life ){\n alpha -= (life - 0.0001f);\n }else {\n handler.removeObject(this);\n }\n }", "void unsetSignalPeriod();", "@Override\n\tpublic boolean tick() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic void onTick(long arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thandler.removeCallbacks(updateThread);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void removeTrigger() {\n\t\tplayer.removeListener(this.listener, EventNameType.SOUL_FIGHT);\n\t}", "public void mo8963a() {\n if ((this instanceof OnMessageListener) && this.f14276h != null) {\n this.f14276h.removeMessageListener((OnMessageListener) this);\n }\n this.f14275g = null;\n super.mo8963a();\n }", "public void mo81218a() {\n HandlerC16593b bVar = this.f57893b;\n if (bVar != null) {\n bVar.removeCallbacksAndMessages(null);\n this.f57893b = null;\n }\n }", "private void handleActionBaz() {\n Notifier.cancelTimer(this);\n }", "private void m17251h() {\n this.f13994d.unregisterReceiver(this.f13995e);\n }", "private void checkTickListener()\n\t{\n\t}", "@Override\n public void removeNotify()\n {\n unregisterListeners();\n super.removeNotify();\n }", "public synchronized void postDeregister() {\n if (timer != null) {\n try {\n timer.cancel();\n } catch (Exception x) {\n if (LOG.isLoggable(Level.FINEST))\n LOG.log(Level.FINEST,\"Failed to cancel timer\",x);\n else if (LOG.isLoggable(Level.FINE))\n LOG.fine(\"Failed to cancel timer: \"+x);\n } finally {\n timer = null;\n }\n }\n }", "public void clearCallbacks() {\n callbacks.clear();\n }", "public boolean onTick();", "private void stopSeekHandler(){\n if (mUpdateTimeTask != null) handler.removeCallbacks(mUpdateTimeTask);\n }", "public void tick() {\r\n }", "static <T> void unregisterObserver(@NonNull Observer<T> cb) {\n if (Thread.currentThread() != Looper.getMainLooper().getThread()) {\n throw new IllegalStateException(\"Must be called on UI thread.\");\n }\n for (Iterator<CallbackSubscriptionTuple> i=callbacks().iterator(); i.hasNext(); ) {\n CallbackSubscriptionTuple cbSub = i.next();\n if (cbSub.cb.equals(cb)) {\n cbSub.sub.unsubscribe();\n i.remove();\n return;\n }\n }\n }", "@Override\n\tpublic void removeObserver(Sensor observer) {\n\n\t}", "public void removeTimerUpdateHandler(TimerUpdateHandler handler) {\r\n handlers.remove(handler);\r\n }", "void stopUpdateTimer();", "void unregisterObserver(BallStateObserver observer);", "public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }", "void unsetEvent();", "public void m6561c() {\n if (this.f5065a != null) {\n this.f5065a.end();\n this.f5065a.removeAllUpdateListeners();\n this.f5065a.cancel();\n }\n this.f5065a = null;\n this.f5080q = false;\n }", "public final void mo8963a() {\n if (this.f14276h != null) {\n this.f14276h.removeMessageListener(this);\n }\n if (this.f13399i != null) {\n this.f13399i.dispose();\n this.f13399i = null;\n }\n this.f13396d.removeObserver(this);\n super.mo8963a();\n }", "public void removeEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.remove(listener);\n\t}", "@Override\n\tpublic void tick() {\n\t\twhile (clicks.size() > 0)\n\t\t{\n\t\t\tClick click = clicks.remove(0);\n\t\t\tSystem.out.println(click.posX + \" \" + click.posY);\n\t\t}\n\t\twhile (presses.size() > 0)\n\t\t{\n\t\t\tPress press = presses.remove(0);\n\t\t}\n\t}", "public abstract void onTick(long millisUntilFinished);", "public void onTick(long millisUntilFinished) {\n }", "@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n super.onDestroy();\n }", "public void uninstallFirstDrawTrigger() {\n mFrameAdapter.getFrameContainer().getViewTreeObserver().removeOnGlobalLayoutListener(\n mFirstDrawTrigger);\n }", "public void onTick(long millisUntilFinished) {\n\t\t }", "void removeKeyframe(int time);", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n public void removeNotify() {\r\n // remove listener\r\n component.getResults().removeLabTestListener(this);\r\n \r\n super.removeNotify();\r\n }", "public abstract void unschedule();", "public void onTick(long millisUntilFinished) {\n }", "public void removeListeners() {\n listeners = new ArrayList<MinMaxListener>();\n listeners.add(evalFct);\n }", "public void tick() {\n\t}", "public void tick() {\n\t}", "public void onTick() {\n // Tick all particles\n Iterator<Particle> iterator = this.particles.iterator();\n while (iterator.hasNext()) {\n Particle particle = iterator.next();\n\n // Tick this particle\n particle.onTick();\n\n // Remove particle when removed flag is set\n if (particle.removed) {\n iterator.remove();\n }\n }\n }", "public void tick() {\n --this.peekTime;\n }", "public synchronized void stopUpdates(){\n mHandler.removeCallbacks(mStatusChecker);\n }", "@Override\r\n\tpublic void removeObserver(BpmObserver o) {\n\r\n\t}", "public void removeNPTListener(NPTListener l) {}", "public void removeAllListeners() {\n mCircularBar.removeAllListeners();\n }", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "public void removeCallback(EventCallback<T> callback) {\n callbacks.remove(callback);\n }", "private void m22003b() {\n if (this.f23836h) {\n this.f23833e.unregisterReceiver(this.f23837i);\n this.f23836h = false;\n }\n }", "public void mo43a() {\n if (this.f95b.isAlive()) {\n this.f95b.removeOnPreDrawListener(this);\n } else {\n this.f94a.getViewTreeObserver().removeOnPreDrawListener(this);\n }\n this.f94a.removeOnAttachStateChangeListener(this);\n }", "@Override\r\n\t\tprotected void onTick() {\n\r\n\t\t}", "public void onTick(long millisUntilFinished) {\n }", "@Override\n protected void unBindTarget() {\n this.mThemeCallback = null;\n }", "@Implementation(minSdk = O)\n protected void unregisterAudioPlaybackCallback(AudioManager.AudioPlaybackCallback cb) {\n audioPlaybackCallbacks.remove(cb);\n }", "void unsetWheel();", "@Override\n public void onTick(long millisUntilFinished) {\n }", "public void DelTrack(int position);", "public void mo26996b() {\n Animator animator = this.f24567g;\n if (animator != null) {\n animator.cancel();\n }\n }", "@Override\n public void unpin(IObserver observer) {\n listeners.remove(observer);\n }", "@Override\n\tpublic void tick() {\n\n\t}", "public void onTick(long millisUntilFinished) {\n }", "public interface OnTickListener {\r\n void onTick();\r\n}", "public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}", "private void removeTimeListeners()\n {\n myProcessorBuilder.getTimeManager().removeActiveTimeSpanChangeListener(myActiveTimeSpanChangeListener);\n myProcessorBuilder.getAnimationManager().removeAnimationChangeListener(myAnimationListener);\n myTimeAgnostic = true;\n }", "public void setNoDamageTicks ( int ticks ) {\n\t\texecute ( handle -> handle.setNoDamageTicks ( ticks ) );\n\t}", "@Override\n public void tick() {\n super.tick();\n }", "@Override\r\n public void removeUpdate(DocumentEvent e) {\n ActivoTimer();\r\n }", "void tick(long tickSinceStart);", "@Override\n public void onTick() {\n \n }", "public synchronized void remove(T e){\n callbackList.remove(e);\n }", "public void mo84626b() {\n AbstractC17367b bVar = this.f61225r;\n if (bVar != null) {\n bVar.mo84655a();\n }\n RunnableC17369d dVar = this.f61226s;\n if (dVar != null) {\n removeCallbacks(dVar);\n this.f61226s = null;\n }\n }", "void clearAndNotify();", "public void mo34039b() {\n this.f30043c--;\n if (this.f30043c == 0) {\n this.f30042b.unregisterReceiver(f30040e);\n }\n }", "public void\t\tremoveUCallbackListener(String\t\ttag);", "private void worldTimerDecrementer() {\n worldTimer--;\n }", "@Override\n public synchronized void removeTileObserver(final TileObserver observer) {\n observers = removeTileObserver(observers, observer);\n }", "void unsubscribe();", "@Override\n public void unregisterCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.remove(callback);\n }" ]
[ "0.6819692", "0.6701239", "0.6372053", "0.6353342", "0.6327274", "0.623736", "0.6226006", "0.6203567", "0.6160556", "0.6156078", "0.61147416", "0.61024594", "0.60976833", "0.60349655", "0.60336906", "0.60321826", "0.59972936", "0.5996787", "0.59666425", "0.5946731", "0.5931914", "0.5911958", "0.590483", "0.59019643", "0.59011924", "0.58933204", "0.5873385", "0.5873306", "0.583541", "0.5834064", "0.5829746", "0.5807048", "0.5801485", "0.5798131", "0.5796285", "0.57935387", "0.57934624", "0.57905024", "0.5778276", "0.5773559", "0.5772554", "0.5772507", "0.57587695", "0.5753188", "0.5752249", "0.57473", "0.57472706", "0.5739188", "0.57271874", "0.57271874", "0.57262737", "0.57200015", "0.571468", "0.57110226", "0.57091", "0.57091", "0.56952584", "0.5684497", "0.5676936", "0.5676918", "0.567589", "0.5671446", "0.56667536", "0.56667536", "0.56667536", "0.56667536", "0.56667536", "0.56667536", "0.56667536", "0.56620073", "0.5660896", "0.56556225", "0.56489897", "0.5643371", "0.56421304", "0.56408364", "0.5639446", "0.56316113", "0.5630979", "0.56305623", "0.5625974", "0.5625458", "0.5614986", "0.56131405", "0.56079674", "0.5606988", "0.5603366", "0.55956477", "0.55859697", "0.55819637", "0.5566041", "0.556586", "0.555109", "0.5548829", "0.5545924", "0.5542076", "0.55385673", "0.5534233", "0.552919", "0.5526587" ]
0.6121142
10
Process a list with ticks
public void handleTicksList(final BitfinexTickerSymbol symbol, final List<BitfinexTick> ticksBuffer) { tickerCallbacks.handleEventsList(symbol, ticksBuffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addIsochronesToChart(ArrayList<ArrayList<Star>> list) {\n int isoCounter = 0;\n int MAX_ISOCHRONES = 400;\n int SKIPPING_COUNT = list.size() / MAX_ISOCHRONES + 1;\n for (ArrayList<Star> isochrone : list) {\n isoCounter++;\n\n if (isoCounter % SKIPPING_COUNT != 0) {\n continue;\n }\n\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n XYChart.Series series = new XYChart.Series();\n int index = 0;\n for (Star s : isochrone) {\n if (index % 4 != 0) { index++; continue; } //faster rendering\n //need to invert x-axis and this solution sucks, but FIXME later\n series.getData().add(new XYChart.Data(-s.getTemperature(), s.getLuminosity()));\n index++;\n }\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n lineChart.getData().add(series);\n }\n });\n return null;\n }\n };\n\n Thread th = new Thread(task);\n th.setDaemon(true);\n th.start();\n }\n }", "void tick(long ticksSinceStart);", "private void emitTicks() {\n if (gameModel == null || lastTickTime == 0) return; // the game is paused\n\n while (lastTickTime < System.currentTimeMillis()) {\n lastTickTime += 1000f / gameModel.ticksPerSecond();\n ;\n for (Entity go : gameModel.entities) go.tick();\n }\n }", "protected List refreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {\n/* 1614 */ List result = new ArrayList();\n/* */ \n/* 1616 */ Font tickLabelFont = getTickLabelFont();\n/* 1617 */ g2.setFont(tickLabelFont);\n/* */ \n/* 1619 */ if (isAutoTickUnitSelection()) {\n/* 1620 */ selectAutoTickUnit(g2, dataArea, edge);\n/* */ }\n/* */ \n/* 1623 */ DateTickUnit unit = getTickUnit();\n/* 1624 */ Date tickDate = calculateLowestVisibleTickValue(unit);\n/* 1625 */ Date upperDate = getMaximumDate();\n/* */ \n/* 1627 */ boolean hasRolled = false;\n/* 1628 */ while (tickDate.before(upperDate)) {\n/* */ \n/* 1630 */ if (!hasRolled) {\n/* 1631 */ tickDate = correctTickDateForPosition(tickDate, unit, this.tickMarkPosition);\n/* */ }\n/* */ \n/* */ \n/* 1635 */ long lowestTickTime = tickDate.getTime();\n/* 1636 */ long distance = unit.addToDate(tickDate, this.timeZone).getTime() - lowestTickTime;\n/* */ \n/* 1638 */ int minorTickSpaces = getMinorTickCount();\n/* 1639 */ if (minorTickSpaces <= 0) {\n/* 1640 */ minorTickSpaces = unit.getMinorTickCount();\n/* */ }\n/* 1642 */ for (int minorTick = 1; minorTick < minorTickSpaces; minorTick++) {\n/* 1643 */ long minorTickTime = lowestTickTime - distance * minorTick / minorTickSpaces;\n/* */ \n/* 1645 */ if (minorTickTime > 0L && getRange().contains(minorTickTime) && \n/* 1646 */ !isHiddenValue(minorTickTime)) {\n/* 1647 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), \"\", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1653 */ if (!isHiddenValue(tickDate.getTime())) {\n/* */ TextAnchor rotationAnchor, anchor;\n/* */ String tickLabel;\n/* 1656 */ DateFormat formatter = getDateFormatOverride();\n/* 1657 */ if (formatter != null) {\n/* 1658 */ tickLabel = formatter.format(tickDate);\n/* */ } else {\n/* */ \n/* 1661 */ tickLabel = this.tickUnit.dateToString(tickDate);\n/* */ } \n/* */ \n/* 1664 */ double angle = 0.0D;\n/* 1665 */ if (isVerticalTickLabels()) {\n/* 1666 */ anchor = TextAnchor.CENTER_RIGHT;\n/* 1667 */ rotationAnchor = TextAnchor.CENTER_RIGHT;\n/* 1668 */ if (edge == RectangleEdge.TOP) {\n/* 1669 */ angle = 1.5707963267948966D;\n/* */ } else {\n/* */ \n/* 1672 */ angle = -1.5707963267948966D;\n/* */ }\n/* */ \n/* */ }\n/* 1676 */ else if (edge == RectangleEdge.TOP) {\n/* 1677 */ anchor = TextAnchor.BOTTOM_CENTER;\n/* 1678 */ rotationAnchor = TextAnchor.BOTTOM_CENTER;\n/* */ } else {\n/* */ \n/* 1681 */ anchor = TextAnchor.TOP_CENTER;\n/* 1682 */ rotationAnchor = TextAnchor.TOP_CENTER;\n/* */ } \n/* */ \n/* */ \n/* 1686 */ Tick tick = new DateTick(tickDate, tickLabel, anchor, rotationAnchor, angle);\n/* */ \n/* 1688 */ result.add(tick);\n/* 1689 */ hasRolled = false;\n/* */ \n/* 1691 */ long currentTickTime = tickDate.getTime();\n/* 1692 */ tickDate = unit.addToDate(tickDate, this.timeZone);\n/* 1693 */ long nextTickTime = tickDate.getTime();\n/* 1694 */ for (int minorTick = 1; minorTick < minorTickSpaces; \n/* 1695 */ minorTick++) {\n/* 1696 */ long minorTickTime = currentTickTime + (nextTickTime - currentTickTime) * minorTick / minorTickSpaces;\n/* */ \n/* */ \n/* 1699 */ if (getRange().contains(minorTickTime) && \n/* 1700 */ !isHiddenValue(minorTickTime)) {\n/* 1701 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), \"\", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* */ \n/* 1710 */ tickDate = unit.rollDate(tickDate, this.timeZone);\n/* 1711 */ hasRolled = true;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1716 */ return result;\n/* */ }", "public void tick() {\n Instant now = clock.instant();\n SortedMap<Instant, Set<Endpoint>> range = timeouts.headMap(now);\n\n Set<Endpoint> processed = new HashSet<>();\n for (Set<Endpoint> batch : range.values()) {\n for (Endpoint endpoint : batch) {\n if (processed.contains(endpoint)) {\n continue;\n }\n processed.add(endpoint);\n checkExpiration(now, endpoint);\n }\n }\n range.clear();\n }", "public ListTimer(List<Integer> list){\n\t\tsuper();\n\t\tthis.list = list;\n\t}", "private List<Tick> loadTicks(InputStream pInput) \n throws\n IOException\n {\n List<Tick> result = new ArrayList<Tick>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(pInput));\n\n String line;\n final Map<String, String> properties = new HashMap<String, String>();\n \n while ( (line = reader.readLine()) != null) {\n String str = line.trim();\n if (str.length() == 0 || str.startsWith(\"#\")) {\n // Skip comment\n } else if (str.startsWith(\"[\")) {\n // start new tick\n if (!properties.isEmpty()) {\n Tick tick = new Tick();\n tick.restore(mRegistry, properties);\n result.add(tick);\n properties.clear();\n }\n String name = str.substring(1, str.length() - 1);\n properties.put(Tick.P_TICK, name);\n } else if (properties != null) {\n // tick parameters\n int valueSep = str.indexOf('=');\n if (valueSep != -1) {\n String key = str.substring(0, valueSep).trim();\n String value = str.substring(valueSep + 1).trim();\n properties.put(key, value);\n }\n }\n }\n \n if (!properties.isEmpty()) {\n Tick tick = new Tick();\n tick.restore(mRegistry, properties);\n result.add(tick);\n }\n\n return result;\n }", "void tick(long tickSinceStart);", "public void tick()\n\t{\n\t\tfor(int i = 0; i < peopleList.size(); i++) {\n\t\t\tPerson tempObject = peopleList.get(i);\n\t\t\ttempObject.tick();\n\t\t}\n\t}", "public void tick() {\n\t\tground.tick(this);\n\t\tfor(Item item : new ArrayList<>(items)) {\n\t\t\titem.tick(this);\n\t\t}\n\t}", "public abstract EnumSet<TickType> ticks();", "public int getTicks()\r\n\t{\r\n\t\treturn m_ticks;\r\n\t}", "public void _setTicks() {\n if (!Double.isNaN(tickIncrement)) {\n setTicksByIncr(tickIncrement);\n return;\n }\n double diff = Math.abs(max - min);\n if (!(diff > 0.)) {\n int tn = 2;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n ticks = new double[tn];\n int i = 0;\n if (nanW > 0) {\n ticks[i++] = 0.;\n ticks[i++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NaN;\n }\n }\n if (negW > 0) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n ticks[i++] = 0. + nanW + negW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n }\n ticks[i++] = 0. + nanW + posW;\n ticks[i++] = min;\n if (posW > 0) {\n ticks[i++] = size-posW+1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n ticks[i++] = size-1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n }\n return;\n }\n double exp = Math.log(diff) * 0.43429448190325176; // log10\n int expi = -(int)Math.floor(exp);\n double scale = Math.pow(10.,expi);\n double smin = Math.floor(min * scale);\n double smax = Math.ceil(max * scale);\n int siz = size - nanW - negW - nanW;\n int sdiff = (int)(smax - smin);\n if (sdiff > siz/2)\n scale *= .5;\n else if (sdiff < 3)\n scale *= 4;\n else if (sdiff < 5)\n scale *= 2;\n double incr = 1./scale;\n int count = 0;\n double sval = smin / scale;\n if (max > min) {\n smin = Math.ceil(min * scale);\n smax = Math.floor(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval <= smax ) {\n count+=2;\n sval += incr;\n }\n } else {\n incr *= -1.;\n smin = Math.floor(min * scale);\n smax = Math.ceil(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval >= smax ) {\n count+=2;\n sval += incr;\n }\n }\n int tn = count;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n sval = smin / scale;\n ticks = new double[tn];\n int pi = 0; // pixelIndex\n if (nanW > 0 && pi < tn) {\n ticks[pi++] = 0.;\n ticks[pi++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NaN;\n }\n }\n if (negW > 0 && pi < tn) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n ticks[pi++] = 0. + nanW + negW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n }\n for (int i = 0; i < count && pi < tn; i += 2) {\n ticks[pi++] = nanW + negW + (siz - 1) * ((sval - min ) / (max - min));\n ticks[pi++] = Math.round(sval*scale)/scale;\n sval += incr;\n }\n if (posW > 0 && pi < tn) {\n ticks[pi++] = size-posW+1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n ticks[pi++] = size-1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n }\n }", "public void tick() {\n\t\tfor (Entity e : entities) {\n\t\t\te.tick();\n\t\t}\n\t}", "public void updateTicksCount(int ticks) {\r\n\t\tsimTicks.setText(\"Ticks: \" + ticks);\r\n\t}", "public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge) {\n/* 1558 */ List result = null;\n/* 1559 */ if (RectangleEdge.isTopOrBottom(edge)) {\n/* 1560 */ result = refreshTicksHorizontal(g2, dataArea, edge);\n/* */ }\n/* 1562 */ else if (RectangleEdge.isLeftOrRight(edge)) {\n/* 1563 */ result = refreshTicksVertical(g2, dataArea, edge);\n/* */ } \n/* 1565 */ return result;\n/* */ }", "protected List refreshTicksVertical(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {\n/* 1732 */ List result = new ArrayList();\n/* */ \n/* 1734 */ Font tickLabelFont = getTickLabelFont();\n/* 1735 */ g2.setFont(tickLabelFont);\n/* */ \n/* 1737 */ if (isAutoTickUnitSelection()) {\n/* 1738 */ selectAutoTickUnit(g2, dataArea, edge);\n/* */ }\n/* 1740 */ DateTickUnit unit = getTickUnit();\n/* 1741 */ Date tickDate = calculateLowestVisibleTickValue(unit);\n/* 1742 */ Date upperDate = getMaximumDate();\n/* */ \n/* 1744 */ boolean hasRolled = false;\n/* 1745 */ while (tickDate.before(upperDate)) {\n/* */ \n/* */ \n/* 1748 */ if (!hasRolled) {\n/* 1749 */ tickDate = correctTickDateForPosition(tickDate, unit, this.tickMarkPosition);\n/* */ }\n/* */ \n/* */ \n/* 1753 */ long lowestTickTime = tickDate.getTime();\n/* 1754 */ long distance = unit.addToDate(tickDate, this.timeZone).getTime() - lowestTickTime;\n/* */ \n/* 1756 */ int minorTickSpaces = getMinorTickCount();\n/* 1757 */ if (minorTickSpaces <= 0) {\n/* 1758 */ minorTickSpaces = unit.getMinorTickCount();\n/* */ }\n/* 1760 */ for (int minorTick = 1; minorTick < minorTickSpaces; minorTick++) {\n/* 1761 */ long minorTickTime = lowestTickTime - distance * minorTick / minorTickSpaces;\n/* */ \n/* 1763 */ if (minorTickTime > 0L && getRange().contains(minorTickTime) && \n/* 1764 */ !isHiddenValue(minorTickTime)) {\n/* 1765 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), \"\", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 1770 */ if (!isHiddenValue(tickDate.getTime())) {\n/* */ TextAnchor rotationAnchor, anchor;\n/* */ String tickLabel;\n/* 1773 */ DateFormat formatter = getDateFormatOverride();\n/* 1774 */ if (formatter != null) {\n/* 1775 */ tickLabel = formatter.format(tickDate);\n/* */ } else {\n/* */ \n/* 1778 */ tickLabel = this.tickUnit.dateToString(tickDate);\n/* */ } \n/* */ \n/* 1781 */ double angle = 0.0D;\n/* 1782 */ if (isVerticalTickLabels()) {\n/* 1783 */ anchor = TextAnchor.BOTTOM_CENTER;\n/* 1784 */ rotationAnchor = TextAnchor.BOTTOM_CENTER;\n/* 1785 */ if (edge == RectangleEdge.LEFT) {\n/* 1786 */ angle = -1.5707963267948966D;\n/* */ } else {\n/* */ \n/* 1789 */ angle = 1.5707963267948966D;\n/* */ }\n/* */ \n/* */ }\n/* 1793 */ else if (edge == RectangleEdge.LEFT) {\n/* 1794 */ anchor = TextAnchor.CENTER_RIGHT;\n/* 1795 */ rotationAnchor = TextAnchor.CENTER_RIGHT;\n/* */ } else {\n/* */ \n/* 1798 */ anchor = TextAnchor.CENTER_LEFT;\n/* 1799 */ rotationAnchor = TextAnchor.CENTER_LEFT;\n/* */ } \n/* */ \n/* */ \n/* 1803 */ Tick tick = new DateTick(tickDate, tickLabel, anchor, rotationAnchor, angle);\n/* */ \n/* 1805 */ result.add(tick);\n/* 1806 */ hasRolled = false;\n/* */ \n/* 1808 */ long currentTickTime = tickDate.getTime();\n/* 1809 */ tickDate = unit.addToDate(tickDate, this.timeZone);\n/* 1810 */ long nextTickTime = tickDate.getTime();\n/* 1811 */ for (int minorTick = 1; minorTick < minorTickSpaces; \n/* 1812 */ minorTick++) {\n/* 1813 */ long minorTickTime = currentTickTime + (nextTickTime - currentTickTime) * minorTick / minorTickSpaces;\n/* */ \n/* */ \n/* 1816 */ if (getRange().contains(minorTickTime) && \n/* 1817 */ !isHiddenValue(minorTickTime)) {\n/* 1818 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), \"\", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 1826 */ tickDate = unit.rollDate(tickDate, this.timeZone);\n/* 1827 */ hasRolled = true;\n/* */ } \n/* */ \n/* 1830 */ return result;\n/* */ }", "public void onTick() {\n if (bfs) {\n if (b.hasNext()) {\n b.next();\n }\n }\n if (dfs) {\n if (d.hasNext()) {\n d.next();\n }\n }\n }", "public void customTickTexts(String[] tickTextsArr) {\n LogUtil.info(TAG, \"customTickTexts( String[] tickTextsArr) begin\");\n this.mTickTextsCustomArray = tickTextsArr;\n if (mTickTextsArr != null) {\n for (int i = 0; i < mTickTextsArr.length; i++) {\n String tickText;\n if (i < tickTextsArr.length) {\n tickText = String.valueOf(tickTextsArr[i]);\n } else {\n tickText = \"\";\n }\n int index = i;\n if (mR2L) {\n index = mTicksCount - 1 - i;\n }\n mTickTextsArr[index] = tickText;\n if (mTextPaint != null && mRect != null) {\n mTextPaint.getTextBounds(tickText);\n mTickTextsWidth[index] = mRect.getWidth();\n }\n }\n invalidate();\n }\n LogUtil.info(TAG, \"customTickTexts( String[] tickTextsArr) end\");\n }", "public abstract int getTicks();", "public void onTick() {\r\n if (this.worklist.size() > 0) {\r\n ArrayList<ACell> tempWorklist = new ArrayList<ACell>();\r\n for (ACell c : this.worklist) {\r\n tempWorklist.add(c);\r\n }\r\n this.worklist = new ArrayList<ACell>();\r\n this.collector(tempWorklist);\r\n }\r\n else if (this.allCellsFlooded()) {\r\n if (this.worklist.size() > 0) {\r\n this.worklist = new ArrayList<ACell>();\r\n }\r\n this.drawWin();\r\n }\r\n else if (this.currTurn >= this.maxTurn) {\r\n if (this.worklist.size() > 0) {\r\n this.worklist = new ArrayList<ACell>();\r\n }\r\n this.drawLose();\r\n }\r\n }", "public void setTicks(final int t) {\r\n ticks = t;\r\n }", "private void sendTasks(ArrayList<Task> list) {\n output.println(list.size());\n for (Task t : list) {\n output.println(t.getDateString() + \" \" + t.getName());\n }\n }", "public void setFireTicks ( int ticks ) {\n\t\texecute ( handle -> handle.setFireTicks ( ticks ) );\n\t}", "@Override\n public List<Bullet> tick(List<Creep> creeps, boolean levelInProgress) {\n timeToNextShot--;\n List<Bullet> fired = null;\n if(imageRotates || timeToNextShot <= 0) {\n // The creeps are sorted by the default creep comparator in Clock, so that they don't\n // have to be resorted for any tower left on the default (which is often most of them)\n if(!creepComparator.getClass().equals(DEFAULT_CREEP_COMPARATOR.getClass())) {\n // Make a copy so it can be sorted\n creeps = new ArrayList<Creep>(creeps);\n Collections.sort(creeps, creepComparator);\n }\n // If the image rotates, this needs to be done to find out the direction to rotate to\n fired = fireBullets(creeps);\n }\n if (timeToNextShot <= 0 && fired != null && fired.size() > 0) {\n timeToNextShot = fireRate;\n // Use bulletsToAdd as some towers launch bullets between ticks\n bulletsToAdd.addAll(fired);\n }\n List<Bullet> bulletsToReturn = bulletsToAdd;\n bulletsToAdd = new ArrayList<Bullet>();\n return bulletsToReturn;\n }", "public ListTimer(List<Integer> list, long elemGenSeed){\n\t\tsuper(elemGenSeed);\n\t\tthis.list = list;\n\n\t}", "private static void removeEmptyTicks(List<Tick> ticks) {\r\n\t\tfor (int i = ticks.size() - 1; i >= 0; i--) {\r\n\t\t\tif (ticks.get(i).getTrades() == 0) {\r\n\t\t\t\tticks.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@JSProperty(\"tickPositions\")\n void setTickPositions(double[] value);", "public void handleCandlestickList(final BitfinexCandlestickSymbol symbol, final List<BitfinexTick> ticksBuffer) {\n\t\tcandleCallbacks.handleEventsList(symbol, ticksBuffer);\n\t}", "public void onTick() {\n // Tick all particles\n Iterator<Particle> iterator = this.particles.iterator();\n while (iterator.hasNext()) {\n Particle particle = iterator.next();\n\n // Tick this particle\n particle.onTick();\n\n // Remove particle when removed flag is set\n if (particle.removed) {\n iterator.remove();\n }\n }\n }", "private static void showList(List<String> list, int offsetX, int offsetY) {\r\n\t\tfor (int i = 1; i <= list.size(); i++) {\r\n\t\t\tGAME.drawTextScreen(offsetX, offsetY + (LINE_HEIGHT * i), list.get(i - 1));\r\n\t\t}\r\n\t}", "void incrementTick();", "void tickHost(INDArray array);", "public void process( List<Point2D_F64> detectedDots ) {\n\t\t// Reset the tracker\n\t\tcurrentTracks.reset();\n\t\tglobalId_to_track.clear();\n\n\t\tdouble nano0 = System.nanoTime();\n\t\tperformTracking(detectedDots);\n\t\tdouble nano1 = System.nanoTime();\n\t\tperformDetection(detectedDots);\n\t\tdouble nano2 = System.nanoTime();\n\t\tsetTrackDescriptionsAndID();\n\t\tdouble nano3 = System.nanoTime();\n\n\t\tthis.timeTrack = (nano1 - nano0)*1e-6;\n\t\tthis.timeDetect = (nano2 - nano1)*1e-6;\n\t\tthis.timeUpdate = (nano3 - nano2)*1e-6;\n\t}", "public void addTicks(int toAdd)\r\n\t{\r\n\t\tm_ticks += toAdd;\r\n\t}", "public void tick() {\n boolean shouldHaltAfterTick = false;\n\n List<Pair<Movement, Bullet>> movements = new ArrayList<>();\n\n //Bullets on nodes\n Map<Coordinate, Bullet> capturedBullets = new HashMap<>(bullets);\n capturedBullets.keySet().retainAll(nodes.keySet());\n\n //Bullets not on nodes\n Map<Coordinate, Bullet> freeBullets = new HashMap<>(bullets);\n freeBullets.keySet().removeAll(capturedBullets.keySet());\n\n //Generate movements for free bullets\n for (Map.Entry<Coordinate, Bullet> entry : freeBullets.entrySet()) {\n Bullet bullet = entry.getValue();\n Coordinate coord = entry.getKey();\n Coordinate newCoord = entry.getKey().plus(bullet.getDirection()).wrap(width, height);\n movements.add(new Pair<>(new Movement(coord, newCoord), bullet));\n }\n\n //Update captured bullets\n for (Map.Entry<Coordinate, Bullet> entry : capturedBullets.entrySet()) {\n Coordinate coordinate = entry.getKey();\n INode node = nodes.get(coordinate);\n\n // special case\n if (node instanceof NodeHalt)\n shouldHaltAfterTick = true;\n\n //TODO this brings great shame onto my family\n Direction bulletDirection = entry.getValue().getDirection();\n Direction dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.antiClockwise();\n }\n Bullet bullet = new Bullet(bulletDirection, entry.getValue().getValue());\n\n Map<Direction, BigInteger> bulletParams = node.run(bullet);\n\n for (Map.Entry<Direction, BigInteger> newBulletEntry : bulletParams.entrySet()) {\n //TODO this too\n bulletDirection = newBulletEntry.getKey();\n dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.clockwise();\n }\n\n Bullet newBullet = new Bullet(bulletDirection, newBulletEntry.getValue());\n Coordinate newCoordinate = coordinate.plus(newBullet.getDirection()).wrap(width, height);\n Movement movement = new Movement(coordinate, newCoordinate);\n movements.add(new Pair<>(movement, newBullet));\n }\n }\n\n //Remove swapping bullets\n List<Movement> read = new ArrayList<>();\n Set<Coordinate> toDelete = new HashSet<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate from = movement.getFrom();\n Coordinate to = movement.getTo();\n boolean foundSwaps = read.stream().anyMatch(other -> from.equals(other.getTo()) && to.equals(other.getFrom()));\n if (foundSwaps) {\n toDelete.add(from);\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getFrom()) || toDelete.contains(pair.getKey().getTo()));\n\n //Remove bullets that end in the same place\n read.clear();\n toDelete.clear();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate to = movement.getTo();\n boolean foundSameFinal = read.stream().anyMatch(other -> to.equals(other.getTo()));\n if (foundSameFinal) {\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getTo()));\n\n //Move bullets\n Map<Coordinate, Bullet> newBullets = new HashMap<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Bullet bullet = pair.getValue();\n newBullets.put(movement.getTo(), bullet);\n }\n\n bullets.clear();\n bullets.putAll(newBullets);\n\n if (shouldHaltAfterTick)\n halt();\n }", "public void processList(List<String> inList);", "private static void printCloudletList(List<Cloudlet> list) {\n\t\tint size = list.size();\n\t\tCloudlet cloudlet;\n List<Double> CPUtime = new ArrayList<Double>();\n List <Double> cputime = new ArrayList<Double>();\n List <Double> start_time = new ArrayList<Double>();\n List<Double> starttime = new ArrayList<Double>();\n List<Double> endtime = new ArrayList<Double>();\n\t\tString indent = \" \";\n\t\tLog.printLine();\n\t\tLog.printLine(\"========== OUTPUT ==========\");\n\t\tDecimalFormat dft = new DecimalFormat(\"###.##\");\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tcloudlet = list.get(i);\n\t\t if (cloudlet.getCloudletStatus() == Cloudlet.SUCCESS){\n\t\t\t\tcputime.add(cloudlet.getActualCPUTime());\n\t\t\t\tstart_time.add(cloudlet.getExecStartTime());\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tcloudlet = list.get(i);\n\t\t\tif (cloudlet.getCloudletStatus() == Cloudlet.SUCCESS){\n\t\t if(!CPUtime.contains(cloudlet.getActualCPUTime())) {\n\t\t \t CPUtime.add(cloudlet.getActualCPUTime());\n\t\t \t }\n\t\t if(!starttime.contains(cloudlet.getExecStartTime())) {\n\t\t \t starttime.add(cloudlet.getExecStartTime());\n\t\t \t}\n\t\t if(!endtime.contains(cloudlet.getFinishTime())) {\n\t\t \t endtime.add(cloudlet.getFinishTime());\n\t\t \t }\n\t\t\t}\n\t\t}\n\t\t\n int n=0;\n\t\tfor (int i=0; i< CPUtime.size();i++) {\n\t\t\t\n n= Collections.frequency(cputime,CPUtime.get(i));\n Log.printLine(dft.format(n)+\" \"+\"Cloudlets finish in \"+ dft.format(CPUtime.get(i))+\"s\" );\n\t\t}\n\t\tLog.printLine();\n\t\tfor (int i=0; i< starttime.size();i++) {\n\t\t\t n= Collections.frequency(start_time,starttime.get(i));\n\t\t\t Log.printLine(dft.format(n)+\" \"+\"Cloudlets executes in time \"+ dft.format(starttime.get(i))+\"~\" + dft.format(endtime.get(i))+\"s\");\n\t\t }\n\t}", "public static <T, R> List<R> process(List<T> list, Function<T, R> f) {\n\t\tList<R> result = new ArrayList<>();\n\t\tfor (T t : list) {\n\t\t\tR r = f.apply(t);\n\t\t\tresult.add(r);\n\t\t}\n\t\treturn result;\n\t}", "public void setListOfTimes(ArrayList<Long> list)\r\n {\r\n //Check if the new list times is empty before setting the new list of times\r\n if(list.isEmpty())\r\n {\r\n //Outputs a warning message \r\n System.out.println(\"WARNING: You cannot assign a empty list of times\");\r\n }\r\n else \r\n {\r\n if(this.listOfTimes.isEmpty())\r\n {\r\n this.listOfTimes.addAll(list);\r\n }\r\n else \r\n {\r\n this.listOfTimes.clear();\r\n this.listOfTimes.addAll(0, list);\r\n }//end if \r\n }//end if\r\n }", "public void doTimingsEnd(String type, List<Integer> list) {\n\t\tfor (int i = 0; i < 1E5; i++) {\n\t\t\tlist.add(i);\n\t\t}\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\t\t\n\t\t// Add items at the end of the list\n\t\tfor (int i = 0; i < 1E5; i++) {\n\t\t\tlist.add(i);\n\t\t}\n\t\t\n\t\tlong end = System.currentTimeMillis();\n\t\t\n\t\tSystem.out.println(\"Time taken for: \" + type + \", was: \" + (end-start) + \"ms\");\n\t}", "public StockDateTime getTicks(Boolean ticks) {\n StockDateTime item = new StockDateTime(jsBase + \".ticks(\" + ticks + \")\");\n getTicks2.add(item);\n return item;\n }", "public static final List<NormalTrackTimeStamp> m130161a(long j, List<? extends NormalTrackTimeStamp> list) {\n long j2;\n boolean z;\n if (list == null) {\n return null;\n }\n Iterable iterable = list;\n Collection arrayList = new ArrayList();\n for (Object next : iterable) {\n NormalTrackTimeStamp normalTrackTimeStamp = (NormalTrackTimeStamp) next;\n if (normalTrackTimeStamp != null) {\n j2 = (long) normalTrackTimeStamp.getPts();\n } else {\n j2 = 0;\n }\n long j3 = j - j2;\n if (-160 <= j3 && 160 >= j3) {\n z = true;\n } else {\n z = false;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n return (List) arrayList;\n }", "protected abstract void tick();", "public double[] getTicks(int levels) {\n double step = Short.MAX_VALUE/(double)levels;\n\n double[] retdata = new double[levels];\n\n for (int i=0; i<levels; i++) {\n short v = (short)((i+1)*step);\n retdata[i] = calculate(new short[]{v});\n\n }\n return retdata;\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t// create array of values to add, before we start the timer\n\t\tBigDecimal[] values = new BigDecimal[ARRAY_SIZE];\n\t\tfor(int i=0; i<ARRAY_SIZE; i++) values[i] = new BigDecimal(i+1);\n\n\t\tsum = new BigDecimal(0.0);\n\t\tfor(int count=0, i=0; count<this.count; count++, i++) {\n\t\t\tif (i >= values.length) i = 0;\n\t\t\tsum = sum.add( values[i] );\n\t\t}\n\t\t\n\t\n\t}", "public StockDateTime getTicks(String ticks) {\n StockDateTime item = new StockDateTime(jsBase + \".ticks(\" + wrapQuotes(ticks) + \")\");\n getTicks1.add(item);\n return item;\n }", "public MyRenderer(List<Integer> list){\n\t\tcorrectList = list;\n\t}", "private static ArrayList<Float> manipulate(Set manipulatePosList, int anomaly, ArrayList<Float> simList) {\r\n for (Object elem : manipulatePosList) {\r\n switch (anomaly) {\r\n case 3:\r\n if ((Integer) elem == 0) {\r\n lowerLimNext = startHum + max_rateOfChange;\r\n } else {\r\n lowerLimNext = (float) simList.get((Integer) elem - 1) + max_rateOfChange;\r\n }\r\n upperLimNext = upperLimit;\r\n nextValue = calcNextValue(lowerLimNext, upperLimNext);\r\n simList.add((Integer) elem, nextValue);\r\n break;\r\n case 4:\r\n simList.add((Integer) elem, -1f);\r\n break;\r\n case 5:\r\n simList.add((Integer) elem, -1f);\r\n break;\r\n }\r\n }\r\n return simList;\r\n }", "@Override\n public void updateContainer(List<Task> taskList) {\n // variables used to update labels\n String labelText = \"\";\n long totalTime = 0L;\n\n // build the text for the internal label\n for (int i = 0; i < taskList.size(); i++) {\n // if second task or later, add a line break\n if (i > 0) labelText += \"\\n\";\n\n // get current task\n Task task = taskList.get(i);\n\n // add to the total time\n totalTime += task.getTotalTime();\n\n // update label text\n labelText += \" - \" + \n TimeUtils.timeAsLabelStr(task.getTotalTime()) +\n \" total for \" + task.getTitle();\n }\n\n // update total time label\n this.totalLabel.setText(\"Total Time: \" +\n TimeUtils.timeAsLabelStr(totalTime));\n\n // update the text of the internal label\n this.tasksLabel.setText(labelText);\n if (labelText.length() == 0) this.tasksLabel.setHidden(true);\n else this.tasksLabel.setHidden(false);\n this.forceRevalidate();\n }", "public void setTimerListData() {\n for (int i = 0; i < 10; i++) {\n TimerDisplay timer = new TimerDisplay();\n timer.setCurrentDate(\"Jan 0\" + i + \" 2017 00:00\");\n timer.setEndDate(\"Jan 0\" + (i+1) + \" 2017 00:00\");\n timer.setPercentage();\n\n listTimers.add(timer);\n }\n }", "public static void tick() {\n try {\n getActiveParticles().stream().filter((p) -> (p != null)).filter((p) -> (p.active)).forEach((p) -> {\n p.tick();\n });\n } catch (java.util.ConcurrentModificationException ex) {}\n }", "public void tick() {\r\n }", "public JsonArrayOfAtMillisecondsElement(final String name, final List<Long> values) {\n\t\tsuper(name, getStringList(values));\n\t}", "public void tick() {\n\t}", "public void tick() {\n\t}", "protected void process(List<Integer> publishedVals){\n for(int i =0; i<publishedVals.size();i++){\n resultTextArea.append(publishedVals.get(i) + \"\\n\");\n }\n }", "public int getTicks() {\n\t\treturn 0;\n\t}", "public void setTicksForNote(int ticks) {\n\t\tthis.ticksForNote = ticks;\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\n public void onTick(long arg0) {\n }", "public void updateList(long t) {\n\t\tfor (int i = 0; i < ballList.size(); i++) {\n\t\t\tballList.get(i).move(t);\n\t\t\t//System.out.printf(\"ball %d at %d %d\\n\", i, ballList.get(i).getX(), ballList.get(i).getY());\n\t\t}\n\t}", "public void tick() {\r\n tick++;\r\n }", "void start(int id, int ticks, boolean repeat);", "public byte[] saveTicks() \n throws\n IOException\n {\n DirectByteArrayOutputStream buffer = new DirectByteArrayOutputStream();\n PrintStream out = new PrintStream(buffer);\n \n for (Tick tick : mTicks) {\n Map<String, String> properties = tick.save();\n String name = properties.get(Tick.P_TICK);\n out.println(\"[\" + name + \"]\");\n \n List<String> keys = new ArrayList<String>(properties.keySet());\n Collections.sort(keys);\n for (String key : keys) {\n out.println(key + \"=\" + properties.get(key));\n }\n out.println();\n }\n \n out.close();\n return buffer.toByteArray();\n }", "public void run() {\r\n for (int i = 0; i < inputs.size(); i++) {\r\n String converted;\r\n //Converts the input string using the converter\r\n converted = converter.convert(inputs.get(i));\r\n //It adds to the output the converted string \r\n outputs.add(converted);\r\n //Prints the converted value\r\n System.out.println(converted);\r\n }\r\n\r\n }", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "public void tick(Integer tickerPos) {\n ticker.setY(tickerPos * CELL_HEIGHT);\n ticker.toFront();\n\n }", "@Override\n\tpublic void tick() {\n\n\t}", "private void processTaskList(List<Task> taskList) throws SQLException, DaoException {\n for (Task currentTask : taskList) {\n processTask(currentTask);\n }\n }", "private void addMetrics(List<MetricDatum> list,\n MetricValues metricValues,\n StandardUnit unit) {\n List<MachineMetric> machineMetrics = metricValues.getMetrics();\n List<Long> values = metricValues.getValues();\n for (int i=0; i < machineMetrics.size(); i++) {\n MachineMetric metric = machineMetrics.get(i);\n long val = values.get(i).longValue();\n // skip zero values in some cases\n if (val != 0 || metric.includeZeroValue()) {\n MetricDatum datum = new MetricDatum()\n .withMetricName(metric.getMetricName())\n .withDimensions(\n new Dimension()\n .withName(metric.getDimensionName())\n .withValue(metric.name()))\n .withUnit(unit)\n .withValue((double) val)\n ;\n list.add(datum);\n }\n }\n }", "public Integer getTicksPerBeat() {\n int ticks = 1;\n int gcd;\n for (int i = 0; i < phrases.size(); i++) {\n int phraseTicks = phrases.get(i).getTicks();\n /**\n * Computing the gcd of the two will help us compute the LCM.\n */\n gcd = 1;\n if (phraseTicks % 2 == 0 && ticks % 2 == 0)\n gcd = 2;\n for (int j = 3; j <= Math.min(phraseTicks, ticks); j++) {\n if (phraseTicks % j == 0 && ticks % j == 0) {\n gcd = j;\n }\n }\n /**\n * Compute the least common multiple of ticks and phraseTicks\n */\n ticks = phraseTicks * ticks / gcd;\n }\n return ticks;\n }", "private void updateEntityLabelList(Set<String> entity_tag_types, JList gui_list) {\n List<String> selection = Utils.jListGetValuesWrapper(gui_list);\n List<String> items = new ArrayList<String>();\n // Add the transforms\n BundlesG globals = getRTParent().getRootBundles().getGlobals();\n String postproc[] = BundlesDT.listAvailablePostProcessors();\n for (int i=0;i<postproc.length;i++) items.add(postproc[i]);\n /*\n String transforms[] = globals.getTransforms();\n for (int i=0;i<transforms.length;i++) items.add(transforms[i]);\n */\n // Add the tag types\n Iterator<String> it = entity_tag_types.iterator(); \n while (it.hasNext()) items.add(TAG_TYPE_LM + it.next());\n Collections.sort(items, new CaseInsensitiveComparator());\n // Insert the default items\n items.add(0, TIMEFRAME_LM);\n items.add(0, LASTHEARD_LM);\n items.add(0, FIRSTHEARD_LM);\n items.add(0, DEGREE_LM);\n items.add(0, TAGS_LM);\n items.add(0, BUNDLECOUNT_LM);\n items.add(0, ENTITYCOUNT_LM);\n items.add(0, ENTITY_LM);\n // Convert and update the list\n setListAndResetSelection(gui_list, items, selection);\n }", "@Override\n\t\tpublic void onTick(long arg0) {\n\t\t\t\n\t\t}", "public void tick() {\r\n assert (ic != null);\r\n \r\n Iterator<Item> it = items.iterator();\r\n while (it.hasNext()) {\r\n ic.setItem(it.next());\r\n ic.tick();\r\n if (ic.isItemPickedUp()) {\r\n it.remove();\r\n }\r\n }\r\n }", "T setValueAxes(List<ValueAxis> valueAxes);", "public void setTicksCount(int size) {\n\t\t\n\t}", "@Override\n public void runTasks() {\n BukkitTask task1 = new BukkitRunnable() {\n long start = 0;\n long now = 0;\n\n @Override\n public void run() {\n start = now;\n now = System.currentTimeMillis();\n long tdiff = now - start;\n\n if (tdiff > 0) {\n instTps = (float) (1000 / tdiff);\n }\n }\n }.runTaskTimer(Aurora.getInstance(), 0, 1);\n\n //Task to populate avgTps\n BukkitTask task2 = new BukkitRunnable() {\n ArrayList<Float> tpsList = new ArrayList<>();\n\n @Override\n public void run() {\n Float totalTps = 0f;\n\n tpsList.add(instTps);\n //Remove old tps after 15s\n if (tpsList.size() >= 15) {\n tpsList.remove(0);\n }\n for (Float f : tpsList) {\n totalTps += f;\n }\n avgTps = totalTps / tpsList.size();\n }\n }.runTaskTimerAsynchronously(Aurora.getInstance(), 20, 20);\n\n //Add to runnables[]\n runnables = new BukkitTask[]{task1, task2};\n }", "public abstract ArrayList<Object> calculateTransform(ArrayList<Integer> arr);", "String formatNumberList(\n TransformerImpl transformer, long[] list, int contextNode)\n throws TransformerException\n {\n\n String numStr;\n FastStringBuffer formattedNumber = StringBufferPool.get();\n\n try\n {\n int nNumbers = list.length, numberWidth = 1;\n char numberType = '1';\n String formatToken, lastSepString = null, formatTokenString = null;\n\n // If a seperator hasn't been specified, then use \".\" \n // as a default separator. \n // For instance: [2][1][5] with a format value of \"1 \"\n // should format to \"2.1.5 \" (I think).\n // Otherwise, use the seperator specified in the format string.\n // For instance: [2][1][5] with a format value of \"01-001. \"\n // should format to \"02-001-005 \".\n String lastSep = \".\";\n boolean isFirstToken = true; // true if first token \n String formatValue =\n (null != m_format_avt)\n ? m_format_avt.evaluate(\n transformer.getXPathContext(), contextNode, this) : null;\n\n if (null == formatValue)\n formatValue = \"1\";\n\n NumberFormatStringTokenizer formatTokenizer =\n new NumberFormatStringTokenizer(formatValue);\n\n // int sepCount = 0; // keep track of seperators\n // Loop through all the numbers in the list.\n for (int i = 0; i < nNumbers; i++)\n {\n\n // Loop to the next digit, letter, or separator.\n if (formatTokenizer.hasMoreTokens())\n {\n formatToken = formatTokenizer.nextToken();\n\n // If the first character of this token is a character or digit, then \n // it is a number format directive.\n if (Character.isLetterOrDigit(\n formatToken.charAt(formatToken.length() - 1)))\n {\n numberWidth = formatToken.length();\n numberType = formatToken.charAt(numberWidth - 1);\n }\n\n // If there is a number format directive ahead, \n // then append the formatToken.\n else if (formatTokenizer.isLetterOrDigitAhead())\n {\n formatTokenString = formatToken;\n\n // Append the formatToken string...\n // For instance [2][1][5] with a format value of \"1--1. \"\n // should format to \"2--1--5. \" (I guess).\n while (formatTokenizer.nextIsSep())\n {\n formatToken = formatTokenizer.nextToken();\n formatTokenString += formatToken;\n }\n\n // Record this separator, so it can be used as the \n // next separator, if the next is the last.\n // For instance: [2][1][5] with a format value of \"1-1 \"\n // should format to \"2-1-5 \".\n if (!isFirstToken)\n lastSep = formatTokenString;\n\n // Since we know the next is a number or digit, we get it now.\n formatToken = formatTokenizer.nextToken();\n numberWidth = formatToken.length();\n numberType = formatToken.charAt(numberWidth - 1);\n }\n else // only separators left\n {\n\n // Set up the string for the trailing characters after \n // the last number is formatted (i.e. after the loop).\n lastSepString = formatToken;\n\n // And append any remaining characters to the lastSepString.\n while (formatTokenizer.hasMoreTokens())\n {\n formatToken = formatTokenizer.nextToken();\n lastSepString += formatToken;\n }\n } // else\n } // end if(formatTokenizer.hasMoreTokens())\n\n // if this is the first token and there was a prefix\n // append the prefix else, append the separator\n // For instance, [2][1][5] with a format value of \"(1-1.) \"\n // should format to \"(2-1-5.) \" (I guess).\n if (null != formatTokenString && isFirstToken)\n {\n formattedNumber.append(formatTokenString);\n }\n else if (null != lastSep &&!isFirstToken)\n formattedNumber.append(lastSep);\n\n getFormattedNumber(transformer, contextNode, numberType, numberWidth,\n list[i], formattedNumber);\n\n isFirstToken = false; // After the first pass, this should be false\n } // end for loop\n\n // Check to see if we finished up the format string...\n // Skip past all remaining letters or digits\n while (formatTokenizer.isLetterOrDigitAhead())\n {\n formatTokenizer.nextToken();\n }\n\n if (lastSepString != null)\n formattedNumber.append(lastSepString);\n\n while (formatTokenizer.hasMoreTokens())\n {\n formatToken = formatTokenizer.nextToken();\n\n formattedNumber.append(formatToken);\n }\n\n numStr = formattedNumber.toString();\n }\n finally\n {\n StringBufferPool.free(formattedNumber);\n }\n\n return numStr;\n }", "boolean isDrawTicks();", "public static void main(String[] args) {\n\t\tList<Integer> arrayList = new ArrayList<Integer>();\r\n\t\tList<Integer> linkedList = new LinkedList<Integer>();\r\n\t\t\r\n\t\tdoTimings(\"ArrayList\",arrayList);\r\n\t\tdoTimings(\"LinkedList\",linkedList);\r\n\t}", "void setTick(int tick);", "public Scheduler(ArrayList<Processus> listOfProcess) {\n this.listOfProcess = listOfProcess;\n }", "public void mo7636x(List<C0933b> list) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n mo7620a(list.get(i));\n }\n list.clear();\n }", "public com.anychart.scales.ScatterTicks set(String[] ticks) {\n APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + \".set(%s);\", arrayToStringWrapQuotes(ticks)));\n\n return this;\n }", "@Override\n\tpublic void run() {\n\t\tif (NumberType == \"Even\") {\n\t\t\tfor(int i = start; i<=end; i++) {\n\t\t\t\tif (i%2==0) {\n\t\t\t\t\tnumberList.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//add all odd numbers to the list\n\t\tif (NumberType == \"Odd\") {\n\t\t\tfor(int i = start; i<=end; i++) {\n\t\t\t\tif (i%2==1) {\n\t\t\t\t\tnumberList.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void tick(final int n) {\n\t\tValidate.isTrue(n > 0, String.format(\"The given tick count %d must be positive\", n));\n\n\t\tif (isStarted()) {\n\t\t\tthrow new IllegalStateException(\"The clock is started\");\n\t\t}\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(String.format(\"Ticking %d time(s) ...\", n));\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t_tick();\n\t\t}\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(String.format(\"Ticked %d time(s)\", n));\n\t\t}\n\t}", "public void tick();", "public void tick();", "public void tick();", "public float getSpeed(List<Integer> collectTime);", "private void m10266b(List<C2411a> list) {\n int i;\n int i2;\n List arrayList = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n arrayList.addAll(list);\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(0.0d));\n for (i = 0; i < 5; i++) {\n C2411a c2411a = (C2411a) arrayList.remove(0);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n }\n int size = arrayList.size();\n i = 5;\n while (i > 0) {\n i2 = size - 1;\n c2411a = (C2411a) arrayList.remove(size - i);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n i--;\n size = i2;\n }\n int size2 = arrayList.size();\n int i3 = size2 / 387;\n int i4 = 0;\n int i5 = 6;\n while (i4 < 387) {\n i2 = i4 * i3;\n if (i2 >= size2) {\n double j = ((C2411a) arrayList.get(size2 - 1)).m12234j();\n if (j > this.f8976d.getMaxVelocity()) {\n j = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(j));\n arrayList2.add(i5, Double.valueOf(((C2411a) arrayList.get(size2 - 1)).m12233i() / 1000.0d));\n size = i5 + 1;\n } else {\n c2411a = (C2411a) arrayList.get(i2);\n i = (i4 + 1) * i3;\n if (i >= size2) {\n i = size2 - 1;\n }\n C2411a c2411a2 = (C2411a) arrayList.get(i);\n long h = (c2411a2.m12232h() / 1000) - (c2411a.m12232h() / 1000);\n double d;\n if (h <= 0) {\n double d2 = 0.0d;\n while (i2 < (i4 + 1) * i3) {\n d2 += ((C2411a) arrayList.get(i2)).m12234j();\n i2++;\n }\n d = d2 / ((double) i3);\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n } else {\n d = ((c2411a2.m12233i() - c2411a.m12233i()) / ((double) h)) * 3.6d;\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n }\n arrayList2.add(i5, Double.valueOf(c2411a.m12233i() / 1000.0d));\n size = i5 + 1;\n }\n i4++;\n i5 = size;\n }\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(this.f8976d.getTotalDistance()));\n i2 = this.f8987o.size();\n i = 1;\n while (i < i2) {\n if (this.f8978f >= ((Double) arrayList2.get(i - 1)).doubleValue() && this.f8978f < ((Double) arrayList2.get(i)).doubleValue()) {\n this.f8987o.add(i, Double.valueOf(this.f8976d.getMaxVelocity()));\n arrayList2.add(i, Double.valueOf(this.f8978f));\n break;\n }\n i++;\n }\n this.f8993u = this.f8987o.size();\n }" ]
[ "0.61147636", "0.6096034", "0.5726157", "0.57235247", "0.56197727", "0.55852616", "0.55293185", "0.5443821", "0.54153776", "0.5393939", "0.5390276", "0.53707784", "0.53517425", "0.5307535", "0.5306781", "0.53053916", "0.5302831", "0.5292519", "0.526061", "0.52570885", "0.5233221", "0.5221016", "0.5204288", "0.51701796", "0.51532185", "0.5133434", "0.51116", "0.5084675", "0.50693387", "0.5006863", "0.50066483", "0.50057733", "0.49755573", "0.4969622", "0.4961243", "0.4954986", "0.49336717", "0.4932805", "0.49254793", "0.49144962", "0.49140117", "0.49133378", "0.48853755", "0.4865893", "0.48642245", "0.48553318", "0.48489487", "0.4841837", "0.48402604", "0.4833484", "0.48333317", "0.48330715", "0.4832921", "0.48301098", "0.48284402", "0.48284402", "0.4825991", "0.48201156", "0.48169386", "0.4816351", "0.4816351", "0.48054338", "0.47876108", "0.47655502", "0.47511876", "0.47413176", "0.4738156", "0.47372115", "0.47372115", "0.47372115", "0.47372115", "0.47372115", "0.47372115", "0.47372115", "0.47343174", "0.47293267", "0.472327", "0.4714374", "0.47089484", "0.4707751", "0.47064877", "0.47005028", "0.4699019", "0.46923503", "0.46900806", "0.4688855", "0.4686806", "0.46820655", "0.46744114", "0.4669961", "0.46616396", "0.46612507", "0.46529815", "0.4645655", "0.46407878", "0.4638106", "0.4638106", "0.4638106", "0.4628717", "0.46277127" ]
0.60838336
2
Handle a new tick
public void handleNewTick(final BitfinexTickerSymbol currencyPair, final BitfinexTick tick) { synchronized (lastTick) { lastTick.put(currencyPair, tick); lastTickTimestamp.put(currencyPair, System.currentTimeMillis()); } tickerCallbacks.handleEvent(currencyPair, tick); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tick() {\r\n }", "public void tick() {\n\t}", "public void tick() {\n\t}", "protected abstract void tick();", "public void tick() {\r\n tick++;\r\n }", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n public void onTick(long arg0) {\n }", "@Override\n\tpublic void tick() {\n\n\t}", "@Override\n\t\tpublic void onTick(long arg0) {\n\t\t\t\n\t\t}", "void tick(long tickSinceStart);", "public abstract void tick();", "public void tick();", "public void tick();", "public void tick();", "public abstract void update(int tick);", "@Override\n public void tick() {\n super.tick();\n }", "void tick();", "void tick();", "public void tick(double dt) {\n }", "public void tick() {\n\t\ttick(1);\n\t}", "public boolean onTick();", "void tick(long ticksSinceStart);", "void incrementTick();", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "public abstract void onTick(long millisUntilFinished);", "@Override\n public void onTick() {\n \n }", "void setTick(int tick);", "@Override\r\n\t\tprotected void onTick() {\n\r\n\t\t}", "public void handleTickReceived() {\n if (this.mVisible) {\n updateIndication();\n }\n }", "@Override\n public void livingTick() {\n super.livingTick();\n }", "void tick(H host, int systemTick);", "@Override\n public void reactTo(Tick tick) {\n\ttry {\n\t Thread.sleep(FRAME_INTERVAL_MILLIS);\n\t} catch (InterruptedException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\tscreen.update();\n\tmpq.add(new Tick(tick.time() + 1));\n }", "public final void onWorldTick() {\n onTick();\n }", "@Override\n\tpublic void tick(TrafficSignal TS) {\n\t\t\n\t}", "void drawCurrentTick();", "public void tick()\r\n\t{\r\n\t\tduration = (int) (((Sys.getTime() - lastCall) * resolution) / Sys\r\n\t\t\t\t.getTimerResolution());\r\n\t\tlastCall = Sys.getTime();\r\n\t}", "private void answerTick(Tick tick) {\n\t\tTickAnswer tickAnswer = new TickAnswer(tick, this);\n\t\tEventBus.getDefault().post(tickAnswer);\n\t}", "public void setTick(long tick) {\n this.tick = tick;\n }", "public void setTick(long tick) {\n this.tick = tick;\n }", "public void cycleOutput(long tick)\n {\n }", "private void tick() {\n handler.tick();\n if (gameStart == GAME_STATE.Game) {\n hud.tick();\n menu.tick();\n\n // determines player lives + game over\n if (HUD.LIVES <= 0) {\n HUD.LIVES = 5;\n gameStart = GAME_STATE.GameOver;\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.tick();\n }\n }\n }", "public synchronized void tick(){\r\n\t\ttime++;\r\n\t\tnotifyAll();\r\n\t}", "@Override\n public void onTick(long millisUntilFinished) {\n }", "private void tick(){\n \n this.village.tick();\n if(this.village.getTurn() > 1){\n this.lastEventTextBox.setText(this.currentEvent.getEventResultText());\n }\n this.currentEvent = this.getNewEvent();\n this.updateUIAfterTick();\n \n }", "public void tick() {\r\n if (this.ticking == true) {\r\n \t this.ticks++;\r\n //Every 100 ticks is 10 seconds.\r\n //Reset the display.\r\n if (this.ticks == 100) {\r\n if (this.isLocked == false) {\r\n this.lockGui.setDisplay(\"Open\");\r\n }\r\n\r\n else {\r\n this.lockGui.setDisplay(\"Locked\");\r\n }\r\n\r\n this.ticking = false;\r\n this.entered = \"\";\r\n }\r\n }\r\n }", "public void tick(){\n camera.tick(player);\n handler.tick();\n }", "@Override\n protected void tick(final Tuple tuple) {\n\n }", "public static void tick() {\n if (tickTime == 0L) {\n tickTime = System.currentTimeMillis();\n } else {\n System.err.println(\"Must call tock before tick\");\n System.exit(1);\n }\n }", "public void onTick(long millisUntilFinished) {\n\t\t }", "public void onTick()\n\t{\n\t\tsuper.onTick();\n\t\ttime++;\n\t\tif(time>=40)\n\t\t{\n\t\t\tif(direction == 0)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t\telse if(direction == 1)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t}\n\t\tif(direction == 0)\n\t\t{\n\t\t\tleft();\n\t\t\tif(hitcher!= null)\n\t\t\t{\n\t\t\t\thitcher.left(speed);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(direction == 1)\n\t\t{\n\t\t\tright();\n\t\t\tif(hitcher!=null)\n\t\t\t{\n\t\t\t\thitcher.right(speed);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void onTick(long millisUntilFinished) {\n }", "@Override\n public void onTick(long millisUntilFinished) {\n }", "@Subscribe\n public void onTick(EventTick IlIlIIIIllIlIIl) {\n }", "public Tick() {\n\t\tthis.start = System.currentTimeMillis();\n\t\tthis.last = start;\n\t}", "public void handle(long currentNanoTime) {\n moveBall();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\trepaint();\n\t\t\t\tSystem.out.println(\"Tick\");\n\t\t\t}", "public void onTick(long millisUntilFinished) {\n }", "public void onTick(long millisUntilFinished) {\n }", "public void onTimeTick() {\n tick++;\n try {\n sendBeaconLog(10);\n } catch (InterruptedException e) {\n }\n if (tick % 10 == 0) {\n sendDirectedPresence();\n }\n }", "public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\tcandleCallbacks.handleEvent(currencyPair, tick);\n\t}", "public void handle(long currentNanoTime) {\n\t \t\t\tobw.updateWorld(mc);\t\t\t// find new position of ball \n\t \t\t\tobw.drawWorld(mc);\t\t\t\t// draw ball in new position\n\t \t\t}", "@Override\r\n\t// Corpse is on the ground\r\n\tpublic void tick(Location currentLocation) {\r\n\t\tthis.tick(currentLocation, null);\r\n\t}", "private void tick(boolean catchUp) {\n if (catchUp && lastTick != 0) {\n long sinceLastTick = System.currentTimeMillis() - lastTick;\n long ticksMissed = (sinceLastTick / 50) - 1;\n\n if (ticksMissed > 0) {\n Server.getLogger().warn(\"Trying to catch up! Last server tick took \" + sinceLastTick + \"ms \" +\n \"(or the time of \" + (ticksMissed + 1) + \" ticks)\");\n\n for (int i = 0; i < ticksMissed; i++) {\n tick(false);\n }\n }\n }\n\n lastTick = System.currentTimeMillis();\n PuddingServer.getComponentManager().tickAll();\n }", "public void tick() {\n\n\t\t// Loops through the array and if the id is player's id, it will call the\n\t\t// tick method of camera.\n\t\tif (state == 1) {\n\n\t\t\tfor (int i = 0; i < handler.object.size(); i++) {\n\t\t\t\tif (handler.object.get(i).getId() == ID.Player) {\n\t\t\t\t\tcamera.tick(handler.object.get(i));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thandler.tick();\n\n\t\t}\n\t}", "@Override\n public void handle(long now) {\n int frame = (int) (now / 16666666.6667);\n if (frame % 600 == 0) new SimpleEnemy(game); // 10 seconds\n if (frame % 900 == 0) new SimplePowerUp(game); // 15 seconds\n if (frame % 1950 == 0) new HealthPack(game); // 32.5 seconds\n if (frame % 2100 == 0) new Shield(game); // 35 seconds\n for (GameEntity gameObject : Globals.gameObjects) {\n if (gameObject instanceof Animatable) {\n Animatable animObject = (Animatable) gameObject;\n animObject.step();\n }\n }\n Globals.gameObjects.addAll(Globals.newGameObjects);\n Globals.newGameObjects.clear();\n\n Globals.gameObjects.removeAll(Globals.oldGameObjects);\n Globals.oldGameObjects.clear();\n }", "@Override\n\t\tpublic void onTick(long millisUntilFinished) {\n\t\t}", "public void tick() {\n\t\tif (timer!=Game.timeCount)\n\t\t\thandler.addObject(new EnemyPlane(Game.WIDTH-38,r.nextInt(Game.HEIGHT-50), ID.Enemy, handler));\n\t\t\ttimer = Game.timeCount;\n\t}", "public void onTick(long millisUntilFinished) {\n }", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "@Override\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t}", "public void tick() \n {\n //Einfache Bildschirmausgabe. Kann spaeter in Subklasse beliebig ueberschreiben werden.\n zaehler++;\n zaehler = zaehler % 2;\n if ( zaehler == 1 ) \n {\n System.out.println( \"Tick!\" );\n }\n else \n {\n System.out.println( \"Tack!\" );\n }\n }", "public void onTick(long millisUntilFinished) {\n }", "public void onTick() {\n if (bfs) {\n if (b.hasNext()) {\n b.next();\n }\n }\n if (dfs) {\n if (d.hasNext()) {\n d.next();\n }\n }\n }", "private void tick() {\n\t\tkeyManager.tick(); //Updates our KeyManager object\n\t\t\n\t\tif(State.getState() != null) {\n\t\t\tState.getState().tick();\n\t\t}\n\t}", "@Override\r\n\tpublic void tick() {\r\n\t\tif(interacted == false)\r\n\t\t\tinteract();\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t\t\r\n\t\t\t}", "public void onTick(long i) {\n life--;\n y++;\n }", "private void checkTickListener()\n\t{\n\t}", "@Override\n\t\t\tpublic void execute(GameEngine context) {\n\t\t\t\tWorld.getWorld().tickManager.submit(tickable);\n\t\t\t}", "@Override\r\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t}", "public void handle(long currentNanoTime) {\n long elapsedNanos = currentNanoTime - previousTime;\n if (elapsedNanos > interval) {\n updateWorld();\n renderWorld(gc, world);\n previousTime = currentNanoTime;\n }\n }", "public void tick()\n\t{\n\t\tif (level == 0)\n\t\t\tcamera.followingPlayer = false;\n\t\telse\n\t\t\tcamera.followingPlayer = true;\n\t\t\n\t\tif (true)\n\t\t{\n\t\t\tgameObjectHandler.tick();\n\t\t\t//System.out.println(\"-all ticks done\");\n\t\t\tphysics.applyGravity();\n\t\t\t//System.out.println(\"-Grav done\");\n\t\t\tcollisionHandler.checkCollisions();\n\t\t\t//System.out.println(\"-collisions checked\");\n\t\t\tcamera.tick();\n\t\t\t//System.out.println(\"-camera ticked\");\n\t\t}\n\t\tif (currTransition != null)\n\t\t{\n\t\t\tif (currTransition.isDone())\n\t\t\t\tcurrTransition = null;\n\t\t\telse\n\t\t\t\tcurrTransition.tick();\n\t\t}\n\t\t\n\t\t\t\n\t\n\t\t\n\t}", "public void tick() {\n\t\t\n\t\t// no longer active, do nothing \n\t\tif (!isActive) { return; }\n\t\t\n\t\t// gather data on surroundings and on bot\n\t\tcloseBots = sens.getCloseBots(sens.getBotSize()+5);\n\t\tseenBots = sens.getCloseBots(100.0);\n\t\tclosestWhiteLED = sens.getClosestWhiteLED();\n\t\t\n\t\t// decide what LEDs need to be on and what colour\n\t\tupdateLEDs();\n\t\t\n\t\t// if white or green LED is on, don't move. Look at the direction only\n\t\tif (this.LEDManager.hasAllLEDsSetOff()) {\n\t\t\tupdateDesiredDirection();\n\t\t\tmoveOrTurn();\n\t\t} else {\n\t\t\tturnIfNeeded();\n\t\t}\n\t\t\n\t}", "public void tick(){\n\t\ttickCount++;\n\t\t\n\t\t//if (input.up.isPressed())y-=1;\n\t\t\n\t\t//if (input.down.isPressed())\ty+=1;\n\t\n\t\t//if (input.left.isPressed()){\n\t\t//\tx-=1;\n\t\t//}\n\t\t//if (input.right.isPressed()){\n\t\t//\tx+=1;\n\t\t//}\n\t\t\n\t\t//for (int i =0 ; i<pixels.length; i++){\n\t\t//\tpixels[i]=i+tickCount;\n\t\t//}\n\t\tlevel.tick();\n\t}", "@Override\n\t\tpublic void handle(long now) {\n\t\t\tif(!engine.isRunning()) {\n\t\t\t\tthis.stop();\n\t\t\t}else {\n\t\t\t\tmapPane.update();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onTickInGame() {\n\t\tticksExisted += 1;\n\t}", "public void onTick(long millisUntilFinished) {\n updatedTime = millisUntilFinished;\n\n // Mise à jour\n update();\n }", "@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif (now > lastTimeCall + 1_000_000_001) {\n\t\t\t\t\tduration = duration.subtract(Duration.seconds(1));\n\n\t\t\t\t\tint remainingSeconds = (int) duration.toSeconds();\n\t\t\t\t\tint min = (remainingSeconds) / SECONDS_PER_MINUTE;\n\t\t\t\t\tint sec = (remainingSeconds) % SECONDS_PER_MINUTE;\n\n\t\t\t\t\tif (min == 0 && sec == 0) {\n\t\t\t\t\t\ttimer.stop();\n\t\t\t\t\t\tgameStage.hide();\n\t\t\t\t\t\tGameController.gameBgm.stop();\n\t\t\t\t\t\tSystem.out.println(\"Times up\");\n\t\t\t\t\t\t// show final score\n\t\t\t\t\t\t//TimesUpSubScene timesUp = new TimesUpSubScene();\n\n\n\t\t\t\t\t}\n\t\t\t\t\ttimerLabel.textProperty().setValue(String.format(\"%02d\", min) + \" : \" + String.format(\"%02d\", sec));\n\t\t\t\t\tlastTimeCall = now;\n\t\t\t\t}\n\n\t\t\t}", "@Override\n \tpublic void handleMessage(Message msg) {\n \t\tswitch (msg.what) {\n\t\t\tcase MSG_BASE:\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase MSG_ONESECOND:\n\t onTimeChanged();\n\t invalidate();\n\t mHandler.sendEmptyMessageDelayed(MSG_ONESECOND, ONESECOND);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n \t\tsuper.handleMessage(msg);\n \t}", "public void onTick(long millisUntilFinished) {\n }", "public void onTick(long millisUntilFinished) {\n }" ]
[ "0.7747767", "0.76781917", "0.76781917", "0.76431495", "0.7617846", "0.76048255", "0.76048255", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.74939644", "0.74742496", "0.7454437", "0.7422855", "0.74099535", "0.7396583", "0.7396583", "0.7396583", "0.72495306", "0.7217116", "0.7210682", "0.7210682", "0.7203929", "0.7175305", "0.7114159", "0.71138775", "0.7103557", "0.709358", "0.69410014", "0.69313824", "0.68801147", "0.68740356", "0.67721355", "0.6764567", "0.676041", "0.6759414", "0.6735161", "0.66842246", "0.66485876", "0.66320205", "0.6578254", "0.6563179", "0.6563179", "0.65507066", "0.6535059", "0.6525545", "0.6510283", "0.6506582", "0.64912385", "0.6470414", "0.6457061", "0.6437893", "0.641611", "0.6389201", "0.63864934", "0.63864934", "0.6383395", "0.6382797", "0.6359999", "0.6359319", "0.6353447", "0.6343508", "0.63429904", "0.63376933", "0.62933743", "0.6278508", "0.6272975", "0.62667334", "0.6265383", "0.626207", "0.6261731", "0.6253623", "0.6236946", "0.6223723", "0.6222379", "0.62192035", "0.6208285", "0.62054634", "0.6203667", "0.61965954", "0.6178613", "0.6174551", "0.6169005", "0.61639154", "0.61639154", "0.6154798", "0.6152316", "0.6135738", "0.6135478", "0.6134526", "0.61265874", "0.6121093", "0.61207163", "0.61205447", "0.6120437", "0.6120437" ]
0.6939017
33
Register a new candlestick callback
public void registerCandlestickCallback(final BitfinexCandlestickSymbol symbol, final BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException { candleCallbacks.registerCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\tcandleCallbacks.handleEvent(currencyPair, tick);\n\t}", "public void subscribeCandles(final BitfinexCandlestickSymbol symbol) {\n\t\tfinal SubscribeCandlesCommand command = new SubscribeCandlesCommand(symbol);\n\t\tbitfinexApiBroker.sendCommand(command);\n\t}", "public void registerTickCallback(final BitfinexTickerSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\ttickerCallbacks.registerCallback(symbol, callback);\n\t}", "public interface CandlestickCollector {\n Candlestick collectCandlestick(String symbolPair, String timeFrame);\n}", "@Override\n\tpublic void visit(Candle candle) {\n\t\t\n\t}", "public int registerValueCallback(UpdateCallback callback)\n {\n String val;\n if (callback != null) {\n YFunction._UpdateValueCallbackList(this, true);\n } else {\n YFunction._UpdateValueCallbackList(this, false);\n }\n _valueCallbackFiles = callback;\n // Immediately invoke value callback with current value\n if (callback != null && isOnline()) {\n val = _advertisedValue;\n if (!(val.equals(\"\"))) {\n _invokeValueCallback(val);\n }\n }\n return 0;\n }", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "public synchronized void addCallback(MaestroNoteCallback callback) {\n callbacks.add(callback);\n }", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "public void handleCandlestickList(final BitfinexCandlestickSymbol symbol, final List<BitfinexTick> ticksBuffer) {\n\t\tcandleCallbacks.handleEventsList(symbol, ticksBuffer);\n\t}", "public void registerCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null) {\n\t\t\t\tm_callbacks.register(callback);\n\t\t\t\tm_soundManager.progressListenerRegistered();\n\t\t\t}\n\t\t}", "public static void registerCallbackHandler(com.sybase.persistence.CallbackHandler handler)\n {\n DELEGATE.registerCallbackHandler(handler);\n }", "void getTicker(String pair,HibtcApiCallback<Object> callback);", "public abstract void callback(VixHandle handle, int eventType, \n\t\tVixHandle moreEventInfo, Object clientData);", "public void handleNewTick(final BitfinexTickerSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\ttickerCallbacks.handleEvent(currencyPair, tick);\n\t}", "public void registerCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"registerCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(mFragment.getContext());\n mLocalManager.getEventManager().registerCallback(this);\n mLocalManager.getProfileManager().addServiceListener(this);\n forceUpdate();\n }", "CoinbaseCandleDataSupplier(int secondsPerCandle, TradePair tradePair) {\n super(200, secondsPerCandle, tradePair, new SimpleIntegerProperty(-1));\n }", "void addRatingCallback(RatingCallback callback);", "public okhttp3.Call executeAsync(final ApiCallback<List<FuturesCandlestick>> _callback) throws ApiException {\n return listOptionsUnderlyingCandlesticksAsync(underlying, limit, from, to, interval, _callback);\n }", "public void callback();", "public void registerClient(Activity mActivityCallback){\n\n this.mSignificantLocation = (SignificantLocation)mActivityCallback;\n\n }", "public void addConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.add(listener);\n\t}", "public void callback() {\n }", "public interface UHFCallbackLiatener {\n void refreshSettingCallBack(ReaderSetting readerSetting);\n void onInventoryTagCallBack(RXInventoryTag tag);\n void onInventoryTagEndCallBack(RXInventoryTag.RXInventoryTagEnd tagEnd);\n void onOperationTagCallBack(RXOperationTag tag);\n}", "private void registerCliclCallback() {\n\t\t\n\t\tListView list=(ListView)findViewById(R.id.listView1);\n\t\t\n\t\tlist.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tif(arg2==0)\n\t\t\t\t{\n\t\t\t\t\tIntent i=new Intent(setting.this,options.class);\n\t\t\t\t\tstartActivity(i);\t\n\t\t\t\t}\n\t\t\t\tif(arg2==1)\n\t\t\t\t{\n\t\t\t\t\tIntent i=new Intent(setting.this,help.class);\n\t\t\t\t\tstartActivity(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(arg2==2)\n\t\t\t\t{\n\t\t\t\t\tIntent i=new Intent(setting.this,aboutus.class);\n\t\t\t\t\tstartActivity(i);\n\t\t\t\t}\n\t\t\t\tif(arg2==3)\n\t\t\t\t{\n\t\t\t\t\tfinish();\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "void getCabinTemperature(Bus bus, TempHandler callback);", "public void onNewPosData(JsArray<Timeseries> data) {\n }", "public interface OnTickListener {\r\n void onTick();\r\n}", "void onColorChanged(SeekBar seekBar, int color, boolean b);", "public okhttp3.Call executeAsync(final ApiCallback<List<OptionsCandlestick>> _callback) throws ApiException {\n return listOptionsCandlesticksAsync(contract, limit, from, to, interval, _callback);\n }", "@Override\n\tpublic void createCB(CB cb) {\n\t\t\n\t}", "void addAdvertCallback(AdvertCallback callback);", "public interface StockHistoryCallback {\n\n void onStockHistorySuccess(List<HistoricalStockData> stockHistoryData, HistoricalStockDataRanges rangeData);\n\n void onStockHistoryFailure();\n\n}", "@Subscribe\n public void onTick(EventTick IlIlIIIIllIlIIl) {\n }", "@Override\n public void onCallBack(int pos) {\n }", "public interface SensorUpdateCallback {\n void onBearingValue(float f);\n}", "public void subscribeSwitchState(HomekitCharacteristicChangeCallback callback) {\n\t\t\n\t}", "public void add( final Callback callback ) {\n\t\tcallbacks.add( callback );\n\t}", "public interface ScanCallBack {\n void getDevices(final BluetoothDevice bluetoothDevice, final int rssi);\n}", "public interface SeekBarValueChangeListener {\n\n void valueChanged(int val);\n}", "public boolean removeCandlestickCallback(final BitfinexCandlestickSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\treturn candleCallbacks.removeCallback(symbol, callback);\n\t}", "@FunctionalInterface\npublic interface IRawEventCallback {\n /**\n * Callback on the native parser thread with the shared byte[] array associated with the direct\n * ByteBuffer associated with the GetDirectBufferAddress call.\n * @param beaconInfo the beacon info read only bytebuffer, must be copied as it would be modified on the next beacon\n * event from the bluetooth stack.\n */\n public boolean beaconEvent(ByteBuffer beaconInfo);\n}", "void register(String methodName, HubCallback<JsonElement> callback);", "void addUserCallback(UserCallback callback);", "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "void registerCallback(BundleTriggerCallback callback);", "public interface MarkAsReadNotificationCallback {\n void onNotificationMarkedAsRead(int pos);\n\n void onNotificationMarkAsReadFailed();\n}", "public interface TickerCallBack {\n void search();\n}", "public interface MusicCallBack {\n void onMusicCallBack(String music_name);\n}", "List<Candlestick> getCandlestickBars(String symbol, CandlestickInterval interval, Long startTime, Long endTime, Integer limit);", "String registerObserver(StreamObserver observer);", "@Override\r\n\tpublic void registerObserver(BeatObserver o) {\n\r\n\t}", "void addCallback(BiConsumer<Boolean, Boolean> callback);", "public void onChannel(String channel, String title, String subtitle);", "public void opened(LLRPChannelOpenedEvent event);", "public void registerEvents(Citizens plugin);", "public synchronized void registerPlaceChangedCallback(\n\t\t\tPlaceChangedHandler callable) {\n\t\tplaceCheckerCallables.add(callable);\n\t}", "public synchronized void registerCallback(CarHvacEventCallback callback)\n throws CarNotConnectedException {\n if (mCallbacks.isEmpty()) {\n mListenerToBase = new CarPropertyEventListenerToBase(this);\n }\n List<CarPropertyConfig> configs = getPropertyList();\n for (CarPropertyConfig c : configs) {\n // Register each individual propertyId\n mCarPropertyMgr.registerListener(mListenerToBase, c.getPropertyId(), 0);\n }\n mCallbacks.add(callback);\n }", "private void registerCallbacks() {\n nations.forEach(this::registerCallback);\n }", "@Override\n public void onConnected(Bundle bundle) {\n Wearable.DataApi.addListener(googleApiClient, this);\n }", "@Override\n public void onTick(long arg0) {\n }", "public boolean onTick();", "void setOnChannelCloseListener(OnCloseListener onCloseListener);", "@Override\n public void onDeviceAdded(final MidiDeviceInfo device) {\n for(Map.Entry<DeviceCallback, Handler> item : mCallbacks.entrySet()) {\n final DeviceCallback callback = item.getKey();\n Handler handler = item.getValue();\n if(handler == null) {\n callback.onDeviceAdded(device);\n } else {\n handler.post(new Runnable() {\n @Override\n public void run() {\n callback.onDeviceAdded(device);\n }\n });\n }\n }\n }", "void onCallback(String gekozenWoord);", "void addCallback(Executor executor, BiConsumer<Boolean, Boolean> callback);", "@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n\t// Java 1.8 forward-compatibility.\n\tprotected void addCancelCallback(final CancelCallback callback) {\n\t\tEventListener l = new EventListener<CommandEvent>() {\n\t\t\t@Override\n\t\t\tpublic void process(CommandEvent event) {\n\t\t\t\tcallback.cancel();\n\t\t\t}\n\t\t};\n\t\tproxy.addEventListener(CommandEvent.CANCEL, l);\n\t}", "interface ScanCallback {\n void cb(Metric metric);\n }", "void callbackFBLogged();", "public interface CountdownCallBack {\n void countdownFinsh();\n}", "public interface C44035d extends C1677a {\n C7358b addICoreServiceLifecycleCallback(C30032a c30032a);\n\n C7358b addNotifyReceiverCallback(C44034c c44034c);\n\n void setILightPushDelegate(C23228b c23228b);\n}", "void addChangeListener(ChangeListener cl);", "public void onRead(BarcodeData barcodeData) {\n }", "RegisterSensor() {\n }", "@Override\n\tpublic void staticByActivityListener() {\n\t\tsb.setOnSeekBarChangeListener(this);\n\t}", "public interface OnRSSISuccessListener {\r\n public void onSuccess(int rssi);\r\n}", "private native void addCallback(String name)\n /*-{\n var m = this;\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n target[part] = {};\n }\n target = target[part];\n }\n \n target[parts[parts.length - 1]] = $entry(function() {\n //Must make a copy because arguments is an array-like object (not instanceof Array), causing suboptimal JSON encoding\n var args = Array.prototype.slice.call(arguments, 0);\n m.@com.vaadin.client.extensions.javascriptmanager.JavaScriptManagerConnector::sendRpc(Ljava/lang/String;Lcom/google/gwt/core/client/JsArray;)(name, args);\n });\n }-*/;", "public abstract void callback(Instruction instruction);", "public interface ComCallBack {\n public void onCallBack(Object obj);\n}", "@Override\n\t\tpublic void onTick(long arg0) {\n\t\t\t\n\t\t}", "public interface Callbacks {\n void onStateChanged();\n void onProximityNegative();\n }", "public void addEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.add(listener);\n\t}", "public void registerCallback(@NonNull Callback callback) {\n registerCallback(callback, null);\n }", "public void setOnOpenChatActionCallback(ChatActionCallback callback){\n this.callback=callback;\n }", "public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {\n return listOptionsUnderlyingCandlesticksCall(underlying, limit, from, to, interval, _callback);\n }", "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "public interface MarketWatcher {\n Stock getQuote(String symbol);\n}", "public interface Callback {\n\n void registerWith(Callbacks helper);\n\n}", "public void setWorkChangesHandler(WorkChangesHandler callback);", "final void channelInterestChangedCallback() {\n Channel ch = getIOChannel();\n if (ch != null) {\n boolean writable = ch.isWritable();\n\n eventSerializeLock.lock();\n try {\n if (previousEvent == OUTPUT_DISABLED && writable) {\n fireOutputRecovered();\n } else if (previousEvent == OUTPUT_RECOVERED && !writable) {\n fireOutputDisabled();\n }\n } finally {\n eventSerializeLock.unlock();\n }\n }\n }", "public void updateChannelHeartbeat(final BitfinexStreamSymbol symbol) {\n\t\tsynchronized (lastTick) {\n\t\t\tlastTickTimestamp.put(symbol, System.currentTimeMillis());\n\t\t}\n\t}", "public interface OnColorSeekBarChangeListener {\n\n\t\t/**\n\t\t * Notification that the color has changed. Clients can use the fromUser\n\t\t * parameter to distinguish user-initiated changes from those that\n\t\t * occurred programmatically. Parameters:\n\t\t * \n\t\t * @param seekBar\n\t\t * The SeekBar whose progress has changed\n\t\t * @param color\n\t\t * The current color-int from alpha, red, green, blue\n\t\t * components.\n\t\t * @param b\n\t\t * True if the progress change was initiated by the user.\n\t\t */\n\t\tvoid onColorChanged(SeekBar seekBar, int color, boolean b);\n\n\t\t/**\n\t\t * Notification that the user has started a touch gesture. Clients may\n\t\t * want to use this to disable advancing the seekbar.\n\t\t * \n\t\t * @param seekBar\n\t\t * The SeekBar in which the touch gesture began\n\t\t */\n\t\tvoid onStartTrackingTouch(SeekBar seekBar);\n\n\t\t/**\n\t\t * Notification that the user has finished a touch gesture. Clients may\n\t\t * want to use this to re-enable advancing the seekbar.\n\t\t * \n\t\t * @param seekBar\n\t\t * The SeekBar in which the touch gesture finished\n\t\t */\n\t\tvoid onStopTrackingTouch(SeekBar seekBar);\n\t}", "public Candle(ZonedStockDateTime pBeginning, final double pLow,\r\n final double pHigh, final double pOpen, final double pClose) {\r\n beginning = pBeginning;\r\n low = pLow;\r\n high = pHigh;\r\n open = pOpen;\r\n close = pClose;\r\n }", "public void post(final WorkbookChart newWorkbookChart, final ICallback<? super WorkbookChart> callback) {\n send(HttpMethod.POST, callback, newWorkbookChart);\n }", "@Override\n public void onNewPrice(double price) {\n\n }", "void notifyWonCards(Color color, Symbol symbol);", "public void add( final int position, final Callback callback ) {\n\t\tcallbacks.add( position, callback );\n\t}", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "@MainThread\n void onChannelScanStarted();", "void addLifecycleCallback(LifecycleCallbackItem lifecycleCallbackItem);" ]
[ "0.63930833", "0.6150585", "0.5877286", "0.5625623", "0.5571117", "0.55417824", "0.5521258", "0.5407095", "0.5271131", "0.52508783", "0.52490425", "0.52391213", "0.5180217", "0.5086798", "0.5086552", "0.5084306", "0.5057405", "0.5027935", "0.49913907", "0.49768236", "0.4960227", "0.49488848", "0.49385744", "0.49299642", "0.4905678", "0.4904136", "0.4893144", "0.48877493", "0.48836425", "0.48812175", "0.48798287", "0.4866161", "0.48410326", "0.48278618", "0.4810428", "0.4794202", "0.4786435", "0.47697356", "0.47673064", "0.4754833", "0.47493318", "0.4748013", "0.47467783", "0.47386685", "0.47319523", "0.4725214", "0.47246298", "0.47119", "0.47050932", "0.4696598", "0.46948498", "0.46918252", "0.46822593", "0.46477264", "0.4646514", "0.46440375", "0.4641404", "0.46323836", "0.46310556", "0.462903", "0.4626989", "0.4616007", "0.46105275", "0.46029955", "0.4601045", "0.459411", "0.45933568", "0.4590787", "0.45612088", "0.45602953", "0.45597482", "0.4556062", "0.4548661", "0.45430377", "0.45244518", "0.452123", "0.4519485", "0.45156392", "0.45151222", "0.45098713", "0.45093894", "0.45075518", "0.4500228", "0.44905826", "0.4488133", "0.44806084", "0.44790724", "0.4467947", "0.4464554", "0.44624946", "0.44582242", "0.44576663", "0.4454227", "0.44530052", "0.44500518", "0.44493738", "0.44467327", "0.44416463", "0.4441157", "0.44405112" ]
0.72646624
0
Remove the a candlestick callback
public boolean removeCandlestickCallback(final BitfinexCandlestickSymbol symbol, final BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException { return candleCallbacks.removeCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }", "public boolean removeTickCallback(final BitfinexTickerSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\treturn tickerCallbacks.removeCallback(symbol, callback);\n\t}", "public void removeClockFromStock(Clock removedClock);", "public abstract void detatchHistoricalWrapper();", "@Override\n public void unregisterCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.remove(callback);\n }", "public void removeConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.remove(listener);\n\t}", "public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}", "void onDataCleared();", "private void stopSeekHandler(){\n if (mUpdateTimeTask != null) handler.removeCallbacks(mUpdateTimeTask);\n }", "public void removeEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.remove(listener);\n\t}", "@Override\n\tpublic void deleteCB(CB cb) {\n\t\t\n\t}", "public void\t\tremoveUCallbackListener(String\t\ttag);", "public void\t\tremoveUCallbackListener(String tag)\n\t{\n\t\ttab.remove(tag);\n\t}", "public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this);\n mLocalManager.getProfileManager().removeServiceListener(this);\n }", "private static void Remove_handlers() {\n if (PlayerAcreenActivity.seekHandler != null) {\n PlayerAcreenActivity.seekHandler.removeCallbacks(PlayerAcreenActivity.run);\n\n }\n }", "public void DelTrack(int position);", "@Override\r\n\tpublic void removeObserver(BeatObserver o) {\n\r\n\t}", "public void removeCallback(EventCallback<T> callback) {\n callbacks.remove(callback);\n }", "synchronized void remove(Closeable hook) {\n if (closeHooks != null) {\n closeHooks.remove(hook);\n }\n }", "public void\n\t \t removeEventCallback(\n\t \t SoType eventType,\n\t \t SoEventCallbackCB f,\n\t \t Object userData)\n\t \t //\n\t \t {\n\t \t // loop from the end of the list, in case we remove items\n\t \t for (int i = cblist.getLength() - 1; i >= 0; i--) {\n\t \t SoEventCallbackData data = (SoEventCallbackData ) cblist.operator_square_bracket(i);\n\t \t if ((data.eventType.operator_equal_equal(eventType)) &&\n\t \t (data.func == f) &&\n\t \t (data.userData == userData)) {\n\t \t \n\t \t // found the func/event type/data triplet - remove it!\n\t \t cblist.remove(i);\n\t \t //delete data;\n\t \t data.destructor();\n\t \t }\n\t \t }\n\t \t }", "@GuardedBy(\"sLock\")\n private void callbackRemovedForActivity(Activity activity) {\n for (WindowLayoutChangeCallbackWrapper callbackWrapper : mWindowLayoutChangeCallbacks) {\n if (callbackWrapper.mActivity.equals(activity)) {\n // Found a registered callback for token.\n return;\n }\n }\n // No registered callbacks left for the activity - report to extension.\n mWindowExtension.onWindowLayoutChangeListenerRemoved(activity);\n }", "public void o() {\n this.f760a.p().removeCallbacks(this.g);\n }", "@Implementation(minSdk = O)\n protected void unregisterAudioPlaybackCallback(AudioManager.AudioPlaybackCallback cb) {\n audioPlaybackCallbacks.remove(cb);\n }", "public interface RemoveCallback {\n void onRemoved(int removed);\n }", "private final void m118787c(bkcr bkcr) {\n if (getAdapter() instanceof bkcq) {\n ((bkcq) getAdapter()).remove(bkcr);\n }\n }", "void removeCalcValueListener(CalcValueListener l);", "public void removeSeekListener(SeekListener listener){\r\n super.removeSeekListener(listener);\r\n\r\n if (listenerList.getListenerCount(SeekListener.class) == 0){\r\n setDGState(Datagram.DG_SEEK, false);\r\n setDGState(Datagram.DG_SEEK_REMOVED, false);\r\n\r\n source.lastSeekListenerRemoved();\r\n }\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thandler.removeCallbacks(updateThread);\r\n\t\t\t\t\r\n\t\t\t}", "void figureRemovedAt(Location loc);", "@Override\n public void run() {\n signalPanel.clearChart();\n }", "public void cancelAnimationCallback() {\n this.mChoreographer.removeCallbacks(1, this.mNormalizedAnimationCallback, null);\n }", "@Implementation(minSdk = N)\n protected void unregisterAudioRecordingCallback(AudioManager.AudioRecordingCallback cb) {\n audioRecordingCallbacks.remove(cb);\n }", "@Override\n\tpublic void onGuiClosed() {\n\t\tfield_154330_a.removed();\n\t\tsuper.onGuiClosed();\n\t}", "public void unregisterCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null)\n\t\t\t\tm_callbacks.unregister(callback);\n\t\t}", "private void m76756h() {\n if (this.f61634d != null) {\n this.f61634d.removeAllListeners();\n this.f61634d.cancel();\n this.f61634d = null;\n }\n }", "private void m7230f() {\n this.f5601w.removeCallbacks(this.f5579D);\n }", "public void handlerRemoved(CEventListener aoHandler) {\n\t}", "public synchronized void unregisterCallback(CarHvacEventCallback callback) {\n mCallbacks.remove(callback);\n try {\n List<CarPropertyConfig> configs = getPropertyList();\n for (CarPropertyConfig c : configs) {\n // Register each individual propertyId\n mCarPropertyMgr.unregisterListener(mListenerToBase, c.getPropertyId());\n }\n } catch (Exception e) {\n Log.e(TAG, \"getPropertyList exception \", e);\n }\n if (mCallbacks.isEmpty()) {\n mCarPropertyMgr.unregisterListener(mListenerToBase);\n mListenerToBase = null;\n }\n }", "public void onCallRemoved(android.telecom.Call call) {\n call.unregisterCallback(mCallCallback);\n }", "void removeOldNotification();", "public void mo81218a() {\n HandlerC16593b bVar = this.f57893b;\n if (bVar != null) {\n bVar.removeCallbacksAndMessages(null);\n this.f57893b = null;\n }\n }", "public void removeReadingPointListener(ReadingPointListener l) {\n\t\tlisteners.remove(l);\n\t}", "public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\tcandleCallbacks.handleEvent(currencyPair, tick);\n\t}", "@EventHandler(ignoreCancelled = true, priority = EventPriority.NORMAL)\n\tprivate void onQuit(PlayerQuitEvent event) {\n\t\tList<RegisteredCallback> list = entries.get(event.getPlayer());\n\t\tif(list == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//copy list: can get modified while iterating\n\t\tfor(RegisteredCallback callback : new ArrayList<>(list)) {\n\t\t\tif(!callback.active) {\n\t\t\t\tcontinue; //callbacks can unregister each other\n\t\t\t}\n\t\t\t\n\t\t\tcallback.timing.startTiming();\n\t\t\ttry {\n\t\t\t\tcallback.getCallback().onQuit(event.getPlayer());\n\t\t\t} catch (Throwable t) {\n\t\t\t\tplugin.getLogger().log(Level.SEVERE, \"Error handling callback in \" + getClass().getSimpleName(), t);\n\t\t\t}\n\t\t\tcallback.timing.stopTiming();\n\t\t\ttryUnregister(event.getPlayer(), callback);\n\t\t}\n\t\t\n\t\tlist = entries.remove(event.getPlayer());\n\t\tif(list != null && !list.isEmpty()) {\n\t\t\tfor(RegisteredCallback callback : list) {\n\t\t\t\tplugin.getLogger().severe(getClass().getSimpleName()\n\t\t\t\t\t\t+ \" callback registered during player quitting: \" + callback.getCallback().getClass().getName());\n\t\t\t\tcallback.active = false;\n\t\t\t}\n\t\t}\n\t}", "public synchronized void remove(T e){\n callbackList.remove(e);\n }", "@Override\r\n\tpublic void onDestory() {\n\t\t\r\n\t}", "@Override\n public void removeOnPropertyChangedCallback(OnPropertyChangedCallback callback) {\n }", "public void removeOnGetChave(ACBrEventListener<AACGetChaveEventObject> pListener) {\n\t\tremoveListener(\"onGetChave\", pListener);\n\t\tif (!hasListeners(\"onGetChave\")) {\n\t\t\tACBrAACInterop.INSTANCE.AAC_SetOnGetChave(getHandle(), null);\n\t\t}\n\t}", "@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n super.onDestroy();\n }", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void delete(final ICallback<? super WorkbookChart> callback) {\n send(HttpMethod.DELETE, callback, null);\n }", "private void m17251h() {\n this.f13994d.unregisterReceiver(this.f13995e);\n }", "private void m3388c() {\n if (this.f2668a != null) {\n this.f2668a.cancel();\n }\n }", "public void removeCallback(CallbackDataUnit callbackDataUnit) {\n\t\tif (callbacks.remove(callbackDataUnit.getCallbackId())) {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"Callback removed for the received Id:\" + callbackDataUnit.getCallbackId());\n\t\t\t}\n\t\t} else {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"No callback entry found for the callback id.\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "private void handleActionBaz() {\n Notifier.cancelTimer(this);\n }", "@Override\n\tpublic void removeObserver(Sensor observer) {\n\n\t}", "@Override\n protected void onCleared() {\n }", "private void m125724s() {\n ProgressView progressView = this.f90233z;\n if (progressView != null) {\n progressView.mo81953b();\n if (this.f88308f != null) {\n this.f88308f.removeView(this.f90233z);\n }\n }\n }", "public void mo4684c(int event) {\n C0269T.m1643a().mo4573b(this.f1124j);\n List<C0308a<B>> list = this.f1122h;\n if (list != null) {\n for (int i = list.size() - 1; i >= 0; i--) {\n ((C0308a) this.f1122h.get(i)).onDismissed(this, event);\n }\n }\n if (VERSION.SDK_INT < 11) {\n this.f1119e.setVisibility(8);\n }\n ViewParent parent = this.f1119e.getParent();\n if (parent instanceof ViewGroup) {\n ((ViewGroup) parent).removeView(this.f1119e);\n }\n }", "public void mo8963a() {\n if ((this instanceof OnMessageListener) && this.f14276h != null) {\n this.f14276h.removeMessageListener((OnMessageListener) this);\n }\n this.f14275g = null;\n super.mo8963a();\n }", "public void m6561c() {\n if (this.f5065a != null) {\n this.f5065a.end();\n this.f5065a.removeAllUpdateListeners();\n this.f5065a.cancel();\n }\n this.f5065a = null;\n this.f5080q = false;\n }", "private static native void hook_del(long handle) throws UnicornException;", "void onCancel();", "@Override\n\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\t\n\t\t}", "protected void onPdCancel(){\r\r\t}", "private synchronized void removeOld() {\r\n long days = settings.getLong(\"channelHistoryKeepDays\");\r\n Map<String, Long> h = settings.getMap(HISTORY_SETTING);\r\n long keepAfter = System.currentTimeMillis() - days * DAY;\r\n Iterator<String> it = h.keySet().iterator();\r\n while (it.hasNext()) {\r\n String channel = it.next();\r\n long time = h.get(channel);\r\n if (time < keepAfter) {\r\n it.remove();\r\n }\r\n }\r\n settings.putMap(HISTORY_SETTING, h);\r\n settings.setSettingChanged(\"channelHistory\");\r\n }", "void removeListener(\n ReaderSettingsListenerType l);", "public void onCancel();", "public void closeCashDrawer(CashDrawer cd);", "private void onDisconnectRemoveValue(JSONArray data) {\n String strURL = String.format(\"https://%s.firebaseio.com\", appName);\n if ( data.length() >= 1 )\n {\n \ttry {\n \t\tstrURL = data.getString(0);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n }\n else{\n \tPluginResult pluginResult = new PluginResult(Status.ERROR, \"onDisconnectSetValue : Parameter Error\");\n \tmCallbackContext.sendPluginResult(pluginResult);\n \treturn;\n }\n\n Firebase urlRef = new Firebase(strURL);\n urlRef.onDisconnect().removeValue();\n PluginResult pluginResult = new PluginResult(Status.OK);\n mCallbackContext.sendPluginResult(pluginResult);\n }", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\n\n\t\t\t}", "public int delCustomStrategy(final AlarmStrategy strategy,\n final MYCallBack cb) {\n\n // WapiUtilEx.delCustomAlarmStrategy(\"xx\", cb)\n WapiUtilEx.delCustomAlarmStrategy(strategy.getStrategy_id(),\n new MYCallBack() {\n @Override\n public void onError(int code, String message) {\n if (null != cb)\n cb.onError(code, message);\n }\n\n @Override\n public void onSuccess(String jsonString) {\n try {\n JSONObject obj = new JSONObject(jsonString);\n if (obj.getString(\"result\").equals(\"OK\")) {\n DBAlarmStrategyCustom dbstrategy = strategyCustom2DBStruct(strategy);\n StrategyDBHelper.getInstance()\n .delAlarmStrategyCustom(dbstrategy);\n\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t * for (int i = 0; i <\n\t\t\t\t\t\t\t\t * mStrategyCustomList.size(); i++) {\n\t\t\t\t\t\t\t\t * AlarmStrategy s = mStrategyCustomList.get(i);\n\t\t\t\t\t\t\t\t * if (s.getStrategy_id().equals(strategy.\n\t\t\t\t\t\t\t\t * getStrategy_id()))\n\t\t\t\t\t\t\t\t * mStrategyCustomList.remove(i); }\n\t\t\t\t\t\t\t\t */\n\n if (null != cb)\n cb.onSuccess(strategy.getStrategy_id());\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n return 0;\n }", "void onInfoBarClosed(boolean explicitly);", "void handleWindowRemove(MWindow window) {\n\t}", "public final void dyC() {\n AppMethodBeat.i(29675);\n com.tencent.mm.blink.b.HQ().o(new Runnable() {\n public final void run() {\n AppMethodBeat.i(29667);\n if (w.this.ynU) {\n ab.i(\"MicroMsg.LauncherUI.MainTabUnreadMgr\", \"remove setTagRunnable\");\n al.af(w.this.ynV);\n }\n AppMethodBeat.o(29667);\n }\n });\n AppMethodBeat.o(29675);\n }", "@Override\n\tpublic void onRemove() {\n\n\t}", "@Override\n public void windowDeiconified( WindowEvent arg0 )\n {\n\n }", "@Override\n public void windowDeiconified( WindowEvent arg0 )\n {\n\n }", "private void onDisconnectRemoveValueWithCompletionBlock(JSONArray data) {\n String strURL = String.format(\"https://%s.firebaseio.com\", appName);\n if ( data.length() >= 1 )\n {\n \ttry {\n \t\tstrURL = data.getString(0);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n }\n else{\n \tPluginResult pluginResult = new PluginResult(Status.ERROR, \"onDisconnectSetValue : Parameter Error\");\n \tmCallbackContext.sendPluginResult(pluginResult);\n \treturn;\n }\n\n Firebase urlRef = new Firebase(strURL);\n urlRef.onDisconnect().removeValue(new Firebase.CompletionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(FirebaseError arg0, Firebase arg1) {\n\t\t\t\tif(arg0 == null){\n\t\t\t\t\tPluginResult pluginResult = new PluginResult(Status.OK);\n\t\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t}else{\n\t\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, arg0.getMessage());\n\t\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n }", "public void removePainter(CanvasType.PaintListener listener)\r\n\t{\n\t}", "@Override\n public void windowDeiconified(WindowEvent arg0) {\n\n }", "public void mBTClose1() {\n if (oBTServer!=null)\n oBTServer.mCloseService2(); //Disconnect a relayed device\n mDisconnect();\n if (oBTadapter != null) {\n if (oBTadapter.isEnabled()) {\n if (isOpenedByMe) //170905 only if this application opened the bluetooth\n oBTadapter.disable();\n }\n }\n if (mReceiver1!=null)\n try { //Protection from crash bugfix 171013\n mContext.unregisterReceiver(mReceiver1);\n }\n catch (final Exception exception) {\n // The receiver was not registered. There is nothing to do in that case. Everything is fine.\n }\n }", "@Override\r\n\tpublic void onRemove() {\n\r\n\t}", "public void addDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.add(listener);\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\n\t}", "protected void discard()\n {\n if (!isDiscarded())\n {\n OldOldCache map = OldOldCache.this;\n synchronized (map)\n {\n int cUnits = m_cUnits;\n if (cUnits == -1)\n {\n // entry is discarded; avoid repetitive events\n return;\n }\n\n if (cUnits > 0)\n {\n map.adjustUnits(-cUnits);\n }\n\n m_cUnits = -1;\n }\n\n // issue remove notification\n if (map.hasListeners())\n {\n map.dispatchEvent(map.instantiateMapEvent(\n MapEvent.ENTRY_DELETED, getKey(), getValue(), null));\n }\n }\n }", "public void onDestroy() {\n if (this.f16570d != null) {\n this.f16570d.cancel();\n this.f16570d = null;\n }\n if (this.f16571e != null) {\n this.f16571e.cancel();\n this.f16571e = null;\n }\n if (this.f16572f != null) {\n this.f16572f.cancel();\n this.f16572f = null;\n }\n if (this.f16573g != null) {\n this.f16573g.cancel();\n this.f16573g = null;\n }\n if (this.f16574h != null) {\n this.f16574h.cancel();\n this.f16574h = null;\n }\n if (this.f16575i != null) {\n this.f16575i.cancel();\n this.f16575i = null;\n }\n if (this.f16576j != null) {\n this.f16576j.cancel();\n this.f16576j = null;\n }\n if (this.f16577k != null) {\n this.f16577k.cancel();\n this.f16577k = null;\n }\n m20061a();\n if (this.f16579m != null) {\n this.f16579m.mo12510a();\n this.f16579m = null;\n }\n super.onDestroy();\n }", "public synchronized void stopUpdates(){\n mHandler.removeCallbacks(mStatusChecker);\n }", "private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "public void registerCandlestickCallback(final BitfinexCandlestickSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\tcandleCallbacks.registerCallback(symbol, callback);\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeiconified(WindowEvent arg0) {\n\t\t\r\n\t}" ]
[ "0.6412099", "0.59908307", "0.59476537", "0.5915005", "0.57888126", "0.5786033", "0.57707167", "0.5756887", "0.5754537", "0.57027817", "0.5628704", "0.5613855", "0.55823433", "0.558137", "0.55460745", "0.5542916", "0.55426514", "0.5534133", "0.5533953", "0.5528448", "0.55235213", "0.55142736", "0.5452776", "0.5403711", "0.53920776", "0.5388704", "0.5388209", "0.53808457", "0.5375573", "0.5373348", "0.5365342", "0.5365162", "0.5359789", "0.5349597", "0.5329973", "0.53225344", "0.5320666", "0.5319148", "0.5286494", "0.5271121", "0.52701557", "0.5250542", "0.5246996", "0.52467126", "0.5246316", "0.5238161", "0.52324826", "0.52242637", "0.521186", "0.51963586", "0.51963586", "0.51947916", "0.51941305", "0.5175727", "0.51727337", "0.5170998", "0.5169115", "0.51523155", "0.5147024", "0.5137663", "0.5137442", "0.51317537", "0.51304144", "0.51303864", "0.51280856", "0.51167905", "0.51159203", "0.5108607", "0.5097939", "0.50963956", "0.50962913", "0.5090924", "0.5089504", "0.5089301", "0.50844777", "0.5080763", "0.5079619", "0.50775343", "0.5076208", "0.5076208", "0.50758314", "0.5073347", "0.50671333", "0.506626", "0.5065378", "0.50608456", "0.50556123", "0.50556123", "0.50556123", "0.50556123", "0.50556123", "0.5046861", "0.5042052", "0.50411636", "0.50411475", "0.5033525", "0.5032876", "0.5032876", "0.5032876", "0.5032876" ]
0.6582518
0
Process a list with candlesticks
public void handleCandlestickList(final BitfinexCandlestickSymbol symbol, final List<BitfinexTick> ticksBuffer) { candleCallbacks.handleEventsList(symbol, ticksBuffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addIsochronesToChart(ArrayList<ArrayList<Star>> list) {\n int isoCounter = 0;\n int MAX_ISOCHRONES = 400;\n int SKIPPING_COUNT = list.size() / MAX_ISOCHRONES + 1;\n for (ArrayList<Star> isochrone : list) {\n isoCounter++;\n\n if (isoCounter % SKIPPING_COUNT != 0) {\n continue;\n }\n\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n XYChart.Series series = new XYChart.Series();\n int index = 0;\n for (Star s : isochrone) {\n if (index % 4 != 0) { index++; continue; } //faster rendering\n //need to invert x-axis and this solution sucks, but FIXME later\n series.getData().add(new XYChart.Data(-s.getTemperature(), s.getLuminosity()));\n index++;\n }\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n lineChart.getData().add(series);\n }\n });\n return null;\n }\n };\n\n Thread th = new Thread(task);\n th.setDaemon(true);\n th.start();\n }\n }", "List<Candlestick> getCandlestickBars(String symbol, CandlestickInterval interval, Long startTime, Long endTime, Integer limit);", "public void handleTicksList(final BitfinexTickerSymbol symbol, final List<BitfinexTick> ticksBuffer) {\n\t\ttickerCallbacks.handleEventsList(symbol, ticksBuffer);\n\t}", "private int processStockList(int count) {\n String line = this.result.get(count);\n if (line.indexOf(\"char:\") == 0) {\n checkEmptyLine(line);\n line = this.result.get(++count);\n }\n if (!line.equals(\"start:stock-list\")) {\n throw new IllegalArgumentException(\"Not find stock-list tag.\");\n }\n this.stockList = new LinkedList<>();\n this.weightList = new LinkedList<>();\n this.state = ProcessState.WAIT_STOCK;\n return ++count;\n }", "public okhttp3.Call executeAsync(final ApiCallback<List<FuturesCandlestick>> _callback) throws ApiException {\n return listOptionsUnderlyingCandlesticksAsync(underlying, limit, from, to, interval, _callback);\n }", "public interface CandlestickCollector {\n Candlestick collectCandlestick(String symbolPair, String timeFrame);\n}", "public static void calculateRsiForDataSet(List<CandleStick> rsiCandleSticksList, int duration) {\n\t\tif (duration >= rsiCandleSticksList.size())\n\t\t\treturn;\n\t\tdouble sessionGainSum = 0;\n\t\tdouble sessionLossSum = 0;\n\t\tdouble sessionChange;\n\t\tfor (int i = 1; i <= duration; i++) { // calculate first RSI.\n\t\t\tsessionChange = rsiCandleSticksList.get(i).getClose() - rsiCandleSticksList.get(i - 1).getClose();\n\t\t\tif (sessionChange > 0) {\n\t\t\t\tsessionGainSum += sessionChange;\n\t\t\t} else {\n\t\t\t\tsessionLossSum += sessionChange;\n\t\t\t}\n\t\t}\n\t\tdouble averageGain = sessionGainSum / duration;\n\t\tdouble averageLoss = sessionLossSum / duration;\n\t\tdouble rs = (averageGain / -averageLoss);\n\t\tdouble rsi = 100 - (100 / (1 + rs)); // first RSI.\n\t\trsiCandleSticksList.get(duration).setRsi(rsi);\n\t\tfor (int i = duration + 1; i < rsiCandleSticksList.size(); i++) { // for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// smoothing\n\t\t\tsessionChange = rsiCandleSticksList.get(i).getClose() - rsiCandleSticksList.get(i - 1).getClose();\n\t\t\tif (sessionChange > 0) {\n\t\t\t\taverageGain = (averageGain * (duration - 1) + sessionChange) / duration;\n\t\t\t\taverageLoss = (averageLoss * (duration - 1) + 0) / duration;\n\t\t\t} else {\n\t\t\t\taverageGain = (averageGain * (duration - 1) + 0) / duration;\n\t\t\t\taverageLoss = (averageLoss * (duration - 1) + sessionChange) / duration;\n\t\t\t}\n\t\t\trs = (averageGain / -averageLoss);\n\t\t\trsi = 100 - (100 / (1 + rs));\n\t\t\trsiCandleSticksList.get(i).setRsi(rsi);\n\t\t}\n\t}", "static void m11180a(List<Component<?>> list) {\n Set<C3246b> c = m11182c(list);\n Set<C3246b> b = m11181b(c);\n int i = 0;\n while (!b.isEmpty()) {\n C3246b next = b.iterator().next();\n b.remove(next);\n i++;\n for (C3246b next2 : next.mo20820d()) {\n next2.mo20823g(next);\n if (next2.mo20822f()) {\n b.add(next2);\n }\n }\n }\n if (i != list.size()) {\n ArrayList arrayList = new ArrayList();\n for (C3246b next3 : c) {\n if (!next3.mo20822f() && !next3.mo20821e()) {\n arrayList.add(next3.mo20819c());\n }\n }\n throw new DependencyCycleException(arrayList);\n }\n }", "private void m10266b(List<C2411a> list) {\n int i;\n int i2;\n List arrayList = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n arrayList.addAll(list);\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(0.0d));\n for (i = 0; i < 5; i++) {\n C2411a c2411a = (C2411a) arrayList.remove(0);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n }\n int size = arrayList.size();\n i = 5;\n while (i > 0) {\n i2 = size - 1;\n c2411a = (C2411a) arrayList.remove(size - i);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n i--;\n size = i2;\n }\n int size2 = arrayList.size();\n int i3 = size2 / 387;\n int i4 = 0;\n int i5 = 6;\n while (i4 < 387) {\n i2 = i4 * i3;\n if (i2 >= size2) {\n double j = ((C2411a) arrayList.get(size2 - 1)).m12234j();\n if (j > this.f8976d.getMaxVelocity()) {\n j = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(j));\n arrayList2.add(i5, Double.valueOf(((C2411a) arrayList.get(size2 - 1)).m12233i() / 1000.0d));\n size = i5 + 1;\n } else {\n c2411a = (C2411a) arrayList.get(i2);\n i = (i4 + 1) * i3;\n if (i >= size2) {\n i = size2 - 1;\n }\n C2411a c2411a2 = (C2411a) arrayList.get(i);\n long h = (c2411a2.m12232h() / 1000) - (c2411a.m12232h() / 1000);\n double d;\n if (h <= 0) {\n double d2 = 0.0d;\n while (i2 < (i4 + 1) * i3) {\n d2 += ((C2411a) arrayList.get(i2)).m12234j();\n i2++;\n }\n d = d2 / ((double) i3);\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n } else {\n d = ((c2411a2.m12233i() - c2411a.m12233i()) / ((double) h)) * 3.6d;\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n }\n arrayList2.add(i5, Double.valueOf(c2411a.m12233i() / 1000.0d));\n size = i5 + 1;\n }\n i4++;\n i5 = size;\n }\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(this.f8976d.getTotalDistance()));\n i2 = this.f8987o.size();\n i = 1;\n while (i < i2) {\n if (this.f8978f >= ((Double) arrayList2.get(i - 1)).doubleValue() && this.f8978f < ((Double) arrayList2.get(i)).doubleValue()) {\n this.f8987o.add(i, Double.valueOf(this.f8976d.getMaxVelocity()));\n arrayList2.add(i, Double.valueOf(this.f8978f));\n break;\n }\n i++;\n }\n this.f8993u = this.f8987o.size();\n }", "public okhttp3.Call executeAsync(final ApiCallback<List<OptionsCandlestick>> _callback) throws ApiException {\n return listOptionsCandlesticksAsync(contract, limit, from, to, interval, _callback);\n }", "public abstract void mo56923b(List<C4122e> list);", "public abstract void mo56920a(List<C4122e> list);", "public static List<String> highs(List<readStockInfo> list) {\n List<String> listOfHighs = new ArrayList<>();\n for(readStockInfo find : list) {\n listOfHighs.add(find.getHigh());\n }\n return listOfHighs;\n }", "public void mo7636x(List<C0933b> list) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n mo7620a(list.get(i));\n }\n list.clear();\n }", "private void m10274d(List<C2411a> list) {\n int i;\n StringBuilder stringBuilder = new StringBuilder();\n int size = list.size();\n C2411a c2411a;\n double f;\n if (size <= 200) {\n for (C2411a c2411a2 : list) {\n double e = c2411a2.m12229e();\n f = c2411a2.m12230f();\n if (e <= 90.0d && e >= -90.0d && f <= 180.0d && f >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(e).append(\",\").append(f).append('|');\n }\n }\n } else {\n int i2 = size / 200;\n for (int i3 = 0; i3 < 200; i3++) {\n i = i3 * i2;\n double f2;\n if (i >= size) {\n c2411a2 = (C2411a) list.get(size - 1);\n f = c2411a2.m12229e();\n f2 = c2411a2.m12230f();\n if (f <= 90.0d && f >= -90.0d && f2 <= 180.0d && f2 >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(f).append(\",\").append(f2).append('|');\n }\n } else {\n c2411a2 = (C2411a) list.get(i);\n f = c2411a2.m12229e();\n f2 = c2411a2.m12230f();\n if (f <= 90.0d && f >= -90.0d && f2 <= 180.0d && f2 >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(f).append(\",\").append(f2).append('|');\n }\n }\n }\n }\n if (stringBuilder.length() <= 0) {\n ArrayList arrayList = new ArrayList();\n for (i = 0; i < this.f8993u; i++) {\n arrayList.add(Double.valueOf(0.0d));\n }\n this.f8973a.mo3315b(arrayList);\n return;\n }\n m10265b(stringBuilder.substring(0, stringBuilder.length() - 1));\n }", "public void initializeSeriesData(List<CustomPair<String, CustomPair<Integer, Integer>>> cans)\n {\n this.cans.addAll(cans);\n for(CustomPair<String, CustomPair<Integer, Integer>> can: cans)\n {\n if(can.getValue() != null)\n {\n seriesCounters.put(can.getKey(), can.getValue());\n }\n seriesData.put(can.getKey(), new LinkedList<>());\n firstXValue.put(can.getKey(), 0);\n LineGraphSeries<DataPoint> lineGraphSeries = new LineGraphSeries<>();\n lineGraphSeries.setDrawDataPoints(true);\n lineGraphSeries.setColor(colorList.removeFirst());\n series.put(can.getKey(), lineGraphSeries);\n }\n }", "private void m10260a(List<C2411a> list) {\n for (C2411a c2411a : list) {\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n this.f8988p.add(Double.valueOf(c2411a.m12236l()));\n this.f8989q.add(Double.valueOf(c2411a.m12237m()));\n this.f8992t.add(Double.valueOf(c2411a.m12240p()));\n }\n this.f8993u = list.size();\n }", "private void handleListOperation() {\n\n Client client = ClientBuilder.newBuilder().build();\n WebTarget webTarget = client.target(\"http://localhost:8080/pa165/rest/bricks/\");\n webTarget.register(auth);\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Response response = invocationBuilder.get();\n\n if (response.getStatus() == Response.Status.OK.getStatusCode()) {\n List<BrickDto> brickDtoList = response.readEntity(new GenericType<List<BrickDto>>() {\n });\n System.out.println(\"Number of bricks returned: \" + brickDtoList.size());\n\n for (BrickDto b : brickDtoList) {\n System.out.println(b);\n }\n } else {\n System.out.println(\"Error code:\" + response.getStatus());\n }\n }", "void mo13370a(int i, int i2, List<C15929a> list) throws IOException;", "public List<StockData> multipleStockDate(List<String> codes) {\n String url = generateUrl(codes);\n RestTemplate rt = new RestTemplate();\n ResponseEntity<String> responseEntity = rt.getForEntity(url, String.class);\n String body = responseEntity.getBody();\n if (body.length() < 25) {\n return null;\n }\n return parseMultipleStockData(body);\n }", "public int[] coldN(ArrayList<LottoDay> list)\n\t{ \n\t\tint low=200;//set low to 200\n\t\tint[] numF = new int [48]; //create array of occurrences\n\t\tint[] check = new int [5]; //create an array for the first five numbers and the five lowest numbers\n\t\tint counter =0; //counts number of occurrences\n\t\t//cold numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tcheck = one.getWNum();//store the 5 lotto numbers\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<check.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//if lotto number equals the index\n\t\t\t\t\tif(check[k]==j)\n\t\t\t\t\t{\n\t\t\t\t\t\tcounter++; //add one to counter\n\t\t\t\t\t\tnumF[j]=counter+numF[j];//add one to occurrence\n\t\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for lowest number\n\t\tfor(int j=0; j<check.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//occurrence isn't zero and is lower than low\n\t\t\t\tif(numF[i]<low &&numF[i]!=0)\n\t\t\t\t{\n\t\t\t\t\tlow = numF[i]; //set low to new low of occurrence\n\t\t\t\t\tcheck[j]=i; //store new low occurrence\n\t\t\t\t\tindex=i; //store index of occurrence\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tlow=200;//reset low\n\t\t\tnumF[index]=0;//sets the lowest occurrence to zero\n\n\t\t}\n\n\n\n\t\treturn check;//return 5 lowest numbers\n\n\n\t}", "public void onTick() {\r\n if (this.worklist.size() > 0) {\r\n ArrayList<ACell> tempWorklist = new ArrayList<ACell>();\r\n for (ACell c : this.worklist) {\r\n tempWorklist.add(c);\r\n }\r\n this.worklist = new ArrayList<ACell>();\r\n this.collector(tempWorklist);\r\n }\r\n else if (this.allCellsFlooded()) {\r\n if (this.worklist.size() > 0) {\r\n this.worklist = new ArrayList<ACell>();\r\n }\r\n this.drawWin();\r\n }\r\n else if (this.currTurn >= this.maxTurn) {\r\n if (this.worklist.size() > 0) {\r\n this.worklist = new ArrayList<ACell>();\r\n }\r\n this.drawLose();\r\n }\r\n }", "public static void m55559a(ArrayList<C44064n> arrayList, C45842c c45842c) {\n AppMethodBeat.m2504i(52775);\n if (!C1853r.m3830YL()) {\n AppMethodBeat.m2505o(52775);\n } else if (c45842c == null || arrayList == null || arrayList.size() <= 0) {\n AppMethodBeat.m2505o(52775);\n } else {\n Iterator it = arrayList.iterator();\n while (it.hasNext()) {\n C44064n c44064n = (C44064n) it.next();\n if (c44064n != null) {\n C4990ab.m7417i(\"MicroMsg.EmojiGoogleMarketTool\", \"endSeachGoogleMarket: %s\", c44064n);\n C44221ar IW = c45842c.mo73638IW(c44064n.cwg);\n if (IW != null) {\n int i;\n if (c44064n.vbt == 10232) {\n IW.xYb = c44064n.vbq;\n IW.xXZ = c44064n.vbr;\n IW.xYa = new BigDecimal(c44064n.vbs).divide(new BigDecimal(1000000)).toString();\n IW.xXX = 12;\n i = IW.xXV;\n if (!(C33945b.m55560tZ(i) || C33945b.m55561ua(i))) {\n IW.mo69859Mo(4);\n }\n } else {\n IW.xXX = 10;\n IW.xXY = c44064n.vbt;\n i = IW.xXV;\n if (!(C33945b.m55560tZ(i) || C33945b.m55561ua(i))) {\n if (i == 3) {\n i = 1;\n } else {\n i = 0;\n }\n if (i == 0) {\n IW.mo69859Mo(10);\n }\n }\n }\n }\n }\n }\n AppMethodBeat.m2505o(52775);\n }\n }", "protected void m10244a(List<C2411a> list) {\n this.f8962d.f8973a.mo3326h();\n if (list != null && !list.isEmpty()) {\n int maxHeartRate;\n this.f8962d.m10304a(z);\n this.f8962d.f8973a.mo3307a(this.f8962d.f8976d, (List) list, this.f8962d.f8998z);\n this.f8962d.f8973a.mo3310a(this.f8962d.f8987o);\n this.f8962d.f8973a.mo3306a(this.f8962d.f8976d, this.f8962d.f8992t);\n if (this.f8962d.f8994v != null) {\n maxHeartRate = this.f8962d.f8994v.getMaxHeartRate();\n String[] split = this.f8962d.f8994v.getBirthday().split(HelpFormatter.DEFAULT_OPT_PREFIX);\n if (TextUtils.isDigitsOnly(split[0])) {\n maxHeartRate = (int) (208.754d - (((double) (Calendar.getInstance().get(1) - Integer.parseInt(split[0]))) * 0.734d));\n }\n } else {\n maxHeartRate = 0;\n }\n this.f8962d.f8973a.mo3305a(this.f8962d.f8976d, maxHeartRate, this.f8962d.f8988p);\n this.f8962d.f8973a.mo3318c(this.f8962d.f8989q);\n this.f8962d.m10274d((List) list);\n this.f8962d.m10278e((List) list);\n }\n }", "public final void mo23328bw(List<C40588xx> list) {\n AppMethodBeat.m2504i(53842);\n if (this.kSg == null) {\n this.kSg = new ArrayList();\n } else {\n this.kSg.clear();\n }\n this.kSg = list;\n notifyDataSetChanged();\n AppMethodBeat.m2505o(53842);\n }", "public static List<C3717i.C3719b> m18357a(List<C3717i.C3719b> list) {\n if (list == null || list.size() == 0) {\n return null;\n }\n if (Proxy.f16280c) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n C3717i.C3719b bVar = list.get(i);\n if (bVar != null) {\n Log.i(\"TAG_PROXY_PRE_FILTER\", bVar.f16375a + \": \" + bVar.f16375a);\n }\n }\n }\n ArrayList arrayList = new ArrayList();\n for (C3717i.C3719b bVar2 : list) {\n if (HttpHeaders.HOST.equals(bVar2.f16375a) || \"Keep-Alive\".equals(bVar2.f16375a) || C0058b.f471m.equals(bVar2.f16375a) || \"Proxy-Connection\".equals(bVar2.f16375a)) {\n arrayList.add(bVar2);\n }\n }\n list.removeAll(arrayList);\n if (Proxy.f16280c) {\n int size2 = list.size();\n for (int i2 = 0; i2 < size2; i2++) {\n C3717i.C3719b bVar3 = list.get(i2);\n if (bVar3 != null) {\n Log.i(\"TAG_PROXY_POST_FILTER\", bVar3.f16375a + \": \" + bVar3.f16376b);\n }\n }\n }\n return list;\n }", "public ApiResponse<List<FuturesCandlestick>> executeWithHttpInfo() throws ApiException {\n return listOptionsUnderlyingCandlesticksWithHttpInfo(underlying, limit, from, to, interval);\n }", "public void mo2783j(List<RecyclerView.C0145a0> list) {\n int size = list.size();\n while (true) {\n size--;\n if (size >= 0) {\n list.get(size).f996a.animate().cancel();\n } else {\n return;\n }\n }\n }", "public void startdOCKSList(\r\n org.tempuri.HISWebServiceStub.DOCKSListE dOCKSList48,\r\n final org.tempuri.HISWebServiceCallbackHandler callback)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[24].getName());\r\n _operationClient.getOptions().setAction(\"http://tempuri.org/DOCKSList\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n //Style is Doc.\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n dOCKSList48,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"dOCKSList\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"DOCKSList\"));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(\r\n org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.DOCKSListResponse.class);\r\n callback.receiveResultdOCKSList((org.tempuri.HISWebServiceStub.DOCKSListResponse) object);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrordOCKSList(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"DOCKSList\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"DOCKSList\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"DOCKSList\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex,\r\n new java.lang.Object[] { messageObject });\r\n\r\n callback.receiveErrordOCKSList(new java.rmi.RemoteException(\r\n ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrordOCKSList(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrordOCKSList(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrordOCKSList(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrordOCKSList(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrordOCKSList(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrordOCKSList(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrordOCKSList(f);\r\n }\r\n } else {\r\n callback.receiveErrordOCKSList(f);\r\n }\r\n } else {\r\n callback.receiveErrordOCKSList(f);\r\n }\r\n } else {\r\n callback.receiveErrordOCKSList(error);\r\n }\r\n }\r\n\r\n public void onFault(\r\n org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrordOCKSList(axisFault);\r\n }\r\n }\r\n });\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n\r\n if ((_operations[24].getMessageReceiver() == null) &&\r\n _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[24].setMessageReceiver(_callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n }", "void mo100444b(List<C40429b> list);", "public void onTick() {\n if (bfs) {\n if (b.hasNext()) {\n b.next();\n }\n }\n if (dfs) {\n if (d.hasNext()) {\n d.next();\n }\n }\n }", "private static List<C1980a> m13384c() {\n Throwable th;\n Throwable th2;\n List arrayList = new ArrayList();\n Object obj = null;\n try {\n Object query = C1916a.getDatabase().query(\"battery_watcher\", f10647b, null, null, null, null, \"timestamp DESC\");\n while (query.moveToNext()) {\n try {\n arrayList.add(C3550e.m13379a((Cursor) query));\n } catch (Throwable e) {\n Object obj2 = query;\n th = e;\n obj = obj2;\n } catch (Throwable th3) {\n th2 = th3;\n obj = query;\n }\n }\n C1946h.m6836a(query);\n } catch (Exception e2) {\n th = e2;\n try {\n FsLog.m6806c(f10646a, \"Error getting battery history\", th);\n C1946h.m6836a(obj);\n return arrayList;\n } catch (Throwable th4) {\n th2 = th4;\n C1946h.m6836a(obj);\n throw th2;\n }\n }\n return arrayList;\n }", "public int[] coldM(ArrayList<LottoDay> list)\n\t{\n\t\tint counter=0; //counts occurrences\n\t\tint low=200; //sets low to 200\n\t\tint [] megaF = new int [28]; //creates an array to store occurrences of mega numbers\n\t\tint[] check = new int [5]; //creates an array to store lowest mega numbers\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tmega= one.getMega();//get the mega number of the object\n\t\t\tfor(int j=0; j<megaF.length;j++)\n\t\t\t{\n\t\t\t\t//if mega number equals index\n\t\t\t\tif(mega==j)\n\t\t\t\t{\n\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\tmegaF[j]=counter+megaF[j]; //add one to occurrence\n\t\t\t\t\tcounter=0; //reset counter\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\tlow=200;//resets low\n\t\t//looks for the lowest number in the mega number array\n\t\tfor(int j=0; j<check.length;j++)\n\t\t{\n\t\t\tfor(int i=0; i<megaF.length;i++)\n\t\t\t{\n\t\t\t\t//if mega number is not zero and the occurrence is lower than low\n\t\t\t\tif(megaF[i]<low &&megaF[i]!=0)\n\t\t\t\t{\n\t\t\t\t\tlow = megaF[i]; //occurrence becomes new low\n\t\t\t\t\tindex=i;//store index\n\t\t\t\t\tcheck[j]=i;//store the mega number\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tlow=200;//reset low\n\t\t\tmegaF[index]=0;//set occurrence of the number to zero\n\t\t}\n\t\t//return 5 lowest mega numbers\n\t\treturn check;\n\t}", "public void processList(List<String> inList);", "private List<Tick> loadTicks(InputStream pInput) \n throws\n IOException\n {\n List<Tick> result = new ArrayList<Tick>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(pInput));\n\n String line;\n final Map<String, String> properties = new HashMap<String, String>();\n \n while ( (line = reader.readLine()) != null) {\n String str = line.trim();\n if (str.length() == 0 || str.startsWith(\"#\")) {\n // Skip comment\n } else if (str.startsWith(\"[\")) {\n // start new tick\n if (!properties.isEmpty()) {\n Tick tick = new Tick();\n tick.restore(mRegistry, properties);\n result.add(tick);\n properties.clear();\n }\n String name = str.substring(1, str.length() - 1);\n properties.put(Tick.P_TICK, name);\n } else if (properties != null) {\n // tick parameters\n int valueSep = str.indexOf('=');\n if (valueSep != -1) {\n String key = str.substring(0, valueSep).trim();\n String value = str.substring(valueSep + 1).trim();\n properties.put(key, value);\n }\n }\n }\n \n if (!properties.isEmpty()) {\n Tick tick = new Tick();\n tick.restore(mRegistry, properties);\n result.add(tick);\n }\n\n return result;\n }", "@Override\n\tpublic void visit(Candle candle) {\n\t\t\n\t}", "void handle(List<FeedEntry> feedEntryBatch);", "private static List<TimeSeriesExt> initTimeSeriesExtList(List<TimeSeriesExt> tseList) {\r\n\r\n\t\tTimeSeriesExt tse0 = tseList.get(0);\r\n\t\ttse0.setHighIncrease(0);\r\n\t\ttse0.setLowDecrease(0);\r\n\t\t\r\n\t\tfor(int i=1; i<tseList.size(); i++) {\r\n\t\t\ttse0 = tseList.get(i-1);\r\n\t\t\tTimeSeriesExt tse1 = tseList.get(i);\r\n\t\t\ttse1.setHighIncrease(tse1.getHigh()-tse0.getClose());\r\n\t\t\ttse1.setHighIncreaseP(tse1.getHighIncrease()/tse0.getClose());\r\n\t\t\t\r\n\t\t\ttse1.setLowDecrease(tse1.getLow()-tse0.getClose());\r\n\t\t\ttse1.setLowDecreaseP(tse1.getLowDecrease()/tse0.getClose());\r\n\t\t\t\r\n\t\t\ttse1.setCloseIncrease(tse1.getClose()-tse0.getClose());\r\n\t\t\ttse1.setCloseIncreaseP(tse1.getCloseIncrease()/tse0.getClose());\r\n\t\t}\r\n\t\t\r\n\t\treturn tseList;\r\n\t}", "public abstract List<ScorePackage> getScores(List<T> observationList);", "private static ArrayList<Float> manipulate(Set manipulatePosList, int anomaly, ArrayList<Float> simList) {\r\n for (Object elem : manipulatePosList) {\r\n switch (anomaly) {\r\n case 3:\r\n if ((Integer) elem == 0) {\r\n lowerLimNext = startHum + max_rateOfChange;\r\n } else {\r\n lowerLimNext = (float) simList.get((Integer) elem - 1) + max_rateOfChange;\r\n }\r\n upperLimNext = upperLimit;\r\n nextValue = calcNextValue(lowerLimNext, upperLimNext);\r\n simList.add((Integer) elem, nextValue);\r\n break;\r\n case 4:\r\n simList.add((Integer) elem, -1f);\r\n break;\r\n case 5:\r\n simList.add((Integer) elem, -1f);\r\n break;\r\n }\r\n }\r\n return simList;\r\n }", "public final void m62342a(@Nullable List<C14975c> list) {\n if (list == null) {\n list = C17554o.m64195a();\n }\n this.f51846a = list;\n notifyDataSetChanged();\n }", "protected List refreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {\n/* 1614 */ List result = new ArrayList();\n/* */ \n/* 1616 */ Font tickLabelFont = getTickLabelFont();\n/* 1617 */ g2.setFont(tickLabelFont);\n/* */ \n/* 1619 */ if (isAutoTickUnitSelection()) {\n/* 1620 */ selectAutoTickUnit(g2, dataArea, edge);\n/* */ }\n/* */ \n/* 1623 */ DateTickUnit unit = getTickUnit();\n/* 1624 */ Date tickDate = calculateLowestVisibleTickValue(unit);\n/* 1625 */ Date upperDate = getMaximumDate();\n/* */ \n/* 1627 */ boolean hasRolled = false;\n/* 1628 */ while (tickDate.before(upperDate)) {\n/* */ \n/* 1630 */ if (!hasRolled) {\n/* 1631 */ tickDate = correctTickDateForPosition(tickDate, unit, this.tickMarkPosition);\n/* */ }\n/* */ \n/* */ \n/* 1635 */ long lowestTickTime = tickDate.getTime();\n/* 1636 */ long distance = unit.addToDate(tickDate, this.timeZone).getTime() - lowestTickTime;\n/* */ \n/* 1638 */ int minorTickSpaces = getMinorTickCount();\n/* 1639 */ if (minorTickSpaces <= 0) {\n/* 1640 */ minorTickSpaces = unit.getMinorTickCount();\n/* */ }\n/* 1642 */ for (int minorTick = 1; minorTick < minorTickSpaces; minorTick++) {\n/* 1643 */ long minorTickTime = lowestTickTime - distance * minorTick / minorTickSpaces;\n/* */ \n/* 1645 */ if (minorTickTime > 0L && getRange().contains(minorTickTime) && \n/* 1646 */ !isHiddenValue(minorTickTime)) {\n/* 1647 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), \"\", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1653 */ if (!isHiddenValue(tickDate.getTime())) {\n/* */ TextAnchor rotationAnchor, anchor;\n/* */ String tickLabel;\n/* 1656 */ DateFormat formatter = getDateFormatOverride();\n/* 1657 */ if (formatter != null) {\n/* 1658 */ tickLabel = formatter.format(tickDate);\n/* */ } else {\n/* */ \n/* 1661 */ tickLabel = this.tickUnit.dateToString(tickDate);\n/* */ } \n/* */ \n/* 1664 */ double angle = 0.0D;\n/* 1665 */ if (isVerticalTickLabels()) {\n/* 1666 */ anchor = TextAnchor.CENTER_RIGHT;\n/* 1667 */ rotationAnchor = TextAnchor.CENTER_RIGHT;\n/* 1668 */ if (edge == RectangleEdge.TOP) {\n/* 1669 */ angle = 1.5707963267948966D;\n/* */ } else {\n/* */ \n/* 1672 */ angle = -1.5707963267948966D;\n/* */ }\n/* */ \n/* */ }\n/* 1676 */ else if (edge == RectangleEdge.TOP) {\n/* 1677 */ anchor = TextAnchor.BOTTOM_CENTER;\n/* 1678 */ rotationAnchor = TextAnchor.BOTTOM_CENTER;\n/* */ } else {\n/* */ \n/* 1681 */ anchor = TextAnchor.TOP_CENTER;\n/* 1682 */ rotationAnchor = TextAnchor.TOP_CENTER;\n/* */ } \n/* */ \n/* */ \n/* 1686 */ Tick tick = new DateTick(tickDate, tickLabel, anchor, rotationAnchor, angle);\n/* */ \n/* 1688 */ result.add(tick);\n/* 1689 */ hasRolled = false;\n/* */ \n/* 1691 */ long currentTickTime = tickDate.getTime();\n/* 1692 */ tickDate = unit.addToDate(tickDate, this.timeZone);\n/* 1693 */ long nextTickTime = tickDate.getTime();\n/* 1694 */ for (int minorTick = 1; minorTick < minorTickSpaces; \n/* 1695 */ minorTick++) {\n/* 1696 */ long minorTickTime = currentTickTime + (nextTickTime - currentTickTime) * minorTick / minorTickSpaces;\n/* */ \n/* */ \n/* 1699 */ if (getRange().contains(minorTickTime) && \n/* 1700 */ !isHiddenValue(minorTickTime)) {\n/* 1701 */ result.add(new DateTick(TickType.MINOR, new Date(minorTickTime), \"\", TextAnchor.TOP_CENTER, TextAnchor.CENTER, 0.0D));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* */ \n/* 1710 */ tickDate = unit.rollDate(tickDate, this.timeZone);\n/* 1711 */ hasRolled = true;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1716 */ return result;\n/* */ }", "public static <T, R> List<R> process(List<T> list, Function<T, R> f) {\n\t\tList<R> result = new ArrayList<>();\n\t\tfor (T t : list) {\n\t\t\tR r = f.apply(t);\n\t\t\tresult.add(r);\n\t\t}\n\t\treturn result;\n\t}", "private void m10278e(List<C2411a> list) {\n if (list != null && !list.isEmpty() && list.size() > 0) {\n AVUser currentUser = AVUser.getCurrentUser();\n if (currentUser != null && this.f8973a.mo3316c().equals(currentUser.getObjectId())) {\n C2411a c2411a = (C2411a) list.get(0);\n new C1855a().m9671a(this.f8974b, this.f8996x, c2411a.m12229e(), c2411a.m12230f(), new C19956(this));\n }\n }\n }", "private static void cutSticks(ArrayList<Integer> numbers, int min) {\n\t\tint length = numbers.size();\n\t\t\n\t\twhile(min < Integer.MAX_VALUE){\n\t\t\tSystem.out.println(numbers.size());\n\t\t\tint newMin = Integer.MAX_VALUE;\n\t\t\tfor(int i = 0; i < numbers.size(); i++){\n\t\t\t\tint newno = numbers.get(i) - min;\n\t\t\t\tif(newno > 0){\n\t\t\t\t\tnumbers.set(i, numbers.get(i) - min);\n\t\t\t\t\tif(newno < newMin){\n\t\t\t\t\t\tnewMin = newno;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tnumbers.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tmin = newMin;\n\t\t}\n\t\t\n\t}", "private void markTrucks(HashMap<String, LatLng> latLongList, int index) {\n for (Map.Entry<String, LatLng> entry : latLongList.entrySet()) {\n createMarker(entry.getValue(), entry.getKey(), index);\n }\n }", "private void m10270c(List<C2411a> list) {\n int i;\n int i2;\n int size = list.size();\n int i3 = size / HttpStatus.SC_BAD_REQUEST;\n for (int i4 = 0; i4 < HttpStatus.SC_BAD_REQUEST; i4++) {\n i = i4 * i3;\n if (i >= size) {\n this.f8991s.add(Double.valueOf(((C2411a) list.get(size - 1)).m12233i() / 1000.0d));\n if (((C2411a) list.get(size - 1)).m12236l() > this.f8981i) {\n this.f8988p.add(Double.valueOf(this.f8981i));\n } else {\n this.f8988p.add(Double.valueOf(((C2411a) list.get(size - 1)).m12236l()));\n }\n this.f8989q.add(Double.valueOf(((C2411a) list.get(size - 1)).m12237m()));\n this.f8992t.add(Double.valueOf(((C2411a) list.get(size - 1)).m12240p()));\n } else {\n C2411a c2411a = (C2411a) list.get(i);\n double d = 0.0d;\n double d2 = 0.0d;\n double d3 = 0.0d;\n for (i2 = i; i2 < (i4 + 1) * i3; i2++) {\n d += ((C2411a) list.get(i2)).m12236l();\n d2 += ((C2411a) list.get(i2)).m12237m();\n d3 += ((C2411a) list.get(i2)).m12240p();\n }\n if (d / ((double) i3) > this.f8981i) {\n this.f8988p.add(Double.valueOf(this.f8981i));\n } else {\n this.f8988p.add(Double.valueOf(d / ((double) i3)));\n }\n if (d2 / ((double) i3) > this.f8984l) {\n this.f8989q.add(Double.valueOf(this.f8984l));\n } else {\n this.f8989q.add(Double.valueOf(d2 / ((double) i3)));\n }\n if (d3 / ((double) i3) > this.f8986n) {\n this.f8992t.add(Double.valueOf(this.f8986n));\n } else {\n this.f8992t.add(Double.valueOf(d3 / ((double) i3)));\n }\n if (i4 == 0) {\n this.f8991s.add(Double.valueOf(0.0d));\n } else if (i4 == 399) {\n this.f8991s.add(Double.valueOf(this.f8976d.getTotalDistance()));\n } else {\n this.f8991s.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n }\n }\n }\n i2 = this.f8988p.size();\n i = 1;\n while (i < i2) {\n if (this.f8982j >= ((Double) this.f8991s.get(i - 1)).doubleValue() && this.f8982j < ((Double) this.f8991s.get(i)).doubleValue()) {\n this.f8988p.remove(i - 1);\n this.f8988p.add(i - 1, Double.valueOf(this.f8981i));\n this.f8991s.remove(i - 1);\n this.f8991s.add(i - 1, Double.valueOf(this.f8982j));\n break;\n }\n i++;\n }\n i2 = this.f8989q.size();\n i = 1;\n while (i < i2) {\n if (this.f8983k >= ((Double) this.f8991s.get(i - 1)).doubleValue() && this.f8983k < ((Double) this.f8991s.get(i)).doubleValue()) {\n this.f8989q.remove(i - 1);\n this.f8989q.add(i - 1, Double.valueOf(this.f8984l));\n this.f8991s.remove(i - 1);\n this.f8991s.add(i - 1, Double.valueOf(this.f8983k));\n break;\n }\n i++;\n }\n i2 = this.f8992t.size();\n i = 1;\n while (i < i2) {\n if (this.f8985m < ((Double) this.f8991s.get(i - 1)).doubleValue() || this.f8985m >= ((Double) this.f8991s.get(i)).doubleValue()) {\n i++;\n } else {\n this.f8992t.remove(i - 1);\n this.f8992t.add(i - 1, Double.valueOf(this.f8986n));\n this.f8991s.remove(i - 1);\n this.f8991s.add(i - 1, Double.valueOf(this.f8985m));\n return;\n }\n }\n }", "private List<StockData> parseMultipleStockData(String data) {\n String[] arr = data.split(\";\\n\");\n List<StockData> list = new ArrayList<>();\n for (String sd : arr) {\n list.add(parseStockData(sd));\n }\n return list;\n }", "public void mo31844bP(List<C7301c> list) {\n this.dAK.clear();\n this.dAK.addAll(list);\n notifyDataSetChanged();\n }", "public ListTimer(List<Integer> list){\n\t\tsuper();\n\t\tthis.list = list;\n\t}", "public void subscribeCandles(final BitfinexCandlestickSymbol symbol) {\n\t\tfinal SubscribeCandlesCommand command = new SubscribeCandlesCommand(symbol);\n\t\tbitfinexApiBroker.sendCommand(command);\n\t}", "public static void main(String args[]) throws Exception {\n Scanner sc = new Scanner(new FileInputStream(\"probs/Hackerrank/cut_sticks_1.txt\"));\n //Scanner sc = new Scanner(System.in);\n\n int T = sc.nextInt();\n sc.nextLine();\n List<Integer> sticks = new ArrayList<>(T);\n for (int i = 0; i < T; i++) {\n sticks.add(sc.nextInt());\n }\n\n while (sticks.size() > 1) {\n int low = sticks.get(0);\n for (Integer stick : sticks) {\n if (stick < low) low = stick;\n }\n }\n\n System.out.println(sticks);\n }", "private static void printCloudletList(List<Cloudlet> list) {\n\t\tint size = list.size();\n\t\tCloudlet cloudlet;\n List<Double> CPUtime = new ArrayList<Double>();\n List <Double> cputime = new ArrayList<Double>();\n List <Double> start_time = new ArrayList<Double>();\n List<Double> starttime = new ArrayList<Double>();\n List<Double> endtime = new ArrayList<Double>();\n\t\tString indent = \" \";\n\t\tLog.printLine();\n\t\tLog.printLine(\"========== OUTPUT ==========\");\n\t\tDecimalFormat dft = new DecimalFormat(\"###.##\");\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tcloudlet = list.get(i);\n\t\t if (cloudlet.getCloudletStatus() == Cloudlet.SUCCESS){\n\t\t\t\tcputime.add(cloudlet.getActualCPUTime());\n\t\t\t\tstart_time.add(cloudlet.getExecStartTime());\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tcloudlet = list.get(i);\n\t\t\tif (cloudlet.getCloudletStatus() == Cloudlet.SUCCESS){\n\t\t if(!CPUtime.contains(cloudlet.getActualCPUTime())) {\n\t\t \t CPUtime.add(cloudlet.getActualCPUTime());\n\t\t \t }\n\t\t if(!starttime.contains(cloudlet.getExecStartTime())) {\n\t\t \t starttime.add(cloudlet.getExecStartTime());\n\t\t \t}\n\t\t if(!endtime.contains(cloudlet.getFinishTime())) {\n\t\t \t endtime.add(cloudlet.getFinishTime());\n\t\t \t }\n\t\t\t}\n\t\t}\n\t\t\n int n=0;\n\t\tfor (int i=0; i< CPUtime.size();i++) {\n\t\t\t\n n= Collections.frequency(cputime,CPUtime.get(i));\n Log.printLine(dft.format(n)+\" \"+\"Cloudlets finish in \"+ dft.format(CPUtime.get(i))+\"s\" );\n\t\t}\n\t\tLog.printLine();\n\t\tfor (int i=0; i< starttime.size();i++) {\n\t\t\t n= Collections.frequency(start_time,starttime.get(i));\n\t\t\t Log.printLine(dft.format(n)+\" \"+\"Cloudlets executes in time \"+ dft.format(starttime.get(i))+\"~\" + dft.format(endtime.get(i))+\"s\");\n\t\t }\n\t}", "void mo13375a(boolean z, int i, int i2, List<C15929a> list);", "public void m65918a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56358a.H();\n if (spotifyTrackSearchTarget != null) {\n this.f56358a.f56363e = true;\n spotifyTrackSearchTarget.addTracks(list);\n this.f56358a.f56361c = this.f56358a.f56361c + 1;\n }\n }", "private void m152570a(List<ByteBuffer> list) {\n synchronized (this.f113322u) {\n for (ByteBuffer byteBuffer : list) {\n m152578e(byteBuffer);\n }\n }\n }", "public APIlistOptionsUnderlyingCandlesticksRequest listOptionsUnderlyingCandlesticks(String underlying) {\n return new APIlistOptionsUnderlyingCandlesticksRequest(underlying);\n }", "@Override // java.util.function.Consumer\n public /* bridge */ /* synthetic */ void accept(List<? extends Control> list) {\n accept((List<Control>) list);\n }", "public static final List<NormalTrackTimeStamp> m130161a(long j, List<? extends NormalTrackTimeStamp> list) {\n long j2;\n boolean z;\n if (list == null) {\n return null;\n }\n Iterable iterable = list;\n Collection arrayList = new ArrayList();\n for (Object next : iterable) {\n NormalTrackTimeStamp normalTrackTimeStamp = (NormalTrackTimeStamp) next;\n if (normalTrackTimeStamp != null) {\n j2 = (long) normalTrackTimeStamp.getPts();\n } else {\n j2 = 0;\n }\n long j3 = j - j2;\n if (-160 <= j3 && 160 >= j3) {\n z = true;\n } else {\n z = false;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n return (List) arrayList;\n }", "public final void mo17891a(List<? extends C11847b> list) {\n for (C11847b bVar : list) {\n if (bVar instanceof C5925a) {\n m19107a((C5925a) bVar);\n } else if (!this.f13774c.mo17809a(bVar)) {\n continue;\n } else if (bVar != null) {\n m19108a((C11866a) bVar);\n } else {\n throw new TypeCastException(\"null cannot be cast to non-null type com.xwray.groupie.kotlinandroidextensions.Item\");\n }\n }\n }", "public void preprocessObsList(List<Obs> obsList) {\n for(Obs obs : obsList) {\r\n if (dictionary.isMapped(obs) != null) {\r\n dictionary.mapToNMRS(obs);\r\n System.out.println(\"CMap was found\");\r\n obs.setAllowed(true);\r\n }else{\r\n obs.setAllowed(false);\r\n dictionary.log(obs);\r\n }\r\n if(isExisting(obs)){\r\n obs.setExist(true);\r\n }else{\r\n obs.setExist(false);\r\n }\r\n }\r\n System.out.println(\"Preprocess Obs...\");\r\n //return mappedObs;\r\n }", "public void add(List<SermCit> citList){\n //Add one by one\n for (SermCit x : citList){\n add(x);\n }\n }", "public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\tcandleCallbacks.handleEvent(currencyPair, tick);\n\t}", "public ArrayList<Integer> localTops(List<Integer> list, int num){\n\n ArrayList<IndexHelperHelper> helperHelperList = new ArrayList();\n\n float[][] comps = this.reader.getSummary().getSentenceComparisons();\n List<IndexHelper> helperList = new ArrayList();\n for(Integer i : list){\n for(int j = 0; j < comps.length; j++){\n Float d = comps[i][j];\n if(i!=j && !list.contains(j) && d < .95)\n helperList.add(new IndexHelper(d,j));\n\n }\n helperHelperList.add(new IndexHelperHelper((ArrayList<IndexHelper>) helperList));\n\n }\n Collections.sort(helperHelperList);\n\n ArrayList<Integer> returnList = new ArrayList();\n \n try{\n while(returnList.size()<num){\n\n IndexHelperHelper h = (IndexHelperHelper) helperHelperList.get(0);\n\n Integer inte = h.getHelpers().get(0).getIndex();\n if(!returnList.contains(inte))\n returnList.add(inte);\n\n\n boolean b = h.remove(0); //remove first element in helper\n helperHelperList.remove(0);\n if(!b)\n helperHelperList.add(helperHelperList.size()-1, h);//replace first element with the new helper\n else\n helperHelperList.add(0,h);\n\n Collections.sort(helperHelperList);\n }\n }\n \n catch(IndexOutOfBoundsException e){\n System.err.println(\"IndexError, summary length: \" + list.size());\n }\n\n return returnList;\n\n }", "public void onSuccess(List<c> list) {\n g.this.cId = ImmutableList.m(list);\n }", "@Subscribe\n\tpublic void priceListListener(PriceList list) {\n\n\t\tfinal int value = price + 1 - list.getCurrentPrice();\n\n\t\tif (price == 1 && list.getCurrentPrice() == 1) {\n\t\t\t// When the price is 1 the price cannot go down. This means that the number can only not be 0.\n\t\t\tcalledNextInt(r -> r.nextInt(PRICE_BOUND) != RISING_PRICE_VALUE);\n\t\t}\n\t\telse {\n\t\t\tcalledNextInt(value);\n\t\t}\n\t\tprice = list.getCurrentPrice();\n\t}", "List<IShape> getShapesAtTick(int tick);", "public void fill(ArrayList<LottoDay> list)\n\t{\n\t\tint[] numF = new int [48];//store occurrences for lotto numbers\n\t\tint [] megaF = new int [28]; //store occurrences for mega numbers\n\t\tint[] check = new int [5]; // stores each objects 5 numbers\n\t\tint counter =0; //counts occurrences\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i); //get object\n\t\t\tcheck = one.getWNum(); //gets 5 numbers of the object\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<check.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//if number equals index\n\t\t\t\t\tif(check[k]==j)\n\t\t\t\t\t{\n\t\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\t\tnumF[j]=counter+numF[j]; //add one to occurrence\n\t\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tmega= one.getMega();//get mega number\n\t\t\tfor(int j=0; j<megaF.length;j++)\n\t\t\t{\n\t\t\t\t// if mega number equals index\n\t\t\t\tif(mega==j)\n\t\t\t\t{\n\t\t\t\t\tcounter++;//add one to count\n\t\t\t\t\tmegaF[j]=counter+megaF[j]; //add one to occurrence\n\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\tfor(int i=0; i<numF.length; i++)\n\t\t{\n\t\t\tnumber.put(i,numF[i]);//put all lotto numbers with occurrences\n\n\t\t}\n\t\tfor(int i=0; i<megaF.length; i++)\n\t\t{\n\t\t\tmegaN.put(i, megaF[i]);//put all mega numbers with occurrences\n\t\t}\n\t}", "void mo195a(List<LatLng> list) throws RemoteException;", "public ApiResponse<List<OptionsCandlestick>> executeWithHttpInfo() throws ApiException {\n return listOptionsCandlesticksWithHttpInfo(contract, limit, from, to, interval);\n }", "List<double[]> cmwa(List<double[]> points){\n List<double[]> outputList = new ArrayList<>();\n //output list tags the y values with the frame\n outputList.add(new double[]{(points.get(0)[0]+points.get(1)[0])/2, points.get(0)[1]});\n for (int i = 1; i < points.size() - 1; i++) {\n outputList.add(new double[]{(points.get(i-1)[0] + points.get(i)[0] + points.get(i+1)[0])/3, points.get(i)[1] });\n }\n outputList.add(new double[]{(points.get(points.size() - 1)[0] + points.get(points.size()-2)[0])/2, points.get(points.size()-1)[1]});\n return outputList;\n }", "private List<Bin> sortCarouselBinsToFront(List<Bin> availableBins, List<String> zoneList) {\r\n List<Bin> sortedBins = new ArrayList<Bin>();\r\n List<Bin> nonCarouselBins = new ArrayList<Bin>();\r\n \r\n for(Bin bin : availableBins) {\r\n if(ObjectUtils.isNotNull(bin.getZone())\r\n && zoneList.contains(bin.getZone().getZoneCd())) {\r\n sortedBins.add(bin);\r\n }\r\n else {\r\n nonCarouselBins.add(bin);\r\n }\r\n }\r\n sortedBins.addAll(nonCarouselBins); \r\n return sortedBins; \r\n }", "private List<Bin> discretizeRow(List<String> rawData) {\n\t\tList<Bin> binForThisAttr = new ArrayList<>();\n\t\tList<Double> procData = new ArrayList<>();\n\t\t// are we working with numbers or actual Strings\n\t\t// convert strings into Double, add to data attributes\n\t\tfor (int i = 0; i < rawData.size(); i++) {\n\t\t\tString raw = rawData.get(i);\n\t\t\t// check current attribute value for String type or floating point type\n\t\t\tif ((rawData.get(i).chars().allMatch(Character::isDigit) || rawData.get(i).contains(\".\"))) {\n\t\t\t\t//convert number strings into Doubles, or strings into unique Doubles\n\t\t\t\tprocData.add(Double.valueOf(raw));\n\t\t\t} else {\n\t\t\t\t// convert Strings into unique integers, add to data attributes\n\t\t\t\tprocData.add((double) raw.hashCode());\n\t\t\t} // end if-else\n\t\t}\n\n\t\t// sort data into ascending list of values\n\t\tCollections.sort(procData);\n\n\t\t// generate bins based on Naive Estimator Process\n\t\tfor (int i = 0; i < procData.size(); i++) {\n\t\t\tif (i == 0) {\n\t\t\t\t// append bin with lowest possible value\n\t\t\t\tbinForThisAttr.add(new Bin(Double.MIN_VALUE, procData.get(i), i));\n\t\t\t\t// binForThisAttr.get(binForT i = 0; i hisAttr.size() - 1).incrementFreq();\n\t\t\t} else if (i == procData.size() - 1) {\n\t\t\t\t// append bin with highest possible value\n\t\t\t\tbinForThisAttr.add(new Bin(procData.get(i), Double.MAX_VALUE, i));\n\t\t\t\t// binForThisAttr.get(binForThisAttr.size() - 1).incrementFreq();\n\t\t\t} else {\n\t\t\t\t// estimate the range of bin based on nearby points of data\n\t\t\t\tdouble lowBound = (procData.get(i - 1) + procData.get(i)) / 2;\n\t\t\t\tdouble highBound = (procData.get(i) + procData.get(i + 1)) / 2;\n\t\t\t\tbinForThisAttr.add(new Bin(lowBound, highBound, i));\n\t\t\t\t// binForThisAttr.get(binForThisAttr.size() - 1).incrementFreq();\n\t\t\t} // end if-else statement\n\t\t} // end for\n\t\treturn binForThisAttr;\n\t}", "private void processTaskList(List<Task> taskList) throws SQLException, DaoException {\n for (Task currentTask : taskList) {\n processTask(currentTask);\n }\n }", "void processScanCoordinates(List<Long> scanTimeStampList, String scanType){\n List<LatLng> scanCoordinates = new ArrayList<>();\n System.out.println(\"LENGTH BEFOREEEE\" + scanTimeStampList.size() + scanType);\n for(int i = 0; i < stepTimeStamp.size()-1;i++){\n long upperTimeBound = stepTimeStamp.get((i+1));\n long lowerTimeBound = stepTimeStamp.get(i);\n List<Integer> scanIndexWithinStep = new ArrayList<>();\n //Searches through the list of timestamps and adds the scan numbers that fall within the step to a list\n for(int j = 0; j < scanTimeStampList.size();j++){\n if(scanTimeStampList.get(j) <= upperTimeBound && scanTimeStampList.get(j)> lowerTimeBound){\n scanIndexWithinStep.add(j);\n }\n }\n if(scanIndexWithinStep.size()>0) {\n //Can loop through them as they will be sequential\n for (int k = scanIndexWithinStep.get(0); k <= scanIndexWithinStep.get(scanIndexWithinStep.size() - 1); k++) {\n //Run the algorithm for each scan that falls within the time range for each step\n double tempLat;\n double tempLong;\n //Formula from Dr. Zheng's paper\n // i here represents the number of steps as the index number in adaptiveTimeList is the step number\n if (xIncreasing) {\n tempLat = startLat + STEP_LENGTH * (i + (double) (scanTimeStampList.get(k) - lowerTimeBound) / (double) (upperTimeBound - lowerTimeBound)) * yCompMotion * degToMRatio;\n } else {\n tempLat = startLat - STEP_LENGTH * (i + (double) (scanTimeStampList.get(k) - lowerTimeBound) / (double) (upperTimeBound - lowerTimeBound)) * yCompMotion * degToMRatio;\n }\n if (yIncreasing) {\n tempLong = startLong + STEP_LENGTH * (i + (double) (scanTimeStampList.get(k) - lowerTimeBound) / (double) (upperTimeBound - lowerTimeBound)) * xCompMotion * degToMRatio;\n } else {\n tempLong = startLong - STEP_LENGTH * (i + (double) (scanTimeStampList.get(k) - lowerTimeBound) / (double) (upperTimeBound - lowerTimeBound)) * xCompMotion * degToMRatio;\n }\n scanCoordinates.add(new LatLng(tempLat, tempLong));\n }\n }\n\n }\n System.out.println(\"LENGTHHHH AFTER\" + scanCoordinates.size() + scanType);\n if(scanType == \"mag\"){\n magCoords = scanCoordinates;\n }\n else if(scanType == \"gyro\"){\n gyroCoords = scanCoordinates;\n }\n else if(scanType == \"accel\"){\n accelCoords = scanCoordinates;\n }\n else if(scanType == \"blue\"){\n blueGlobalCoords = scanCoordinates;\n }\n else if(scanType == \"red\"){\n redGlobalCoords = scanCoordinates;\n }\n }", "private void parseWorkDetailsForDay(WorkDetailList detailList,\n Map eligibleDollarsMap, CodeMapper codeMapper,\n ParametersResolved pars) {\n\n \tWorkDetailData detail = null;\n \tTimeCodeData tcodeData = null;\n \tHourTypeData htypeData = null;\n \tDouble dollarsPerTcodeHtype = null;\n \tdouble dollarsForWorkDetail = 0;\n \tString mapKey = null;\n\n \tfor (int i=0; i < detailList.size(); i++) {\n\n \t\tdetail = detailList.getWorkDetail(i);\n\n \t\ttcodeData = codeMapper.getTimeCodeById(detail.getTcodeId());\n \t\thtypeData = codeMapper.getHourTypeById(detail.getHtypeId());\n\n \t\t// Check if the time code and hour type are eligible for flsa dollars.\n \t\tif (RuleHelper.isCodeInList(pars.flsaDollarsTimeCodes, tcodeData.getTcodeName())\n \t\t\t\t&& RuleHelper.isCodeInList(pars.flsaDollarsHourTypes, htypeData.getHtypeName())\n \t\t\t\t&& htypeData.getHtypeMultiple() != 0) {\n\n \t\t\t// Calculate the dollars for the current work detail.\n \t\t\tif (RuleHelper.isCodeInList(pars.flsaHoursTimeCodes, tcodeData.getTcodeName())) {\n\n \t\t\t\t// If the timecode is also in the hours list, use this formula.\n \t\t\t\tdollarsForWorkDetail = detail.getWrkdMinutes() / 60d\n\t\t\t\t\t\t\t\t\t\t\t* (detail.getWrkdRate() / htypeData.getHtypeMultiple());\n \t\t\t} else {\n \t\t\t\tdollarsForWorkDetail = detail.getWrkdMinutes() / 60d\n\t\t\t\t\t\t\t\t\t\t\t* detail.getWrkdRate();\n \t\t\t}\n\n \t\t\t// Look up the running total for the timcode/hourtype combination.\n \t\t\tmapKey = tcodeData.getTcodeName() + \"_\" + htypeData.getHtypeName();\n \t\t\tdollarsPerTcodeHtype = (Double) eligibleDollarsMap.get(mapKey);\n\n \t\t\t// Add the dollars from the current work detail.\n \t\t\tif (dollarsPerTcodeHtype == null) {\n \t\t\t\tdollarsPerTcodeHtype = new Double(dollarsForWorkDetail);\n \t\t\t} else {\n \t\t\t\tdollarsPerTcodeHtype = new Double(dollarsPerTcodeHtype.doubleValue() + dollarsForWorkDetail);\n \t\t\t}\n\n \t\t\teligibleDollarsMap.put(mapKey, dollarsPerTcodeHtype);\n \t\t}\n\n\t\t\t// If it was eligible OT, then accumulate the OT Paid.\n\t\t\tif (RuleHelper.isCodeInList(pars.otEarnedTimeCodes, tcodeData.getTcodeName())\n \t\t\t\t&& RuleHelper.isCodeInList(pars.otEarnedHourTypes, htypeData.getHtypeName())) {\n\n\t\t\t\tpars.otEarned += (detail.getWrkdMinutes() / 60d)\n\t\t\t\t\t\t\t\t* detail.getWrkdRate();\n\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger.debug(\"wrkdStartTime: \" + detail.getWrkdStartTime()\n\t\t\t\t\t\t\t+ \"otEarned: \"\n\t\t\t\t\t\t\t+ (detail.getWrkdMinutes() / 60d)\n\t\t\t\t\t\t\t\t* detail.getWrkdRate());\n\t\t\t\t}\n\n\t\t\t}\n \t}\n\n }", "private Candle[] collectCandles(int index, int windowSize) {\r\n if (validateWindowSize(index, windowSize)) {\r\n\r\n Candle[] cd = new Candle[windowSize];\r\n int i = index - windowSize+1;\r\n int c = 0;\r\n while(i <= index) {\r\n cd[c] = this.candles[i];\r\n i++;\r\n c++;\r\n }\r\n return cd;\r\n } else {\r\n throw new RuntimeException(\"Window Size too big!\");\r\n }\r\n\r\n }", "public List<Integer> getChopsticks() {\n\t\tint chop_one = this.getId();\n\t\tint chop_two = 0;\n\t\tif (chop_one == 1) {\n\t\t\tchop_two = PhilosopherEat.TOTAL_MOUNT;\n\t\t} else {\n\t\t\tchop_two = chop_one - 1;\n\t\t}\n\t\tList<Integer> chopsList = new ArrayList<Integer>();\n\t\tchopsList.add(chop_one);\n\t\tchopsList.add(chop_two);\n\t\treturn chopsList;\n\t}", "private Candle[] read(String file) throws Exception {\r\n Scanner sc = new Scanner(new File(file));\r\n String[] spl;\r\n String s;\r\n Candle[] candles = new Candle[32 * 24 * 60];\r\n int i = 0;\r\n while(sc.hasNextLine()){\r\n spl = sc.nextLine().split(\",\");\r\n candles[i] = new Candle(spl[0] + \" \" + spl[1], spl[2], spl[3], spl[4], spl[5]);\r\n i++;\r\n\r\n }\r\n Candle[] newCandles = new Candle[i];\r\n System.arraycopy(candles, 0, newCandles, 0, i);\r\n sc.close();\r\n return newCandles;\r\n \r\n }", "private void fillTrackingList(String [] dataEntry){\n\n boolean check = true;\n double longtitude;\n double latitude;\n double altitude;\n double speed;\n\n for (String entry: dataEntry) {\n String [] entryValues = entry.split(\",\");\n\n // Needed to kick out a null Value\n if(check){\n String [] str = entryValues[0].split(\"null\");\n Log.d(\"CheckValue\",str[1]);\n longtitude = Double.parseDouble(str[1]);\n }else{\n longtitude = Double.parseDouble(entryValues[0]);\n }\n\n // Rest of the data is parsed\n latitude = Double.parseDouble(entryValues[1]);\n altitude = Double.parseDouble(entryValues[2]);\n speed = Double.parseDouble(entryValues[3]);\n\n // Adds Entry to the List\n TrackingEntry trackingEntry = new TrackingEntry(longtitude,latitude,altitude,speed);\n trackingList.add(trackingEntry);\n Log.d(\"CheckValue\",entryValues[0]);\n Log.d(\"lines\",\"Added: \"+trackingEntry.toString());\n\n check = false;\n }\n }", "private void m1088a(List<Integer> list) {\n this.f688c = list;\n }", "public static void readAll(List<Thing> list)\n {\n list.clear(); // Clear the target list first.\n\n /* Create a new prepared statement object with the desired SQL query. */\n PreparedStatement statement = Application.database.newStatement(\"SELECT id, name, categoryId FROM things ORDER BY id\"); \n\n if (statement != null) // Assuming the statement correctly initated...\n {\n ResultSet results = Application.database.runQuery(statement); // ...run the query!\n\n if (results != null) // If some results are returned from the query...\n {\n try { // ...add each one to the list.\n while (results.next()) { \n list.add( new Thing(results.getInt(\"id\"), results.getString(\"name\"), results.getInt(\"categoryId\")));\n }\n }\n catch (SQLException resultsexception) // Catch any error processing the results.\n {\n System.out.println(\"Database result processing error: \" + resultsexception.getMessage());\n }\n }\n }\n\n }", "private List<EffectInfoModel> m19295a(List<TemplateInfo> list, long j, Set<Long> set) {\n ArrayList arrayList = new ArrayList();\n if (list == null || list.isEmpty()) {\n return arrayList;\n }\n for (TemplateInfo templateInfo : list) {\n if (templateInfo.isRecommendItem()) {\n long rq = C2575a.m7391rq(templateInfo.ttid);\n if (C8451b.m24479up(QTemplateIDUtils.getTemplateSubType(rq))) {\n boolean isPhotoTemplate = QTemplateIDUtils.isPhotoTemplate(rq);\n if ((1048576 & j) == 0 || !isPhotoTemplate) {\n EffectInfoModel bw = this.bOt.mo35204bw(rq);\n if (bw == null) {\n bw = new EffectInfoModel(rq, \"\");\n bw.setbNeedDownload(true);\n }\n bw.mName = templateInfo.strTitle;\n bw.mThumbUrl = templateInfo.strIcon;\n bw.strSceneName = templateInfo.strScene;\n if (set.add(Long.valueOf(rq))) {\n arrayList.add(bw);\n }\n }\n }\n }\n }\n return arrayList;\n }", "public static void m128158b(List<MyMediaModel> list) {\n long j = 0;\n if (!C23477d.m77081a((Collection<T>) list)) {\n for (MyMediaModel myMediaModel : list) {\n if (myMediaModel != null) {\n j += myMediaModel.f88159e;\n }\n }\n }\n C6907h.m21524a(\"choose_upload_content\", (Map) C22984d.m75611a().mo59973a(\"content_type\", \"sound_sync\").mo59973a(\"upload_type\", \"multiple_content\").mo59971a(\"duration_ms\", j).f60753a);\n }", "public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }", "message.Figure.FigureData.FigureBase getFigureList(int index);", "@Override\n public void combineSim(ArrayList<Note> list) {\n }", "public void mo42107a(List<C12314c> list) {\n if (list != null) {\n ArrayList arrayList = null;\n for (C12314c dispose : list) {\n try {\n dispose.dispose();\n } catch (Throwable th) {\n C14398a.m62357b(th);\n if (arrayList == null) {\n arrayList = new ArrayList();\n }\n arrayList.add(th);\n }\n }\n if (arrayList == null) {\n return;\n }\n if (arrayList.size() == 1) {\n throw C13754k.m58724c((Throwable) arrayList.get(0));\n }\n throw new CompositeException((Iterable<? extends Throwable>) arrayList);\n }\n }", "public final void mo85414b(List<MicroAppInfo> list) {\n this.f86955a.clear();\n this.f86955a.addAll(list);\n notifyDataSetChanged();\n }", "private <T extends C9360c> void m15511a(List<T> list) {\n if (list != null && mo9140c() != null) {\n int i = 0;\n int i2 = 0;\n for (T t : list) {\n if (t.f25644a == this.f13394b.getOwner().getId()) {\n i = t.f25645b;\n } else if (t.f25644a == this.f13396d.f11667e) {\n i2 = t.f25645b;\n }\n }\n if (!((Integer) this.f13396d.get(\"data_pk_anchor_score\", Integer.valueOf(0))).equals(Integer.valueOf(i))) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_anchor_score\", Integer.valueOf(i));\n }\n if (!((Integer) this.f13396d.get(\"data_pk_guest_score\", Integer.valueOf(0))).equals(Integer.valueOf(i2))) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_guest_score\", Integer.valueOf(i2));\n }\n }\n }", "public void processList(String[] list) {\n Arrays.asList(list).forEach(e -> {\n productCountMap.put(e, productCountMap.getOrDefault(e, 0L) + 1);\n });\n }", "@Override\r\n\tpublic void fill(List<Category> list) {\n\t\tfor(Category category : list) {\r\n\t\t\tfill(category);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public final void mo85412a(List<MicroAppInfo> list) {\n this.f86955a.clear();\n this.f86955a.addAll(list);\n notifyDataSetChanged();\n }", "public void buildStocks(List<String[]> stockData){\n for(int i = 0; i < stockData.size(); i++){\n this.addToStockManager(this.buildStock(i, stockData)); \n }\n }", "public static void followMowers(List<Mower> listMowers, List<Coordinates> listCoordinates) {\n\t\tfor(int i=0; i<listCoordinates.size(); i++) {\n\t\t\tSystem.out.println(\"Mower \"+i);\n\t\t\tlistMowers.get(i).readCommands();\n\t\t}\n\n\t}", "public final List<l> apply(List<j> list) {\n kotlin.jvm.internal.h.e(list, \"it\");\n boolean a = this.dlr.a(this.dls, list);\n Iterable<j> iterable = list;\n Collection arrayList = new ArrayList(n.e(iterable, 10));\n for (j jVar : iterable) {\n kotlin.jvm.internal.h.d(jVar, \"it\");\n arrayList.add(new l(jVar, a ^ 1));\n }\n return (List) arrayList;\n }", "void onClientDataReceived(Client client, List<Float> weightList, List<Date> dateList);", "public final /* synthetic */ Map mo33710j(List list) {\n HashMap hashMap = new HashMap();\n for (C2168bw next : this.f1705f.values()) {\n String str = next.f1693c.f1686a;\n if (list.contains(str)) {\n C2168bw bwVar = (C2168bw) hashMap.get(str);\n if ((bwVar == null ? -1 : bwVar.f1691a) < next.f1691a) {\n hashMap.put(str, next);\n }\n }\n }\n return hashMap;\n }", "@Override\n\tprotected void convertChartDataPacksToSciomeSeries(ChartKey[] keys, List<ChartDataPack> chartPacks)\n\t{\n\n\t\tChartKey key = keys[0];\n\t\tList<SciomeSeries<Number, Number>> seriesData = new ArrayList<>();\n\n\t\tfor (ChartDataPack chartDataPack : getChartDataPacks())\n\t\t{\n\t\t\tList<ChartData> doubleList = new ArrayList<>();\n\t\t\tfor (ChartData chartData : chartDataPack.getChartData())\n\t\t\t{\n\t\t\t\tDouble dataPoint = (Double) chartData.getDataPoints().get(key);\n\t\t\t\tif (dataPoint == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tdoubleList.add(chartData);\n\t\t\t}\n\n\t\t\tdoubleList.sort(new Comparator<ChartData>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(ChartData o1, ChartData o2)\n\t\t\t\t{\n\t\t\t\t\treturn ((Double) o1.getDataPoints().get(key))\n\t\t\t\t\t\t\t.compareTo((Double) o2.getDataPoints().get(key));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tint i = 0;\n\t\t\tSciomeSeries<Number, Number> series = new SciomeSeries<>();\n\t\t\tseries.setName(chartDataPack.getName());\n\t\t\tDouble accumulation = 0.0;\n\n\t\t\tint count = 0;\n\t\t\tDouble currentValue = null;\n\t\t\tList<Object> charttableObjectsMasterList = new ArrayList<>();\n\t\t\tList<Object> charttableObjects = new ArrayList<>();\n\t\t\t/*\n\t\t\t * start adding accumulation values\n\t\t\t */\n\n\t\t\t// a list that will store the values associated with the object.\n\t\t\tList<Double> valuesList = new ArrayList<>();\n\t\t\tfor (ChartData value : doubleList)\n\t\t\t{\n\t\t\t\tDouble newValue = (Double) value.getDataPoints().get(key);\n\t\t\t\tif (!newValue.equals(currentValue) && currentValue != null)\n\t\t\t\t{\n\n\t\t\t\t\tif (charttableObjects.size() == 1) // we are in the area before the modulus kicks in.\n\t\t\t\t\t{\n\t\t\t\t\t\tint adds = 0;\n\t\t\t\t\t\tint j = i - 1;\n\t\t\t\t\t\twhile (adds < MAX_PREV_OBJECTS_TO_STORE && j >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcharttableObjects.add(charttableObjectsMasterList.get(j));\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t\t\tadds++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tAccumulationData theData = new AccumulationData(\"\", currentValue, accumulation,\n\t\t\t\t\t\t\tcharttableObjects, valuesList);\n\t\t\t\t\tseries.getData().add(theData);\n\t\t\t\t\tcharttableObjects = new ArrayList<>();\n\t\t\t\t\tvaluesList = new ArrayList<>();\n\t\t\t\t}\n\n\t\t\t\tcount++;\n\t\t\t\tvaluesList.add(newValue);\n\t\t\t\tcharttableObjects.add(value.getCharttableObject());\n\t\t\t\tcharttableObjectsMasterList.add(value.getCharttableObject());\n\t\t\t\taccumulation++;\n\t\t\t\tcurrentValue = newValue;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t// get the last one\n\t\t\tif (currentValue != null)\n\t\t\t{\n\t\t\t\tAccumulationData theData = new AccumulationData(\"\", currentValue, accumulation,\n\t\t\t\t\t\tcharttableObjects, valuesList);\n\t\t\t\tseries.getData().add(theData);\n\t\t\t}\n\t\t\tseriesData.add(series);\n\n\t\t}\n\n\t\tsetSeriesData(seriesData);\n\n\t}", "private static void cancelHandler(final List<ShareRunnableHandler> handlerList, final long ticks) {\n final ShareRunnableHandler handler = find(handlerList, ticks);\n if(handler != null) {\n handler.cancel();\n handlerList.remove(handler);\n }\n }" ]
[ "0.610655", "0.57495916", "0.55582285", "0.546075", "0.5440791", "0.5433714", "0.5418134", "0.5221096", "0.5182995", "0.51789105", "0.5154544", "0.51254946", "0.5092494", "0.508589", "0.5081988", "0.5050682", "0.5044552", "0.5031104", "0.5025828", "0.50187755", "0.5015271", "0.50100046", "0.5002075", "0.49841523", "0.49801692", "0.49791184", "0.49754724", "0.49729922", "0.49663693", "0.49369317", "0.49169278", "0.48929012", "0.4878604", "0.48766053", "0.48704463", "0.48559517", "0.4844762", "0.48183703", "0.48142442", "0.48017952", "0.48014998", "0.47975594", "0.4794805", "0.47828263", "0.47704354", "0.4764429", "0.4753268", "0.47285908", "0.47181764", "0.47096545", "0.4709338", "0.47076267", "0.46918145", "0.46855074", "0.4675274", "0.4665833", "0.46628654", "0.46496433", "0.464892", "0.46387267", "0.46351892", "0.46335685", "0.4633216", "0.46299794", "0.4621637", "0.46202633", "0.46192038", "0.4614921", "0.45954144", "0.4592835", "0.45917317", "0.45880097", "0.45830613", "0.45816398", "0.4581176", "0.4575697", "0.45649496", "0.45536217", "0.45535633", "0.45509705", "0.45458832", "0.45381325", "0.45336172", "0.45313287", "0.45306954", "0.4517598", "0.4512735", "0.45055142", "0.45020083", "0.44967273", "0.44900632", "0.4487421", "0.44855225", "0.44805002", "0.44664064", "0.4465104", "0.44616798", "0.4460189", "0.4458627", "0.44540256" ]
0.65429413
0
Handle a new candlestick
public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) { synchronized (lastTick) { lastTick.put(currencyPair, tick); lastTickTimestamp.put(currencyPair, System.currentTimeMillis()); } candleCallbacks.handleEvent(currencyPair, tick); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(Candle candle) {\n\t\t\n\t}", "public Candle createCandle(String type) {\n\t\tCandle candle = null;\n\t\t\n\t\tif (type.equals(\"jarCandle\")) {\n\t\t\tcandle = new JarCandle();\n\t\t} else if (type.equals(\"freeStandingCandle\")){\n\t\t\tcandle = new FreeStandingCandle();\n\t\t}\n\t\t\n\t\treturn candle;\n\t}", "CoinbaseCandleDataSupplier(int secondsPerCandle, TradePair tradePair) {\n super(200, secondsPerCandle, tradePair, new SimpleIntegerProperty(-1));\n }", "public void handleNewTick(final BitfinexTickerSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\ttickerCallbacks.handleEvent(currencyPair, tick);\n\t}", "public interface CandlestickCollector {\n Candlestick collectCandlestick(String symbolPair, String timeFrame);\n}", "public Candle(ZonedStockDateTime pBeginning, final double pLow,\r\n final double pHigh, final double pOpen, final double pClose) {\r\n beginning = pBeginning;\r\n low = pLow;\r\n high = pHigh;\r\n open = pOpen;\r\n close = pClose;\r\n }", "public void handleCandlestickList(final BitfinexCandlestickSymbol symbol, final List<BitfinexTick> ticksBuffer) {\n\t\tcandleCallbacks.handleEventsList(symbol, ticksBuffer);\n\t}", "@Override\n protected void onHandleIntent(Intent intent) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);\n int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(this,\n StockWidget.class));\n\n Cursor data = getContentResolver().query(Contract.Quote.URI, STOCKS_COLUMNS, null,\n null, Contract.Quote.COLUMN_SYMBOL + \" ASC\");\n if (data == null) {\n return;\n }\n if (!data.moveToFirst()) {\n data.close();\n return;\n }\n\n String symbol = data.getString(INDEX_SYMBOL);\n float price = data.getFloat(INDEX_PRICE);\n float change = data.getFloat(INDEX_CHANGE);\n\n data.close();\n\n // Perform this loop procedure for each Today widget\n// for (int appWidgetId : appWidgetIds) {\n// int layoutId = R.layout.widget_today_small;\n// RemoteViews views = new RemoteViews(getPackageName(), layoutId);\n//\n// views.setTextViewText(R.id.widget_high_temperature, formattedMaxTemperature);\n//\n// // Create an Intent to launch MainActivity\n// Intent launchIntent = new Intent(this, MainActivity.class);\n// PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, launchIntent, 0);\n// views.setOnClickPendingIntent(R.id.widget, pendingIntent);\n//\n// // Tell the AppWidgetManager to perform an update on the current app widget\n// appWidgetManager.updateAppWidget(appWidgetId, views);\n// }\n }", "public void subscribeCandles(final BitfinexCandlestickSymbol symbol) {\n\t\tfinal SubscribeCandlesCommand command = new SubscribeCandlesCommand(symbol);\n\t\tbitfinexApiBroker.sendCommand(command);\n\t}", "public void registerCandlestickCallback(final BitfinexCandlestickSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\tcandleCallbacks.registerCallback(symbol, callback);\n\t}", "@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif (pricesContainer.getLockObject().tryLock()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLabel bitcoinLabel = cryptoLabel.get(\"BTC\");\n\t\t\t\t\t\tbitcoinLabel.setText(String.valueOf(pricesContainer.getBitcoinPrice()));\n\n\t\t\t\t\t\tLabel etherLabel = cryptoLabel.get(\"ETH\");\n\t\t\t\t\t\tetherLabel.setText(String.valueOf(pricesContainer.getEtherPrice()));\n\n\t\t\t\t\t\tLabel litecoingLabel = cryptoLabel.get(\"LTH\");\n\t\t\t\t\t\tlitecoingLabel.setText(String.valueOf(pricesContainer.getLitecoinPrice()));\n\n\t\t\t\t\t\tLabel bitcoinCashLabel = cryptoLabel.get(\"BCH\");\n\t\t\t\t\t\tbitcoinCashLabel.setText(String.valueOf(pricesContainer.getBitcoinCashPrice()));\n\n\t\t\t\t\t\tLabel rippleLabel = cryptoLabel.get(\"XRP\");\n\t\t\t\t\t\trippleLabel.setText(String.valueOf(pricesContainer.getRipplePrice()));\n\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tpricesContainer.getLockObject().unlock();\n\t\t\t\t\t\t;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}", "Handle newHandle();", "List<Candlestick> getCandlestickBars(String symbol, CandlestickInterval interval, Long startTime, Long endTime, Integer limit);", "public void setClose(double value) {\n this.close = value;\n }", "private Candle[] read(String file) throws Exception {\r\n Scanner sc = new Scanner(new File(file));\r\n String[] spl;\r\n String s;\r\n Candle[] candles = new Candle[32 * 24 * 60];\r\n int i = 0;\r\n while(sc.hasNextLine()){\r\n spl = sc.nextLine().split(\",\");\r\n candles[i] = new Candle(spl[0] + \" \" + spl[1], spl[2], spl[3], spl[4], spl[5]);\r\n i++;\r\n\r\n }\r\n Candle[] newCandles = new Candle[i];\r\n System.arraycopy(candles, 0, newCandles, 0, i);\r\n sc.close();\r\n return newCandles;\r\n \r\n }", "public void syncHandle() {\n syncOldStream();\n }", "private void invokeHistoricChart(StockData sd)\r\n {\r\n\r\n debug(\"invokeHistoricChart(\" + sd.getName().toString() + \") - preparing to change\");\r\n\r\n String fileName = getString(\"WatchListTableModule.edit.historic_details_basic_name\") + sd.getSymbol().getDataSz();\r\n java.io.File theFile = new java.io.File(fileName);\r\n\r\n // First signal the chart if we are demo mode, we really do not want a problem\r\n // Then create a new instance of our chart.\r\n com.stockmarket.chart.ohlc.HighLowStockChart.DEMO_MODE = this.DEMO_MODE;\r\n com.stockmarket.chart.ohlc.HighLowStockChart chart = new com.stockmarket.chart.ohlc.HighLowStockChart();\r\n // If we have historic data send it through\r\n if (theFile.exists())\r\n {\r\n debug(\"invokeHistoricChart() - \" + fileName + \" exists preparing the Historic Chart\");\r\n chart.displayHighLowChart(fileName);\r\n }\r\n else if (this.DEMO_MODE)\r\n {\r\n // If we are demo mode display the Chart. With its default data\r\n javax.swing.JOptionPane.showMessageDialog(\r\n null,\r\n \"Application is in DEMO Mode\\n\"\r\n + \"No historic data for \"\r\n + sd.getName().toString()\r\n + \" exists, displaying default graph.\");\r\n chart.displayHighLowChart(null);\r\n }\r\n else\r\n {\r\n // If we are live mode and no historic data - tell the user to try later.\r\n // This is the case where the user reached a item to display as a chart\r\n // before the program has finished downloading.\r\n javax.swing.JOptionPane.showMessageDialog(\r\n null,\r\n \"Application has no historic data for \" + sd.getName().toString() + \"\\nTry again later!\");\r\n }\r\n\r\n debug(\"invokeHistoricChart() - Processing completed\");\r\n }", "@Override\n public void refreshContent(Entry e, Highlight highlight) {\n\n SimpleDateFormat dateFormatTime = new SimpleDateFormat(\"HH:mm:ss\");\n dateFormatTime.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n String time = \"\";\n if (startDataResponse.sensorData != null && startDataResponse.sensorData.size() != 0) {\n try {\n time = dateFormatTime.format(startDataResponse.sensorData.get(e.getXIndex()).timestamp);\n } catch (IndexOutOfBoundsException e1) {\n e1.printStackTrace();\n }\n }\n\n if (e instanceof CandleEntry) {\n\n CandleEntry ce = (CandleEntry) e;\n\n if (!NucleoApplication.getInstance().isFarengate)\n tvContent.setText(Utils.formatNumber(ce.getHigh(), 2, true) + \" \\u2103\" + \" @\" + time);\n else {\n\n tvContent.setText(Utils.formatNumber(9 * ce.getHigh() / 5 + 32, 2, true) + \" \\u2109\" + \" @\" + time);\n }\n\n\n } else {\n\n switch (NucleoApplication.getInstance().sensor_type) {\n case Constants.S_TEMP:\n if (!NucleoApplication.getInstance().isFarengate)\n tvContent.setText(String.format(Locale.ENGLISH, \"%.2f\", e.getVal()) + \" \\u2103\" + \" @\" + time);\n else\n tvContent.setText(String.format(Locale.ENGLISH, \"%.2f\", 9 * e.getVal() / 5 + 32) + \" \\u2109\" + \" @\" + time);\n break;\n case Constants.S_HUM:\n tvContent.setText(String.format(Locale.ENGLISH, \"%.2f\", e.getVal()) + \" %\" + \" @\" + time);\n break;\n case Constants.S_MAGN:\n tvContent.setText(String.format(Locale.ENGLISH, \"%.2f\", e.getVal()) + \" \\u00B5T\" + \" @\" + time);\n break;\n case Constants.S_BAR:\n tvContent.setText(String.format(Locale.ENGLISH, \"%.2f\", e.getVal()) + \" hPa\" + \" @\" + time);\n break;\n case Constants.S_G:\n tvContent.setText(String.format(Locale.ENGLISH, \"%.2f\", e.getVal()) + \" \\u00B0\" + \" @\" + time);\n break;\n case Constants.S_A:\n tvContent.setText(String.format(Locale.ENGLISH, \"%.2f\", e.getVal()) + \" g\" + \" @\" + time);\n break;\n default:\n break;\n }\n\n\n }\n }", "@Override\n\tprotected void handleClose() {\n\t}", "@Override\n public CompletableFuture<Optional<InProgressCandleData>> fetchCandleDataForInProgressCandle(\n TradePair tradePair, Instant currentCandleStartedAt, long secondsIntoCurrentCandle, int secondsPerCandle) {\n String startDateString = DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(LocalDateTime.ofInstant(\n currentCandleStartedAt, ZoneOffset.UTC));\n long idealGranularity = Math.max(10, secondsIntoCurrentCandle / 200);\n // Get the closest supported granularity to the ideal granularity.\n int actualGranularity = getCandleDataSupplier(secondsPerCandle, tradePair).getSupportedGranularities().stream()\n .min(Comparator.comparingInt(i -> (int) Math.abs(i - idealGranularity)))\n .orElseThrow(() -> new NoSuchElementException(\"Supported granularities was empty!\"));\n // TODO: If actualGranularity = secondsPerCandle there are no sub-candles to fetch and we must get all the\n // data for the current live syncing candle from the raw trades method.\n return HttpClient.newHttpClient().sendAsync(\n HttpRequest.newBuilder()\n .uri(URI.create(String.format(\n \"https://api.pro.coinbase.com/products/%s/candles?granularity=%s&start=%s\",\n tradePair.toString('-'), actualGranularity, startDateString)))\n .GET().build(),\n HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenApply(response -> {\n logger.info(\"coinbase response: \" + response);\n JsonNode res;\n try {\n res = OBJECT_MAPPER.readTree(response);\n } catch (JsonProcessingException ex) {\n throw new RuntimeException(ex);\n }\n\n if (res.isEmpty()) {\n return Optional.empty();\n }\n\n JsonNode currCandle;\n Iterator<JsonNode> candleItr = res.iterator();\n int currentTill = -1;\n double openPrice = -1;\n double highSoFar = -1;\n double lowSoFar = Double.MAX_VALUE;\n double volumeSoFar = 0;\n double lastTradePrice = -1;\n boolean foundFirst = false;\n while (candleItr.hasNext()) {\n currCandle = candleItr.next();\n if (currCandle.get(0).asInt() < currentCandleStartedAt.getEpochSecond() ||\n currCandle.get(0).asInt() >= currentCandleStartedAt.getEpochSecond() +\n secondsPerCandle) {\n // skip this sub-candle if it is not in the parent candle's duration (this is just a\n // sanity guard) TODO(mike): Consider making this a \"break;\" once we understand why\n // Coinbase is not respecting start/end times\n continue;\n } else {\n if (!foundFirst) {\n // FIXME: Why are we only using the first sub-candle here?\n currentTill = currCandle.get(0).asInt();\n lastTradePrice = currCandle.get(4).asDouble();\n foundFirst = true;\n }\n }\n\n openPrice = currCandle.get(3).asDouble();\n\n if (currCandle.get(2).asDouble() > highSoFar) {\n highSoFar = currCandle.get(2).asDouble();\n }\n\n if (currCandle.get(1).asDouble() < lowSoFar) {\n lowSoFar = currCandle.get(1).asDouble();\n }\n\n volumeSoFar += currCandle.get(5).asDouble();\n }\n\n int openTime = (int) (currentCandleStartedAt.toEpochMilli() / 1000L);\n\n return Optional.of(new InProgressCandleData(openTime, openPrice, highSoFar, lowSoFar,\n currentTill, lastTradePrice, volumeSoFar));\n });\n }", "public void handleNewAuctionRound(int roundNumber, int amount, long price);", "public void handleTickReceived() {\n if (this.mVisible) {\n updateIndication();\n }\n }", "private Candle[] collectCandles(int index, int windowSize) {\r\n if (validateWindowSize(index, windowSize)) {\r\n\r\n Candle[] cd = new Candle[windowSize];\r\n int i = index - windowSize+1;\r\n int c = 0;\r\n while(i <= index) {\r\n cd[c] = this.candles[i];\r\n i++;\r\n c++;\r\n }\r\n return cd;\r\n } else {\r\n throw new RuntimeException(\"Window Size too big!\");\r\n }\r\n\r\n }", "@Override\n\tpublic void handlePeriod() {\n\t}", "public void handleNew()\n {\n app.io.misc.playLoadSound();\n if(app.gui.dialogs.confirmSave())\n {\n app.io.loader.handleNew();\n }\n }", "public void onNewPosData(JsArray<Timeseries> data) {\n }", "private void processHeartRateData(SensorEvent event){\n //interval between two data entry should be min SENSOR_DATA_MIN_INTERVAL\n if ((event.timestamp - lastUpdatePPG) < SENSOR_DATA_MIN_INTERVAL_NANOS) {\n return;\n }\n lastUpdatePPG = event.timestamp;\n long timestamp = Util.getStartTime() + event.timestamp/Const.NANOS_TO_MILLIS;\n savePPGData(event.values[0], timestamp);\n\n\n }", "public double convert(CurrencyPair cp, DateTime dt) {\r\n int i = find_by_index(dt);\r\n int ic = cp.find_index(dt);\r\n return this.candles[i].getClose() / cp.candles[ic].getClose();\r\n }", "public void handleUpdate(WasteBinSensorData updatedData)\n\t{\n\t\t// extract updated values and store them in the current instance\n\t\t// variables.\n\t\tthis.fillLevel = updatedData.getFillLevel();\n\t\tthis.temperatureAsMeasure = updatedData.getTemperature();\n\t\t\n\t\t// update the latest update time\n\t\tthis.latestUpdate = new Date();\n\t\tHashMap<String, Object> valuesMap = new HashMap<>();\n\t\tvaluesMap.put(\"getTemperature\", this.getTemperature());\n\t\tvaluesMap.put(\"getLevel\", this.getLevel());\n\t\tPWALNewDataAvailableEvent event = new PWALNewDataAvailableEvent(this.getUpdatedAt(), this.getPwalId(),\n\t\t\t\tthis.getExpiresAt(), valuesMap, this);\n\t\tlogger.info(\"Device {} is publishing a new data available event on topic: {}\", this.getPwalId(),\n\t\t\t\tthis.eventPublisher.getTopics());\n\t\tthis.eventPublisher.publish(event);\n\t\t\n\t}", "public void setHandle(String handle) {\r\n this.handle = handle;\r\n }", "@Override\n public void onNewPrice(double price) {\n\n }", "@Override\n\tpublic void create(StockDataRecord bo) throws SQLException, BusinessObjectException {\n\t\tthis.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) );\n\t\tbo.get();\n\t\t\n\t}", "@Override\n public void heartRate(int valueHr, int timestamp) {\n }", "@Override\n public EventData next() {\n StockTick tick = new StockTick(names[RandomHelper.getIntFromRange(0, 4)]);\n tick.setTime(System.currentTimeMillis());\n tick.setPrice(MathHelper.getDouble(RandomHelper.getDoubleFromRange(34, 39), \"#.##\"));\n\n Map<String, Object> dataMap = new HashMap<>();\n dataMap.put(\"stockSymbol\", tick.getStockSymbol());\n dataMap.put(\"price\", tick.getPrice());\n dataMap.put(\"time\", tick.getTime());\n\n EventData edata = new EventData(\"StockTick\", dataMap);\n edata.addData(\"stockSymbol\", tick.getStockSymbol());\n edata.addData(\"price\", tick.getPrice());\n edata.addData(\"time\", tick.getTime());\n return edata;\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == SENS_ACCELEROMETER && event.values.length > 0) {\n float x = event.values[0];\n float y = event.values[1];\n float z = event.values[2];\n\n latestAccel = (float)Math.sqrt(Math.pow(x,2.)+Math.pow(y,2)+Math.pow(z,2));\n //Log.d(\"pow\", String.valueOf(latestAccel));\n\n }\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy >0) {\n\n Log.d(\"Sensor\", event.sensor.getType() + \",\" + event.accuracy + \",\" + event.timestamp + \",\" + Arrays.toString(event.values));\n\n int newValue = Math.round(event.values[0]);\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n \n if(newValue!=0 && lastTimeSentUnix < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnix = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", latestAccel);\n intent.putExtra(\"TIME\", event.timestamp);\n intent.putExtra(\"ACCEL\", latestAccel);\n\n\n Log.d(\"change\", \"send intent\");\n\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), latestAccel, event.timestamp, event.values);\n }\n }\n\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n cakeModel.numCandles = progress;\n cakeView.invalidate();\n }", "@Override\r\n\tpublic void getWindowHandle() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\tcase Bluetooth.SUCCESS_CONNECT:\n\t\t\t\tBluetooth.connectedThread = new Bluetooth.ConnectedThread((BluetoothSocket)msg.obj);\n\t\t\t\tToast.makeText(getApplicationContext(), \"Connected!\", Toast.LENGTH_SHORT).show();\n\t\t\t\tString s = \"successfully connected\";\n\t\t\t\tBluetooth.connectedThread.start();\n\t\t\t\tbreak;\n\t\t\tcase Bluetooth.MESSAGE_READ:\n\n\t\t\t\tbyte[] readBuf = (byte[]) msg.obj;\n\t\t\t\tString strIncom = new String(readBuf, 0, 5); // create string from bytes array\n\n\t\t\t\tLog.d(\"strIncom\", strIncom);\n\t\t\t\tif (strIncom.indexOf('.')==2 && strIncom.indexOf('s')==0){\n\t\t\t\t\tstrIncom = strIncom.replace(\"s\", \"\");\n\t\t\t\t\tif (isFloatNumber(strIncom)){\n\t\t\t\t\t\tSeries.appendData(new GraphViewData(graph2LastXValue, Double.parseDouble(strIncom)), AutoScrollX);\n\n\n Count++;//算次數\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date dt=new Date();\n String dts=sdf.format(dt);\n DBdata+=\"(' \" + dts + \" ' , ' \" + Double.parseDouble(strIncom)*512 + \" ' ),\";\n\n\n if(Count==20)\n {\n\t\t\t\t\t\t\t//Bluetooth.connectedThread.write(\"Q\");\n Count=0;\n String i = \"\";\n //DBdata = DBdata.substring(0,DBdata.length()-1);\n //DBdata += \";\";\n //i = DBconnect.db(DBdata);\n //Bluetooth.connectedThread.write(\"E\");\n //DBdata = \"INSERT INTO light VALUES\" ;\n }\n\n\n\t\t\t\t\t\t//X-axis control\n\t\t\t\t\t\tif (graph2LastXValue >= Xview && Lock == true){\n\t\t\t\t\t\t\tSeries.resetData(new GraphViewData[] {});\n\t\t\t\t\t\t\tgraph2LastXValue = 0;\n\t\t\t\t\t\t}else graph2LastXValue += 0.1;\n\n\t\t\t\t\t\tif(Lock == true)\n\t\t\t\t\t\t\tgraphView.setViewPort(0, Xview);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tgraphView.setViewPort(graph2LastXValue-Xview, Xview);\n\n\t\t\t\t\t\t//refresh\n\t\t\t\t\t\tGraphView.removeView(graphView);\n\t\t\t\t\t\tGraphView.addView(graphView);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n int heartRateWatch = intent.getIntExtra(LiveRecordingActivity.HEART_RATE, -1);\n String s = String.valueOf(heartRateWatch) + \" [BPM]\" ;\n hrTextView.setText(s);\n\n if (hasPlot) {\n // Plot the graph\n xyPlotSeriesList.updateSeries(HR_PLOT_WATCH, heartRateWatch);\n XYSeries hrWatchSeries = new SimpleXYSeries(xyPlotSeriesList.getSeriesFromList(HR_PLOT_WATCH), SimpleXYSeries.ArrayFormat.XY_VALS_INTERLEAVED, HR_PLOT_WATCH);\n LineAndPointFormatter formatterPolar = xyPlotSeriesList.getFormatterFromList(HR_PLOT_WATCH);\n heartRatePlot.clear();\n heartRatePlot.addSeries(hrWatchSeries, formatterPolar);\n heartRatePlot.redraw();\n // And add HR value to HR ArrayList\n hrDataArrayList.add(heartRateWatch);\n hrTimes.add(System.currentTimeMillis()-initialTime);\n }\n }", "void stockPriceChanged(Stock stock, double oldValue, double newValue);", "@Override\n public void onTick(long arg0) {\n }", "public Handle(int position) {\n this.position = position;\n }", "private void openRealTemp() {\n YCBTClient.appTemperatureMeasure(0x01, new BleDataResponse() {\n @Override\n public void onDataResponse(int i, float v, HashMap hashMap) {\n if (i == 0) {\n //success\n }\n }\n });\n }", "static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}", "protected void onTick() {\n\r\n System.out.println(\"Makinarekin konexioa ezartzen...\");\r\n try {\r\n\r\n Socket s = new Socket(\"localhost\", 5555);\r\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\r\n BufferedReader din = new BufferedReader(new InputStreamReader(s.getInputStream()));\r\n //Informazioa makinatik jaso\r\n if (itxaron == false) {\r\n dout.writeBytes(\"ask\");\r\n dout.flush();\r\n carga = din.readLine();\r\n System.out.println(\"Lan karga datua lortzen...\");\r\n System.out.println(carga);\r\n pieza = din.readLine();\r\n System.out.println(\"Pieza mota datua lortzen...\");\r\n System.out.println(pieza);\r\n catalogue.put(pieza, new Integer(carga));\r\n\r\n }\r\n //Makina pieza jasotzeko prestaztea esan\r\n if (itxaron == true) {\r\n dout.writeBytes(\"switch\");\r\n dout.flush();\r\n System.out.println(\"Makina pieza jasotzeko prestatzen...\");\r\n itxaron=false;\r\n }\r\n s.close();\r\n dout.flush();\r\n\r\n } catch(Exception e){\r\n\r\n System.out.println(\"Konexioa ezin izan da lortu\");\r\n }\r\n\r\n System.out.println(\"Makinarekin konexioa mozten\");\r\n\r\n\r\n }", "public TradingDayInfo(String ticker, String date, double openingPrice, double highPrice, double lowPrice, double closingPrice) {\n this.ticker = ticker;\n this.date = date;\n this.openingPrice = openingPrice;\n this.highPrice = highPrice;\n this.lowPrice = lowPrice;\n this.closingPrice = closingPrice;\n \n \n return;\n }", "@Override \r\n protected void calculate(int index, DataContext ctx)\r\n {\r\n DataSeries series = ctx.getDataSeries();\r\n boolean complete=true;\r\n \r\n /*\r\n int macdPeriod1 = getSettings().getInteger(MACD_PERIOD1, 12);\r\n int macdPeriod2 = getSettings().getInteger(MACD_PERIOD2, 26);\r\n Enums.MAMethod macdMethod = getSettings().getMAMethod(MACD_METHOD, Enums.MAMethod.EMA);\r\n Object macdInput = getSettings().getInput(MACD_INPUT, Enums.BarInput.CLOSE);\r\n if (index >= Util.max(macdPeriod1, macdPeriod2)) {\r\n Double MA1 = null, MA2 = null;\r\n MA1 = series.ma(macdMethod, index, macdPeriod1, macdInput);\r\n MA2 = series.ma(macdMethod, index, macdPeriod2, macdInput);\r\n \r\n double MACD = MA1 - MA2; \r\n series.setDouble(index, Values.MACD, MACD);\r\n\r\n int signalPeriod = getSettings().getInteger(Inputs.SIGNAL_PERIOD, 9);\r\n\r\n // Calculate moving average of MACD (signal line)\r\n Double signal = series.ma(getSettings().getMAMethod(Inputs.SIGNAL_METHOD, Enums.MAMethod.SMA), index, signalPeriod, Values.MACD);\r\n series.setDouble(index, Values.SIGNAL, signal);\r\n \r\n if (signal != null) series.setDouble(index, Values.HIST, MACD - signal);\r\n\r\n if (series.isBarComplete(index)) {\r\n // Check for signal events\r\n Coordinate c = new Coordinate(series.getStartTime(index), signal);\r\n if (crossedAbove(series, index, Values.MACD, Values.SIGNAL)) {\r\n MarkerInfo marker = getSettings().getMarker(Inputs.UP_MARKER);\r\n String msg = get(\"SIGNAL_MACD_CROSS_ABOVE\", MACD, signal);\r\n if (marker.isEnabled()) addFigure(new Marker(c, Enums.Position.BOTTOM, marker, msg));\r\n ctx.signal(index, Signals.CROSS_ABOVE, msg, signal);\r\n }\r\n else if (crossedBelow(series, index, Values.MACD, Values.SIGNAL)) {\r\n MarkerInfo marker = getSettings().getMarker(Inputs.DOWN_MARKER);\r\n String msg = get(\"SIGNAL_MACD_CROSS_BELOW\", MACD, signal);\r\n if (marker.isEnabled()) addFigure(new Marker(c, Enums.Position.TOP, marker, msg));\r\n ctx.signal(index, Signals.CROSS_BELOW, msg, signal);\r\n }\r\n }\r\n }\r\n else complete=false;\r\n \r\n int rsiPeriod = getSettings().getInteger(RSI_PERIOD);\r\n Object rsiInput = getSettings().getInput(RSI_INPUT);\r\n if (index < 1) return; // not enough data\r\n \r\n double diff = series.getDouble(index, rsiInput) - series.getDouble(index-1, rsiInput);\r\n double up = 0, down = 0;\r\n if (diff > 0) up = diff;\r\n else down = diff;\r\n \r\n series.setDouble(index, Values.UP, up);\r\n series.setDouble(index, Values.DOWN, Math.abs(down));\r\n \r\n if (index <= rsiPeriod +1) return;\r\n \r\n Enums.MAMethod method = getSettings().getMAMethod(RSI_METHOD);\r\n double avgUp = series.ma(method, index, rsiPeriod, Values.UP);\r\n double avgDown = series.ma(method, index, rsiPeriod, Values.DOWN);\r\n double RS = avgUp / avgDown;\r\n double RSI = 100.0 - ( 100.0 / (1.0 + RS));\r\n\r\n series.setDouble(index, Values.RSI, RSI);\r\n \r\n // Do we need to generate a signal?\r\n GuideInfo topGuide = getSettings().getGuide(Inputs.TOP_GUIDE);\r\n GuideInfo bottomGuide = getSettings().getGuide(Inputs.BOTTOM_GUIDE);\r\n if (crossedAbove(series, index, Values.RSI, topGuide.getValue())) {\r\n series.setBoolean(index, Signals.RSI_TOP, true);\r\n ctx.signal(index, Signals.RSI_TOP, get(\"SIGNAL_RSI_TOP\", topGuide.getValue(), round(RSI)), round(RSI));\r\n }\r\n else if (crossedBelow(series, index, Values.RSI, bottomGuide.getValue())) {\r\n series.setBoolean(index, Signals.RSI_BOTTOM, true);\r\n ctx.signal(index, Signals.RSI_BOTTOM, get(\"SIGNAL_RSI_BOTTOM\", bottomGuide.getValue(), round(RSI)), round(RSI));\r\n }\r\n */\r\n series.setComplete(index, complete);\r\n }", "@Override\n\tpublic void doHandleEvent(CsvEvent event) {\n\t\t\n\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n float[] valuesCopy = event.values.clone();\n\n if (uptime == 0) {\n uptime = event.timestamp;\n }\n\n double x = (double) ((event.timestamp - uptime))/1000000000.0;\n this.addValues(x, valuesCopy);\n\n TextView xAxisValue = (TextView) findViewById(R.id.xAxisValue);\n xAxisValue.setText(Float.toString(valuesCopy[0]) + \" \" + STI.getUnitString(sensorType));\n\n if (STI.getNumberValues(sensorType) > 1) {\n //set y value to textfield\n TextView yAxisValue = (TextView) findViewById(R.id.yAxisValue);\n yAxisValue.setText(Float.toString(valuesCopy[1]) + \" \" + STI.getUnitString(sensorType));\n\n //set z value to textfield\n TextView zAxisValue = (TextView) findViewById(R.id.zAxisValue);\n zAxisValue.setText(Float.toString(valuesCopy[2]) + \" \" + STI.getUnitString(sensorType));\n }\n }", "public void handle() throws SensornetBaseException {\n\r\n\t}", "@Override\n\tpublic void accept(OhlcPrice price) {\n\t\t\n\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy > 0) {\n int newValue = Math.round(event.values[0]);\n\n if(newValue!=0 && lastTimeSentUnixHR < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnixHR = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", event.accuracy);\n intent.putExtra(\"TIME\", event.timestamp);\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n\n }\n }\n // also send motion/humidity/step data to know when NOT to interpret hr data\n\n if (event.sensor.getType() == SENS_STEP_COUNTER && event.values[0]-currentStepCount!=0) {\n\n if(lastTimeSentUnixSC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixSC = System.currentTimeMillis() / 1000L;\n currentStepCount = event.values[0];\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n\n }\n\n if (event.sensor.getType() == SENS_ACCELEROMETER) {\n\n if(lastTimeSentUnixACC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixACC = System.currentTimeMillis() / 1000L;\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n }\n\n }", "public void handle(long currentNanoTime) {\n\t \t\t\tobw.updateWorld(mc);\t\t\t// find new position of ball \n\t \t\t\tobw.drawWorld(mc);\t\t\t\t// draw ball in new position\n\t \t\t}", "protected void useDataOld() {\n\t\tfloat x = values[0];\n\t\tfloat y = values[1];\n\t\tfloat z = values[2];\n\n\t\tcallListener(new AccelarationSensorData(millis, nanos, x, y, z));\n\t}", "@Override\n protected void onHandleIntent(Intent intent)\n {\n try\n {\n URL url = new URL(\"http://api.openweathermap.org/data/2.5/weather?q=Lisbon&mode=json&units=metric\");\n\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\n String res = \"\";\n BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line = \"\";\n while ((line = rd.readLine()) != null)\n res += line;\n\n JSONObject response = new JSONObject(res);\n double temp = response.getJSONObject(\"main\").getDouble(\"temp\");\n\n Log.i(INTENT_SERVICE_LOG, temp + \" ºC\");\n\n /**\n * Save persistently the temperature in database.\n *\n * @pt Guardar na base de dados a informação da temperatura.\n */\n manager.save(new Temperature(temp));\n }\n catch(Exception e)\n {\n Log.i(INTENT_SERVICE_LOG, \"Cannot get temperature.\");\n }\n }", "public JSONObject ticker() throws Exception;", "public void reopen(long timestamp);", "@Override\n\tpublic void setCloseTime(int t) {\n\t\t\n\t}", "public void handleSensorEvents(){\n\t}", "public void recordClosingQuote(Quote closingQuote_, MarketDataSession marketDataSession_);", "public void updateChannelHeartbeat(final BitfinexStreamSymbol symbol) {\n\t\tsynchronized (lastTick) {\n\t\t\tlastTickTimestamp.put(symbol, System.currentTimeMillis());\n\t\t}\n\t}", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case MSG_UPDATE_STOCK_NEWS:\n requestStockNews();\n break;\n case MSG_UPDATE_STOCK_ANNOUNCEMENT:\n requestStockAnnouncement();\n break;\n case MSG_UPDATE_STOCK_REPORT:\n requestStockReport();\n break;\n case MSG_UPDATE_STOCK_SUMMARY:\n requestStockSummary();\n break;\n case MSG_UPDATE_STOCK_FINANCE:\n requestStockFinance();\n break;\n default:\n break;\n }\n super.handleMessage(msg);\n }", "private void closeRealTemp() {\n YCBTClient.appTemperatureMeasure(0x00, new BleDataResponse() {\n @Override\n public void onDataResponse(int i, float v, HashMap hashMap) {\n if (i == 0) {\n //success\n }\n }\n });\n }", "public void onStockpriceChanged();", "@Override\n\t\tpublic void onTick(long arg0) {\n\t\t\t\n\t\t}", "@Subscribe\n public void onTick(EventTick IlIlIIIIllIlIIl) {\n }", "public void handle(int procent) {\n\t\t\n\t}", "public Builder setHandle(int value) {\n bitField0_ |= 0x00000002;\n handle_ = value;\n onChanged();\n return this;\n }", "protected abstract void handleOpenChannel(int channelNo,int frameValue);", "public void handle(PBFTCheckpoint checkpoint){\n\n JDSUtility.debug(\"[PBFTServer:handle(checkpoint)] s\" + getLocalServerID() + \", at time \" + getClockValue() + \", received \" + checkpoint);\n\n if(isValid(checkpoint)){\n \n long seqn = checkpoint.getSequenceNumber();\n long lcwm = getLCWM();\n long hcwm = getHCWM();\n long now = getClockValue();\n\n getCheckpointInfo().put(checkpoint);\n \n Object lpid = getLocalProcessID();\n \n CheckpointSubject cs = getDecision(checkpoint);\n \n if(getCheckpointInfo().hasEnough(seqn) && cs != null && lcwm < seqn && seqn <= hcwm){\n\n if(seqn > hcwm){\n\n JDSUtility.debug(\"[handle(checkpoint)] s\"+ lpid +\", at time \"+ now +\", detected a stable checkpoint certificate with SEQN{\"+ seqn +\"} > HCWM{\"+ hcwm +\"}.\");\n JDSUtility.debug(\"[handle(checkpoint)] s\"+ lpid +\", at time \"+ now +\", is going to start a start transfer procedure.\");\n\n emitFetch();\n return;\n\n }//end if I've a unsynchronized state\n\n if(getCheckpointInfo().getMine(lpid, seqn) != null){ \n doCheckpoint(seqn); \n }\n \n }//end if has a decision\n \n }//end if isValid(checkpoint)\n \n }", "@Override\n public ClientStatisticsRecord newRecord(\n String clientKey,\n String type,\n Object value) throws WrongFormatException {\n ClientStatisticsRecord record = factory.createRecord(type, value);\n record.setClientKey(clientKey);\n record = recordRepository.save(record);\n eventPublisher.publishEvent(new RecordUpdateEvent(record)); //Notify other components\n return record;\n }", "public Builder setHandle(int value) {\n bitField0_ |= 0x00000001;\n handle_ = value;\n onChanged();\n return this;\n }", "public Builder setHandle(int value) {\n bitField0_ |= 0x00000001;\n handle_ = value;\n onChanged();\n return this;\n }", "int insert(TemperatureMeasureHitchEvent record);", "public HistoryData(int sp, int inc) {\n\t\tspeed = sp;\n\t\tincline = inc;\n\t\tduration = 0.0;\n\t}", "public synchronized void associateHandle() {\n JCublas2.cublasSetStream(handle,oldStream);\n }", "private void createHeartRateObservation(final String hexoseconds, final String value) throws RepositoryException\n {\n // convert the time into a real date\n final long hxSec = Long.parseLong(hexoseconds);\n final long seconds = hxSec / 256;\n final Calendar instance = Calendar.getInstance();\n final long remain = hxSec % 256;\n final double ms = remain * 1000 / 256.0;\n instance.setTimeInMillis(seconds * 1000 + (long) ms);\n final Date valueDate = instance.getTime();\n\n // get necessary properties\n // create all the model objects\n final URI observationValue = valueFactory.createURI(hexoskin, \"Heart_Rate_Observation_Value_\" + currentPid + \"_\"\n + hexoseconds);\n\n repoConn.add(observationValue, RDFS.SUBCLASSOF, classObservationValueHeartRate);\n repoConn.add(instanceObservationHeartRate, propertyHasValueHeartRate, observationValue);\n\n final Literal literal = valueFactory.createLiteral(Integer.parseInt(value)); // want this to be a numeric type\n repoConn.add(observationValue, dataPropHasDataValue, literal);\n\n repoConn.add(observationValue, dataPropUom, instanceUomBpm);\n repoConn.add(observationValue, propertyObservationResultTime, valueFactory.createLiteral(valueDate));\n repoConn.add(observationValue, propertyObservationSamplingTime, valueFactory.createLiteral(currentRecordDate));\n }", "@Override\n public void onTrackChange(final RadioStream.TrackInfo trackInfo) {\n }", "public double getTimeForClose();", "public void setData(int close[] , int high[] , int low[] , int vol[]) {\n // check for null pointers\n if(close == null || high == null || low == null || vol == null) {\n // error ..\n eHandler.newError(ErrorType.NULL_ARGUMENT, \"setData\");\n\n // exit from method\n return;\n\n } // end of if statement\n\n data = new ChartData(close , high , low , vol);\n\n }", "public int masterCandles(DateTime dt1, DateTime dt2) {\r\n int count = 0;\r\n int ij = 0; \r\n for(int i=find_index(dt1); i <= find_index(dt2); i++ ) {\r\n if (this.candles.length <= i) {\r\n break;\r\n }\r\n int c = 0;\r\n for(int n=1; n <= 4; n++) {\r\n if(Double.compare(this.candles[i].getHigh(), this.candles[i+n].getHigh()) > 0 && Double.compare(this.candles[i].getLow(), this.candles[i+n].getLow()) < 0){\r\n c++;\r\n }\r\n }\r\n if (c == 4) {\r\n count++;\r\n }\r\n c = 0;\r\n ij++;\r\n }\r\n return count;\r\n }", "public void handleAlarm(Alarm alarm)\n {\n if (_isClosed)\n return;\n }", "private HashMap<String, SingleDayQuote> pullInfo(String fileLoc) throws FileNotFoundException, IOException\r\n {\r\n HashMap<String, SingleDayQuote> oneCompanyHistory = new HashMap<>();\r\n \r\n \r\n CSVReader priceReader = new CSVReader(new FileReader(fileLoc));\r\n \r\n String[] nextLine;\r\n int lineNumber = 0;\r\n \r\n while ((nextLine = priceReader.readNext()) != null)\r\n {\r\n \r\n \r\n if (lineNumber == 0){lineNumber++;continue;} // prevents adding of the csv's category names\r\n \r\n String date = nextLine[0];\r\n String open = nextLine[1];\r\n String high = nextLine[2];\r\n String low = nextLine[3];\r\n String close = nextLine[4];\r\n String volume = nextLine[5];\r\n String adjClose = nextLine[6];\r\n \r\n SingleDayQuote oneDay = new SingleDayQuote(date,open,high,low,close,volume,adjClose);\r\n oneCompanyHistory.put(date, oneDay);\r\n }\r\n \r\n return oneCompanyHistory;\r\n }", "private native void initialiseHandle(ArcomESS handle);", "Stock retrieveStockChartData(String symbol);", "public Df1Library(ArcomESS handle) throws Df1LibraryNativeException\n\t{\n\t\tsuper();\n\t\tlogger = LogManager.getLogger(this);\n\t\tinitialiseLoggerReference(logger);\n\t\tinitialiseHandle(handle);\n\t}", "@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }", "@Override\n public void onTick() {\n \n }", "public StockDownloader(String symbol, GregorianCalendar start, GregorianCalendar end){\n\n dates = new ArrayList<GregorianCalendar>();\n //opens = new ArrayList<Double>();\n //highs = new ArrayList<Double>();\n //lows = new ArrayList<Double>();\n //closes = new ArrayList<Double>();\n //volumes = new ArrayList<Integer>();\n adjCloses = new ArrayList<Double>();\n\n name = symbol;\n\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\n String url = \"http://real-chart.finance.yahoo.com/table.csv?s=\"+symbol+\n \"&a=\"+end.get(Calendar.MONTH)+\n \"&b=\"+end.get(Calendar.DAY_OF_MONTH)+\n \"&c=\"+end.get(Calendar.YEAR)+\n \"&d=\"+start.get(Calendar.MONTH)+\n \"&e=\"+start.get(Calendar.DAY_OF_MONTH)+\n \"&f=\"+start.get(Calendar.YEAR)+\n \"&g=d&ignore=.csv\";\n\n // Error URL\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=3&b=13&c=2016&d=3&e=13&f=2015&g=d&ignore=.csv\n\n //Good URL\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\n\n try{\n URL yhoofin = new URL(url);\n //URL yhoofin = new URL(\"http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\");\n URLConnection data = yhoofin.openConnection();\n Scanner input = new Scanner(data.getInputStream());\n if(input.hasNext()){\n input.nextLine();//skip line, it's just the header\n\n //Start reading data\n while(input.hasNextLine()){\n String line = input.nextLine();\n String[] stockinfo = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n //StockHelper sh = new StockHelper();\n dategetter.add(stockinfo[0]);\n adjCloses.add(handleDouble(stockinfo[ADJCLOSE]));\n }\n }\n\n //System.out.println(adjCloses);\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }", "public abstract void callback(VixHandle handle, int eventType, \n\t\tVixHandle moreEventInfo, Object clientData);", "@Override\n protected void onHandleIntent(Intent intent) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);\n int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(this, TodayWidgetProvider.class));\n\n //Get today's data from ContentProvider\n String location = Utility.getPreferredLocation(this);\n Uri weatherForLocationUri = WeatherContract.WeatherEntry.buildWeatherLocationWithDate(location, System.currentTimeMillis());\n Cursor cursor = getContentResolver().query(weatherForLocationUri, FORECAST_COLUMNS, null, null, WeatherContract.WeatherEntry.COLUMN_DATE + \" ASC\");\n if (cursor == null) {\n return;\n }\n if(!cursor.moveToFirst()) {\n cursor.close();\n return;\n }\n\n // Extract the weather data from the Cursor\n int weatherId = cursor.getInt(INDEX_WEATHER_ID);\n int weatherArtResourceId = Utility.getArtResourceForWeatherCondition(weatherId);\n String description = cursor.getString(INDEX_SHORT_DESC);\n double maxTemp = cursor.getDouble(INDEX_MAX_TEMP);\n String formattedMaxTemperature = Utility.formatTemperature(this, maxTemp);\n cursor.close();\n\n // for every created Widget\n for (int appWidgetId : appWidgetIds) {\n // add RemoteView\n RemoteViews views = new RemoteViews(\n getPackageName(),\n R.layout.widget_today_small);\n // Add the data to the RemoteViews\n views.setImageViewResource(R.id.widget_icon, weatherArtResourceId);\n views.setTextViewText(R.id.widget_temperature, formattedMaxTemperature);\n // Content Descriptions for RemoteViews were only added in ICS MR1\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {\n setRemoteContentDescription(views, description);\n }\n // add action when user taps on the Widget - Intent to launch MainActivity\n Intent launchIntent = new Intent(this, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, launchIntent, 0);\n views.setOnClickPendingIntent(R.id.widget, pendingIntent);\n\n // Tell the AppWidgetManager to perform an update on the current app widget\n appWidgetManager.updateAppWidget(appWidgetId, views);\n\n }\n\n }", "@Override\n public void eCGRaw(int value, int timestamp) {\n }", "public void setCurrentHandle( byte[] currentHandle );", "public static void handleHoldMeg(BufferedReader br, State state, HandPowerComputer HP) throws IOException {\n\t\twhile( !(rec = br.readLine()).equals(\"/hold \") ){\n\t\t\tsubs = rec.split(\" \");\n\t\t\tint color = Card.color2Number.get(subs[0]);\n\t\t\tint point = Card.point2Number.get(subs[1]);\n\t\t\t\n\t\t\tHP.addHandCard( new Card(color, point) );\n//\t\t\tCard card;\n//\t\t\tcard = new Card(color, point);\n//\t\t\tmyInfo.addHoldCards(card);\n\t\t}\n\t\t\n\t\tstate.round = State.PREFLOP;\n\t}", "public void setHigh(double value){high = value;}", "private Candle[] collectCandlesByIndex(int index1, int index2) throws Exception {\r\n Candle[] cd;\r\n int c = 0;\r\n if (index1 < index2) {\r\n cd = new Candle[index2 - index1+1];\r\n for(int i = index1; i <= index2; i++) {\r\n cd[c] = this.candles[i];\r\n c++;\r\n }\r\n return cd;\r\n } else if (index1 > index2) {\r\n cd = new Candle[index1 - index2+1];\r\n for(int i = index2; i <= index1; i++) {\r\n cd[c] = this.candles[i];\r\n c++;\r\n }\r\n return cd;\r\n } else if (index1 == index2) {\r\n cd = new Candle[1];\r\n cd[0] = this.candles[index1];\r\n return cd;\r\n } else {\r\n throw new RuntimeException(\"collectCandlesByIndex() error\");\r\n }\r\n }", "public SIOLCGenericObject(SIOInputStream in, SIOEvent owner, \n\t\t\tint major, int minor, int nInt, int nFloat, int nDouble) \n\t\t\tthrows IOException {\n \tsuper(nInt,nFloat,nDouble) ;\t\n read(in,owner,major,minor,nInt,nFloat,nDouble ) ; \n }", "void clientData(final int index, final int data, final double value);", "@Override\r\n\tpublic void onUpdateIO(int device, int type, int code, int value,\r\n\t\t\tint timestamp) {\n\t\t\r\n\t}", "public double getClose() {\n return close;\n }" ]
[ "0.63442427", "0.5826768", "0.562042", "0.55568093", "0.5392971", "0.5383517", "0.530117", "0.5163708", "0.504933", "0.49612027", "0.49038863", "0.48911878", "0.4868232", "0.48467278", "0.48281753", "0.48125437", "0.4797989", "0.47538188", "0.4749103", "0.4741742", "0.47034997", "0.46954566", "0.4651649", "0.46218416", "0.45022756", "0.44747373", "0.44701973", "0.4465612", "0.445855", "0.44547024", "0.44478157", "0.44432184", "0.44388035", "0.44320253", "0.44256583", "0.4416522", "0.4406936", "0.440586", "0.44053328", "0.44027928", "0.43935484", "0.4388475", "0.4384213", "0.43708864", "0.4358917", "0.43362993", "0.43345836", "0.4329088", "0.4310149", "0.43033794", "0.4301497", "0.4300769", "0.42822468", "0.42770523", "0.4260166", "0.42537004", "0.42450753", "0.42428634", "0.4235465", "0.42300057", "0.42259595", "0.42209128", "0.42171004", "0.42144302", "0.4214323", "0.42055947", "0.41975975", "0.41975647", "0.41956556", "0.4189409", "0.41794565", "0.41723338", "0.41723338", "0.41704336", "0.41638005", "0.41584593", "0.4158415", "0.41560742", "0.4155883", "0.4145948", "0.41414917", "0.41274193", "0.412402", "0.41167596", "0.41126865", "0.41107842", "0.41098234", "0.41084474", "0.41082078", "0.41031444", "0.41020447", "0.41009715", "0.4089752", "0.40897202", "0.4086827", "0.4086642", "0.4083475", "0.40816212", "0.4078712", "0.4070431" ]
0.7034306
0
Subscribe candles for a symbol
public void subscribeCandles(final BitfinexCandlestickSymbol symbol) { final SubscribeCandlesCommand command = new SubscribeCandlesCommand(symbol); bitfinexApiBroker.sendCommand(command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSubscribedSymbol(String symbol) {\n\t\tunrecoginzedSymbols.put(symbol, System.currentTimeMillis());\n\t}", "public interface CandlestickCollector {\n Candlestick collectCandlestick(String symbolPair, String timeFrame);\n}", "private void startAggTradesEventStreaming(String symbol) {\r\n\t\tBinanceApiClientFactory factory = BinanceApiClientFactory.newInstance();\r\n\t\tBinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\r\n\t\t/*\r\n\t\t * static void startAggTradeEventListener(BinanceApiClientFactory factory,\r\n\t\t * String symbol, ExchangeApiCallback<AggTradeEvent> callback) {\r\n\t\t * BinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\t\t * client.onAggTradeEvent(symbol, (AggTradeEvent event) -> { if (event == null)\r\n\t\t * { startAggTradeEventListener(factory, symbol, callback); } else {\r\n\t\t * callback.onResponse(event); } }); }\r\n\t\t */\r\n\r\n\t\tclient.onAggTradeEvent(symbol.toLowerCase(), response -> {\r\n\r\n\t\t\tif (response == null) {\r\n\t\t\t\tstartAggTradesEventStreaming(symbol);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tLong aggregatedTradeId = response.getAggregatedTradeId();\r\n\t\t\tAggTrade updateAggTrade = aggTradesCache.get(aggregatedTradeId);\r\n\t\t\tif (updateAggTrade == null) {\r\n\t\t\t\t// new agg trade\r\n\t\t\t\tupdateAggTrade = new AggTrade();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * Duration tickDuration = Duration.ofSeconds(1); Long tickIndex = new\r\n\t\t\t * Long(this.aggTradeTicksCashe.size()); List<AggTrade> listAggTrade = null;\r\n\t\t\t * \r\n\t\t\t * if (aggTradeTicksCashe.isEmpty()) { listAggTrade = new\r\n\t\t\t * CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put( tickIndex,\r\n\t\t\t * listAggTrade ); } else { listAggTrade =\r\n\t\t\t * this.aggTradeTicksCashe.get(tickIndex); }\r\n\t\t\t * \r\n\t\t\t * ZonedDateTime tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(updateAggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault()); ZonedDateTime tickEndTime =\r\n\t\t\t * tradeTimestamp.plus(tickDuration);\r\n\t\t\t * \r\n\t\t\t * if (!tradeTimestamp.isBefore(tickEndTime)) { // new tick ++tickIndex;\r\n\t\t\t * listAggTrade = new CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put(\r\n\t\t\t * tickIndex, listAggTrade ); } // Store the updated agg trade in the current\r\n\t\t\t * tick cache listAggTrade.add(updateAggTrade);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * List<Tick> ticks = null; Long tickIndex = 0L; List<AggTrade> listAggTrade =\r\n\t\t\t * new CopyOnWriteArrayList<AggTrade>(); this.aggTradeTicksCashe = new\r\n\t\t\t * HashMap<Long, List<AggTrade>>();\r\n\t\t\t */\r\n\r\n\t\t\tupdateAggTrade.setTradeTime(response.getEventTime());\r\n\t\t\tupdateAggTrade.setAggregatedTradeId(aggregatedTradeId);\r\n\t\t\tupdateAggTrade.setPrice(response.getPrice());\r\n\t\t\tupdateAggTrade.setQuantity(response.getQuantity());\r\n\t\t\tupdateAggTrade.setFirstBreakdownTradeId(response.getFirstBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setLastBreakdownTradeId(response.getLastBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setBuyerMaker(response.isBuyerMaker());\r\n\r\n\t\t\t// Store the updated agg trade in the cache\r\n\t\t\taggTradesCache.put(aggregatedTradeId, updateAggTrade);\r\n\r\n\t\t\t/*\r\n\t\t\t * Build ticks and Series\r\n\t\t\t */\r\n\r\n\t\t\tLong trendAnalysisTimeFrame = 5L; // perform a trend analysis using last 5 seconds time frame\r\n\r\n\t\t\tZonedDateTime tickEndTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(response.getEventTime()), // lastTradeEventTime\r\n\t\t\t\t\tZoneId.systemDefault());\r\n\t\t\tZonedDateTime tickStartTime = tickEndTime.minusSeconds(trendAnalysisTimeFrame);\r\n\t\t\t/*\r\n\t\t\t * ZonedDateTime tickStartTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t\t * ZonedDateTime tickEndTime = tickStartTime; Iterator<Long>\r\n\t\t\t * aggTradesCacheIterator = aggTradesCache.keySet().iterator(); while\r\n\t\t\t * (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime\r\n\t\t\t * tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),ZoneId.\r\n\t\t\t * systemDefault()); if ( tradeTimestamp.isBefore(tickStartTime)) tickStartTime\r\n\t\t\t * = tradeTimestamp; if ( tradeTimestamp.isAfter(tickEndTime)) tickEndTime =\r\n\t\t\t * tradeTimestamp; }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * // Building the empty ticks List<Tick> ticks = buildEmptyTicks(tickStartTime,\r\n\t\t\t * tickEndTime);\r\n\t\t\t * \r\n\t\t\t * Iterator<Long> aggTradesCacheIterator = aggTradesCache.keySet().iterator();\r\n\t\t\t * while (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime tradeTime =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault());\r\n\t\t\t * \r\n\t\t\t * if ( tradeTime.isAfter(tickStartTime) && tradeTime.isBefore(tickEndTime)) {\r\n\t\t\t * // Filling the ticks with trades for (Tick tick : ticks) { if\r\n\t\t\t * (tick.inPeriod(tradeTime)) { Double price = new Double(aggTrade.getPrice());\r\n\t\t\t * Double quantity = new Double(aggTrade.getQuantity()); Double amount = price *\r\n\t\t\t * quantity; tick.addTrade( amount, price); } } } } // Removing still empty\r\n\t\t\t * ticks removeEmptyTicks(ticks);\r\n\t\t\t * \r\n\t\t\t * // Build time series TimeSeries series = new BaseTimeSeries(symbol, ticks);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * if( realTimeChart != null ) { List<Integer> xData = new\r\n\t\t\t * CopyOnWriteArrayList<Integer>(); List<Double> yData = new\r\n\t\t\t * CopyOnWriteArrayList<Double>(); List<Double> errorBars = new\r\n\t\t\t * CopyOnWriteArrayList<Double>();\r\n\t\t\t * \r\n\t\t\t * for( int x: realTimeChart.getxData() ) { xData.add(x); } for( double y:\r\n\t\t\t * realTimeChart.getyData() ) { yData.add(y); } for( double e:\r\n\t\t\t * realTimeChart.getErrorBars() ) { errorBars.add(e); }\r\n\t\t\t * //xData.add(xData.size()+1); xData.add(50); xData.remove(0); yData.add(new\r\n\t\t\t * Double(response.getPrice())); yData.remove(0); //errorBars.add(0.0);\r\n\t\t\t * //errorBars.remove(0);\r\n\t\t\t * \r\n\t\t\t * realTimeChart.updateData(xData, yData, errorBars); }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * Log AggTrade into database\r\n\t\t\t */\r\n\t\t\tstoreAggTradeCache(symbol, updateAggTrade);\r\n\t\t\t// System.out.println(updateAggTrade);\r\n\t\t});\r\n\t}", "void subscribe(Player player);", "public void subscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) {\n\t\t\n\t\tfinal SubscribeTradesCommand subscribeOrderbookCommand \n\t\t\t= new SubscribeTradesCommand(tradeSymbol);\n\t\t\n\t\tbitfinexApiBroker.sendCommand(subscribeOrderbookCommand);\n\t}", "public Publisher<StockPrice> stockPrice(String symbol) {\n\n\n Publisher<StockPrice> publisher = s -> {\n ScheduledExecutorService executorService = Executors.newScheduledThreadPool(1);\n executorService.scheduleAtFixedRate(() -> {\n StockPrice ret = new StockPrice(symbol, 2d, LocalDateTime.now());\n s.onNext(ret);\n }, 0, 2, TimeUnit.SECONDS);\n };\n\n// publisher.subscribe(new TestSubscriber());\n\n return publisher;\n }", "@Override\n\tpublic void visit(Candle candle) {\n\t\t\n\t}", "public void registerCandlestickCallback(final BitfinexCandlestickSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\tcandleCallbacks.registerCallback(symbol, callback);\n\t}", "Stock retrieveStockChartData(String symbol);", "void subscribe();", "@Override\n\tpublic void accept(OhlcPrice price) {\n\t\t\n\t}", "public interface MarketWatcher {\n Stock getQuote(String symbol);\n}", "private void receiveSymbol(Complex symbol) {\n\t\tphase = (previousSymbol.conjugateTimes(symbol)).phase();\n\t\tpreviousSymbol = symbol;\n\n\t\t// ensure phase is between 0 and 2 pi radians\n\t\tif (phase < 0) {\n\t\t\tphase += 2 * Math.PI;\n\t\t}\n\n\t\t// work out if phase inversion has occurred\n\t\tbits = (((int) (phase / Math.PI + 0.5)) & 1) << 1;\n\n\t\t// simple low pass filter for quality of signal\n\t\tquality = new Complex(0.02 * Math.cos(2 * phase) + 0.98 * quality.Re(), 0.02 * Math.sin(2 * phase) + 0.98 * quality.Im());\n\t\tmetric = 100.0 * quality.norm();\n\n\t\tdecodeShiftRegister = (decodeShiftRegister << 2) | bits;\n\n\t\tswitch (decodeShiftRegister) {\n\t\tcase 0xAAAAAAAA: /* decode is on for preamble - 16 inversions */\n\t\t\tdecode = true;\n\t\t\tquality = new Complex(1.0, 0.0);\n\t\t\tbreak;\n\n\t\tcase 0: /* decode is off for postamble */\n\t\t\tdecode = false;\n\t\t\tquality = new Complex(0.0, 0.0);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tdecode = (!squelchOn || metric > squelch);\n\t\t}\n\n\t\tif (decode) {\n\t\t\treceiveBit(bits == 0 ? 1 : 0);\n\t\t}\n\t}", "void notifyWonCards(Color color, Symbol symbol);", "public List<Ohlc> getBySymbol(String symbol);", "private void subscribe() {\r\n\r\n OnUpdatePlayerSubscription subscription = OnUpdatePlayerSubscription.builder().build();\r\n subscriptionWatcher = awsAppSyncClient.subscribe(subscription);\r\n subscriptionWatcher.execute(subCallback);\r\n }", "public void handleCandlestickList(final BitfinexCandlestickSymbol symbol, final List<BitfinexTick> ticksBuffer) {\n\t\tcandleCallbacks.handleEventsList(symbol, ticksBuffer);\n\t}", "public void updateChannelHeartbeat(final BitfinexStreamSymbol symbol) {\n\t\tsynchronized (lastTick) {\n\t\t\tlastTickTimestamp.put(symbol, System.currentTimeMillis());\n\t\t}\n\t}", "Stock retrieveStock(String symbol);", "List<Stock> retrieveAllStocks(String symbol);", "Spliterator<Event> subscribe(String origin, String type, Instant since, Consumer<Event> callback);", "@OnOpen\n\tpublic void onOpen(Session session) {\n\t\tclients.add(session);\n\n\t\ttry {\n\n\t\t\tQuestionService qs = WebSocketSupportBean.getInstance().getQs();\n\n\t\t\tif (qs != null) {\n\t\t\t\tsendCurrentValues(session, qs);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// ignore for now\n\t\t}\n\n\t}", "StockNotifier(PriceSubject sg) {\n\t\tthis.observerID = ++observerIDTracker;\n\t\tSystem.out.println(\"Analyser created : \"+this.observerID);\n\t\tsg.register(this);\n\t}", "public void registerTickCallback(final BitfinexTickerSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\ttickerCallbacks.registerCallback(symbol, callback);\n\t}", "public void subscribe( Observer< S, Info > obs );", "public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\tcandleCallbacks.handleEvent(currencyPair, tick);\n\t}", "public void onChannel(String channel, String title, String subtitle);", "public void onSubscribe() {\n\n }", "TickerPrice getPrice(String symbol);", "@Override\n\tpublic void onSubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Override\r\n public ArrayList<CurrencyTuple> getSymbols() throws MalformedURLException, IOException{\r\n String symbolsUrl = \"https://api.binance.com/api/v1/ticker/24hr\";\r\n String charset = \"UTF-8\";\r\n String symbol = this.pair;\r\n URLConnection connection = new URL(symbolsUrl).openConnection();\r\n connection.setRequestProperty(\"Accept-Charset\", charset);\r\n InputStream stream = connection.getInputStream();\r\n ByteArrayOutputStream responseBody = new ByteArrayOutputStream();\r\n byte buffer[] = new byte[1024];\r\n int bytesRead = 0;\r\n while ((bytesRead = stream.read(buffer)) > 0) {\r\n responseBody.write(buffer, 0, bytesRead);\r\n }\r\n String responseString = responseBody.toString();\r\n int position = 0;\r\n ArrayList<CurrencyTuple> toReturn = new ArrayList<>();\r\n for (int i = 0; i < 100; i++){\r\n position = responseString.indexOf(\"symbol\", position + 6);\r\n String symbols = responseString.substring(position + 9, position + 15);\r\n String symbolOwned = symbols.substring(0, 3);\r\n String symbolNotOwned = symbols.substring(3, 6);\r\n if (responseString.substring(position+9, position + 16).contains(\"\\\"\")\r\n || responseString.substring(position+9, position + 16).contains(\"USD\")){\r\n if (symbolOwned.contains(\"USD\")) {\r\n symbolOwned = symbolOwned.concat(\"T\");\r\n }\r\n if (symbolNotOwned.contains(\"USD\")) {\r\n symbolOwned = symbolNotOwned.concat(\"T\");\r\n }\r\n Currency CurrencyOwned = new Currency(symbolOwned, 0.0);\r\n Currency CurrencyNotOwned = new Currency(symbolNotOwned, 0.0);\r\n CurrencyTuple tuple = new CurrencyTuple(CurrencyOwned, CurrencyNotOwned);\r\n System.out.println(CurrencyOwned.getName() + \" - \" + CurrencyNotOwned.getName());\r\n toReturn.add(tuple);\r\n }\r\n }\r\n return toReturn;\r\n }", "void subscribe(String id);", "public void subscribe(Player spectator) {\r\n\t\tspectators.add(spectator);\r\n\t}", "public Single<Portfolio> rxBuy(int amount, JsonObject quote) { \n return new io.vertx.reactivex.core.impl.AsyncResultSingle<Portfolio>(handler -> {\n buy(amount, quote, handler);\n });\n }", "Stock retrieveStock(String symbol, String asOf);", "@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "void getTicker(String pair,HibtcApiCallback<Object> callback);", "public void onStockpriceChanged();", "public Flux<OHLCData> getHotBitcoinDataFromConnectable() {\n /* ################### Return the hot stream ##################################*/\n return null;\n }", "public void onTextMessage(WebSocket websocket, String message) {\n if(message.contains(\"ticker\")) {\n List<Object> decodeMessage = GSON.fromJson(message, new TypeToken<List<Object>>() {}.getType());\n if (decodeMessage.size() == 4) {\n val ticker = decodeMessage.get(2);\n if (ticker instanceof String && ((String) ticker).equalsIgnoreCase(\"ticker\")) {\n Map<String, List<Object>> ticks = (Map<String, List<Object>>) decodeMessage.get(1);\n val ask = Double.parseDouble((String) ticks.get(\"a\").get(0));\n val bid = Double.parseDouble((String) ticks.get(\"b\").get(0));\n val krakenCurrencyPair = (String)decodeMessage.get(3);\n val currencyPair = CurrencyPair.of(krakenCurrencyPair.substring(0,3), krakenCurrencyPair.substring(4,7));\n outBoundBus.post(PriceUpdateEvent.of(BidAsk.of(bid,ask),currencyPair, Exchange.KRAKEN));\n }\n }\n\n }\n }", "public void tickerStoppen() \n {\n anzeige.tickerAbmelden( this );\n }", "List<Candlestick> getCandlestickBars(String symbol, CandlestickInterval interval, Long startTime, Long endTime, Integer limit);", "@Override\n public void onSubscribe(String s, int i) {\n }", "private void subscribe() {\n Log.i(TAG, \"Subscribing\");\n mNearbyDevicesArrayAdapter.clear();\n SubscribeOptions options = new SubscribeOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new SubscribeCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer subscribing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mSubscribeSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.subscribe(mGoogleApiClient, mMessageListener, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Subscribed successfully.\");\n } else {\n logAndShowSnackbar(\"Could not subscribe, status = \" + status);\n mSubscribeSwitch.setChecked(false);\n }\n }\n });\n }", "TickerStatistics get24HrPriceStatistics(String symbol);", "String retrieveSymbolNewsItems(String symbol);", "void startMusic(AudioTrack newSong);", "@Subscribe\n public void onTick(EventTick IlIlIIIIllIlIIl) {\n }", "private StockData addSymbolToCurrentWatchList(String symbol)\r\n {\r\n debug(\"addSymbolToCurrentWatchList(\" + symbol + \")\");\r\n // Get the index into the current selected Tabpane\r\n int index = tabPane.getSelectedIndex();\r\n // Now grab our Table and Models\r\n HGTable table = (HGTable) tableVector.elementAt(index);\r\n StockDataTableModel dataModel = (StockDataTableModel) modelVector.elementAt(index);\r\n // Get the current Selected Row.\r\n int row = ((table.getSelectedRow() >= 0) ? table.getSelectedRow() : 0);\r\n\r\n debug(\"Insert Row After row [\" + row + \"] The Row being inserted is \" + (row + 1));\r\n dataModel.insert(row + 1);\r\n // Fire a notification that we are changing the table\r\n table.tableChanged(\r\n new TableModelEvent(dataModel, row + 1, row + 1, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));\r\n // Set the row to be selected\r\n table.setRowSelectionInterval(row, row);\r\n table.repaint();\r\n // Now Get the StockData Obj at that row\r\n StockData sd = (StockData) dataModel.getData().elementAt(row + 1);\r\n // Now we have the Object - We still Need to pre-fill in the data\r\n sd.setSymbol(symbol, 0.00);\r\n // Set the Name as we are still Searching\r\n sd.setName(\"Search for \" + symbol);\r\n // Lets Load the Historic Data.\r\n this.loadHistoricData(sd);\r\n // We are done now.\r\n debug(\"addSymbolToCurrentWatchList(\" + symbol + \") - complete\");\r\n\r\n return sd;\r\n }", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "void onPsubscribe(String pattern, int no);", "public interface TimeDriven {\n TradeSignal onSecondTick();\n}", "private void onSysex0(final String data) \n {\n // MMC Transport Controls:\n if (data.equals(\"f07f7f0605f7\"))\n mTransport.rewind();\n else if (data.equals(\"f07f7f0604f7\"))\n mTransport.fastForward();\n else if (data.equals(\"f07f7f0601f7\"))\n mTransport.stop();\n else if (data.equals(\"f07f7f0602f7\"))\n mTransport.play();\n else if (data.equals(\"f07f7f0606f7\"))\n mTransport.record();\n }", "String getStockData(String symbol) throws Exception\n\t{\n\t\tfinal String urlHalf1 = \"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=\";\n\t\tfinal String urlHalf2 = \"&apikey=\";\n\t\tfinal String apiKey = \"FKS0EU9E4K4UQDXI\";\n\n\t\tString url = urlHalf1 + symbol + urlHalf2 + apiKey;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString returnData = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jsonObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement timeSeries = jsonObject.get(\"Time Series (Daily)\");\n\n\t\t\tif (timeSeries.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject timeObject = timeSeries.getAsJsonObject();\n\n\t\t\t\tDate date = new Date();\n\n\t\t\t\tCalendar calendar = new GregorianCalendar();\n\t\t\t\tcalendar.setTime(date);\n\n\t\t\t\t// Loop until we reach most recent Friday (market closes on Friday)\n\t\t\t\twhile (calendar.get(Calendar.DAY_OF_WEEK) < Calendar.FRIDAY\n\t\t\t\t\t\t|| calendar.get(Calendar.DAY_OF_WEEK) > Calendar.FRIDAY)\n\t\t\t\t{\n\t\t\t\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\t}\n\n\t\t\t\tint year = calendar.get(Calendar.YEAR);\n\t\t\t\tint month = calendar.get(Calendar.MONTH) + 1;\n\t\t\t\tint day = calendar.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t\tString dayToString = Integer.toString(day);\n\n\t\t\t\tif (dayToString.length() == 1)\n\t\t\t\t\tdayToString = \"0\" + dayToString;\n\n\t\t\t\tJsonElement currentData = timeObject.get(year + \"-\" + month + \"-\" + dayToString);\n\n\t\t\t\tif (currentData.isJsonObject())\n\t\t\t\t{\n\t\t\t\t\tJsonObject dataObject = currentData.getAsJsonObject();\n\n\t\t\t\t\tJsonElement openPrice = dataObject.get(\"1. open\");\n\t\t\t\t\tJsonElement closePrice = dataObject.get(\"4. close\");\n\t\t\t\t\tJsonElement highPrice = dataObject.get(\"2. high\");\n\t\t\t\t\tJsonElement lowPrice = dataObject.get(\"3. low\");\n\n\t\t\t\t\treturnData = year + \"-\" + month + \"-\" + dayToString + \" - \" + symbol + \": Opening price: $\"\n\t\t\t\t\t\t\t+ openPrice.getAsString() + \" / Closing price: $\" + closePrice.getAsString()\n\t\t\t\t\t\t\t+ \" / High price: $\" + highPrice.getAsString() + \" / Low price: $\" + lowPrice.getAsString();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn returnData;\n\t}", "public BitfinexTicker getTicker(String symbol) {\r\n\t\tif (Strings.isBlank(symbol)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tBitfinexTicker ticker = null;\r\n\t\tString url = String.format(BitfinexConst.URL_TICKER, symbol);\r\n\t\tResponse response = HttpUtil.get(url);\r\n\t\tif (response != null && response.isOK()) {\r\n\t\t\tticker = Json.fromJson(BitfinexTicker.class, response.getContent());\r\n\t\t}\r\n\t\treturn ticker;\r\n\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "protected void onTick() {\n\r\n System.out.println(\"Makinarekin konexioa ezartzen...\");\r\n try {\r\n\r\n Socket s = new Socket(\"localhost\", 5555);\r\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\r\n BufferedReader din = new BufferedReader(new InputStreamReader(s.getInputStream()));\r\n //Informazioa makinatik jaso\r\n if (itxaron == false) {\r\n dout.writeBytes(\"ask\");\r\n dout.flush();\r\n carga = din.readLine();\r\n System.out.println(\"Lan karga datua lortzen...\");\r\n System.out.println(carga);\r\n pieza = din.readLine();\r\n System.out.println(\"Pieza mota datua lortzen...\");\r\n System.out.println(pieza);\r\n catalogue.put(pieza, new Integer(carga));\r\n\r\n }\r\n //Makina pieza jasotzeko prestaztea esan\r\n if (itxaron == true) {\r\n dout.writeBytes(\"switch\");\r\n dout.flush();\r\n System.out.println(\"Makina pieza jasotzeko prestatzen...\");\r\n itxaron=false;\r\n }\r\n s.close();\r\n dout.flush();\r\n\r\n } catch(Exception e){\r\n\r\n System.out.println(\"Konexioa ezin izan da lortu\");\r\n }\r\n\r\n System.out.println(\"Makinarekin konexioa mozten\");\r\n\r\n\r\n }", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable p1) {\n\t\t\t\t\t}", "public static List<YahooStock> retrieveYahooStocks(String symbol) {\n\t\tURL yahooFinanceUrl2 = null;\n\t\tURLConnection urlConnection;\n\t\tList<YahooStock> yahooStockList = null;\n\t\ttry {\n\t\t\t//yahooFinanceUrl1 = new URL(\"http://download.finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t\tyahooFinanceUrl2 = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t} catch (MalformedURLException mue) {\n\t\t\tmue.printStackTrace();\n\t\t} \n\t\ttry {\n\t\t\turlConnection = yahooFinanceUrl2.openConnection();\n\t\t\tBufferedReader dataIn = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); \n\t\t\tString inputLine; \n\t\t\tyahooStockList = new ArrayList<YahooStock>();\n\t\t\twhile ((inputLine = dataIn.readLine()) != null) {\n\t\t\t\tString[] yahooStockInfo = inputLine.split(\",\");\n\t\t\t\tYahooStock yahooStock = new YahooStock();\n\t\t\t\tyahooStock.setSymbol(yahooStockInfo[0].replaceAll(\"\\\"\", \"\"));\n\t\t\t\tyahooStock.setLastTrade(Double.valueOf(yahooStockInfo[1]));\n\t\t\t\tyahooStock.setTradeDate(yahooStockInfo[2]);\n\t\t\t\tyahooStock.setTradeTime(yahooStockInfo[3]);\n\t\t\t\tyahooStock.setChange(Double.valueOf(yahooStockInfo[4]));\n\t\t\t\tyahooStock.setOpen(Double.valueOf(yahooStockInfo[5]));\n\t\t\t\tyahooStock.setHigh(Double.valueOf(yahooStockInfo[6]));\n\t\t\t\tyahooStock.setLow(Double.valueOf(yahooStockInfo[7]));\n\t\t\t\tyahooStock.setVolume(Double.valueOf(yahooStockInfo[8]));\n\t\t\t\tyahooStock.setSmallChartUrl(\"http://ichart.finance.yahoo.com/t?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStock.setLargeChartUrl(\"http://chart.finance.yahoo.com/w?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStockList.add(yahooStock);\n\t\t\t} \n\t\t\tdataIn.close(); \n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} \n\t\treturn yahooStockList; \t\n\t}", "public void visitCoinDispenser( DevCat devCat ) {}", "void changeMusic(AudioTrack newSong);", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onLoadSymbolFinished(final LoadSymbolFinishedEvent event) {\n EventBus.getDefault().removeStickyEvent(LoadSymbolFinishedEvent.class);\n // We use async task for the benefit of them executing sequentially in a single\n // background thread. And in order to prevent using the synchronized keyword in the main\n // thread which may block it.\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n if (event.isSuccessful()) {\n mListManipulator.addItemToTop(event.getStock());\n }\n return null;\n }\n\n @Override\n protected void onPostExecute(Void aVoid) {\n if (mEventListener != null) {\n mEventListener.onLoadSymbolFinished(event);\n }\n }\n }.execute();\n }", "@Override\n\tpublic void addInStock(Stock s) {\n\t\n\t}", "private void doSubscribe(IoSession session, MessageProtocol request) throws Exception {\n \tbyte[] msg = request.getMessage();\n \t\n \tif (msg == null) {\n \t\t// 用户名不能为空: 06 ff 01 00 01 00 00\n \t\tLOGGER.warn(\"username required.\");\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{1}, (short) 0));\n \t\treturn;\n \t} \n\n\t\tString user = new String(msg, MessageConstants.CHARSET_UTF8);\n\t\t\n\t\t// step 2\n\t\tint channel = request.getChannel();\n\t\tSet<IoSession> receivers = channels.get(channel);\n\t\t\n\t\tif (receivers == null) {\n\t\t\t// 订阅频道不存在: 06 ff 01 00 02 00 00\n\t\t\tLOGGER.warn(\"channel not found: \" + channel);\n\t\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{2}, (short) 0));\n\t\t\treturn;\n\t\t}\n \t\n\t\t// step 3\n\t\tsynchronized (users) {\n \tif (users.contains(user)) {\n \t\t// 用户名已存在: 06 ff 01 00 03 00 00\n \t\tLOGGER.warn(\"user found: \" + user);\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{3}, (short) 0));\n \t\treturn;\n \t} else {\n \t\tusers.add(user);\n \t}\n\t\t}\n\t\t\n\t\t// step 4\n\t\tsession.setAttribute(MessageConstants.KEY_USERNAME, user);\n\t\tsession.setAttribute(MessageConstants.KEY_CHANNEL, channel);\n\t\treceivers.add(session);\n\t\t\n\t\tLOGGER.info(\"doSubscribe: user = \" + user + \", users = \"+ users.size() + \", channel = \" + channel + \", receivers = \" + receivers.size());\n\t\t// 返回订阅成功命令: 06 ff 01 00 00 00 00\n\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{0}, (short) 0));\n }", "public void visitToneIndicator( DevCat devCat ) {}", "public static void register () {\n channel = NetworkRegistry.newSimpleChannel(CHANNEL_NAME, ()->PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals);\n\n cprCartSchedule.register();\n cprStationOrders.register();\n }", "public Single<Portfolio> rxSell(int amount, JsonObject quote) { \n return new io.vertx.reactivex.core.impl.AsyncResultSingle<Portfolio>(handler -> {\n sell(amount, quote, handler);\n });\n }", "private void generateIndicatorStrategySignal(float price) {\n\t\tLocalTime currentTime = LocalTime.now();\n\n\t\t// Define the start and end times for the range\n\t\tLocalTime startTime = LocalTime.of(9, 15, 0);\n\t\tLocalTime endTime = LocalTime.of(15, 30, 0);\n\n\t\tif (currentTime.isAfter(startTime) && currentTime.isBefore(endTime)) {\n\t\t\tthis.indicatorBasedStrategy.createOrUpdateBar(price);\n\t\t\tString time = currentTime.getHour() + \":\" + currentTime.getMinute();\n\t\t\tif (currentTime.getMinute() % 5 == 0) {\n\t\t\t\tthis.indicatorBasedStrategy.flushBar(time);\n\t\t\t\tString signal = this.indicatorBasedStrategy.getSignal(time);\n\t\t\t\tif (signal != null) {\n\t\t\t\t\tTelegramService.sendMessage(signal + \" at \" + price);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (currentTime.equals(endTime)) {\n\t\t\tthis.indicatorBasedStrategy.flushBar(currentTime.getHour() + \"\" + currentTime.getMinute());\n\t\t}\n\t}", "public void opened(LLRPChannelOpenedEvent event);", "@Override\n public EventData next() {\n StockTick tick = new StockTick(names[RandomHelper.getIntFromRange(0, 4)]);\n tick.setTime(System.currentTimeMillis());\n tick.setPrice(MathHelper.getDouble(RandomHelper.getDoubleFromRange(34, 39), \"#.##\"));\n\n Map<String, Object> dataMap = new HashMap<>();\n dataMap.put(\"stockSymbol\", tick.getStockSymbol());\n dataMap.put(\"price\", tick.getPrice());\n dataMap.put(\"time\", tick.getTime());\n\n EventData edata = new EventData(\"StockTick\", dataMap);\n edata.addData(\"stockSymbol\", tick.getStockSymbol());\n edata.addData(\"price\", tick.getPrice());\n edata.addData(\"time\", tick.getTime());\n return edata;\n }", "public void handleSynthCCOrNRPN(Midi.CCData data)\n {\n }", "@Override\n public void onSubscribe(Subscription s) {\n s.request(10);\n\n // Should not produce anymore data\n s.request(10);\n }", "@Override\n public int hashCode() {\n return ticker.hashCode();\n }", "public void onOpen(WebSocket conn);", "public void getQuote(String symbol)\r\n {\r\n brokerage.getQuote(symbol, this);\r\n }", "public void receive(@Observes @JmsIncoming StockQuote quote) {\n System.out.println(\"##### received \" + quote);\n }", "@OnWebSocketConnect\n\tpublic void onConnect(Session session) {\n\t\tthis.session = session;\n\t\tlatch.countDown();\n\t}", "@Override\n public void onSubscribe(Disposable d) {\n }", "public void subscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), Boolean.TRUE, new UnsignedInteger(0))).get();\n LOG.info(\"Subscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't subscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "public Stock(String sym)\n\t{\n\t\tthis(sym, 0);\n\t}", "public void putNewPrice(String symbol, double price);", "public void buyStock(Stock stock) {\n\t\tportfolio.add(stock);\n\t}", "@Override\n public void onPSubscribe(String s, int i) {\n }", "static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}", "public Subscription subscribeForDistributorDeliveries(ClockListener listener);", "@Override\n\tpublic void onPSubscribe(String arg0, int arg1) {\n\t\t\n\t}", "public void loadSymbol(String symbol) {\n // Start service to retrieve stock info\n Intent serviceIntent = new Intent(getActivity(), MainService.class);\n serviceIntent.putExtra(Constants.KEY_LOAD_SYMBOL_QUERY, symbol);\n serviceIntent.setAction(Constants.ACTION_LOAD_SYMBOL);\n getActivity().startService(serviceIntent);\n }", "private void subscribeToScanSubscription() {\n mScanSubscription = BluetoothConnection.getBleClient(this).scanBleDevices(\n new ScanSettings.Builder()\n .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)\n .build(),\n\n new ScanFilter.Builder()\n .setServiceUuid(new ParcelUuid(BLUETOOTH_SERVICE_UUID))\n .build()\n )\n .subscribe(\n scanResult -> {\n // Process scan result here.\n RxBleDevice rxBleDevice = scanResult.getBleDevice();\n\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(() -> {\n if(!mBtDeviceAddress.contains(rxBleDevice.getMacAddress())) {\n CustomLogger.log(\"MainActivity: mLeScanCallback: Discovered device\" + rxBleDevice.getName());\n mBtDeviceObjectList.add(new BtDeviceObject(rxBleDevice, new Date().getTime()));\n mBtDeviceAddress.add(rxBleDevice.getMacAddress());\n mDeviceListAdapter.notifyDataSetChanged();\n } else {\n int indexOfBtDevice = mBtDeviceAddress.indexOf(rxBleDevice.getMacAddress());\n if(indexOfBtDevice != -1) {\n mBtDeviceObjectList.get(indexOfBtDevice).timeSinceLastUpdate = new Date().getTime();\n }\n }\n }\n );\n\n\n },\n throwable -> {\n // Handle an error here.\n CustomLogger.log(\"MainActivity: subscribeToScanSubscription: Failed to subscribe. throwable \" + throwable.getMessage(), 'e');\n\n }\n );\n }", "public void buyStock(double askPrice, int shares, int tradeTime) {\n }", "public static void SendStockInfo(String stock, String msg) {\n Map<wss, Session> ms = mapStockUser.get(stock);\n if(ms == null) {\n ms = new HashMap<>();\n }\n\n for(wss s: ms.keySet()) {\n try {\n s.sendMessage(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n\t\tpublic void onSubscribe(Disposable d) {\n\t\t\tSystem.out.println(\"subscribe\");\n\t\t}", "public void addline(int Signal, String mac, String SSID, int frequncy) {\r\n\r\n\t\tthis.wifis.add(new wifi(Signal,mac,SSID,frequncy));\r\n\t\tnumOfScans++;\r\n\t}", "void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);", "@Override\r\n public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {\n if (tickerRequestTimeStamp == 0L || System.currentTimeMillis() - tickerRequestTimeStamp >= getRefreshRate()) {\r\n\r\n logger.debug(\"requesting BitcoinCharts tickers\");\r\n tickerRequestTimeStamp = System.currentTimeMillis();\r\n\r\n // Request data\r\n cachedBitcoinChartsTickers = bitcoinCharts.getMarketData();\r\n }\r\n\r\n return BitcoinChartsAdapters.adaptTicker(cachedBitcoinChartsTickers, currencyPair);\r\n }" ]
[ "0.6351371", "0.59177667", "0.57089406", "0.5523533", "0.5455521", "0.54537284", "0.5416309", "0.5404525", "0.53952664", "0.53049326", "0.52986985", "0.5257204", "0.5226686", "0.51891106", "0.5176374", "0.51622546", "0.5123582", "0.51060194", "0.5025521", "0.5023767", "0.5004768", "0.5000604", "0.49994892", "0.49982402", "0.49879748", "0.49841824", "0.49572706", "0.49434522", "0.49189758", "0.49141154", "0.48970452", "0.48841232", "0.48823878", "0.48799172", "0.48474625", "0.4844667", "0.48398197", "0.4839355", "0.4832652", "0.47900996", "0.4782797", "0.4781072", "0.47743568", "0.47614285", "0.4759068", "0.4752144", "0.47263095", "0.47240967", "0.47234017", "0.47201696", "0.47116977", "0.4696726", "0.46950874", "0.46834505", "0.46561986", "0.4655403", "0.46544233", "0.46544233", "0.46544233", "0.46544233", "0.46544233", "0.46544233", "0.464603", "0.46363232", "0.46314535", "0.46312547", "0.4611523", "0.4609926", "0.46065295", "0.45992538", "0.45803964", "0.45733505", "0.4572165", "0.45669657", "0.45659277", "0.4563067", "0.45546392", "0.4552626", "0.4541086", "0.45404688", "0.45397234", "0.4538292", "0.4529176", "0.45106956", "0.45031682", "0.44996518", "0.44922954", "0.4483451", "0.44781047", "0.44737118", "0.4473008", "0.4467598", "0.44674215", "0.44627747", "0.4460973", "0.44555828", "0.4448333", "0.4446179", "0.4435145", "0.44262803" ]
0.8352372
0
Register a new executed trade callback
public void registerExecutedTradeCallback(final BitfinexExecutedTradeSymbol orderbookConfiguration, final BiConsumer<BitfinexExecutedTradeSymbol, ExecutedTrade> callback) throws APIException { tradesCallbacks.registerCallback(orderbookConfiguration, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onTrade(Trade trade) throws Exception {\n\t\t\r\n\t}", "public static void registerCallbackHandler(com.sybase.persistence.CallbackHandler handler)\n {\n DELEGATE.registerCallbackHandler(handler);\n }", "public void onTrade(Trade event) {\n tradeCount++;\n }", "public void subscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) {\n\t\t\n\t\tfinal SubscribeTradesCommand subscribeOrderbookCommand \n\t\t\t= new SubscribeTradesCommand(tradeSymbol);\n\t\t\n\t\tbitfinexApiBroker.sendCommand(subscribeOrderbookCommand);\n\t}", "void addCallback(Executor executor, BiConsumer<Boolean, Boolean> callback);", "void registerCallback(BundleTriggerCallback callback);", "public void handleExecutedTradeEntry(final BitfinexExecutedTradeSymbol tradeSymbol, \n\t\t\tfinal ExecutedTrade entry) {\n\t\t\n\t\ttradesCallbacks.handleEvent(tradeSymbol, entry);\n\t}", "void addTrade(Trade trade);", "void addAdvertCallback(AdvertCallback callback);", "public synchronized void addCallback(MaestroNoteCallback callback) {\n callbacks.add(callback);\n }", "public void registerCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null) {\n\t\t\t\tm_callbacks.register(callback);\n\t\t\t\tm_soundManager.progressListenerRegistered();\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void acceptTrade(boolean willAccept) {\n\t\t\r\n\t}", "public void onTransactionAdded(TransactionEntry transactionEntry);", "void register(String methodName, HubCallback<JsonElement> callback);", "void addUserCallback(UserCallback callback);", "public interface FlightTrackingCallbackHandler extends Remote {\n\n /*\n * Callback cuando el vuelo fue asignado a una pista\n */\n void onRunwayAssignment(final String flightId, final String destination, final String runway, final long flightsAhead)\n throws RemoteException;\n\n /*\n * Callback cuando el vuelo cambió su posicion en la cola de espera de la pista\n */\n void onQueuePositionUpdate(final String flightId, final String destination, final String runway, final long flightsAhead)\n throws RemoteException;\n\n /*\n * Callback cuando el vuelo despego\n */\n void onDeparture(final String flightId, final String destination, final String runway)\n throws RemoteException;\n\n /*\n * Callback para eliminar el handler de callbacks\n */\n void endProcess()\n throws RemoteException;\n}", "public void registerTickCallback(final BitfinexTickerSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\ttickerCallbacks.registerCallback(symbol, callback);\n\t}", "public interface PaymentCallBackFacade {\n\n CommonResp callback(NotifyTradeStatusReq notifyTradeStatusReq);\n}", "public void callback() {\n }", "public interface TickerCallBack {\n void search();\n}", "@Override\r\n\tpublic void onStartTrading() throws Exception {\n\t\t\r\n\t}", "void confirmRealWorldTrade(IUserAccount user, ITransaction trans);", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "public interface OtherYqCallback {\n public void onValue(String data);\n}", "private void startAggTradesEventStreaming(String symbol) {\r\n\t\tBinanceApiClientFactory factory = BinanceApiClientFactory.newInstance();\r\n\t\tBinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\r\n\t\t/*\r\n\t\t * static void startAggTradeEventListener(BinanceApiClientFactory factory,\r\n\t\t * String symbol, ExchangeApiCallback<AggTradeEvent> callback) {\r\n\t\t * BinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\t\t * client.onAggTradeEvent(symbol, (AggTradeEvent event) -> { if (event == null)\r\n\t\t * { startAggTradeEventListener(factory, symbol, callback); } else {\r\n\t\t * callback.onResponse(event); } }); }\r\n\t\t */\r\n\r\n\t\tclient.onAggTradeEvent(symbol.toLowerCase(), response -> {\r\n\r\n\t\t\tif (response == null) {\r\n\t\t\t\tstartAggTradesEventStreaming(symbol);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tLong aggregatedTradeId = response.getAggregatedTradeId();\r\n\t\t\tAggTrade updateAggTrade = aggTradesCache.get(aggregatedTradeId);\r\n\t\t\tif (updateAggTrade == null) {\r\n\t\t\t\t// new agg trade\r\n\t\t\t\tupdateAggTrade = new AggTrade();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * Duration tickDuration = Duration.ofSeconds(1); Long tickIndex = new\r\n\t\t\t * Long(this.aggTradeTicksCashe.size()); List<AggTrade> listAggTrade = null;\r\n\t\t\t * \r\n\t\t\t * if (aggTradeTicksCashe.isEmpty()) { listAggTrade = new\r\n\t\t\t * CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put( tickIndex,\r\n\t\t\t * listAggTrade ); } else { listAggTrade =\r\n\t\t\t * this.aggTradeTicksCashe.get(tickIndex); }\r\n\t\t\t * \r\n\t\t\t * ZonedDateTime tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(updateAggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault()); ZonedDateTime tickEndTime =\r\n\t\t\t * tradeTimestamp.plus(tickDuration);\r\n\t\t\t * \r\n\t\t\t * if (!tradeTimestamp.isBefore(tickEndTime)) { // new tick ++tickIndex;\r\n\t\t\t * listAggTrade = new CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put(\r\n\t\t\t * tickIndex, listAggTrade ); } // Store the updated agg trade in the current\r\n\t\t\t * tick cache listAggTrade.add(updateAggTrade);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * List<Tick> ticks = null; Long tickIndex = 0L; List<AggTrade> listAggTrade =\r\n\t\t\t * new CopyOnWriteArrayList<AggTrade>(); this.aggTradeTicksCashe = new\r\n\t\t\t * HashMap<Long, List<AggTrade>>();\r\n\t\t\t */\r\n\r\n\t\t\tupdateAggTrade.setTradeTime(response.getEventTime());\r\n\t\t\tupdateAggTrade.setAggregatedTradeId(aggregatedTradeId);\r\n\t\t\tupdateAggTrade.setPrice(response.getPrice());\r\n\t\t\tupdateAggTrade.setQuantity(response.getQuantity());\r\n\t\t\tupdateAggTrade.setFirstBreakdownTradeId(response.getFirstBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setLastBreakdownTradeId(response.getLastBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setBuyerMaker(response.isBuyerMaker());\r\n\r\n\t\t\t// Store the updated agg trade in the cache\r\n\t\t\taggTradesCache.put(aggregatedTradeId, updateAggTrade);\r\n\r\n\t\t\t/*\r\n\t\t\t * Build ticks and Series\r\n\t\t\t */\r\n\r\n\t\t\tLong trendAnalysisTimeFrame = 5L; // perform a trend analysis using last 5 seconds time frame\r\n\r\n\t\t\tZonedDateTime tickEndTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(response.getEventTime()), // lastTradeEventTime\r\n\t\t\t\t\tZoneId.systemDefault());\r\n\t\t\tZonedDateTime tickStartTime = tickEndTime.minusSeconds(trendAnalysisTimeFrame);\r\n\t\t\t/*\r\n\t\t\t * ZonedDateTime tickStartTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t\t * ZonedDateTime tickEndTime = tickStartTime; Iterator<Long>\r\n\t\t\t * aggTradesCacheIterator = aggTradesCache.keySet().iterator(); while\r\n\t\t\t * (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime\r\n\t\t\t * tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),ZoneId.\r\n\t\t\t * systemDefault()); if ( tradeTimestamp.isBefore(tickStartTime)) tickStartTime\r\n\t\t\t * = tradeTimestamp; if ( tradeTimestamp.isAfter(tickEndTime)) tickEndTime =\r\n\t\t\t * tradeTimestamp; }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * // Building the empty ticks List<Tick> ticks = buildEmptyTicks(tickStartTime,\r\n\t\t\t * tickEndTime);\r\n\t\t\t * \r\n\t\t\t * Iterator<Long> aggTradesCacheIterator = aggTradesCache.keySet().iterator();\r\n\t\t\t * while (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime tradeTime =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault());\r\n\t\t\t * \r\n\t\t\t * if ( tradeTime.isAfter(tickStartTime) && tradeTime.isBefore(tickEndTime)) {\r\n\t\t\t * // Filling the ticks with trades for (Tick tick : ticks) { if\r\n\t\t\t * (tick.inPeriod(tradeTime)) { Double price = new Double(aggTrade.getPrice());\r\n\t\t\t * Double quantity = new Double(aggTrade.getQuantity()); Double amount = price *\r\n\t\t\t * quantity; tick.addTrade( amount, price); } } } } // Removing still empty\r\n\t\t\t * ticks removeEmptyTicks(ticks);\r\n\t\t\t * \r\n\t\t\t * // Build time series TimeSeries series = new BaseTimeSeries(symbol, ticks);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * if( realTimeChart != null ) { List<Integer> xData = new\r\n\t\t\t * CopyOnWriteArrayList<Integer>(); List<Double> yData = new\r\n\t\t\t * CopyOnWriteArrayList<Double>(); List<Double> errorBars = new\r\n\t\t\t * CopyOnWriteArrayList<Double>();\r\n\t\t\t * \r\n\t\t\t * for( int x: realTimeChart.getxData() ) { xData.add(x); } for( double y:\r\n\t\t\t * realTimeChart.getyData() ) { yData.add(y); } for( double e:\r\n\t\t\t * realTimeChart.getErrorBars() ) { errorBars.add(e); }\r\n\t\t\t * //xData.add(xData.size()+1); xData.add(50); xData.remove(0); yData.add(new\r\n\t\t\t * Double(response.getPrice())); yData.remove(0); //errorBars.add(0.0);\r\n\t\t\t * //errorBars.remove(0);\r\n\t\t\t * \r\n\t\t\t * realTimeChart.updateData(xData, yData, errorBars); }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * Log AggTrade into database\r\n\t\t\t */\r\n\t\t\tstoreAggTradeCache(symbol, updateAggTrade);\r\n\t\t\t// System.out.println(updateAggTrade);\r\n\t\t});\r\n\t}", "void execute(Handler handler, Callback callback);", "public interface UHFCallbackLiatener {\n void refreshSettingCallBack(ReaderSetting readerSetting);\n void onInventoryTagCallBack(RXInventoryTag tag);\n void onInventoryTagEndCallBack(RXInventoryTag.RXInventoryTagEnd tagEnd);\n void onOperationTagCallBack(RXOperationTag tag);\n}", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "public interface IMarketObserver {\n\n //To be defined in which format MarketAgent publishes stockprice\n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n */\n public void onStockpriceChanged();\n\n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n *\n * @param transactionEntry the transaction entry\n */\n public void onTransactionAdded(TransactionEntry transactionEntry);\n \n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n *\n * @param orderEntry the order entry\n */\n public void onOrderAdded(OrderEntry orderEntry);\n \n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n *\n * @param shareEntry the share entry\n */\n public void onShareAdded(ShareEntry shareEntry);\n}", "public void callback();", "private native void addCallback(String name)\n /*-{\n var m = this;\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n target[part] = {};\n }\n target = target[part];\n }\n \n target[parts[parts.length - 1]] = $entry(function() {\n //Must make a copy because arguments is an array-like object (not instanceof Array), causing suboptimal JSON encoding\n var args = Array.prototype.slice.call(arguments, 0);\n m.@com.vaadin.client.extensions.javascriptmanager.JavaScriptManagerConnector::sendRpc(Ljava/lang/String;Lcom/google/gwt/core/client/JsArray;)(name, args);\n });\n }-*/;", "public interface OnGetPayFinishedListener {\n void OnGetPayError(String message);\n void OnGetPaySuccess(String message);\n}", "public synchronized void registerPlaceChangedCallback(\n\t\t\tPlaceChangedHandler callable) {\n\t\tplaceCheckerCallables.add(callable);\n\t}", "void additionalCreationCallback() {\n }", "@Test\n public void testAddSynchronousResponseHandler() {\n System.out.println(\"addSynchronousResponseHandler\");\n String sa = \"testhandler\";\n SynchronousResponseHandler h = (SpineSOAPRequest r) -> {\n };\n instance.addSynchronousResponseHandler(sa, h);\n }", "public interface OnPopUpFollowingListener {\n\n void onActionStart(long merchantId);\n}", "public interface MarketWatcher {\n Stock getQuote(String symbol);\n}", "public interface Callback {\n\n void registerWith(Callbacks helper);\n\n}", "public interface TimeDriven {\n TradeSignal onSecondTick();\n}", "void makeMarketBuyOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "interface PaymentCallback {\n\n /**\n * Invoke the payment callback.\n * \n */\n void call();\n}", "public static interface TransactionCallback {\n public void transactionSuccessful(Receipt r);\n public void transactionFailed();\n }", "<T> void addInstallItem(CallbackItem<T> callbackItem);", "void registerOrderConsumer(OrderConsumer orderConsumer);", "Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "VerifyBasicCallback(TPCCSimulation.Transaction transaction, String procName) {\n m_transactionType = transaction;\n m_procedureName = procName;\n }", "public void activate(){\n callback.action();\n }", "void makeMarketSellOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "public abstract void callback(Instruction instruction);", "void resolvePaymentRequestObserverCallback(long callbackPtr);", "public void addCallback(CallbackDataUnit callbackDataUnit) {\n\t\tcallbacks.add(callbackDataUnit.getCallbackId());\n\t}", "@Override\n public void onCoinsReceived(Wallet w, Transaction tx, Coin prevBalance, Coin newBalance) {\n Coin value = tx.getValueSentToMe(w);\n System.out.println(\"Received tx for \" + value.toFriendlyString() + \": \" + tx);\n System.out.println(\"Transaction will be forwarded after it confirms.\");\n // Wait until it's made it into the block chain (may run immediately if it's already there).\n //\n // For this dummy app of course, we could just forward the unconfirmed transaction. If it were\n // to be double spent, no harm done. Wallet.allowSpendingUnconfirmedTransactions() would have to\n // be called in onSetupCompleted() above. But we don't do that here to demonstrate the more common\n // case of waiting for a block.\n Context.propagate(w.getContext());\n Futures.addCallback(tx.getConfidence().getDepthFuture(2), new FutureCallback<TransactionConfidence>() {\n @Override\n public void onSuccess(TransactionConfidence result) {\n System.out.println(\"Confirmation received.\");\n forwardCoins(tx);\n }\n\n @Override\n public void onFailure(Throwable t) {\n // This kind of future can't fail, just rethrow in case something weird happens.\n throw new RuntimeException(t);\n }\n }, MoreExecutors.directExecutor());\n\n Futures.addCallback(tx.getConfidence().getDepthFuture(1), new FutureCallback<TransactionConfidence>() {\n @Override\n public void onSuccess(TransactionConfidence result) {\n System.out.println(\"Confirmation received.\");\n blockchainIdentity(tx);\n }\n\n @Override\n public void onFailure(Throwable t) {\n // This kind of future can't fail, just rethrow in case something weird happens.\n throw new RuntimeException(t);\n }\n }, MoreExecutors.directExecutor());\n\n /*Futures.addCallback(tx.getConfidence().getDepthFuture(3), new FutureCallback<TransactionConfidence>() {\n @Override\n public void onSuccess(TransactionConfidence result) {\n System.out.println(\"3 confirmations received. -- create user\");\n blockchainUser(tx);\n }\n\n @Override\n public void onFailure(Throwable t) {\n // This kind of future can't fail, just rethrow in case something weird happens.\n throw new RuntimeException(t);\n }\n }, MoreExecutors.directExecutor());*/\n }", "public void onOrderAdded(OrderEntry orderEntry);", "public void buy(int amount, JsonObject quote, Handler<AsyncResult<Portfolio>> resultHandler) { \n delegate.buy(amount, quote, resultHandler);\n }", "public boolean recordTrade(Trade trade) throws Exception;", "void execute(final Callback callback);", "public void add( final Callback callback ) {\n\t\tcallbacks.add( callback );\n\t}", "public void registerCandlestickCallback(final BitfinexCandlestickSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\tcandleCallbacks.registerCallback(symbol, callback);\n\t}", "public interface CallbackInterface {\n void execute(String name);\n}", "<T> void register(String methodName, Class<T> argumentType, HubCallback<T> callback);", "public void createTrade(String symbol, String fiat, String type, double amount) {\n // Type should be \"sell\" or \"buy\"\n if (!type.equals(\"sell\") && !type.equals(\"buy\"))\n return; // TODO - throw exception here\n\n // Create request object\n JSONObject data = new JSONObject();\n try {\n data.put(\"uuid\", getUUID());\n data.put(\"type\", type);\n data.put(\"fiat_value\", amount);\n data.put(\"fiat\", fiat);\n data.put(\"crypto_symbol\", symbol);\n } catch (JSONException e) {\n return; // TODO - throw exception here\n }\n\n api.createTrade(new VolleyJsonCallback() {\n @Override\n public void onSuccess(JSONObject json) throws JSONException {\n Trade t = new Trade(\n json.getString(\"uuid\"),\n json.getString(\"type\"),\n json.getDouble(\"fiat_value\"),\n json.getString(\"fiat\"),\n json.getDouble(\"crypto_value\"),\n json.getString(\"crypto_symbol\")\n );\n\n user.AddTrade(t);\n\n String typeStr = (type == \"buy\") ? \"Bought \" : \"Sold \";\n String text = typeStr + t.fiat_value + \"€ of \" + t.crypto_symbol;\n Toast.makeText(getApplicationContext(), text, Toast.LENGTH_LONG).show();\n\n // Create notification if enabled and trade is a buy\n if (getNotificationEnabled() && t.type.equals(\"buy\")) {\n Intent intent = new Intent(App.this, UpdateBroadcast.class);\n intent.putExtra(\"symbol\", t.crypto_symbol);\n intent.putExtra(\"fiat_price\", t.fiat_value);\n intent.putExtra(\"crypto_value\", t.crypto_value);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(App.this, 0, intent, 0);\n\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n\n long currentTime = System.currentTimeMillis();\n //long remindIn = 1000 * 60 * 60; // Remind in this many milliseconds (1h)\n long remindIn = 1000 * 5;\n\n alarmManager.set(AlarmManager.RTC_WAKEUP, currentTime+remindIn, pendingIntent);\n }\n }\n\n @Override\n public void onError(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n }, data);\n }", "public interface UserIsFinanceRegisterListener extends OnBaseRequestListener{\n void onSuccess();\n}", "private void registerCallbacks() {\n nations.forEach(this::registerCallback);\n }", "public interface YTranslatorCallBack {\n void getYTranslateCallBack(String responcse, String progressingName);\n /*void getYTranslateCallBackFromText(String response);\n void getYTranslateCallBackFromQTrans(String response);*/\n}", "public interface CheckoutCallback extends HttpRequestCallback{\n\n void onSuccess(Token token);\n\n void onFailure(Token token, String reason);\n}", "public interface ActionCallBack {\n void acceptOrder(int position);\n void cancelOrder(int position);\n void readyToDeliver(int position);\n void showDetails(int position);\n\n\n\n}", "public interface Callback {\n }", "void addLifecycleCallback(LifecycleCallbackItem lifecycleCallbackItem);", "void acceptTrade(boolean accept);", "@Override\n public void run() {\n OrderBook.getInstance().addOfferMarketQuote(order);\n }", "void fireTorrentStarted(TorrentId torrentId);", "public interface EngineTickCallback {\n\t/**\n\t * The method the engine calls when it ticks.\n\t */\n\tvoid tick();\n}", "void setCallback(IResponseCallback<WalletDataDecl.ListResultTmpl<Response>> cb);", "@Override\n public void onUtteranceCompleted(String utteranceId) {\n }", "@Override\r\n\tpublic void saveASNew(Trade trade) {\n\t\ttradeid.setText(new Integer(trade.getId()).toString());\r\n\t\ttradestatus.setText(trade.getStatus());\r\n\t\tactionstatus.removeAllElements();\r\n\t\t\r\n\t//\tprocessActionData(actionstatus,trade.getTradedesc1()); \r\n\t\t/// imp note : wf understand CASH productType as MM so passing MM as hardcoded\r\n processActionData(actionstatus,productType.toUpperCase(),trade.getTradedesc1(),tradestatus.getText(),rtradeservices);\r\n\t\tthis.trade = trade;\r\n\t\tsetTrade(trade);\r\n\t\tgetTradeTransfers(transferPanel);\r\n\t\tgetTradeTask(taskPanel);\r\n\t\tgetTradeSDI(sdiPanel);\r\n\t}", "void nextPayload(PayloadCallback callback);", "public void onBetPlaced(Bet bet);", "void onCallback(String gekozenWoord);", "public void runEvent(Trainer t){\n\t\tt.addToken(token);\r\n\t}", "public interface AddTokenCallback<T> {\n void addToken(T tokenObject, String label);\n}", "void respondToTrade(long tradeItemId, boolean response);", "void addTransactionListener(TransactionListener listener);", "@Override\n\tpublic void callback() {\n\t}", "public void addCallback(EventCallback<T> callback) {\n callbacks.add(callback);\n }", "public void add(Callback definition, InjectionSite injectionSite) {\n definition.setParent(this);\n String name = definition.getName();\n callbacks.put(name, definition);\n Injectable injectable = new Injectable(InjectableType.CALLBACK, name);\n addInjectionSite(injectionSite, injectable);\n injectionSiteMapping.put(definition, injectionSite);\n }", "public void onTrade(Trade trade) {\n thePosition += trade.getVolume();\n theCashBalance += -1 * trade.getPrice() * trade.getVolume();\n }", "public void onTradeRequest(String name)\n {\n\t\tif(traded_ammount > 0)\n\t\t{\n\t\t\ttraded_ammount = 0;\n\t\t\ttime = System.currentTimeMillis();\n\t\t}\n\t\tint[] player = getPlayerByName(name);\n\t\tint player_id = getPlayerPID(player[0]);\n\t\tsendTradeRequest(player_id);\n }", "@Override\n\tpublic void satisfyTrade(TickEvent<Trade> tradeEvent) throws TradeException {\n\n\t}", "public interface CallBackListener\n{\n public void drawbackTexto0(String response);\n}", "@Override\n\tpublic void callback(Object o) {}", "public interface StockHistoryCallback {\n\n void onStockHistorySuccess(List<HistoricalStockData> stockHistoryData, HistoricalStockDataRanges rangeData);\n\n void onStockHistoryFailure();\n\n}", "public static interface Listener {\r\n\r\n void onCommitted(Transaction transaction);\r\n\r\n void onAborted(Transaction transaction);\r\n }", "public interface IPostExecutedGetAmountTask {\n void onPostExecutedGetAmountTask(String amount);\n}", "void makeLimitBuyOrder(AuthInfo authInfo, String pair, String price, String amount,HibtcApiCallback<Object> callback);", "public void registerNewEventHandler(Plugin cauldron, Class<? extends Event> type, Value handler)\n throws ClassNotFoundException {\n Listener lis = new Listener() {\n public int hashCode() {\n return super.hashCode();\n }\n };\n EventExecutor exec = (listener, event) -> {\n if (event.isAsynchronous()) {\n // send to Isolate's thread and process on said thread.\n } else {\n handler.execute(event);\n }\n };\n\n Bukkit.getPluginManager().registerEvent(type, lis, EventPriority.NORMAL, exec, cauldron);\n }", "public interface QARxDataCallBack<T> {\n void onSucess(T t);\n\n void onFail();\n\n}", "public void sell(int amount, JsonObject quote, Handler<AsyncResult<Portfolio>> resultHandler) { \n delegate.sell(amount, quote, resultHandler);\n }" ]
[ "0.63503385", "0.6029472", "0.57348514", "0.57207286", "0.56795496", "0.567577", "0.5655272", "0.56041986", "0.5549428", "0.54818416", "0.5443938", "0.5429298", "0.5357445", "0.53384554", "0.5297455", "0.52712244", "0.52614063", "0.5219087", "0.5209897", "0.51927054", "0.51780283", "0.5177229", "0.5166385", "0.51652056", "0.5160098", "0.51549643", "0.5125558", "0.5124105", "0.5120082", "0.50995904", "0.50972444", "0.50945634", "0.5083483", "0.5079239", "0.5073174", "0.50662816", "0.50632757", "0.5062553", "0.50569487", "0.5054692", "0.5051176", "0.50398827", "0.50264615", "0.5024609", "0.5023874", "0.50107443", "0.4997941", "0.4996142", "0.49896497", "0.4989516", "0.49843082", "0.497587", "0.49632126", "0.49607912", "0.4955728", "0.49503723", "0.49441102", "0.49405134", "0.49405116", "0.49276266", "0.49162945", "0.49085188", "0.48918387", "0.4886452", "0.48822954", "0.48722622", "0.48698503", "0.48682913", "0.4863315", "0.48572165", "0.48533404", "0.4844069", "0.48375383", "0.48342356", "0.48267484", "0.48174697", "0.48154116", "0.48150513", "0.478078", "0.47719508", "0.47432742", "0.47283673", "0.47216508", "0.47193736", "0.4716405", "0.4715251", "0.47111404", "0.4708924", "0.47050932", "0.4697022", "0.46808025", "0.46806148", "0.46772996", "0.46707788", "0.46704414", "0.46634415", "0.4659575", "0.46562117", "0.46534467", "0.46492448" ]
0.6219222
1
Remove a executed trade callback
public boolean removeExecutedTradeCallback(final BitfinexExecutedTradeSymbol tradeSymbol, final BiConsumer<BitfinexExecutedTradeSymbol, ExecutedTrade> callback) throws APIException { return tradesCallbacks.removeCallback(tradeSymbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }", "public void removeCallback(EventCallback<T> callback) {\n callbacks.remove(callback);\n }", "@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n super.onDestroy();\n }", "public synchronized void remove(T e){\n callbackList.remove(e);\n }", "public void unsubscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) {\n\t\t\n\t\tfinal int channel = bitfinexApiBroker.getChannelForSymbol(tradeSymbol);\n\t\t\n\t\tif(channel == -1) {\n\t\t\tthrow new IllegalArgumentException(\"Unknown symbol: \" + tradeSymbol);\n\t\t}\n\t\t\n\t\tfinal UnsubscribeChannelCommand command = new UnsubscribeChannelCommand(channel);\n\t\tbitfinexApiBroker.sendCommand(command);\n\t\tbitfinexApiBroker.removeChannelForSymbol(tradeSymbol);\n\t}", "public void unregisterCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null)\n\t\t\t\tm_callbacks.unregister(callback);\n\t\t}", "Trade removeTrade(String tradeId) throws OrderBookTradeException;", "@Override\n public void unregisterCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.remove(callback);\n }", "void removeListener(RiakFutureListener<V,T> listener);", "public void\t\tremoveUCallbackListener(String\t\ttag);", "public void\t\tremoveUCallbackListener(String tag)\n\t{\n\t\ttab.remove(tag);\n\t}", "public void removeEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.remove(listener);\n\t}", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "public boolean removeTickCallback(final BitfinexTickerSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\treturn tickerCallbacks.removeCallback(symbol, callback);\n\t}", "public void removeCallback(CallbackDataUnit callbackDataUnit) {\n\t\tif (callbacks.remove(callbackDataUnit.getCallbackId())) {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"Callback removed for the received Id:\" + callbackDataUnit.getCallbackId());\n\t\t\t}\n\t\t} else {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"No callback entry found for the callback id.\");\n\t\t\t}\n\t\t}\n\t}", "void removeListener(BotListener l);", "public void removeFromCallbacks(entity.LoadCallback element);", "public void o() {\n this.f760a.p().removeCallbacks(this.g);\n }", "<T> void removeInstallItem(CallbackItem<T> callbackItem);", "public void mo81218a() {\n HandlerC16593b bVar = this.f57893b;\n if (bVar != null) {\n bVar.removeCallbacksAndMessages(null);\n this.f57893b = null;\n }\n }", "public OrderRecord removeExecutedOrder(ExecutedOrder order){\n\t\treturn removeExecutedOrder(order.iRef);\n\t}", "public abstract void detatchHistoricalWrapper();", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thandler.removeCallbacks(updateThread);\r\n\t\t\t\t\r\n\t\t\t}", "void removeFutureInstance();", "@EventHandler(ignoreCancelled = true, priority = EventPriority.NORMAL)\n\tprivate void onQuit(PlayerQuitEvent event) {\n\t\tList<RegisteredCallback> list = entries.get(event.getPlayer());\n\t\tif(list == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//copy list: can get modified while iterating\n\t\tfor(RegisteredCallback callback : new ArrayList<>(list)) {\n\t\t\tif(!callback.active) {\n\t\t\t\tcontinue; //callbacks can unregister each other\n\t\t\t}\n\t\t\t\n\t\t\tcallback.timing.startTiming();\n\t\t\ttry {\n\t\t\t\tcallback.getCallback().onQuit(event.getPlayer());\n\t\t\t} catch (Throwable t) {\n\t\t\t\tplugin.getLogger().log(Level.SEVERE, \"Error handling callback in \" + getClass().getSimpleName(), t);\n\t\t\t}\n\t\t\tcallback.timing.stopTiming();\n\t\t\ttryUnregister(event.getPlayer(), callback);\n\t\t}\n\t\t\n\t\tlist = entries.remove(event.getPlayer());\n\t\tif(list != null && !list.isEmpty()) {\n\t\t\tfor(RegisteredCallback callback : list) {\n\t\t\t\tplugin.getLogger().severe(getClass().getSimpleName()\n\t\t\t\t\t\t+ \" callback registered during player quitting: \" + callback.getCallback().getClass().getName());\n\t\t\t\tcallback.active = false;\n\t\t\t}\n\t\t}\n\t}", "public void clearCallbacks() {\n callbacks.clear();\n }", "public void unExecute()\n\t{\n\t}", "public void cancelTradeOffer()\n\t{\n\t\tm_trade.cancelOffer(this);\n\t}", "public void detenerRunnable(){\n Log.d(\"RUNNABLE\",\"DETENIENDO RUNNABLE SONIDO + VIBRACION\");\n handler.removeCallbacksAndMessages(myRunnable);\n handler.removeCallbacks(myRunnable);\n\n }", "@Override\n public void contractCompletedMethod(Messages.CompletedContract msg) {\n runningContracts.remove(msg.contID);\n if (isLeaving && runningContracts.size() == 0) {\n stop();\n }\n }", "public Object dismissTrade() {\n return client.sendRpcAndWait(SERVICE, \"dismissTrade\");\n }", "@Implementation(minSdk = O)\n protected void unregisterAudioPlaybackCallback(AudioManager.AudioPlaybackCallback cb) {\n audioPlaybackCallbacks.remove(cb);\n }", "void unsetCurrentrun();", "@Override\n\tpublic void removeTrigger() {\n\t\tplayer.removeListener(this.listener, EventNameType.SOUL_FIGHT);\n\t}", "@java.lang.Deprecated\n public void removeFromCallbacks(gw.pl.persistence.core.Key elementID);", "@Override\n\tpublic void deleteCB(CB cb) {\n\t\t\n\t}", "<T> void removeUninstallItem(CallbackItem<T> callbackItem);", "public void removeConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.remove(listener);\n\t}", "public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}", "public void undo() {\n setExecuted(false);\n }", "@Override\n public void unexecute()\n {\n if(layer.removeMeasurementPointByPosition(measurementPoint.getPosition()))\n {\n //remove local reference to the measurement point\n measurementPoint = null;\n //remove marker\n if(mapCanvas.removeMarkerFromMap(markerPositionOnMap))\n {\n markerPositionOnMap = null;\n }\n else\n {\n Log.d(DEBUGTAG, \"Error: While undoing 'add measurement point' could not remove the marker\");\n }\n\n }\n else\n {\n Log.d(DEBUGTAG, \"Error: MeasurementPoint not found in layer!\");\n }\n Log.d(DEBUGTAG, \"Command AddMeasurement Point Unexecuted\");\n }", "public void mo8963a() {\n if ((this instanceof OnMessageListener) && this.f14276h != null) {\n this.f14276h.removeMessageListener((OnMessageListener) this);\n }\n this.f14275g = null;\n super.mo8963a();\n }", "public interface RemoveCallback {\n void onRemoved(int removed);\n }", "public void cancelAnimationCallback() {\n this.mChoreographer.removeCallbacks(1, this.mNormalizedAnimationCallback, null);\n }", "public void removeFunction(Address entryPoint);", "private void stopSeekHandler(){\n if (mUpdateTimeTask != null) handler.removeCallbacks(mUpdateTimeTask);\n }", "public void removeClockFromStock(Clock removedClock);", "private static void Remove_handlers() {\n if (PlayerAcreenActivity.seekHandler != null) {\n PlayerAcreenActivity.seekHandler.removeCallbacks(PlayerAcreenActivity.run);\n\n }\n }", "@Override\n\tpublic void registerDestructionCallback(String name, Runnable callback) {\n\n\t}", "public void removeReceived() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeReceived()\" );\n Via via=(Via)sipHeader;\n via.removeParameter(Via.RECEIVED);\n }", "private native void removeCallback(String name)\n /*-{\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n $wnd.console.log(part,'not defined in',target);\n // No longer attached -> nothing more to do\n return;\n }\n target = target[part];\n }\n\n $wnd.console.log('removing',parts[parts.length - 1],'from',target);\n delete target[parts[parts.length - 1]];\n }-*/;", "@Override\n\tpublic void registerDestructionCallback(String name, Runnable callback)\n\t{\n\t}", "public void deleteTradeRequest(TradeRequest request){\n tradeRequests.remove(request);\n }", "public void removed() {\n }", "default void removeListener(Runnable listener) {\n\t\tthis.getItemListeners().remove(listener);\n\t}", "@Override\r\n\tpublic void onTrade(Trade trade) throws Exception {\n\t\t\r\n\t}", "@Implementation(minSdk = N)\n protected void unregisterAudioRecordingCallback(AudioManager.AudioRecordingCallback cb) {\n audioRecordingCallbacks.remove(cb);\n }", "public void removeOnClick(Runnable action) {\n onClick.remove(action);\n }", "public abstract void onRemove();", "@Override\n public void onRemoveRPZone(IRPZone zone) {\n }", "public void removeFinArFundsInActionAppliedHistory(FinArFundsInActionAppliedHistory finArFundsInActionAppliedHistory);", "public void unbind(PusherCallback callback) {\n\t\twhile (mGlobalCallbacks.remove(callback))\n\t\t\t;\n\n\t\t/* remove all matching callbacks from each local callback list */\n\t\tfor (List<PusherCallback> localCallbacks : mLocalCallbacks.values()) {\n\t\t\twhile (localCallbacks.remove(callback))\n\t\t\t\t;\n\t\t}\n\t}", "void unsubscribe(Player player, boolean fast);", "void unsetPaymentDelay();", "public void cleanUp() { listener = null; }", "public synchronized void removePermanentHandler(Listener listener) {\n permanentEventMethodCache.remove(listener);\n }", "private void handleActionBaz() {\n Notifier.cancelTimer(this);\n }", "public void\n\t \t removeEventCallback(\n\t \t SoType eventType,\n\t \t SoEventCallbackCB f,\n\t \t Object userData)\n\t \t //\n\t \t {\n\t \t // loop from the end of the list, in case we remove items\n\t \t for (int i = cblist.getLength() - 1; i >= 0; i--) {\n\t \t SoEventCallbackData data = (SoEventCallbackData ) cblist.operator_square_bracket(i);\n\t \t if ((data.eventType.operator_equal_equal(eventType)) &&\n\t \t (data.func == f) &&\n\t \t (data.userData == userData)) {\n\t \t \n\t \t // found the func/event type/data triplet - remove it!\n\t \t cblist.remove(i);\n\t \t //delete data;\n\t \t data.destructor();\n\t \t }\n\t \t }\n\t \t }", "final void m9154a() {\n C0938m.m6816c().removeCallbacks(this);\n }", "public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this);\n mLocalManager.getProfileManager().removeServiceListener(this);\n }", "@Override\r\n public void onDestroy() {\n\t if (accountChangedReceiver != null) {\r\n\t try {\r\n\t \tunregisterReceiver(accountChangedReceiver);\r\n\t } catch (IllegalArgumentException e) {\r\n\t \t// Nothing to do\r\n\t }\r\n\t }\r\n\r\n // Stop the core\r\n Thread t = new Thread() {\r\n /**\r\n * Processing\r\n */\r\n public void run() {\r\n stopCore();\r\n }\r\n };\r\n t.start();\r\n }", "public void removeOnRelease(Runnable action) {\n onRelease.remove(action);\n }", "public boolean removeCandlestickCallback(final BitfinexCandlestickSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\treturn candleCallbacks.removeCallback(symbol, callback);\n\t}", "public void removeAnswerListener(AnswerListener anw){\n\t\tlisteners.remove(anw);\n\t}", "@GuardedBy(\"sLock\")\n private void callbackRemovedForActivity(Activity activity) {\n for (WindowLayoutChangeCallbackWrapper callbackWrapper : mWindowLayoutChangeCallbacks) {\n if (callbackWrapper.mActivity.equals(activity)) {\n // Found a registered callback for token.\n return;\n }\n }\n // No registered callbacks left for the activity - report to extension.\n mWindowExtension.onWindowLayoutChangeListenerRemoved(activity);\n }", "public void removeTimeObserver(TimeObserver observer);", "@Override\n protected void onStop() {\n super.onStop();\n uart.unregisterCallback(this);\n uart.disconnect();\n }", "public void mo37873b() {\n if (C13262e.this.f34200n.onRequest(this.f34217f, this.f34218g)) {\n try {\n C13262e.this.f34208v.mo38156a(this.f34217f, C13256a.CANCEL);\n synchronized (C13262e.this) {\n C13262e.this.f34210x.remove(Integer.valueOf(this.f34217f));\n }\n } catch (IOException unused) {\n }\n }\n }", "public void removeNPTListener(NPTListener l) {}", "public ChannelProgressivePromise removeListener(GenericFutureListener<? extends Future<? super Void>> listener)\r\n/* 81: */ {\r\n/* 82:113 */ super.removeListener(listener);\r\n/* 83:114 */ return this;\r\n/* 84: */ }", "@OnClick(R.id.cancelButton)\n public void deleteUpload() {\n callback.deleteUpload(contribution);\n }", "private void m17251h() {\n this.f13994d.unregisterReceiver(this.f13995e);\n }", "public void removeOnCrypt(ACBrEventListener<AACCryptEventObject> pListener) {\n\t\tremoveListener(\"onCrypt\", pListener);\n\t\tif (!hasListeners(\"onCrypt\")) {\n\t\t\tACBrAACInterop.INSTANCE.AAC_SetOnCrypt(getHandle(), null);\n\t\t}\n\t}", "ISlot remove(IStrongSlot target);", "void removeConsumer(Consumer consumer);", "public void removeTimerUpdateHandler(TimerUpdateHandler handler) {\r\n handlers.remove(handler);\r\n }", "@Override\n\tpublic void deleteInvoker(Invoker<?> invoker) {\n\t\t\n\t}", "private void removeStatement(){\n\t\tsynchronized(m_viz){\n\t\t\tTuple firstTuple;\n\t\t\tsynchronized(statementList){\n\t\t\t\tfirstTuple = statementList.getFirst();\n\t\t\t}\n\n\t\t\t// Remove action is synchronized to prevent PreFuse from drawing at the same time\n\t\t\tremoveMessage(firstTuple);\n\t\t\tm_statements.removeTuple(firstTuple);\n\t\t\tstatementList.removeFirst();\t\t\t\n\t\t}\n\t}", "public void removeCallLog(CallLog callLog);", "void unsubscribe(Player player);", "public void handleExecutedTradeEntry(final BitfinexExecutedTradeSymbol tradeSymbol, \n\t\t\tfinal ExecutedTrade entry) {\n\t\t\n\t\ttradesCallbacks.handleEvent(tradeSymbol, entry);\n\t}", "public void removeWallet(Wallet wallet);", "public boolean onDelete(Session s) throws CallbackException;", "private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "public void onCallRemoved(android.telecom.Call call) {\n call.unregisterCallback(mCallCallback);\n }", "public void stopHandler() {\n handler.removeCallbacks(runnable);\n Log.d(\"HandlerRun\", \"stopHandlerMain\");\n }", "@CallSuper\n public void clearSession() {\n callback = null;\n }", "public void removeScript() {\n scriptHistory = null;\n }", "@EventHandler\n public void onLog(PlayerQuitEvent e) {\n lastAttack.remove(e.getPlayer());\n }", "public void removeListener(T listener);" ]
[ "0.65809065", "0.61123484", "0.5955383", "0.5946569", "0.58393383", "0.5771419", "0.5759206", "0.57476366", "0.5740284", "0.5668382", "0.5648047", "0.562884", "0.56287366", "0.5621541", "0.561736", "0.5600223", "0.5593667", "0.5579935", "0.5548889", "0.55427593", "0.55131084", "0.551309", "0.55068237", "0.5503694", "0.5499119", "0.54699004", "0.54675037", "0.5462657", "0.5414769", "0.54091483", "0.5405586", "0.53960395", "0.5394159", "0.5387583", "0.53844124", "0.5374472", "0.53657174", "0.53654486", "0.5352386", "0.53484994", "0.5347594", "0.53380096", "0.5331035", "0.5325034", "0.53144646", "0.5312578", "0.5305182", "0.5303827", "0.5295226", "0.528483", "0.5266108", "0.5244116", "0.5239393", "0.52345854", "0.52341366", "0.5229494", "0.5220313", "0.5200112", "0.51943284", "0.5186613", "0.5159153", "0.5145484", "0.51256776", "0.5110921", "0.51102763", "0.5105474", "0.5100401", "0.5093782", "0.50870275", "0.5085136", "0.50849926", "0.5083714", "0.5069839", "0.50683737", "0.50665677", "0.50619006", "0.5055764", "0.5055659", "0.5055287", "0.50507593", "0.5048369", "0.5048011", "0.50480056", "0.50456905", "0.5044938", "0.5044653", "0.5044583", "0.504117", "0.5033848", "0.50292337", "0.50253487", "0.50206715", "0.5008185", "0.50046414", "0.5002612", "0.4999714", "0.4995437", "0.49951985", "0.49941683", "0.49940944" ]
0.64110696
1
Subscribe a executed trade channel
public void subscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) { final SubscribeTradesCommand subscribeOrderbookCommand = new SubscribeTradesCommand(tradeSymbol); bitfinexApiBroker.sendCommand(subscribeOrderbookCommand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void subscribe(Player player);", "@Override\n public void onSubscribe(String channel, int subscribedChannels) {\n System.out.println(\"Client is Subscribed to channel : \"+ channel);\n }", "public Subscription subscribeForDistributorDeliveries(ClockListener listener);", "private void subscribe() {\r\n\r\n OnUpdatePlayerSubscription subscription = OnUpdatePlayerSubscription.builder().build();\r\n subscriptionWatcher = awsAppSyncClient.subscribe(subscription);\r\n subscriptionWatcher.execute(subCallback);\r\n }", "void subscribe();", "SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);", "void subscribe(String id);", "public void subscribe(SubscriberInterface subscriber, UUID clientId) throws RemoteException;", "public void onChannel(String channel, String title, String subtitle);", "void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);", "public void subscribe(String name, String clientId) throws Exception, RemoteException;", "public void subscribeCandles(final BitfinexCandlestickSymbol symbol) {\n\t\tfinal SubscribeCandlesCommand command = new SubscribeCandlesCommand(symbol);\n\t\tbitfinexApiBroker.sendCommand(command);\n\t}", "@Override\n\t\t\tpublic void callStarted(String channel) {\n\t\t\t}", "private void startAggTradesEventStreaming(String symbol) {\r\n\t\tBinanceApiClientFactory factory = BinanceApiClientFactory.newInstance();\r\n\t\tBinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\r\n\t\t/*\r\n\t\t * static void startAggTradeEventListener(BinanceApiClientFactory factory,\r\n\t\t * String symbol, ExchangeApiCallback<AggTradeEvent> callback) {\r\n\t\t * BinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\t\t * client.onAggTradeEvent(symbol, (AggTradeEvent event) -> { if (event == null)\r\n\t\t * { startAggTradeEventListener(factory, symbol, callback); } else {\r\n\t\t * callback.onResponse(event); } }); }\r\n\t\t */\r\n\r\n\t\tclient.onAggTradeEvent(symbol.toLowerCase(), response -> {\r\n\r\n\t\t\tif (response == null) {\r\n\t\t\t\tstartAggTradesEventStreaming(symbol);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tLong aggregatedTradeId = response.getAggregatedTradeId();\r\n\t\t\tAggTrade updateAggTrade = aggTradesCache.get(aggregatedTradeId);\r\n\t\t\tif (updateAggTrade == null) {\r\n\t\t\t\t// new agg trade\r\n\t\t\t\tupdateAggTrade = new AggTrade();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * Duration tickDuration = Duration.ofSeconds(1); Long tickIndex = new\r\n\t\t\t * Long(this.aggTradeTicksCashe.size()); List<AggTrade> listAggTrade = null;\r\n\t\t\t * \r\n\t\t\t * if (aggTradeTicksCashe.isEmpty()) { listAggTrade = new\r\n\t\t\t * CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put( tickIndex,\r\n\t\t\t * listAggTrade ); } else { listAggTrade =\r\n\t\t\t * this.aggTradeTicksCashe.get(tickIndex); }\r\n\t\t\t * \r\n\t\t\t * ZonedDateTime tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(updateAggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault()); ZonedDateTime tickEndTime =\r\n\t\t\t * tradeTimestamp.plus(tickDuration);\r\n\t\t\t * \r\n\t\t\t * if (!tradeTimestamp.isBefore(tickEndTime)) { // new tick ++tickIndex;\r\n\t\t\t * listAggTrade = new CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put(\r\n\t\t\t * tickIndex, listAggTrade ); } // Store the updated agg trade in the current\r\n\t\t\t * tick cache listAggTrade.add(updateAggTrade);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * List<Tick> ticks = null; Long tickIndex = 0L; List<AggTrade> listAggTrade =\r\n\t\t\t * new CopyOnWriteArrayList<AggTrade>(); this.aggTradeTicksCashe = new\r\n\t\t\t * HashMap<Long, List<AggTrade>>();\r\n\t\t\t */\r\n\r\n\t\t\tupdateAggTrade.setTradeTime(response.getEventTime());\r\n\t\t\tupdateAggTrade.setAggregatedTradeId(aggregatedTradeId);\r\n\t\t\tupdateAggTrade.setPrice(response.getPrice());\r\n\t\t\tupdateAggTrade.setQuantity(response.getQuantity());\r\n\t\t\tupdateAggTrade.setFirstBreakdownTradeId(response.getFirstBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setLastBreakdownTradeId(response.getLastBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setBuyerMaker(response.isBuyerMaker());\r\n\r\n\t\t\t// Store the updated agg trade in the cache\r\n\t\t\taggTradesCache.put(aggregatedTradeId, updateAggTrade);\r\n\r\n\t\t\t/*\r\n\t\t\t * Build ticks and Series\r\n\t\t\t */\r\n\r\n\t\t\tLong trendAnalysisTimeFrame = 5L; // perform a trend analysis using last 5 seconds time frame\r\n\r\n\t\t\tZonedDateTime tickEndTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(response.getEventTime()), // lastTradeEventTime\r\n\t\t\t\t\tZoneId.systemDefault());\r\n\t\t\tZonedDateTime tickStartTime = tickEndTime.minusSeconds(trendAnalysisTimeFrame);\r\n\t\t\t/*\r\n\t\t\t * ZonedDateTime tickStartTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t\t * ZonedDateTime tickEndTime = tickStartTime; Iterator<Long>\r\n\t\t\t * aggTradesCacheIterator = aggTradesCache.keySet().iterator(); while\r\n\t\t\t * (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime\r\n\t\t\t * tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),ZoneId.\r\n\t\t\t * systemDefault()); if ( tradeTimestamp.isBefore(tickStartTime)) tickStartTime\r\n\t\t\t * = tradeTimestamp; if ( tradeTimestamp.isAfter(tickEndTime)) tickEndTime =\r\n\t\t\t * tradeTimestamp; }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * // Building the empty ticks List<Tick> ticks = buildEmptyTicks(tickStartTime,\r\n\t\t\t * tickEndTime);\r\n\t\t\t * \r\n\t\t\t * Iterator<Long> aggTradesCacheIterator = aggTradesCache.keySet().iterator();\r\n\t\t\t * while (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime tradeTime =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault());\r\n\t\t\t * \r\n\t\t\t * if ( tradeTime.isAfter(tickStartTime) && tradeTime.isBefore(tickEndTime)) {\r\n\t\t\t * // Filling the ticks with trades for (Tick tick : ticks) { if\r\n\t\t\t * (tick.inPeriod(tradeTime)) { Double price = new Double(aggTrade.getPrice());\r\n\t\t\t * Double quantity = new Double(aggTrade.getQuantity()); Double amount = price *\r\n\t\t\t * quantity; tick.addTrade( amount, price); } } } } // Removing still empty\r\n\t\t\t * ticks removeEmptyTicks(ticks);\r\n\t\t\t * \r\n\t\t\t * // Build time series TimeSeries series = new BaseTimeSeries(symbol, ticks);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * if( realTimeChart != null ) { List<Integer> xData = new\r\n\t\t\t * CopyOnWriteArrayList<Integer>(); List<Double> yData = new\r\n\t\t\t * CopyOnWriteArrayList<Double>(); List<Double> errorBars = new\r\n\t\t\t * CopyOnWriteArrayList<Double>();\r\n\t\t\t * \r\n\t\t\t * for( int x: realTimeChart.getxData() ) { xData.add(x); } for( double y:\r\n\t\t\t * realTimeChart.getyData() ) { yData.add(y); } for( double e:\r\n\t\t\t * realTimeChart.getErrorBars() ) { errorBars.add(e); }\r\n\t\t\t * //xData.add(xData.size()+1); xData.add(50); xData.remove(0); yData.add(new\r\n\t\t\t * Double(response.getPrice())); yData.remove(0); //errorBars.add(0.0);\r\n\t\t\t * //errorBars.remove(0);\r\n\t\t\t * \r\n\t\t\t * realTimeChart.updateData(xData, yData, errorBars); }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * Log AggTrade into database\r\n\t\t\t */\r\n\t\t\tstoreAggTradeCache(symbol, updateAggTrade);\r\n\t\t\t// System.out.println(updateAggTrade);\r\n\t\t});\r\n\t}", "private void doSubscribe(IoSession session, MessageProtocol request) throws Exception {\n \tbyte[] msg = request.getMessage();\n \t\n \tif (msg == null) {\n \t\t// 用户名不能为空: 06 ff 01 00 01 00 00\n \t\tLOGGER.warn(\"username required.\");\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{1}, (short) 0));\n \t\treturn;\n \t} \n\n\t\tString user = new String(msg, MessageConstants.CHARSET_UTF8);\n\t\t\n\t\t// step 2\n\t\tint channel = request.getChannel();\n\t\tSet<IoSession> receivers = channels.get(channel);\n\t\t\n\t\tif (receivers == null) {\n\t\t\t// 订阅频道不存在: 06 ff 01 00 02 00 00\n\t\t\tLOGGER.warn(\"channel not found: \" + channel);\n\t\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{2}, (short) 0));\n\t\t\treturn;\n\t\t}\n \t\n\t\t// step 3\n\t\tsynchronized (users) {\n \tif (users.contains(user)) {\n \t\t// 用户名已存在: 06 ff 01 00 03 00 00\n \t\tLOGGER.warn(\"user found: \" + user);\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{3}, (short) 0));\n \t\treturn;\n \t} else {\n \t\tusers.add(user);\n \t}\n\t\t}\n\t\t\n\t\t// step 4\n\t\tsession.setAttribute(MessageConstants.KEY_USERNAME, user);\n\t\tsession.setAttribute(MessageConstants.KEY_CHANNEL, channel);\n\t\treceivers.add(session);\n\t\t\n\t\tLOGGER.info(\"doSubscribe: user = \" + user + \", users = \"+ users.size() + \", channel = \" + channel + \", receivers = \" + receivers.size());\n\t\t// 返回订阅成功命令: 06 ff 01 00 00 00 00\n\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{0}, (short) 0));\n }", "@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}", "@Ignore(\"FIXME: fix exception\")\n @Test\n public void transient_publish_connected() throws AblyException {\n AblyRealtime pubAbly = null, subAbly = null;\n String channelName = \"transient_publish_connected_\" + testParams.name;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n subAbly = new AblyRealtime(opts);\n\n /* wait until connected */\n new ConnectionWaiter(subAbly.connection).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", subAbly.connection.state, ConnectionState.connected);\n\n /* create a channel and subscribe */\n final Channel subChannel = subAbly.channels.get(channelName);\n Helpers.MessageWaiter messageWaiter = new Helpers.MessageWaiter(subChannel);\n new ChannelWaiter(subChannel).waitFor(ChannelState.attached);\n\n pubAbly = new AblyRealtime(opts);\n new ConnectionWaiter(pubAbly.connection).waitFor(ConnectionState.connected);\n Helpers.CompletionWaiter completionWaiter = new Helpers.CompletionWaiter();\n final Channel pubChannel = pubAbly.channels.get(channelName);\n pubChannel.publish(\"Lorem\", \"Ipsum!\", completionWaiter);\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n ErrorInfo errorInfo = completionWaiter.waitFor();\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n messageWaiter.waitFor(1);\n assertEquals(\"Verify expected message received\", messageWaiter.receivedMessages.get(0).name, \"Lorem\");\n } finally {\n if(pubAbly != null) {\n pubAbly.close();\n }\n if(subAbly != null) {\n subAbly.close();\n }\n }\n }", "public void onSubscribe() {\n\n }", "@Override\n\tpublic void onSubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Ignore(\"FIXME: fix exception\")\n @Test\n public void transient_publish_connecting() throws AblyException {\n AblyRealtime pubAbly = null, subAbly = null;\n String channelName = \"transient_publish_connecting_\" + testParams.name;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n subAbly = new AblyRealtime(opts);\n\n /* wait until connected */\n new ConnectionWaiter(subAbly.connection).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", subAbly.connection.state, ConnectionState.connected);\n\n /* create a channel and subscribe */\n final Channel subChannel = subAbly.channels.get(channelName);\n Helpers.ChannelWaiter channelWaiter = new Helpers.ChannelWaiter(subChannel);\n Helpers.MessageWaiter messageWaiter = new Helpers.MessageWaiter(subChannel);\n channelWaiter.waitFor(ChannelState.attached);\n\n pubAbly = new AblyRealtime(opts);\n final Channel pubChannel = pubAbly.channels.get(channelName);\n Helpers.CompletionWaiter completionWaiter = new Helpers.CompletionWaiter();\n pubChannel.publish(\"Lorem\", \"Ipsum!\", completionWaiter);\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n ErrorInfo errorInfo = completionWaiter.waitFor();\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n messageWaiter.waitFor(1);\n assertEquals(\"Verify expected message received\", messageWaiter.receivedMessages.get(0).name, \"Lorem\");\n } finally {\n if(pubAbly != null) {\n pubAbly.close();\n }\n if(subAbly != null) {\n subAbly.close();\n }\n }\n }", "Spliterator<Event> subscribe(String origin, String type, Instant since, Consumer<Event> callback);", "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 void receive(@Observes @JmsIncoming StockQuote quote) {\n System.out.println(\"##### received \" + quote);\n }", "private void subscribeHandler(MqttSubscribeMessage subscribe) {\n\n final int messageId = subscribe.messageId();\n LOG.info(\"SUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_SUBSCRIBE\n\n List<AmqpTopicSubscription> topicSubscriptions =\n subscribe.topicSubscriptions().stream().map(topicSubscription -> {\n return new AmqpTopicSubscription(topicSubscription.topicName(), topicSubscription.qualityOfService());\n }).collect(Collectors.toList());\n\n AmqpSubscribeMessage amqpSubscribeMessage =\n new AmqpSubscribeMessage(this.mqttEndpoint.clientIdentifier(),\n topicSubscriptions);\n\n this.ssEndpoint.sendSubscribe(amqpSubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n\n List<MqttQoS> grantedQoSLevels = null;\n if (delivery.getRemoteState() == Accepted.getInstance()) {\n\n // QoS levels requested are granted\n grantedQoSLevels = amqpSubscribeMessage.topicSubscriptions().stream().map(topicSubscription -> {\n return topicSubscription.qos();\n }).collect(Collectors.toList());\n\n // add accepted topic subscriptions to the local collection\n amqpSubscribeMessage.topicSubscriptions().stream().forEach(amqpTopicSubscription -> {\n this.grantedQoSLevels.put(amqpTopicSubscription.topic(), amqpTopicSubscription.qos());\n });\n\n } else {\n\n // failure for all QoS levels requested\n grantedQoSLevels = new ArrayList<>(Collections.nCopies(amqpSubscribeMessage.topicSubscriptions().size(), MqttQoS.FAILURE));\n }\n\n this.mqttEndpoint.subscribeAcknowledge(messageId, grantedQoSLevels);\n\n LOG.info(\"SUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "private void subscribe() {\n Log.i(TAG, \"Subscribing\");\n mNearbyDevicesArrayAdapter.clear();\n SubscribeOptions options = new SubscribeOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new SubscribeCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer subscribing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mSubscribeSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.subscribe(mGoogleApiClient, mMessageListener, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Subscribed successfully.\");\n } else {\n logAndShowSnackbar(\"Could not subscribe, status = \" + status);\n mSubscribeSwitch.setChecked(false);\n }\n }\n });\n }", "public Single<Portfolio> rxBuy(int amount, JsonObject quote) { \n return new io.vertx.reactivex.core.impl.AsyncResultSingle<Portfolio>(handler -> {\n buy(amount, quote, handler);\n });\n }", "public void subscribe(String channel, WebSocket.Out<JsonNode> out) {\n HashSet<WebSocket.Out<JsonNode>> websockets = channelToWebSocket.get(channel);\n if (websockets == null) {\n websockets = new HashSet<WebSocket.Out<JsonNode>>();\n }\n websockets.add(out);\n channelToWebSocket.put(channel, websockets);\n\n // reverse mapping from websocket to channels\n HashSet<String> channels = webSocketToChannel.get(out);\n if (channels == null) {\n channels = new HashSet<String>();\n }\n channels.add(channel);\n webSocketToChannel.put(out, channels);\n\n // subscribe to the channel\n pubsubConn.subscribe(channel);\n }", "@PreAuthorize(\"isAuthenticated()\")\n\tsynchronized public Channel subscribe(String instanceId) {\n\t\tUserEntity owner = securityUtils.getPrincipal();\n\t\tLong channelId = getNextId();\n\t\tSubscription subscription = null;\n\t\tif (idsMap.containsKey(instanceId))\n\t\t\tsubscription = subscriptionMap.get(idsMap.get(instanceId));\n\t\tif (subscription == null)\n\t\t\ttry {\n\t\t\t\tsubscription = (Subscription) beanFactory.getBean(\"subscription\", channelId,\n\t\t\t\t\t\tinstanceId, owner);\n\t\t\t\tlog.info(\"New subscription \" + subscription);\n\t\t\t} catch (Exception e) {\n\t\t\t\tString errMsg = \"Unable to create subscription with instanceId \" + instanceId\n\t\t\t\t\t\t+ \" for user #\" + owner.getUUID();\n\t\t\t\tlog.warn(errMsg, e);\n\t\t\t\tthrow new KhcInternalServerException(errMsg, e);\n\t\t\t}\n\t\telse\n\t\t\tsubscription.setChannelId(channelId);\n\t\tsubscriptionMap.put(channelId, subscription);\n\t\tidsMap.put(instanceId, channelId); // replace ids relation\n\t\tChannel notch = new Channel();\n\t\tnotch.setId(channelId);\n\t\tnotch.setInstanceId(instanceId);\n\t\tupdateUsage(subscription);\n\t\treturn notch;\n\t}", "public void partChannel(String channel, String reason);", "public PublishSubscribeChannel() {\n\t\tthis(false);\n\t}", "public interface ISubsManager {\n\n public void subscribe(NodeId nodeId);\n}", "protected void onPart(String channel, String sender, String login, String hostname) {}", "@Override\n\tpublic void channelParted(String channel) {\n\t}", "@Test\n public void subscribe_unsubscribe() {\n String channelName = \"subscribe_unsubscribe_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n /* subscribe */\n MessageListener testListener = new MessageListener() {\n @Override\n public void onMessage(Message message) {\n }};\n channel.subscribe(\"test_event\", testListener);\n /* unsubscribe */\n channel.unsubscribe(\"test_event\", testListener);\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "private void subscribe(final CallbackContext callbackContext)\n {\n this.subscriber = callbackContext;\n checkFirstRunEvent(this.cordova.getActivity().getApplicationContext());\n tryToConsumeEvent();\n }", "public Publisher<StockPrice> stockPrice(String symbol) {\n\n\n Publisher<StockPrice> publisher = s -> {\n ScheduledExecutorService executorService = Executors.newScheduledThreadPool(1);\n executorService.scheduleAtFixedRate(() -> {\n StockPrice ret = new StockPrice(symbol, 2d, LocalDateTime.now());\n s.onNext(ret);\n }, 0, 2, TimeUnit.SECONDS);\n };\n\n// publisher.subscribe(new TestSubscriber());\n\n return publisher;\n }", "@Override\n public void onSubscribe(Subscription s) {\n s.request(10);\n\n // Should not produce anymore data\n s.request(10);\n }", "public abstract void publishSelf (SubscriberInterface subscriber);", "public void subscribe() {\n Fitness.getRecordingClient(this, GoogleSignIn.getLastSignedInAccount(this))\r\n .subscribe(DataType.TYPE_STEP_COUNT_CUMULATIVE)\r\n .addOnCompleteListener(\r\n new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if (task.isSuccessful()) {\r\n Log.i(TAGFit, \"Successfully subscribed!\");\r\n } else {\r\n Log.w(TAGFit, \"There was a problem subscribing.\", task.getException());\r\n }\r\n }\r\n });\r\n }", "private void Inscrire() {\n\t\t\r\n\t\tSystem.out.println(\"inscription\");\r\n }", "@Override\n public void onSubscribe(String s, int i) {\n }", "@Test\n public void subscribe_single() throws AblyException {\n /* Ably instance that will emit channel messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive channel messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.subscribe.single\" + System.currentTimeMillis();\n String messageName = \"name\";\n Message[] messages = new Message[] {\n new Message(messageName, \"Lorem ipsum dolor sit amet,\"),\n new Message(messageName, \"Consectetur adipiscing elit.\"),\n new Message(messageName, \"Pellentesque nulla lorem.\")\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n channel2.subscribe(messageName, listener);\n\n /* Start emitting channel with ably client 1 (emitter) */\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n channel1.publish(messages, null);\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n\n /* Wait until receiver client (ably2) observes {@code Message}\n * on subscribed channel (channel2) emitted by emitter client (ably1)\n */\n new Helpers.MessageWaiter(channel2).waitFor(messages.length + 2);\n\n /* Validate that,\n * - received same amount of emitted specific message\n * - received messages are the ones we emitted\n */\n assertThat(receivedMessageStack.size(), is(equalTo(messages.length)));\n\n Collections.sort(receivedMessageStack, messageComparator);\n for (int i = 0; i < messages.length; i++) {\n Message message = messages[i];\n if(Collections.binarySearch(receivedMessageStack, message, messageComparator) < 0) {\n fail(\"Unable to find expected message: \" + message);\n }\n }\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "@Override\r\n\tpublic void onChannelSuccess() {\n\t\t\r\n\t}", "public void registerReceiver(Channel.Receiver receiver);", "public void subscribeActual(Subscriber<? super T> subscriber) {\r\n PublishConnection publishConnection;\r\n while (true) {\r\n publishConnection = (PublishConnection) this.current.get();\r\n if (publishConnection != null) {\r\n break;\r\n }\r\n PublishConnection publishConnection2 = new PublishConnection(this.current, this.bufferSize);\r\n if (this.current.compareAndSet(publishConnection, publishConnection2)) {\r\n publishConnection = publishConnection2;\r\n break;\r\n }\r\n }\r\n InnerSubscription innerSubscription = new InnerSubscription(subscriber, publishConnection);\r\n subscriber.onSubscribe(innerSubscription);\r\n if (publishConnection.add(innerSubscription)) {\r\n if (innerSubscription.isCancelled()) {\r\n publishConnection.remove(innerSubscription);\r\n } else {\r\n publishConnection.drain();\r\n }\r\n return;\r\n }\r\n Throwable th = publishConnection.error;\r\n if (th != null) {\r\n subscriber.onError(th);\r\n } else {\r\n subscriber.onComplete();\r\n }\r\n }", "@Test\n public void subscribe_all() throws AblyException {\n /* Ably instance that will emit channel messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive channel messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.subscribe.all\" + System.currentTimeMillis();\n Message[] messages = new Message[]{\n new Message(\"name1\", \"Lorem ipsum dolor sit amet,\"),\n new Message(\"name2\", \"Consectetur adipiscing elit.\"),\n new Message(\"name3\", \"Pellentesque nulla lorem.\")\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n /* Create a listener that collects received messages */\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n\n channel2.subscribe(listener);\n\n /* Start emitting channel with ably client 1 (emitter) */\n channel1.publish(messages, null);\n\n /* Wait until receiver client (ably2) observes {@code }\n * is emitted from emitter client (ably1)\n */\n new Helpers.MessageWaiter(channel2).waitFor(messages.length);\n\n /* Validate that,\n * - we received every message that has been published\n */\n assertThat(receivedMessageStack.size(), is(equalTo(messages.length)));\n\n Collections.sort(receivedMessageStack, messageComparator);\n for (int i = 0; i < messages.length; i++) {\n Message message = messages[i];\n if(Collections.binarySearch(receivedMessageStack, message, messageComparator) < 0) {\n fail(\"Unable to find expected message: \" + message);\n }\n }\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "@Test\r\n\tpublic void aTestValidSubscribe() {\r\n\t\tbroker.subscribe(intSub);\r\n\t\tbroker.subscribe(unreadSub);\r\n\t\tbroker.subscribe(pIntSub);\r\n\t}", "static void confirmSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_Subscribe_Event_C_en.valueOf(), response, null );\n }", "public interface DataConnection {\n\n public void subscribe(NewsItemHandler handler);\n\n public void unsubscribe();\n}", "public void createSubscription(Subscription sub);", "public interface RedisPsubscribeHandler extends RedisPubSubHandler {\n\t\n\t/**\n\t * Invoked on psubscribe occur.\n\t * \n\t * @param pattern\n\t * @param no\n\t */\n\tvoid onPsubscribe(String pattern, int no);\n\t\n\t/**\n\t * Invoked on message published to the pattern.\n\t * \n\t * @param pattern\n\t * @param channel\n\t * @param message\n\t */\n\tvoid onMessage(String pattern, String channel, String message);\n}", "public interface WebsocketLocalOutputCallbackRegisterService {\n\n public void subscribe(int tenantId, String adaptorName, String topic, Session session);\n\n public void unsubscribe(int tenantId, String adaptorName, String topic, Session session);\n}", "void start(Channel channel, Object msg);", "@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}", "void iotvPlay(Channel channel, Schedule schedule);", "public void subscribe(String arg0, IView arg1) {\n\t\t\n\t}", "public Single<Portfolio> rxSell(int amount, JsonObject quote) { \n return new io.vertx.reactivex.core.impl.AsyncResultSingle<Portfolio>(handler -> {\n sell(amount, quote, handler);\n });\n }", "void startHelloSender(Channel channel);", "private void subscribeMqttTopic(String t){\n\n String topic = \"secureIoT\" + t;\n\n int qos = 1;\n try {\n IMqttToken subToken = mqttClient.subscribe(topic, qos);\n subToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n // subscription successful\n\n mqttClient.setCallback(new MqttCallback() {\n @Override\n public void connectionLost(Throwable cause) {\n Log.d(LOG_TAG, \"Connection Lost\");\n }\n\n @Override\n public void messageArrived(String topic, MqttMessage message) throws Exception {\n\n Log.d(LOG_TAG, message.toString());\n handleMessage(message);\n }\n\n @Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n Log.d(LOG_TAG, \"Delivery Complete\");\n }\n });\n\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // The subscription could not be performed, maybe the user was not\n // authorized to subscribe on the specified topic e.g. using wildcards\n }\n\n\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }", "public synchronized void subscribe(String channel, Listener<E> listener) {\n\t\tif (listeners.get(channel) == null) {\n\t\t\t// 5. Using the concurrently modifiable list to handle removal in\n\t\t\t// the event of unsubscription.\n\t\t\tlisteners.put(channel, new CopyOnWriteArrayList<Listener<E>>());\n\t\t}\n\t\tlisteners.get(channel).add(listener);\n\t}", "public final ISubscription<T> subscribe(final InstrumentSpecification spec, final TimeFrame timeFrame) {\n\t\tfinal Topic topic = new Topic(spec, timeFrame);\n\n\t\tsynchronized(activeSubscriptions) {\n\t\t\t// lookup backend subscription\n\t\t\tSubscription subscription = activeBackends.get(topic);\n\t\t\tif(subscription == null) {\n\t\t\t\tsubscription = createSubscription(spec, timeFrame);\n\t\t\t\tactiveBackends.put(topic, subscription);\n\t\t\t}\n\n\t\t\tfinal Subscription backend = subscription;\n\t\t\tbackend.refCount.getAndIncrement();\n\t\t\t\n\t\t\t// instantiate new delegate to backend \n\t\t\tSubscriptionDelegate out = new SubscriptionDelegate() {\n\n\t\t\t\tprivate final AtomicBoolean isActive = new AtomicBoolean(false);\n\t\t\t\tprivate final AtomicBoolean isCanceled = new AtomicBoolean(false);\n\n\t\t\t\tpublic void activate() throws SubscriptionException {\n\t\t\t\t\tif(isCanceled.get()) {\n\t\t\t\t\t\tthrow new IllegalStateException(\"subscription was canceled\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif(isActive.getAndSet(true)) {\n\t\t\t\t\t\treturn; // already active\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(IEventListener<T> l : listeners) {\n\t\t\t\t\t\tbackend.addEventListener(l);\n\t\t\t\t\t}\n\n\t\t\t\t\tlog.debug(\"activating subscription \" + this);\n\t\t\t\t\tbackend.activate();\n\t\t\t\t}\n\n\t\t\t\tpublic void cancel() throws SubscriptionException {\n\n\t\t\t\t\tif(isCanceled.getAndSet(true)) {\n\t\t\t\t\t\treturn; // ignore duplicate cancel requests\n\t\t\t\t\t}\n\n\t\t\t\t\tif(isActive.getAndSet(false)) {\n\t\t\t\t\t\tfor(IEventListener<T> l : listeners) {\n\t\t\t\t\t\t\tbackend.removeEventListener(l);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tlisteners.clear();\n\n\t\t\t\t\tsynchronized(activeSubscriptions) {\n\t\t\t\t\t\tactiveSubscriptions.remove(this);\n\n\t\t\t\t\t\tif(backend.refCount.decrementAndGet() == 0) {\n\t\t\t\t\t\t\tactiveBackends.remove(topic);\n\t\t\t\t\t\t\tlog.debug(\"canceling subscription \" + this);\n\t\t\t\t\t\t\tbackend.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpublic InstrumentSpecification getInstrumentSpecification() {\n\t\t\t\t\treturn spec;\n\t\t\t\t}\n\n\t\t\t\tpublic TimeFrame getTimeFrame() {\n\t\t\t\t\treturn timeFrame;\n\t\t\t\t}\n\n\t\t\t\tpublic String getVendorName() {\n\t\t\t\t\treturn vendorName;\n\t\t\t\t}\n\n\t\t\t\tpublic boolean isActive() {\n\t\t\t\t\treturn isActive.get();\n\t\t\t\t}\n\n\t\t\t\tprivate final Queue<IEventListener<T>> listeners = new ConcurrentLinkedQueue<IEventListener<T>>();\n\n\t\t\t\tpublic void addEventListener(IEventListener<T> listener) {\n\t\t\t\t\tlisteners.add(listener);\n\t\t\t\t\tif(isActive.get()) {\n\t\t\t\t\t\tbackend.addEventListener(listener);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpublic void removeEventListener(IEventListener<T> listener) {\n\t\t\t\t\tif(!listeners.remove(listener)) return;\n\n\t\t\t\t\tif(isActive.get()) {\n\t\t\t\t\t\tbackend.removeEventListener(listener);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\treturn \"Subscription(spec=\" + spec + \", timeFrame=\" + timeFrame + \")\";\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tactiveSubscriptions.add(out);\n\t\t\treturn out;\n\t\t}\n\t}", "@Override\n\t\tpublic void onSubscribe(Disposable d) {\n\t\t\tSystem.out.println(\"subscribe\");\n\t\t}", "@Override\n public boolean subscribe(Task data) {\n return true;\n }", "@Test\n public final void testAfterSend() throws Exception {\n ChannelController.getInstance().getLocalChannelId(channelId);\n\n final TestChannel channel = new TestChannel();\n\n channel.setChannelId(channelId);\n channel.setServerId(serverId);\n channel.setEnabled(true);\n\n channel.setPreProcessor(new TestPreProcessor());\n channel.setPostProcessor(new TestPostProcessor());\n\n final TestSourceConnector sourceConnector = (TestSourceConnector) TestUtils.createDefaultSourceConnector();\n sourceConnector.setChannel(channel);\n channel.setSourceConnector(sourceConnector);\n channel.setSourceFilterTransformer(TestUtils.createDefaultFilterTransformerExecutor());\n\n final ConnectorProperties connectorProperties = new TestDispatcherProperties();\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setQueueEnabled(true);\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setSendFirst(true);\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setRegenerateTemplate(true);\n\n final DestinationConnector destinationConnector = new TestDispatcher();\n TestUtils.initDefaultDestinationConnector(destinationConnector, connectorProperties);\n destinationConnector.setChannelId(channelId);\n ((TestDispatcher) destinationConnector).setReturnStatus(Status.SENT);\n\n class BlockingTestResponseTransformer extends TestResponseTransformer {\n public volatile boolean waiting = true;\n\n @Override\n public String doTransform(Response response, ConnectorMessage connectorMessage) throws DonkeyException, InterruptedException {\n while (waiting) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return super.doTransform(response, connectorMessage);\n }\n }\n final BlockingTestResponseTransformer responseTransformer = new BlockingTestResponseTransformer();\n \n destinationConnector.setResponseTransformerExecutor(TestUtils.createDefaultResponseTransformerExecutor());\n destinationConnector.getResponseTransformerExecutor().setResponseTransformer(responseTransformer);\n\n DestinationChain chain = new DestinationChain();\n chain.setChannelId(channelId);\n chain.setMetaDataReplacer(sourceConnector.getMetaDataReplacer());\n chain.setMetaDataColumns(channel.getMetaDataColumns());\n chain.addDestination(1, TestUtils.createDefaultFilterTransformerExecutor(), destinationConnector);\n channel.addDestinationChain(chain);\n\n if (ChannelController.getInstance().channelExists(channelId)) {\n ChannelController.getInstance().deleteAllMessages(channelId);\n }\n \n channel.deploy();\n channel.start();\n\n class TempClass {\n public long messageId;\n }\n final TempClass tempClass = new TempClass();\n\n for (int i = 1; i <= TEST_SIZE; i++) {\n responseTransformer.waiting = true;\n\n Thread thread = new Thread() {\n @Override\n public void run() {\n ConnectorMessage sourceMessage = TestUtils.createAndStoreNewMessage(new RawMessage(testMessage), channel.getChannelId(), channel.getServerId()).getConnectorMessages().get(0);\n tempClass.messageId = sourceMessage.getMessageId();\n\n try {\n channel.process(sourceMessage, false);\n } catch (InterruptedException e) {\n throw new AssertionError(e);\n }\n }\n };\n thread.start();\n\n Thread.sleep(100);\n // Assert that the response content was stored\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n \n try {\n connection = TestUtils.getConnection();\n long localChannelId = ChannelController.getInstance().getLocalChannelId(channelId);\n statement = connection.prepareStatement(\"SELECT * FROM d_mc\" + localChannelId + \" WHERE message_id = ? AND metadata_id = ? AND content_type = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setInt(3, ContentType.SENT.getContentTypeCode());\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n \n // Assert that the message status was updated to PENDING\n statement = connection.prepareStatement(\"SELECT * FROM d_mm\" + localChannelId + \" WHERE message_id = ? AND id = ? AND status = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setString(3, String.valueOf(Status.PENDING.getStatusCode()));\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n \n responseTransformer.waiting = false;\n thread.join();\n \n // Assert that the response transformer was run\n assertTrue(responseTransformer.isTransformed());\n \n // Assert that the message status was updated to SENT\n statement = connection.prepareStatement(\"SELECT * FROM d_mm\" + localChannelId + \" WHERE message_id = ? AND id = ? AND status = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setString(3, String.valueOf(Status.SENT.getStatusCode()));\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n } finally {\n TestUtils.close(result);\n TestUtils.close(statement);\n TestUtils.close(connection);\n }\n }\n\n channel.stop();\n channel.undeploy();\n //ChannelController.getInstance().removeChannel(channel.getChannelId());\n }", "public void subscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), Boolean.TRUE, new UnsignedInteger(0))).get();\n LOG.info(\"Subscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't subscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "@Override\r\n public void onCompleted() {\n Log.i(TAG, \"subscribed to buyable items\");\r\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n RemoteSensor remoteSensor = RemoteSensorManager.getInstance().addSensorChannel(ctx);\n QueuerManager.getInstance().addClient(remoteSensor);\n// System.out.println(RemoteSensorManager.getInstance().getRemoteSensorsNamesList().size());\n }", "@Inject\n public ChatMessageEventsSubscriber(ChannelService channelService) {\n channelService.createdChannelTopic()\n .subscribe()\n .atLeastOnce(Flow.fromFunction((ChannelEvent channelEvent) -> {\n logger.info(\"CHAT MESSAGE EVENT: new Channel created \" + channelEvent);\n return Done.getInstance();\n }));\n\n channelService.updatedChannelTopic()\n .subscribe()\n .atLeastOnce(Flow.fromFunction((ChannelEvent event) -> {\n logger.info(\"CHAT MESSAGE EVENT: Channel updated \" + event);\n return Done.getInstance();\n })\n );\n }", "void playFavoriteStation(String channelName);", "private void sendFirebaseLoginSubscribeSuccess() {\n String SUBSCRIPTION_SUBSCRIBED = \"subscribed\";\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_STATUS_KEY, SUBSCRIPTION_SUBSCRIBED);\n mFireBaseAnalytics.setUserProperty(LOGIN_STATUS_KEY, LOGIN_STATUS_LOGGED_IN);\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_PLAN_ID, getActiveSubscriptionId());\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_PLAN_NAME, getActiveSubscriptionPlanName());\n }", "@Test\n public void channelTest() {\n // TODO: test channel\n }", "public interface SubscriptionListener {\n public void onReceivedMessage(String message);\n}", "public interface MovieSubscription {\n\n void subscribe(double amount);\n}", "private void uponInConnectionUp(InConnectionUp event, int channelId) {\n }", "boolean hasSubscribe();", "@Override\n\tpublic void onPSubscribe(String arg0, int arg1) {\n\t\t\n\t}", "public void acceptNewChannel(Channel channel)\n {\n ProviderSession provSession = new ProviderSession(_xmlMsgData, _itemEncoder);\n ++_connectionCount;\n provSession.init(_channelHandler.addChannel(channel, provSession, true));\n }", "@Test\n public void subscribe_multiple() throws AblyException {\n /* Ably instance that will emit channel messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive channel messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.subscribe.multiple\" + System.currentTimeMillis();\n Message[] messages = new Message[] {\n new Message(\"name1\", \"Lorem ipsum dolor sit amet,\"),\n new Message(\"name2\", \"Consectetur adipiscing elit.\"),\n new Message(\"name3\", \"Pellentesque nulla lorem.\")\n };\n\n String[] messageNames = new String[] {\n messages[0].name,\n messages[1].name,\n messages[2].name\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n /* Create a listener that collect received messages */\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n channel2.subscribe(messageNames, listener);\n\n /* Start emitting channel with ably client 1 (emitter) */\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n channel1.publish(messages, null);\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n\n /* Wait until receiver client (ably2) observes {@code Message}\n * on subscribed channel (channel2) emitted by emitter client (ably1)\n */\n new Helpers.MessageWaiter(channel2).waitFor(messages.length + 2);\n\n /* Validate that,\n * - we received specific messages\n */\n assertThat(receivedMessageStack.size(), is(equalTo(messages.length)));\n\n Collections.sort(receivedMessageStack, messageComparator);\n for (int i = 0; i < messages.length; i++) {\n Message message = messages[i];\n if(Collections.binarySearch(receivedMessageStack, message, messageComparator) < 0) {\n fail(\"Unable to find expected message: \" + message);\n }\n }\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "public void subscribe(Player spectator) {\r\n\t\tspectators.add(spectator);\r\n\t}", "EventChannel apply(Context context);", "public static void main(String[] args) throws Exception {\n String server = \"irc.chat.twitch.tv\";\r\n String nick = \"hackpolyplaystwitch\";\r\n String login = \"hackpolyplaystwitch\";\r\n // The channel which the bot will join.\r\n String channel = \"#hackpolyplaystwitch\";\r\n\r\n Socket socket = new Socket(server, 6667);\r\n BufferedWriter writer = new BufferedWriter(\r\n new OutputStreamWriter(socket.getOutputStream( )));\r\n BufferedReader reader = new BufferedReader(\r\n new InputStreamReader(socket.getInputStream( )));\r\n // Join the channel.\r\n\r\n // Create pubsub object\r\n JedisPubSub pubsub = new JedisPubSub() {\r\n @Override\r\n // Fired off when receiving a message from redis\r\n public void onMessage(String redisChannel, String message) {\r\n System.out.println(\"Received Message from Redis Channel: \" + redisChannel + \" - \" + message);\r\n String[] botMsg = message.split(\":\");\r\n if (botMsg[0].equals(\"say\")){\r\n String msg = \"PRIVMSG \" + channel + \" :\" + botMsg[1] + \"\\r\\n\";\r\n System.out.println(msg);\r\n try {\r\n writer.write(msg);\r\n writer.flush();\r\n } catch(IOException ioe){\r\n System.out.println(\"We got exception\");\r\n //Handle exception here, most of the time you will just log it.\r\n }\r\n } else if (botMsg[0].equals(\"whisper\")){\r\n String msg = \"PRIVMSG \" + channel + \" :/w \" + botMsg[1] + \" \" + botMsg[2] + \"\\r\\n\";\r\n System.out.println(msg);\r\n try {\r\n writer.write(msg);\r\n writer.flush();\r\n } catch(IOException ioe){\r\n System.out.println(\"We got exception\");\r\n //Handle exception here, most of the time you will just log it.\r\n }\r\n }\r\n }\r\n };\r\n // Run new thread to connect to redis server\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n // log(\"Connecting\");\r\n Jedis jedis = new Jedis(\"redis://:beacon@lotus.snax.io:6379/0\");\r\n // log(\"subscribing\");\r\n jedis.subscribe(pubsub, \"game\");\r\n // log(\"subscribe returned, closing down\");\r\n jedis.quit();\r\n } catch (Exception e) {\r\n System.out.println(\"Exception thread\");\r\n // log(\">>> OH NOES Sub - \" + e.getMessage());\r\n // e.printStackTrace();\r\n }\r\n }\r\n }, \"game\").start();\r\n // Connect directly to the IRC server.\r\n System.out.println(\"Reading from server\");\r\n // Log on to the server.\r\n writer.write(\"PASS oauth:os78xr7aqmuzyfxiskm9wql2armqsh\\r\\n\");\r\n writer.write(\"NICK \" + nick + \"\\r\\n\");\r\n writer.write(\"CAP REQ :twitch.tv/commands\\r\\n\");\r\n // writer.write(\"USER \" + login + \" 8 * : Java IRC Hacks Bot\\r\\n\");\r\n writer.flush( );\r\n writer.write(\"JOIN \" + channel + \"\\r\\n\");\r\n writer.flush( );\r\n // Read lines from the server until it tells us we have connected.\r\n String line = line = reader.readLine();\r\n System.out.println(\"Waiting for response now\");\r\n while ((line = reader.readLine( )) != null) {\r\n System.out.println(line);\r\n break;\r\n // if (line.indexOf(\"004\") >= 0) {\r\n // // We are now logged in.\r\n // break;\r\n // }\r\n // else if (line.indexOf(\"433\") >= 0) {\r\n // System.out.println(\"Nickname is already in use.\");\r\n // return;\r\n // }\r\n }\r\n System.out.println(\"We are done\");\r\n // Join the channel.\r\n //writer.write(\"JOIN \" + channel + \"\\r\\n\");\r\n //writer.flush( );\r\n // Keep reading lines from the server.\r\n while ((line = reader.readLine( )) != null) {\r\n if (line.toLowerCase( ).startsWith(\"ping \")) {\r\n // We must respond to PINGs to avoid being disconnected.\r\n writer.write(\"PONG tmi.twitch.tv\\r\\n\");\r\n // writer.write(\"PRIVMSG \" + channel + \" :I got pinged!\\r\\n\");\r\n writer.flush();\r\n }\r\n else {\r\n // Print the raw line received by the bot.\r\n //TODO DM\r\n //writer.write(\"PRIVMSG #2ggaming :/w vikas3321 aaaaaaaaaaaaaaa\\r\\n\");\r\n //writer.flush();\r\n System.out.println(line);\r\n String[] msg = line.split(\":\",3);\r\n String[] user = msg[1].split(\"!\", 2);\r\n try{\r\n System.out.println(\"USER: \" + user[0]);\r\n System.out.println(\"MSG: \" + msg[2]);\r\n if (msg[2].charAt(0) == '!'){\r\n Commands.checkCommands(msg[2], user[0]);\r\n }\r\n } catch (ArrayIndexOutOfBoundsException e){\r\n }\r\n }\r\n }\r\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.fireChannelActive();\n\n ctx.executor().scheduleAtFixedRate(new Runnable() {\n @Override\n public void run() {\n log.info(\"send heart beat\");\n HeartBeat heartBeat = new HeartBeat();\n ctx.writeAndFlush(heartBeat);\n }\n }, 0, 5, TimeUnit.SECONDS);\n }", "public interface Subscribe<R> {\n\n\tvoid result(R result);\n}", "messages.Facademessages.Subscribe getSubscribe();", "public interface TimeDriven {\n TradeSignal onSecondTick();\n}", "public void onTrade(Trade event) {\n tradeCount++;\n }", "public interface Subscription {\n /**\n * Calling this will send the event to the subscribed service\n * @param event the event to transmit to the subscribed service\n */\n boolean onEvent(Event event);\n\n /**\n * Returns a stream of all subscribeRequests that are transmitted by the subbed service\n * @return a stream of subscribeRequests transmitted by subbed service\n */\n Observable<SubscribeRequest> getSubscribeRequestStream();\n\n /**\n * This completable will complete when the subscription is terminated for some reason (most likely a connection termination)\n * @return a completable that will complete when the subscription is terminated\n */\n Completable getCompletable();\n}", "public interface ChannelManager {\n int createChannel(String channel, long ttlInSeconds);\n int publishToChannel(String channel, String msg);\n}", "public Event subscribe(Address resource, String event, int expires, Content body);", "private void subscribeSent(AsyncResult<Integer> result, LinkedHashMap<String, RequestedQoS> topics) {\n if (result.failed() || result.result() == null) {\n // failed\n for (String topic : topics.keySet()) {\n notifySubscriptionState(topic, SubscriptionState.UNSUBSCRIBED, null);\n }\n } else {\n // record request\n for (String topic : topics.keySet()) {\n notifySubscriptionState(topic, SubscriptionState.SUBSCRIBING, null);\n }\n this.pendingSubscribes.put(result.result(), topics);\n }\n }", "public interface Subscription {\n void cancel();\n\n void request(long j);\n}", "@Override\n public void onPSubscribe(String s, int i) {\n }", "Flow.Subscriber<T> subscriber();", "EventChannelSource source();", "public void subscribeTransactions(lnrpc.Rpc.GetTransactionsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.Transaction> responseObserver) {\n asyncServerStreamingCall(\n getChannel().newCall(getSubscribeTransactionsMethod(), getCallOptions()), request, responseObserver);\n }", "void registerOrderConsumer(OrderConsumer orderConsumer);", "@Override\n public void subscribe(ISubscriber subscriber) {\n subscribers.add(subscriber);\n }", "public void putChannel(NotificationsChannel notiChannel) throws Exception;", "public void subscribe( Observer< S, Info > obs );", "protected void sequence_Channel(ISerializationContext context, Channel semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CHANNEL__EXP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CHANNEL__EXP));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getChannelAccess().getExpExpressionParserRuleCall_0(), semanticObject.getExp());\r\n\t\tfeeder.finish();\r\n\t}" ]
[ "0.637545", "0.62522274", "0.6106475", "0.60488546", "0.60337645", "0.59899217", "0.58839774", "0.58789265", "0.58458006", "0.5751657", "0.5721923", "0.5705675", "0.56942856", "0.5672796", "0.56701416", "0.56159705", "0.55830973", "0.55743253", "0.5498347", "0.54739034", "0.5460184", "0.54372495", "0.5433174", "0.54199594", "0.54101545", "0.5407418", "0.5373275", "0.5365669", "0.53414637", "0.5278759", "0.527096", "0.5244948", "0.52428126", "0.52308625", "0.5225356", "0.5207954", "0.5182015", "0.51791203", "0.5177518", "0.5176229", "0.51740277", "0.516341", "0.51627433", "0.51510066", "0.5146864", "0.513957", "0.51379216", "0.5131388", "0.5120199", "0.511971", "0.5118978", "0.5116775", "0.51166856", "0.51151186", "0.5110628", "0.51009774", "0.5098081", "0.50849545", "0.5079805", "0.50690967", "0.50685173", "0.506692", "0.5060498", "0.50556237", "0.5050881", "0.50447184", "0.5036283", "0.5031546", "0.5031139", "0.5025904", "0.49974707", "0.49944076", "0.49918148", "0.49908432", "0.49868387", "0.49765113", "0.49760133", "0.4972244", "0.49717915", "0.49571374", "0.49562654", "0.49484888", "0.49185243", "0.4917217", "0.4916361", "0.4916343", "0.49114275", "0.49068904", "0.4905746", "0.48991394", "0.48960495", "0.48923558", "0.48901576", "0.4883882", "0.48775166", "0.48761135", "0.4874581", "0.48682505", "0.48630247", "0.48603266" ]
0.67206943
0
Unsubscribe a executed trades channel
public void unsubscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) { final int channel = bitfinexApiBroker.getChannelForSymbol(tradeSymbol); if(channel == -1) { throw new IllegalArgumentException("Unknown symbol: " + tradeSymbol); } final UnsubscribeChannelCommand command = new UnsubscribeChannelCommand(channel); bitfinexApiBroker.sendCommand(command); bitfinexApiBroker.removeChannelForSymbol(tradeSymbol); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onUnsubscribe(String channel, int subscribedChannels) {\n super.onUnsubscribe(channel, subscribedChannels);\n System.out.println(\"Channel unsubscribed at : \" + channel);\n }", "public void unsubscribe(ClientAddress address, ChannelAddress channelAddress);", "@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }", "void unsubscribe(){}", "void unsubscribe(Player player, boolean fast);", "void unsubscribe();", "void unsubscribe(Player player);", "void unsubscribe(String id);", "private void doUnsubscribe(IoSession session, MessageProtocol request) throws Exception {\n \t\n \tdoExit(session);\n }", "public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }", "void unsubscribe(Subscription subscription);", "void unsubscribeAll();", "private void unsubscribe() {\n subscriber=null;\n }", "@Override\n public void onUnsubscribe(String s, int i) {\n }", "private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }", "public void onUnsubscribe() {\n\n }", "private void doUnsubscribe(JSONArray args, CallbackContext callbackContext,\n\t\t\tMqttAndroidClient client) throws JSONException {\n\t\tString topicFilter = args.getString(1);\n\t\tfinal JSONObject invocationContext = args.optJSONObject(2);\n\t\ttry {\n\t\t\tclient.unsubscribe(topicFilter, null,\n\t\t\t\t\tnew GeneralCallback(invocationContext, callbackContext));\n\t\t\n\t\t} catch (MqttException exception) {\n\t\t\tcallbackContext.error(createError(exception, invocationContext));\n\t\t}\n\t}", "@Test\n public void subscribe_unsubscribe() {\n String channelName = \"subscribe_unsubscribe_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n /* subscribe */\n MessageListener testListener = new MessageListener() {\n @Override\n public void onMessage(Message message) {\n }};\n channel.subscribe(\"test_event\", testListener);\n /* unsubscribe */\n channel.unsubscribe(\"test_event\", testListener);\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "@Override\n\tpublic void unsubscribe(Strategy strategy) {\n\t\t\n\t}", "@Override\n\tpublic void onUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "public void Unsubscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { //unsubscribe antoistoixi gia ena buslineid\n subscribedLists.remove(busLineID);\n Client client = subscribedThreads.get(busLineID);\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 6;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n Socket socket = subscribedSockets.get(busLineID);\n try {\n socket.close();\n } catch (IOException e) {\n }\n }", "public void unsubscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), null, null)).get();\n LOG.info(\"Unsubscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't unsubscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "public void unsubscribe(String name, String clientId) throws RemoteException;", "@Test\n public void unsubscribe_all() throws AblyException {\n /* Ably instance that will emit messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.unsubscribe.all\" + System.currentTimeMillis();\n Message[] messages = new Message[] {\n new Message(\"name1\", \"Lorem ipsum dolor sit amet\"),\n new Message(\"name2\", \"Consectetur adipiscing elit.\"),\n new Message(\"name3\", \"Pellentesque nulla lorem\"),\n new Message(\"name4\", \"Efficitur ac consequat a, commodo ut orci.\"),\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n /* Create a listener that collect received messages */\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n\n /* Subscribe using various alternatives of {@code Channel#subscribe()} */\n channel2.subscribe(listener);\n channel2.subscribe(messages[0].name, listener);\n channel2.subscribe(new String[] {messages[1].name, messages[2].name}, listener);\n\n /* Unsubscribe */\n channel2.unsubscribe();\n\n /* Start emitting channel with ably client 1 (emitter) */\n Helpers.CompletionWaiter waiter = new Helpers.CompletionWaiter();\n channel1.publish(messages, waiter);\n waiter.waitFor();\n\n /* Validate that we didn't received anything\n */\n assertThat(receivedMessageStack, Matchers.is(Matchers.emptyCollectionOf(Message.class)));\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "public Thread unsubscribeWithThread(Integer busLineID, ConfigurationActivity configurationActivity) { // subscribe se ena buslineID\n Thread t = new UnsubscribeThread(busLineID, configurationActivity);\n t.start();\n return t;\n }", "@Override\n public void onPUnsubscribe(String s, int i) {\n }", "public void unsubscribe(Player spectator) {\r\n\t\tspectators.remove(spectator);\r\n\t}", "public void clientWasRemoved(ChannelId channelId);", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "@Teardown\n public void tearDown() {\n if (channel != null) {\n channel.shutdownNow();\n channel = null;\n }\n }", "@Override\n public void unsubscribe(Entity e) {\n unsub_queue.add(e);\n }", "public void destroyDown(Thread thread, final AbstractChannelHandlerContext abstractChannelHandlerContext, boolean z) {\n AbstractChannelHandlerContext abstractChannelHandlerContext2 = this.head;\n while (abstractChannelHandlerContext != abstractChannelHandlerContext2) {\n EventExecutor executor = abstractChannelHandlerContext.executor();\n if (z || executor.inEventLoop(thread)) {\n synchronized (this) {\n remove0(abstractChannelHandlerContext);\n }\n callHandlerRemoved0(abstractChannelHandlerContext);\n abstractChannelHandlerContext = abstractChannelHandlerContext.prev;\n z = false;\n } else {\n executor.execute(new Runnable() {\n public void run() {\n DefaultChannelPipeline.this.destroyDown(Thread.currentThread(), abstractChannelHandlerContext, true);\n }\n });\n return;\n }\n }\n }", "private void unsubscribeHandler(MqttUnsubscribeMessage unsubscribe) {\n\n final int messageId = unsubscribe.messageId();\n LOG.info(\"UNSUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_UNSUBSCRIBE\n\n AmqpUnsubscribeMessage amqpUnsubscribeMessage =\n new AmqpUnsubscribeMessage(this.mqttEndpoint.clientIdentifier(), unsubscribe.topics());\n\n this.ssEndpoint.sendUnsubscribe(amqpUnsubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n this.mqttEndpoint.unsubscribeAcknowledge(messageId);\n\n // removing topics from local collection\n unsubscribe.topics().stream().forEach(topic -> {\n\n this.grantedQoSLevels.remove(topic);\n });\n\n LOG.info(\"UNSUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "@Override\n public void unsubscribe(ISubscriber subscriber) {\n subscribers.remove(subscriber);\n }", "@Override\n\t\t\tpublic void onPUnsubscribe(String pattern, int subscribedChannels) {\n\t\t\t\tlog.debug(\"====== onPUnsubscribe(): pattern = {}, subscribedChannels = {}\", pattern, subscribedChannels);\n\t\t\t}", "void unsubscribe(LogListener listener);", "@Override\n\tpublic void onPUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "private void stop() {\n\t\tif (null == this.sourceRunner || null == this.channel) {\n\t\t\treturn;\n\t\t}\n\t\tthis.sourceRunner.stop();\n\t\tthis.channel.stop();\n\t\tthis.sinkCounter.stop();\n\t}", "default void unsubscribe()\n throws TopicReceiverException\n {\n try {\n close();\n } catch ( Exception e ) {\n throw new TopicReceiverException(getTopic(), e);\n }\n }", "private void UserDisconnectChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Quit \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}", "public void stopSending() {\n shouldSend = false;\n connection.getChannel()\n .getApi()\n .getThreadPool()\n .removeAndShutdownSingleThreadExecutorService(threadName);\n }", "@Override\r\n public void stop() {\r\n\r\n _log.info(\"Start stoping the HornetQ connection channel\");\r\n for (String queue : queues) {\r\n Channel channel = channels.get(queue);\r\n try {\r\n Channels.fireStop(channel);\r\n } catch (HandlerException e) {\r\n _log.error(\"failed stop the channel queue [\" + queue + \"]\", e);\r\n }\r\n }\r\n _log.info(\"Finish stop the HornetQ connection channel\");\r\n\r\n }", "public void unsubscribe(String subscriptionId) {\n \n \t\tWebTarget wt = subscriptionsTarget.path(subscriptionId);\n \t\t\n \t\tResponse response = wt.request()\n \t\t\t .header(\"Authorization\", \"Bearer \" + playPlatformApiToken)\n \t\t\t .buildDelete()\n \t\t\t .invoke();\n \t\t\n \t\tlogger.debug(\"Unsubscribe response status : \"+response.getStatus());\n\t\tif (response.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL) {\n \t\t\tlogger.error(\"Unsubscription failed. HTTP Status Code: \"+response.getStatus());\n \t\t}\n\t\telse {\n \t\t\tsubscriptions.remove(subscriptionId);\n \t\t}\n \t\tresponse.close();\n \t}", "public void stop()\n throws Exception\n {\n for(int i = 0; i < this.monitoredObjectsCache.size(); i++) {\n \n ObjectName target = null;\n \n try {\n target = (ObjectName) this.monitoredObjectsCache.get(i);\n \n this.server.removeNotificationListener(target, listener);\n \n if (log.isDebugEnabled())\n log.debug(\"Unsubscribed from \\\"\" + target + \"\\\"\");\n }\n catch(Exception e) {\n log.error(\"Unsubscribing from \\\"\" + target + \"\\\"\", e);\n }\n }\n }", "private void genericUnsubscribeFactory(String request, BandInfo band) {\n if (bandStreams.containsKey(band) && bandStreams.get(band).contains(request)) {\n if (bandStreams.get(band).size() == 1) {\n // Only stream open for this band, remove from bandStreams\n bandStreams.remove(band);\n } else {\n // Other streams open, remove from list\n bandStreams.get(band).remove(request);\n }\n\n // Remove stream from preferences\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n Set<String> streams = prefs.getStringSet(Preferences.getDeviceKey(band.getMacAddress()), new HashSet<String>());\n if (streams.contains(request)) {\n Log.v(TAG, \"Removing stream \" + request);\n streams.remove(request);\n Log.v(TAG, \"Streams after removing \" + request + \": \" + streams);\n prefs.edit().putStringSet(Preferences.getDeviceKey(band.getMacAddress()), streams).apply();\n }\n\n // Unsubscribe from the appropriate stream\n switch (request) {\n case ACCEL_REQ_EXTRA:\n if (accManager != null)\n accManager.unSubscribe(band);\n break;\n case ALT_REQ_EXTRA:\n if (altManager != null)\n altManager.unSubscribe(band);\n break;\n case AMBIENT_REQ_EXTRA:\n if (ambManager != null)\n ambManager.unSubscribe(band);\n break;\n case BAROMETER_REQ_EXTRA:\n if (barometerManager != null)\n barometerManager.unSubscribe(band);\n break;\n case CALORIES_REQ_EXTRA:\n if (calManager != null)\n calManager.unSubscribe(band);\n break;\n case CONTACT_REQ_EXTRA:\n if (conManager != null)\n conManager.unSubscribe(band);\n break;\n case DISTANCE_REQ_EXTRA:\n if (distManager != null)\n distManager.unSubscribe(band);\n break;\n case GSR_REQ_EXTRA:\n if (gsrManager != null)\n gsrManager.unSubscribe(band);\n break;\n case GYRO_REQ_EXTRA:\n if (gyroManager != null)\n gyroManager.unSubscribe(band);\n break;\n case HEART_RATE_REQ_EXTRA:\n if (heartManager != null)\n heartManager.unSubscribe(band);\n break;\n case PEDOMETER_REQ_EXTRA:\n if (pedoManager != null)\n pedoManager.unSubscribe(band);\n break;\n case SKIN_TEMP_REQ_EXTRA:\n if (skinTempManager != null)\n skinTempManager.unSubscribe(band);\n break;\n case UV_REQ_EXTRA:\n if (uvManager != null)\n uvManager.unSubscribe(band);\n break;\n default:\n Log.e(TAG, \"Unknown subscription requested \" + request);\n }\n } else {\n if (!bandStreams.containsKey(band)) {\n Log.e(TAG, \"Error: unsubscribe request for a band that isnt stored\");\n Log.v(TAG, \"Band: \" + band.toString());\n for (BandInfo info :\n bandStreams.keySet()) {\n Log.v(TAG, \"Key: \" + info.toString());\n }\n } else {\n if (!bandStreams.get(band).contains(request)) {\n Log.e(TAG, \"Error: unsubscribe request for unregistered request\");\n }\n }\n }\n }", "void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);", "@Override\n public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {\n CompletableFuture<Void> future = new CompletableFuture<>();\n try {\n if (dispatcher.canUnsubscribe(consumer)) {\n consumer.close();\n return delete();\n }\n future.completeExceptionally(\n new ServerMetadataException(\"Unconnected or shared consumer attempting to unsubscribe\"));\n } catch (BrokerServiceException e) {\n log.warn(\"Error removing consumer {}\", consumer);\n future.completeExceptionally(e);\n }\n return future;\n }", "public void unsubscribeSwitchState() {\n\t\t\n\t}", "@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n log.error(\"Input Stream {} : Channel Disconnected - Stream Engine RTS process!\", name);\n channelAtomicReference.set(null);\n }", "@SneakyThrows\n private void unsubscribe(String name) {\n call(\"unsubscribe\", new Subscription(name)).toFuture().get(UNSUBSCRIBE_DELAY_S, TimeUnit.SECONDS);\n }", "public void leaveChannel() {\n mRtcEngine.leaveChannel();\n appointment.removeOfCall(new DatabaseUser(MainUser.getMainUser().getId()));\n }", "public void shutdown() {\n Log.info(Log.FAC_NETMANAGER, formatMessage(\"Shutdown requested\"));\n _run = false;\n if (_periodicTimer != null) _periodicTimer.cancel();\n if (_thread != null) _thread.interrupt();\n if (null != _channel) {\n try {\n setTap(null);\n } catch (IOException io) {\n }\n try {\n _channel.close();\n } catch (IOException io) {\n }\n }\n }", "@Override\n public void disconnect(Channel channel)\n {\n Log.e(\"Dudu_SDK\",\n \"disconnect \" + ((user == null) ? \"true\" : user.getUserid()));\n close(false);\n isConnected = false;\n reconnect();\n Log.e(\"Dudu_SDK\",\n \"connectCallBack==null \" + (connectCallBack == null));\n if (connectCallBack != null)\n connectCallBack.disconnect(channel);\n }", "void wipeSubscriptions(String sessionID);", "void delete(UnsubscribeRequest request);", "private void closeAndCancel() {\n try {\n stats.removeKey(key);\n key.cancel();\n channel.close();\n } catch (IOException e) {\n System.err.println(\"Error while trying to close Task channel\");\n }\n }", "public void removeOrDisconnectClient(String mqttClientChannelID, String unSubscribedTopic, String username,\n SubscriptionEvent action) throws MQTTException {\n\n log.info(\"Disconnecting channel for clientID: \" + mqttClientChannelID);\n\n Collection<MQTTSubscription> topicSubscriptionList;\n MQTTopics mqtTopics = topicSubscriptions.get(mqttClientChannelID);\n\n if (null != mqtTopics) {\n if (null == unSubscribedTopic) {\n //this means we need to remove all subscriptions relevant for the channel\n topicSubscriptionList = mqtTopics.getAllSubscriptionsForChannel();\n } else {\n topicSubscriptionList = new ArrayList<>();\n topicSubscriptionList.add(mqtTopics.getSubscription(unSubscribedTopic));\n }\n\n for (MQTTSubscription subscription : topicSubscriptionList) {\n //Will get the topic name bound for subscription\n String topic = subscription.getTopicName();\n //Will remove the subscriber off the list\n mqtTopics.removeSubscriber(topic);\n String subscriberChannelID = subscription.getSubscriberChannelID();\n UUID subscriberChannel = subscription.getSubscriptionChannel();\n boolean isCleanSession = subscription.isCleanSession();\n QOSLevel qos = subscription.getQOSLevel();\n //The corresponding subscription created cluster wide will be topic name and the local channel id\n //Will remove the subscriber cluster wide\n try {\n //Will indicate the disconnection of the topic\n if (action == SubscriptionEvent.DISCONNECT && MQTTUtils.isDurable(isCleanSession, qos.getValue())) {\n connector.disconnectSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n } else {\n //If un-subscribed we need to remove the subscription off\n connector.removeSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n }\n if (log.isDebugEnabled()) {\n final String message = \"Subscription with cluster id \" + subscriberChannelID + \" disconnected \" +\n \"from topic \" + topic;\n log.debug(message);\n }\n\n } catch (MQTTException ex) {\n //Should re state the connection of the subscriber back to the map\n mqtTopics.addSubscriber(unSubscribedTopic, subscription);\n final String error = \"Error occurred while removing the subscription \" + mqttClientChannelID;\n log.error(error, ex);\n throw ex;\n }\n }\n\n //Finally will check if there're any relevant subscriptions for the topic\n //If there arn't we could remove the entry\n if(mqtTopics.getAllSubscriptionsForChannel().isEmpty()){\n topicSubscriptions.remove(mqttClientChannelID);\n }\n } else {\n //If the connection is publisher based\n UUID publisherID = connector.removePublisher(mqttClientChannelID);\n if (null == publisherID) {\n log.warn(\"A subscriber or a publisher with Connection with id \" + mqttClientChannelID + \" cannot be \" +\n \"found to disconnect.\");\n }\n }\n }", "public void unsubscribe(String vbucketName, Reconfigurable rec) {\n BucketMonitor monitor = this.monitors.get(vbucketName);\n if (monitor != null) {\n monitor.deleteObserver(new ReconfigurableObserver(rec));\n }\n }", "private void leaveChannel() {\n // Leave the current channel\n mRtcEngine.leaveChannel();\n }", "void unsetCurrentrun();", "void onStop() {\n if (subscription != null) {\n subscription.unsubscribe();\n subscription = null;\n }\n }", "private void unsubscribeSent(AsyncResult<Integer> result, List<String> topics) {\n if (result.failed() || result.result() == null) {\n closeConnection(String.format(\"Failed to send unsubscribe request: %s\", result.cause()));\n } else {\n this.pendingUnsubscribes.put(result.result(), topics);\n }\n }", "public void unsubscribe(String topic, String inboundPortUri) {\n\n\t}", "public abstract void unsubscribeImpl(String str, Resolver<Void> resolver);", "private void unsubscribeAll(MicroService m){\n\t\tConcurrentLinkedQueue<Class> queue=microToEvent.get(m);\n\t\tif(queue!=null)\n\t\tfor(Class cla:queue){\n\t\t\tif(Broadcast.class.isAssignableFrom(cla)){\t\t// checks if broadcast is super/interface of cla (meaning cla implements/extends broadcast)\n\t\t\t\t\tbroadcastToMicroServices.get(cla).remove(m);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\teventToMicroHandlers.get(cla).remove(m);\n\t\t\t}\n\t\t}\n\t}", "public void stopSending ();", "public void destroy() {\n leaveChannel();\n mRtcEngine.removeHandler(handler);\n if (eventHandler != null) {\n mRtcEngine.removeHandler(eventHandler);\n }\n RtcEngine.destroy();\n }", "public void unsubscribeAll() {\n \t\tint failCount = 0;\n \t\t// Make a copy of the collection because it will be modified in #unsubscribe()\n \t\tSet<String> removal = new HashSet<String>(subscriptions.keySet());\n \t\tfor (String subscriptionID : removal) {\n \t\t\tunsubscribe(subscriptionID);\n \t\t}\n \t\tif (failCount > 0) {\n \t\t\tlogger.warn(\n \t\t\t\t\t\"Problem while unsubcribing from all subscriptions: \"\n \t\t\t\t\t\t\t+ failCount\n \t\t\t\t\t\t\t+ \" unsubscriptions failed at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t} else {\n \t\t\tlogger.info(\n \t\t\t\t\t\"Successfully unsubcribed from all subscriptions at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t}\n \t}", "public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "public void deselect() {\n\t\tmSecureChannel.resetSecurity();\r\n\t}", "public void disconnect() {\n if (connectCount.decrementAndGet() == 0) {\n LOG.trace(\"Disconnecting JGroupsraft Channel {}\", getEndpointUri());\n resolvedRaftHandle.channel().disconnect();\n }\n }", "public void stop(boolean unsubscribe) {\n if (unsubscribe) {\n stopMessageReceiver();\n\n try {\n if (consumer != null)\n consumer.close();\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"JMS consumer for JMS destination '\"\n + destinationJndiName + \"' received an error while closing its underlying MessageConsumer: \"\n + e.getMessage());\n }\n\n if (durableConsumers) {\n try {\n TopicSession topicSession = (TopicSession) session;\n topicSession.unsubscribe(durableSubscriptionName);\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"The proxied durable JMS subscription with name, \"\n + durableSubscriptionName + \" failed to unsubscribe : \"\n + e.toString());\n }\n }\n }\n super.stop();\n }", "void removeListener(IEventChannelListener<K, V> listener);", "private void requestUnsubscribe(List<String> topics) {\n if (topics.isEmpty() || this.client == null || !this.client.isConnected()) {\n // nothing to do\n return;\n }\n\n for (String topic : topics) {\n // vertx-mqtt currently does not support unsubscribing from multi-topics due to an API limitation\n this.client\n .unsubscribe(topic)\n .onComplete(result -> unsubscribeSent(result, Collections.singletonList(topic)));\n }\n }", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "public void shutdown() throws InterruptedException\n {\n channel.shutdown().awaitTermination(WAIT_TIME, TimeUnit.SECONDS);\n }", "@CallByThread(\"Netty EventLoop\")\n void runCancel() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }", "public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\n\t}", "@Test\n public void detach_message_to_released_channel_is_dropped() throws AblyException {\n AblyRealtime ably = null;\n long oldRealtimeTimeout = Defaults.realtimeRequestTimeout;\n final String channelName = \"detach_message_to_released_channel_is_dropped\";\n\n try {\n DebugOptions opts = createOptions(testVars.keys[0].keyStr);\n Helpers.RawProtocolMonitor monitor = Helpers.RawProtocolMonitor.createReceiver(ProtocolMessage.Action.detached);\n opts.protocolListener = monitor;\n\n /* Make test faster */\n Defaults.realtimeRequestTimeout = 1000;\n opts.channelRetryTimeout = 1000;\n\n ably = new AblyRealtime(opts);\n Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n\n // Listen for detach messages and release the channel\n ably.channels.release(channelName);\n monitor.waitForRecv(1, 10000);\n\n assertFalse(ably.channels.containsKey(\"messages_to_non_existent_channels_are_dropped\"));\n } finally {\n if (ably != null)\n ably.close();\n Defaults.realtimeRequestTimeout = oldRealtimeTimeout;\n }\n }", "@Override\n public void unsubscribe() {\n try {\n assert future != null;\n future.get(5, TimeUnit.SECONDS); //wait for all the scheduled values fired\n } catch (Exception e) {\n Throwables.propagate(e); //just hide the checked exception\n }\n }", "protected void testUncancelReal() {\n\n log.info(\"Starting testUncancel\");\n\n try {\n\n String prod = \"Shotgun\";\n BillingPeriod term = BillingPeriod.MONTHLY;\n String planSet = IPriceListSet.DEFAULT_PRICELIST_NAME;\n\n // CREATE\n Subscription subscription = createSubscription(prod, term, planSet);\n IPlanPhase trialPhase = subscription.getCurrentPhase();\n assertEquals(trialPhase.getPhaseType(), PhaseType.TRIAL);\n\n // NEXT PHASE\n DateTime expectedPhaseTrialChange = Clock.addDuration(subscription.getStartDate(), trialPhase.getDuration());\n checkNextPhaseChange(subscription, 1, expectedPhaseTrialChange);\n\n // MOVE TO NEXT PHASE\n testListener.pushExpectedEvent(NextEvent.PHASE);\n clock.setDeltaFromReality(trialPhase.getDuration(), DAY_IN_MS);\n assertTrue(testListener.isCompleted(2000));\n IPlanPhase currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n // SET CTD + RE READ SUBSCRIPTION + CHANGE PLAN\n IDuration ctd = getDurationMonth(1);\n DateTime newChargedThroughDate = Clock.addDuration(expectedPhaseTrialChange, ctd);\n billingApi.setChargedThroughDate(subscription.getId(), newChargedThroughDate);\n subscription = (Subscription) entitlementApi.getSubscriptionFromId(subscription.getId());\n\n testListener.pushExpectedEvent(NextEvent.CANCEL);\n\n // CANCEL\n subscription.cancel(clock.getUTCNow(), false);\n assertFalse(testListener.isCompleted(2000));\n\n subscription.uncancel();\n\n // MOVE TO EOT + RECHECK\n clock.addDeltaFromReality(ctd);\n DateTime future = clock.getUTCNow();\n assertFalse(testListener.isCompleted(2000));\n\n IPlan currentPlan = subscription.getCurrentPlan();\n assertEquals(currentPlan.getProduct().getName(), prod);\n currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n } catch (EntitlementUserApiException e) {\n Assert.fail(e.getMessage());\n }\n }", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "public void unsubscribe(String inOutMethod) {\r\n unsubscribe(inOutMethod, inOutMethod, (Class<?>[]) null);\r\n }", "public void stopPollingThread() {\n pool.shutdown();\n }", "@Override\r\n public void stopCrawling() {\n setState(ConnectorState.STOPPED);\r\n // shutdown the consumer\r\n consumer.close();\r\n // send a flush once the consumer is closed\r\n try {\r\n flush();\r\n } catch (Exception e) {\r\n log.warn(\"Error flushing last batch. {}\", e);\r\n }\r\n }", "public void doDisconnect() {\n Debug.logInfo(\"MQTT Disconnecting clientId[\" + client.getClientId() + \"] of [\" + client.getServerURI() + \"] ... \", MODULE);\n\n IMqttActionListener discListener = new IMqttActionListener() {\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Disconnect Completed\", MODULE);\n state = DISCONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"Disconnect failed\" + exception, MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "public void subDeactivate() throws InterruptedException\n {\n m_ListenerInstance.dispose();\n \n final int ThreadWaitMs = 1000;\n m_ListenerThread.join(ThreadWaitMs);\n assert !m_ListenerThread.isAlive();\n \n cleanupMessageSender();\n \n try\n {\n m_Socket.getOutputStream().close();\n }\n catch (final IOException e)\n {\n m_Logging.warning(\"Failed to close socket output stream (%s)\", m_Socket.getRemoteSocketAddress());\n }\n\n try\n {\n m_Socket.close();\n }\n catch (final IOException e)\n {\n m_Logging.debug(\"Unable to close socket (%s), already closed? %b\", m_Socket.getRemoteSocketAddress(), \n m_Socket.isClosed());\n }\n finally\n {\n m_WakeLock.delete();\n }\n }", "void stopHelloSender();", "public void unsubscribe(final Topic topic) {\r\n\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID, topic))\r\n subscriberTopics.remove(topic);\r\n System.out.println(\"Unsubscribed from the Topic: \" + topic.getTopicID() + \" - \" + topic.getTopicName());\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from \" + topic.getTopicID() + \" - \" + topic.getTopicName());\r\n }\r\n }).start();\r\n }", "private void stopClient() {\n\n run = false;\n\n if (bufferOut != null) {\n bufferOut.flush();\n bufferOut.close();\n }\n\n messageListener = null;\n bufferIn = null;\n bufferOut = null;\n serverMessage = null;\n }", "public final void unsubscribe() throws InvalidSubscriptionException {\r\n WritableSession session = (WritableSession) WebsocketActionSupport.getInstance().getSession();\r\n if (!sessions.contains(session)) {\r\n throw new InvalidSubscriptionException(\"Current session is not subscribed to this topic\");\r\n }\r\n sessions.remove(session);\r\n afterUnsubscribe(session);\r\n }", "@Override\n public synchronized CompletableFuture<Void> disconnect() {\n CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();\n\n // block any further consumers on this subscription\n IS_FENCED_UPDATER.set(this, TRUE);\n\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close())\n .thenRun(() -> {\n log.info(\"[{}][{}] Successfully disconnected and closed subscription\", topicName, subName);\n disconnectFuture.complete(null);\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error disconnecting consumers from subscription\", topicName, subName,\n exception);\n disconnectFuture.completeExceptionally(exception);\n return null;\n });\n\n return disconnectFuture;\n }", "public void stopListening();", "void stopPumpingEvents();", "public void chirpDown() {\n ding(chirpFrequency, chirpDuration, -1.0 / 0.15);\n }", "public static void stopFifo(int hClient, int channel, NiRioStatus status) {\n\t\tmergeStatus(status,\n\t\t\t\tstopFifoFn.invokeInt(new Object[] { hClient, channel }));\n\t}", "@Override\n public void stop() {\n telemetry.addData(\"Say\", \"It Stopped!\");\n }", "public void declineInvite(String player) {\r\n connection.declineInvite(player);\r\n }", "void onDisconnectChannel(@NonNull Context appContext);" ]
[ "0.68692285", "0.6834892", "0.6705573", "0.659147", "0.65191704", "0.6515372", "0.6451663", "0.6324014", "0.62848294", "0.62575537", "0.6231198", "0.61890835", "0.6144049", "0.6121692", "0.61128616", "0.6080996", "0.6078775", "0.6073299", "0.60606855", "0.6032352", "0.601139", "0.6007598", "0.5983288", "0.5923192", "0.58890504", "0.5863645", "0.5834333", "0.5800047", "0.5797692", "0.57862544", "0.5732657", "0.5720964", "0.571417", "0.56985915", "0.56896645", "0.5681088", "0.5677201", "0.56706065", "0.56049436", "0.55987626", "0.5583784", "0.5569467", "0.5559374", "0.5520078", "0.5519492", "0.5518458", "0.5517214", "0.551543", "0.5498356", "0.54787964", "0.54738", "0.54648954", "0.54575795", "0.5445396", "0.5431046", "0.541771", "0.53987014", "0.5397931", "0.53517175", "0.5342871", "0.5329545", "0.53173167", "0.5308026", "0.53075475", "0.5296192", "0.5283745", "0.52777714", "0.52742505", "0.5272933", "0.52656794", "0.5261041", "0.5251325", "0.5241604", "0.52215683", "0.5216933", "0.5202669", "0.52020645", "0.51997876", "0.51857466", "0.51720446", "0.5166831", "0.51517546", "0.5141359", "0.5133912", "0.5123163", "0.5111794", "0.5099467", "0.508913", "0.50847685", "0.5082953", "0.5070714", "0.5057194", "0.5050383", "0.5049438", "0.5048387", "0.5046252", "0.504255", "0.5040082", "0.5040065", "0.5038403" ]
0.74625343
0
Handle a new executed trade
public void handleExecutedTradeEntry(final BitfinexExecutedTradeSymbol tradeSymbol, final ExecutedTrade entry) { tradesCallbacks.handleEvent(tradeSymbol, entry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onTrade(Trade trade) throws Exception {\n\t\t\r\n\t}", "@Override\r\n\tpublic void saveASNew(Trade trade) {\n\t\ttradeid.setText(new Integer(trade.getId()).toString());\r\n\t\ttradestatus.setText(trade.getStatus());\r\n\t\tactionstatus.removeAllElements();\r\n\t\t\r\n\t//\tprocessActionData(actionstatus,trade.getTradedesc1()); \r\n\t\t/// imp note : wf understand CASH productType as MM so passing MM as hardcoded\r\n processActionData(actionstatus,productType.toUpperCase(),trade.getTradedesc1(),tradestatus.getText(),rtradeservices);\r\n\t\tthis.trade = trade;\r\n\t\tsetTrade(trade);\r\n\t\tgetTradeTransfers(transferPanel);\r\n\t\tgetTradeTask(taskPanel);\r\n\t\tgetTradeSDI(sdiPanel);\r\n\t}", "public void onTrade(Trade event) {\n tradeCount++;\n }", "public boolean recordTrade(Trade trade) throws Exception;", "void addTrade(Trade trade);", "@Override\n protected void trade(){\n // An example of a random trade proposal: offer peasants in exchange of soldiers\n // Pick the id of the potential partner (without checking if it is my neighbor)\n double pertnerID = (new Random()).nextInt(42)+1;\n trade[0] = pertnerID;\n // Choose the type of good demanded (peasants - 3)\n double demandType = 3;\n trade[1] = demandType;\n // Choose the amount of demanded goods\n double demand = Math.random();\n trade[2] = demand;\n // Choose the type of good offered in exchange (peasants - 2)\n double offerType = 2;\n trade[3] = offerType;\n // Choode the amount of goods offered in exchange (random but less than my total number of peasants)\n double offer = (new Random()).nextDouble()*myTerritory.getPeasants();\n trade[4] = offer;\n\n // This procedure updated the array trade, which contains the information\n // about trade proposals of the current lord\n }", "@Override\n\t public void onMessage(NewOrderSingle message, SessionID sessionID)\n\t throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {\n\t System.out.println(\"Inside onMessage for New Order Single\");\n//\t super.onMessage(message, sessionID);\n\t OrdType orderType = message.getOrdType();\n\t Symbol currencyPair = message.getSymbol();\n\t /*\n\t * Assuming that we are directly dealing with Market\n\t */\n\t Price price = null;\n\t if (OrdType.FOREX_MARKET == orderType.getValue()) {\n\t if(this.priceMap.containsKey(currencyPair.getValue())){\n\t price = new Price(this.priceMap.get(currencyPair.getValue()));\n\t } else {\n\t price = new Price(1.4589);\n\t }\n\t }\n\t \n\t //We are hardcoding this to 1, but in real world this may be something like a sequence.\n\t OrderID orderNumber = new OrderID(\"1\");\n\t //Id of the report, a unique identifier, once again this will be somthing like a sequence\n\t ExecID execId = new ExecID(\"1\");\n\t //In this case this is a new order with no exception hence mark it as NEW\n\t ExecTransType exectutionTransactioType = new ExecTransType(ExecTransType.NEW);\n\t //This execution report is for confirming a new Order\n\t ExecType purposeOfExecutionReport =new ExecType(ExecType.FILL);\n\t //Represents status of the order, since this order was successful mark it as filled.\n\t OrdStatus orderStatus = new OrdStatus(OrdStatus.FILLED);\n\t //Represents the currencyPair\n\t Symbol symbol = currencyPair;\n\t //Represents side\n\t Side side = message.getSide();\n\t //What is the quantity left for the day, we will take 100 as a hardcoded value, we can also keep a note of this from say limit module.\n\t LeavesQty leavesQty = new LeavesQty(100);\n\t //Total quantity of all the trades booked in this applicaition, here it is hardcoded to be 100.\n\t CumQty cummulativeQuantity = new CumQty(100);\n\t //Average Price, say make it 1.235\n\t AvgPx avgPx = new AvgPx(1.235);\n\t ExecutionReport executionReport = new ExecutionReport(orderNumber,execId, exectutionTransactioType,\n\t purposeOfExecutionReport, orderStatus, symbol, side, leavesQty, cummulativeQuantity, avgPx);\n\t executionReport.set(price);\n\t try {\n\t Session.sendToTarget(executionReport, sessionID);\n\t } catch (SessionNotFound e) {\n\t e.printStackTrace();\n\t }\n\t \n\t }", "@Override\r\n\tpublic void onStartTrading() throws Exception {\n\t\t\r\n\t}", "Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;", "private void handleNewOrderSingle(Message input, SessionID sessionID) {\n Message response;\n try {\n response = getExecutionReport(input);\n Session.sendToTarget(response, sessionID);\n } catch (SessionNotFound e) {\n LOG.error(\"Session not found: \" + sessionID.toString(), e);\n }\n }", "@Override\n\tpublic void satisfyTrade(TickEvent<Trade> tradeEvent) throws TradeException {\n\n\t}", "public void onTrade(Trade trade) {\n thePosition += trade.getVolume();\n theCashBalance += -1 * trade.getPrice() * trade.getVolume();\n }", "public void handleBuyPiranhaCommand() {\n if (Aquarium.money >= PIRANHAPRICE) {\n piranhaController.addNewEntity();\n Aquarium.money -= PIRANHAPRICE;\n }\n }", "void confirmRealWorldTrade(IUserAccount user, ITransaction trans);", "@Override\r\n\tpublic void acceptTrade(boolean willAccept) {\n\t\t\r\n\t}", "public void sell(int amount, JsonObject quote, Handler<AsyncResult<Portfolio>> resultHandler) { \n delegate.sell(amount, quote, resultHandler);\n }", "@Override\n public void getTradeRecord(Trade trade) {\n if (trade != null && trade.getStock() != null) {\n this.tradeRepository.save(trade);\n }\n }", "public void handleNewAuctionRound(int roundNumber, int amount, long price);", "public void buy(int amount, JsonObject quote, Handler<AsyncResult<Portfolio>> resultHandler) { \n delegate.buy(amount, quote, resultHandler);\n }", "@Override\n public void save(Trade trade) {\n this.tradeRepository.save(trade);\n }", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "public TradeResult(int numberTraded, double price, int action) {\r\n this.numberTraded = numberTraded;\r\n this.price = price;\r\n this.action = action;\r\n }", "@Override\n public void executeAction(IData mainTrade) throws Exception\n {\n String userId = mainTrade.getString(\"USER_ID\");\n String userIdA = mainTrade.getString(\"RSRV_STR2\");\n UserInfoQry.updateTrunkByUserId(userId, userIdA);\n\n }", "private void tradeCommand(){\n out.println(\"\\r\\nShares you own:\" +\n \"\\r\\nApple: \" + player.getShares().get(0) +\n \"\\r\\nBP: \" + player.getShares().get(1) +\n \"\\r\\nCisco: \" + player.getShares().get(2) +\n \"\\r\\nDell: \" + player.getShares().get(3) +\n \"\\r\\nEricsson: \" + player.getShares().get(4) +\n \"\\r\\n\\r\\nShare prices: Apple-\" + game.apple.getSharePrice() +\n \", BP-\" + game.bp.getSharePrice() +\n \", Cisco-\" + game.cisco.getSharePrice() +\n \", Dell-\" + game.dell.getSharePrice() +\n \", Ericsson-\" + game.ericsson.getSharePrice() +\n \"\\r\\n\\r\\nFunds: £\" + player.getFunds() + \", Current value of shares: £\" + getTotalShareValue(player) + \"\\r\\n\"\n );\n\n out.println(\"Would you like to buy(b) or sell(s) shares? Enter 'X' to exit.\");\n String bsInput = in.nextLine().trim();\n if (bsInput.toUpperCase().equals(\"B\")){\n getTradeParam(1); //buy\n }else if (bsInput.toUpperCase().equals(\"S\")){\n getTradeParam(0); //sell\n }else if (bsInput.toUpperCase().equals(\"X\")){\n command();\n }else{\n out.println(\"Invalid input\");\n tradeCommand();\n }\n }", "public void buyStock(double askPrice, int shares, int tradeTime) {\n }", "@Override\n public void run() {\n OrderBook.getInstance().addOfferMarketQuote(order);\n }", "@Override\n protected void tradeOutcome(long period, int proposerID, double[] tradeProposal, boolean tradeCompleted){\n // This method provides information about the outcome of the trade, so I will leave this open to you,\n // to do whatever you want to do with the info.\n\n // period: step of the simulation in which the trade occured\n // proposerID: id of the territory that created the trade proposal (it can be yourself)\n // tradeProposal: the actual trade proposal that was either sent or received by your lord.\n // The information in the tradeProposal array is organized in the exact same way as in your own tradeProposal\n // so you can store and use that information as you wish\n // tradeCompleted: an indicator if the transaction was completed (true) or not (false)\n }", "public void createTrade(String symbol, String fiat, String type, double amount) {\n // Type should be \"sell\" or \"buy\"\n if (!type.equals(\"sell\") && !type.equals(\"buy\"))\n return; // TODO - throw exception here\n\n // Create request object\n JSONObject data = new JSONObject();\n try {\n data.put(\"uuid\", getUUID());\n data.put(\"type\", type);\n data.put(\"fiat_value\", amount);\n data.put(\"fiat\", fiat);\n data.put(\"crypto_symbol\", symbol);\n } catch (JSONException e) {\n return; // TODO - throw exception here\n }\n\n api.createTrade(new VolleyJsonCallback() {\n @Override\n public void onSuccess(JSONObject json) throws JSONException {\n Trade t = new Trade(\n json.getString(\"uuid\"),\n json.getString(\"type\"),\n json.getDouble(\"fiat_value\"),\n json.getString(\"fiat\"),\n json.getDouble(\"crypto_value\"),\n json.getString(\"crypto_symbol\")\n );\n\n user.AddTrade(t);\n\n String typeStr = (type == \"buy\") ? \"Bought \" : \"Sold \";\n String text = typeStr + t.fiat_value + \"€ of \" + t.crypto_symbol;\n Toast.makeText(getApplicationContext(), text, Toast.LENGTH_LONG).show();\n\n // Create notification if enabled and trade is a buy\n if (getNotificationEnabled() && t.type.equals(\"buy\")) {\n Intent intent = new Intent(App.this, UpdateBroadcast.class);\n intent.putExtra(\"symbol\", t.crypto_symbol);\n intent.putExtra(\"fiat_price\", t.fiat_value);\n intent.putExtra(\"crypto_value\", t.crypto_value);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(App.this, 0, intent, 0);\n\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n\n long currentTime = System.currentTimeMillis();\n //long remindIn = 1000 * 60 * 60; // Remind in this many milliseconds (1h)\n long remindIn = 1000 * 5;\n\n alarmManager.set(AlarmManager.RTC_WAKEUP, currentTime+remindIn, pendingIntent);\n }\n }\n\n @Override\n public void onError(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n }, data);\n }", "@Override\n\tpublic void rollBackTrade(TickEvent<Trade> tradeEvent)\n\t\t\tthrows TradeException {\n\n\t}", "@Override\r\n\tpublic void setTrade(Trade trade) {\n\t\t this.trade = trade;\r\n\t}", "@Override\n\tpublic void inset(Trade trade) {\n\t\tString sqlString = \"INSERT INTO (userid, tradetime) VALUES(?, ?)\";\n\t\tlong tradeId = insert(sqlString, trade.getUserId(), trade.getTradeTime());\n\t\ttrade.setTradeId((int)tradeId);\n\t}", "public void run() {\n String[] instruments = getInstrumentIds();\n String[] parties = getPartyIds();\n String[] venues = getVenueIds();\n //TradeMapStore tms = new TradeMapStore();\n\n\n while(true) {\n Trade trade = new Trade();\n trade.setTradeId(UUID.randomUUID().toString());\n logger.info(\"Generating Trade with Id \"+trade.getTradeId());\n trade.setAltTradeIds(new HashMap<String, String>());\n trade.setExecutionVenueDimId(getVenue(venues));\n trade.setTradeTransactionType(TradeTransactionTypeEnum.NEW);\n trade.setSecondaryTradeTypeEnum(TradeTypeEnum.WAP_TRADE);\n trade.setCurrencyPair(CurrencyPairEnum.EURUSD);\n trade.setInstrumentDimId(getInstrument(instruments));\n trade.setCounterPartyDimId(getCounterParty(parties));\n trade.setMarketId(getVenue(venues));\n trade.setOriginalTradeDate(new DateTime(new Date()));\n trade.setPrice(getPrice());\n trade.setQuantity(getSize());\n HashMap<String, Party> partyHashMap = new HashMap<String, Party>();\n trade.setParties(partyHashMap);\n trade.setTradeType(TradeTypeEnum.REGULAR_TRADE);\n logger.info(\"Inserting Trade: \"+trade.toJSON());\n trades.put(trade.getTradeId(),trade);\n\n logger.info(\"TradeLoader Having a snooze\");\n try {\n Thread.sleep(current().nextInt(10, 100));\n }\n catch(InterruptedException e){\n logger.error(\"Error while sleeping\");\n }\n }\n\n }", "public Trade saveTrade(Trade trade) {\n Account account = trade.getTrader().getAccount();\n Double currentBalUSD = account.getUsd();\n Double usdAmount = trade.getUsdAmount();\n Double foreignAmount = -usdAmount*(1/trade.getRate()); // this calculation is happening on the front end too, more efficient: store the foreign amount in the table too and send it in with the trade\n account.setUsd(currentBalUSD+usdAmount);\n\n /*\n Checking which type of trade to be made (eurusd, gbpusd, nzdusd)\n */\n switch (trade.getCurrencyPair().getId()) {\n case 1: {\n Double currentForeignBal = account.getEur();\n account.setEur(currentForeignBal + foreignAmount);\n break;\n }\n case 2: {\n Double currentForeignBal = account.getGbp();\n account.setGbp(currentForeignBal + foreignAmount);\n break;\n }\n case 3: {\n Double currentForeignBal = account.getNzd();\n account.setNzd(currentForeignBal + foreignAmount);\n break;\n }\n }\n\n return tradeRepository.save(trade);\n }", "@Override\n\tpublic int insertOrderTrading(Order_TradingVO otvo) {\n\t\treturn sql.insert(\"insertOrderTrading\", otvo);\n\t}", "@Override\n \tpublic void handleBettingMarketEndOFSet() {\n \n \t}", "public void recordClosingQuote(Quote closingQuote_, MarketDataSession marketDataSession_);", "public void onTradeRequest(String name)\n {\n\t\tif(traded_ammount > 0)\n\t\t{\n\t\t\ttraded_ammount = 0;\n\t\t\ttime = System.currentTimeMillis();\n\t\t}\n\t\tint[] player = getPlayerByName(name);\n\t\tint player_id = getPlayerPID(player[0]);\n\t\tsendTradeRequest(player_id);\n }", "public void onQuote(Quote event) {\n quoteCount++;\n }", "public void handleAuctionEnd();", "public void trade(Player player, Type type, int[] trade) {\n \t\taddResources(type, 1);\n \t\tplayer.useResources(type, 1);\n \n \t\tfor (int i = 0; i < Hexagon.TYPES.length; i++) {\n \t\t\tif (trade[i] <= 0)\n \t\t\t\tcontinue;\n \n \t\t\tuseResources(Hexagon.TYPES[i], trade[i]);\n \t\t\tplayer.addResources(Hexagon.TYPES[i], trade[i]);\n \n \t\t\tfor (int j = 0; j < trade[i]; j++) {\n \t\t\t\tappendAction(R.string.player_traded_away, Hexagon\n \t\t\t\t\t\t.getTypeStringResource(Hexagon.TYPES[i]));\n \t\t\t}\n \t\t}\n \n \t\tappendAction(R.string.player_traded_with, player.getName());\n \t\tappendAction(R.string.player_got_resource, Hexagon\n \t\t\t\t.getTypeStringResource(type));\n \t}", "public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}", "public void setTradeId(Long tradeId) {\n this.tradeId = tradeId;\n }", "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "private void startAggTradesEventStreaming(String symbol) {\r\n\t\tBinanceApiClientFactory factory = BinanceApiClientFactory.newInstance();\r\n\t\tBinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\r\n\t\t/*\r\n\t\t * static void startAggTradeEventListener(BinanceApiClientFactory factory,\r\n\t\t * String symbol, ExchangeApiCallback<AggTradeEvent> callback) {\r\n\t\t * BinanceApiWebSocketClient client = factory.newWebSocketClient();\r\n\t\t * client.onAggTradeEvent(symbol, (AggTradeEvent event) -> { if (event == null)\r\n\t\t * { startAggTradeEventListener(factory, symbol, callback); } else {\r\n\t\t * callback.onResponse(event); } }); }\r\n\t\t */\r\n\r\n\t\tclient.onAggTradeEvent(symbol.toLowerCase(), response -> {\r\n\r\n\t\t\tif (response == null) {\r\n\t\t\t\tstartAggTradesEventStreaming(symbol);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tLong aggregatedTradeId = response.getAggregatedTradeId();\r\n\t\t\tAggTrade updateAggTrade = aggTradesCache.get(aggregatedTradeId);\r\n\t\t\tif (updateAggTrade == null) {\r\n\t\t\t\t// new agg trade\r\n\t\t\t\tupdateAggTrade = new AggTrade();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * Duration tickDuration = Duration.ofSeconds(1); Long tickIndex = new\r\n\t\t\t * Long(this.aggTradeTicksCashe.size()); List<AggTrade> listAggTrade = null;\r\n\t\t\t * \r\n\t\t\t * if (aggTradeTicksCashe.isEmpty()) { listAggTrade = new\r\n\t\t\t * CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put( tickIndex,\r\n\t\t\t * listAggTrade ); } else { listAggTrade =\r\n\t\t\t * this.aggTradeTicksCashe.get(tickIndex); }\r\n\t\t\t * \r\n\t\t\t * ZonedDateTime tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(updateAggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault()); ZonedDateTime tickEndTime =\r\n\t\t\t * tradeTimestamp.plus(tickDuration);\r\n\t\t\t * \r\n\t\t\t * if (!tradeTimestamp.isBefore(tickEndTime)) { // new tick ++tickIndex;\r\n\t\t\t * listAggTrade = new CopyOnWriteArrayList<AggTrade>(); aggTradeTicksCashe.put(\r\n\t\t\t * tickIndex, listAggTrade ); } // Store the updated agg trade in the current\r\n\t\t\t * tick cache listAggTrade.add(updateAggTrade);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * List<Tick> ticks = null; Long tickIndex = 0L; List<AggTrade> listAggTrade =\r\n\t\t\t * new CopyOnWriteArrayList<AggTrade>(); this.aggTradeTicksCashe = new\r\n\t\t\t * HashMap<Long, List<AggTrade>>();\r\n\t\t\t */\r\n\r\n\t\t\tupdateAggTrade.setTradeTime(response.getEventTime());\r\n\t\t\tupdateAggTrade.setAggregatedTradeId(aggregatedTradeId);\r\n\t\t\tupdateAggTrade.setPrice(response.getPrice());\r\n\t\t\tupdateAggTrade.setQuantity(response.getQuantity());\r\n\t\t\tupdateAggTrade.setFirstBreakdownTradeId(response.getFirstBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setLastBreakdownTradeId(response.getLastBreakdownTradeId());\r\n\t\t\tupdateAggTrade.setBuyerMaker(response.isBuyerMaker());\r\n\r\n\t\t\t// Store the updated agg trade in the cache\r\n\t\t\taggTradesCache.put(aggregatedTradeId, updateAggTrade);\r\n\r\n\t\t\t/*\r\n\t\t\t * Build ticks and Series\r\n\t\t\t */\r\n\r\n\t\t\tLong trendAnalysisTimeFrame = 5L; // perform a trend analysis using last 5 seconds time frame\r\n\r\n\t\t\tZonedDateTime tickEndTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(response.getEventTime()), // lastTradeEventTime\r\n\t\t\t\t\tZoneId.systemDefault());\r\n\t\t\tZonedDateTime tickStartTime = tickEndTime.minusSeconds(trendAnalysisTimeFrame);\r\n\t\t\t/*\r\n\t\t\t * ZonedDateTime tickStartTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t\t * ZonedDateTime tickEndTime = tickStartTime; Iterator<Long>\r\n\t\t\t * aggTradesCacheIterator = aggTradesCache.keySet().iterator(); while\r\n\t\t\t * (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime\r\n\t\t\t * tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),ZoneId.\r\n\t\t\t * systemDefault()); if ( tradeTimestamp.isBefore(tickStartTime)) tickStartTime\r\n\t\t\t * = tradeTimestamp; if ( tradeTimestamp.isAfter(tickEndTime)) tickEndTime =\r\n\t\t\t * tradeTimestamp; }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * // Building the empty ticks List<Tick> ticks = buildEmptyTicks(tickStartTime,\r\n\t\t\t * tickEndTime);\r\n\t\t\t * \r\n\t\t\t * Iterator<Long> aggTradesCacheIterator = aggTradesCache.keySet().iterator();\r\n\t\t\t * while (aggTradesCacheIterator.hasNext()) { AggTrade aggTrade =\r\n\t\t\t * aggTradesCache.get(aggTradesCacheIterator.next()); ZonedDateTime tradeTime =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault());\r\n\t\t\t * \r\n\t\t\t * if ( tradeTime.isAfter(tickStartTime) && tradeTime.isBefore(tickEndTime)) {\r\n\t\t\t * // Filling the ticks with trades for (Tick tick : ticks) { if\r\n\t\t\t * (tick.inPeriod(tradeTime)) { Double price = new Double(aggTrade.getPrice());\r\n\t\t\t * Double quantity = new Double(aggTrade.getQuantity()); Double amount = price *\r\n\t\t\t * quantity; tick.addTrade( amount, price); } } } } // Removing still empty\r\n\t\t\t * ticks removeEmptyTicks(ticks);\r\n\t\t\t * \r\n\t\t\t * // Build time series TimeSeries series = new BaseTimeSeries(symbol, ticks);\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * if( realTimeChart != null ) { List<Integer> xData = new\r\n\t\t\t * CopyOnWriteArrayList<Integer>(); List<Double> yData = new\r\n\t\t\t * CopyOnWriteArrayList<Double>(); List<Double> errorBars = new\r\n\t\t\t * CopyOnWriteArrayList<Double>();\r\n\t\t\t * \r\n\t\t\t * for( int x: realTimeChart.getxData() ) { xData.add(x); } for( double y:\r\n\t\t\t * realTimeChart.getyData() ) { yData.add(y); } for( double e:\r\n\t\t\t * realTimeChart.getErrorBars() ) { errorBars.add(e); }\r\n\t\t\t * //xData.add(xData.size()+1); xData.add(50); xData.remove(0); yData.add(new\r\n\t\t\t * Double(response.getPrice())); yData.remove(0); //errorBars.add(0.0);\r\n\t\t\t * //errorBars.remove(0);\r\n\t\t\t * \r\n\t\t\t * realTimeChart.updateData(xData, yData, errorBars); }\r\n\t\t\t */\r\n\r\n\t\t\t/*\r\n\t\t\t * Log AggTrade into database\r\n\t\t\t */\r\n\t\t\tstoreAggTradeCache(symbol, updateAggTrade);\r\n\t\t\t// System.out.println(updateAggTrade);\r\n\t\t});\r\n\t}", "Trade editTrade(String tradeId, Trade editedTrade) throws \n OrderBookTradeException;", "public void execute() {\r\n int depositAmount = this.promptDepositAmount(); // amount in cents\r\n if (depositAmount != CANCELED) {\r\n screen.displayMessage(\"\\nPlease insert a deposit envelope containing: \");\r\n screen.displayDollarAmount(depositAmount / 100);\r\n screen.displayMessageLine(\".\");\r\n\r\n if (depositSlot.isEnvelopeReceived()) {\r\n screen.displayMessageLine(\"\\nYour envelope has been received.\");\r\n screen.displayMessageLine(\"The money just deposited will not be available until we verify \" +\r\n \"the amount of any enclosed cash and your checks clear.\");\r\n bankDatabase.credit(this.accountNumber, depositAmount / 100);\r\n } else {\r\n screen.displayMessageLine (\"\\nYou did not insert an envelope. The ATM has canceled your transaction.\");\r\n }\r\n } else {\r\n screen.displayMessageLine( \"\\nCanceling transaction...\");\r\n }\r\n }", "void respondToTrade(long tradeItemId, boolean response);", "void insert(PaymentTrade record);", "Trade getTrade(String tradeId) throws OrderBookTradeException;", "public void recordLastTrade(QuoteAndSize lastTrade_, MarketDataSession marketDataSession_);", "private void performTradingOnStock(UserStockRequest userStockRequest) throws StockProcessingException {\n\t\t//System.out.println(\"Processing stock: \" + userStockRequest);\n\t}", "@POST\n @Path(\"orderpending\")\n BiboxSingleResponse<String> trade(\n @FormParam(FORM_CMDS) String cmds,\n @FormParam(FORM_APIKEY) String apiKey,\n @FormParam(FORM_SIGNATURE) ParamsDigest signature);", "public TransactionResponse sellToInventory() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\ttry {\r\n \t\t\tDataHandler sf = hc.getDataFunctions();\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tString playerecon = tradePartner.getEconomy();\r\n \t\t\tdouble price = 0.0;\r\n \t\t\tif (setPrice) {\r\n \t\t\t\tprice = money;\r\n \t\t\t} else {\r\n \t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t}\r\n \t\t\tBoolean toomuch = false;\r\n \t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\ttoomuch = true;\r\n \t\t\t}\r\n \t\t\tif (!toomuch) {\r\n \t\t\t\tim.removeItems(hyperObject.getId(), hyperObject.getData(), amount, hp.getPlayer().getInventory());\r\n \t\t\t\tim.addItems(amount, hyperObject.getId(), hyperObject.getData(), receiveInventory);\r\n \t\t\t\tacc.deposit(price, hp.getPlayer());\r\n \t\t\t\tacc.withdrawAccount(price, tradePartner.getName());\r\n \t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_CHEST_MESSAGE\"), amount, calc.twoDecimals(price), hyperObject.getName(), tradePartner.getName()), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\tresponse.setSuccessful();\r\n \t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", hyperObject.getName(), (double) amount, calc.twoDecimals(price), 0.0, tradePartner.getName(), \"chestshop\");\r\n \t\t\t\ttradePartner.sendMessage(L.f(L.get(\"CHEST_SELL_NOTIFICATION\"), amount, calc.twoDecimals(price), hyperObject.getName(), hp.getPlayer()));\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), sf.getHyperObject(hyperObject.getName(), playerecon).getStock(), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sellChest() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', owner='\" + tradePartner.getName() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "T handle(Tx tx) throws Exception;", "public void addTrade( final Trade trade ) throws STException {\n\n if( trade == null ) {\n throw new IllegalArgumentException( \"Trade can't be null\" ) ;\n }\n else if( !trade.getSymbol().equals( this.symbol ) ) {\n throw new IllegalArgumentException( \"A trade for \" + trade.getSymbol() +\n \" can't be added to stock trades for \" + this.symbol ) ;\n }\n\n // Note that orders would be always added in ascending order of their\n // trade date.\n if( trade.isCashTrade() ) {\n // Cash trades have different characteristics as compared to margin\n // trades. In case of cash trades, we can't sell if we do not have\n // as many active units.\n if( trade.isBuy() ) {\n addBuyCashTrade( trade ) ;\n }\n else {\n try {\n // It we are dealing with a sell trade. Handle it separately\n addSellCashTrade( trade ) ;\n }\n catch ( final CloneNotSupportedException e ) {\n throw new STException( e, ErrorCode.UNKNOWN_EXCEPTION ) ;\n }\n }\n }\n else if( trade.isMarginTrade() ) {\n // Margin trades show different characteristics as compared to\n // cash trades. The net active units at the end of a day is 0.\n // Also, in case of margin trades we can do short selling implying\n // we can sell even if we don't have as many active units.\n }\n else {\n throw new STException( \"Trade type \" + trade.getTradeType() +\n \" not supported\", ErrorCode.INVALID_ARG ) ;\n }\n\n this.allTrades.add( trade ) ;\n }", "public void checkAndExecute(){\n if(priceListener.getSecurityPrice() < buyPrice){\n executionService.buy(security, buyPrice, 100);\n // if the price < buyPrice then executionService.buy(buyquantity)\n }else if ( priceListener.getSecurityPrice() > sellPrice ) {\n executionService.sell(security, buyPrice, 100);\n }\n }", "@Override\n\tpublic void execute() {\n\t\t// TODO Auto-generated method stub\n\t\tstate.setTimeForLastEvent(state.getCurrentTime());\n\t\tstate.setCurrentEvent(this);\n\t\tstate.setCurrentTime(startTime);\n\t\tstate.updateIdleTime();\n\t\tstate.updateQueueTime();\n\t\t\n\t\tstate.setCurrentCustomer(cust);\n\t\tstate.callChanged();\n\t\t\n\t\t\n\t\t\n\t\tif (state.isQueueEmpty()) {\n\t\t\tstate.increaseIdleChairs();\n\t\t}else {\n\t\t\tdouble timeForNext = state.getHairdresserFinishTime();\n\t\t\tHairSalonEvent finished = new HaircutFinishedEvent(timeForNext,state,store, state.getFirst());\n\t\t\tstore.add(finished);\n\t\t\tstate.removeFirst();\n\t\t\tstate.increaseCuttinTime(timeForNext);\n\t\t\tstate.setLatestCustomerFinishTime(timeForNext);\n\t\t\t\n\n\t\t}\n\t\tif (state.checkHaircut(cust)){\n\t\t\t\n\t\t\tdouble timeForNext = state.getUnsatisfiedCustomerArrivalTime();\n\t\t\tHairSalonEvent returning = new PriorityCustomerEntersEvent(timeForNext,state,store,cust);\n\t\t\tstore.add(returning);\n\t\t\t\n\t\t\t\n\t\t}else {\n\t\t\tstate.increaseNumberOfCust();\n\t\t}\n\t\t\n\t}", "@Test\n public void testMarketOrder() throws InterruptedException {\n setUp();\n testMatchingEngine.start();\n\n NewOrder nosB1 = createLimitOrder(\"BUY1\", Side.BUY, 100, 100.1, System.currentTimeMillis());\n clientSession.sendNewOrder(nosB1);\n NewOrder nosB2 = createLimitOrder(\"BUY2\", Side.BUY, 200, 99.99, System.currentTimeMillis());\n clientSession.sendNewOrder(nosB2);\n NewOrder nosB3 = createLimitOrder(\"BUY3\", Side.BUY, 300, 99.79, System.currentTimeMillis());\n clientSession.sendNewOrder(nosB3);\n\n // Sell Order with Qty=150 and Market Order\n NewOrder nosS1 = createMarketOrder(\"SELL1\", Side.SELL, 700, System.currentTimeMillis());\n clientSession.sendNewOrder(nosS1);\n\n List<Event> msg = clientSession.getMessagesInQueue();\n assertEquals(7, msg.size());\n\n Trade t = ( Trade) msg.get(0);\n assertEquals( t.getLastTradedPrice().value() , new Price(100.1).value() );\n assertEquals( t.getLastTradedQty() , 100 );\n t = ( Trade) msg.get(1);\n assertEquals( t.getLastTradedPrice().value() , new Price(100.1).value() );\n assertEquals( t.getLastTradedQty() , 100 );\n t = ( Trade) msg.get(2);\n assertEquals( t.getLastTradedPrice().value() , new Price(99.99).value() );\n assertEquals( t.getLastTradedQty() , 200 );\n t = ( Trade) msg.get(3);\n assertEquals( t.getLastTradedPrice().value() , new Price(99.99).value() );\n assertEquals( t.getLastTradedQty() , 200 );\n t = ( Trade) msg.get(4);\n assertEquals( t.getLastTradedPrice().value() , new Price(99.79).value() );\n assertEquals( t.getLastTradedQty() , 300 );\n t = ( Trade) msg.get(5);\n assertEquals( t.getLastTradedPrice().value() , new Price(99.79).value() );\n assertEquals( t.getLastTradedQty() , 300 );\n Canceled t1 = ( Canceled) msg.get(6);\n assertEquals( t1.getCanceledQty() , 100 );\n }", "public Trade() {\n\t}", "public void submitOrder(BeverageOrder order);", "public Object prepareForTrading()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to prepareForTrading : \" + \"Agent\");\r\n/* 230 */ return this;\r\n/* */ }", "public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public void completeSale() {\n\n }", "public Trade jsonTradeParser(JsonObject jsonInput) {\n List<String> validateMessages = new ArrayList<>();\n Trade trade = new Trade();\n JsonParser parser = Json.createParser(new StringReader(jsonInput.toString()));\n while (parser.hasNext()) {\n JsonParser.Event event = parser.next();\n while (parser.hasNext() && !event.equals(JsonParser.Event.KEY_NAME)) {\n event = parser.next();\n }\n\n //--- parsing symbol of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"symbol\")) {\n event = parser.next();\n //--- validation symbol's field\n switch (event) {\n case VALUE_STRING:\n String symbolVal = parser.getString().toUpperCase();\n Symbol symbol = Symbol.valueOf(symbolVal);\n trade.setSymbol(symbol);\n break;\n case VALUE_NUMBER:\n validateMessages.add(\"symbol must be string\");\n break;\n default:\n break;\n }\n }//--- end parsing symbol\n\n //--- parsing position of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"position\")) {\n event = parser.next();\n //--- validation position's field\n switch (event) {\n case VALUE_STRING:\n String positionVal = parser.getString().toUpperCase();\n Position position = Position.valueOf(positionVal);\n trade.setPosition(position);\n break;\n case VALUE_NUMBER:\n validateMessages.add(\"position must be string\");\n break;\n default:\n break;\n }\n }//--- end parsing position\n\n //--- parsing size of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"size\")) {\n event = parser.next();\n //--- validation size's field\n switch (event) {\n case VALUE_STRING:\n validateMessages.add(\"size must be string\");\n break;\n case VALUE_NUMBER:\n BigDecimal size = parser.getBigDecimal().round(MathContext.DECIMAL32);\n trade.setTradeSize(size);\n break;\n default:\n break;\n }\n }//--- end parsing trade's size\n\n //--- parsing enter of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"enter\")) {\n event = parser.next();\n //--- validation enter's field\n switch (event) {\n case VALUE_STRING:\n validateMessages.add(\"enter must be number\");\n break;\n case VALUE_NUMBER:\n BigDecimal enter = parser.getBigDecimal().round(MathContext.DECIMAL32);\n trade.setEnter(enter);\n break;\n default:\n break;\n }\n }//--- end parsing enter\n\n //--- parsing take profit of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"take profit\")) {\n event = parser.next();\n //--- validation takeProfit's field\n switch (event) {\n case VALUE_STRING:\n validateMessages.add(\"take profit must be number\");\n break;\n case VALUE_NUMBER:\n BigDecimal tp = parser.getBigDecimal().round(MathContext.DECIMAL32);\n trade.setTakeProfit(tp);\n break;\n default:\n break;\n }\n }//--- end parsing take profit\n\n //--- parsing stop loss of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"stop loss\")) {\n event = parser.next();\n //--- validation stopLoss's field\n switch (event) {\n case VALUE_STRING:\n validateMessages.add(\"stop loss must be number\");\n break;\n case VALUE_NUMBER:\n BigDecimal sl = parser.getBigDecimal().round(MathContext.DECIMAL32);\n trade.setStoploss(sl);\n break;\n default:\n break;\n }\n }//--- end parsing stop loss\n\n //--- parsing stop of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"stop\")) {\n event = parser.next();\n //--- validation stop's field\n switch (event) {\n case VALUE_STRING:\n validateMessages.add(\"stop must be number\");\n break;\n case VALUE_NUMBER:\n BigDecimal stop = parser.getBigDecimal().round(MathContext.DECIMAL32);\n trade.setStop(stop);\n break;\n default:\n break;\n }\n }//--- end parsing stop\n\n //--- parsing date enter of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"date enter\")) {\n event = parser.next();\n //--- validation date enter's field\n switch (event) {\n case VALUE_STRING:\n String dateEnterVal = parser.getString();\n try {\n Date dateEnter = dateFormat.parse(dateEnterVal);\n trade.setDateEnter(dateEnter);\n } catch (ParseException ex) {\n validateMessages.add(\"date enter format is dd-MM-yyyy\");\n }\n break;\n case VALUE_NUMBER:\n validateMessages.add(\"date enter must be string\");\n break;\n default:\n break;\n }\n }//--- end parsing date enter\n\n //--- parsing time enter of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"time enter\")) {\n event = parser.next();\n //--- validation time enter's field\n switch (event) {\n case VALUE_STRING:\n String timeEnterVal = parser.getString();\n try {\n Date timeEnter = timeFormat.parse(timeEnterVal);\n trade.setTimeEnter(timeEnter);\n } catch (ParseException ex) {\n validateMessages.add(\"time enter format is HH:mm 24h\");\n }\n break;\n case VALUE_NUMBER:\n validateMessages.add(\"time enter must be a string\");\n default:\n break;\n }\n }//--- end parsing time enter\n\n //--- parsing date stop of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"date stop\")) {\n event = parser.next();\n //--- validation date stop's field\n switch (event) {\n case VALUE_STRING:\n String dateStopVal = parser.getString();\n try {\n Date dateStop = dateFormat.parse(dateStopVal);\n trade.setDateStop(dateStop);\n } catch (ParseException ex) {\n validateMessages.add(\"date stop format is dd-MM-yyyy\");\n }\n break;\n case VALUE_NUMBER:\n validateMessages.add(\"date stop must be a string\");\n default:\n break;\n }\n }//--- end parsing date stop\n\n //--- parsing time stop of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"time stop\")) {\n event = parser.next();\n //--- validation time stop's field\n switch (event) {\n case VALUE_STRING:\n String timeStopVal = parser.getString();\n try {\n Date timeStop = timeFormat.parse(timeStopVal);\n trade.setTimeStop(timeStop);\n } catch (ParseException ex) {\n validateMessages.add(\"time stop format is HH:mm 24h\");\n }\n break;\n case VALUE_NUMBER:\n validateMessages.add(\"time stop must be a string\");\n default:\n break;\n }\n }//--- end parsing time stop\n\n //--- parsing description of trade\n if (event.equals(JsonParser.Event.KEY_NAME) && parser.getString().matches(\"description\")) {\n event = parser.next();\n //--- validation description's field\n switch (event) {\n case VALUE_STRING:\n String description = parser.getString();\n trade.setDescription(description);\n break;\n case VALUE_NUMBER:\n validateMessages.add(\"description must be string\");\n default:\n break;\n }\n }//--- end parsing description\n }\n if (!validateMessages.isEmpty()) {\n throw new JsonObjectParserValidationException(validateMessages);\n }\n return trade;\n }", "public void saveQuote(QuoteEvent quote)\r\n \t\tthrows PersistenceException;", "TradeItem createTradeItem(Account proposer, Flippo proposerFlippo, Account receiver, Flippo receiverFlippo);", "void purchaseMade();", "private void generateTrades() {\n\t\tSystem.out.println(\"\\nGenerating fake trade records for stock: \" + stockSymbol);\n Random rd = new Random();\n \n for (int i = 0; i < 5; i++) {\n // Create arbitrary timestamp and TradeRecord data \n \t// within the last 20 minutes\n \n int minutes = rd.nextInt(21);\n int sharesQty = rd.nextInt(100) + 1;\n boolean isBuy = rd.nextBoolean();\n double price = (rd.nextDouble() + 0.1) * 100;\n // truncate price to 2 decimal places\n String tmpPrc = String.format(Locale.ENGLISH, \"%.2f\", price);\n price = Double.parseDouble(tmpPrc);\n TradeRecordType indicator = isBuy ? TradeRecordType.BUY : TradeRecordType.SELL;\n \n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.MINUTE, -minutes);\n Date date = cal.getTime();\n \n // Create and save fake trade record\n TradeRecord rec = new TradeRecord(date, sharesQty, indicator, price);\n System.out.println(rec);\n this.stockTrades.put(date, rec);\n }\n }", "public void logTrade(String player1, String player2) {\n\t\ttry {\n\n\t\t\tDateFormat df = new SimpleDateFormat(\"'On' MM/dd/yyyy 'at' HH:mm:ss\");\n\t\t\tDate d = new Date();\n\t\t\tBufferedWriter log = new BufferedWriter(new FileWriter(Data.TRADE_LOG, true));\n\n\t\t\ttry {\n\t\t\t\tlog.write(df.format(d) + \", \" + player1 + \" and \" + player2 + \" traded with each other.\");\n\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\n\t\t\t\tlog.write(player1 + \"'s offer was: \");\n\t\t\t\tfor (int i = 0; i < ClickingButtons.ids1.size(); i++) {\n\t\t\t\t\tlog.write(ClickingButtons.amounts1.get(i) + \"x \"\n\t\t\t\t\t\t\t+ c.getItems().getItemName(ClickingButtons.ids1.get(i)) + \", \");\n\t\t\t\t}\n\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\n\t\t\t\tlog.write(player2 + \"'s offer was: \");\n\t\t\t\tfor (int i = 0; i < ClickingButtons.ids2.size(); i++) {\n\t\t\t\t\tlog.write(ClickingButtons.amounts2.get(i) + \"x \"\n\t\t\t\t\t\t\t+ c.getItems().getItemName(ClickingButtons.ids2.get(i)) + \", \");\n\n\t\t\t\t}\n\n\t\t\t\tlog.newLine();\n\n\t\t\t} finally {\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.close();\n\n\t\t\t\tClickingButtons.ids1.clear();\n\t\t\t\tClickingButtons.ids2.clear();\n\t\t\t\tClickingButtons.amounts1.clear();\n\t\t\t\tClickingButtons.amounts2.clear();\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic int insertTrading(TradingVO tvo) {\n\t\treturn sql.insert(\"insertTrading\", tvo);\n\t}", "protected void handlePurchaseFinished(AmazonPurchaseType purchase)\n {\n }", "public interface ITradingDao {\n\t/**\n\t * Get a trade item by id\n\t * @param id The id of the trade item\n\t * @return The trade item with the specified id.\n\t */\n\tTradeItem getTradeItem(long id);\n\n\tList<TradeItem> getAllTrades();\n\n\t/**\n\t * Create a tradeitem\n\t * @param item the tradeitem that needs to be created.\n\t * @return The item created\n\t */\n\tTradeItem createTradeItem(TradeItem item);\n\n\t/**\n\t * Create a tradeitem with the base values.\n\t * @param proposer\t\t : The account that started the trade\n\t * @param proposerFlippo : The flippo that the proposer is offering\n\t * @param receiver\t\t : The one that is receiving the trade offer.\n\t * @param receiverFlippo : The flippo that the proposer want.\n\t * @return The trade item.\n\t */\n\tTradeItem createTradeItem(Account proposer, Flippo proposerFlippo, Account receiver, Flippo receiverFlippo);\n\n\t/**\n\t * Get all the trades that this account has made.\n\t * @param accountId The id of the account that you want to get the data from.\n\t * @return A list of all trades the account proposed.\n\t */\n\tList<TradeItem> getTradesFromAccount(long accountId);\n\n\t/**\n\t * Get the trades that the account is the receiver of.\n\t * @param accountId The id of the receiving account.\n\t * @return a list of trades that have been made to this account.\n\t */\n\tList<TradeItem> getTradesForAccount(long accountId);\n\n\t/**\n\t * Get all the trades that the receiver has accepted.\n\t * @param accountId The id of the proposer of the trade\n\t * @return a list of all the trades that the proposer made that have been accepted and not yet handles.\n\t */\n\tList<TradeItem> getUnhandledAcceptedTrades(long accountId);\n\n\t/**\n\t * Get all declined trades from an account.\n\t * @param accountId The proposer.\n\t * @return\n\t */\n\tList<TradeItem> getDeclinedTrades(long accountId);\n\n\t/**\n\t * Respond to a trade.\n\t * @param response If the user wishes to accept or reject the trade.\n\t */\n\tvoid respondToTrade(long tradeItemId, boolean response);\n}", "public void completeOrderTransaction(Transaction trans){\n }", "private void handleTransaction() throws Exception {\r\n\t\tString receiver;\r\n\t\tString amount;\r\n\t\tMessage sendTransaction = new Message().addData(\"task\", \"transaction\").addData(\"message\", \"do_transaction\");\r\n\t\tMessage response;\r\n\r\n\t\tthis.connectionData.getTerminal().write(\"enter receiver\");\r\n\t\treceiver = this.connectionData.getTerminal().read();\r\n\r\n\t\t// tries until a amount is typed that's between 1 and 10 (inclusive)\r\n\t\tdo {\r\n\t\t\tthis.connectionData.getTerminal().write(\"enter amount (1-10)\");\r\n\t\t\tamount = this.connectionData.getTerminal().read();\r\n\t\t} while (!amount.matches(\"[0-9]|10\"));\r\n\r\n\t\t// does the transaction\r\n\t\tsendTransaction.addData(\"receiver\", this.connectionData.getAes().encode(receiver)).addData(\"amount\",\r\n\t\t\t\tthis.connectionData.getAes().encode(amount));\r\n\r\n\t\tthis.connectionData.getConnection().write(sendTransaction);\r\n\r\n\t\tresponse = this.connectionData.getConnection().read();\r\n\t\tif (response.getData(\"message\").equals(\"success\")) {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction done\");\r\n\t\t} else {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction failed. entered correct username?\");\r\n\t\t}\r\n\t}", "public void subscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) {\n\t\t\n\t\tfinal SubscribeTradesCommand subscribeOrderbookCommand \n\t\t\t= new SubscribeTradesCommand(tradeSymbol);\n\t\t\n\t\tbitfinexApiBroker.sendCommand(subscribeOrderbookCommand);\n\t}", "@Override\n public void execute(IRetrievableStrategyTraderModel m) {\n try {\n m.buyEquityWithCommission(tickerSymbol, volume, time,\n portfolio, commission);\n } catch (Exception e) {\n if (e instanceof IllegalArgumentException) {\n System.out.println(e.getMessage());\n }\n System.out.println(ErrorMsg.CONTROLLER_BUY_STOCK_WITH_COMMISSION_FAIL.getMsg());\n }\n }", "@Override \n\tpublic TradeAction tick(double price) {\n\t\tma10before=average(priceQ10);\n\t\t\n\t\tif (priceQ10.size()<10)\n\t\t{\n\t\t\tpriceQ10.offer(price);\n\t\t}\n\t\tif(priceQ10.size()==10)\n\t\t{\n\t\t\tpriceQ10.poll();\n\t\t\tpriceQ10.offer(price);\t\t\n\t\t}\n\t\t\n\t\t ma10after=average(priceQ10);\n\t\t \n\t\t// 60 days moving average\n\t\tma60before=average(priceQ60);\n\t\tif (priceQ60.size()<60)\n\t\t{\n\t\t\tpriceQ60.offer(price);\n\t\t}\n\t\tif(priceQ60.size()==60)\n\t\t{\n\t\t\tpriceQ60.poll();\n\t\t\tpriceQ60.offer(price);\t\t\n\t\t}\n\t\tma60after=average(priceQ60);\n\t\t\t\n\t\t//buy when its 10 day moving average goes above the 60 day moving average\n\t\tif((ma10before < ma60before) & (ma10after > ma60after))\n\t\t{\n\t\t\tprofit = profit - price;\n\t\t\t//System.out.println(\"buy\");\n\t\t\t//System.out.println(\"profit is\");\n\t\t\t//System.out.println(profit);\n\t\t\tif(mark==1){\n\t\t\t\tmark=-1;\n\t\t\t\treturn TradeAction.BUY;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn TradeAction.DO_NOTHING;\n\t\t\t\n\t\t}\n\t\t//buy when its 10 day moving average goes below the 60 day moving average\n\t\tif((ma10before > ma60before) & (ma10after < ma60after))\n\t\t{\n\t\t\tprofit = profit + price;\n\t\t\t//System.out.println(\"sell\");\n\t\t\t//System.out.println(\"profit is\");\n\t\t\t//System.out.println(profit);\n\t\t\tif(mark==-1){\n\t\t\t\tmark=1;\n\t\t\t\treturn TradeAction.SELL;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn TradeAction.DO_NOTHING;\n\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn TradeAction.DO_NOTHING;\t\t\t\n\t\t}\n\n\t}", "@Test\n public void enterOrderWithMatchedActiveOrderToCreateTrade() throws Exception {\n List<LimitOrderRequest> orderRequests = new ArrayList<>();\n orderRequests.add(getLimitOrderRequest(Direction.BUY));\n orderRequests.add(getLimitOrderRequest(Direction.SELL));\n\n Trade tradeReference = Trade.builder()\n .matchPrice(orderRequests.get(0).getLimit())\n .matchQuantity(orderRequests.get(0).getQuantity())\n .ticker(orderRequests.get(0).getTicker())\n .buyOrder(1)\n .sellOrder(2)\n .build();\n\n //When: the orders are posted to the service\n for (LimitOrderRequest orderRequest : orderRequests) {\n String orderRequestJsonString = jsonMapper.writeValueAsString(orderRequest);\n performEnterOrderPostRequest(orderRequestJsonString);\n }\n\n MvcResult getResponse = mvc.perform(get(\"/status\")\n .contentType(MediaType.APPLICATION_JSON))\n .andReturn();\n\n PublicMarketStatus status = jsonMapper\n .readValue(getResponse.getResponse().getContentAsString(), PublicMarketStatus.class);\n\n //Then: the trade is shown correctly in the market and the orders disappear\n List<Ticker> tickers = status.getOrders();\n Assert.assertEquals(\"There is no ticker\", 0, tickers.size());\n\n List<Trade> trades = status.getTrades();\n Assert.assertEquals(\"There is a trade\", 1, trades.size());\n Trade trade = trades.get(0);\n Assert.assertEquals(\"Trade is correct one\", tradeReference, trade);\n\n }", "public void ExecuteSellOrder() throws SQLException, InvalidOrderException, InvalidAssetException, NegativePriceException, UnitException {\n // Current asset instance\n Asset currentAsset = Asset.findAsset(this.assetID);\n\n // Check if just ordered asset has corresponding order\n\n // Find buy orders of same asset\n Statement smt = connection.createStatement();\n String sqlFindOrder\n = \"SELECT * FROM orders WHERE assetID = '\" + assetID + \"' and orderType = 'BUY' \" +\n \"and orderStatus = 'INCOMPLETE' and unitID != '\" + this.unitID + \"' \" +\n \"ORDER BY orderTime;\";\n ResultSet buyOrders = smt.executeQuery(sqlFindOrder);\n\n // List to store corresponding buy orders of the same asset\n ArrayList<Order> matchingOrders = new ArrayList<>();\n\n // Add queried rows as new Buy Orders in list\n while (buyOrders.next()) {\n matchingOrders.add(\n new BuyOrder(\n buyOrders.getString(\"orderID\"),\n buyOrders.getString(\"userID\"),\n buyOrders.getString(\"unitID\"),\n buyOrders.getString(\"assetID\"),\n buyOrders.getString(\"orderTime\").substring(0,19),\n OrderStatus.valueOf(buyOrders.getString(\"orderStatus\")),\n OrderType.valueOf(buyOrders.getString(\"orderType\")),\n buyOrders.getDouble(\"orderPrice\"),\n buyOrders.getInt(\"orderQuantity\"),\n buyOrders.getInt(\"quantFilled\"),\n buyOrders.getInt(\"quantRemain\")\n )\n );\n }\n\n // Remove orders if the buy bid is less than the sell ask\n matchingOrders.removeIf(buys -> (buys.orderPrice < this.orderPrice));\n\n // List to store required orders that can fully/partially or completely not fill order\n ArrayList<Order> requiredOrders = new ArrayList<>();\n\n // Required asset amount to facilitate quantity of this order\n int requiredQuant = this.quantRemain;\n\n // Loop through orders matching conditions and append as many orders possible to\n // fully/partially facilitate this order\n for (int i = 0; i < matchingOrders.size(); i++) {\n // Stores quantity of current order in matchingOrders list\n int quantity = matchingOrders.get(i).quantRemain;\n if (requiredQuant > 0) {\n requiredOrders.add(matchingOrders.get(i));\n requiredQuant -= quantity;\n } else if (requiredQuant <= 0) {\n break;\n }\n }\n\n // If requiredOrders is filled it can either\n // - Have enough buy orders to fully facilitate the sell order\n // * Complete sell order (set COMPLETE flag, 0 quant remain, max quant fill)\n // * Update buyer and seller inventory numbers\n // * Change buy order (INCOMPLETE, quantFilled, quantRemain)\n // - Have enough buy orders to partially fill the sell order\n // * Complete the corresponding buy order/s (set COMPLETE flag, 0 quant remain, max quant fill)\n // * Change sell order (INCOMPLETE, change quant remain, change quant filled)\n // * Add inventory entry and update corresponding inventory numbers\n\n for (int i = 0; i < requiredOrders.size(); i++) {\n // How much this order has remaining to fill\n int sellQuant = this.quantRemain;\n // How much can this corresponding order faciliate of this order\n int buyQuant = requiredOrders.get(i).quantRemain;\n\n // Track executed quantity\n int executed = 0;\n\n if (buyQuant > sellQuant) {\n // When this order has more than the quantity required to fill remaining units\n\n // Stores how many more units the buy order has over this sell order\n this.quantFilled += sellQuant;\n this.quantRemain -= sellQuant;\n\n // Deduct the amount remaining of the sell order from the quantity remaining in the buy order\n requiredOrders.get(i).quantRemain -= sellQuant;\n requiredOrders.get(i).quantFilled += sellQuant;\n executed = sellQuant;\n\n // Change quantities in database\n ChangeQuantRemainFilled(this.quantRemain, this.quantFilled);\n requiredOrders.get(i).ChangeQuantRemainFilled(requiredOrders.get(i).quantRemain, requiredOrders.get(i).quantFilled);\n\n // Set complete status of this order\n this.ChangeStatus(OrderStatus.COMPLETE);\n\n } else if (buyQuant == sellQuant) {\n // When this order has exactly the same amount required to fill remaining units\n\n // Stores how many more units the buy order has over this sell order\n this.quantFilled += sellQuant;\n this.quantRemain -= sellQuant;\n\n // Deduct the amount remaining of the sell order from the quantity remaining in the buy order\n requiredOrders.get(i).quantRemain -= sellQuant;\n requiredOrders.get(i).quantFilled += sellQuant;\n executed = sellQuant;\n\n assert requiredOrders.get(i).quantRemain == 0;\n assert requiredOrders.get(i).quantFilled == requiredOrders.get(i).orderQuant;\n\n // Change quantities in database\n this.ChangeQuantRemainFilled(this.quantRemain, this.quantFilled);\n requiredOrders.get(i).ChangeQuantRemainFilled(requiredOrders.get(i).quantRemain, requiredOrders.get(i).quantFilled);\n\n // Set complete status of this order\n this.ChangeStatus(OrderStatus.COMPLETE);\n requiredOrders.get(i).ChangeStatus(OrderStatus.COMPLETE);\n\n } else {\n // When this order has less than required amount to fill remaining units\n\n // Stores how many more units the buy order has over this sell order\n this.quantFilled += requiredOrders.get(i).quantRemain;\n this.quantRemain -= requiredOrders.get(i).quantRemain;\n\n assert this.quantRemain + this.quantFilled == this.orderQuant;\n\n // Deduct the amount remaining of the sell order from the quantity remaining in the buy order\n requiredOrders.get(i).quantRemain -= buyQuant;\n requiredOrders.get(i).quantFilled += buyQuant;\n executed = buyQuant;\n\n assert requiredOrders.get(i).quantRemain == 0;\n assert requiredOrders.get(i).quantFilled == requiredOrders.get(i).orderQuant;\n\n // Change quantities in database\n ChangeQuantRemainFilled(this.quantRemain, this.quantFilled);\n requiredOrders.get(i).ChangeQuantRemainFilled(requiredOrders.get(i).quantRemain, requiredOrders.get(i).quantFilled);\n\n // Set complete status of this order\n ChangeStatus(OrderStatus.INCOMPLETE);\n requiredOrders.get(i).ChangeStatus(OrderStatus.COMPLETE);\n\n }\n\n // Change asset price\n currentAsset.SetPrice(requiredOrders.get(i).orderPrice);\n\n // Change inventory amounts\n new InventoryItem(this.unitID, this.assetID, requiredOrders.get(i).orderPrice, -executed, this.orderID);\n new InventoryItem(requiredOrders.get(i).unitID, requiredOrders.get(i).assetID, requiredOrders.get(i).orderPrice, executed, requiredOrders.get(i).orderID);\n\n // Set credit balance of units\n Unit sellerUnit = Unit.getUnit(this.unitID);\n sellerUnit.ChangeUnitBalance(this.unitID, requiredOrders.get(i).orderPrice * executed);\n Unit buyerUnit = Unit.getUnit(requiredOrders.get(i).unitID);\n buyerUnit.ChangeUnitBalance(requiredOrders.get(i).unitID, -requiredOrders.get(i).orderPrice * executed);\n }\n\n // If requiredOrders is empty, no current buy orders are able to facilitate sell order\n\n // Modify watchlist balances\n\n }", "public void setTRADE(java.lang.String TRADE) {\n this.TRADE = TRADE;\n }", "Trade getTrade(LocalDateTime dateTime) throws OrderBookTradeException;", "void editTransaction(ITransaction trans, ItemInterface tradeItem, String time, String place\n , String tradeType, IUserAccount user);", "@Override\r\n public void onClick(View view) {\n Log.d(\"WTF Buy stock at ppl detail\", \"0001 data:\" + StockData.getStockData(1).getDescription());\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Current M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n CommonAccount.getCurrentAccount().stockBuySell(1, 100);\r\n Log.d(\"WTF Buy stock at ppl detail\", \"After M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Amount of 0001:\" + CommonAccount.getCurrentAccount().getStockInventory(1));\r\n\r\n\r\n try {\r\n CommonAccount.updateCurrentAccount(activity_ppl_details.this);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(\"Cannot stock buy\", e.getMessage());\r\n }\r\n\r\n// Intent intent = new Intent(activity_ppl_details.this, activity_ppl_status.class);\r\n// startActivity(intent);\r\n\r\n Intent returnIntent = new Intent();\r\n setResult(RESULT_OK, returnIntent);\r\n\r\n finish();\r\n\r\n }", "@Scheduled(cron = \"0 0 0 * * ?\")\n\tpublic void executeMaturityTrades() {\n\t\tfinal Stream<Trade> maturedTrades = this.getTrades().stream()\n\t\t\t\t.filter(item -> item.getmDate().before(DateTimeUtils.getTodayDate()));\n\t\tmaturedTrades.forEachOrdered(item -> item.setExpired('Y'));\n\t\tSystem.out.println(\"All matured trades set to exprired.\");\n\t}", "private SpeechletResponse handleTransferMoneyExecute(Session session) {\n\t\treturn null;\n\t}", "public boolean trade(Type type, int[] trade) {\n \t\t// validate trade\n \t\tif (!canTrade(type, trade))\n \t\t\treturn false;\n \n \t\t// check for 2:1 trader\n \t\tfor (int i = 0; i < trade.length; i++) {\n \t\t\tif (Hexagon.TYPES[i] == Type.DESERT)\n \t\t\t\tcontinue;\n \n \t\t\t// check for specific 2:1 trader\n \t\t\tif (hasTrader(Hexagon.TYPES[i])\n \t\t\t\t\t&& getResources(Hexagon.TYPES[i]) >= 2 && trade[i] >= 2) {\n \t\t\t\taddResources(type, 1);\n \t\t\t\tuseResources(Hexagon.TYPES[i], 2);\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \n \t\t// normal 4:1 or 3:1 trade\n \t\tint value = tradeValue;\n \t\tfor (int i = 0; i < trade.length; i++) {\n \t\t\tif (Hexagon.TYPES[i] == Type.DESERT)\n \t\t\t\tcontinue;\n \n \t\t\tint number = getResources(Hexagon.TYPES[i]);\n \n \t\t\t// deduct from number of resource cards needed\n \t\t\tif (trade[i] >= value && number >= value) {\n \t\t\t\tuseResources(Hexagon.TYPES[i], value);\n \t\t\t\taddResources(type, 1);\n \n \t\t\t\tappendAction(R.string.player_traded_for, Hexagon\n \t\t\t\t\t\t.getTypeStringResource(type));\n \n \t\t\t\tfor (int j = 0; j < value; j++) {\n \t\t\t\t\tappendAction(R.string.player_traded_away, Hexagon\n \t\t\t\t\t\t\t.getTypeStringResource(Hexagon.TYPES[i]));\n \t\t\t\t}\n \n \t\t\t\treturn true;\n \t\t\t} else if (trade[i] > 0 && number >= trade[i]) {\n \t\t\t\tuseResources(Hexagon.TYPES[i], trade[i]);\n \t\t\t\tvalue -= trade[i];\n \t\t\t}\n \t\t}\n \n \t\t// this shouldn't happen\n \t\treturn false;\n \t}", "void makeMarketSellOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }", "public void setTrade(Trade t)\n\t{\n\t\tm_trade = t;\n\t}", "public void executeTransaction(Transaction transaction) {\n logger.info(\"Execute money transaction: {}\", transaction);\n validateTransaction(transaction);\n transferHKD(transaction);\n }", "@Override\n public void sell() {\n }", "public SecurityOrder executeMarketOrder(MarketOrderDto orderDto) {\n if (orderDto.getSize() == 0 || orderDto.getTicker() == null) {\n throw new IllegalArgumentException(\"Fields must not be null and size must be > 0\");\n }\n\n Quote quote = quoteDao.findById(orderDto.getTicker()).orElseThrow(() ->\n new IllegalArgumentException(\"The trader account specified could not be found\"));\n Account account = accountDao.findById(orderDto.getAccountId()).orElseThrow(() ->\n new IllegalArgumentException(\"No account found with specified accountId\"));\n\n SecurityOrder securityOrder = new SecurityOrder();\n securityOrder.setAccountId(orderDto.getAccountId());\n securityOrder.setSize(orderDto.getSize());\n securityOrder.setStatus(\"Starting\");\n securityOrder.setTicker(orderDto.getTicker());\n\n if (orderDto.getSize() > 0) {\n securityOrder.setPrice(quote.getAskPrice());\n handleBuyMarketOrder(orderDto, securityOrder, account);\n } else {\n securityOrder.setPrice(quote.getBidPrice());\n handleSellMarketOrder(orderDto, securityOrder,\n account);\n }\n return securityOrderDao.save(securityOrder);\n }", "public abstract void performPurchase(Player player);", "public Long getTradeId() {\n return tradeId;\n }", "@Override\r\n\tpublic Trade getTrade() {\n\t\treturn trade;\r\n\t}", "void acceptTrade(boolean accept);", "public void applyTrade(Trade trade) {\n\t\tthis.sharesOwned += trade.getNumberOfShares();\n\t}", "@Override\npublic void investment() {\n\t\n}", "public void handleBuyGuppyCommand() {\n if (Aquarium.money >= GUPPYPRICE) {\n guppyController.addNewEntity();\n Aquarium.money -= GUPPYPRICE;\n }\n }", "@Override\n public int execute() throws InterruptedOperationException, CancelOperationException {\n Logger logger = Log4j.getLogger();\n int success = 0;\n try {\n String accountNumber = null;\n BigDecimal amount = BigDecimal.ONE;\n Transaction transaction;\n LocalDateTime now;\n String userId = BankApp.getCurrentUser().getUserId();\n List<String> accountNumbers = accountDao.getAccountNumbers(userId);\n ConsoleHelper.println(\"\");\n ConsoleHelper.displayMenuBanner();\n ConsoleHelper.printlnWithTab(\"[DEPOSIT]\");\n ConsoleHelper.printAccountList();\n\n boolean isValidInput = false;\n do {\n ConsoleHelper.printWithTab(\"Into: \");\n String input = ConsoleHelper.readString();\n for (int i = 1; i <= accountNumbers.size(); i++) {\n if (input.equals(String.valueOf(i))) {\n accountNumber = accountNumbers.get(i - 1);\n isValidInput = true;\n break;\n }\n }\n\n } while (!isValidInput);\n\n isValidInput = false;\n do {\n ConsoleHelper.printWithTab(\"Amount: \");\n String input = ConsoleHelper.readString();\n try {\n double inputValue = Double.parseDouble(input);\n amount = BigDecimal.valueOf(inputValue);\n int decimalPlaces = ConsoleHelper.getNumberOfDecimalPlaces(amount);\n if (decimalPlaces == 0 && amount.compareTo(BigDecimal.valueOf(0)) > 0) {\n isValidInput = true;\n } else {\n ConsoleHelper.printlnWithTab(\"Invalid amount, we only accept whole number deposit.\");\n }\n } catch (NumberFormatException e) {\n // the amount format is not valid\n }\n } while (!isValidInput);\n\n int countAccount = accountDao.deposit(accountNumber, amount);\n now = LocalDateTime.now();\n Account account = accountDao.getAccount(accountNumber);\n transaction = new Transaction(TransactionType.DEPOSIT, userId, now, amount, account);\n int countTransaction = transactionDao.addTransaction(transaction);\n success = countAccount == 1 && countTransaction == 1 ? 1 : 0;\n if (success == 1) {\n ConsoleHelper.printlnWithTab(\"Deposit completed.\");\n ConsoleHelper.println(\"\");\n } else {\n ConsoleHelper.printlnWithTab(\"System failure, deposit cancelled. Please try later.\");\n }\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n logger.error(\"Interrupted Exception when thread sleep\", e);\n }\n } catch (CancelOperationException e) {\n // do nothing, allow user to return to main menu\n }\n return success;\n }" ]
[ "0.7090677", "0.67505515", "0.6435194", "0.6400208", "0.63061285", "0.6262683", "0.62363416", "0.6117755", "0.5917968", "0.5805658", "0.5788369", "0.5748778", "0.57441884", "0.5696448", "0.569186", "0.56672853", "0.5662553", "0.56482697", "0.56368256", "0.5616593", "0.5615435", "0.5614014", "0.56121254", "0.56069154", "0.55518675", "0.5535872", "0.55245125", "0.5516881", "0.55059844", "0.54389644", "0.54155564", "0.5415249", "0.5379291", "0.5366785", "0.5359811", "0.5359106", "0.5344704", "0.53389704", "0.53363746", "0.5313171", "0.5293856", "0.52849716", "0.5278216", "0.5269932", "0.52689046", "0.52517056", "0.5247898", "0.52455944", "0.5242476", "0.5238166", "0.521757", "0.5210197", "0.5210031", "0.5205826", "0.520438", "0.5204329", "0.52011067", "0.51963913", "0.51887065", "0.51821375", "0.517575", "0.51618963", "0.5157317", "0.51546925", "0.51357484", "0.5133578", "0.51326054", "0.5125142", "0.51234347", "0.51208854", "0.5112944", "0.51060134", "0.5105951", "0.5083954", "0.5077867", "0.5066322", "0.50584203", "0.50550276", "0.5045873", "0.50449985", "0.50439125", "0.5043504", "0.5041211", "0.5036968", "0.50072604", "0.4980728", "0.49680832", "0.49610543", "0.49590987", "0.49506408", "0.49453393", "0.4939379", "0.49333382", "0.49301", "0.49239457", "0.4915627", "0.48987764", "0.48969358", "0.48958418", "0.48909238" ]
0.5939472
8
Creates new form NewJFrame
public NewJFrame() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewJFrame() {\n Connect();\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "public NewJFrame() {\n initComponents();\n\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public NewJFrame1() {\n initComponents();\n }", "public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }", "public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }", "public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}", "public NewFrame() {\n initComponents();\n }", "public xinxiNewJFrame() {\n initComponents();\n }", "public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }", "public NewJFrame17() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public NewJFrame() {\n \n this.setIconImage(img.getImage());\n initComponents();\n \n }", "private JFrame showNewFrame(String title) {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(title);\n\t\tf.setSize(400, 500);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}", "public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\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 // frame.setSize(500,500);\n//\tvalidate();\n }", "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "private JFrame getJFrame() {\n\t\tif (jFrame == null) {\n\t\t\tjFrame = new JFrame();\n\t\t\tjFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjFrame.setJMenuBar(getJJMenuBar());\n\t\t\tjFrame.setSize(400, 200);\n\t\t\tjFrame.setContentPane(getJContentPane());\n\t\t\tjFrame.setTitle(\"Mancala\");\n\t\t}\n\t\treturn jFrame;\n\t}", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "public abstract void newWindow(ReFrame newFrame);", "void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }", "public NewJFrame() {\n initComponents();\n audioObject = new PlayAudio();\n setExtendedState(MAXIMIZED_BOTH);\n initTracks(); \n this.setVisible(true);\n jDialog1.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}", "Frame createFrame();", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }", "protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}", "static void abrir() {\n frame = new ModificarPesos();\n //Create and set up the window.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set up the content pane.\n frame.addComponentsToPane(frame.getContentPane());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public static JFrame makeFrame (String title)\n {\n\t// make the frame and put a new TextOutputPanel in it\n\tJFrame frame = new JFrame (title);\n\tfinal TextOutputPanel panel = new TextOutputPanel (frame);\n\tframe.setContentPane (panel);\n\tframe.setDefaultCloseOperation (frame.HIDE_ON_CLOSE);\n\n\t// make the menubar for the frame\n\tJMenuBar menuBar = new JMenuBar ();\n\tframe.setJMenuBar (menuBar);\n\n\tJMenu fileMenu = new JMenu (\"File\");\n\tmenuBar.add (fileMenu);\n\tfileMenu.add (new AbstractAction (\"Save As...\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.saveAs ();\n\t }\n\t});\n\n\tJMenu editMenu = new JMenu (\"Edit\");\n\tmenuBar.add (editMenu);\n\teditMenu.add (new AbstractAction (\"Copy\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.copy ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Select All\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.selectAll ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Clear\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.clear ();\n\t }\n\t});\n\n\tframe.pack ();\n\treturn frame;\n }", "public NewRoomFrame() {\n initComponents();\n }", "public JFrameConcatenar()\n {\n initComponents();\n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private JFrame makeFrame(String title, int width, int height, int close) {\r\n JFrame frame = new JFrame();\r\n frame.setTitle(title);\r\n frame.setLocation(700, 150);\r\n frame.setMinimumSize(new Dimension(width, height));\r\n frame.setResizable(false);\r\n frame.setDefaultCloseOperation(close);\r\n frame.setLayout(new BorderLayout());\r\n return frame;\r\n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }", "private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}", "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}", "public static void createAndShowMatrix() {\n JFrame frame = new JFrame(\"Results Matrix\");\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.getContentPane().add(new ResultsMatrix().getRootPanel());\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}", "public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}", "public static void main(String args[]) throws IOException {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n /* Create and display the form */\n\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n /*NewJFrame*/ clientFrame = new NewJFrame();\n clientFrame.setLocationRelativeTo(null);\n clientFrame.setVisible(true);\n clientFrame.OutputLogArea.setText(\"Welcome to DDND!\\nPlease enter your username in the log area followed by a class:\\n- cleric\\n- barbarian\\n- mage\\n- rogue\");\n //try to login to server\n\n //socket.leaveGroup(address);\n //socket.close(); \n }\n });\n }", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public QLHocSinhJFrame() {\n initComponents();\n }", "public Hwk2JFrame() {\n initComponents();\n }", "public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }", "private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "private void initialize() {\r\n\r\n\t\tfrmHistoriasDeZagas = new JFrame();\r\n\t\tfrmHistoriasDeZagas.getContentPane().setBackground(Color.BLACK);\r\n\t\tfrmHistoriasDeZagas.setTitle(\"Historias de Zagas\");\r\n\t\tfrmHistoriasDeZagas.setBackground(Color.WHITE);\r\n\t\tfrmHistoriasDeZagas\r\n\t\t\t\t.setIconImage(Toolkit\r\n\t\t\t\t\t\t.getDefaultToolkit()\r\n\t\t\t\t\t\t.getImage(\r\n\t\t\t\t\t\t\t\tArmas.class\r\n\t\t\t\t\t\t\t\t\t\t.getResource(\"/images/Historias de Zagas, logo.png\")));\r\n\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 462);\r\n\t\tfrmHistoriasDeZagas.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tfrmHistoriasDeZagas.getContentPane().setLayout(null);\r\n\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\tfrmHistoriasDeZagas.setResizable(false);\r\n\r\n\t\tfinal JButton btnNewButton = new JButton(\"JUGAR\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnNewButton.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJugar window = new Jugar();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnNewButton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnNewButton.setForeground(Color.WHITE);\r\n\t\tbtnNewButton.setBackground(new Color(139, 69, 19));\r\n\t\tbtnNewButton.setFont(mf.MyFont(0, 17));\r\n\t\tbtnNewButton.setBounds(10, 51, 414, 34);\r\n\t\tbtnNewButton.setBorderPainted(false);\r\n\t\tbtnNewButton.setContentAreaFilled(false);\r\n\t\tbtnNewButton.setFocusPainted(false);\r\n\t\tbtnNewButton.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton);\r\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\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\tfinal JButton btnCreadorDeNpcs = new JButton(\"CREADOR DE NPCs\");\r\n\t\tbtnCreadorDeNpcs.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tStartNPC.atrpoints = new AtributePoints();\r\n\t\t\t\tStartNPC.skpoints = new SkillPoints();\r\n\t\t\t\tStartNPC.atributos = new Atributes(StartNPC.atrpoints);\r\n\t\t\t\tStartNPC.combatSkills = new CombatSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowledgeSkills = new KnowledgeSkills(\r\n\t\t\t\t\t\tStartNPC.skpoints);\r\n\t\t\t\tStartNPC.magicSkills = new MagicSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowhowSkills = new KnowHowSkills(StartNPC.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStartNPC.character = new Characters(null, race, \"\", 0, 2, 10,\r\n\t\t\t\t\t\t20, 20, StartNPC.atributos, StartNPC.combatSkills,\r\n\t\t\t\t\t\tStartNPC.knowledgeSkills, StartNPC.magicSkills,\r\n\t\t\t\t\t\tStartNPC.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStartNPC window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new StartNPC();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\r\n\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDeNpcs.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tbtnCreadorDeNpcs.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDeNpcs.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDeNpcs.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDeNpcs.setBounds(10, 141, 414, 34);\r\n\t\tbtnCreadorDeNpcs.setBorderPainted(false);\r\n\t\tbtnCreadorDeNpcs.setContentAreaFilled(false);\r\n\t\tbtnCreadorDeNpcs.setFocusPainted(false);\r\n\t\tbtnCreadorDeNpcs.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDeNpcs);\r\n\r\n\t\tfinal JButton btnCreadorDePersonajes = new JButton(\r\n\t\t\t\t\"CREADOR DE PERSONAJES\");\r\n\t\tbtnCreadorDePersonajes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDePersonajes.setBorder(new BevelBorder(BevelBorder.RAISED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tbtnCreadorDePersonajes.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDePersonajes.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDePersonajes.setBorderPainted(false);\r\n\t\tbtnCreadorDePersonajes.setContentAreaFilled(false);\r\n\t\tbtnCreadorDePersonajes.setFocusPainted(false);\r\n\t\tbtnCreadorDePersonajes.setOpaque(false);\r\n\t\tbtnCreadorDePersonajes.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcrear = \"pj\";\r\n\t\t\t\tStart.atrpoints = new AtributePoints();\r\n\t\t\t\tStart.skpoints = new SkillPoints();\r\n\t\t\t\tStart.atributos = new Atributes(Start.atrpoints);\r\n\t\t\t\tStart.combatSkills = new CombatSkills(Start.skpoints);\r\n\t\t\t\tStart.knowledgeSkills = new KnowledgeSkills(Start.skpoints);\r\n\t\t\t\tStart.magicSkills = new MagicSkills(Start.skpoints);\r\n\t\t\t\tStart.knowhowSkills = new KnowHowSkills(Start.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStart.character = new Characters(null, race, \"\", 0, 2, 10, 20,\r\n\t\t\t\t\t\t20, Start.atributos, Start.combatSkills,\r\n\t\t\t\t\t\tStart.knowledgeSkills, Start.magicSkills,\r\n\t\t\t\t\t\tStart.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStart window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new Start();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDePersonajes.setBounds(10, 186, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDePersonajes);\r\n\r\n\t\tfinal JButton btnCreditos = new JButton(\"CRÉDITOS\");\r\n\t\tbtnCreditos.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreditos.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreditos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tCreditos window = new Creditos();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal JButton btnHistoria = new JButton(\"GESTOR DE PARTIDAS\");\r\n\t\tbtnHistoria.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tGestorMain window = new GestorMain();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnHistoria.setOpaque(false);\r\n\t\tbtnHistoria.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnHistoria.setForeground(Color.WHITE);\r\n\t\tbtnHistoria.setFont(mf.MyFont(0, 17));\r\n\t\tbtnHistoria.setFocusPainted(false);\r\n\t\tbtnHistoria.setContentAreaFilled(false);\r\n\t\tbtnHistoria.setBorderPainted(false);\r\n\t\tbtnHistoria.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnHistoria.setBackground(new Color(139, 69, 19));\r\n\t\tbtnHistoria.setBounds(10, 96, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnHistoria);\r\n\t\tbtnCreditos.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnCreditos.setForeground(Color.WHITE);\r\n\t\tbtnCreditos.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreditos.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreditos.setBounds(10, 321, 414, 34);\r\n\t\tbtnCreditos.setBorderPainted(false);\r\n\t\tbtnCreditos.setContentAreaFilled(false);\r\n\t\tbtnCreditos.setFocusPainted(false);\r\n\t\tbtnCreditos.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreditos);\r\n\r\n\t\tfinal JButton button = new JButton(\"SALIR\");\r\n\t\tbutton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer cerrar el programa?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttxtBienvenidoSeleccioneA = new JLabel();\r\n\t\ttxtBienvenidoSeleccioneA.setOpaque(false);\r\n\t\ttxtBienvenidoSeleccioneA.setForeground(Color.WHITE);\r\n\t\ttxtBienvenidoSeleccioneA.setBackground(new Color(205, 133, 63));\r\n\t\ttxtBienvenidoSeleccioneA.setBorder(null);\r\n\t\ttxtBienvenidoSeleccioneA.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtBienvenidoSeleccioneA.setFont(mf.MyFont(0, 13));\r\n\t\ttxtBienvenidoSeleccioneA\r\n\t\t\t\t.setText(\"Bienvenido, seleccione a qué servicio desea acceder.\");\r\n\t\ttxtBienvenidoSeleccioneA.setBounds(0, 0, 444, 40);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(txtBienvenidoSeleccioneA);\r\n\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbutton.setOpaque(false);\r\n\t\tbutton.setForeground(Color.WHITE);\r\n\t\tbutton.setFont(mf.MyFont(0, 17));\r\n\t\tbutton.setFocusPainted(false);\r\n\t\tbutton.setContentAreaFilled(false);\r\n\t\tbutton.setBorderPainted(false);\r\n\t\tbutton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null,\r\n\t\t\t\tnull));\r\n\t\tbutton.setBackground(new Color(139, 69, 19));\r\n\t\tbutton.setBounds(10, 366, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(button);\r\n\r\n\t\tfinal JButton btnAyuda = new JButton(\"AYUDA\");\r\n\t\tbtnAyuda.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAyudaPrincipal window = new AyudaPrincipal();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAyuda.setOpaque(false);\r\n\t\tbtnAyuda.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAyuda.setForeground(Color.WHITE);\r\n\t\tbtnAyuda.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAyuda.setFocusPainted(false);\r\n\t\tbtnAyuda.setContentAreaFilled(false);\r\n\t\tbtnAyuda.setBorderPainted(false);\r\n\t\tbtnAyuda.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnAyuda.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAyuda.setBounds(10, 276, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAyuda);\r\n\r\n\t\tfinal JButton btnPerfil = new JButton(\"PERFIL\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnPerfil.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnPerfil.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\tPerfil window = new Perfil();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (ClassNotFoundException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (InstantiationException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IllegalAccessException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnPerfil.setOpaque(false);\r\n\t\tbtnPerfil.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPerfil.setForeground(Color.WHITE);\r\n\t\tbtnPerfil.setFont(mf.MyFont(0, 17));\r\n\t\tbtnPerfil.setFocusPainted(false);\r\n\t\tbtnPerfil.setContentAreaFilled(false);\r\n\t\tbtnPerfil.setBorderPainted(false);\r\n\t\tbtnPerfil.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnPerfil.setBackground(new Color(139, 69, 19));\r\n\t\tbtnPerfil.setBounds(10, 231, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnPerfil);\r\n\r\n\t\tfinal JButton btnAdministracin = new JButton(\"ADMINISTRACI\\u00D3N\");\r\n\t\tbtnAdministracin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tAdministracionPrinc window = new AdministracionPrinc();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setVisible(false);\r\n\t\tbtnAdministracin.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAdministracin.setOpaque(false);\r\n\t\tbtnAdministracin.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAdministracin.setForeground(Color.WHITE);\r\n\t\tbtnAdministracin.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAdministracin.setFocusPainted(false);\r\n\t\tbtnAdministracin.setContentAreaFilled(false);\r\n\t\tbtnAdministracin.setBorderPainted(false);\r\n\t\tbtnAdministracin.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull,\r\n\r\n\t\t\t\tnull, null));\r\n\t\tbtnAdministracin.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAdministracin.setBounds(10, 321, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAdministracin);\r\n\t\r\n\r\n\t\tfinal JButton btnNewButton_1 = new JButton(\"(Desconectar)\");\r\n\t\t\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer desconectarte?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (Loader.usuario.length() == 0) {\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\tLoader.usuario = \"\";\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.BLUE);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setFont(mf.MyFont(3, 11));\r\n\t\tbtnNewButton_1.setFocusPainted(false);\r\n\t\tbtnNewButton_1.setContentAreaFilled(false);\r\n\t\tbtnNewButton_1.setBorderPainted(false);\r\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\tbtnNewButton_1.setBounds(-10, 416, 125, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton_1);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(Loader.usuario);\r\n\t\tlblNewLabel_1.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1.setFont(mf.MyFont(0, 11));\r\n\t\tlblNewLabel_1.setBounds(104, 416, 86, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/background-inicio.jpg\")));\r\n\t\tlblNewLabel.setBackground(Color.BLACK);\r\n\t\tlblNewLabel.setBounds(0, 0, 444, 472);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel);\r\n\t\tif (Loader.admin==1) {\r\n\t\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 500);\r\n\t\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\t\tbtnCreditos.setBounds(10, 365, 414, 34);\r\n\t\t\tbutton.setBounds(10, 410, 414, 34);\r\n\t\t\tlblNewLabel_1.setBounds(104, 455, 86, 17);\r\n\t\t\tbtnNewButton_1.setBounds(-10, 455, 125, 17);\r\n\t\t\tbtnAdministracin.setVisible(true);\r\n\t\t}\r\n\t}", "private void initialize() {\r\n\t\tsetTitle(\"The Amazing Malaysia\");\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\tsetBounds(100, 100, 764, 636);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tgetContentPane().setLayout(null);\r\n\t\t//frmTheAmazingMalaysia = new JFrame();\r\n\t\t//frmTheAmazingMalaysia.setTitle(\"The Amazing Malaysia\");\r\n\t\t//frmTheAmazingMalaysia.setIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\t//frmTheAmazingMalaysia.setBounds(100, 100, 764, 636);\r\n\t\t//frmTheAmazingMalaysia.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"The Amazing Malaysia\");\r\n\t\tlblNewLabel.setForeground(Color.WHITE);\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 35));\r\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel.setBounds(68, 0, 587, 56);\r\n\t\tgetContentPane().add(lblNewLabel);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/nl1.jpg\")));\r\n\t\tlblNewLabel_1.setBounds(36, 115, 179, 172);\r\n\t\tgetContentPane().add(lblNewLabel_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"New label\");\r\n\t\tlabel.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/r1.png\")));\r\n\t\tlabel.setBounds(290, 115, 179, 172);\r\n\t\tgetContentPane().add(label);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label);\r\n\t\t\r\n\t\tJLabel label_1 = new JLabel(\"New label\");\r\n\t\tlabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/rc1.jpg\")));\r\n\t\tlabel_1.setBounds(529, 115, 179, 172);\r\n\t\tgetContentPane().add(label_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_1);\r\n\t\t\r\n\t\tJLabel label_2 = new JLabel(\"New label\");\r\n\t\tlabel_2.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ll1.png\")));\r\n\t\tlabel_2.setBounds(290, 363, 179, 172);\r\n\t\tgetContentPane().add(label_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_2);\r\n\t\t\r\n\t\tJLabel label_3 = new JLabel(\"New label\");\r\n\t\tlabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/s1.jpg\")));\r\n\t\tlabel_3.setBounds(36, 363, 179, 172);\r\n\t\tgetContentPane().add(label_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_3);\r\n\t\t\r\n\t\tJLabel label_4 = new JLabel(\"New label\");\r\n\t\tlabel_4.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ck1.png\")));\r\n\t\tlabel_4.setBounds(529, 363, 179, 172);\r\n\t\tgetContentPane().add(label_4);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_4);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Nasi Lemak\");\r\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_2.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_2.setBounds(36, 287, 179, 56);\r\n\t\tgetContentPane().add(lblNewLabel_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\tJLabel lblRendang = new JLabel(\"Rendang\");\r\n\t\tlblRendang.setForeground(Color.WHITE);\r\n\t\tlblRendang.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRendang.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRendang.setBounds(290, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRendang);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRendang);\r\n\t\t\r\n\t\tJButton btnExit = new JButton(\"Exit\");\r\n\t\tbtnExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnExit.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/e1.png\")));\r\n\t\tbtnExit.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tbtnExit.setForeground(Color.WHITE);\r\n\t\tbtnExit.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 15));\r\n\t\tbtnExit.setBackground(Color.BLACK);\r\n\t\tbtnExit.setBounds(608, 0, 138, 60);\r\n\t\tgetContentPane().add(btnExit);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(btnExit);\r\n\t\t\r\n\t\tJLabel lblRotiCanai = new JLabel(\"Roti Canai\");\r\n\t\tlblRotiCanai.setForeground(Color.WHITE);\r\n\t\tlblRotiCanai.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRotiCanai.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRotiCanai.setBounds(529, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRotiCanai);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRotiCanai);\r\n\t\t\r\n\t\tJLabel lblHighlightDishes = new JLabel(\"Highlight dishes: \");\r\n\t\tlblHighlightDishes.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblHighlightDishes.setForeground(Color.WHITE);\r\n\t\tlblHighlightDishes.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblHighlightDishes.setBounds(236, 46, 233, 56);\r\n\t\tgetContentPane().add(lblHighlightDishes);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblHighlightDishes);\r\n\t\t\r\n\t\tJLabel lblSatay = new JLabel(\"Satay\");\r\n\t\tlblSatay.setForeground(Color.WHITE);\r\n\t\tlblSatay.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblSatay.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblSatay.setBounds(36, 533, 179, 56);\r\n\t\tgetContentPane().add(lblSatay);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblSatay);\r\n\t\t\r\n\t\tJLabel lblCurryLaksa = new JLabel(\"Curry Laksa\");\r\n\t\tlblCurryLaksa.setForeground(Color.WHITE);\r\n\t\tlblCurryLaksa.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblCurryLaksa.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblCurryLaksa.setBounds(290, 533, 179, 56);\r\n\t\tgetContentPane().add(lblCurryLaksa);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblCurryLaksa);\r\n\t\t\r\n\t\tJLabel lblChar = new JLabel(\"Char Kuey Teow\");\r\n\t\tlblChar.setForeground(Color.WHITE);\r\n\t\tlblChar.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblChar.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 25));\r\n\t\tlblChar.setBounds(529, 533, 179, 56);\r\n\t\tgetContentPane().add(lblChar);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblChar);\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/m2.png\")));\r\n\t\tlblNewLabel_3.setBounds(0, 0, 746, 589);\r\n\t\tgetContentPane().add(lblNewLabel_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_3);\r\n\t}", "public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public NewConnectionFrame() {\n initComponents();\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Enter Character Name\");\r\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.addWindowListener(new WindowListener()\r\n\t\t {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t } ) ;\r\n\r\n //Set up the content pane.\r\n addComponentsToPane(frame.getContentPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setSize(new Dimension(390,90)) ;\r\n frame.setVisible(true);\r\n frame.setResizable(false) ;\r\n }", "public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "public MFrame() {\n this.setTitle(\"Sistema Punto de Venta\");\n this.setLocationRelativeTo(null);\n this.setSize(new Dimension(800,600));\n this.setResizable(true);\n this.setVisible(true);\n initComponents();\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }", "public NewJFrame() {\n super(\"Users\");\n //int klj = Integer.parseInt(jLabel2.getText());\n //this.klj=Integer.parseInt(jLabel2.getText());\n initComponents();\n// ds();\n show_user();\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Identification-Badge-icon.png\")));\n jButton6.setVisible(false);\n //klj=Integer.parseInt(jTextField1.getText());\n //klj=model.getValueAt(selectedRowIndex, 0).toString();\n// public int ui;\n// ui=Integer.parseInt(jTextField1.getText());\n ////jLabel2.setText(String.valueOf(ui));\n }", "private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }", "public FichaDeContactoJFrame() {\n initComponents();\n }", "public ExampleJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void buildFrame() {\n mainFrame = new JFrame();\n header = new JLabel(\"View Contact Information\");\n header.setHorizontalAlignment(JLabel.CENTER);\n header.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));\n \n infoTable.setFillsViewportHeight(true);\n infoTable.setShowGrid(true);\n infoTable.setVisible(true);\n scrollPane = new JScrollPane(infoTable);\n\n mainFrame.add(header, BorderLayout.NORTH);\n mainFrame.add(scrollPane, BorderLayout.CENTER);\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}", "private void initialize() {\r\n\t\tfrmCadastro = new JFrame();\r\n\t\tfrmCadastro.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tfrmCadastro.setTitle(\"Cadastro\");\r\n\t\tfrmCadastro.setBounds(100, 100, 410, 213);\r\n\t\tfrmCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCadastro.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Aluno\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(25, 65, 160, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Funcionario\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton_1.setBounds(217, 65, 152, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJLabel lblQualCadastroDeseja = new JLabel(\"Qual cadastro deseja realizar?\");\r\n\t\tlblQualCadastroDeseja.setFont(new Font(\"Nirmala UI\", Font.BOLD | Font.ITALIC, 20));\r\n\t\tlblQualCadastroDeseja.setBounds(49, 20, 305, 34);\r\n\t\tfrmCadastro.getContentPane().add(lblQualCadastroDeseja);\r\n\r\n\t\t\r\n\t}", "public NewJFrame(DonHang donHang) {\n initComponents();\n DhDieuKhien ddk = new DhDieuKhien(btnSubmit, jtfMaDon, jdcNgayLenDon, jtfTinhTrang, jtfNguoiMua, jtfMatHang, jpnSoLuong, jlbThanhTien,jtfGia);\n ddk.setView(donHang);\n ddk.setEvent();\n }", "private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }", "private void setFrame()\r\n\t{\r\n\t\tthis.setName(\"Project 3\");\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setSize(300, 300);\r\n\t\tthis.setLocation(650, 100);\r\n\t\tthis.setVisible(false);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.add(panel, BorderLayout.CENTER);\r\n\t}", "public void createAndShowGUI(){\r\n\t\t//You want the jframe to close everything when it is closed\r\n\t\tjframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tif(maximized){\r\n\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\tsWidth = (int)screenSize.getWidth();\r\n\t\t\tsHeight = (int)screenSize.getHeight();\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\tjframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\tjframe.setUndecorated(true);\r\n\t\t\tjframe.setResizable(true);\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\tcWidth = sWidth;\r\n\t\t\tcHeight = sHeight;\r\n\t\t}else{\r\n\t\t\tjframe.setResizable(false);\r\n\t\t\t//Makes the jframe visible\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\t//Sets the size of the jframe\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\t\r\n\t\t\t//I have no fucking idea why it needs this but it does\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Set the content width\r\n\t\t\tcWidth = jframe.getContentPane().getWidth();\r\n\t\t\t//Set the content height\r\n\t\t\tcHeight = jframe.getContentPane().getHeight();\r\n\t\t}\r\n\r\n\t\t//Set up the game menu\r\n\t\tGameMenu gmenu = new GameMenu((Graphics2D)(jframe.getContentPane().getGraphics()),cWidth,cHeight, new Input(jframe));\r\n\t\t//Draw the main menu\r\n\t\tgmenu.drawMainMenu();\r\n\t}", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowMainWindow() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorld - Swing\");\n frame.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World!\");\n frame.getContentPane().setBackground(new Color(240, 240, 240));\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}", "private void initialize(CurrentProfile newUser) {\n\t\tfrmSignUp = new JFrame();\n\t\tfrmSignUp.setResizable(false);\n\t\t//frmSignUp.setAlwaysOnTop(true);\n\t\tfrmSignUp.setTitle(\"SIGN UP (1/6)\");\n\t\tfrmSignUp.setBounds(100, 100, 557, 483);\n\t\tfrmSignUp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmSignUp.getContentPane().setLayout(null);\n\t\tfrmSignUp.setVisible(true);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(12, 12, 531, 432);\n\t\tfrmSignUp.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t//allfield[0] = new JTextField();\n\t\t//allfield[0].setBounds(165, 60, 246, 20);\n\t\t//panel.add(allfield[0]);\n\t\t\n\t\tJLabel lblName = new JLabel(\"NAME\");\n\t\tlblName.setBounds(33, 67, 46, 14);\n\t\tpanel.add(lblName);\n\t\t\n\t\tJLabel lblDob = new JLabel(\"D.O.B\");\n\t\tlblDob.setBounds(33, 121, 46, 14);\n\t\tpanel.add(lblDob);\n\t\t\n\t\tJLabel lblFatherName = new JLabel(\"FATHER'S NAME\");\n\t\tlblFatherName.setBounds(33, 167, 109, 14);\n\t\tpanel.add(lblFatherName);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"EMAIL\");\n\t\tlblEmail.setBounds(33, 222, 46, 14);\n\t\tpanel.add(lblEmail);\n\t\t\n\t\tJLabel lblSex = new JLabel(\"SEX\");\n\t\tlblSex.setBounds(33, 271, 46, 14);\n\t\tpanel.add(lblSex);\n\t\t\n\t\tJLabel lblPicture = new JLabel(\"PICTURE\");\n\t\tlblPicture.setBounds(33, 332, 74, 14);\n\t\tpanel.add(lblPicture);\n\t\t\n\t\tJLabel lblUid = new JLabel(\"UID\");\n\t\tlblUid.setBounds(384, 22, 107, 16);\n\t\tlblUid.setText(Integer.toString(newUser.uid));\n\t\tpanel.add(lblUid);\n\t\t\n\t\ttxtName1 = new JTextField();\n\t\ttxtName1.setBounds(158, 64, 163, 20);\n\t\tpanel.add(txtName1);\n\t\ttxtName1.setColumns(10);\n\t\t\n\t\tJRadioButton rdbtnMale = new JRadioButton(\"Male\");\n\t\trdbtnMale.setBounds(153, 267, 109, 23);\n\t\tpanel.add(rdbtnMale);\n\t\t\n\t\tJRadioButton rdbtnFemale = new JRadioButton(\"Female\");\n\t\trdbtnFemale.setBounds(356, 267, 109, 23);\n\t\tpanel.add(rdbtnFemale);\n\t\t\n\t\tButtonGroup group = new ButtonGroup();\n\t\tgroup.add(rdbtnMale);\n\t\tgroup.add(rdbtnFemale);\n\t\t\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setText(\"DD-MM-YYYY\");\n\t\ttxtDate.setBounds(158, 118, 333, 20);\n\t\tpanel.add(txtDate);\n\t\ttxtDate.setColumns(10);\n\t\t\n\t\ttxtFather = new JTextField();\n\t\ttxtFather.setBounds(160, 164, 331, 20);\n\t\tpanel.add(txtFather);\n\t\ttxtFather.setColumns(10);\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\ttxtEmail.setBounds(158, 216, 333, 20);\n\t\tpanel.add(txtEmail);\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJButton btnSelect = new JButton(\"SELECT IMAGE\");\n\t\tbtnSelect.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtPhoto.setText(\"\");\n\t\t\t\tJFileChooser filechooser = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t \"Images\", \"jpg\",\"JPG\",\"GIF\", \"gif\",\"JPEG\",\"png\",\"PNG\");\n\t\t\t\tfilechooser.setFileFilter(filter);\n\t\t\t\t//ThumbNailView thumbsView = new ThumbNailView();\n\t\t\t\t//filechooser.setAccessory(new ImagePreview(filechooser));\n\t\t\t\tint returnVal = filechooser.showDialog(null,\"select an image\");\n\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tfile = filechooser.getSelectedFile();\n\t\t\t\t\ttxtPhoto.setText(file.getPath());\n\t\t\t\t\tnewUser.picLoc=file.getPath();\n\t\t\t\t//\tnewUser.picName=file.getName();\n\t\t\t\t\tnewUser.picLoc=newUser.picLoc.replace(\"\\\\\", \"\\\\\\\\\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSelect.setBounds(374, 326, 124, 26);\n\t\tpanel.add(btnSelect);\n\t\t\n\t\tJButton btnNext = new JButton(\">>\");\n\t\tbtnNext.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//String name,father,dob,email,photo;\n\t\t\t\t\n\t\t\t\tboolean f=false;\n\t\t\t\t\n\t\t\t\tdo{\n\t\t\t\t\tnewUser.nameFirst=txtName1.getText();\n\t\t\t\t\tnewUser.nameLast=txtName2.getText();\n\t\t\t\t\n\t\t\t\t\tnewUser.father=txtFather.getText();\n\t\t\t\t\tnewUser.dob=txtDate.getText();\n\t\t\t\t\tnewUser.email=txtEmail.getText();\n\t\t\t\t\tnewUser.picLoc=file.getPath();//.getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnFemale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='f';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnMale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='m';\n\t\t\t\t\t}\n\t\t\t\t\tif(newUser.nameFirst.length()!=0&&newUser.father.length()!=0&&newUser.dob.length()!=0&&newUser.email.length()!=0&&newUser.picLoc.length()!=0&&newUser.sex!=0){\n\t\t\t\t\t\tf=true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"enter every details!!!\");\n\t\t\t\t\t}\n\t\t\t\t}while(!f);\n\t\t\t\t/*try {\n\t\t\t\t\tf=newUser.l1Tableinsert();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\"+e1);\n\t\t\t\t}\n\t\t\t\tif(!f)\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\");\n\t\t\t\t*/\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSignL2Panel window = new SignL2Panel(newUser);\n\t\t\t\t\t\t\twindow.frmSignUp2.setVisible(true);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfrmSignUp.dispose();\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\tbtnNext.setBounds(433, 406, 98, 26);\n\t\tpanel.add(btnNext);\n\t\t\n\t\ttxtPhoto = new JTextField();\n\t\ttxtPhoto.setBounds(158, 329, 204, 20);\n\t\tpanel.add(txtPhoto);\n\t\ttxtPhoto.setColumns(10);\n\t\t\n\t\ttxtName2 = new JTextField();\n\t\ttxtName2.setBounds(333, 64, 158, 20);\n\t\tpanel.add(txtName2);\n\t\ttxtName2.setColumns(10);\n\t\t\n\t\t\n\t//\tpanel.setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{textField, datePicker, lblName, lblDob, lblFatherName, lblEmail, lblSex, lblPicture, rdbtnMale, rdbtnFemale}));\n\t\t//allfield[0].setColumns(10);\n\t\t\n\t}" ]
[ "0.796484", "0.7945892", "0.79161865", "0.78647804", "0.7763172", "0.76817715", "0.7648401", "0.75705475", "0.7474783", "0.7441117", "0.7441071", "0.7381736", "0.7241864", "0.7152069", "0.71234715", "0.7093774", "0.70620316", "0.7046038", "0.7001353", "0.6876144", "0.68730295", "0.6839108", "0.67915845", "0.668492", "0.6595544", "0.6589313", "0.65322", "0.65040064", "0.6491264", "0.64704055", "0.6437297", "0.64292765", "0.64054906", "0.64034057", "0.63977015", "0.63584495", "0.62989986", "0.62963825", "0.62949085", "0.62719226", "0.6254402", "0.6252156", "0.62513596", "0.62289715", "0.6227046", "0.62179726", "0.62157875", "0.62055755", "0.62044173", "0.6193791", "0.6193326", "0.6185335", "0.61759156", "0.61742026", "0.6166754", "0.6162535", "0.61582863", "0.6158079", "0.6154202", "0.6140779", "0.61397743", "0.6128629", "0.6123062", "0.61212313", "0.6102532", "0.60971355", "0.60969436", "0.6093347", "0.6092785", "0.6092317", "0.60912186", "0.6079369", "0.6076933", "0.6073533", "0.60734314", "0.6067038", "0.60622036", "0.6055792", "0.60554165", "0.6053233", "0.6052203", "0.60420203", "0.6040655", "0.60391635", "0.6037928", "0.6036092", "0.60289246", "0.60250616", "0.6014197", "0.60138345", "0.6013661", "0.60067236", "0.6000157", "0.5998613" ]
0.7931828
8
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel7 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jTabbedPane5 = new javax.swing.JTabbedPane(); jPanel12 = new javax.swing.JPanel(); jTextField2 = new javax.swing.JTextField(); jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jPanel3 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jPanel8 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); jPanel6 = new javax.swing.JPanel(); jTabbedPane3 = new javax.swing.JTabbedPane(); jPanel9 = new javax.swing.JPanel(); jTextField3 = new javax.swing.JTextField(); jPanel10 = new javax.swing.JPanel(); jPanel11 = new javax.swing.JPanel(); jTabbedPane4 = new javax.swing.JTabbedPane(); jPanel5 = new javax.swing.JPanel(); jCalendar1 = new com.toedter.calendar.JCalendar(); jDateChooser1 = new com.toedter.calendar.JDateChooser(); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jTextField2.setText("jTextField2"); javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12); jPanel12.setLayout(jPanel12Layout); jPanel12Layout.setHorizontalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addGap(141, 141, 141) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(213, Short.MAX_VALUE)) ); jPanel12Layout.setVerticalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addGap(24, 24, 24) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(106, Short.MAX_VALUE)) ); jTabbedPane5.addTab("tab1", jPanel12); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 446, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane5)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 196, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane5)) ); jTabbedPane1.addTab("tab1", jPanel1); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane1.setViewportView(jTextArea1); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(66, 66, 66) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(126, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(66, Short.MAX_VALUE)) ); jTabbedPane2.addTab("tab1", jPanel2); jTextField1.setText("jTextField1"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(105, 105, 105) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(249, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(44, 44, 44) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(86, Short.MAX_VALUE)) ); jTabbedPane2.addTab("tab2", jPanel3); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 434, Short.MAX_VALUE) ); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 155, Short.MAX_VALUE) ); jTabbedPane2.addTab("tab3", jPanel8); jTabbedPane1.addTab("tab2", jTabbedPane2); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 446, Short.MAX_VALUE) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 196, Short.MAX_VALUE) ); jTabbedPane1.addTab("tab3", jPanel4); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 446, Short.MAX_VALUE) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 196, Short.MAX_VALUE) ); jTabbedPane1.addTab("tab5", jPanel6); jTabbedPane1.addTab("tab6", jTabbedPane3); jTextField3.setText("jTextField3"); javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addGap(148, 148, 148) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(217, Short.MAX_VALUE)) ); jPanel9Layout.setVerticalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addGap(53, 53, 53) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(118, Short.MAX_VALUE)) ); jTabbedPane1.addTab("tab7", jPanel9); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 446, Short.MAX_VALUE) ); jPanel10Layout.setVerticalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 196, Short.MAX_VALUE) ); jTabbedPane1.addTab("tab8", jPanel10); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 446, Short.MAX_VALUE) ); jPanel11Layout.setVerticalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 196, Short.MAX_VALUE) ); jTabbedPane1.addTab("tab9", jPanel11); jTabbedPane1.addTab("tab10", jTabbedPane4); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 446, Short.MAX_VALUE) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 196, Short.MAX_VALUE) ); jTabbedPane1.addTab("tab4", jPanel5); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(149, Short.MAX_VALUE) .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 458, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(70, 70, 70)) .addGroup(layout.createSequentialGroup() .addGap(29, 29, 29) .addComponent(jCalendar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(101, 101, 101) .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jCalendar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGap(74, 74, 74) .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(89, 89, 89)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.69450074", "0.6944328", "0.6937169", "0.6931577", "0.6927632", "0.692602", "0.6925518", "0.6911884", "0.69111824", "0.6894571", "0.68920577", "0.68919677", "0.6891793", "0.6889509", "0.6884149", "0.6883326", "0.68815684", "0.68778104", "0.6876167", "0.6873792", "0.687072", "0.6859156", "0.6856744", "0.6855844", "0.6854915", "0.68542576", "0.68534344", "0.6852383", "0.6852383", "0.6845196", "0.68370795", "0.6836554", "0.6830521", "0.68290323", "0.6827711", "0.68255705", "0.6822908", "0.68180746", "0.68179923", "0.6811043", "0.6809639", "0.68095654", "0.6808346", "0.68082345", "0.68017685", "0.67943394", "0.67933774", "0.6793048", "0.6791145", "0.67897683", "0.6788624", "0.6788244", "0.6781776", "0.67674303", "0.6767318", "0.6764773", "0.6758625", "0.6757251", "0.6753117", "0.6751926", "0.67432684", "0.6740031", "0.67374456", "0.6737373", "0.6734546", "0.6727067", "0.67267615", "0.67210555", "0.6716679", "0.6715794", "0.6715694", "0.6709429", "0.67086613", "0.67038596", "0.6702431", "0.67014176", "0.67002505", "0.66993576", "0.6694831", "0.66915953", "0.6690518" ]
0.0
-1
Score a square matrix of final hands. Evaluates all possible pairs except the diagonal; returns the sum of first against second. NOTE: These must be in the same order, that is, first[i] and second[i] each contain the same final card for each i.
int score(OfcHandMatrix matrix);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int stoneGameII(int[] piles) {\n int n = piles.length;\n memo = new int[n][n];\n sums = new int[n];\n sums[n-1] = piles[n-1];\n for(int i = n -2; i>=0;i--) {\n sums[i] = sums[i+1] + piles[i]; //the sum from piles[i] to the end\n }\n int score = helper(0, 1, piles);\n return score;\n }", "private static void sum(int[][] first, int[][] second) {\r\n\t\tint row = first.length;\r\n\t\tint column = first[0].length;\r\n\t\tint[][] sum = new int[row][column];\r\n\r\n\t\tfor (int r = 0; r < row; r++) {\r\n\t\t\tfor (int c = 0; c < column; c++) {\r\n\t\t\t\tsum[r] = first[r] + second[r];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nSum of Matrices:\\n\");\r\n\t\tprint2dArray(sum);\r\n\t}", "public int matrixScore(int[][] A) {\n int n = A.length, m = A[0].length, ans = 0;\n for (int i = 0; i < n; ++i) {\n if (A[i][0] == 0) {\n flipRow(A, i);\n }\n }\n for (int j = 1; j < m; ++j) {\n int cnt = 0;\n for (int i = 0; i < n; ++i) {\n cnt += A[i][j];\n }\n if (cnt * 2 < n) {\n flipCol(A, j);\n }\n }\n for (int i = 0; i < n; ++i) {\n int cur = 0;\n for (int j = 0; j < m; ++j) {\n cur = (cur << 1) + A[i][j];\n }\n ans += cur;\n }\n return ans;\n}", "public static int scoreHand( Hand scoredHand, Hand otherHand ){\n int score = 0;\n for (int i = 0; i < scoredHand.getHandSize(); i++) {\n if (scoredHand.getCardAt(i).getRank()== 1) {\n score += 15;\n } else if (scoredHand.getCardAt(i).getRank() >= 11\n && scoredHand.countInHand(scoredHand.getCardAt(i).getSuit()) > 2) {\n score += 10;\n } else if (scoredHand.getCardAt(i).getRank() >= 6\n && scoredHand.getCardAt(i).getRank() <= 10\n && (scoredHand.countInHand(scoredHand.getCardAt(i).getRank() + 1) >= 1\n || scoredHand.countInHand(scoredHand.getCardAt(i).getRank() - 1) >= 1)) {\n score += 8;\n } else if (scoredHand.getCardAt(i).getRank() >= 2\n && scoredHand.getCardAt(i).getRank() <= 5\n && otherHand.countOfFaceCards() >= 1) {\n score += 7;\n }\n } return score;\n }", "private boolean checkSecondaryDiagonal() {\n int diagonalSum = 0;\n for (int i = 0; i < dimensions; i++) {\n diagonalSum += square[(dimensions - 1) * i + dimensions - 1];\n }\n\n return diagonalSum == magicConst;\n }", "private static int findWinner(ArrayList<ArrayList<Card>> hands,\n ArrayList<Card> tableCardsFinal) {\n FiveCardHand bestHand = null;\n int bestHandIndex = -1;\n for (int i = 0; i < hands.size(); i++) {\n ArrayList<Card> hand = hands.get(i);\n ArrayList<Card> handOfSeven = (ArrayList<Card>) hand.clone();\n handOfSeven.addAll(tableCardsFinal);\n FiveCardHand best = findBestHand(handOfSeven);\n\n if (bestHand == null) {\n bestHand = best;\n bestHandIndex = i;\n } else if (best.compareTo(bestHand) > 0) {\n bestHand = best;\n bestHandIndex = i;\n } else if (best.compareTo(bestHand) == 0) { // handle ties by returning hands.size()\n bestHandIndex = hands.size();\n }\n }\n\n return bestHandIndex;\n }", "public static void computeRanks(int first, int second) {\r\n\r\n double AOld[], A[];\r\n double BOld[], B[];\r\n double diffOld[], diff[];\r\n int ties, N, pointer;\r\n boolean sign[];\r\n double ranks[];\r\n double RA, RB;\r\n ArrayList<Double> walsh;\r\n int criticalN;\r\n String interval;\r\n\r\n AOld = new double[rows];\r\n BOld = new double[rows];\r\n diffOld = new double[rows];\r\n\r\n ties = 0;\r\n\r\n for (int i = 0; i < rows; i++) {\r\n\r\n if (Configuration.getObjective() == 1) {\r\n AOld[i] = data[i][first];\r\n BOld[i] = data[i][second];\r\n } else {\r\n AOld[i] = data[i][second];\r\n BOld[i] = data[i][first];\r\n }\r\n\r\n diffOld[i] = Math.abs(AOld[i] - BOld[i]);\r\n\r\n if (diffOld[i] == 0.0) {\r\n ties++;\r\n }\r\n }\r\n\r\n N = rows - ties;\r\n\r\n A = new double[N];\r\n B = new double[N];\r\n diff = new double[N];\r\n sign = new boolean[N];\r\n ranks = new double[N];\r\n\r\n pointer = 0;\r\n\r\n for (int i = 0; i < rows; i++) {\r\n\r\n if (diffOld[i] != 0.0) {\r\n A[pointer] = AOld[i];\r\n B[pointer] = BOld[i];\r\n diff[pointer] = Math.abs(A[pointer] - B[pointer]);\r\n if ((A[pointer] - B[pointer]) > 0.0) {\r\n sign[pointer] = true;\r\n } else {\r\n sign[pointer] = false;\r\n }\r\n pointer++;\r\n }\r\n\r\n }\r\n\r\n //compute ranks\r\n double min;\r\n double points;\r\n int tied;\r\n String tiedString = \"\";\r\n\r\n Arrays.fill(ranks, -1.0);\r\n\r\n for (int rank = 1; rank <= N;) {\r\n min = Double.MAX_VALUE;\r\n tied = 1;\r\n\r\n for (int i = 0; i < N; i++) {\r\n if ((ranks[i] == -1.0) && diff[i] == min) {\r\n tied++;\r\n }\r\n if ((ranks[i] == -1.0) && diff[i] < min) {\r\n min = diff[i];\r\n tied = 1;\r\n }\r\n\r\n }\r\n\r\n //min has the lower unassigned value\r\n if (tied == 1) {\r\n points = rank;\r\n } else {\r\n tiedString += (tied + \"-\");\r\n points = 0.0;\r\n for (int k = 0; k < tied; k++) {\r\n points += (rank + k);\r\n }\r\n points /= tied;\r\n }\r\n\r\n for (int i = 0; i < N; i++) {\r\n if (diff[i] == min) {\r\n ranks[i] = points;\r\n }\r\n }\r\n\r\n rank += tied;\r\n }\r\n\r\n //compute sumOfRanks\r\n\r\n RA = 0.0;\r\n RB = 0.0;\r\n\r\n for (int i = 0; i < ranks.length; i++) {\r\n if (sign[i]) {\r\n RA += ranks[i];\r\n } else {\r\n RB += ranks[i];\r\n }\r\n }\r\n\r\n //Treatment of 0's\r\n double increment;\r\n double sum0;\r\n if (ties > 1) {\r\n //discard a tie if there's an odd number of them\r\n if (ties % 2 == 1) {\r\n increment = ties - 1.0;\r\n } else {\r\n increment = ties;\r\n }\r\n\r\n //Adition of 0 ranked differences\r\n sum0 = (((double) increment + 1.0) * (double) increment) / 2.0;\r\n sum0 /= 2.0;\r\n\r\n RA += sum0;\r\n RB += sum0;\r\n\r\n //Reescaling of the rest of ranks\r\n for (int i = 0; i < ranks.length; i++) {\r\n if (sign[i]) {\r\n RA += increment;\r\n } else {\r\n RB += increment;\r\n }\r\n }\r\n }\r\n \r\n //save the ranks\r\n wilcoxonRanks[first][second] = RA;\r\n wilcoxonRanks[second][first] = RB;\r\n\r\n //compute exact pValue\r\n exactPValues[first][second] = WilcoxonDistribution.computeExactProbability(N, RB);\r\n exactPValues[second][first] = WilcoxonDistribution.computeExactProbability(N, RA);\r\n\r\n //compute asymptotic P Value\r\n\r\n int tiesDistribution[];\r\n\r\n tiesDistribution = decode(tiedString);\r\n\r\n asymptoticPValues[first][second] = WilcoxonDistribution.computeAsymptoticProbability(N, RB, tiesDistribution);\r\n asymptoticPValues[second][first] = WilcoxonDistribution.computeAsymptoticProbability(N, RA, tiesDistribution);\r\n\r\n //compute confidence intervals\r\n walsh = new ArrayList<Double>();\r\n\r\n double aux, aux2;\r\n for (int i = 0; i < diffOld.length - 1; i++) {\r\n if (Configuration.getObjective() == 1) {\r\n aux = AOld[i] - BOld[i];\r\n } else {\r\n aux = BOld[i] - AOld[i];\r\n }\r\n\r\n walsh.add(aux);\r\n for (int j = i + 1; j < diffOld.length; j++) {\r\n if (Configuration.getObjective() == 1) {\r\n aux2 = AOld[j] - BOld[j];\r\n } else {\r\n aux2 = BOld[j] - AOld[j];\r\n }\r\n walsh.add((aux + aux2) / 2.0);\r\n }\r\n }\r\n\r\n Collections.sort(walsh);\r\n\r\n //Find critical levels\r\n\r\n criticalN = findCriticalValue(diffOld.length, 0.05, tiesDistribution);\r\n criticalN = Math.max(criticalN, 0);\r\n\r\n //Build interval\r\n interval = \"[\";\r\n interval += nf.format(walsh.get(criticalN));\r\n interval += \" , \";\r\n interval += nf.format(walsh.get(walsh.size() - (criticalN + 1)));\r\n interval += \"]\";\r\n\r\n confidenceIntervals95[first][second] = interval;\r\n exactConfidence95[first][second] = 1.0 - (WilcoxonDistribution.computeExactProbability(diffOld.length, criticalN));\r\n\r\n criticalN = findCriticalValue(diffOld.length, 0.1, tiesDistribution);\r\n criticalN = Math.max(criticalN, 0);\r\n\r\n //Build interval\r\n interval = \"[\";\r\n interval += nf.format(walsh.get(criticalN));\r\n interval += \" , \";\r\n interval += nf.format(walsh.get(walsh.size() - (criticalN + 1)));\r\n interval += \"]\";\r\n\r\n confidenceIntervals90[first][second] = interval;\r\n exactConfidence90[first][second] = 1.0 - (WilcoxonDistribution.computeExactProbability(diffOld.length, criticalN));\r\n\r\n }", "public int getScore(Card[] deal) {\r\n\t\t\r\n\t\t// Create a new ArrayList for the final hand\r\n\t\tArrayList<Card> finalHand = new ArrayList<Card>();\r\n\t\tfinalHand.addAll(this.cards);\r\n\t\tfinalHand.addAll(Arrays.asList(deal));\r\n\t\t// Sort the final hand\r\n\t\tCard.sortByFace(finalHand.toArray());\r\n\t\t\r\n\t\tint lastIndex = finalHand.size()-1;\r\n\t\tif (isStraight(finalHand)) {\r\n\t\t\tif (isFlush(finalHand)) {\r\n\t\t\t\tif (finalHand.get(0).getFace() == 10) {\r\n\t\t\t\t\treturn ROYAL_FLUSH + finalHand.get(0).getSuit();\r\n\t\t\t\t}\r\n\t\t\t\t// Adds score to STRAIGHT_FLUSH based on suit (14 is the highest face value))\r\n\t\t\t\treturn STRAIGHT_FLUSH + (finalHand.get(lastIndex).getSuit() *14);\r\n\t\t\t}\r\n\t\t\t// Adds score to STRAIGHT base on face value of highest card\r\n\t\t\treturn STRAIGHT + finalHand.get(lastIndex).getFace();// *finalHand.get(lastIndex).getSuit());\r\n\t\t}\r\n\r\n\t\tint count = 0;\r\n\t\t// fourOfaKind logic...\r\n\t\tMap<Integer, Integer> values = new HashMap<Integer, Integer>();\r\n\t\tint prev = 0;\r\n\t\tfor (Card card: finalHand) {\r\n\t\t\tif (values.get(card.getFace()) == null ||\r\n\t\t\t\t\tvalues.get(card.getFace()) != prev) {\r\n\t\t\t\tvalues.put(card.getFace(), 1);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tint add = values.get(card.getFace());\r\n\t\t\t\tvalues.replace(card.getFace(), add+1);\r\n\t\t\t}\r\n\t\t\tprev = values.get(card.getFace());\r\n\t\t}\r\n\t\tSystem.out.println(values);\r\n//\t\tint highest = 0;\r\n//\t\tfor (Integer card : values.values()) {\r\n//\t\t\tif (card)\r\n//\t\t}\r\n\t\treturn count;\r\n\t}", "public static int example5(int[] first, int[] second) { // assume equal-length arrays\r\n\t\tint n = first.length, count = 0;\r\n\t\tfor (int i = 0; i < n; i++) { // loop from 0 to n-1\r\n\t\t\tint total = 0;\r\n\t\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1\r\n\t\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\t\ttotal += first[k];\r\n\t\t\tif (second[i] == total)\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public boolean pairTest()\n\t{\n\t\tboolean pair = false;\n\t\tint index = 0;\n\t\t\n\t\twhile (index<(hand.length-1) && (!pair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\tpair = true;\n\t\t\t\thandScore = 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// If there's a pair, resolve kickers\n\t\tif (pair)\n\t\t{\n\t\t\tswitch (index)\n\t\t\t{\n\t\t\t\tcase 0:\t\t// Pair includes first two cards\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\tfor (int i=2; i<MAX_CARDS; i++)\n\t\t\t\t\t\t\thandScore += intRep[i]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\t\t// Pair excludes first card, includes 2nd-3rd\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += intRep[0];\n\t\t\t\t\t\thandScore += (intRep[3] + intRep[4]); }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2:\t\t// Pair excludes first two, includes 3-4\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1]);\n\t\t\t\t\t\thandScore += intRep[4]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\t// Anything else where the kickers are higher than pair\n\t\t\t\t\tif (!twoPairTest(index))\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1] + intRep[2]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn pair;\n\t}", "protected static void printPairsEqualToSum(int[] arr1, int[] arr2, int sum) {\n\t\t\r\n\t\tint count = 0; \r\n\t \r\n\t\t// creating an arraylist from first array to use the contains() method\r\n\t ArrayList<Integer> as = new ArrayList<Integer>(); \r\n\t \r\n\t // insert all the elements \r\n\t // of 1st array in the arraylist \r\n\t // table(unordered_set 'as') \r\n\t for (int i = 0; i < arr1.length; i++) {\r\n\t as.add(arr1[i]); \r\n\t }\r\n\t // for each element of arr2[] \r\n\t for (int j = 0; j < arr2.length; j++) {\r\n\t \r\n\t // find all cases where(x - arr2[j]) in 'as' \r\n\t if (as.contains(sum - arr2[j])) { // if pair element is found in array 1\r\n\t for (int k: as) { // repeat print for duplicate entries in the arraylist as\r\n\t \tif (k == sum - arr2[j]) { \r\n\t \tcount++; \r\n\t \tSystem.out.println(\"[\"+ (sum-arr2[j]) + \",\" + arr2[j] + \"]\"); //display in paired form\r\n\t \t}\r\n\t }\r\n\t }\r\n\t }\r\n\t \r\n\t if (count == 0) { // if no combos are found\r\n\t \tSystem.out.println(\"No pairs found.\");\r\n\t }\r\n\t\t\r\n\t}", "public void evaluateHand(){only public for testing\n //hand types will be\n //1 royal flush\n //2 straight flush\n //3 four of a kind\n //4 full house\n //5 flush\n //6 straight\n //7 three of a kind\n //8 two pair\n //9 pair\n //10 high card\n //hand secondary values will have to some how account for\n //the lead card of a flush or straight or the bigger pair\n //\n HandType = 0;\n\n //----------checking flush----------\n boolean flush = true;//will flip the vriable when proven wrong\n //if Hand.suites all equal\n for(Card c : Hand) {\n if (!c.getSuite().contains(Hand[0].getSuite())) {\n flush = false;\n }\n }\n //--Handtype = 5//flush\n if(flush){\n HandType=5;\n }\n\n //----------checking pair, two pair, boat,three of a kind, four of a kind----------\n int countmatches=0;\n HashMap<Integer, ArrayList<Card>> maskd = new HashMap<>();\n int[] mask = new int[5];\n int currentmask=1;\n maskd.put(0, new ArrayList<>());\n mask[0]=0;\n maskd.get(0).add(this.Hand[0]);\n //if any two hand.value equal\n for(int comp = 0; comp<Hand.length;comp++){//comparitor\n for(int check = comp+1; check<Hand.length;check++) {//checker\n //System.out.print(\"{\"+comp+check+\"}\");\n if(0==Hand[comp].compareTo(Hand[check])){\n //System.out.println(\"pair\"+Hand[comp]+Hand[check]);\n countmatches++;\n /*if(pairprimary==0&&!(pairprimary==Hand[check].getValue())){\n pairprimary=Hand[check].getValue();\n }else if(pairsecondary==0){\n pairsecondary=Hand[check].getValue();\n }//this wont work for boats\n */\n //create mask?\n if(mask[comp]==0){\n mask[comp]=currentmask;\n maskd.put(currentmask,new ArrayList<>());\n maskd.get(currentmask).add(this.Hand[comp]);\n currentmask++;\n if(maskd.get(0).contains(this.Hand[comp])){\n maskd.get(0).remove(this.Hand[comp]);\n }\n }\n mask[check]=mask[comp];\n if(!maskd.get(mask[comp]).contains(this.Hand[check])) {\n if(maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).remove(this.Hand[check]);\n maskd.get(mask[comp]).add(this.Hand[check]);\n }\n continue;\n }\n if(!maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).add(this.Hand[check]);\n }\n }\n\n //for(int m:maskd.keySet())\n // System.out.print(\"\"+m+\":\"+maskd.get(m));\n //System.out.println(\"\");\n\n if(HandType==0)\n switch (countmatches){ //basically i'm counting the collisions\n case 1: HandType=9;break;//one pair\n case 2: HandType=8;break;//two pair\n case 3: HandType=7;break;//triple\n case 4: HandType=4;break;//boat\n case 6: HandType=3;break;//four of a kind\n case 10: HandType=-1;break;//five of a kind\n }//reorder cards by mask?\n if(countmatches>0){\n Card[] newhand = new Card[5];\n int bigger = 0;\n if(currentmask==3) {//two pair boat\n //two pair\n if (maskd.get(1).get(0).getValue()\n > maskd.get(2).get(0).getValue()) {\n bigger = 1;\n } else {\n bigger = 2;\n }\n\n //boat\n if (maskd.get(1).size() == 3) {\n bigger = 1;\n }\n if (maskd.get(2).size() == 3) {\n bigger = 2;\n }\n }else {\n //one pair???\n bigger = 1;\n }\n\n for(int i = 0; i<5;i++){\n //if(maskd.containsKey(bigger)) {\n if(!maskd.get(bigger).isEmpty()) {\n newhand[i] = maskd.get(bigger).get(0);\n //if (maskd.get(bigger).size() > 0) {\n maskd.get(bigger).remove(0);\n //} else {\n // bigger = Math.abs(bigger - 3);\n //}\n }else{\n if(maskd.containsKey(Math.abs(bigger-3))){\n if(!maskd.get(Math.abs(bigger-3)).isEmpty()){\n bigger = Math.abs(bigger-3);\n }else{\n bigger = 0;\n }\n }else{\n bigger = 0;\n }\n i--;\n }\n //}\n\n }//end for loop\n\n //end pair bits\n\n //System.out.println(newhand);\n this.Hand=newhand;\n }//end reshuffle hand if statement\n //----------checking for straight----------\n //if first card is ace and second card is a 5, treat ace as one\n if(Hand[0].getValue()==14&&Hand[1].getValue()==5) {\n Hand[0] = new Card(\"Ace\", Hand[0].getSuite(), 1);\n //Hand[0].Value=1;\n this.sortHand();\n this.flipHand();\n }\n //go through hand and see if all 5 values are consecutive\n int n = Hand[0].getValue();\n boolean straight = true;\n for(int i = 1;i<Hand.length; i++){\n n--;\n if(!(Hand[i].getValue()==n)){\n straight=false;\n }\n }\n if(straight){\n //if above true\n //--if handtype = 5\n if(HandType==5) {\n //----if card1 is ace\n if (Hand[0].getValue() == 14) {\n //------handtype = 1 //royal flush\n HandType = 1;\n } else {\n //----else\n HandType=2;\n //------handtype = 2 //straight flush\n }\n }else {\n //--else //not a flush\n HandType=6;\n //----handtype = 6 //straight\n }\n }\n\n //----------checking high card----------\n //if handtype = 0\n if(HandType==0) {\n HandType=10;\n //--hand card = 10\n }\n }", "public static Integer getScoreFor_RollOnTwoPairs(Dice dice) \r\n\t{\r\n\t\tlog.debug(\"Inside method getScoreFor_RollOnTwoPairs\");\r\n\t\t\r\n\t\tInteger score = 0;\r\n\t\tInteger tempScore = 0;\r\n\t\tInteger pairCount = 0;\r\n\t\t\r\n\t\tMap<Integer, Integer> map = dice.getDiceNumberCountMap();\r\n\t\t\r\n\t\tfor ( Integer diceNumber : map.keySet() )\r\n\t\t{\r\n\t\t\t// if we can find a number in pair\r\n\t\t\tif ( map.get(diceNumber) >= 2 ) \r\n\t\t\t{\r\n\t\t\t\tpairCount = pairCount + 1;\r\n\t\t\t\t\r\n\t\t\t\ttempScore = tempScore + diceNumber * 2;\r\n\t\t\t\t\r\n\t\t\t\t// if pair count is 2 then score\r\n\t\t\t\tscore = ( pairCount == 2 ) ? tempScore : score;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn score;\r\n\t}", "private int[] buildMatrix(Vector<Integer> first, Vector<Integer> second) {\n \tint[] res = new int[4];\n \tint fValue;\n \tint sValue;\n \t\n \tfor (int i = 0; i < first.size(); ++i) {\n \t\tfValue = first.get(i);\n \t\tsValue = second.get(i);\n \t\t\n \t\tif (fValue == sValue && fValue == 1) {\n \t\t\tres[0]++;\n \t\t}\n \t\telse if (fValue == sValue && fValue == 0) {\n \t\t\tres[3]++;\n \t\t}\n \t\telse if (fValue == 1) {\n \t\t\tres[1]++;\n \t\t}\n \t\telse {\n \t\t\tres[2]++;\n \t\t}\n \t}\n \t\n \treturn res;\n }", "static int calculateScore(Card[] winnings) {\n int score = 0;\n for (Card card : winnings)\n if (card != null)\n score++;\n else\n break;\n return score;\n }", "private int calculateScore(){\n int score = 0;\n for(Card card : hand){\n score += card.getScore();\n }\n return score;\n }", "private int twoPairs() {\n\t\tint check = 0;\n\t\tint[] pairPos = new int[2];\n\t\tfor (int counter = POS_ONE; counter < Constants.HAND_SIZE; counter++) {\n\t\t\tif (hand[counter - 1].getValueIndex() == hand[counter].getValueIndex()) {\n\t\t\t\tpairPos[check] = counter;\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tif (check == 2) {\n\t\t\tresult.setPrimaryValuePos(hand[pairPos[1]].getValueIndex());\n\t\t\tresult.setSecondaryValuePos(hand[pairPos[0]].getValueIndex());\n\t\t\tList<Card> tertiaryValue = Arrays.stream(hand)\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[0]].getValueIndex())\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[1]].getValueIndex())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tresult.setTertiaryValuePos(tertiaryValue.get(0).getValueIndex());\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public static void compareArrays(int[] compare, int find) {\n int[] arr = Arrays.copyOfRange(compare, 0, compare.length);\n int totalScore = 0;\n\n // Outer loop\n for (int i = 0; i < arr.length; i++) {\n\n int currentSum = find; // Reset each pass\n\n for (int j = 0; j < arr.length - i; j++) {\n\n currentSum -= arr[i + j];\n\n if (currentSum < 0) continue;\n\n // Combination found\n if (currentSum == 0) {\n\n // Sets dices used for calculation to 0;\n for (int y = i; y <= i + j; y++) {\n arr[y] = 0;\n }\n totalScore += find;\n currentSum = find; // reset\n i = 0; // Reset outer loop\n j = -1; // Reset inner loop\n }\n }\n }\n score.add(totalScore);\n }", "private String calculateScore(DiceModel Player1, DiceModel Player2) {\n\t\tint p1d1 = Player1.getDie1();\n\t\tint p1d2 = Player1.getDie2();\n\t\tint p1d3 = Player1.getDie3();\n\t\t\n\t\tint p2d1 = Player2.getDie1();\n\t\tint p2d2 = Player2.getDie2();\n\t\tint p2d3 = Player2.getDie3();\n\t\t\n\t\tint p1P = Player1.getPoints();\n\t\tint p2P = Player2.getPoints();\n\t\n\t\t// impParts stands for the 'important parts' used when calculating pairs (the pair)\n\t\tint impPartsP1;\n\t\tint impPartsP2;\n\t\t\n\t\t// for when the sum is needed\n\t\tint sumP1 = (p1d1 + p1d2 + p1d3);\n\t\tint sumP2 = (p2d1 + p2d2 + p2d3);\n\t\t\n\t\t// ranks are the first step in determining who won\n\t\tint rankP1 = getRank(Player1);\n\t\tint rankP2 = getRank(Player2);\n\n\t\t// now that ranks have been gotten, calculate winner\n\t\t// if P1 had higher rank, he wins. the end.\n\t\tif (rankP1 > rankP2) {\n\t\t\twinner = \"Player1\";\n\t\t} else if (rankP2 > rankP1) { // if player2 has higher rank\n\t\t\twinner = \"Player2\";\n\t\t} else if (rankP1 == rankP2) { // if ranks are same\n\t\t\tif (rankP1 == 4) {\t\t\t// if player 1 rolled 421\n\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else {\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t}\n\t\t\t\twinner = \"Player1\";\n\t\t\t} else if (rankP1 == 3) { // if they are triples;\n\t\t\t\tif (sumP1 >= sumP2) { // highest wins\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (sumP2 > sumP1) {\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else {\n\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (rankP1 == 2) { // if they are doubles\n\t\t\t\tif (p1d1 == p1d2) {\n\t\t\t\t\timpPartsP1 = p1d1; // set the important part to the pair\n\t\t\t\t} else {\n\t\t\t\t\timpPartsP1 = p1d3;\n\t\t\t\t}\n\t\t\t\tif (p2d1 == p2d2) { // do it for player 2 also\n\t\t\t\t\timpPartsP2 = p2d1;\n\t\t\t\t} else {\n\t\t\t\t\timpPartsP2 = p2d3;\n\t\t\t\t}\n\t\t\t\tif (impPartsP1 > impPartsP2) { //if player1 pair is better\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (impPartsP2 > impPartsP1) { // or p2's > p1's\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else if (impPartsP1 == impPartsP2) { // if same pair\n\t\t\t\t\tif (sumP1 >= sumP2) {\t\t\t\t// add them up\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t} else if (sumP2 > sumP1) {\n\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tif (sumP1 >= sumP2) { // if no pairs or better, take sums\n\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t} else if (sumP2 > sumP1){\n\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t} else {\n\t\t\t\t\tif (winner.equals(\"Player1\")) {\n\t\t\t\t\t\twinner = \"Player1\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twinner = \"Player2\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} \t\n\t\t\n\t\tif (winner.equals(\"Player1\")) {\n\t\t\tplayer1.setPoints(p1P + 1);\n\t\t} else {\n\t\t\tplayer2.setPoints(p2P + 1);\n\t\t}\n\t\treturn winner;\n\t}", "public double computeSimilarity(int[] cluster1, int[] cluster2);", "public static int sum2( int [][] m )\n {\n\t int sum = 0;\t\t\t\t\t\t\t//initialize variable to hold/track sum so far\n\t\n\t for (int i = 0; i < m.length; i++) { \t//loop through the arrays\n\n\t\t sum += sumRow1(i, m);\t\t\t\t//procure the sum of each row, and add it to the sum variable\n\n\t }\n\n\t return sum;\t\t\t\t\t\t\t//return the sum\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "private int countWinnerScore(LinkedList<Integer> cards){\n int size = cards.size();\n return IntStream.range(0, size)\n .map(i -> cards.get(i) * (size - i))\n .sum();\n }", "private int countWinnerScore(LinkedList<Integer> cards){\n int size = cards.size();\n return IntStream.range(0, size)\n .map(i -> cards.get(i) * (size - i))\n .sum();\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[][] matrrix = new int[n][n];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n matrrix[i][j] = scanner.nextInt();\n }\n }\n int mainDiagonal = 0, secondDiagonal = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (i == j) {\n mainDiagonal += matrrix[i][j];\n }\n if (Math.abs(i + j) == (n - 1)) {\n secondDiagonal += matrrix[i][j];\n }\n }\n }\n System.out.println(Math.abs(mainDiagonal - secondDiagonal));\n\n }", "static int performSum(int[][] ar){\n\n int pDia = 0;\n int sDia = 0;\n int counter = ar.length;\n for (int i = 0; i < ar.length; i++) {\n\n pDia = pDia + ar[i][i];\n\n // keeping track of counter for second diagonal\n counter = counter-1;\n\n sDia = sDia + ar[i][counter];\n\n }\n System.out.println(sDia);\n return pDia;\n }", "private void moveRight()\n {\n // runs through row first, column second\n for ( int row = 0; row < grid.length; row++) {\n\n // chek is set to false, meaning no combinations have been made\n boolean check = false;\n for ( int column = grid[row].length-2; column >= 0; column--) {\n int compare = column;\n if ( grid[row][compare] != 0 ) { \n\n // loop continues while there are still zero values to the right of\n // the tile\n while ( grid[row][compare+1] == 0 ) {\n\n // switches places of the current tile with the zero tile\n grid[row][compare+1] = grid[row][compare];\n grid[row][compare] = 0;\n compare ++;\n\n // if you reach the end of the board, break from the loop\n if ( compare == grid[row].length-1 ){\n break;\n }\n }\n // if a combination was made on the previous loop, set check to false\n if ( check == true ){\n check = false;\n }\n // if a combination wasn't made on the previous loop and two tiles\n // next to each other have the same value, combine them\n else if ( compare != grid[row].length-1 && \n grid[row][compare+1] == grid[row][compare] ) {\n grid[row][compare+1] = 2*grid[row][compare+1];\n grid[row][compare] = 0;\n\n // sets check to true to indicate a combination was made\n check = true;\n\n // increases your score by the value of the combined tiles\n score+=grid[row][compare+1];\n } \n }\n }\n } \n }", "public static int score(String first, String second) {\n Set<String> s1 = splitIntoBigrams(first);\n Set<String> s2 = splitIntoBigrams(second);\n\n // Get the number of elements in each set.\n int n1 = s1.size();\n int n2 = s2.size();\n\n // Find the intersection, and get the number of elements in that set.\n s1.retainAll(s2);\n int nt = s1.size();\n\n\n // The coefficient is:\n //\n // 2 ∙ | s1 ⋂ s2 |\n // D = ----------------------\n // | s1 | + | s2 |\n //\n double out = (2.0 * (double)nt) / ((double)(n1 + n2));\n out = (out + scoreReverse(first, second)) / 2;\n return (int)(Math.abs(out - 1) * 10);\n\n }", "public int winningPlayerScore(LinkedList<Integer> player1Cards, LinkedList<Integer> player2Cards){\n while (!player1Cards.isEmpty() && !player2Cards.isEmpty()){\n int player1Move = player1Cards.poll();\n int player2Move = player2Cards.poll();\n if (player1Move > player2Move){\n player1Cards.add(player1Move);\n player1Cards.add(player2Move);\n }\n else {\n player2Cards.add(player2Move);\n player2Cards.add(player1Move);\n }\n }\n if (player1Cards.isEmpty())\n return countWinnerScore(player2Cards);\n else\n return countWinnerScore(player1Cards);\n }", "public byte score() {\n\t\tbyte score = 0;\n\t\t\n\t\tfor (byte r = 0; r < b.length; r++) {\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tif (b[r][c].getSide()) {\n\t\t\t\t\tscore += (b[r][c]).getValue();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tscore -= (b[r][c]).getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn score;\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner input= new Scanner(System.in);\r\n\t\tSystem.out.println(\"학생 수 입력해봐라\");\r\n\t\tint su=input.nextInt();//학생 수 입력 받음\r\n\r\n\t\t// 점수(score)를 입력 받은 학생 수만큼 선언, 그런데 한 학생당 과목 3개 점수 입력 받음\r\n\t\tint [][] score=new int[su][3];\r\n\r\n\t\t/*\t\t\t\t//입력\r\n\t\tint sum_1[] =new int[score.length-1];\t\r\n\t\tdouble avg_1[] = new double[score.length-1];//학생 평균\t\r\n\t\tfor(int i =0; i<score.length;i++) {\r\n\t\t\tSystem.out.println((i+1)+\"째 학생의 성적을 입력 -> \");\r\n\t\t\tfor(int j=0; j<score[i].length;j++) {\r\n\t\t\t\tscore[i][j]=input.nextInt();\r\n\t\t\t\tsum_1[i] +=score[i][j];\r\n\t\t\t}\r\n\t\t\tavg_1[i]=sum_1[i]/score.length;\r\n\t\t}\r\n\r\n\r\n\t\t출력\r\n\r\n\t\tfor(int i =0; i<score.length;i++) {\r\n\t\t\tSystem.out.printf(\"%d번째 학생의 총점은 %d\",(i+1),sum_1[i]);\r\n\r\n\t\t * \t \r\n\t\t */\r\n\t\t//입력2\r\n\r\n\t\tfor(int i =0; i<score.length;i++) {\r\n\t\t\tSystem.out.println((i+1)+\"째 학생의 성적을 입력 -> \");\r\n\t\t\tfor(int j=0; j<score[i].length;j++) {\r\n\t\t\t\tscore[i][j]=input.nextInt();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tint sum_2[] =new int[score[su-1].length];//과목의 갯수는 한학생의 열의 갯수 이다.\r\n\t\tdouble avg_2[] = new double[score[su-1].length];//과목 평균\r\n\t\t\r\n\t\tfor(int j=0;j<score[su-1].length;j++) {\r\n\t\t\tfor(int i=0;i<score.length;i++) {\r\n\t\t\t\tsum_2[j] += score[i][j];//[0][0] +[1][0]+[2][0] = 한 과목의 합\r\n\t\t\t} \r\n\t\t\tavg_2[j]=sum_2[j]/score[su-1].length;\r\n\t\t}\r\n\t\t//출력 \r\n\t\tSystem.out.println();\r\n\r\n\t\tSystem.out.printf(\"국어 과목 총점 %d이고 평균은 %f입니다.\",sum_2[0],avg_2[0]);\r\n\t\tSystem.out.printf(\"\\n수학 과목 총점 %d이고 평균은 %f입니다.\",sum_2[1],avg_2[1]);\r\n\t\tSystem.out.printf(\"\\n영어 과목 총점 %d이고 평균은 %f입니다.\",sum_2[2],avg_2[2]);\r\n\t}", "public int evaluate(PentagoBoardState pbs) {\n PentagoBoardState.Piece[][] pieces = pbs.getBoard();\n\n\n int whitescore =0; //keep track of white's total score\n int blackscore = 0;//keep track of black's total score\n\n //Check rows\n for (int x = 0; x <6 ; x++) {\n int countWHori = 0;\n int countBHori = 0;\n\n int blacks = 0;\n int whites = 0;\n\n\n for (int y = 0; y <5 ; y++) {\n //Count how many black and white pieces\n if (pieces[x][y].ordinal() == 0 ) {\n\n //countBHori = countBHori + countvalue;\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1) {\n\n //countWHori = countWHori +countvalue;\n whites++;\n }\n\n //Check for consecutive\n if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 0 ) {\n\n countBHori = countBHori +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 2 ) {\n\n countBHori = countBHori + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x][y+1].ordinal() == 0 ) {\n\n countBHori = countBHori + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 1 ) {\n\n countWHori = countWHori +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 2 ) {\n\n countWHori = countWHori + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x][y+1].ordinal() == 1 ) {\n\n countWHori = countWHori + blankspaceconsec;\n }\n\n //Check for disjoint and joint set If * B B W * * then disjoint and * B B * B * Then joint set for B * B\n if (y!=4){\n if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 0 && pieces[x][y+2].ordinal() == 1){\n countBHori = countBHori +disjointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 1 && pieces[x][y+2].ordinal() == 0){\n countWHori = countWHori +disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x][y+1].ordinal() == 2 && pieces[x][y+2].ordinal() == 0){\n countBHori = countBHori +jointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x][y+1].ordinal() == 2 && pieces[x][y+2].ordinal() == 1){\n countWHori = countWHori +jointset;\n }\n }\n }\n //check if unwinnable\n if (blacks == 4 && whites==2){\n countBHori += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWHori += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countWHori += unwinnable;\n countBHori += unwinnable;\n }\n\n\n //Run value for row in evaluation scheme and add to total score\n int valuew = consecutivevalue(countWHori);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBHori);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec hori \" + valueb + \"White consec hori \" + valuew);\n\n }\n\n //Check Verticals\n for (int y = 0; y <6 ; y++) {\n int countWvert = 0;\n int countBvert = 0;\n int blacks = 0;\n int whites = 0;\n\n\n for (int x = 0; x <5 ; x++) {\n if (pieces[x][y].ordinal() == 0) {\n\n //countBvert = countBvert +1;\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1) {\n\n //countWvert = countWvert +1;\n whites++;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 0 ) {\n\n countBvert = countBvert +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 2 ) {\n\n countBvert = countBvert + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 0 ) {\n\n countBvert = countBvert + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 1 ) {\n\n countWvert = countWvert +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 2 ) {\n\n countWvert = countWvert + blankspaceconsec;\n }\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 1 ) {\n\n countWvert = countWvert + blankspaceconsec;\n }\n\n if (x!=4){\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 1){\n countBvert = countBvert +disjointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 0){\n countWvert = countWvert +disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 0){\n countBvert = countBvert +jointset;\n }\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y].ordinal() == 2 && pieces[x+1][y].ordinal() == 1){\n countWvert = countWvert +jointset;\n }\n }\n }\n\n if (blacks == 4 && whites==2){\n countBvert += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countBvert += unwinnable;\n countWvert += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWvert += unwinnable;\n }\n //System.out.println(\"Black consec vert \" + countBvert + \"White consec \" + countWvert);\n int valuew = consecutivevalue(countWvert);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBvert);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec VERT \" + valueb + \"White consec hori \" + valuew);\n }\n\n //S West N EAST Top\n for (int a = 1; a <6 ; a++) { //loop through all diagonal lines\n int countWdiagSoNe = 0;\n int countBdiagSoNe = 0;\n int x=0;\n int blacks = 0;\n int whites = 0;\n\n\n for (int y = a; y !=0 ; y--) { //loop through one diagonal line\n\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y-1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0) {\n\n //countBdiagSoNe = countBdiagSoNe +2;\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1 ) {\n\n //countWdiagSoNe = countWdiagSoNe +2;\n whites++;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n\n // check for joint and disjoint set at these x y coordinates by looking 2 pieces ahead\n if (x==0 && y==4){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==1 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==2 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==0 && y==5){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==1 && y==4){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==2 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==3 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n\n x++;\n\n\n }\n if (blacks == 4 && whites==2){\n countBdiagSoNe += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countBdiagSoNe += unwinnable;\n countWdiagSoNe += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWdiagSoNe += unwinnable;\n }\n if (a==4 && blacks == 4 && whites==1){\n countBdiagSoNe += unwinnable;\n }\n if (a==4 && blacks == 1 && whites==4){\n countWdiagSoNe += unwinnable;\n }\n\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n int valuew = consecutivevalue(countWdiagSoNe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBdiagSoNe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagSoNe + \"White consec hori \" + valuew + \" \" + countWdiagSoNe);\n }\n //S West N EAST Bot\n for (int a = 1; a <5 ; a++) {\n int countWdiagSoNe = 0;\n int countBdiagSoNe = 0;\n int y=5;\n int blacks = 0;\n int whites = 0;\n\n for (int x = a; x <5 ; x++) {\n\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y-1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0) {\n\n //countBdiagSoNe = countBdiagSoNe +\n blacks++;\n }\n if (pieces[x][y].ordinal() == 1 ) {\n\n //countWdiagSoNe = countWdiagSoNe +2;\n whites++;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 0 ) {\n\n countBdiagSoNe = countBdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y-1].ordinal() == 1 ) {\n\n countWdiagSoNe = countWdiagSoNe + blankspaceconsec;\n }\n if (x==1 && y==5){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==2 && y==4){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n if (x==3 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 1 && pieces[x+2][y-2].ordinal() == 0) {\n\n countWdiagSoNe = countWdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 0 && pieces[x+2][y-2].ordinal() == 1) {\n\n countBdiagSoNe = countBdiagSoNe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 1) {\n\n countWdiagSoNe = countWdiagSoNe +jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y-1].ordinal() == 2 && pieces[x+2][y-2].ordinal() == 0) {\n\n countBdiagSoNe = countBdiagSoNe + jointset;\n }\n }\n //System.out.println(x + \" y:\" + y +\" Black consec DIAGOMAAL \" + countBdiagSoNe + \"White consec hori \" + countWdiagSoNe);\n y--;\n\n\n }\n if (a==1 && blacks == 4 && whites==1){\n countBdiagSoNe += unwinnable;\n }\n /*if (blacks == 3 && whites==3){\n countBdiagSoNe += unwinnable;\n countWdiagSoNe += unwinnable;\n }*/\n if (a==1&& blacks == 1 && whites==4){\n countWdiagSoNe += unwinnable;\n }\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n int valuew = consecutivevalue(countWdiagSoNe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue(countBdiagSoNe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagSoNe + \"White consec hori \" + valuew + \" \" + countWdiagSoNe);\n }\n\n //NorthWest S EAST Left\n for (int a = 0; a <5 ; a++) {\n int countWdiagNoSe = 0;\n int countBdiagNoSe = 0;\n int y=0;\n int blacks = 0;\n int whites = 0;\n\n for (int x = a; x <5 ; x++) {\n //System.out.println(pbs+\"x \" + x+ \" y \" +y);\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y+1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0) {\n blacks++;\n //countBdiagNoSe = countBdiagNoSe +2;\n }\n if (pieces[x][y].ordinal() == 1) {\n whites++;\n //countWdiagNoSe = countWdiagNoSe +2;\n }\n\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countWdiagNoSe= countWdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe + blankspaceconsec;\n }\n\n if (x==0 && y==0){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==1 && y==1){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==2 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==3 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==1 && y==0){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==2 && y==1){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==3 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n y++;\n\n\n }\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n if (blacks == 4 && whites==2){\n countBdiagNoSe += unwinnable;\n }\n if (a==1 && blacks == 4 && whites==1){\n countBdiagNoSe += unwinnable;\n }\n if (blacks == 3 && whites==3){\n countBdiagNoSe += unwinnable;\n countWdiagNoSe += unwinnable;\n }\n if (blacks == 2 && whites==4){\n countWdiagNoSe += unwinnable;\n }\n if (a==1 && blacks == 1 && whites==4){\n countWdiagNoSe += unwinnable;\n }\n\n int valuew = consecutivevalue(countWdiagNoSe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue( countBdiagNoSe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagNoSe + \"White consec hori \" + valuew + \" \" + countWdiagNoSe);\n }\n //NorthWest S EAST Right\n for (int a = 1; a <5 ; a++) {\n int countWdiagNoSe = 0;\n int countBdiagNoSe = 0;\n int x=0;\n int blacks = 0;\n int whites = 0;\n\n for (int y = a; y <5 ; y++) {\n //System.out.println(\"x \" + x+ \" y \" +y);\n int r = pieces[x][y].ordinal();\n int s =pieces[x+1][y+1].ordinal();\n //System.out.println(\"x \" + x+ \" y \" +y);\n //System.out.println(\"first \" + r+ \" second \" +s);\n if (pieces[x][y].ordinal() == 0 ) {\n blacks++;\n //countBdiagNoSe = countBdiagNoSe +2;\n }\n if (pieces[x][y].ordinal() == 1) {\n whites++;\n //countWdiagNoSe = countWdiagNoSe +2;\n }\n\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 0 ) {\n\n countBdiagNoSe = countBdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe +consecvalue;\n }\n\n else if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 ) {\n\n countWdiagNoSe= countWdiagNoSe + blankspaceconsec;\n }\n\n else if (pieces[x][y].ordinal() == 2 && pieces[x+1][y+1].ordinal() == 1 ) {\n\n countWdiagNoSe = countWdiagNoSe + blankspaceconsec;\n }\n\n if (x==0 && y==1){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==1 && y==2){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n if (x==2 && y==3){\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 1 && pieces[x+2][y+2].ordinal() == 0) {\n\n countWdiagNoSe = countWdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 0 && pieces[x+2][y+2].ordinal() == 1) {\n\n countBdiagNoSe = countBdiagNoSe + disjointset;\n }\n if (pieces[x][y].ordinal() == 1 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 1) {\n\n countWdiagNoSe = countWdiagNoSe + jointset;\n }\n else if (pieces[x][y].ordinal() == 0 && pieces[x+1][y+1].ordinal() == 2 && pieces[x+2][y+2].ordinal() == 0) {\n\n countBdiagNoSe = countBdiagNoSe + jointset;\n }\n }\n x++;\n\n\n }\n if (a==1 && blacks == 1 && whites==4){\n countWdiagNoSe += unwinnable;\n }\n if (a==1 && blacks == 4 && whites==1){\n countBdiagNoSe += unwinnable;\n }\n //System.out.println(\"Black consec vert \" + countBdiagSoNe + \"White consec \" + countWdiagSoNe);\n int valuew = consecutivevalue(countWdiagNoSe);\n whitescore = whitescore +valuew;\n int valueb = consecutivevalue( countBdiagNoSe);\n blackscore = blackscore + valueb;\n //System.out.println(\"Black consec DIAGOMAAL \" + valueb + \" \" + countBdiagNoSe + \"White consec hori \" + valuew + \" \" + countWdiagNoSe);\n }\n\n\n\n\n\n //System.out.println(\"Black consec score \" + blackscore +\" \" + \"White consec scpre \" + whitescore);\n //System.out.println(\"max player is \" + maxplayer + \"My colour is \" + mycolour);\n int i = -123456789;\n if (mycolour == 0){\n //System.out.println(blackscore-whitescore +\" I am black\");\n\n\n i= blackscore-whitescore;\n return i;\n\n }\n else {\n //System.out.println(whitescore-blackscore +\" I am white\");\n i= whitescore-blackscore;\n return i;\n }\n /*\n if(i>0 && i<1000){\n return 100; //i*2;\n }\n else if(i>=1000 && i<10000){\n return 1000; //i*10;\n }\n else if(i>=10000 && i<100000){\n return 10000; //i*50;\n }\n else if(i>=100000){\n return 100000;//i*500;\n }\n else if(i<=0 && i>-100){\n return -100; //i*2;\n }\n else if(i<=-100 && i>-1000){\n return -1000; //i*10;\n }\n else if(i<=-1000 && i>-10000){\n return -10000; //i*50;\n }\n else if(i<=0 && i>-100000){\n return -100000;//i*500;\n }\n\n */\n\n\n }", "public static void main(String[] args) {\n int[][] arrayFirst = {\n {1, 2, 3},\n {1, 2, 3},\n {1, 2, 3},\n };\n int[][] arraySecond = {\n {2, 2, 2},\n {3, 3, 3},\n {4, 4, 4}\n };\n int[][] arraySum = new int[arrayFirst.length][arrayFirst[0].length];\n System.out.println(\"Итоговая матрица:\");\n for (int i = 0; i < arrayFirst.length; i++) {\n for (int k = 0; k < arrayFirst[i].length; k++) {\n arraySum[i][k] = arrayFirst[i][k] + arraySecond[i][k];\n System.out.print(arraySum[i][k] + \" \");\n }\n System.out.println();\n }\n }", "Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }", "public static double computeJacSimilarity(int paraFirstUser, int paraSecondUser) {\r\n\t\tint tempItems = GraphDataInfo.itemNum;\r\n\t\tdouble tempSimilarity = 0;\r\n\t\tint tempInterCount = 0;\r\n\t\tint tempSum = 0;\r\n\r\n\t\t// Similarity after sorting\r\n\t\tfor (int i = 0; i < tempItems; i++) {\r\n\t\t\tif (trainData[paraFirstUser][i] == 0 && trainData[paraSecondUser][i] > 0) {\r\n\t\t\t\ttempSum++;\r\n\t\t\t} else if (trainData[paraFirstUser][i] > 0 && trainData[paraSecondUser][i] == 0) {\r\n\t\t\t\ttempSum++;\r\n\t\t\t} else if (trainData[paraFirstUser][i] > 0 && trainData[paraSecondUser][i] > 0) {\r\n\t\t\t\ttempInterCount++;\r\n\t\t\t\ttempSum++;\r\n\t\t\t}\r\n\t\t} // Of while\r\n\r\n\t\tif (Math.abs(tempSum) < 1e-4) {\r\n\t\t\ttempSimilarity = 0;\r\n\t\t} // Of if\r\n\t\telse {\r\n\t\t\ttempSimilarity = (tempInterCount * 1.0) / (tempSum);\r\n\t\t}\r\n\t//\tSystem.out.println(\"inter = \" + tempInterCount + \" , sum = \" + tempSum);\r\n\t//\tSystem.out.println(\r\n\t//\t\t\t\"The similarity of user-\" + paraFirstUser + \" and user-\" + paraSecondUser + \" is \" + tempSimilarity);\r\n\t\treturn tempSimilarity;\r\n\t}", "@Override\n public int getScore(SchemaCard schema) {\n int score = 0;\n for (int i = 0; i < SchemaCard.NUMBER_OF_ROWS; i++) {\n for (int j = 0; j < SchemaCard.NUMBER_OF_COLUMNS; j++) {\n Dice dice = schema.getDice(new Position(i, j));\n if(dice != null && dice.getColorConstraint().equals(colorConstraint)) {\n score += dice.getNumber();\n }\n }\n }\n return score;\n }", "private int checkWinner(int[] arr) {\n for (int i = 0; i <= 6; i += 3) {\n int sum = arr[i] + arr[i + 1] + arr[i + 2];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n }\n\n // Check verticals\n for (int i = 0; i < 3; i++) {\n int sum = arr[i] + arr[i + 3] + arr[i + 6];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n }\n\n // Check diagonals\n int sum = arr[0] + arr[4] + arr[8];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n\n sum = arr[2] + arr[4] + arr[6];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n\n return 0;\n }", "private boolean twoPairTest(int index)\n\t{\n\t\tboolean twopair = false;\n\t\tint last = index;\n\t\tindex += 2;\n\t\t\n\t\twhile (index<(hand.length-1) && (!twopair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\ttwopair = true;\n\t\t\t\thandScore += 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// resolve kickers\n\t\tif (twopair)\n\t\t{\n\t\t\tif (index==2) handScore += intRep[4];\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (last==0) handScore += intRep[2];\n\t\t\t\telse handScore += intRep[0];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn twopair;\n\t}", "private ASSPSolution floydWarshall(Double[][] aMatrix, Integer[][] pMatrix)\n {\n Double best[][][] = new Double[2][this.numIntxns][this.numIntxns];\n Integer pred[][][] = new Integer[2][this.numIntxns][this.numIntxns];\n\n best[0] = aMatrix;\n best[1] = aMatrix;\n\n pred[0] = pMatrix;\n pred[1] = pMatrix;\n\n int solnIndex = 0;\n\n for (int k = 0; k < this.numIntxns; k++)\n {\n for (int u = 0; u < this.numIntxns; u++)\n {\n for (int v = 0; v < this.numIntxns; v++)\n {\n // we only need to keep two matrices in memory and swap\n // between them. i and j alternate.\n int i = k % 2;\n int j = (i == 0) ? 1 : 0;\n\n best[i][u][v] = best[j][u][v];\n\n // note that null represents infinity\n if (best[i][u][k] != null && best[i][k][v] != null)\n {\n // if this spot is infinite, anything is better\n if (best[i][u][v] == null)\n {\n best[i][u][v] = best[j][u][k] + best[j][k][v];\n pred[i][u][v] = k;\n }\n else if \n ((best[j][u][k] + best[j][k][v]) < best[i][u][v])\n {\n best[i][u][v] = best[j][u][k] + best[j][k][v];\n pred[i][u][v] = k;\n }\n\n // Stores the last i value so that the correct answers \n // can be sent back to the user.\n if (v == this.numIntxns - 1)\n {\n solnIndex = i;\n }\n }\n }\n }\n }\n\n return new ASSPSolution(best[solnIndex], pred[solnIndex]);\n }", "public static void main(String[] args) throws IOException {\n sc = new Reader();\n //out = new Printer(\"./src/answer.txt\");\n out = new Printer();\n int testCases, n, m, k;\n long c;\n long[][] matrix, rsum, csum, oddLastCalc, evenLastCalc;\n// boolean flag;\n testCases = sc.nextInt();\n while (testCases-- > 0) {\n n = sc.nextInt();\n m = sc.nextInt();\n k = sc.nextInt();\n matrix = new long[n][m];\n rsum = new long[n+1][m+1];\n csum = new long[n+1][m+1];\n oddLastCalc = new long[n][m];\n evenLastCalc = new long[n][m];\n c = 0l;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n matrix[i][j] = sc.nextLong();\n oddLastCalc[i][j] = matrix[i][j];\n if(matrix[i][j]>=k)\n c++;\n }\n }\n\n for (int i = 0; i < n; i++) {\n rsum[i][m-1] = matrix[i][m-1];\n }\n for (int i = 0; i < m; i++) {\n csum[n-1][i] = matrix[n-1][i];\n }\n for (int i = 0; i < n; i++) {\n for (int j = m-2; j >=0; j--) {\n rsum[i][j] = rsum[i][j+1] + matrix[i][j];\n }\n }\n for (int i = 0; i < m; i++) {\n for (int j = n-2; j >=0; j--) {\n csum[j][i] = csum[j+1][i] + matrix[j][i];\n }\n }\n PRINT.ArrayMatrix(rsum);\n PRINT.ArrayMatrix(csum);\n System.out.println(\"-------------------------------------------------------\");\n\n for (int size = 2; size <= n; size++) {\n// flag = false;\n for (int i = n-size; i >= 0; i--) {\n for (int j = m - size; j >= 0; j--) {\n if(size%2==0){\n evenLastCalc[i][j] = matrix[i][j]\n + oddLastCalc[i+1][j+1]\n + csum[i+1][j] - csum[i+size][j]\n + rsum[i][j+1] - rsum[i][j+size];\n if(1.0*evenLastCalc[i][j]/(size*size)<k){\n// flag = true;\n break;\n }\n } else {\n oddLastCalc[i][j] = matrix[i][j]\n + evenLastCalc[i+1][j+1]\n + csum[i+1][j] - csum[i+size][j]\n + rsum[i][j+1] - rsum[i][j+size];\n if(1.0*oddLastCalc[i][j]/(size*size)<k){\n// flag = true;\n break;\n }\n }\n System.out.println(size + \"\\t\" + i + \"\\t\" + j);\n PRINT.ArrayMatrix(oddLastCalc);\n PRINT.ArrayMatrix(evenLastCalc);\n System.out.println(\"-------------------------------------------------------\");\n c++;\n }\n// if(flag)\n// break;\n }\n }\n System.out.println(c);\n }\n\n out.close();\n }", "public static boolean hcheck() {\n for (int j = 0; j < card.length; j++) {\n int sum = 0;\n for (int i = 0; i < card.length; i++) { // rows\n sum = sum + card[j][i]; // last sum plus the number in the cordinate\n }\n if (sum == 0) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n }\n\n }\n return false;\n\n }", "private int helper(int s, int M, int[] piles){\n if(s >= piles.length){\n return 0;\n }\n if(2*M + s > piles.length){\n return sums[s];\n }\n if(memo[s][M] != 0){\n return memo[s][M];\n }\n int min = Integer.MAX_VALUE;\n for(int x=1; x<=2*M; x++){\n // get the min score the player two can get\n min = Math.min(min, helper(s+x, Math.max(x, M), piles));\n }\n memo[s][M] = sums[s] - min;\n return memo[s][M];\n \n }", "public int straightTest(boolean pair)\n\t{\n\t\tboolean straight = false, ace = false;\n\t\tint index = 0, lim = 2, confirm = -1;\n\t\tint[] test;\n\t\t\n\t\t// If there is an ace, test high and low end\n\t\tif (intRep[0] == 12)\n\t\t{\n\t\t\ttest = new int[8];\n\t\t\ttest[7] = -1;\t// Two card is valued 0\n\t\t\tace = true;\n\t\t\tlim = 3;\n\t\t\t\n\t\t\tfor (int i=0; i<intRep.length; i++)\n\t\t\t\ttest[i] = intRep[i];\n\t\t}\n\t\telse { test = Arrays.copyOf(intRep, intRep.length); }\n\t\t\n\t\tif (pair)\n\t\t{\n\t\t\t// Run twice to avoid trips/twopair\n\t\t\ttest = removePair(test);\n\t\t\ttest = removePair(test);\n\t\t}\n\t\t\n\t\twhile (index<=lim && (!straight))\n\t\t{\n\t\t\tif ((test[index] - test[index+1] == 1) &&\n\t\t\t\t(test[index+1] - test[index+2] == 1) &&\n\t\t\t\t(test[index+2] - test[index+3] == 1) &&\n\t\t\t\t(test[index+3] - test[index+4] == 1) )\n\t\t\t{\n\t\t\t\tstraight = true;\n\t\t\t\tconfirm = index;\n\t\t\t\thandScore = 40000;\n\t\t\t\thandScore += 100 * test[index];\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\treturn confirm;\n\t}", "private boolean winsByDiagonalTopLeftToBottomRight(char symbol){\n int max_diagonal_count = 0;\n\n // Deals with the diagonals below the midpoint in the array. Iterates through diagonals from last row to the\n // first row.\n for (int i = this.boardRows - 1; i > 0; i--) {\n\n // reset counter at each new diagonal\n int count = 0;\n\n // Iterates through the diagonal with origin (top left point) at first element of row i\n for (int j = 0, x = i; x < this.boardRows; j++, x++) {\n\n // If j surpasses the number of available cols we break out the inner for loop. This happens when the\n // num of rows and cols in the array are different\n if (j>=this.boardColumns){\n break;\n }\n // If char symbol is the same as the element in the diagonal, we increment counter by 1 and update\n // max_diagonal_count if possible.\n if(symbol == this.gameBoard[x][j]){\n count+=1;\n\n if (count>max_diagonal_count){\n max_diagonal_count=count;\n }\n }\n //Otherwise, we reset the counter to 0\n else {\n count = 0;\n }\n }\n }\n\n // Deals with the diagonals at and after the midpoint in the array. Iterates through diagonals from first column to the\n // last column\n for (int i = 0; i < this.boardColumns; i++) {\n\n // Resets counter for each new diagonal\n int count = 0;\n\n // Iterates through diagonal values with origin (top left point) at first element of col i\n for (int j = 0, y = i; y < this.boardColumns; j++, y++) {\n\n // If j surpasses the number of available cols we break out the inner for loop. This happens when the\n // num of rows and cols in the array are different\n if (j>=this.boardRows){\n break;\n }\n\n // If char symbol is the same as the element in the diagonal, we increment counter by 1 and update\n // max_diagonal_count if possible.\n if(symbol == this.gameBoard[j][y]){\n count+=1;\n\n if (count>max_diagonal_count){\n max_diagonal_count=count;\n }\n }\n //Otherwise, we reset the counter to 0\n else {\n count = 0;\n }\n }\n }\n\n // If the max_diagonal_count is greater than or equal to tilesNeeded, then we have sufficient tiles in a diagonal\n // for char symbol to win so we return true. Otherwise, we return false.\n if (max_diagonal_count >= this.tilesNeeded){\n return true;\n }\n else {\n return false;\n }\n\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint m = scan.nextInt();\n\t\tint[] card = new int[n];\n\n\t\tfor(int i=0; i<card.length; i++) {\n\t\t\tcard[i] = scan.nextInt();\n\t\t}\n\n\t\tint result = 0;\n\t\tint temp = 0;\n\n\t\tfor(int i=0; i<n-2; i++) \n\t\t\tfor(int j=i+1; j<n-1; j++) \n\t\t\t\tfor(int k=j+1; k<n; k++) {\n\t\t\t\t\tresult = card[i] + card[j] + card[k];\n\t\t\t\t\tif(result <= m) {\n\t\t\t\t\t\tif(temp <= result)\n\t\t\t\t\t\t\ttemp = result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\tSystem.out.println(temp);\n\t\tscan.close();\n\t}", "public int winningPlayerScore(LinkedList<Integer> player1Cards, LinkedList<Integer> player2Cards){\n if (recursiveCombat(player1Cards, player2Cards) == 1)\n return countWinnerScore(player1Cards);\n else\n return countWinnerScore(player2Cards);\n }", "private static int evaluateBoard(final int[][] givenBoard) {\n final int[][] board = cloneBoard(givenBoard);\n\n final int numRows = givenBoard.length;\n final int numCols = givenBoard[0].length;\n\n \n // If the game is complete\n if (!Utils.hasMove(board)) {\n // Find largest absolute move value for player and opponent\n int playerScore = 0;\n int opponentScore = 0;\n for (final int[] row : board) {\n for (final int val : row) {\n if (val > playerScore) playerScore = val;\n if (val < opponentScore) opponentScore = val;\n } \n }\n // Give a big reward + the ammount we won the game by\n return WIN_REWARD + playerScore + opponentScore;\n }\n boardsEvaluated++;\n\n \n // If the game is incomplete, return the diference between the average \n // distance that the player and opponent are from each empty square\n int[][] playerDistances = distanceGrid(board);\n int[][] opponentDistances = distanceGrid(flipBoard(board));\n \n int totalPlayerDistance = 0;\n int totalOpponentDistance = 0;\n \n int maxPlayerDistance = 0;\n int maxOpponentDistance = 0;\n \n \n int largestPlayerMove = 0;\n int smallestOpponentMove = 0;\n \n int numEmptySpaces = 0;\n \n for (int r = 0; r < numRows; r++) {\n for (int c = 0; c < numCols; c++) {\n if (playerDistances[r][c] > 0) {\n totalPlayerDistance += playerDistances[r][c];\n numEmptySpaces++;\n }\n if (opponentDistances[r][c] > 0) {\n totalOpponentDistance += opponentDistances[r][c];\n }\n \n int boardVal = board[r][c];\n if (largestPlayerMove < boardVal) largestPlayerMove = boardVal;\n if (smallestOpponentMove > boardVal) smallestOpponentMove = boardVal;\n \n } \n }\n int averageDistanceDifference = totalOpponentDistance - totalPlayerDistance;\n\n int largestMoveDifference = largestPlayerMove + smallestOpponentMove;\n\n\n return averageDistanceDifference + largestMoveDifference;\n }", "public static int squarePenalties(int[][] matrix) {\n\t\t\n\t\tint penalty = 0;\n\t\t// Count penalty caused by 2x2 squares\n\t\tfor (int i = 0; i < matrix.length - 1; ++i) {\n\t\t\tfor (int j = 0; j < matrix.length - 1; ++j) {\n\t\t\t\tint color = matrix[i][j];\n\t\t\t\t\n\t\t\t\tif((matrix[i][j + 1] == color) && (matrix[i + 1][j] == color) &&\n\t\t\t\t\t\t(matrix[i + 1][j + 1] == color)) {\n\t\t\t\t\tpenalty += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn penalty;\n\t}", "private int calculateScore(ArrayList<HexCell> stack){\n int score = 0;\n for(HexCell current: stack){\n score += current.score;\n }\n return score;\n }", "public void Pairs()\r\n {\n int pairsize = 0;\r\n int ind1 = 0;\r\n for(int i = 0; i < 5; i++){\r\n// while(cards[i].getNumber() != pairnum){\r\n for(int j = i+1; j < 5; j++)\r\n {\r\n if(cards[i].getFace().equals(cards[j].getFace()))\r\n {\r\n ind1 = i;\r\n if(pairsize < 3){\r\n pairsize += 1;\r\n// paircounts += 1;\r\n }\r\n if(cards[i].compareTo(cards[ind1]) > 0){\r\n// Maxpair = cards[i].getNumber();\r\n index = i;\r\n }\r\n \r\n }\r\n }\r\n// }\r\n }\r\n if(pairsize == 1)\r\n Judge = 2;\r\n if(pairsize == 2)\r\n Judge = 3;\r\n if(pairsize == 3)\r\n Judge = 6;\r\n }", "private void compareMatrices(double[][] firstM, double[][] secondM) {\n assertEquals(firstM.length, secondM.length);\n\n for(int i=0; i<firstM.length; i++) {\n assertEquals(firstM[i].length, secondM[i].length);\n\n for(int j=0; j<firstM[0].length; j++) {\n assertEquals(\"i,j = \"+i+\",\"+j, \n firstM[i][j], secondM[i][j], TOLERANCE);\n }\n }\n }", "public static ChiSqTest test(int[][] table) {\r\n final double TINY = 1.0e-16;\r\n\r\n int ni = table.length;\r\n int nj = table[0].length;\r\n\r\n boolean correct = false;\r\n if (ni == 2 && nj == 2) {\r\n correct = true;\r\n }\r\n\r\n double sum = 0.0;\r\n\r\n int nni = ni;\r\n double[] sumi = new double[ni];\r\n for (int i = 0; i < ni; i++) {\r\n for (int j = 0; j < nj; j++) {\r\n sumi[i] += table[i][j];\r\n sum += table[i][j];\r\n }\r\n if (sumi[i] == 0.0) {\r\n --nni;\r\n }\r\n }\r\n\r\n int nnj = nj;\r\n double[] sumj = new double[nj];\r\n for (int j = 0; j < nj; j++) {\r\n for (int i = 0; i < ni; i++) {\r\n sumj[j] += table[i][j];\r\n }\r\n if (sumj[j] == 0.0) {\r\n --nnj;\r\n }\r\n }\r\n\r\n int df = nni * nnj - nni - nnj + 1;\r\n double chisq = 0.0;\r\n for (int i = 0; i < ni; i++) {\r\n for (int j = 0; j < nj; j++) {\r\n double expctd = sumj[j] * sumi[i] / sum;\r\n double temp = table[i][j] - expctd;\r\n if (correct) temp = Math.abs(temp) - 0.5;\r\n chisq += temp * temp / (expctd + TINY);\r\n }\r\n }\r\n\r\n double prob = Gamma.regularizedUpperIncompleteGamma(0.5 * df, 0.5 * chisq);\r\n int minij = nni < nnj ? nni-1 : nnj-1;\r\n double v = Math.sqrt(chisq/(sum*minij));\r\n\r\n return new ChiSqTest(\"Pearson's\", chisq, df, prob);\r\n }", "public void evaluate_dist_2_DES_Ciphertext_Matrix() {\n // Initialisierung\n // for (int row=0; row<8; row++)\n // for (int col=0; col<8; col++)\n // DES_dist_2_Ciphertext_Matrix[row][col] = 0;\n intialize_matrix(DES_dist_2_Ciphertext_Matrix);\n\n for (int row = 0; row < 8; row++)\n for (int col = 0; col < 8; col++) {\n for (int count = 0; count < 64; count++)\n DES_dist_2_Ciphertext_Matrix[row][col] = DES_dist_2_Ciphertext_Matrix[row][col]\n + (DES_Ciphertext_Matrix[8 * row + col][count] ^ DES_Ciphertext_Matrix[8 * row + col + 1][count]);\n }\n }", "public static int sum2( int [][] m )\n {\n int sum = 0; //initialize sum\n int v = 0; //initialize a row counter\n for (int[] i : m) { //for each array in m, make an array called i\n\t sum += sumRow( v, m); //add the sumRow of the row counter and\n\t //original array to the stated sum\n\t v++; //add 1 to the counter\n }\n return sum; //return sum, an int\n }", "public int getTotal()\r\n\t{\r\n\t\t// the running total of points in the hand\r\n\t\tint sum = 0;\r\n\r\n\t\t// count of the number of aces in the hand, to be processed later\r\n\t\tint aces = 0;\r\n\t\t\r\n\t\t// evaluates each card in the hand\r\n\t\tfor (int i = 0; i < handCount; i++)\r\n\t\t{\r\n\t\t\tint value = 0;\r\n\t\r\n\t\t\t/* while each card stores a value for both its suite and rank, this method is only\r\n\t\t\tconcerned with rank, and thus only examines the first character */\r\n\t\t\tchar thisCard = pCards[i].charAt(0);\r\n\t\t\t\r\n\t\t\tswitch(thisCard)\r\n\t\t\t{\r\n\t\t\t\tcase '2':\tvalue = 2;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '3':\tvalue = 3;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '4':\tvalue = 4;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '5':\tvalue = 5;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '6':\tvalue = 6;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '7':\tvalue = 7;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '8':\tvalue = 8;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '9':\tvalue = 9;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '1':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'J':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'Q':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'K':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'A':\taces++;\r\n\t\t\t\t\t\t\t\tvalue = 0;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t} // end switch\r\n\t\r\n\t\t\tsum += value;\r\n\t\t} // end for\r\n\t\t\r\n\t\t// checks if any aces exist\r\n\t\tif (aces > 0)\r\n\t\t{\r\n\t\t\t// The value of all aces in the hand, the first valued at 11 and all subsequent aces valued at 1\r\n\t\t\tint aceTotal = 11 + (aces - 1);\r\n\t\t\r\n\t\t\t/* if this total would cause the player to bust, the aces are all added at value 1.\r\n\t\t\tOtherwise, the first is added at value of 11, and the others at value of 1. */\r\n\t\t\tif ( sum <= (BlackJackGame.BUST_SCORE - aceTotal ) )\r\n\t\t\t{\r\n\t\t\t\tsum = sum + aceTotal;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsum = sum + aces;\r\n\t\t\t}\r\n\t\t} // end if\r\n\t\r\n\t\treturn sum;\r\n\t}", "public static int BlockSumMatrix(ArrayList<BlockObject> objects)\n\t{\n\t\tint sum = 0;\n\t\tint increment = 1;\n\t\tint min = 0;\n\t\tint max = 2;\n\t\tint iterations = 0;\n\t\twhile(iterations <= 7)\n\t\t{\n\t\t\t//Sets the values based on what\n\t\t\t//iteration it is.\n\t\t\tswitch (iterations)\n\t\t\t{\n\t\t\t\t//First row horizontal\n\t\t\t\tcase 0:\n\t\t\t\t\tbreak;\n\t\t\t\t//Second row horizontal\n\t\t\t\tcase 1:\n\t\t\t\t\tmin = 3;\n\t\t\t\t\tmax = 5;\n\t\t\t\t\tbreak;\n\t\t\t\t//Third row horizontal\n\t\t\t\tcase 2:\n\t\t\t\t\tmin = 6;\n\t\t\t\t\tmax = 8;\n\t\t\t\t\tbreak;\n\t\t\t\t//First row vertical\n\t\t\t\tcase 3:\n\t\t\t\t\tmin = 0;\n\t\t\t\t\tmax = 6;\n\t\t\t\t\tincrement = 3;\n\t\t\t\t\tbreak;\n\t\t\t\t//Second row vertical\n\t\t\t\tcase 4:\n\t\t\t\t\tmin = 1;\n\t\t\t\t\tmax = 7;\n\t\t\t\t\tincrement = 3;\n\t\t\t\t\tbreak;\n\t\t\t\t//Third row vertical\n\t\t\t\tcase 5:\n\t\t\t\t\tmin = 2;\n\t\t\t\t\tmax = 8;\n\t\t\t\t\tincrement = 3;\n\t\t\t\t\tbreak;\n\t\t\t\t//First row diagonal\n\t\t\t\tcase 6:\n\t\t\t\t\tmin = 0;\n\t\t\t\t\tmax = 8;\n\t\t\t\t\tincrement = 4;\n\t\t\t\t\tbreak;\n\t\t\t\t//Second row diagonal\n\t\t\t\tcase 7:\n\t\t\t\t\tmin = 2;\n\t\t\t\t\tmax = 6;\n\t\t\t\t\tincrement = 2;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//---------------------------------------------------\n\t\t\t//Gets the sum of the board.\n\t\t\tfor(int i = min; i <= max; i += increment)\n\t\t\t{\n\t\t\t\tif(objects.get(i).playerColor == 10 || objects.get(i).playerColor == 9 ) //if black or white\n\t\t\t\t\tsum += objects.get(i).playerColor; //add sum.\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//Return sum if someone won.\n\t\t\tif(sum == 27 || sum == 30)\n\t\t\t\treturn sum;\n\t\t\t\n\t\t\t//Start the process again...\n\t\t\tsum = 0;\n\t\t\titerations++;\n\t\t}\n\t\treturn sum;\n\t}", "public int utility(Board board) {\n \tint sum = getResult(board.getScore(), board.getListOfPosition().size(), score(board));\n \tint [][]b = board.board;\n \tfor (int i = 0; i < b.length; i++) {\n \t\tfor (int j = 0; j < b[0].length; j++) {\n \t\t\tsum += weight[i * b.length + j] * b[i][j];\n \t\t}\n \t}\n \treturn sum;\n }", "private int getCost(Game game) {\n\n // Represents the sum of each tile value multiplied by its column index (Gives a tendency to move to the left)\n int weightedSum = 0;\n\n // Represents the number of diagonal pairs of matching value on the board.\n int diagCount = 0;\n\n // The number of tiles on the grid\n int tileCount = 0;\n\n Tile[][] tiles = game.tiles;\n\n for (int x = 0; x < BOARD_X; x++) {\n for (int y = 0; y < BOARD_Y; y++) {\n Tile tile = tiles[x][y];\n\n // Skip empty squares\n if (tile == null) {\n continue;\n }\n\n // Increment the weighted sum with product of the row index and the tile's value\n weightedSum += x * tile.getValue();\n tileCount++;\n\n // If all squares are occupied, return an arbitrarily large value such that this option is not picked.\n if (tileCount == maxTileCount) {\n return 100000;\n }\n\n // Since only up right and down right diagonals are computed, ignore the last row as this would push\n // index's out of range.\n if (x == BOARD_X - 1) {\n continue;\n }\n\n // Retrieve the upper right tile and updates the diagonal counter\n if (y > 0) {\n Tile ur = tiles[x + 1][y - 1];\n if (ur != null) {\n diagCount += (ur.getValue() == tile.getValue()) ? 1 : 0;\n }\n }\n\n // Retrieve the lower right tile and updates the diagonal counter\n if (y < BOARD_Y - 1) {\n Tile dr = tiles[x + 1][y + 1];\n if (dr != null) {\n if (dr.getValue() == tile.getValue()) {\n diagCount += (dr.getValue() == tile.getValue()) ? 1 : 0;\n }\n }\n }\n }\n }\n\n return weightedSum + diagCount;\n }", "public static int fullHouseYahtzee(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(2, 6, result);\n int secondPairVal = score/2;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 25;\n } else {\n score = 0;\n }\n\n return score;\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\twhile(input.hasNext()) {\n\t\t\tString player1 = input.nextLine();\n\t\t\tString player2 = input.nextLine();\n\t\t\tString com = input.nextLine();\n\t\t\tint check = input.nextInt();\n\t\t\tint[][] one = new int[3][3];\n\t\t\tint[][] two = new int[3][3];\n\t\t\tString[] split1 = player1.split(\" \");\n\t\t\tString[] split2 = player2.split(\" \");\n\t\t\tString[] split3 = com.split(\" \");\n\t\t\tint total = 0;\n\t\t\tint countA = 0;\n\t\t\tint countB = 0;\n\t\t\tfor(int i = 0; i < split3.length; i++) {\n\t\t\t\ttotal += Integer.parseInt(split3[i]);\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tone[i][j] = Integer.parseInt(split1[3*i+j]);\n\t\t\t\t\tcount += one[i][j];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountA++;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\ttwo[i][j] = Integer.parseInt(split2[3*i+j]);\n\t\t\t\t\tcount += two[i][j];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountB++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tone[j][i] = Integer.parseInt(split1[3*i+j]);\n\t\t\t\t\tcount += one[j][i];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountA++;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\ttwo[j][i] = Integer.parseInt(split2[3*i+j]);\n\t\t\t\t\tcount += two[j][i];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountB++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tone[i][j] = Integer.parseInt(split1[3*i+j]);\n\t\t\t\t\tif(j == 2) {\n\t\t\t\t\t\tcount += one[i][i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountA++;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\ttwo[i][j] = Integer.parseInt(split2[3*i+j]);\n\t\t\t\t\tif(j == 2) {\n\t\t\t\t\t\tcount += two[i][i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountB++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(countA == countB) {\n\t\t\t\tSystem.out.println(\"Draw\");\n\t\t\t}\n\t\t\tif(countA > countB) {\n\t\t\t\tSystem.out.println(\"Player1 wins\");\n\t\t\t}\n\t\t\tif(countA < countB) {\n\t\t\t\tSystem.out.println(\"Player2 wins\");\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tif(check == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}", "void setAdjForSecondType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], matrixOfSquares[0][3]);\n matrixOfSquares[0][3].setCardinalSquare(null,matrixOfSquares[1][3] , matrixOfSquares[0][2], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], null );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , matrixOfSquares[2][2], null, matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(matrixOfSquares[0][3], matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare(matrixOfSquares[1][1],null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(matrixOfSquares[1][2], null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n\n }", "public int sumOfEvenNumbers()\n {\n // TODO: Return the sum of all the numbers which are even\n int sum = 0;\n for (int i =0; i< matrix.length; i++){\n for (int j = 0; j< matrix[0].length; j++){\n if(matrix[i][j]%2==0){\n sum+= matrix[i][j];\n }\n }\n }\n return sum;\n }", "abstract public void compute(int maxSameSuit, int mostRepSuit, Hand hand);", "public int calculScore(Deck deck)\n {\n return 0;\n }", "public boolean handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(int val1, char suit, int val2) {\n int goUpToThisNumberForI = 2;//go up to < 2 // 0 1\n if (allCards.length == 2){//only two cards\n goUpToThisNumberForI = 1;\n }\n \n for (int j = 0; j < goUpToThisNumberForI; j++) {//iterate through just the players own first two cards --\n System.out.println(\"_______\" + j);\n for (int k = j + 1; k < allCards.length; k++) {//NOT SORTED\n System.out.println(\"..........\" + j);\n if ( (allCards[j].value == val1 && allCards[k].value == val2 )|| (allCards[j].value == val2 && allCards[k].value == val1)) {//left card is v1, right card is v2\n if (suit == 'x') {//suit doesn't matter\n return true;\n } else if (allCards[j].suit == allCards[k].suit) {\n return true;\n }\n } \n\n }\n\n }\n \n \n return false;\n }", "public static int evaluate(int[][] matrix) {\n\t\t\n\t\tint penalty = 0;\n\t\t\n\t\tpenalty += patternPenalties(matrix);\n\t\tpenalty += adjacentPenalties(matrix);\n\t\tpenalty += squarePenalties(matrix);\n\t\t\n\t\tfinal int TOTAL_MODULES = matrix.length * matrix.length;\n\t\t\n\t\tint blackModulesCount = 0;\n\t\tfor (int i = 0; i < matrix.length; ++i) {\n\t\t\tfor (int j = 0; j < matrix[i].length; ++j) {\n\t\t\t\tif (matrix[i][j] == B) {\n\t\t\t\t\t++blackModulesCount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfinal double BLACK_PERCENTAGE = ((double) blackModulesCount / (double) TOTAL_MODULES) * 100.0;\n\t\tfinal int FLOORED_PERC = (int) Math.floor(BLACK_PERCENTAGE);\n\t\t\n\t\tfinal int PREV_PERC = FLOORED_PERC - (FLOORED_PERC % 5);\n\t\tfinal int NEXT_PERC = PREV_PERC + 5;\n\t\tfinal int ABS_PREV = Math.abs(PREV_PERC - 50);\n\t\tfinal int ABS_NEXT = Math.abs(NEXT_PERC - 50);\n\t\t\n\t\tpenalty += Math.min(ABS_PREV, ABS_NEXT) * 2;\n\n\t\treturn penalty;\n\t}", "public int hamming() {\n int wrong = 0;\n for (int row = 0; row < N; ++row) {\n for (int col = 0; col < N; ++col) {\n int goalValue = N * row + col + 1;\n if (tiles[row][col] != 0 && tiles[row][col] != goalValue) {\n wrong++;\n }\n }\n }\n\n return wrong;\n }", "public boolean isTwoPairs(){\n \r\n List<PokerCard> pair1;\r\n List<PokerCard> pair2;\r\n \r\n //First possibility: first four cards are two pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(2, 4);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(cards.size()-1).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: First two and last two cards are pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(2).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: Last four cards are two pairs\r\n pair1 = cards.subList(1, 3);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }", "public static int formingMagicSquare(List<List<Integer>> s) {\r\n // Write your code here\r\n int cost[] = {0,0,0,0,0,0,0,0};\r\n int t[][] = \r\n {\r\n {4,9,2,3,5,7,8,1,6},\r\n {4,3,8,9,5,1,2,7,6},\r\n {2,9,4,7,5,3,6,1,8},\r\n {2,7,6,9,5,1,4,3,8},\r\n {8,1,6,3,5,7,4,9,2},\r\n {8,3,4,1,5,9,6,7,2},\r\n {6,7,2,1,5,9,8,3,4},\r\n {6,1,8,7,5,3,2,9,4},\r\n };\r\n\r\n for(int i=0;i<8;i++)\r\n { \r\n cost[i] = Math.abs(t[i][0]-s.get(0).get(0)) + Math.abs(t[i][1]-s.get(0).get(1)) + Math.abs(t[i][2]-s.get(0).get(2));\r\n cost[i] = cost[i] + Math.abs(t[i][3]-s.get(1).get(0)) + Math.abs(t[i][4]-s.get(1).get(1)) + Math.abs(t[i][5]-s.get(1).get(2));\r\n cost[i] = cost[i] + Math.abs(t[i][6]-s.get(2).get(0)) + Math.abs(t[i][7]-s.get(2).get(1)) + Math.abs(t[i][8]-s.get(2).get(2));\r\n } \r\n\r\n Arrays.sort(cost);\r\n return cost[0];\r\n\r\n }", "public double MAD(String first,String second) throws IOException{\r\n\t\t \r\n\t\tBufferedImage image;\r\n\t\ttry{\r\n\t\t image = ImageIO.read(new File(first));\r\n\t\t \r\n\t int width = image.getWidth();\r\n\t int height = image.getHeight();\r\n\t int [][] fr = CUtils.ColorImageTo2DArray(first);\r\n\t int [][] sec = CUtils.ColorImageTo2DArray(second);\r\n\r\n\r\n\t double sum = 0;\r\n\t for (int row = 0; row < width; row++){ \r\n\t for (int col =0; col < height; col++) {\r\n\t \t if(row <= height-1)\r\n\t \t sum += Math.abs(fr[row][col]-sec[row][col]);\r\n\t }\r\n\t }\n\t sum = (1/Math.pow(width, 2.0))*sum;\r\n\t System.out.println(\"the sum is:\" +sum);\n\t return sum;\r\n\t\t}\r\n\t\tcatch (IOException e){\r\n\t\t\treturn -44;\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n int[] row1 = new int[]{3, 5, 1, 1};\n int[] row2 = new int[]{2, 3, 3, 2};\n int[] row3 = new int[]{5, 5};\n int[] row4 = new int[]{4, 4, 2};\n int[] row5 = new int[]{1, 3, 3, 3};\n int[] row6 = new int[]{1, 1, 6, 1, 1};\n\n //create a hashmap to hold keys(sums), and values(number of times the wall has rows that add up to that sum)\n HashMap<Integer, Integer> hashMap = new HashMap<>();\n\n //iterate over a row, each time a sum is reached replace the value at key sum, with an incremented value\n int sum = 0;\n for (int i = 0; i < row1.length - 1; i++) {\n\n sum += row1[i];\n if (hashMap.containsKey(sum)) {\n int var = hashMap.get(sum) + 1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n //print out the contents of the keySet, which sums have been reached, and the values aka how many times each sum has been reached\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n //Do this for every row in the wall\n sum = 0;\n for(int i = 0; i < row2.length-1; i++) {\n\n sum += row2[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row3.length-1; i++) {\n\n sum += row3[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row4.length-1; i++) {\n\n sum += row4[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row5.length-1; i++) {\n\n sum += row5[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n sum = 0;\n for(int i = 0; i < row6.length-1; i++) {\n\n sum += row6[i];\n if(hashMap.containsKey(sum)) {\n int var = hashMap.get(sum)+1;\n hashMap.replace(sum, var);\n } else {\n hashMap.put(sum, 1);\n }\n }\n System.out.println(\"Sums Reached and how many times respectively:\");\n System.out.println(hashMap.keySet());\n System.out.println(hashMap.values());\n System.out.println(\"------------------------\");\n\n //now that every row has been covered, the key associated with the highest value will be where you should make your cut\n System.out.println(\"To cut through the least amount of bricks, you should make the cut at: \");\n int max = 0;\n for(int i : hashMap.values()) {\n if(i > max) {\n max = i;\n }\n }\n for(Map.Entry<Integer, Integer> entry : hashMap.entrySet()) {\n if(entry.getValue() == max) {\n System.out.println(entry.getKey());\n }\n }\n //and the # of bricks to cut through will be the amount of rows minus how many times the sum was reached\n System.out.println(\"The least amount of rows to cut through is \");\n System.out.println(6 - max);\n\n }", "void printScore(double sum[]){\n \n if((sum[1] > sum [4]) && (sum[1] > sum[5]) ){\n System.out.println(\"among 1 4 5 => 1\");\n }\n if((sum[4] > sum [1]) && (sum[4] > sum[5]) ){\n System.out.println(\"among 1 4 5 => 4\");\n }\n if((sum[5] > sum [1]) && (sum[5] > sum[4]) ){\n System.out.println(\"among 1 4 5 => 5\");\n }\n if((sum[2] > sum [6]) && (sum[2] > sum[8]) ){\n System.out.println(\"among 2 6 8 => 2\");\n }\n if((sum[6] > sum [2]) && (sum[6] > sum[8]) ){\n System.out.println(\"among 2 6 8 => 6\");\n }\n if((sum[8] > sum [2]) && (sum[8] > sum[6]) ){\n System.out.println(\"among 2 6 8 => 8\");\n }\n if((sum[3] > sum [0]) && (sum[3] > sum[7]) ){\n System.out.println(\"among 3 0 7 => 3\");\n }\n if((sum[0] > sum [3]) && (sum[0] > sum[7]) ){\n System.out.println(\"among 3 0 7 => 0\");\n }\n if((sum[7] > sum [3]) && (sum[7] > sum[0]) ){\n System.out.println(\"among 3 0 7 => 7\");\n }\n }", "public void moveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length; column++) {\n\n // check is set to false, meaning no combinations have been made\n boolean check = false;\n for ( int row = grid.length-2; row >= 0; row--) {\n int compare = row;\n if ( grid[compare][column] != 0 ) { \n\n // loop continues whiel there are still zero values below the current\n // tile\n while ( grid[compare+1][column] == 0 ) {\n\n // switches places of the current tile with the zero tile\n grid[compare+1][column] = grid[compare][column];\n grid[compare][column] = 0;\n compare ++;\n\n // if you reach the bottom of your board, break from the loop\n if ( compare == grid.length-1 ){\n break;\n }\n }\n // if a combination was made on the previous loop, set check to false\n if ( check == true ){\n check = false;\n }\n // if a combination wasn't made on the previous loop and two tiles \n // next to each other have the same value, combine them\n else if ( compare != grid.length-1 &&\n grid[compare+1][column] == grid[compare][column]) {\n grid[compare+1][column] = 2*grid[compare+1][column];\n grid[compare][column] = 0;\n\n // sets check to true to indicate a combination was made\n check = true;\n\n // increases your score by the value of the combined tile\n score+= grid[compare+1][column];\n } \n }\n }\n } \n }", "public int sumInnerSquare(int r1, int r2, int c1, int c2)\n\t\t{\t\n\t\t\tint totalSum = 0;\n\t\t\tint sumFromZeroZero = sumZeroZeroToX[r2][c2];\n\t\t\tint left = 0;\n\t\t\tint top = 0;\n\t\t\tint intersection = 0;\n\t\t\t\n\t\t\tif(r1 == 0 && c1 == 0)\n\t\t\t\treturn sumFromZeroZero;\n\t\t\t\n\t\t\tif(r1 > 0)\n\t\t\t\ttop = sumZeroZeroToX[r1-1][c2];\n\t\t\t\n\t\t\tif(c1 > 0)\n\t\t\t\tleft = sumZeroZeroToX[r2][c1-1];\n\t\t\t\n\t\t\tif(c1 > 0 && r1 > 0)\n\t\t\t\tintersection = sumZeroZeroToX[r1-1][c1-1];\n\n\t\t\treturn sumFromZeroZero - top - left + intersection;\n\t\t\t\n\t\t}", "private int Pair(int i) {\r\n int count=0;\r\n for (int j = i+1; j < Card.length; j++) {\r\n if (Card[i].equals(Card[j])){\r\n System.out.println(\"Error Input, With Same Cards\");\r\n System.exit(0);\r\n }\r\n if (Card[i].substring(0,1).equals(Card[j].substring(0,1)) && !Card[i].substring(1,2).equals(Card[j].substring(1,2))){\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public int getHeuristicScore2() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \t//int cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic; //+ cost;\r\n }", "public static double jaccard (Set<String> values1, Set<String> values2) {\t\n\t\t\n\t\tfinal int termsInString1 = values1.size();\t\t\n\t\tfinal int termsInString2 = values2.size();\n\t\t\t\t\n\t\t//now combine the sets\n\t\tvalues1.addAll(values2);\n\t\tfinal int commonTerms = (termsInString1 + termsInString2) - values1.size();\n\t\t\n\t\t//return JaccardSimilarity\n\t\treturn (double) (commonTerms) / (double) (values1.size());\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"enter the number of rows\");\n\t\tint m=sc.nextInt();\n\t\tSystem.out.println(\"enter the number of columns\");\n\t\tint n=sc.nextInt();\n\t\t\n\t\tint matrix1[][]= new int[m][n];\n\t\tint matrix2[][]= new int[m][n];\n\t\tint sumMatrix[][]= new int[m][n];\n\t\tint diffMatrix[][]= new int[m][n];\n\t\tint proMatrix[][]= new int[m][n];\n\t\tSystem.out.println(\"enter matrix one\");\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tmatrix1[i][j]=sc.nextInt();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"enter matrix two\");\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tmatrix2[i][j]=sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tsumMatrix[i][j]=matrix1[i][j]+matrix2[i][j];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Sum matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(sumMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tdiffMatrix[i][j]=matrix1[i][j]-matrix2[i][j];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Difference matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(diffMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tfor(int k=0;k<n;k++)\n\t\t\t\t\tproMatrix[i][j]=matrix1[i][k]*matrix2[k][j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Product matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(proMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public boolean hasTwoP(ArrayList<Card> cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tboolean retVal = false;\r\n\t\tint numPairs = 0;\r\n\t\tint counter;// counts how many of those cards are in the hand\r\n\t\tint pairVal = 0;\r\n\t\tfor (int i = 0; i <cards.size()-1; i++) {\r\n\t\t\tcounter = 1;\r\n\t\t\tfor (int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue() &&\r\n\t\t\t\t\t\tcards.get(i).getValue() != pairVal){\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tpairVal = cards.get(j).getValue();\r\n\t\t\t\t\tif(counter > 1) {\r\n\t\t\t\t\t\tnumPairs++;\r\n\t\t\t\t\t\tif (numPairs == 2) {\r\n\t\t\t\t\t\t\tretVal = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}", "public static void main(String[] args) {\n char[][] answers = {\n {'A', 'B', 'A', 'C', 'C', 'D', 'E', 'E', 'A', 'D'},\n {'D', 'B', 'A', 'B', 'C', 'A', 'E', 'E', 'A', 'D'},\n {'E', 'D', 'D', 'A', 'C', 'B', 'E', 'E', 'A', 'D'},\n {'C', 'B', 'A', 'E', 'D', 'C', 'E', 'E', 'A', 'D'},\n {'A', 'B', 'D', 'C', 'C', 'D', 'E', 'E', 'A', 'D'},\n {'B', 'B', 'E', 'C', 'C', 'D', 'E', 'E', 'A', 'D'},\n {'B', 'B', 'A', 'C', 'C', 'D', 'E', 'E', 'A', 'D'},\n {'E', 'B', 'E', 'C', 'C', 'D', 'E', 'E', 'A', 'D'}};\n\n // Key to the questions\n char[] keys = {'D', 'B', 'D', 'C', 'C', 'D', 'A', 'E', 'A', 'D'};\n\n int[][] students = new int[answers.length][2];\n\n // Grade all answers\n for (int i = 0; i < answers.length; i++) {\n // Grade one student\n int correctCount = 0;\n for (int j = 0; j < answers[i].length; j++) {\n if (answers[i][j] == keys[j])\n correctCount++;\n }\n\n students[i][0] = i;\n students[i][1] = correctCount;\n }\n\n sortMatrix(students);\n\n for (int[] student : students) {\n System.out.println(\"Student \" + student[0] + \"'s correct count is \" +\n student[1]);\n }\n }", "public int arrayPairSum(int[] nums) {\n\t Arrays.sort(nums);\n\t int sum = 0;\n\t for (int i=0; i+1<nums.length; i += 2) {\n\t sum += nums[i];\n\t }\n\t return sum;\n\t }", "public int hamming() {\n int distance = 0;\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (_tiles[i][j] != _goal[i][j]) {\n distance++;\n }\n }\n }\n return distance;\n }", "public boolean isFullHouse(){\n List<PokerCard> firstList;\r\n List<PokerCard> secondList;\r\n \r\n //First possibility: first two cards are a pair\r\n firstList = cards.subList(0, 2);\r\n secondList = cards.subList(2, cards.size());\r\n if(haveSameValue(firstList) && haveSameValue(secondList)){\r\n handValue = secondList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: last two cards are a pair\r\n firstList = cards.subList(0, 3);\r\n secondList = cards.subList(3, cards.size());\r\n if(haveSameValue(firstList) && haveSameValue(secondList)){\r\n handValue = firstList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public void testScoreboardCaseTwo () throws Exception{\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\",\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 2 tests when all no runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n\n// Team 2 -- 30 <-- Team 2 is now winning with a lower score \n// Team 1 -- 63 (same database; different scoring method)\n \n// String [] rankData = {\n// \"1,team2,1,30\",\n// \"2,team1,1,63\",\n// };\n \n \n scoreboardTest (2, runsData, rankData);\n \n }", "public Collection<MatchingPair> matchingPairs(Collection<Integer> values, Integer targetSum)\n {\n HashMap<Integer, Integer> tableCompteur = new HashMap<>();\n LinkedHashMap<Integer, Integer> tablePaire = new LinkedHashMap<Integer, Integer>();\n Collection<MatchingPair> paireSansDuplication = new LinkedList();\n Collection<MatchingPair> solution = new LinkedList();\n\n // On itere sur les valeurs donnee pour savoir le compte de chaque valeur\n for (Integer valeur : values)\n {\n if (tableCompteur.containsKey(valeur))\n {\n // Partie Compteur\n Integer compteur = tableCompteur.get(valeur);\n compteur++;\n tableCompteur.put(valeur, compteur);\n }\n else {\n tableCompteur.put(valeur, 0);\n }\n\n }\n\n // On itere sur les valeurs donnee pour savoir les paires\n for (Integer element : values)\n {\n int temp = targetSum - element;\n if (tablePaire.containsKey(element))\n {\n if (tablePaire.get(element) != null)\n {\n paireSansDuplication.add(new MatchingPair(element, temp));\n }\n // si la table contient l'element on met nul pour ne pas avoir de repetition\n tablePaire.put(temp, null);\n }\n else if (!tablePaire.containsKey(element))\n {\n tablePaire.put(temp, element);\n }\n }\n\n // On trouve le minimum count entre les paire et leur compte pour tenir en compte de toutes les possibilites. Ici le meilleur cas reste O(n) ( pas de paire)\n for (MatchingPair paire : paireSansDuplication)\n {\n if (paire != null) { // verification au debug pr erreur nullpointer\n int a = tableCompteur.get(paire.first);\n int b = tableCompteur.get(paire.second);\n int minCount = Math.min(a+1, b+1);\n for (int i = 0; i < pow(minCount, 2); i++)\n {\n solution.add(new MatchingPair(paire.first, paire.second));\n }\n }\n }\n return solution;\n }", "public String countScore() {\n String str =\"\";\n System.out.println(\"Game has ended\");\n int playerOneCount = 0;\n int playerTwoCount = 0;\n System.out.println(\"this is size of computer board\" + player2.playerTwoDomino.size());\n System.out.println(\"this is size of boneyard \" + allElements.size());\n System.out.println(\"this is size of human board \" + human1.playerOneDomino.size());\n System.out.println(\"this is size of game board \" + gameBoard.size());\n for (int i = 0; i < human1.playerOneDomino.size(); i++) {\n playerOneCount = playerOneCount + human1.playerOneDomino.get(i).getX() + human1.playerOneDomino.get(i).getX();\n }\n for (int j = 0; j < player2.playerTwoDomino.size(); j++) {\n playerTwoCount = playerTwoCount + player2.playerTwoDomino.get(j).getX() + player2.playerTwoDomino.get(j).getY();\n }\n\n if (playerOneCount < playerTwoCount) {\n str = \"Winner is Human by \" + (playerTwoCount - playerOneCount) + \" points\";\n\n\n } else {\n str = \"Winner is Computer by \" + (playerOneCount - playerTwoCount) + \" points\";\n\n }\n\n return str;\n }", "private int GetBestCard(Card[] card) {\n\t int iPos = 0;\n\t int iWeightTemp = 0;\n\t int iWeight[] = new int[8];\n\t for (int i = 0; i < 8; i++){\n\t\t iWeight[i] = -1;\n\t }\n\t // For each selectable card, work out a weight, the highest weight is the one selected.\n\t // The weight is worked out by the distance another of the players cards is from playable ones, with no playable cards in between\n\t Card myCard, nextCard;\n\t for (int i = 0; i < 8; i++){\n\t\t if (card[i] != null){\n\t\t\t // if card value > 7\n\t\t\t if (card[i].GetValue() > 7){\n\t\t\t\t // do you have cards that are higher than this card\n\t\t\t\t myCard = card[i];\n\t\t\t\t iWeightTemp = 0;\n\t\t\t \tfor (int j = 0; j < mCardCount; j++){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() > myCard.GetValue()){\n\t\t\t \t\t\tif (nextCard.GetValue() - myCard.GetValue() > iWeightTemp)\n\t\t\t \t\t\t\tiWeightTemp = nextCard.GetValue() - myCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tiWeight[i] = iWeightTemp;\n\t\t\t \t\t\n\t\t\t }\n\t\t\t if (card[i].GetValue() < 7){\n\t\t\t\t // do you have cards that are lower than this card\n\t\t\t\t myCard = card[i];\n\t\t\t\t iWeightTemp = 0;\n\t\t\t \tfor (int j = mCardCount-1; j >=0; j--){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() < myCard.GetValue()){\n\t\t\t \t\t\tif (myCard.GetValue() - nextCard.GetValue() > iWeightTemp)\n\t\t\t \t\t\t\tiWeightTemp = myCard.GetValue() - nextCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tiWeight[i] = iWeightTemp;\n\t\t\t \t\t\n\t\t\t }\t\n\t\t\t if (card[i].GetValue() == 7){\n\t\t\t\t // do you have cards that are in this suit\n\t\t\t\t myCard = card[i];\n\t\t\t\t int iWeightTemp1;\n\t\t\t\t iWeightTemp = 0;\n\t\t\t\t iWeightTemp1 = 0;\n\t\t\t\t // do you have cards that are higher than this card\n\t\t\t \tfor (int j = 0; j < mCardCount; j++){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() > myCard.GetValue()){\n\t\t\t \t\t\tif (nextCard.GetValue() - myCard.GetValue() > iWeightTemp)\n\t\t\t \t\t\t\tiWeightTemp = nextCard.GetValue() - myCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tmyCard = card[i];\n\t\t\t \t// do you have cards that are lower than this card\n\t\t\t \tfor (int j = mCardCount-1; j >=0; j--){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() < myCard.GetValue()){\n\t\t\t \t\t\tif (myCard.GetValue() - nextCard.GetValue() > iWeightTemp1)\n\t\t\t \t\t\t\tiWeightTemp1 = myCard.GetValue() - nextCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t} \t\n\t\t\t \tiWeight[i] = iWeightTemp + iWeightTemp1;\n\t\t\t \t\t\n\t\t\t }\t\t\t \n\t\t }\n\t\t \t \n\t }\n\t boolean bLoopAceKing = true;\n\t int iMaxTemp = 0;\n\t int iMaxCount = 0;\t\n\t int[] iMaxs;\n\t iMaxs = new int[8];\n\t while (bLoopAceKing){\n\t\t for (int i = 0; i < 8; i++){\n\t\t\t if (iWeight[i] >= iMaxTemp){\n\t\t\t\t if (iWeight[i] == iMaxTemp){\n\t\t\t\t\t iMaxs[iMaxCount] = i;\n\t\t\t\t\t iMaxCount++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t iMaxTemp = iWeight[i];\n\t\t\t\t\t iMaxs = new int[8];\n\t\t\t\t\t iMaxCount = 0;\n\t\t\t\t\t iMaxs[iMaxCount] = i;\n\t\t\t\t\t iMaxCount++;\n\t\t\t\t }\t\t\t \n\t\t\t }\t \n\t\t }\n\t\t boolean bAceKing = false;\n\t\t // If the top weight is zero, meaning your options don't help you, then play the one that is closest to ace/king\n\t\t if (iMaxTemp == 0 && iMaxCount > 1){\n\t\t\t for (int k = 0; k < iMaxCount; k++){\n\t\t\t\t\t iWeight[iMaxs[k]] = Math.abs(card[iMaxs[k]].GetValue()-7);\n\t\t\t\t\t bAceKing = true;\t\t\t\t \n\t\t\t } \t\t \n\t\t }\n\t\t if (bAceKing){\n\t\t\t bLoopAceKing = true;\n\t\t\t iMaxs = new int[8];\n\t\t\t iMaxTemp = 0;\n\t\t\t iMaxCount = 0;\t\t\t \n\t\t }\n\t\t else \n\t\t\t bLoopAceKing = false;\n\t }\n\t if (iMaxCount == 1)\n\t\t iPos = iMaxs[iMaxCount-1];\n\t else {\n\t\t Random generator = new Random();\n\t\t int randomIndex = generator.nextInt( iMaxCount );\n\t\t iPos = iMaxs[randomIndex];\n\t }\n\t\t \n\t return iPos;\n\t \n }", "public static void hasPairWithSum(int[] input, int sum) {\n\t\tMap<Integer, Integer> map = new Hashtable<>();\n\t\tint occurence = 0;\n\t\tfor (int num : input) {\n\t\t\toccurence = 1;\n\t\t\tif (map.containsKey(num)) {\n\t\t\t\toccurence = map.get(num);\n\t\t\t\toccurence++;\n\t\t\t}\n\t\t\tmap.put(num, occurence);\n\t\t}\n\n\t\tfor (int first : input) {\n\t\t\tint second = sum - first;\n\t\t\tif (map.containsKey(second)) {\n\t\t\t\toccurence = map.get(second);\n\t\t\t\tif (occurence > 0) {\n\t\t\t\t\tif (second == first) {\n\t\t\t\t\t\tif (occurence > 1) {\n\t\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t\t\toccurence -= 2;\n\t\t\t\t\t\t\tmap.put(first, occurence);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint firstOccurence = map.get(first);\n\t\t\t\t\t\tfirstOccurence--;\n\t\t\t\t\t\tint secondOccurence = map.get(second);\n\t\t\t\t\t\tsecondOccurence--;\n\t\t\t\t\t\tmap.put(first, firstOccurence);\n\t\t\t\t\t\tmap.put(second, secondOccurence);\n\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public int compareHandForWinner(Hand hand) {\n int thisRank = this.calcRank();\n int handRank = hand.calcRank();\n if (thisRank > handRank) return 1;\n if (thisRank < handRank) return -1;\n\n if( thisRank == 4 || thisRank == 7){\n if( getTripleIndex() > hand.getTripleIndex()) return 1;\n if( getTripleIndex() < hand.getTripleIndex()) return -1;\n }\n if( thisRank == 8){\n if( getSameValueCardOf4Index() > hand.getSameValueCardOf4Index()) return 1;\n if( getSameValueCardOf4Index() < hand.getSameValueCardOf4Index()) return -1;\n }\n if( thisRank == 7 || thisRank == 3 || thisRank == 2){\n int[] indexOfPair = getPairsIndexArray();\n int[] indexOfPair2 = hand.getPairsIndexArray();\n int pairOfIndexValue = indexOfPair[0] * 100 + indexOfPair[1];\n int pairOfIndexValue2 = indexOfPair2[0] * 100 + indexOfPair2[1];\n if( pairOfIndexValue > pairOfIndexValue2) return 1;\n if( pairOfIndexValue < pairOfIndexValue2) return -1;\n }\n return CardOperations.compareTwoArrays(getCardValuesInHand(), hand.getCardValuesInHand());\n }", "public static void main(String[] args) {\n\r\n\t\tfor (int i = 1; i < 100; i++) {\r\n\r\n\t\t\tint sum = 0;\r\n\t\t\tfor (int j = 1; j < i / 2; j++) {\r\n\t\t\t\tif (isDivisible(i, j)) {\r\n\t\t\t\t\tsum += j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (sum == i)\r\n\t\t\t\tSystem.out.println(\"This is a perfect square!\");\r\n\r\n\t\t}\r\n\r\n\t}", "public static void main(String args[]) \n {\n Scanner sc = new Scanner(System.in);\n int row_size = sc.nextInt();\n int col_size = sc.nextInt();\n int matrix1[][] = new int[row_size][col_size];\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n matrix1[i][j]=sc.nextInt();\n }\n }\n int matrix2[][]=new int[row_size][col_size];\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n matrix2[i][j]=sc.nextInt();\n }\n }\n int result[][] = new int[row_size][col_size];\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n result[i][j] = matrix1[i][j] - matrix2[i][j];\n }\n }\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n System.out.print(result[i][j]+\" \");\n }\n System.out.println();\n }\n }", "public static void main(String[] args) {\n\t\tint i,j,z,sumA,sumB,sumPairs;\r\n\r\n\t\tsumPairs = 0;\r\n\r\n\t\tfor (i=1;i<10000;i++){\r\n\t\t sumA = 0;\r\n\t\t for (j=1;j<i;j++){\r\n\t\t if (i%j==0) \r\n\t\t sumA += j;\r\n\t\t }\r\n\r\n\t\t sumB = 0;\r\n\t\t for (z=1;z<sumA;z++){\r\n\t\t if (sumA%z==0)\r\n\t\t sumB += z;\r\n\t\t }\r\n\r\n\t\t if (sumB == i && sumB != sumA)\r\n\t\t sumPairs += i; \r\n\t\t}\r\nSystem.out.println(sumPairs);\r\n\t\t\r\n\t}", "public static void grade(int size)\n {\n int score = 0;\n for(int i = 0; i<size;i++)\n {\n if(answer[i] == nb1[i] + nb2[i])\n {\n score+=10;\n }\n }\n System.out.println(\"Votre score est \" + score+\"/100\");\n }", "private void updateHammingScore(int i, int j) {\n // if not free cell\n if (!(i == dimension() - 1 && j == dimension() - 1)) {\n // calculate goal value for this cell\n int goal = i * dimension() + j + 1;\n if (blocks[i][j] != goal) {\n hamming_score ++;\n }\n\n if (verbose) {\n // System.out.println(i + \",\" + j + \" \" + block + \" is \" + goal + \"?\" );\n }\n }\n }", "public int hamming() {\n int count = 0;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N && i+j < 2*N-2; j++) {\n if (blocks[i][j] != i*N + j + 1) {\n count++;\n }\n }\n }\n return count;\n }", "public int sumRegion(int row1, int col1, int row2, int col2) {\n int ret = 0;\n\n for (int j = row1; j <= row2; j++){\n if (col1 == 0) \n ret += rowSums[j][col2];\n else \n ret += rowSums[j][col2] - rowSums[j][col1 - 1];\n }\n\n return ret;\n }", "public int getScore(Grid grid) {\n int scoreHolder = 0;\n for (int idx_y = 0; idx_y < Grid.ROWS; idx_y++) { // Iterate the rows\n Set<Integer> seen = new HashSet<>();\n boolean unique = true;\n for (int idx_x = 0; idx_x < Grid.COLUMNS; idx_x++) { // Iterate the columns\n if (grid.isCellEmpty(idx_x, idx_y)) {\n unique = false;\n } else {\n Dice currDice = grid.getDie(idx_x, idx_y);\n if (seen.contains(currDice.getValue())) {\n unique = false;\n } else {\n seen.add(currDice.getValue());\n }\n }\n }\n scoreHolder += (unique) ? this.objValue : 0;\n }\n return scoreHolder;\n }", "protected double[] getPairCounts(Hashtable<Integer, Double> words) {\n\t\tdouble positiveCount = 0;\n\t\tdouble negativeCount = 0;\n\t\tfor(int word1 : words.keySet()){\n\t\t\tfor(int word2 : words.keySet()){\n\t\t\t\tif(word1 != word2){\n\t\t\t\t\tif(relatedPairs[word1].contains(word2)){\n\t\t\t\t\t\tpositiveCount+= words.get(word1) * words.get(word2); //pairs with feature same SG\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tnegativeCount+= words.get(word1) * words.get(word2); // pairs with feature different SG\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new double[]{positiveCount, negativeCount};//return both\n\t}", "public int hamming() {\n int numIncorrect = -1;\n int index = 1;\n\n for (int[] row : tiles) {\n for (int tile : row) {\n if (tile != index)\n numIncorrect++;\n index++;\n }\n }\n return numIncorrect;\n }", "static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n {\n numcan++;\n indx++;\n totcand+=numcan;\n //System.out.println(numcan+\"-\"+indx+\":\"+totcand);\n if(indx==score.length)\n break;\n }\n numcan=1;\n totcand+=numcan;\n \n }\n*/\tfor(int sc:score)\n {\n candcalmap.put(sc,candcalmap.get(sc)==null?1:candcalmap.get(sc)+1);\n }\n for(Map.Entry<Integer,Integer> e:candcalmap.entrySet())\n {\n totcand+=numcan*e.getValue();\n// System.out.println(e.getValue()+\"-\"+e.getKey()+\":\"+numcan+\" \"+totcand);\n numcan++;\n }\n return totcand;\n }" ]
[ "0.5825692", "0.5698206", "0.5447694", "0.5344034", "0.5336705", "0.53269416", "0.5288192", "0.52861494", "0.52594906", "0.52244526", "0.52198553", "0.5181286", "0.51602674", "0.5155257", "0.5154617", "0.51385456", "0.5108851", "0.5082835", "0.50759053", "0.5053871", "0.5050256", "0.5045289", "0.50085235", "0.50085235", "0.50072044", "0.4996834", "0.49743685", "0.49678344", "0.49480814", "0.49349985", "0.4932973", "0.4915227", "0.491313", "0.4906622", "0.48998427", "0.4849158", "0.48354426", "0.48342574", "0.48218828", "0.48176983", "0.48100433", "0.47957855", "0.47834918", "0.47805122", "0.4779613", "0.47719806", "0.47681573", "0.4767447", "0.47501743", "0.47449428", "0.47377518", "0.47290832", "0.4728145", "0.4717108", "0.47158816", "0.47040248", "0.4694551", "0.4690966", "0.4689802", "0.46883196", "0.46873978", "0.46824652", "0.46792036", "0.46731317", "0.46714532", "0.46710673", "0.46628562", "0.4655386", "0.4634617", "0.46285453", "0.46270648", "0.4621209", "0.46195725", "0.46157473", "0.46082202", "0.46081576", "0.4595124", "0.45916185", "0.45879576", "0.4578971", "0.45788217", "0.45771167", "0.45738608", "0.45588702", "0.4555833", "0.45512837", "0.45451188", "0.4544916", "0.4543209", "0.45366415", "0.4534842", "0.45269936", "0.45254776", "0.45122617", "0.45120904", "0.45119286", "0.45106155", "0.45085707", "0.45078135", "0.45073268" ]
0.5558696
2
NOTE: actually never mind, these must be the same. Don't mess with this
public String getKey() { return getCacheFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n public int getOrder() {\n return 4;\n }", "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "@Override\n protected void getExras() {\n }", "private void m50366E() {\n }", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void method_4270() {}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n public void perish() {\n \n }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private SBomCombiner()\n\t{}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\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 int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private void level7() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void assignment() {\n\n\t\t\t}", "@Override public int describeContents() { return 0; }", "public void skystonePos4() {\n }", "public void skystonePos2() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\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: */ }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private Combined() {}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void m50367F() {\n }", "@Override\n\tpublic void abs1_m1() {\n\t\t\n\t}", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "@Test\n public void getPosition() {\n // Testing for Shape Rectangle that mutates its position and see the position match.\n assertEquals(defaultPosition1, defaultShape1.getPosition());\n Position newRectanglePosition = new Position(30, 30);\n defaultShape1 = new Rectangle(defaultColor1, newRectanglePosition, defaultSize1);\n assertEquals(newRectanglePosition, defaultShape1.getPosition());\n // Testing for Shape Oval that mutates its position and see the position match for Oval.\n assertEquals(defaultPosition2, defaultShape2.getPosition());\n Position newOvalPosition = new Position(60, 60);\n defaultShape2 = new Oval(defaultColor2, newOvalPosition, defaultSize2);\n assertEquals(newOvalPosition, defaultShape2.getPosition());\n // Both Tpe of Shape\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "protected Map method_1552() {\n return super.method_1552();\n }", "private IdentifiableComparator() {\n\t\t// This class is not intended to create own objects from it.\n\t}", "public boolean method_2453() {\r\n return false;\r\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Override\n\tpublic void abs2_m1() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public void Exterior() {\n\t\t\r\n\t}", "@RepeatedTest(20)\n void subTest(){\n assertEquals(f.sub(f), new Float(decimal-decimal));\n assertEquals(f.sub(g), new Float(decimal-random));\n assertEquals(f.sub(i), new Float(decimal-seed));\n assertEquals(f.sub(bi), new Float(decimal-bi.toInt(bi.getBinary())));\n assertEquals(i.sub(f), new Float(seed-decimal));\n assertEquals(i.sub(i), new Int(seed-seed));\n assertEquals(i.sub(bi), new Int(seed-bi.toInt(bi.getBinary())));\n\n //nulls\n //Bool - ITypes\n assertEquals(bot.sub(st),Null);\n assertEquals(bof.sub(st),Null);\n assertEquals(bot.sub(bot),Null);\n assertEquals(bof.sub(bot), Null);\n assertEquals(bot.sub(f), Null);\n assertEquals(bof.sub(i), Null);\n assertEquals(bot.sub(bi), Null);\n //Float - ITypes \\ {Numbers}\n assertEquals(f.sub(st), Null);\n assertEquals(f.sub(bot), Null);\n assertEquals(f.sub(bof), Null);\n //Int - ITypes \\ {Numbers}\n assertEquals(i.sub(st), Null);\n assertEquals(i.sub(bot),Null);\n assertEquals(i.sub(bof), Null);\n //Binary - ITypes \\ {Int, Binary}\n assertEquals(bi.sub(st), Null);\n assertEquals(bi.sub(bot), Null);\n assertEquals(bi.sub(f), Null);\n //NullType subtractions\n assertEquals(Null.sub(st), Null);\n assertEquals(Null.sub(bof), Null);\n assertEquals(Null.sub(f), Null);\n assertEquals(Null.sub(i), Null);\n assertEquals(Null.sub(bi), Null);\n assertEquals(Null.sub(Null), Null);\n assertEquals(st.sub(Null), Null);\n assertEquals(bot.sub(Null), Null);\n assertEquals(f.sub(Null), Null);\n assertEquals(i.sub(Null), Null);\n assertEquals(bi.sub(Null), Null);\n }", "protected int matches(Alignment alignment) {\n\t\treturn 1;\n\t}", "@Override\n protected void init() {\n }", "default int getOrder() {\n\treturn 0;\n }", "public void gored() {\n\t\t\n\t}", "Diff() {\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\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}", "protected Item func_146068_u() { return Item.func_150899_d(0); }", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}", "StackManipulation cached();", "@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\treturn 0;\n\t\t}", "void method0() {\nprivate static final String ELEMENT_N = \"element_n\";\nprivate static final String ELEMENT_R = \"element_r\";\nprivate static final String ATTRIBUTE_N = \"attribute_n\";\nprivate static final String ATTRIBUTE_R = \"attribute_r\";\nprivate static int ATTIDX_COUNT = 0;\npublic static final int ATTIDX_ABSTRACT = ATTIDX_COUNT++;\npublic static final int ATTIDX_AFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_BASE = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCK = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCKDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_DEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_EFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINAL = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINALDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_FORM = ATTIDX_COUNT++;\npublic static final int ATTIDX_ID = ATTIDX_COUNT++;\npublic static final int ATTIDX_ITEMTYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_MAXOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MEMBERTYPES = ATTIDX_COUNT++;\npublic static final int ATTIDX_MINOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAME = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE_LIST = ATTIDX_COUNT++;\npublic static final int ATTIDX_NILLABLE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NONSCHEMA = ATTIDX_COUNT++;\npublic static final int ATTIDX_PROCESSCONTENTS = ATTIDX_COUNT++;\npublic static final int ATTIDX_PUBLIC = ATTIDX_COUNT++;\npublic static final int ATTIDX_REF = ATTIDX_COUNT++;\npublic static final int ATTIDX_REFER = ATTIDX_COUNT++;\npublic static final int ATTIDX_SCHEMALOCATION = ATTIDX_COUNT++;\npublic static final int ATTIDX_SOURCE = ATTIDX_COUNT++;\npublic static final int ATTIDX_SUBSGROUP = ATTIDX_COUNT++;\npublic static final int ATTIDX_SYSTEM = ATTIDX_COUNT++;\npublic static final int ATTIDX_TARGETNAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_TYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_USE = ATTIDX_COUNT++;\npublic static final int ATTIDX_VALUE = ATTIDX_COUNT++;\npublic static final int ATTIDX_ENUMNSDECLS = ATTIDX_COUNT++;\npublic static final int ATTIDX_VERSION = ATTIDX_COUNT++;\npublic static final int ATTIDX_XML_LANG = ATTIDX_COUNT++;\npublic static final int ATTIDX_XPATH = ATTIDX_COUNT++;\npublic static final int ATTIDX_FROMDEFAULT = ATTIDX_COUNT++;\n//public static final int ATTIDX_OTHERVALUES = ATTIDX_COUNT++; \npublic static final int ATTIDX_ISRETURNED = ATTIDX_COUNT++;\nprivate static final XIntPool fXIntPool = new XIntPool();\n// constants to return \nprivate static final XInt INT_QUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_QUALIFIED);\nprivate static final XInt INT_UNQUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_UNQUALIFIED);\nprivate static final XInt INT_EMPTY_SET = fXIntPool.getXInt(XSConstants.DERIVATION_NONE);\nprivate static final XInt INT_ANY_STRICT = fXIntPool.getXInt(XSWildcardDecl.PC_STRICT);\nprivate static final XInt INT_ANY_LAX = fXIntPool.getXInt(XSWildcardDecl.PC_LAX);\nprivate static final XInt INT_ANY_SKIP = fXIntPool.getXInt(XSWildcardDecl.PC_SKIP);\nprivate static final XInt INT_ANY_ANY = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_ANY);\nprivate static final XInt INT_ANY_LIST = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_LIST);\nprivate static final XInt INT_ANY_NOT = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_NOT);\nprivate static final XInt INT_USE_OPTIONAL = fXIntPool.getXInt(SchemaSymbols.USE_OPTIONAL);\nprivate static final XInt INT_USE_REQUIRED = fXIntPool.getXInt(SchemaSymbols.USE_REQUIRED);\nprivate static final XInt INT_USE_PROHIBITED = fXIntPool.getXInt(SchemaSymbols.USE_PROHIBITED);\nprivate static final XInt INT_WS_PRESERVE = fXIntPool.getXInt(XSSimpleType.WS_PRESERVE);\nprivate static final XInt INT_WS_REPLACE = fXIntPool.getXInt(XSSimpleType.WS_REPLACE);\nprivate static final XInt INT_WS_COLLAPSE = fXIntPool.getXInt(XSSimpleType.WS_COLLAPSE);\nprivate static final XInt INT_UNBOUNDED = fXIntPool.getXInt(SchemaSymbols.OCCURRENCE_UNBOUNDED);\n// used to store the map from element name to attribute list \n// for 14 global elements \nprivate static final Hashtable fEleAttrsMapG = new Hashtable(29);\n// for 39 local elememnts \nprivate static final Hashtable fEleAttrsMapL = new Hashtable(79);\n// used to initialize fEleAttrsMap \n// step 1: all possible data types \n// DT_??? >= 0 : validate using a validator, which is initialized staticly \n// DT_??? < 0 : validate directly, which is done in \"validate()\" \nprotected static final int DT_ANYURI = 0;\nprotected static final int DT_ID = 1;\nprotected static final int DT_QNAME = 2;\nprotected static final int DT_STRING = 3;\nprotected static final int DT_TOKEN = 4;\nprotected static final int DT_NCNAME = 5;\nprotected static final int DT_XPATH = 6;\nprotected static final int DT_XPATH1 = 7;\nprotected static final int DT_LANGUAGE = 8;\n// used to store extra datatype validators \nprotected static final int DT_COUNT = DT_LANGUAGE + 1;\nprivate static final XSSimpleType[] fExtraDVs = new XSSimpleType[DT_COUNT];\nprotected static final int DT_BLOCK = -1;\nprotected static final int DT_BLOCK1 = -2;\nprotected static final int DT_FINAL = -3;\nprotected static final int DT_FINAL1 = -4;\nprotected static final int DT_FINAL2 = -5;\nprotected static final int DT_FORM = -6;\nprotected static final int DT_MAXOCCURS = -7;\nprotected static final int DT_MAXOCCURS1 = -8;\nprotected static final int DT_MEMBERTYPES = -9;\nprotected static final int DT_MINOCCURS1 = -10;\nprotected static final int DT_NAMESPACE = -11;\nprotected static final int DT_PROCESSCONTENTS = -12;\nprotected static final int DT_USE = -13;\nprotected static final int DT_WHITESPACE = -14;\nprotected static final int DT_BOOLEAN = -15;\nprotected static final int DT_NONNEGINT = -16;\nprotected static final int DT_POSINT = -17;\n// used to resolver namespace prefixes \nprotected XSDHandler fSchemaHandler = null;\n// used to store symbols. \nprotected SymbolTable fSymbolTable = null;\n// used to store the mapping from processed element to attributes \nprotected Hashtable fNonSchemaAttrs = new Hashtable();\n// temprory vector, used to hold the namespace list \nprotected Vector fNamespaceList = new Vector();\n// whether this attribute appeared in the current element \nprotected boolean[] fSeen = new boolean[ATTIDX_COUNT];\nprivate static boolean[] fSeenTemp = new boolean[ATTIDX_COUNT];\n// the following part implements an attribute-value-array pool. \n// when checkAttribute is called, it calls getAvailableArray to get \n// an array from the pool; when the caller is done with the array, \n// it calls returnAttrArray to return that array to the pool. \n// initial size of the array pool. 10 is big enough \nstatic final int INIT_POOL_SIZE = 10;\n// the incremental size of the array pool \nstatic final int INC_POOL_SIZE = 10;\n// the array pool \nObject[][] fArrayPool = new Object[INIT_POOL_SIZE][ATTIDX_COUNT];\n// used to clear the returned array \n// I think System.arrayCopy is more efficient than setting 35 fields to null \nprivate static Object[] fTempArray = new Object[ATTIDX_COUNT];\n// current position of the array pool (# of arrays not returned) \nint fPoolPos = 0;\n}", "public void skystonePos6() {\n }", "@Override\n\t\tpublic void reduce() {\n\t\t\t\n\t\t}", "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "public void m23075a() {\n }", "public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }", "protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.CHAR_TYPE;\n Class<Integer> class0 = Integer.class;\n Class<Object> class1 = Object.class;\n Type type1 = Type.getType(class1);\n Type.getType(class0);\n Type type2 = Type.getObjectType(\"The prefix must not be null\");\n Type type3 = Type.INT_TYPE;\n Type[] typeArray0 = new Type[6];\n typeArray0[0] = type2;\n typeArray0[1] = type2;\n typeArray0[2] = type2;\n Type type4 = Type.CHAR_TYPE;\n typeArray0[3] = type4;\n typeArray0[4] = type1;\n typeArray0[5] = type3;\n frame0.initInputFrame(classWriter0, (-349), typeArray0, 10);\n Item item0 = new Item();\n item0.set(10);\n ClassWriter classWriter2 = new ClassWriter(529);\n Frame frame1 = new Frame();\n frame0.merge(classWriter2, frame1, 633);\n boolean boolean0 = frame0.merge(classWriter1, frame1, 285212681);\n assertTrue(boolean0);\n }", "public void mo38117a() {\n }", "@Override\n\tpublic int getIntersert() {\n\t\treturn (8);\n\t}" ]
[ "0.56367296", "0.5419299", "0.5401485", "0.5393026", "0.52620876", "0.5261317", "0.52525395", "0.5155126", "0.51161397", "0.5112078", "0.50971144", "0.50820607", "0.5072888", "0.5064829", "0.5063029", "0.5061489", "0.5041713", "0.50390923", "0.50291806", "0.5027162", "0.5004774", "0.49821538", "0.49618727", "0.49586058", "0.49442485", "0.49130398", "0.48999417", "0.48883", "0.4859171", "0.48582095", "0.48548877", "0.48548877", "0.4845108", "0.48388433", "0.48297298", "0.48094514", "0.4791582", "0.47911468", "0.4788754", "0.47841817", "0.4760892", "0.47525072", "0.4750959", "0.47500393", "0.4748253", "0.47479793", "0.47429973", "0.4741925", "0.4737584", "0.47361428", "0.47352377", "0.4731952", "0.47151002", "0.47105247", "0.47092786", "0.47050324", "0.47049028", "0.47043628", "0.46982712", "0.46865052", "0.4684754", "0.4684754", "0.4677623", "0.4677278", "0.46769765", "0.46713084", "0.46697164", "0.46639243", "0.46586803", "0.46576464", "0.46576464", "0.46540406", "0.46499038", "0.464826", "0.46469727", "0.4646786", "0.46451285", "0.4644326", "0.4637982", "0.46352863", "0.46335155", "0.46335155", "0.46335155", "0.46335155", "0.46335155", "0.46331173", "0.46323496", "0.4622498", "0.46191657", "0.46073413", "0.46040812", "0.46015427", "0.46003872", "0.4599912", "0.45994288", "0.45984417", "0.459531", "0.45909896", "0.4585356", "0.45834714", "0.4581542" ]
0.0
-1
Base royalty value use for back, or multiply by 2 for middle.
public final int get5CardRoyaltyValue(int player, int hand, OfcHandMatrix matrix) { int total = 0; int count = 0; count = matrix.numHandsOfRank(player, hand, StupidEval.STRAIGHT); if (count == 0) return total; total += 2 * count; // straight = 2 count = matrix.numHandsOfRank(player, hand, StupidEval.FLUSH); if (count == 0) return total; total += 2 * count; // flush = 4 count = matrix.numHandsOfRank(player, hand, StupidEval.FULL_HOUSE); if (count == 0) return total; total += 2 * count; // full house = 6 count = matrix.numHandsOfRank(player, hand, StupidEval.QUADS); if (count == 0) return total; total += 4 * count; // quads = 10 count = matrix.numHandsOfRank(player, hand, StupidEval.STRAIGHT_FLUSH); if (count == 0) return total; total += 5 * count; // quads = 15 count = matrix.numHandsOfRank(player, hand, StupidEval.ROYAL_FLUSH); if (count == 0) return total; total += 10 * count; // royal = 25 return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public double getBaseCost() {\n return BASE_COST;\n }", "@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }", "private void basePrice(double rPrice, int uSold){\n\t\tbasePrice = rPrice * uSold;\n\t}", "public double getBase()\r\n {\r\n return Base;\r\n }", "public double getLoyaltyBalance() {\n if (compositePOSTransaction.getLoyaltyCard() != null) {\n \t//Fix for US issue 886: Receipt for a sale involving a loyalty customer needs \n \t//to show that points were earned\n \tif (isSourceFromTxnDetailApplet() ||\n (com.chelseasystems.cr.swing.CMSApplet.theAppMgr!=null &&\n \t\t\t com.chelseasystems.cr.swing.CMSApplet.theAppMgr.getStateObject(\"THE_TXN\") != null)) {\n \t\treturn compositePOSTransaction.getLoyaltyCard().getCurrBalance();\n \t} else {\n return compositePOSTransaction.getLoyaltyCard().getCurrBalance()\n \t\t\t- compositePOSTransaction.getUsedLoyaltyPoints()\n \t\t\t+ this.getTxnLoyaltyPoints();\n \t}\n }\n else {\n return 0.0;\n }\n }", "default Gwei get_base_reward(BeaconState state, ValidatorIndex index) {\n UInt64 adjusted_quotient = integer_squareroot(get_total_active_balance(state))\n .dividedBy(getConstants().getBaseRewardQuotient());\n if (adjusted_quotient.equals(UInt64.ZERO)) {\n return Gwei.ZERO;\n }\n return state.getValidatorRegistry().get(index).getEffectiveBalance()\n .dividedBy(adjusted_quotient).dividedBy(getConstants().getBaseRewardsPerEpoch());\n }", "public int getTax(){\n int tax=0;\n if(this.salary<this.LOWER_LIMIT){\n tax=this.taxableSalary/100*10;\n }else if(this.salary<this.UPPER_LIMIT){\n tax=this.taxableSalary/100*22;\n }else{\n tax=this.UPPER_LIMIT/100*22 + (this.taxableSalary-this.UPPER_LIMIT)/100*40;\n }\n return tax;\n }", "int getMortgageRate();", "float getSteamSupplyRating2();", "double getBalance();", "double getBalance();", "public double getBase() {\n\t\treturn base;\n\t}", "public double basePrice () {\n return basePrice;\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "@Override\r\n\tprotected float generateBaseCost(IGoapUnit goapUnit) {\n\t\treturn 2f;\r\n\t}", "abstract public double getBegBal(int yr);", "@Override\r\n public double getBaseCost() { return type.getCost(); }", "@Override\n public int accion() {\n return this.alcance*2/3*3;\n }", "public double taxPaying() {\r\n double tax;\r\n if (profit == true) {\r\n tax = revenue / 10.00;\r\n }\r\n\r\n else\r\n tax = revenue / 2.00;\r\n return tax;\r\n }", "public abstract double baseExperience();", "@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }", "public Loyalty(int l)\r\n\t{\r\n\t\tvalue = l;\r\n\t}", "@Override\n\tpublic double perimetro() {\n\t\treturn getBase()*4;\n\t}", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "@Override\n\tpublic double rentalPrice() {\n\t\treturn 70.00;\n\t}", "public abstract int getCostToUpgrade();", "@Override\r\n\tpublic double getBalance() {\n\t\treturn (super.getBalance()+cashcredit);\r\n\t}", "public BigDecimal getLBR_TaxDeferralRate();", "public int getWorth() { return 1; }", "public double getGrossWage(){\r\n\t return (salary + addings);\r\n }", "public int getChargeRate();", "public int getBaseMana()\r\n {\r\n return mBaseMana;\r\n }", "@Override\r\n public int getSpecialValue() {\n int num = this.getCombatLevel();\r\n num += this.levelChangeAgainstCultistPlayer;\r\n \r\n return num;\r\n }", "float getVacationAccrualRate();", "@Override\n public int getSpecialValue() {\n return maxBonus;\n }", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public ArmCurrency getLoyaltyBalanceInCurrencyFormat() {\n\t double loyaltyPointsBalance = getLoyaltyBalance();\n\t ArmCurrency rtnVal = new ArmCurrency(loyaltyPointsBalance);\n\t return (rtnVal);\n }", "@Override\n public double getHonorario() {\n return super.getHonorario() * 1.05;\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "private double getBalance() { return balance; }", "public double getCost() \n { \n return super.getCost() +22;\n }", "static double tax( double salary ){\n\n return salary*10/100;\n\n }", "int getSellCurrent();", "public double getBalance()\n {\n return startingBalance;\n }", "public int getBaseFareAmount() {\n return baseFareAmount;\n }", "public double getReward() {\n if (inGoalRegion()) {\n return REWARD_AT_GOAL;\n } else {\n return REWARD_PER_STEP;\n }\n }", "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "private static int getBonus(int sales) {\n if (sales > 5000) {\n\n return sales / 10;\n\n }\n return 0;\n }", "public int getGold();", "public BigDecimal getLBR_TaxBase();", "private double calculateYearlyLoyaltyPoints(int year){\n \tLoyalty txnLoyalty = compositePOSTransaction.getLoyaltyCard();\n\t\tif (txnLoyalty == null){\n\t\t\treturn 0.0;\n\t\t}else if(!txnLoyalty.isYearlyComputed()){\n\t\t\treturn 0.0;\n\t\t}\n\t\t\n\t\tif(com.chelseasystems.cr.swing.CMSApplet.theAppMgr!=null &&\n \t\t\tcom.chelseasystems.cr.swing.CMSApplet.theAppMgr.getStateObject(\"THE_TXN\") != null){\n \t\t// this is an inquiry\n\t\t\tif (year == 0) {\n\t\t\t\treturn txnLoyalty.getCurrYearBalance();\n\t\t\t} else {\n\t\t\t\treturn txnLoyalty.getLastYearBalance();\n\t\t\t}\n\t\t}\n\t\t\n\t\tdouble loyaltyUsed = compositePOSTransaction.getUsedLoyaltyPoints();\n\t\tdouble points = compositePOSTransaction.getLoyaltyPoints();\n\n\t\tdouble currBal = txnLoyalty.getCurrBalance();\n\t\tdouble currYearBal = txnLoyalty.getCurrYearBalance();\n\t\tdouble lastYearBal = txnLoyalty.getLastYearBalance();\n\t\tif (loyaltyUsed > 0) {\n\t\t\tif (txnLoyalty.getLastYearBalance() < loyaltyUsed) {\n\t\t\t\tcurrYearBal = currYearBal - (loyaltyUsed - lastYearBal);\n\t\t\t\tlastYearBal = 0.0;\n\t\t\t} else {\n\t\t\t\tlastYearBal -= loyaltyUsed;\n\t\t\t}\n\t\t\tcurrBal -= loyaltyUsed;\n\t\t} else {\n\t\t\tcurrBal -= loyaltyUsed;\n\t\t\tcurrYearBal -= loyaltyUsed;\n\t\t}\n\n\t\tif (txnLoyalty.isYearlyComputed()) {\n\t\t\tcurrYearBal += points;\n\t\t} else {\n\t\t\tcurrYearBal = 0.0;\n\t\t\tlastYearBal = 0.0;\n\t\t}\n\n\t\tif (year == 0) {\n\t\t\treturn currYearBal;\n\t\t} else {\n\t\t\treturn lastYearBal;\n\t\t}\n }", "public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}", "public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }", "public int getPrice() {\n Random rng = GameState.getState().rng;\n\n int range = (int)((float)basePrice * ((float)var / 100));\n int maxPrice = basePrice + range;\n int minPrice = basePrice - range;\n\n //randomly assigns a price to each good\n int price = minPrice + rng.nextInt(range * 2);\n\n //prevents the price from exceeding the set max price or falling below the set min price\n if (price > maxPrice) {\n price = maxPrice;\n } else if (price < minPrice || price < 15) {\n price = minPrice;\n }\n\n return price;\n }", "public static float rebaseZ100(float zval, float mvabase) {return (mvabase==100F)?zval:zval*100F/mvabase;}", "public double calcStandardPrice(){\n double standardPrice = getLocation().getBasePrice() + BASE_RATE;\n return standardPrice;\n }", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "public double getRightRate() {\n return rightEnc.getRate();\n }", "public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}", "public int getMod() {\n return (int) Math.floor((base + bonus - 10) / 2);\n }", "@Override\n\tpublic int getStrenght(int currentStrenght) {\n\t\treturn currentStrenght+this.strenght;\n\t}", "int getBuyCurrent();", "@Override\n\tpublic double getCost() {\n\t\tcost = roll.getCost();\n\t\tif(roll.getType().equals(\"egg\")) {\n\t\t\tcost+=0.40;\n\t\t}else if(roll.getType().equals(\"jelly\")) {\n\t\t\tcost+=0.20;\n\t\t}else if(roll.getType().equals(\"pastry\")) {\n\t\t\tcost+=1.20;\n\t\t}else if(roll.getType().equals(\"sausage\")) {\n\t\t\tcost+=0.75;\n\t\t}else {\n\t\t\tcost+=0.10;\n\t\t}\n\t\t\n\t\t\t\n\t\treturn cost;\n\t\t\n\t}", "public int calcMaxLife() {\n\t\treturn 10;\r\n\t}", "int getBonusMoney();", "public int getNumericBase() {\n return _base;\n }", "@Override\r\n\tpublic double basicRates() {\r\n\t\tdouble length = GPScoordinates.distance(getStartingPoint(), getDestinationPoint());\r\n\t\tif(length < 5) {\r\n\t\t\treturn 6.2;\r\n\t\t}else if(length >=5 && length <10) {\r\n\t\t\treturn 5.5;\r\n\t\t}else if (length >=10 && length <20) {\r\n\t\t\treturn 3.25;\r\n\t\t}else {\r\n\t\t\treturn 2.6;\r\n\t\t}\r\n\t}", "public double getBalancePlusInterest()\n {\n return startingBalance * (1 + (interestRate / 12));\n }", "protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd * hourlyRate;\n\t\t}\t\t\n\t}", "public Integer getBase();", "public double getBiweeklySalary(){\r\n return this.employeeSalary / 26;\r\n }", "@Override\n\tpublic double bonus() {\n\t\treturn 0;\n\t}", "public double CalcoloPerimetro () {\r\n \treturn 4*(base);\r\n }", "public Number getBaselineCost()\r\n {\r\n return (m_baselineCost);\r\n }", "public int getBaseMaxMana()\r\n\t{\treturn this.baseMaxMana;\t}", "public java.lang.Integer getBasecurrency() {\n\treturn basecurrency;\n}", "public int presetTriageNumber() {\r\n\t\tint triageRating = 0;\r\n\t\tint triageGenerator = random.nextInt(4);\r\n\t\tswitch (triageGenerator) {\r\n\t\tcase 0:\r\n\t\t\ttriageRating = 1;\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\ttriageRating = 2;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\ttriageRating = 3;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\ttriageRating = 4;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn triageRating;\r\n\t}", "@Override\n\tpublic double getRate() {\n\t\treturn 7;\n\t}", "public BigDecimal getBackPaidRate() {\n return backPaidRate;\n }", "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public int getMaxPayRaise ()\r\n {\r\n return maxPayRaise;\r\n }", "abstract protected BigDecimal getBasicTaxRate();", "public double getSalary() {\n\t\treturn super.getSalary() + (super.getSalary() * .20);\n\t}", "public int getApprenticeModifier() {\n return (int) (populationLevel - recentApprentices) / 5;\r\n }", "public int getPrice() {\r\n\t\tif (this.base.equals(\"tower\")) {\r\n\t\t\treturn price;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public double getCurrentValue()\r\n\t{\r\n\t\tcurrentValue=(2*border+24)/2;\r\n\t\treturn currentValue;\r\n\t}", "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 }", "@Override\n\tint use() {\n\t\treturn (int)(primaryStat*1.2);\n\t}", "public int getLiberal()\n\t{\n\t\treturn liberal;\n\t}", "int getBonusExp();", "int getBonusExp();", "public int maximum_heart_rate() {\r\n return (220 - age());\r\n }", "U2(){\r\n setCurrentWeight(0);\r\n setMaxWeight(29*1000);\r\n setCost(120*1000000);\r\n }", "private int getEnemyGunFireRate()\n\t{\n\t\tfloat rate = 115 - (GameState._playerScore * .2f);\n\t\tif (rate < 20)\n\t\t{\n\t\t\trate = 20;\n\t\t}\n\t\treturn (int)rate;\n\t}", "int getSellCurrentRaw();", "private int calculateBalance() {\n return height(getRight()) - height(getLeft());\n }", "public int getExperienceToNextLevel() {\n\t\treturn (int)(Math.sqrt(level)*2*(level*level));\n\t}", "protected double getTotalBalance()\r\n {\r\n return totalBalance;\r\n }" ]
[ "0.6572446", "0.6259477", "0.62445694", "0.6238806", "0.6231125", "0.6207034", "0.61568815", "0.61230093", "0.6060842", "0.60584474", "0.60336363", "0.5965375", "0.5965375", "0.5944571", "0.5923856", "0.59187096", "0.59073323", "0.59061784", "0.5871933", "0.58712435", "0.5844791", "0.5826453", "0.5805995", "0.5794488", "0.579183", "0.57767326", "0.57487637", "0.5746354", "0.57449853", "0.5741766", "0.57221407", "0.5718834", "0.57041913", "0.569691", "0.56939936", "0.5685988", "0.5684183", "0.5683727", "0.5677888", "0.5676547", "0.5671433", "0.56686246", "0.56677777", "0.56670916", "0.5662582", "0.5654191", "0.5650876", "0.5637951", "0.5636471", "0.56304973", "0.562063", "0.5615736", "0.5600962", "0.5600708", "0.55983317", "0.5596198", "0.5594839", "0.5590859", "0.5589846", "0.5589258", "0.55887115", "0.5587833", "0.5587795", "0.5579039", "0.55744755", "0.557291", "0.55701435", "0.5557854", "0.5555279", "0.5552778", "0.5546449", "0.5544785", "0.5543703", "0.55421555", "0.5540258", "0.55401754", "0.5539673", "0.55373925", "0.5528371", "0.552299", "0.55215824", "0.5520098", "0.5513212", "0.55062026", "0.5501523", "0.5501281", "0.54885876", "0.5487056", "0.5483639", "0.54789585", "0.54784167", "0.5468334", "0.5467831", "0.5467831", "0.54587805", "0.5456835", "0.54544413", "0.54529685", "0.5451779", "0.544857", "0.54471904" ]
0.0
-1
instantiate a TaxOffice object
public static void main(String[] args) { TaxOffice tallinnOffice = new TaxOffice(); System.out.println(tallinnOffice.getTaxRate()); // we have to limit access to taxRate // defined taxRate as private // provided getter method for reading its value tallinnOffice.setTaxRate(0.204); System.out.println(tallinnOffice.getTaxRate()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PostOffice() {\n }", "public Smart_officeFactoryImpl() {\n\t\tsuper();\n\t}", "public ISalesTax getTaxObject();", "public EasytaxTaxations() {\n this(\"easytax_taxations\", null);\n }", "Foco createFoco();", "public com.vodafone.global.er.decoupling.binding.request.TaxType createTaxType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TaxTypeImpl();\n }", "public AbstractTaxon() {\n // Setter arrays\n querySetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n insertSetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n preSetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n postSetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n readObjectSetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n \n // Add the many-to-many collection setters for the loci property.\n querySetters.add(new QueryLociSetter());\n readObjectSetters.add(new ReadLociSetter());\n }", "public Office() {\n\n\t\tthis.departaments = new HashMap<>();\n\t\tthis.documents = new ArrayList<>();\n\t\tthis.employees = 0;\n\t}", "ShippingDocument createShippingDocument();", "public OpenOfficeXMLDocumentParser() {\r\n }", "@RequestMapping (value=\"/offices\",\n\t\t\t\t\tmethod=RequestMethod.POST,\n\t\t\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic Office create (@RequestBody Office newOffice) {\n\t\tfinal Office createdOffice = officeServices.create(newOffice);\n\t\treturn createdOffice;\n\t}", "RentalObject createRentalObject();", "public TipoDocumentoMB() {\n tipoDoc = new TipoDocPersona();\n }", "public static Smart_officeFactory init() {\n\t\ttry {\n\t\t\tSmart_officeFactory theSmart_officeFactory = (Smart_officeFactory)EPackage.Registry.INSTANCE.getEFactory(Smart_officePackage.eNS_URI);\n\t\t\tif (theSmart_officeFactory != null) {\n\t\t\t\treturn theSmart_officeFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Smart_officeFactoryImpl();\n\t}", "public TutorIndustrial() {}", "private Taxi createTaxiInstance(String registration, Integer seatsNumber) {\n Taxi taxi = new Taxi();\n taxi.setRegistration(registration);\n taxi.setSeatsNumber(seatsNumber);\n return taxi;\n }", "public com.vodafone.global.er.decoupling.binding.request.GetTaxRequest createGetTaxRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetTaxRequestImpl();\n }", "Obligacion createObligacion();", "public Terms() {}", "Definition createDefinition();", "Oracion createOracion();", "private Book createBook() {\n Book book = null;\n\n try {\n\n //determine if fiction or non-fiction\n if (radFiction.isSelected()) {\n //fiction book\n book = new Fiction(Integer.parseInt(tfBookID.getText()));\n\n } else if (radNonFiction.isSelected()) {\n //non-fiction book\n book = new NonFiction(Integer.parseInt(tfBookID.getText()));\n\n } else {\n driver.errorMessageNormal(\"Please selecte fiction or non-fiction.\");\n }\n } catch (NumberFormatException nfe) {\n driver.errorMessageNormal(\"Please enter numbers only the Borrower ID and Book ID fields.\");\n }\n return book;\n }", "public ProductTaxCodesDTO()\n\t{\n\t\tsuper();\n\t}", "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"bebexitaHemoxita@gmail.com\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "GeneralTerm createGeneralTerm();", "public EmpleadoPOI() {//Constructor\n\t\t// TODO Auto-generated constructor stub\n\t}", "public com.vodafone.global.er.decoupling.binding.request.GetTaxRequestType createGetTaxRequestType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetTaxRequestTypeImpl();\n }", "public Tax getTax() {\n if (tax == null) {\n tax = new Tax();\n }\n return tax;\n }", "public Transportista() {\n }", "public HPBFDocument(POIFSFileSystem fs) throws IOException {\n\t this(fs.getRoot());\n\t}", "public AirlineCompany() {\n\t}", "public StateTaxes()\n {\n this.stateAbbr = \"\";\n }", "Documento createDocumento();", "public Documento() {\n\n\t}", "private Taxi createTaxiInstanceWithId(String registration, Integer seatsNumber) {\n Taxi taxi = new Taxi();\n taxi.setId(1000L);\n taxi.setRegistration(registration);\n taxi.setSeatsNumber(seatsNumber);\n return taxi;\n }", "public void createInvoice() {\n\t}", "public Odontologo() {\n }", "public TiposDocumentosBean(){\r\n }", "public XL() {\n Reporter.log(\"New XL ctor\", true);\n }", "public Restaurant() {\n\t\t\n\t}", "public Invoice create() {\r\n\t\treturn new Invoice();\r\n\t}", "public String createTax() throws Exception {\n taxsJpaController.create(tax);\n return null;\n }", "public Mapping createInstance(Document xbrlDocument) {\n List<Document> docList = new ArrayList<>();\n docList.add(xbrlDocument);\n return createInstance(docList);\n }", "private void fillTaxInfo(Invoice invoice) {\r\n\t\ttry {\r\n\t\t\tIManagerBean companyBean = BeanManager.getManagerBean(Company.class);\r\n\t\t\tIterator iter = companyBean.getList(null).iterator();\r\n\t\t\tboolean surcharge = false;\r\n\t\t\tboolean taxFree = false;\r\n\t\t\tif(iter.hasNext()){\r\n\t\t\t\tCompany company = (Company)iter.next();\r\n\t\t\t\tsurcharge = company.isSurcharge();\r\n\t\t\t\ttaxFree = company.isTaxFree();\r\n\t\t\t}\r\n\t\t\tinvoice.setTaxFree(taxFree);\r\n\t\t\tinvoice.setSurcharge(surcharge);\r\n\t\t} catch (ManagerBeanException e) {\r\n\t\t\tLOGGER.log(Level.SEVERE, \"error obtaining company\", e);\r\n\t\t}\r\n\t}", "public InvoiceMenuBoundary()\n {\n invoiceController = new InvoiceController();\n }", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "public edu.nps.moves.jaxb.dis.DetonationPdu initializeJaxbObject(edu.nps.moves.jaxb.dis.DetonationPdu x)\n {\n super.initializeJaxbObject(x); // Call superclass initializer\n\n ObjectFactory factory = new ObjectFactory();\n\n x.setMunitionID( this.getMunitionID().initializeJaxbObject(factory.createEntityID()) );\n x.setEventID( this.getEventID().initializeJaxbObject(factory.createEventID()) );\n x.setVelocity( this.getVelocity().initializeJaxbObject(factory.createVector3Float()) );\n x.setLocationInWorldCoordinates( this.getLocationInWorldCoordinates().initializeJaxbObject(factory.createVector3Double()) );\n x.setBurstDescriptor( this.getBurstDescriptor().initializeJaxbObject(factory.createBurstDescriptor()) );\n x.setDetonationResult( this.getDetonationResult() );\n x.setNumberOfArticulationParameters( this.getNumberOfArticulationParameters() );\n x.setPad( this.getPad() );\n\n List articulationParameters_1 = x.getArticulationParameters();\n for(int idx = 0; idx < articulationParameters.size(); idx++)\n {\n ArticulationParameter a = (edu.nps.moves.dis.ArticulationParameter)articulationParameters.get(idx);\n articulationParameters_1.add(a.initializeJaxbObject(factory.createArticulationParameter()));\n }\n return x;\n }", "public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }", "public Troco() {\n }", "Book createBook();", "Rental createRental();", "@Before\n\tpublic void setUp() {\n\t\tsalary = new TaxDepartment<Object>();\n\t}", "public Poi() {\n }", "public VocabularyTerms() {}", "private static Occupation m147578a(Parcel parcel) {\n return new Occupation(parcel);\n }", "public ProductLocation() {\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public Domicilio() {\n }", "@Override\n\tpublic IProduct factoryMethod() {\n\t\treturn new Toy();\n\t}", "private StateTaxObject unmarshallInfo(String infoAsText) {\n String DELIMITER = \"::\";\n String[] tokens = infoAsText.split(DELIMITER);\n \n //pull info from tokens and data-type it correctly\n String nameOfState = tokens[0];\n String taxRateString = tokens[1];\n BigDecimal taxRateBD = new BigDecimal(taxRateString);\n \n //create a new StateTaxObject\n StateTaxObject objectFromFile = new StateTaxObject(nameOfState, taxRateBD);\n \n //return item\n return objectFromFile;\n \n }", "Foot createFoot();", "public ObjectFactoryMenu() {\n }", "public void startNewSale() {\n sale = new Sale(cashRegister);\n }", "public Corso() {\n\n }", "public ScopeDefinition$declareNewDefinition$beanDefinition$1(T t) {\n super(2);\n this.$instance = t;\n }", "public Doc_estado() {\n }", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public AppointmentTM() {\n }", "public TaxCategory() {\n\t\ttaxRates=new TreeSet<TaxRate>();\n\t\t\n\t}", "public ManagementCompany(String name, String taxID, double mgmFeePer, int x, int y, int width, int depth) {\r\n\t\tthis.name = name;\r\n\t\tthis.taxID = taxID;\r\n\t\tthis.mgmFeePer = mgmFeePer;\r\n\t\tthis.plot = new Plot(x,y,width,depth);\r\n\t\tthis.properties = new Property[MAX_PROPERTY];\r\n\t}", "public BookInfoDO() {\n super();\n }", "public co.com.telefonica.atiempo.vpistbba.actividades.df.instalacion.ejb.sb.AInstalarTOALocal create()\n\t\tthrows javax.ejb.CreateException;", "public EnotationFactoryImpl() {\n\t\tsuper();\n\t}", "public Office(String officeName,Set<String> coffeeSelection, int officeId, long officeRevenue,double doubleCheck, boolean isOpen) {\n this.name = officeName;\n this.coffeeSelection = coffeeSelection;\n this.officeId = officeId;\n this.officeRevenue = officeRevenue;\n this.doubleCheck = doubleCheck;\n this.isOpen = isOpen;\n }", "com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();", "public Persona() {\n\t}", "public void saveOffice(Office office) {\n\t\t\n\t}", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public InvoiceExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Restaurant() { }", "public Mapping createInstance(List<Document> xbrlDocuments) {\n Mapping mapping = buildXmlBasedMapping();\n MappingDiscoverer discoverer = buildBasicDiscoverer(xbrlDocuments, mapping);\n discoverer.discoverMapping();\n return mapping;\n }", "public void startSale(){\n this.sale = new Sale();\n this.inventory = new Inventory();\n this.accounting = new Accounting();\n }", "public Main() {\r\n\t\t\t// TODO Auto-generated constructor stub\r\n\t OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM, null );\r\n\r\n\t // we have a local copy of the wine ontology\r\n/*\t m.getDocumentManager().addAltEntry( \"http://www.w3.org/2001/sw/WebOnt/guide-src/wine\",\r\n\t \"file:testing/reasoners/bugs/wine.owl\" );\r\n\t m.getDocumentManager().addAltEntry( \"http://www.w3.org/2001/sw/WebOnt/guide-src/food\",\r\n\t \"file:testing/reasoners/bugs/food.owl\" );*/\r\n\r\n//\t m.read( \"http://www.w3.org/2001/sw/WebOnt/guide-src/wine\" );\r\n\t m = loadOntModelFromOwlFile(\"C:\\\\Documents and Settings\\\\Administrador\\\\Escritorio\\\\Tesis\\\\Ontologias\\\\turismo2.owl\");\r\n\t ClassHierarchy classh = new ClassHierarchy();\r\n\t classh.showHierarchy2( System.out, m );\r\n\t classh.creoInd(m);\r\n\t classh.showHierarchy( System.out, m );\r\n\t\t}", "public ProductosBean() {\r\n }", "public FeeAccount ()\n {\n }", "public XSLFOTransformer() throws SAXException, IOException {\n\t\t\n\t\t// Initialize FOP factory object\n\t\tfopFactory = FopFactory.newInstance(new File(FOP_XCONF));\n\t\t\n\t\t// Setup the XSLT transformer factory\n\t\ttransformerFactory = new TransformerFactoryImpl();\n\t}", "public MnjMfgFabinsProdLEOImpl() {\n }", "public static ToUseTimeLineFactory init() {\n\t\ttry {\n\t\t\tToUseTimeLineFactory theToUseTimeLineFactory = (ToUseTimeLineFactory)EPackage.Registry.INSTANCE.getEFactory(ToUseTimeLinePackage.eNS_URI);\n\t\t\tif (theToUseTimeLineFactory != null) {\n\t\t\t\treturn theToUseTimeLineFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ToUseTimeLineFactoryImpl();\n\t}", "public Zoo(String f1Name, String f2Name) {\n numRegions = 0;\n numStaff = 0;\n loadStaffList(f1Name);\n loadRegionList(f2Name);\n }", "public static Lookup createLookup(InputStream objectDefinition) {\r\n\r\n\t\tLookup l = new Lookup(objectDefinition);\r\n\t\treturn l;\r\n\r\n\t}", "public AdressBook() {\n initComponents();\n file = new File(filePath);\n adressBook = new LinkedList();\n }", "public Producto() {\r\n }", "QuoteTerm createQuoteTerm();", "void newSale(double totalWithTaxes);", "XUMLRTFactory getXUMLRTFactory();", "public FamilyDetails() {\n super();\n }", "public BookingInfo() {\n }", "public PersonaFisica() {}", "public static Factory factory() {\n return Document_print::new;\n }", "public _cls_script_13( AutomatonInstance ta,UserAccount _ua,UserInfo _ui) {\nparent = _cls_script_12._get_cls_script_12_inst( _ua,_ui);\nthis.ta = ta;\n}" ]
[ "0.64497566", "0.6188354", "0.6061615", "0.59404653", "0.58851856", "0.58810395", "0.572219", "0.56963205", "0.56536955", "0.55161107", "0.5446165", "0.5398174", "0.5332733", "0.5332597", "0.532768", "0.53207564", "0.53180134", "0.5270175", "0.52483344", "0.52348316", "0.5206752", "0.5173844", "0.51697564", "0.5162927", "0.5152744", "0.5125604", "0.51246625", "0.51165086", "0.5101717", "0.5098175", "0.509217", "0.50868714", "0.50724703", "0.5070491", "0.5057905", "0.50410414", "0.50309324", "0.50276554", "0.50203973", "0.50181645", "0.5010784", "0.4984547", "0.49820736", "0.4956629", "0.49499375", "0.49464968", "0.49405256", "0.49403656", "0.4938212", "0.4933818", "0.49311185", "0.4915261", "0.49144492", "0.49003318", "0.48973006", "0.4896213", "0.48853683", "0.4882857", "0.48818383", "0.48803988", "0.4879132", "0.4876074", "0.48717645", "0.4869658", "0.48694232", "0.4867018", "0.4856462", "0.4850429", "0.48406622", "0.48390505", "0.4833183", "0.48309073", "0.48291266", "0.48234475", "0.48227745", "0.48214436", "0.4809989", "0.4807069", "0.4799424", "0.47955343", "0.47949642", "0.47882897", "0.4787703", "0.47840855", "0.47803113", "0.47767043", "0.4772785", "0.47703364", "0.4767147", "0.47669357", "0.47666278", "0.47643816", "0.47607595", "0.4759523", "0.47580782", "0.47513738", "0.47430065", "0.47400945", "0.47389576", "0.47326446" ]
0.5403691
11
Creates new content title
public ContentTitle createContentTitle(String language, String value, Content content) { return contentTitleDAO.create(language, value, content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }", "public void setTitle(String titleTemplate);", "TITLE createTITLE();", "public void setTitle(String title) { this.title = title; }", "private String addTitle(StringBuilder finalText) {\n\t\t// One Parameter: DisplayName\n\t\tMainController.titleName = parameters[0];\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|title:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}", "public void setTitle(String newTitle)\r\n {\r\n title = newTitle;\r\n }", "public void setTitle(java.lang.String title);", "protected void SetTitle(String newTitle){ title = newTitle; }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "WithCreate withTitle(String title);", "void setTitle(java.lang.String title);", "public void prepareTitle()\n {\n DuelTitle title = new DuelTitle();\n addObject(title, 539, 186);\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private void addTitle() {\n\t\tJXPanel titlePanel = new JXPanel();\n\t\ttitlePanel.setLayout(null);\n\t\ttitlePanel.setSize(180, 60);\n\t\ttitlePanel.setLocation(60, 10);\n\t\ttitlePanel.setToolTipText(\"www.i.hsr.ch\");\n\t\ttitlePanel.setBorder(new DropShadowBorder(new Color(0, 0, 0), 7, 0.5f, 12, true, true, true, true));\n\t\t\n\t\tJLabel title = GUIComponents.createLabel(YAETMMainView.PROGRAM, new Point(45, 12));\n\t\ttitle.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\t\n\t\tJLabel titleExtend = GUIComponents.createLabel(YAETMMainView.PROGRAMEXT, new Point(10, 33));\n\t\ttitleExtend.setSize(200, 20);\n\t\ttitleExtend.setFont(new Font(\"Arial\", Font.PLAIN, 11));\n\t\t\n\t\ttitlePanel.add(titleExtend);\n\t\ttitlePanel.add(title);\n\t\tpanel.add(titlePanel);\n\t}", "public void setTitle(String title){\n this.title = title;\n }", "protected abstract void setTitle();", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "public void addTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), TITLE, value);\r\n\t}", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void addTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), TITLE, value);\r\n\t}", "@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitleText(String newTitle) {\n\t\tCTTitle ctTitle;\n\t\tif (chart.isSetTitle()) {\n\t\t\tctTitle = chart.getTitle();\n\t\t} else {\n\t\t\tctTitle = chart.addNewTitle();\n\t\t}\n\n\t\tCTTx tx;\n\t\tif (ctTitle.isSetTx()) {\n\t\t\ttx = ctTitle.getTx();\n\t\t} else {\n\t\t\ttx = ctTitle.addNewTx();\n\t\t}\n\n\t\tif (tx.isSetStrRef()) {\n\t\t\ttx.unsetStrRef();\n\t\t}\n\n\t\tCTTextBody rich;\n\t\tif (tx.isSetRich()) {\n\t\t\trich = tx.getRich();\n\t\t} else {\n\t\t\trich = tx.addNewRich();\n\t\t\trich.addNewBodyPr(); // body properties must exist (but can be empty)\n\t\t}\n\n\t\tCTTextParagraph para;\n\t\tif (rich.sizeOfPArray() > 0) {\n\t\t\tpara = rich.getPArray(0);\n\t\t} else {\n\t\t\tpara = rich.addNewP();\n\t\t}\n\n\t\tif (para.sizeOfRArray() > 0) {\n\t\t\tCTRegularTextRun run = para.getRArray(0);\n\t\t\trun.setT(newTitle);\n\t\t} else if (para.sizeOfFldArray() > 0) {\n\t\t\tCTTextField fld = para.getFldArray(0);\n\t\t\tfld.setT(newTitle);\n\t\t} else {\n\t\t\tCTRegularTextRun run = para.addNewR();\n\t\t\trun.setT(newTitle);\n\t\t}\n\t}", "public void doSetTitle(String newTitle) \n {\n this.title = newTitle;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "@Override\n\tpublic Title makeTitle(Map<String, String> attributes, String data) {\n\t\treturn new Title( attributes, data );\n\t}", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "private void setTitle(String userTitle){\n title = userTitle;\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_news_Blogs.setTitle(title);\n\t}", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "@Override\n public void title()\n {\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "@Override\n public void title_()\n {\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "protected abstract String title ();", "public void setNewTitle(final String title){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n setTitle(title);\n }\n });\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}" ]
[ "0.7549879", "0.7294628", "0.6993876", "0.69935054", "0.6979596", "0.6970039", "0.69380915", "0.69366914", "0.6930008", "0.6930008", "0.6930008", "0.6901374", "0.68580383", "0.68578416", "0.68105584", "0.67811406", "0.67782986", "0.6775645", "0.6774353", "0.6774353", "0.6774353", "0.6774353", "0.6774353", "0.6769009", "0.6769009", "0.6769009", "0.6769009", "0.67668337", "0.6764389", "0.67612803", "0.6759861", "0.6759861", "0.67376906", "0.6725153", "0.67199147", "0.66968435", "0.66882914", "0.66785926", "0.66692066", "0.66692066", "0.66684264", "0.66684264", "0.66684264", "0.66665447", "0.6665365", "0.66478914", "0.6639337", "0.66308945", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.66298544", "0.6623509", "0.66209865", "0.6620097", "0.66145664", "0.66123486", "0.6603422", "0.6602628", "0.6598697", "0.65972984", "0.65901625", "0.6587405", "0.6573214", "0.65527105", "0.65527105", "0.65527105", "0.65527105", "0.65527105", "0.65478784", "0.6540842", "0.65391123", "0.6534381", "0.6534381", "0.6534381", "0.6523036", "0.6515349", "0.6497793", "0.6496279", "0.6472993", "0.6472993", "0.6472993", "0.6472993", "0.6472993", "0.6472993", "0.6472993" ]
0.7033015
2
Creates new content content
public ContentData createContentData(String language, String value, Content content) { return contentDataDAO.create(language, value, content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Content createContent();", "abstract public Content createContent();", "protected abstract Content newContent();", "protected void createContents() {\n\n\t}", "public abstract String getNewContent();", "public String createContent(String spaceId, String contentId);", "public com.walgreens.rxit.ch.cda.StrucDocTitleContent addNewContent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTitleContent target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTitleContent)get_store().add_element_user(CONTENT$0);\n return target;\n }\n }", "protected abstract Component addContent();", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "public Content addContent(Content content){\n\n contentRepository.save(content);\n return content;\n }", "public void setContent(String newContent)\n\t{\n\t\tthis.content = newContent;\n\t}", "FileContent createFileContent();", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "boolean updateContent();", "private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "ContentFactory getContentFactory();", "void setContent(String data) {\n this.content = data;\n }", "protected void initializeContent() throws PiaRuntimeException{\n InputStream in;\n String ztype = null;\n\n try{\n in = fromMachine().inputStream();\n\n if( (ztype = contentType()) == null )\n\tztype = \"text/html\";\n\n contentObj = cf.createContent( ztype, in );\n if( contentObj != null )\n\tcontentObj.setHeaders( headers() );\n else{\n\tPia.debug(this, \"Unknown header type...\");\n\tString msg = \"Unknown header type...\\n\";\n\tthrow new PiaRuntimeException (this\n\t\t\t\t , \"initializeContent\"\n\t\t\t\t , msg) ;\n }\n\n }catch(IOException e){\n Pia.debug( e.toString() );\n }\n }", "public void updateContent() {\n\t\t\n\t\tupdateResidencias();\n\t\tupdateUniversidades();\n\t\t\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "public void setContent(String content) { this.content = content; }", "void overwriteContent(Md2Entity content);", "private void LoadContent()\n {\n \n }", "TContent createContent(byte[] bytes, ContentFactory<TContent> contentFactory);", "private void createSource(String sourceName, String content) {\n\t\t\n\t}", "public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }", "public Content(String text) {\n setContent(text);\n }", "private void createContent() {\n\t\t// Design mail content\n\t\tview.getTxtSubject().setText(\n\t\t\t\tMessages.getString(\"SendAlertController.1\") + arr[9]);\n\t\tcontent += Messages.getString(\"SendAlertController.2\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.3\");\n\t\tcontent += Messages.getString(\"SendAlertController.4\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.5\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.6\");\n\t\tcontent += Messages.getString(\"SendAlertController.7\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.8\")\n\t\t\t\t+ new Date().toString()\n\t\t\t\t+ Messages.getString(\"SendAlertController.9\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.10\") + arr[9]\n\t\t\t\t+ Messages.getString(\"SendAlertController.11\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.12\") + arr[11]\n\t\t\t\t+ Messages.getString(\"SendAlertController.13\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.14\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.15\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.16\")\n\t\t\t\t+ fee.getBorFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.17\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.18\")\n\t\t\t\t+ fee.getLateFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.19\");\n\t\tcontent += Messages.getString(\"SendAlertController.20\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.21\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.22\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.23\") + arr[4]\n\t\t\t\t+ Messages.getString(\"SendAlertController.24\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.25\") + arr[6]\n\t\t\t\t+ Messages.getString(\"SendAlertController.26\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.27\") + arr[7]\n\t\t\t\t+ Messages.getString(\"SendAlertController.28\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.29\") + arr[5]\n\t\t\t\t+ Messages.getString(\"SendAlertController.30\");\n\t\tcontent += Messages.getString(\"SendAlertController.31\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.32\") + arr[15]\n\t\t\t\t+ Messages.getString(\"SendAlertController.33\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.34\") + arr[16]\n\t\t\t\t+ Messages.getString(\"SendAlertController.35\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.36\") + arr[17]\n\t\t\t\t+ Messages.getString(\"SendAlertController.37\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.38\") + arr[18]\n\t\t\t\t+ Messages.getString(\"SendAlertController.39\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.40\") + arr[19]\n\t\t\t\t+ Messages.getString(\"SendAlertController.41\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.42\") + arr[20]\n\t\t\t\t+ Messages.getString(\"SendAlertController.43\");\n\t\tcontent += Messages.getString(\"SendAlertController.44\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.45\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.46\");\n\t\tcontent += Messages.getString(\"SendAlertController.47\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.48\");\n\t\tview.getTxtContent().setText(content);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "public void setContent(String content) {\n\t this.content = content;\n\t}", "public void testContentCreationTest() {\n\t\tQuestion question = new Question(\"Q title test\", \"Q body test\", \"Q author id test\");\n\t\tAnswer answer = new Answer(\"A body test\", \"A author id test\");\n\t\tReply reply = new Reply(\"R body test\", \"R author id test\");\n\t\tUser user = new User();\n\t\t//adds the question of the topic to an array of saved questions\n\t\tquestion.addAnswer(answer);\n\t\tquestion.addReply(reply);\n\t\t//question.setFavourite(user);\n\t\t//answer.setFavourite(user);\n\t\tanswer.addReply(reply);\n\t\t//tests if answer added to question is correct\n\t\tassertTrue(question.getAnswerCount() == 1);\n\t\t//smoke test code reply and answers.\n\t\tassertTrue(question.getReplies().get(0).getId().equals(reply.getId()));\n\t\tassertTrue(question.getAnswers().get(0).equals(answer));\n\t}", "private void setContent(String content) {\n this.content = content;\n }", "public void updateContent(String new_content){\n\t\tif(content == null){\n\t\t\tcontent = \"\";\n\t\t}\n\t\tcontent = content.concat(new_content);\n\t\tupdateSize();\t\t\n\t}", "private void setWebContent() {\r\n\t\tsetDataContent();\r\n\t\twebContent.addComponent(new Label(\"Concesionario\"));\r\n\t\twebContent.addComponent(dataContent);\r\n\t}", "private void createContent(final Container container) {\n this.mainPanel = new MainPanel();\n this.mainPanel.setName(\"mainPanel\"); // Fest\n\n if (container != null) {\n // adds the main panel\n container.add(this.mainPanel, BorderLayout.CENTER);\n\n // Handle status bar\n container.add(StatusBar.getInstance(), BorderLayout.SOUTH);\n }\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "StringContent createStringContent();", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "OrderedListContent createOrderedListContent();", "public void setContent(String content) {\r\n\t\tthis.content = content;\r\n\t}", "public void setContent(Object content) {\n this.content = content;\n }", "public void buildContent(XMLNode node, Content contentTree) {\n Content packageContentTree = packageWriter.getContentHeader();\n buildChildren(node, packageContentTree);\n contentTree.addContent(packageContentTree);\n }", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "public DataSummaryOverviewPageModContentFactoryImpl() {\n\t\tsuper();\n\t}", "protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t}", "public void setContent(String content) {\n this.contents = content;\n }", "void createMainContent() {\n appContent = new DashboardMain(this);\n }", "private SingleDocumentModel addNewDocument(Path path, String content) {\n\t\tSingleDocumentModel document = new DefaultSingleDocumentModel(path, content);\n\t\tmodels.add(document);\n\t\tnotifyNewDocument(document);\n\t\tnotifyDocumentChanged(current, document);\n\t\tdocument.addSingleDocumentListener(new SingleDocumentListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void documentModifyStatusUpdated(SingleDocumentModel model) {\n\t\t\t\tchangeIcon(model);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void documentFilePathUpdated(SingleDocumentModel model) {\n\t\t\t\tchangeTitle(model);\n\t\t\t\tchangeToolTip(model);\n\t\t\t}\n\t\t});\n\t\taddNewTab(document);\n\t\treturn document;\n\t}", "public void setContent(String content) {\n\t\tthis.content = content;\n\t}", "public void setContent(String content) {\n\t\tthis.content = content;\n\t}", "BODY createBODY();", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "public com.walgreens.rxit.ch.cda.StrucDocTitleContent insertNewContent(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTitleContent target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTitleContent)get_store().insert_element_user(CONTENT$0, i);\n return target;\n }\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }", "public void createPackageContents()\n\t{\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create data types\n\t\tfeatureNotFoundExceptionEDataType = createEDataType(FEATURE_NOT_FOUND_EXCEPTION);\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "public abstract Object getContent();", "public void renderSiteContent(){\r\n\t\tbuildTables();\r\n\t\tsiteDto = (Collection<SiteDto>) siteService.findSitesByAccountId(accountId, false);\r\n\t\t//siteDto = new ArrayList<SiteDto>();\r\n\t\tif(!(siteDto.isEmpty())){\r\n\t\t\t\r\n\t\t\trenderCombobox();\r\n\t\t\trenderArticleTable();\r\n\t\t\trenderImageTable();\r\n\t\t\tverticalLayout.addComponent(articleTable);\r\n\t\t\tverticalLayout.addComponent(imageTable);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tButton linkButton = new Button(\"Create new site\");\r\n\t\t\tlinkButton.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\t\tlinkButton.addClickListener(new ClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic void buttonClick(ClickEvent event) {\r\n\t\t\t\t\tfinal SiteUIManager siteUiManager = new SiteUIManager(siteDashboardTab,helper);\r\n\t\t\t\t\tVerticalLayout newlayout = siteUiManager.renderNewSite();\r\n\t\t\t\t\tTab tab1 = siteDashboardTab.addTab(newlayout, \"Create site\", null);\r\n\t\t\t\t\ttab1.setClosable(true);\r\n\t\t\t\t\tsiteDashboardTab.setSelectedTab(newlayout);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tverticalLayout.addComponent(linkButton);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tverticalLayout.addComponent(label);//article label\r\n\t\tverticalLayout.addComponent(label2);//image label\r\n\t\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tldprojectEClass = createEClass(LDPROJECT);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__NAME);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__LIFECYCLE);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__ROBUSTNESS);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___PUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UNPUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UPDATE);\n\n\t\tlddatabaselinkEClass = createEClass(LDDATABASELINK);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__DATABASE);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__PORT);\n\n\t\tldprojectlinkEClass = createEClass(LDPROJECTLINK);\n\n\t\tldnodeEClass = createEClass(LDNODE);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__NAME);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MONGO_HOSTS);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MAIN_PROJECT);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__ANALYTICS_READ_PREFERENCE);\n\n\t\t// Create enums\n\t\tlifecycleEEnum = createEEnum(LIFECYCLE);\n\t\trobustnessEEnum = createEEnum(ROBUSTNESS);\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "ShipmentPackageContent createShipmentPackageContent();", "public void LoadContent(){\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\taudioEClass = createEClass(AUDIO);\n\t\tcreateEAttribute(audioEClass, AUDIO__CONTENT);\n\t\tcreateEAttribute(audioEClass, AUDIO__NAME);\n\t\tcreateEAttribute(audioEClass, AUDIO__TEXT);\n\n\t\taudioManagerEClass = createEClass(AUDIO_MANAGER);\n\n\t\taudioRecorderEClass = createEClass(AUDIO_RECORDER);\n\n\t\taudioPlayerEClass = createEClass(AUDIO_PLAYER);\n\n\t\t// Create enums\n\t\taudioStyleEEnum = createEEnum(AUDIO_STYLE);\n\t}", "public void addContentToPane(JLabel addNewCourseLabel, JTextField courseNameTxtField, JTextField tuitionTxtField,\n JTextField salaryTxtField, JTextField maxStudentsTxtField,\n JButton submitNewCourseBtn, Container contentPane) {\n contentPane.add(addNewCourseLabel);\n contentPane.add(courseNameTxtField);\n contentPane.add(tuitionTxtField);\n contentPane.add(salaryTxtField);\n contentPane.add(maxStudentsTxtField);\n contentPane.add(submitNewCourseBtn);\n }", "public abstract void createContents(Panel mainPanel);", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "public Room(roomContents content) {\n contents.add(content);\n\n }", "public String create()\n {\n return createHtml();\n }", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "AbstractAdminSystemPageModContentFactoryImpl() {\n\t\tsuper();\n\t}", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "public void addContent(Content content) {\n\t\tcontentMapper.insert(content);\n\t}", "int insertContent(@Param(\"c\") UserContent content);", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tfticBaseEClass = createEClass(FTIC_BASE);\n\n\t\titemEClass = createEClass(ITEM);\n\n\t\thypertextEClass = createEClass(HYPERTEXT);\n\t\tcreateEReference(hypertextEClass, HYPERTEXT__CONTENT);\n\n\t\ttextElementEClass = createEClass(TEXT_ELEMENT);\n\t\tcreateEAttribute(textElementEClass, TEXT_ELEMENT__VISIBLE_CONTENT);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEReference(linkEClass, LINK__TARGET);\n\n\t\ttermEClass = createEClass(TERM);\n\n\t\tfactorTableEClass = createEClass(FACTOR_TABLE);\n\t\tcreateEAttribute(factorTableEClass, FACTOR_TABLE__TYPE);\n\t\tcreateEReference(factorTableEClass, FACTOR_TABLE__ENTRIES);\n\n\t\tftEntryEClass = createEClass(FT_ENTRY);\n\t\tcreateEAttribute(ftEntryEClass, FT_ENTRY__NUMBERING);\n\t\tcreateEAttribute(ftEntryEClass, FT_ENTRY__NAME);\n\t\tcreateEReference(ftEntryEClass, FT_ENTRY__CHILDREN);\n\n\t\tfactorCategoryEClass = createEClass(FACTOR_CATEGORY);\n\n\t\tfactorEClass = createEClass(FACTOR);\n\t\tcreateEReference(factorEClass, FACTOR__DESCRIPTION);\n\t\tcreateEReference(factorEClass, FACTOR__FLEXIBILITY);\n\t\tcreateEReference(factorEClass, FACTOR__CHANGEABILITY);\n\t\tcreateEReference(factorEClass, FACTOR__INFLUENCE);\n\t\tcreateEAttribute(factorEClass, FACTOR__PRIORITY);\n\n\t\tissueCardEClass = createEClass(ISSUE_CARD);\n\t\tcreateEAttribute(issueCardEClass, ISSUE_CARD__NAME);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__DESCRIPTION);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__SOLUTION);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__STRATEGIES);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__INFLUENCING_FACTORS);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__RELATED_ISSUES);\n\n\t\tstrategyEClass = createEClass(STRATEGY);\n\t\tcreateEAttribute(strategyEClass, STRATEGY__NAME);\n\t\tcreateEReference(strategyEClass, STRATEGY__DESCRIPTION);\n\n\t\tinfluencingFactorEClass = createEClass(INFLUENCING_FACTOR);\n\t\tcreateEReference(influencingFactorEClass, INFLUENCING_FACTOR__DESCRIPTION);\n\t\tcreateEReference(influencingFactorEClass, INFLUENCING_FACTOR__FACTOR);\n\n\t\trelatedIssueEClass = createEClass(RELATED_ISSUE);\n\t\tcreateEReference(relatedIssueEClass, RELATED_ISSUE__ISSUE);\n\t\tcreateEReference(relatedIssueEClass, RELATED_ISSUE__DESCRIPTION);\n\n\t\tfticPackageEClass = createEClass(FTIC_PACKAGE);\n\t\tcreateEReference(fticPackageEClass, FTIC_PACKAGE__TABLES);\n\t\tcreateEReference(fticPackageEClass, FTIC_PACKAGE__ISSUE_CARDS);\n\t\tcreateEAttribute(fticPackageEClass, FTIC_PACKAGE__NAME);\n\n\t\t// Create enums\n\t\tcategoryTypeEEnum = createEEnum(CATEGORY_TYPE);\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected abstract Node createCenterContent();", "@Override\n public void Create() {\n initView();\n initData();\n }", "void setContent(java.lang.String content);", "public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}", "public Content() {\n\t}", "UnorderedListContent createUnorderedListContent();", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: wtrocki@gmail.com\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "@PostMapping(\"/documents\")\r\n\tpublic ResponseEntity<String> create(String content) {\r\n\t\tString docId = this.documentHandler.createDocument(content);\r\n\t\tHttpHeaders headers = new HttpHeaders();\r\n\t\theaders.setContentType(MediaType.TEXT_PLAIN);\r\n\t\theaders.setAcceptCharset(Collections.singletonList(StandardCharsets.US_ASCII));\r\n\t\theaders.setContentLength(docId.length());\r\n\t\treturn new ResponseEntity<String>(docId, headers, HttpStatus.CREATED);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n\t\tpackageDeclarationEClass = createEClass(PACKAGE_DECLARATION);\n\t\tcreateEAttribute(packageDeclarationEClass, PACKAGE_DECLARATION__NAME);\n\t\tcreateEReference(packageDeclarationEClass, PACKAGE_DECLARATION__CONTENT);\n\n\t\treferenceableEClass = createEClass(REFERENCEABLE);\n\t}" ]
[ "0.83580136", "0.79715306", "0.7968385", "0.7584083", "0.7103119", "0.6786911", "0.67328864", "0.6669257", "0.64251524", "0.6308039", "0.62588257", "0.6251603", "0.6241577", "0.6220137", "0.6091411", "0.6065729", "0.6056179", "0.60413206", "0.6032642", "0.59946454", "0.5986105", "0.59852356", "0.5984538", "0.59639686", "0.5961199", "0.5942288", "0.593005", "0.5912473", "0.5912037", "0.590005", "0.58892035", "0.58891386", "0.5863976", "0.5846508", "0.5840945", "0.58403486", "0.5840229", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.5832283", "0.58237886", "0.57985395", "0.5796815", "0.5765275", "0.5764624", "0.57615733", "0.5760342", "0.5753101", "0.57515806", "0.5743486", "0.574212", "0.57381284", "0.5736877", "0.5736877", "0.5734695", "0.5724149", "0.57173294", "0.5699673", "0.56946707", "0.56920844", "0.5678526", "0.5669351", "0.5663151", "0.56611323", "0.5649959", "0.56393236", "0.56360114", "0.56332827", "0.5630856", "0.5628451", "0.56259644", "0.56253177", "0.5622714", "0.56184924", "0.5615957", "0.5612956", "0.56121606", "0.56095827", "0.56020814", "0.5595032", "0.5589946", "0.5588122", "0.55867696", "0.5586489", "0.55864835", "0.5582925", "0.55670965", "0.5547479", "0.5540258", "0.5538187", "0.5536084", "0.5533222" ]
0.5723476
64
Finds content with contentId
public Content findContentById(Long contentId) { return contentDAO.findById(contentId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserContent findContentById(@Param(\"contentUid\") long contentUid);", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotFoundException(\"Could not find content for contentID: \" + contentID);\n }", "public Content get(Integer contentId) {\n String sql = \"SELECT * FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, new ContentRowMapper(), contentId);\n }", "UserContentMetadata findContentMetadataById(@Param(\"contentUid\") Long contentUid);", "java.lang.String getContentId();", "ImageContentData findContentData(String imageId);", "List<UserContent> findContent(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t @Param(\"contentLang\") UserContentLanguage contentLang,\n\t\t\t\t\t\t\t\t @Param(\"userId\") Integer userId,\n\t\t\t\t\t\t\t\t @Param(\"substituteUserDrafts\") boolean substituteUserDrafts);", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}", "public Content getContentMeta(Integer contentId) {\n String sql = \"SELECT * FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, new ContentMetaRowMapper(), contentId);\n }", "public Content findContentByOriginId(String originId) {\n return contentDAO.findByOriginId(originId);\n }", "MsgContent selectByPrimaryKey(Integer id);", "public void setContentId(Integer contentId) {\n this.contentId = contentId;\n }", "@Override\r\n\tpublic ManageNursingContent selectByPrimaryKey(String manageNursingContentId)\r\n\t\t\tthrows Exception {\n\t\treturn mContentMapper.selectByPrimaryKey(manageNursingContentId);\r\n\t}", "boolean hasContentId();", "UserContent findContentForHistoryId(@Param(\"historyId\") long historyId);", "public void setContentId(String id) {\n\t\tthis._contentId = id;\n\t}", "@Override\r\n\tpublic ManageNursingContentWithBLOBs selectByPrimaryKeyBLOB(\r\n\t\t\tString manageNursingContentId) throws Exception {\n\t\treturn mContentMapper.selectByPrimaryKeyBLOB(manageNursingContentId);\r\n\t}", "int getContentId();", "public String getContentText(Integer contentId) {\n String sql = \"SELECT content_text FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, String.class, contentId);\n }", "List<Long> findActiveContentFilesForContentUid(@Param(\"contentUid\") long contentUid);", "@Override\n\tpublic List<TbContent> getContentListByCid(long cid) {\n\t\tTbContentExample example = new TbContentExample();\n\t\tCriteria criteria = example.createCriteria();\n\t\t//设置查询条件\n\t\tcriteria.andCategoryIdEqualTo(cid);\n\t\t//执行查询\n\t\tList<TbContent> list = contentMapper.selectByExampleWithBLOBs(example);\n\t\treturn list;\n\t}", "@java.lang.Override\n public int getContentId() {\n return contentId_;\n }", "UserContentAccess findContentAccessForPath(@Param(\"path\") String path);", "public Integer getContentId() {\n return contentId;\n }", "public BlogContent findBlogContent(BlogContent blogContent,Connection conn) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic ManageNursingContent selectmanageNursingContentById(\r\n\t\t\tString manageNursingContentId) throws Exception {\n\t\treturn mContentMapper.selectmanageNursingContentById(manageNursingContentId);\r\n\t}", "List<UserContentAccess> findContentAccess();", "public ContentImageMeta findContentImageMetaByIdAndContent(Long imageId, Content content) {\n return contentImageMetaDAO.findByIdAndContent(imageId, content);\n }", "CopySearchResult find(ContentQuery query) throws ResourceAccessException;", "public List<ContentData> listContentDataByContent(Content content) {\n return contentDataDAO.listByContent(content);\n }", "public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}", "public Content existContentWithContenttitle(String contenttitle) {\n\t\tContent content=contentMapper.existContentWithContenttitle(contenttitle);\n\t\treturn content;\n\t}", "@GetMapping(\"/voting-contents/{id}\")\n @Timed\n public ResponseEntity<VotingContent> getVotingContent(@PathVariable Long id) {\n log.debug(\"REST request to get VotingContent : {}\", id);\n VotingContent votingContent = votingContentRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(votingContent));\n }", "@Override\n\tpublic String queryContentId(String paramString)\n\t{\n\t\treturn null;\n\t}", "public Iterable<Content> findAllContent(){\n\n return contentRepository.findAll();\n }", "public Builder forContent(String contentId) {\n this.contentId = contentId;\n return this;\n }", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "@Override\n public ContentHandle get(int index) {\n return storage.getArtifactByContentId(contentIds.get(index)).getContent();\n }", "@Override\n\tpublic long getContent_id() {\n\t\treturn _contentupdate.getContent_id();\n\t}", "public String getContentId() {\n\t\treturn _contentId;\n\t}", "public String getContent() throws SearchResultException;", "private void setContentId(int value) {\n bitField0_ |= 0x00000001;\n contentId_ = value;\n }", "public interface ContentRepository {\n\n List<Content> findContentList(int bbsId, int pageNum, int perPage, int searchMode, String searchContent);\n\n long findContentCount(int bbsId, int searchMode, String searchContent);\n\n void saveContent(Content content);\n\n Content findContentById(int contentId);\n\n void updateContent(Content content);\n\n void deleteContent(int contentId, String userid);\n\n List<Content> getBbsNoticeThumnailList(int bbsId);\n\n}", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "int deleteContent(@Param(\"id\") long id);", "public void setdictContentID(String value) {\r\n setNamedWhereClauseParam(\"dictContentID\", value);\r\n }", "public void setContentId(String contentId) {\n setMimeHeader(\"Content-Id\", contentId);\n }", "@Override\n\tpublic int querySongIdByContentId(String paramString)\n\t{\n\t\treturn 0;\n\t}", "@java.lang.Override\n public int getContentId() {\n return instance.getContentId();\n }", "@Test\n public void getContentUsingGETTest() throws ApiException {\n Long contentId = null;\n RelatedContentRepresentation response = api.getContentUsingGET(contentId);\n\n // TODO: test validations\n }", "public abstract ArrayList<T> findFromReference(int id);", "TopicFragmentWithBLOBs selectByPrimaryKey(Long id);", "ContentSum findOne(Long id);", "private ContentItem getSrcContent(ContentItem item) {\r\n if (item == null) { return null; }\r\n\r\n ContentDao contentDao = DiscourseDbDaoFactory.DEFAULT.getContentDao();\r\n ContentItem result = contentDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "private NodeManifest searchBy(String bundleId) {\n final NodeManifestBundleInfo placeholder = new NodeManifestBundleInfo\n (bundleId, StringUtils.EMPTY, StringUtils.EMPTY, ZonedDateTime.now(), \"\");\n return newNodeManifest(placeholder, accessService.getArtifactoryServiceId());\n }", "List<UserContent> findContentHistory(\n\t\t\t@Param(\"contentUid\") long contentUid\n\t\t\t);", "@Test\n public void getretrieveOffersByContentIdTest() throws IOException {\n\n\n String contentid = Arrays.asList(\"contentid_example\").get(0);\n\n\n RetrieveOffersByContentIdgetResponse response = api.getretrieveOffersByContentId(contentid, null, null, null, null);\n }", "com.google.protobuf.ByteString\n getContentIdBytes();", "public RelacionConceptoEmbalaje[] findWhereIdEmbalajeEquals(int idEmbalaje) throws RelacionConceptoEmbalajeDaoException;", "protected CompaniesContactsEntity findById(int id) {\n log.info(\"CompaniesContact => method : findById()\");\n\n FacesMessage msg;\n\n if (id == 0) {\n log.error(\"CompaniesContact ID is null\");\n msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"note.notExist\"), null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n throw new EntityNotFoundException(\n \"L ID de la note est incorrect\",\n ErrorCodes.COMPANY_NOT_FOUND\n );\n }\n\n EntityManager em = EMF.getEM();\n Optional<CompaniesContactsEntity> optionalCompaniesContactsEntity;\n try {\n optionalCompaniesContactsEntity = companiesContactsDao.findById(em, id);\n } finally {\n em.clear();\n em.close();\n }\n return optionalCompaniesContactsEntity.orElseThrow(() ->\n new EntityNotFoundException(\n \"Aucune Note avec l ID \" + id + \" n a ete trouvee dans la BDD\",\n ErrorCodes.CONTACT_NOT_FOUND\n ));\n }", "public List<Content> getAllContents() {\n return contentRepo.findAll();\n }", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "FeiWenComment selectByPrimaryKey(String cid);", "boolean delete(@NonNull String contentId);", "public String getContentId() {\n\n String as[] = getMimeHeader(\"Content-Id\");\n\n if (as != null && as.length > 0) {\n return as[0];\n } else {\n return null;\n }\n }", "ContentLocator getContentLocator();", "PsiElement[] findCommentsContainingIdentifier( String identifier, SearchScope searchScope);", "WpPostsWithBLOBs selectByPrimaryKey(Long id);", "public String getdictContentID() {\r\n return (String)getNamedWhereClauseParam(\"dictContentID\");\r\n }", "@Override\r\n public String retrieve(final String id) throws ContentModelNotFoundException, SystemException {\r\n \r\n setContentModel(id);\r\n return render();\r\n }", "public interface ContentsService {\n\n /**\n * Add the given data as a new media contents entry.\n *\n * @param name of the contents file to add\n * @param payload byte array to add\n */\n void addMediaContent(String name, byte[] payload);\n\n\n /**\n * Fetch the media content data for the given identifier.\n *\n * @param id predicate, used to resolve the media content to fetch\n *\n * @return the media object found, never {@code null}\n */\n Map<String, Object> getMediaContent(String id);\n}", "public RelacionConceptoEmbalaje[] findWhereIdConceptoEquals(int idConcepto) throws RelacionConceptoEmbalajeDaoException;", "KnowledgeComment selectByPrimaryKey(Integer id);", "Media getMedia(long mediaId);", "public Content editContent(Integer contentID, MultipartFile file, String contentName, String contentType, String tagArray){\n\n Content content = contentRepository.findById(contentID)\n .orElseThrow(() -> new HubNotFoundException(\"Could not find content for contentID: \" + contentID));\n\n String fileName = storeFile(file);\n\n String[] inputArray = tagArray.split(\",\");\n\n Integer[] numbers = new Integer[inputArray.length];\n\n for(int i = 0;i < inputArray.length;i++)\n {\n\n numbers[i] = Integer.parseInt(inputArray[i]);\n }\n\n String fileDownloadUri = ServletUriComponentsBuilder.fromCurrentContextPath()\n .path(\"/downloadFile/\")\n .path(fileName)\n .toUriString();\n\n content.setFileName(fileName);\n content.setFileDownloadUri(fileDownloadUri);\n content.setSize(file.getSize());\n content.setContentName(contentName);\n content.setContentType(contentType);\n\n deleteContentTagsByID(contentID);\n\n Content updatedContent = contentRepository.save(content);\n addTagToContent(content.getContentID(),contentName, numbers);\n sendNotifications(content.getContentID(), content.getContentName(), numbers);\n\n return updatedContent;\n }", "ExplorerContent getContentInScope( final Path path );", "@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}", "Optional<UserContentComment> findOne(Long id);", "public BlogEntry findBlogEntry(Long id);", "@java.lang.Override\n public boolean hasContentId() {\n return instance.hasContentId();\n }", "@Override\n\tpublic Message find(int id) {\n\t\treturn null;\n\t}", "@Test\n public void test05FindContentTypes() throws Exception\n {\n List<Integer> cids = new ArrayList<Integer>();\n \n cids.addAll(ms_cms.findContentIdsByType(311));\n cids.addAll(ms_cms.findContentIdsByType(305));\n cids.addAll(ms_cms.findContentIdsByType(313));\n \n Set<Long> contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == 3);\n assertTrue(contenttypeids.contains(311L));\n assertTrue(contenttypeids.contains(305L));\n assertTrue(contenttypeids.contains(313L));\n \n // Test large collection of content ids\n cids.clear();\n \n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n cids.addAll(ms_cms.findContentIdsByType(ALL_FF_TYPES[i])); \n }\n \n contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == ALL_FF_TYPES.length);\n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n assertTrue(contenttypeids.contains(new Long(ALL_FF_TYPES[i])));\n }\n }", "@Override\n public Message find(Long id) {\n return null;\n }", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "@Override\n\tpublic Page<Product> findKeyWordPage(Integer pageint, String searchContent) {\n\t\tPageRequest pageable = PageRequest.of(pageint, 9);\n//\t\tPage<Product> page = productRepository.findBydescriptionLike(pageable, searchContent);\n\t\tPage<Product> page = productRepository.searchAll(pageable, searchContent);\n\t\t\n\t\tSystem.out.println(\"page->\"+page.getContent());\n\t\treturn page;\n\t}", "int updateContentDelete(@Param(\"contentUid\") long contentUid);", "CommentLike selectByPrimaryKey(Integer id);", "public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByContentId_(String... values) {\n return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.CONTENT_ID_, values);\n }", "@Override\r\n\tpublic String getContentByWebPage(Integer mesId, String taxId)\r\n\t\t\tthrows SQLException {\n\t\treturn reportDao.getContentByWebPage(mesId, taxId);\r\n\t}", "E find(final ID identifier) throws ResourceNotFoundException;", "private void findContentNodes(NodePattern contentNode, Set<NodePattern> contentNodes, Set<NodePattern> contextNodes) {\n\t\tList<NodePattern> foundContentNodes = new ArrayList<>();\r\n\t\t\r\n\t\tfor (NodePattern contextNode : contextNodes) {\r\n\t\t\tif (isContentNode(contextNode, contentNodes)) {\r\n\t\t\t\tfoundContentNodes.add(contextNode);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Move context to content nodes:\r\n\t\tcontextNodes.removeAll(foundContentNodes);\r\n\t\tcontentNodes.addAll(foundContentNodes);\r\n\t\t\r\n\t\t// Transitively check for new content nodes:\r\n\t\tfor (NodePattern foundContentNode : foundContentNodes) {\r\n\t\t\tfindContentNodes(foundContentNode, contentNodes, contextNodes);\r\n\t\t}\r\n\t}", "public void testLoadContentsId_1() throws Throwable {\n \tList<String> list = null;\n\t\ttry {\n\t\t\tlist = _contentSearcherDao.loadPublicContentsId(\"ART\", null, null, null);\n\t\t} catch (Throwable t) {\n\t\t\tthrow t;\n\t\t}\n\t\tassertEquals(4, list.size());\n\t\tassertFalse(list.contains(\"ART179\"));//contenuto non on-line\n\t\tassertTrue(list.contains(\"ART180\"));\n\t\tassertTrue(list.contains(\"ART187\"));\n\t\tassertTrue(list.contains(\"ART121\"));//contenuto administrator abilitato ai free\n\t\tassertFalse(list.contains(\"ART102\"));//contenuto di gruppo customers\n\t}", "@Override\r\n\tpublic List<ManageNursingContent> selectByExample(\r\n\t\t\tManageNursingContentExample example) throws Exception {\n\t\treturn mContentMapper.selectByExample(example);\r\n\t}", "@Override\n public Complex findById(final Integer id) throws PersistentException {\n ComplexDao complexDao = transaction.createDao(ComplexDao.class);\n Complex complex = complexDao.read(id);\n if (complex != null) {\n findExercises(complex);\n }\n return complex;\n }", "public interface ContentService {\n\n //前面四个方法都是后台的内容查询\n int add(Content content);\n\n PageInfo<Content> list(int categoryId, int page, int rows);\n\n int edit(Content content);\n\n int delete(String ids);\n\n //商城首页的大广告位查询\n // List<Content> selectByCategoryId(long cid);\n //缓存的写法\n String selectByCategoryId(long cid);\n\n}", "public void updateContent(String spaceId, String contentId);", "Article selectByPrimaryKey(String id);", "ContentInputStream get(int key) throws ContentStoreException;", "UserContentMetadata findContentUserDraft(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t\t\t\t @Param(\"historyId\") Long historyId,\n\t\t\t\t\t\t\t\t\t\t\t @Param(\"prevId\") Long prevId,\n\t\t\t\t\t\t\t\t\t\t\t @Param(\"nextId\") Long nextId,\n\t\t\t\t\t\t\t\t\t\t\t @Param(\"contentLang\") UserContentLanguage contentLang,\n\t\t\t\t\t\t\t\t\t\t\t @Param(\"userId\") int userId);", "public Iterable<Content> findByActive(boolean active){\n\n return contentRepository.findByIsActive(active);\n }" ]
[ "0.72715807", "0.6946184", "0.6945614", "0.65661573", "0.64910465", "0.64877886", "0.64357203", "0.6401637", "0.6232019", "0.6189105", "0.6176879", "0.6175351", "0.613291", "0.6121633", "0.60757816", "0.60748935", "0.6000212", "0.59728116", "0.5949413", "0.58392674", "0.58045316", "0.56778044", "0.56540805", "0.5644144", "0.5642152", "0.5600753", "0.56000966", "0.5595612", "0.5588049", "0.5563954", "0.55151963", "0.5501979", "0.54827625", "0.5449358", "0.54026765", "0.5398434", "0.5375739", "0.53668153", "0.5344977", "0.53431666", "0.5342197", "0.533445", "0.53333074", "0.5319035", "0.5311578", "0.52941513", "0.52930146", "0.5292778", "0.52833176", "0.52666336", "0.5264749", "0.52587116", "0.52531284", "0.52268827", "0.5213521", "0.52096677", "0.5196111", "0.5178953", "0.5166085", "0.51652825", "0.5161768", "0.5143683", "0.5131879", "0.51280326", "0.5119705", "0.5116722", "0.5106926", "0.5082775", "0.5075392", "0.50644463", "0.5057468", "0.5055537", "0.50544363", "0.50517", "0.5050344", "0.5048623", "0.50453514", "0.50361097", "0.5033259", "0.50297135", "0.50292677", "0.5023866", "0.502365", "0.50211364", "0.5014819", "0.50065625", "0.5004994", "0.4993272", "0.49924263", "0.49827054", "0.49768406", "0.49630326", "0.49562165", "0.4953677", "0.49506408", "0.4947794", "0.49466148", "0.49456534", "0.4942434", "0.4941261" ]
0.7547005
0
Finds content with origin id
public Content findContentByOriginId(String originId) { return contentDAO.findByOriginId(originId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserContent findContentById(@Param(\"contentUid\") long contentUid);", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotFoundException(\"Could not find content for contentID: \" + contentID);\n }", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}", "public Content findContentById(Long contentId) {\n return contentDAO.findById(contentId);\n }", "java.lang.String getContentId();", "boolean hasContentId();", "ImageContentData findContentData(String imageId);", "UserContent findContentForHistoryId(@Param(\"historyId\") long historyId);", "ContentLocator getContentLocator();", "public Content get(Integer contentId) {\n String sql = \"SELECT * FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, new ContentRowMapper(), contentId);\n }", "int getContentId();", "@Override\n\tpublic String queryContentId(String paramString)\n\t{\n\t\treturn null;\n\t}", "private ResourceLocation findMatchingEntry(String publicId) {\n return getElements().stream()\n .filter(e -> e.getPublicId().equals(publicId)).findFirst()\n .orElse(null);\n }", "List<UserContentAccess> findContentAccess();", "CopySearchResult find(ContentQuery query) throws ResourceAccessException;", "public void setContentId(String id) {\n\t\tthis._contentId = id;\n\t}", "UserContentMetadata findContentMetadataById(@Param(\"contentUid\") Long contentUid);", "public abstract ArrayList<T> findFromReference(int id);", "List<UserContent> findContent(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t @Param(\"contentLang\") UserContentLanguage contentLang,\n\t\t\t\t\t\t\t\t @Param(\"userId\") Integer userId,\n\t\t\t\t\t\t\t\t @Param(\"substituteUserDrafts\") boolean substituteUserDrafts);", "private ContentItem getSrcContent(ContentItem item) {\r\n if (item == null) { return null; }\r\n\r\n ContentDao contentDao = DiscourseDbDaoFactory.DEFAULT.getContentDao();\r\n ContentItem result = contentDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "@GetMapping(\"/voting-contents/{id}\")\n @Timed\n public ResponseEntity<VotingContent> getVotingContent(@PathVariable Long id) {\n log.debug(\"REST request to get VotingContent : {}\", id);\n VotingContent votingContent = votingContentRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(votingContent));\n }", "private int findPos(byte[] contents, String target)\n {\n String contentsStr = null;\n try\n {\n contentsStr = new String(contents, \"ISO-8859-1\");\n }\n catch (UnsupportedEncodingException e)\n {\n e.printStackTrace();\n }\n return contentsStr.indexOf(target);\n }", "private static Parts findPart(String part_id, Data dat) {\r\n\t\tfor (Parts part : dat.getParts_list()) {\r\n\t\t\tif (part.getId().equalsIgnoreCase(part_id)) {\r\n\t\t\t\treturn part;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "ContentIdentifier getParent(ContentIdentifier cid);", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "private NodeManifest searchBy(String bundleId) {\n final NodeManifestBundleInfo placeholder = new NodeManifestBundleInfo\n (bundleId, StringUtils.EMPTY, StringUtils.EMPTY, ZonedDateTime.now(), \"\");\n return newNodeManifest(placeholder, accessService.getArtifactoryServiceId());\n }", "@Override\r\n\tpublic ManageNursingContentWithBLOBs selectByPrimaryKeyBLOB(\r\n\t\t\tString manageNursingContentId) throws Exception {\n\t\treturn mContentMapper.selectByPrimaryKeyBLOB(manageNursingContentId);\r\n\t}", "private void getRemoteProxy() {\n String[] webIds = StringUtils.splitByWholeSeparator(this.webId, RPXY_WID_MARKER);\n\n // Remote proxy webid is same as live\n String liveWId = webIds[0];\n // Webid of section where live is published (section is parent of remote proxy)\n String sectionWId = webIds[1];\n\n // Get proxy(ies) with live webId\n DocumentModelList rProxies = ToutaticeEsQueryHelper.unrestrictedQuery(this.session, String.format(ToutaticeWebIdHelper.RPXY_WEB_ID_QUERY, liveWId), 1);\n\n // Published in one place only only\n if (rProxies.size() == 1) {\n // Proxy found\n DocumentModel rPxy = rProxies.get(0);\n // Check parent\n if (isParentWebId(rPxy, sectionWId)) {\n this.documents.add(rPxy);\n }\n } else if (rProxies.size() > 1) {\n // Published in many places.\n // Check all to see incoherences (this.documents.size() must be equals to one)\n for (DocumentModel rPxy : rProxies) {\n if (isParentWebId(rPxy, sectionWId)) {\n this.documents.add(rPxy);\n }\n }\n }\n }", "@Override\r\n\tpublic ManageNursingContent selectByPrimaryKey(String manageNursingContentId)\r\n\t\t\tthrows Exception {\n\t\treturn mContentMapper.selectByPrimaryKey(manageNursingContentId);\r\n\t}", "public List<String> listOriginIds(ContentType contentType, String origin) {\n return contentDAO.listOriginIdsByContentTypeOriginAndArchived(contentType, origin, Boolean.FALSE);\n }", "@java.lang.Override\n public int getContentId() {\n return contentId_;\n }", "MsgContent selectByPrimaryKey(Integer id);", "UserContentAccess findContentAccessForPath(@Param(\"path\") String path);", "GetPrefix remoteContent();", "private void findScanMold(String contents) {\n getData(1,contents,false);\n Log.e(\"Link\",webUrl + \"ActualWO/MoldMgtData?page=\" + 1 + \"&rows=50&sidx=&sord=asc&md_no=\" + contents + \"&md_nm=&_search=false\");\n Log.e(\"Link\",webUrl + \"ActualWO/MoldMgtData?page=\" + page + \"&rows=50&sidx=&sord=asc&md_no=&md_nm=&_search=false\");\n\n }", "@Override\n\tpublic long getContent_id() {\n\t\treturn _contentupdate.getContent_id();\n\t}", "public void testLoadContentsId_1() throws Throwable {\n \tList<String> list = null;\n\t\ttry {\n\t\t\tlist = _contentSearcherDao.loadPublicContentsId(\"ART\", null, null, null);\n\t\t} catch (Throwable t) {\n\t\t\tthrow t;\n\t\t}\n\t\tassertEquals(4, list.size());\n\t\tassertFalse(list.contains(\"ART179\"));//contenuto non on-line\n\t\tassertTrue(list.contains(\"ART180\"));\n\t\tassertTrue(list.contains(\"ART187\"));\n\t\tassertTrue(list.contains(\"ART121\"));//contenuto administrator abilitato ai free\n\t\tassertFalse(list.contains(\"ART102\"));//contenuto di gruppo customers\n\t}", "PsiElement[] findCommentsContainingIdentifier( String identifier, SearchScope searchScope);", "@Override\n public ContentHandle get(int index) {\n return storage.getArtifactByContentId(contentIds.get(index)).getContent();\n }", "public Chore findChoreId(int id){\n //Checking All chore Lists\n\n //Unassigned List\n Iterator<Chore> choreIterator = unassignedChores.iterator();\n while (choreIterator.hasNext()){\n Chore chore = choreIterator.next();\n if(chore.getChoreId() == id){\n return chore;\n }\n\n }\n\n\n //FINISHED Chores\n choreIterator = finishedChores.iterator();\n while (choreIterator.hasNext()){\n Chore chore = choreIterator.next();\n if(chore.getChoreId() == id){\n return chore;\n }\n\n }\n\n //Checking all users\n for (int i = 0; i < regUsers.size(); i++){\n regUsers.get(i).getChoreFromId(id);\n }\n\n for (int i = 0; i < adminUsers.size(); i++){\n adminUsers.get(i).getChoreFromId(id);\n }\n return null;\n }", "@java.lang.Override\n public int getContentId() {\n return instance.getContentId();\n }", "public ListDetails searchForListById(int idToEdit) {\n//\t\t\tTODO\tAuto-generated\tmethod\tstub\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tListDetails found = em.find(ListDetails.class, idToEdit);\n\t\tem.close();\n\t\treturn found;\n\n\t}", "public void setdictContentID(String value) {\r\n setNamedWhereClauseParam(\"dictContentID\", value);\r\n }", "ExplorerContent getContentInScope( final Path path );", "private void extractParseWithObjectId(String selected_Object_id) {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Match\");\n query.getInBackground(selected_Object_id, new GetCallback<ParseObject>() {\n public void done(ParseObject object, ParseException e) {\n if (e == null) {\n System.out.println(\"Object has been found!!\");\n System.out.println(object.get(\"FromPlayer\"));\n SMA_FromPlayer.setText(object.get(\"FromPlayerToDisp\").toString());\n SMA_ToPlayer.setText(object.get(\"ToPlayerToDisp\").toString());\n SMA_Time.setText(object.get(\"Time\").toString());\n SMA_Location.setText(object.get(\"Location\").toString());\n if (object.get(\"Status\").toString().equals(\"Pending\")) {\n SMA_Label_Pending.setVisibility(View.VISIBLE);\n }\n\n } else {\n System.out.println(\"Object has not been found!!\");\n }\n }\n });\n }", "@Test\n public void getretrieveOffersByContentIdTest() throws IOException {\n\n\n String contentid = Arrays.asList(\"contentid_example\").get(0);\n\n\n RetrieveOffersByContentIdgetResponse response = api.getretrieveOffersByContentId(contentid, null, null, null, null);\n }", "public Embarcation getByIdWeb(int embarcationIdWeb){\n\t\tSQLiteDatabase mDb = open();\n\t\tCursor cursor = mDb.rawQuery(\"SELECT * FROM \" + TABLE_NAME + \" WHERE \"+ID_WEB+\" = ?\", new String[]{String.valueOf(embarcationIdWeb)});\n\t\t\n\t\tList<Embarcation> resultList = cursorToEmbarcationList(cursor);\n\t\t\n\t\tmDb.close();\n\t\t\n\t\tif(resultList.size() == 1){\n\t\t\treturn resultList.get(0);\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}", "@Override\r\n\tpublic ManageNursingContent selectmanageNursingContentById(\r\n\t\t\tString manageNursingContentId) throws Exception {\n\t\treturn mContentMapper.selectmanageNursingContentById(manageNursingContentId);\r\n\t}", "E find(final ID identifier) throws ResourceNotFoundException;", "private int searchId(String id){\n\t\tint index = -1; // -1(존재안함)\n\t\t\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tif(id.equals(list.get(i).getId())){\n\t\t\t\t//stu = list.get(i);\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\t\t\t\t\n\t\treturn index;\n\t}", "public abstract boolean matches(ExternalIdBundle id);", "public BlogEntry findBlogEntry(Long id);", "FormatOriginRecord selectByPrimaryKey(Integer id);", "AceEntity findEntity (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tif (entity.id.equals(id)) {\n\t\t\t\treturn entity;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity with id \" + id);\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String getContentByWebPage(Integer mesId, String taxId)\r\n\t\t\tthrows SQLException {\n\t\treturn reportDao.getContentByWebPage(mesId, taxId);\r\n\t}", "private Object getOwner(String className, String id) {\n if (id == null) {\n LOG.log(Level.WARNING,\n \"There is no href attribute provided for a \" + className\n + \" so the diagram element is ignored on load\");\n return null;\n }\n final Object owner = findOwner(id);\n if (owner == null) {\n LOG.log(Level.WARNING,\n \"The href \" + id + \" is not found for a \" + className\n + \" so the diagram element is ignored on load\");\n return null;\n }\n return owner;\n }", "@Override\n\tpublic Message find(int id) {\n\t\treturn null;\n\t}", "public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}", "private void setContentId(int value) {\n bitField0_ |= 0x00000001;\n contentId_ = value;\n }", "public int getObject(int targetId)\n\t{\n for(String skey: searchBufs.keySet()){\n String[] keys = skey.split(\"\\\\s+\"); //separted by any white space\n\t\t\t// check the key and assign different method\n ByteBuffer buf = searchBufs.get(skey);\n int bound = buf.position();\n ByteBuffer readBuf = buf.asReadOnlyBuffer();\n readBuf.position(0);\n int oid = 0;\n long longnum = 0;\n \n while(readBuf.position() < bound) {\n oid = readBuf.getInt();\n //System.out.print(\"current cursor: Rowid \"+oid+\" key \"+skey);\n if(oid > targetId)\n break; // already found all of the target row , assume monotonous increase\n if(oid == targetId)\n System.out.print(\"Row \"+oid);\n \n for(int i=0; i<keys.length; i++){\n String type = types.get(keys[i]);\n if(type.equals(\"STRING\")){\n }\n else if(type.equals(\"LONG\")){\n longnum = readBuf.getLong();\n if(oid == targetId){\n System.out.print(longnum + \" \");\n }\n }\n else if(type.equals(\"DOUBLE\")){\n }\n else if(type.equals(\"BOOL\")){\n }\n }\n if(oid == targetId)\n System.out.println(\"\");\n } //end while\n } // end for\n return 0;\n }", "private static Person findPersonById(int id) {\n Person personReturn = null;\n\n for (Person person : persons) {\n if (id == person.getId()) {\n personReturn = person;\n }\n }\n\n return personReturn;\n }", "public void get(String storeName, Long jcrContentId, OutputStream target);", "@Override\n public Message find(Long id) {\n return null;\n }", "@java.lang.Override\n public boolean hasContentId() {\n return instance.hasContentId();\n }", "public Content getContentMeta(Integer contentId) {\n String sql = \"SELECT * FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, new ContentMetaRowMapper(), contentId);\n }", "@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}", "public Integer getContentId() {\n return contentId;\n }", "public String getContent() throws SearchResultException;", "List<Long> findActiveContentFilesForContentUid(@Param(\"contentUid\") long contentUid);", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "public Object lookup(String id) {\n return null;\n }", "ContentSum findOne(Long id);", "public boolean findItemAtCurrentPlace(String id)\r\n\t{\r\n\t\treturn this.currentPlace.existItem(id);\r\n\t\t\r\n\t}", "public Joueur find(String id)\n\t{\n\t\tfor(Joueur j : ListJoueur)\n\t\t{\n\t\t\tif(id.equals(j.getClefId()))\n\t\t\t\treturn j;\n\t\t}\n\t\treturn null;\n\t}", "private EscherRecord findFirstWithId(short id, List<EscherRecord> records) {\n \tfor(Iterator<EscherRecord> it = records.iterator(); it.hasNext();) {\n \t\tEscherRecord r = it.next();\n \t\tif(r.getRecordId() == id) {\n \t\t\treturn r;\n \t\t}\n \t}\n\n \t// Then check our children in turn\n \tfor(Iterator<EscherRecord> it = records.iterator(); it.hasNext();) {\n \t\tEscherRecord r = it.next();\n \t\tif(r.isContainerRecord()) {\n \t\t\tEscherRecord found = findFirstWithId(id, r.getChildRecords());\n \t\t\tif(found != null) {\n \t\t\t\treturn found;\n \t\t\t}\n \t\t}\n \t}\n\n \t// Not found in this lot\n \treturn null;\n }", "CE findById(ID id);", "protected CompaniesContactsEntity findById(int id) {\n log.info(\"CompaniesContact => method : findById()\");\n\n FacesMessage msg;\n\n if (id == 0) {\n log.error(\"CompaniesContact ID is null\");\n msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"note.notExist\"), null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n throw new EntityNotFoundException(\n \"L ID de la note est incorrect\",\n ErrorCodes.COMPANY_NOT_FOUND\n );\n }\n\n EntityManager em = EMF.getEM();\n Optional<CompaniesContactsEntity> optionalCompaniesContactsEntity;\n try {\n optionalCompaniesContactsEntity = companiesContactsDao.findById(em, id);\n } finally {\n em.clear();\n em.close();\n }\n return optionalCompaniesContactsEntity.orElseThrow(() ->\n new EntityNotFoundException(\n \"Aucune Note avec l ID \" + id + \" n a ete trouvee dans la BDD\",\n ErrorCodes.CONTACT_NOT_FOUND\n ));\n }", "public String getContentId() {\n\n String as[] = getMimeHeader(\"Content-Id\");\n\n if (as != null && as.length > 0) {\n return as[0];\n } else {\n return null;\n }\n }", "public String getdictContentID() {\r\n return (String)getNamedWhereClauseParam(\"dictContentID\");\r\n }", "public Client find(int id) throws DataAccessLayerException {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.READ));\n return (Client) super.find(Client.class, id);\n } catch (AccessControlException e) {\n e.printStackTrace();\n }\n return null;\n }", "public ContentHandler forID(String ID, boolean exact) {\n return impl.forID(ID, exact);\n }", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "public WebElement getArticleById(int id) {\n LOGGER.info(\"Getting article Nr.\" + (id + 1));\n // if we use assertions better to initialize \"articles\" before assertions;\n List<WebElement> articles = baseFunc.findElements(ARTICLE);\n\n //if list is not empty, everything is ok;\n Assertions.assertFalse(articles.isEmpty(), \"There are no articles!\");\n //if article count > searched article, everything is ok;\n Assertions.assertTrue(articles.size() > id, \"Article amount is less than id\");\n\n return articles.get(id);\n }", "protected native void updateContent(String id) /*-{\r\n\t\t$wnd.tinyMCE.selectedInstance = $wnd.tinyMCE.getInstanceById(id);\r\n\t\t$wnd.tinyMCE.setContent($wnd.document.getElementById(id).value);\r\n\t}-*/;", "public TransportMessage findMessage(String id) {\n try{\n return (TransportMessage)storage(Q_STORENAME).getRecordForValue(\"cache-id\", id);\n }\n catch(NoSuchElementException e) {\n //Not there. Not a big deal.\n }\n\n try{\n return (TransportMessage)storage(RECENTLY_SENT_STORENAME).getRecordForValue(\"cache-id\", id);\n }\n catch(NoSuchElementException e) {\n //Not there. Not a big deal.\n }\n\n //Couldn't find it!\n return null;\n }", "void setContentLocator( ContentLocator locator );", "@Override\r\n public String retrieve(final String id) throws ContentModelNotFoundException, SystemException {\r\n \r\n setContentModel(id);\r\n return render();\r\n }", "public Curso find(Long id) {\n\t\tfor (Curso curso : cursos) {\n\t\t\tif(curso.getId() == id) {\n\t\t\t\treturn curso;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Conge find( Integer idConge ) ;", "Blog read(int id);", "@Override\n\tpublic ModificationRequest findById(UUID id) {\n\t\ttry {\n\t\t\treturn this.entityManager.createQuery(\"SELECT request from ModificationRequest request where request.modificationRequestId = :id AND request.active = TRUE\", ModificationRequest.class)\n\t\t\t\t\t.setParameter(\"id\", id)\n\t\t\t\t\t.getSingleResult();\n\t\t}\n\t\tcatch(NoResultException e) {\n\t\t\t// returns null if no user if found\n\t\t\treturn null;\n\t\t}\n\t}", "static JSONObject getContent(String urlId)\n\t{\n\t\tString QueryURL;\n\t\ttry {\n\t\t\tQueryURL = \"http://localhost:8983/solr/spaceSearch/select?indent=on&q=id:\\\"\"\n\t\t\t\t\t+ urlId + \"\\\"&rows=10&wt=json\";\n\t\t\t//System.out.println(QueryURL);\n\t\t\tfinal URL url = new URL(QueryURL);\n\t\t\tfinal URLConnection connection = url.openConnection();\n\t\t\tfinal BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tfinal StringBuilder results = new StringBuilder();\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tresults.append(inputLine);\n\t\t\t}\n\t\t\tJSONObject items = null;\n\t\t\tJSONObject dataObj = null;\n\t\t\tJSONArray dataArr = null;\n\t\t\tif (results != null) {\n\t\t\t\tJSONObject obj = new JSONObject(results.toString());\n\t\t\t\titems = obj.getJSONObject(\"response\");\n\t\t\t\tdataArr = items.getJSONArray(\"docs\");\n\t\t\t\tdataObj = dataArr.getJSONObject(0);\n\t\t\t}\n\t\t\t\n\t\t\treturn(dataObj);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (MalformedURLException 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} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private static void search_by_id() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project id: \");\r\n\t\t\tString project_id_str = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_id_str, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project id cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic int querySongIdByContentId(String paramString)\n\t{\n\t\treturn 0;\n\t}", "@Override\n\tpublic DomainObject find(long id) {\n\t\treturn null;\n\t}", "private Node searchNode(int id) {\n\t\tNode node = searchRec(root,id);\n\t\treturn node;\n\t}", "SharedPrivateLinkResource getById(String id);", "public <T> PersistableDataObject<T> queryById(final PluginDataObject id) {\n PersistableDataObject<T> retVal = txTemplate\n .execute(new TransactionCallback<PersistableDataObject<T>>() {\n @Override\n @SuppressWarnings(\"unchecked\")\n public PersistableDataObject<T> doInTransaction(\n TransactionStatus status) {\n DetachedCriteria criteria = DetachedCriteria.forClass(\n id.getClass())\n .add(Property.forName(\"dataURI\").eq(\n id.getDataURI()));\n List<?> list = getHibernateTemplate().findByCriteria(\n criteria);\n if (list.size() > 0) {\n return (PluginDataObject) list.get(0);\n } else {\n return null;\n }\n }\n });\n return retVal;\n }" ]
[ "0.58875245", "0.5791549", "0.5703001", "0.56610817", "0.5529834", "0.548873", "0.54435784", "0.5434778", "0.54215807", "0.53761166", "0.52679974", "0.5179149", "0.5178427", "0.51698655", "0.51313496", "0.51237905", "0.51065195", "0.50885606", "0.5069672", "0.5061355", "0.503556", "0.50302064", "0.502884", "0.5026664", "0.50087583", "0.49889004", "0.49886698", "0.49647415", "0.49520728", "0.49245095", "0.49211365", "0.49034923", "0.49015802", "0.4868693", "0.48585826", "0.48543173", "0.4841487", "0.48341605", "0.48213214", "0.48192084", "0.4792545", "0.47895005", "0.478584", "0.47852835", "0.47837013", "0.47715208", "0.4752156", "0.4751318", "0.4749333", "0.47472298", "0.4738153", "0.47260243", "0.4719089", "0.4712378", "0.46981382", "0.4694598", "0.46911398", "0.4688925", "0.4681437", "0.4678405", "0.46777204", "0.46760258", "0.46711758", "0.46598792", "0.46575308", "0.46513802", "0.46486044", "0.4643512", "0.4636727", "0.462778", "0.4621329", "0.46191978", "0.46160412", "0.4610562", "0.46064413", "0.46005607", "0.46000758", "0.45995829", "0.45991072", "0.45984057", "0.45978734", "0.45950705", "0.45780218", "0.45778903", "0.45735952", "0.4559083", "0.4543578", "0.45416144", "0.4541294", "0.45386112", "0.4537922", "0.45377845", "0.4537009", "0.45362294", "0.452847", "0.45277792", "0.45277154", "0.45223114", "0.45200086", "0.45183134" ]
0.732545
0
List contents optionally filtered by parent, type, firsresults and/or max results
public List<Content> listContents(Content parent, List<ContentType> types, Integer firstResult, Integer maxResults) { return contentDAO.listByParentAndTypesAndArchived(parent, types, Boolean.FALSE, firstResult, maxResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultMap<BaseNode> listChildren(Pagination pagination);", "public List<Content> listRootContents(List<ContentType> types, Integer firstResult, Integer maxResults) { \n return contentDAO.listByNullParentAndTypesAndArchived(types, Boolean.FALSE, firstResult, maxResults);\n }", "Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();", "public abstract List<ClinicalDocument> findClinicalDocumentEntries(int firstResult, int maxResults);", "@Override\n\tpublic BrowseResult search(String containerId, String searchCriteria,\n\t\t\tString filter, long firstResult, long maxResults,\n\t\t\tSortCriterion[] orderBy) throws ContentDirectoryException {\n\t\treturn super.search(containerId, searchCriteria, filter, firstResult,\n\t\t\t\tmaxResults, orderBy);\n\t}", "protected abstract List<List<SearchResults>> processStream();", "entities.Torrent.NodeSearchResult getResults(int index);", "boolean getMoreResults();", "LazyDataModel<ReagentResult> getSearchResults();", "List<T> getResults();", "@Override\r\n\tpublic PaginationSupport getOpinionList(int pageNumber, int pageSize) {\n\t\tString HQL = \"\";\r\n\t\tHQL += \" from XzfyOtherSuggest x\";\r\n\t\tHQL += \" where 1 = 1 and x.parentId is null order by id desc\";\t\r\n\t\treturn super.find(HQL, pageNumber, pageSize);\r\n\r\n\t}", "protected Object[] getFilteredChildren(TableViewer viewer){\n\t\tObject parent = viewer.getInput();\n\t\tif(parent==null) return new Object[0];\n\t\tObject[] result = null;\n\t\tif (parent != null) {\n\t\t\tIStructuredContentProvider cp = (IStructuredContentProvider) viewer.getContentProvider();\n\t\t\tif (cp != null) {\n\t\t\t\tresult = cp.getElements(parent);\n\t\t\t\tif(result==null) return new Object[0];\n\t\t\t\tfor (int i = 0, n = result.length; i < n; ++i) {\n\t\t\t\t\tif(result[i]==null) return new Object[0];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tViewerFilter[] filters = viewer.getFilters();\n\t\tif (filters != null) {\n\t\t\tfor (ViewerFilter f:filters) {\n\t\t\t\tObject[] filteredResult = f.filter(viewer, parent, result);\n\t\t\t\tresult = filteredResult;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Collection<T> getResults();", "public static List<String> get_RankedResults(List<Doc_accum> results) {\n List<String> filenames = new ArrayList();\n\n if (results.isEmpty()) {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n clickList = false;\n\n String notFound = \"Your search '\" + query + \"' is not found in any documents\";\n GUI.ResultsLabel.setText(notFound);\n\n } else {\n clickList = false;\n\n //clears list and repopulates it \n String docInfo;\n\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n for (Doc_accum p : results) {\n if (queryMode) {\n corpus.getDocument(p.getPosting().getDocumentId()).getContent();\n }\n //docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getTitle();\n docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getFileName().toString();\n filenames.add(docInfo);\n\n }\n }\n\n GUI.SearchBarTextField.selectAll();\n\n return filenames;\n }", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type, int firstResult, int maxResult);", "@Override\r\n\tpublic List<ViewListeEleve> filter(HttpHeaders headers, List<Predicat> predicats, Map<String, OrderType> orders,\r\n\t\t\tSet<String> properties, Map<String, Object> hints, int firstResult, int maxResult) {\n \tList<ViewListeEleve> list = super.filter(headers, predicats, orders, properties, hints, firstResult, maxResult);\r\n \tSystem.out.println(\"ViewListeEleveRSImpl.filter() size is \"+list.size());\r\n\t\treturn list ;\r\n\t}", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "public abstract ArrayList<T> findAll(int limit, int offset);", "Page<Accessprofile> listWithCriterasByPage(List<SearchCriteria> searchCriterias, Pageable pageable);", "SearchResult getBestResult(List<SearchResult> results, SearchQuery query);", "public List<Entry> show10MostRecentEntries() {\n\t\tList<Entry> subList;\n\t\tif (entries.isEmpty()){\n\t\t\tSystem.out.println(\"The blog doesn't have any entries yet\");\n\t\t\treturn entries.getList();\n\t\t}\n\t\telse {\n\t\t\tif (entries.getSize()>= 10){\n\t\t\t\tsubList= entries.getSubList(0,10);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsubList= entries.getSubList(0,entries.getSize());\n\t\t\t}\n\t\t\tIterator<Entry> it = subList.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEntry entry = it.next();\n\t\t\t\tSystem.out.println(\"Entry Title: \" + entry.getTitle());\n\t\t\t\tSystem.out.println(\"Entry Content: \" + entry.getContent());\n\t\t\t}\n\t\t\t\n\t\t\treturn subList;\n\t\t}\n\t}", "List<JSONObject> getFilteredItems();", "private ResultPagingVO readCommonCtrlItemAndPropList(HttpServletRequest req, String objectType) {\n\n\t\tResultPagingVO resultVO = new ResultPagingVO();\n\t\tHashMap<String, Object> options = new HashMap<String, Object>();\n\n\t\t// << options >>\n\t\tString searchKey = ((req.getParameter(\"keyword\") != null) ? req.getParameter(\"keyword\").replace(\"_\", \"\\\\_\")\n\t\t\t\t: \"\");\n\n\t\t// search keyword\n\t\toptions.put(\"searchKey\", searchKey);\n\n\t\t// << paging >>\n\t\tString paramOrderColumn = req.getParameter(\"orderColumn\");\n\t\tString paramOrderDir = req.getParameter(\"orderDir\");\n\t\tString paramStart = StringUtils.defaultString(req.getParameter(\"start\"), \"0\");\n\t\tString paramLength = StringUtils.defaultString(req.getParameter(\"length\"), \"10\");\n\n\t\t// << Order >>\n\t\tif (\"chConfName\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.OBJ_NM\");\n\t\t} else if (\"chModUser\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.MOD_USER_ID\");\n\t\t} else if (\"chRegUser\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.REG_USER_ID\");\n\t\t} else if (\"chConfId\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.OBJ_ID\");\n\t\t} else if (\"chModDate\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.MOD_DT\");\n\t\t} else {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.OBJ_ID\");\n\t\t}\n\n\t\tif (\"DESC\".equalsIgnoreCase(paramOrderDir)) {\n\t\t\toptions.put(\"paramOrderDir\", \"DESC\");\n\t\t} else {\n\t\t\toptions.put(\"paramOrderDir\", \"ASC\");\n\t\t}\n\t\tif (\"desc\".equalsIgnoreCase(paramOrderDir)) {\n\t\t\toptions.put(\"defaultOrderValue\", \"힣힣힣힣힣힣힣\");\n\t\t\toptions.put(\"defaultOrderSecondValue\", \"힣힣힣힣힣힣힢\");\n\t\t} else {\n\t\t\toptions.put(\"defaultOrderValue\", null);\n\t\t\toptions.put(\"defaultOrderSecondValue\", null);\n\t\t}\n\t\toptions.put(\"paramStart\", Integer.parseInt(paramStart));\n\t\toptions.put(\"paramLength\", Integer.parseInt(paramLength));\n\n\t\toptions.put(\"mngObjTp\", objectType);\n\n\t\ttry {\n\n\t\t\tresultVO = ctrlMstService.readCtrlItemAndPropListPaged(options);\n\t\t\tresultVO.setDraw(String.valueOf(req.getParameter(\"page\")));\n\t\t\tresultVO.setOrderColumn(paramOrderColumn);\n\t\t\tresultVO.setOrderDir(paramOrderDir);\n\t\t\tresultVO.setRowLength(paramLength);\n\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readClientConfList : {}, {}, {}\", 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}", "public List getList(int start, int pernum, SearchParam param);", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "java.util.List<? extends entities.Torrent.NodeSearchResultOrBuilder>\n getResultsOrBuilderList();", "Integer getMaxPageResults();", "abstract List<Divider<T> >getSearchResults(Divider<T> d);", "private SearchResult<ProviderProfile> getAllResults(HealthCareFacilitySearchCriteria criteria,\n String providerCatagory) throws URISyntaxException, IOException, ServiceException {\n DefaultHttpClient client = new DefaultHttpClient();\n client.setRedirectStrategy(new LaxRedirectStrategy());\n\n // we need to get a token from the start page, this will be stored in the client\n HttpGet getFrontPage = new HttpGet(new URIBuilder(getSearchURL()).build());\n HttpResponse response = client.execute(getFrontPage);\n verifyAndAuditCall(getSearchURL(), response);\n EntityUtils.consume(response.getEntity()); // releases the connection\n\n // our client is now valid, pass the criteria to the search page\n String postSearchURL = Util.replaceLastURLPart(getSearchURL(), \"showprovideroutput.cfm\");\n HttpPost searchPage = new HttpPost(new URIBuilder(postSearchURL).build());\n String whichArea = \"\", selectCounty = \"0\", cityToFind = \"\", providerToFind = \"\";\n if (\"county\".equals(criteria.getCriteria())) {\n whichArea = \"County\";\n selectCounty = criteria.getValue();\n } else if (\"city\".equals(criteria.getCriteria())) {\n whichArea = \"City\";\n cityToFind = criteria.getValue();\n } else if (\"provider\".equals(criteria.getCriteria())) {\n whichArea = \"Name\";\n providerToFind = criteria.getValue();\n }\n HttpEntity entity = postForm(postSearchURL, client, searchPage, new String[][] {\n { \"ProviderCatagory\", providerCatagory }, { \"WhichArea\", whichArea }, { \"Submit\", \"Submit\" },\n { \"SelectCounty\", selectCounty }, { \"CityToFind\", cityToFind },\n { \"ProviderToFind\", providerToFind } }, true);\n\n List<ProviderProfile> allProviders = new ArrayList<ProviderProfile>();\n // this now holds the search results, parse every row\n Document page = Jsoup.parse(EntityUtils.toString(entity));\n Elements rows = page.select(\"div#body table tbody tr:gt(0)\");\n for (Element row : rows) {\n ProviderProfile profile = parseProfile(row.children());\n if (profile != null) {\n allProviders.add(profile);\n }\n }\n\n SearchResult<ProviderProfile> results = new SearchResult<ProviderProfile>();\n results.setItems(allProviders);\n return results;\n }", "@Override\n\tpublic List<T> getLimitedFilteredResult(Bson filter, int limit) {\n\t\tGson gson = new GsonBuilder().create();\n\t\tList<T> innerList = new ArrayList<>();\n\t\tcollection.find(filter).limit(limit).forEach((Block<Document>) document -> {\n\t\t\tinnerList.add(gson.fromJson(document.toJson(), entityClass));\n\t\t});\n\t\treturn innerList;\n\n\t}", "Page<ExamPackage> searchList(int pageNo, int pageSize, Sort sort);", "public String searchByFilter() {\n if (selectedFilter.size() != 0) {\n for (Genre filterOption : selectedFilter) {\n searchTerm = searchResultTerm;\n searchBook();\n\n System.out.println(\"CURRENT NUMBER OF BOOKS: \" + books.size());\n\n BookCollection temp = this.db.getCollectionByGenre(filterOption);\n System.out.println(\"GETTING COLLECTION FOR FILTERING: \" + temp.getCollectionName() + \" NUM OF BOOKS: \"\n + temp.getCollectionBooks().size());\n filterBookList(temp.getCollectionBooks());\n System.out.println(\"UPDATED NUMBER OF BOOKS: \" + books.size());\n }\n } else {\n searchTerm = searchResultTerm;\n searchBook();\n }\n\n return \"list.xhtml?faces-redirect=true\";\n }", "public List<MainItemOrdered> findAll();", "public Publication[] getResultsWindow(int pageNum, int pageSize) {\n\n Publication[] searchResult = null;\n\n searchResult = \n getSearchStateFromUserContext().getSearchResults().getResultSet();\n\n int numResults = searchResult.length;\n int numTotalResults = getSearchStateFromUserContext().getResultsTotalSize();\n numTotalResults = numTotalResults > 1000 ? 1000 : numTotalResults;\n\n // 2011-09-12 MSJ\n // Page size should be compared to TOTAL number of results because we\n // are in here to grab a NEW window, not the previous one.\n\n if (pageSize > numTotalResults)\n {\n pageSize = numTotalResults;\n }\n pageNum = Math.min( (int)Math.ceil( numTotalResults * 1.0 / pageSize ), pageNum );\n int startPos = (pageNum - 1) * pageSize;\n\n // 2011-09-12 MSJ\n // We have to take into account both page offset AND page size because\n // we might be coming in here to get a larger window, not just a window\n // for a page greater than one...\n\n if (startPos > searchResult.length - 1 || (pageSize > searchResult.length && numTotalResults > pageSize))\n {\n \t//we don't have enough results to show this page, we need to get the next 100 and add to results\n \tCCSearchCriteria ccSearchCriteria = getSearchStateFromUserContext().getSearchCriteria();\n \tPublicationSearch criteria = ccSearchCriteria.getPublicationSearch();\n \t\n \tString sortBy = PublicationSearch.SORT_RELEVANCE;\n \n if (ccSearchCriteria.getSortType() == 1) sortBy = PublicationSearch.SORT_TITLE;\n if (ccSearchCriteria.getSortType() == 2) sortBy = PublicationSearch.SORT_PUBLISHER;\n \n // get last accessed page number\n int previousPageNum=searchResult.length/pageSize;\n int skippedPages=pageNum-previousPageNum;\n\n if(skippedPages>1 ){// we are showing only 4 records at a time\n \t//user can jump to 3rd or 4th records only hence fill the holes\n \t for(int pageCount=previousPageNum+1;pageCount<=pageNum; pageCount++ ){\n \t\t performSearch( criteria, sortBy, pageCount, 100, pageSize);\t \n \t }\n }\n else{\n \tperformSearch( criteria, sortBy, pageNum, 100, pageSize);\n }\n searchResult = \n getSearchStateFromUserContext().getSearchResults().getResultSet();\n }\n if ((startPos + pageSize) > searchResult.length){\n \t//adjust page size to last remaining records e.g 382 : page size (1)100, (2)100,(3)100 and (4)82\n \tpageSize = searchResult.length - startPos;\n }\n \n getSearchStateFromUserContext().setCurrentPage(pageNum);\n getSearchStateFromUserContext().setPageSize(pageSize);\n\n Publication[] resultWindow = new Publication[pageSize];\n System.arraycopy(searchResult, startPos, resultWindow, \n 0, pageSize);\n\n return resultWindow;\n }", "List<ShopItem> findAllByInTopPageTrue();", "@Override\n public ResultSet getResultsForAllPaged(String onyen, String assignment, String type, String course, String section, String year, String season, int page, int pageSize) throws SQLException {\n StringBuilder statement = new StringBuilder();\n int count = 0;\n statement.append(\"SELECT * FROM (\\n\");\n if (onyen != null && !onyen.isEmpty()) {\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE user_uid IN (SELECT uid FROM user WHERE onyen = ?))\");\n }\n if (assignment != null && !assignment.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE name = ?))\");\n }\n if (type != null && !type.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE assignment_type_id IN (SELECT id FROM assignment_type WHERE name = ?)))\");\n }\n if (course != null && !course.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE name = ?)))\");\n }\n if (section != null && !section.isEmpty()) {\n count++;\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE section = ?)))\");\n }\n if (year != null && !year.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE year = ?))))\");\n }\n if (season != null && !season.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE season = ?))))\");\n }\n if (count > 0) {\n statement.append(\")\\n AS result GROUP BY id HAVING count(*) = \").append(count);\n } else {\n statement.setLength(0);\n statement.append(\"SELECT * FROM result\");\n }\n statement.append(\"\\nORDER BY date DESC\");\n statement.append(\"\\nLIMIT \").append(pageSize);\n if(page > 0) {\n statement.append(\"\\nOFFSET \").append(page * pageSize);\n }\n statement.append(\";\");\n //System.out.println(statement.toString());\n PreparedStatement pstmt = connection.prepareStatement(statement.toString());\n int i = 1;\n if (onyen != null && !onyen.isEmpty()) {\n pstmt.setString(i++, onyen);\n }\n if (assignment != null && !assignment.isEmpty()) {\n pstmt.setString(i++, assignment);\n }\n if (type != null && !type.isEmpty()) {\n pstmt.setString(i++, type);\n }\n if (course != null && !course.isEmpty()) {\n pstmt.setString(i++, course);\n }\n if (section != null && !section.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(section));\n }\n if (year != null && !year.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(year));\n }\n if (season != null && !season.isEmpty()) {\n pstmt.setString(i, season);\n }\n //System.out.println(pstmt.toString());\n return pstmt.executeQuery();\n }", "void printFilteredItems();", "@Override\n\tpublic JSONObject getByPage(String param) {\n\t\tJSONObject data = new JSONObject();\n\t\tJSONObject result = new JSONObject();\n\t\tMainUtility mainUtil = new MainUtility();\n\t\tJSONObject jsonParams = mainUtil.stringToJson(param);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringBuilder builderGetTotal = new StringBuilder();\n\n\t\tbuilder.append(\"SELECT `wt_id`, `wt_title`, `wt_content`, user.full_name, \"\n\t\t\t\t+ \"IF(writing_test.created_date IS NULL,null, DATE_FORMAT(writing_test.created_date, '%d-%m-%Y')) AS created_date FROM writing_test \"\n\t\t\t\t+ \"LEFT JOIN crm_user AS user ON writing_test.created_by = user.user_id WHERE 1=1 \");\n\t\tbuilderGetTotal.append(\"SELECT COUNT(1) FROM `writing_test` \"\n\t\t\t\t+ \" WHERE 1=1\");\n\t\t// filter header\n\t\tif (jsonParams.get(\"status\") == null || Integer.parseInt(jsonParams.get(\"status\").toString()) == -1) {\n\t\t\tbuilder.append(\" AND writing_test.deleted <> 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted <> 1\");\n\t\t} else if (Integer.parseInt(jsonParams.get(\"status\").toString()) == -2) {// thùng rác\n\t\t\tbuilder.append(\" AND writing_test.deleted = 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted = 1\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_title\") != null && !\"\".equals(jsonParams.get(\"wt_title\").toString())) {\n\t\t\tbuilder.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_content\") != null && !\"\".equals(jsonParams.get(\"wt_content\").toString())) {\n\t\t\tbuilder.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t}\n\t\t// sortby\n\t\tif (jsonParams.get(\"sortField\") != null && !\"\".equals(jsonParams.get(\"sortField\").toString())) {\n\t\t\tswitch (jsonParams.get(\"sortField\").toString()) {\n\t\t\tdefault:\n\t\t\t\tbuilder.append(\" ORDER BY writing_test.created_date DESC\");\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"descend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" DESC\");\n//\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"ascend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" ASC\");\n//\t\t\t}\n\t\t}\n\t\tmainUtil.getLimitOffset(builder, jsonParams);\n\t\ttry {\n\t\t\tint totalRow = this.jdbcTemplate.queryForObject(builderGetTotal.toString(), Integer.class);\n\t\t\tList<Map<String, Object>> lstWrittingTest = this.jdbcTemplate.queryForList(builder.toString());\n\t\t\tJSONObject results = new JSONObject();\n\t\t\tresults.put(\"results\", lstWrittingTest);\n\t\t\tresults.put(\"total\", totalRow);\n\t\t\tdata.put(\"data\", results);\n\t\t\tdata.put(\"success\", true);\n\t\t} catch (Exception e) {\n\t\t\tdata.put(\"success\", false);\n\t\t\tdata.put(\"err\", e.getMessage());\n\t\t\tdata.put(\"msg\", \"Lấy danh sách bài kiểm tra thất bại\");\n\t\t}\n\t\treturn data;\n\t}", "private void writeResults() {\n\t\tgetContext().writeName(\"searchResults\");\n\t // Open the Array of affectedParties\n\t TypeContext itemTypeContext = getContext().writeOpenArray();\n\t \n\t for(Person person : results){\n\t\t\t// Add a comma after each affectedParty object is written\n if (!itemTypeContext.isFirst()){\n \tgetContext().writeComma();\n }\n itemTypeContext.setFirst(false);\n\t\t\t\n // Open the affectedParty object and write the fields\n\t\t\tgetContext().writeOpenObject();\n\t\t\t\n\t\t\t// Write out the fields\n\t\t getContext().writeName(\"id\");\n\t\t getContext().transform(person.getId());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"name\");\n\t\t getContext().transform(person.getName());\n\t\t getContext().writeComma();\n\n\t\t getContext().writeName(\"sex\");\n\t\t getContext().transform(person.getSex());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"dob\");\n\t\t getContext().transform(person.getDob() == null?null:new SimpleDateFormat(\"dd/MM/yyyy\").format(person.getDob()));\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"dod\");\n\t\t getContext().transform(person.getDod() == null?null:new SimpleDateFormat(\"dd/MM/yyyy\").format(person.getDod()));\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"placeOfBirth\");\n\t\t getContext().transform(person.getPlaceOfBirth());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"placeOfDeath\");\n\t\t getContext().transform(person.getPlaceOfDeath());\n\t\t getContext().writeComma();\n \t getContext().writeName(\"href\");\n \t getContext().transform(url + \"/\" + person.getId());\n\t\t\t\n \t // Close the affectedParty object\n \t getContext().writeCloseObject();\n }\n\t\t// Close the Array of affectedParties\n getContext().writeCloseArray();\n\t}", "@Override\n\tpublic List<Visit> load(int first, int pageSize, String sortField, SortOrder sortOrder, \n\t\t\tMap<String, Object> filters) {\n\n\t\t\n\t\treturn result;\n\t}", "public java.util.List<entities.Torrent.NodeSearchResult> getResultsList() {\n if (resultsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(results_);\n } else {\n return resultsBuilder_.getMessageList();\n }\n }", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "private static void traverse(ItemInfo rootItem, List<ItemInfo> results, int depth, String extraAttributes) throws Exception {\n Objects.requireNonNull(extraAttributes);\n\n final Collection<ItemInfo> children = new ArrayList<>();\n\n// final URL itemURL\n// = UriBuilder\n// .fromUri(rootItem.href.replace(\" \", \"%20\"))\n// .queryParam(\"attributes\", extraAttributes)\n// .build()\n// .toURL();\n\n final HttpURLConnection getItemConnection = (HttpURLConnection) rootItem.href.openConnection();\n getItemConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n getItemConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n getItemConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemStatus = getItemConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemStatus) {\n final String rawItemPageResults = PlatformTools.getContent(getItemConnection);\n final JSONObject itemResult = JSONObject.fromObject(rawItemPageResults);\n results.add(new ItemInfo(itemResult, depth));\n\n final JSONObject embedded = (JSONObject) itemResult.get(\"_embedded\");\n JSONObject collection = null;\n if (null != embedded) {\n collection = (JSONObject) embedded.get(\"loc:collection\");\n }\n // The item to traverse is a folder:\n if (null != collection) {\n // Get the items of the folder pagewise:\n JSONObject embeddedItems = (JSONObject) collection.get(\"_embedded\");\n if (null != embeddedItems) {\n do {\n final Object itemsObject = embeddedItems.get(\"loc:item\");\n if (null != itemsObject) {\n if (itemsObject instanceof JSONArray) {\n final JSONArray items = (JSONArray) itemsObject;\n\n final Collection<ItemInfo> itemPage = new ArrayList<>(items.size());\n for (final Object item : items) {\n final JSONObject folderItem = (JSONObject) item;\n itemPage.add(new ItemInfo(folderItem, depth + 1));\n }\n children.addAll(itemPage);\n } else {\n children.add(new ItemInfo((JSONObject) itemsObject, depth + 1));\n }\n }\n\n final JSONObject linkToNextPage = (JSONObject) collection.getJSONObject(\"_links\").get(\"next\");\n if (null != linkToNextPage) {\n final HttpURLConnection itemNextPageConnection = (HttpURLConnection) new URL(linkToNextPage.getString(\"href\").replace(\" \", \"%20\")).openConnection();\n itemNextPageConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n itemNextPageConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n itemNextPageConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemNextPageStatus = itemNextPageConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemNextPageStatus) {\n final String rawNextItemPageResults = PlatformTools.getContent(itemNextPageConnection);\n collection = JSONObject.fromObject(rawNextItemPageResults);\n embeddedItems = (JSONObject) collection.get(\"_embedded\");\n } else {\n collection = null;\n }\n } else {\n collection = null;\n }\n } while (null != collection && null != embeddedItems);\n }\n }\n\n for (final ItemInfo item : children) {\n if (item.hasChildren) {\n traverse(item, results, depth + 1, extraAttributes);\n }\n }\n\n for (final ItemInfo item : children) {\n if (!item.hasChildren) {\n results.add(item);\n }\n }\n } else {\n LOG.log(Level.INFO, \"Get item failed for item <{0}>. -> {1}\", new Object[] {rootItem.href, PlatformTools.getContent(getItemConnection)});\n }\n }", "List<WorkList<Content>> getMyContentList();", "private static void searchchildren(String keyword, Individual root, ListView<Individual> list) {\n\t\tif(root.getName().toLowerCase().contains(keyword.toLowerCase())){\n\t\t\t//System.out.println(root.getInfo());\n\t\t\tlist.getItems().add(root);\n\t\t\thits++;\n\t\t}\n\t\tif(root.getChildren()!=null){\n\t\t\tList<Individual> children = root.getChildren();\n\t\t\tfor(Individual e: children){\n\t\t\t\tsearchchildren(keyword, e, list);\n\t\t\t}\n\t\t}\n\t}", "private void filterResults(String medium) {\r\n\t\tnew HomePageAdverteerder(driver).openExchangePage()\r\n\t\t\t.selectFilterOptions(Filter.MEDIUM, new String[] {medium})\r\n\t\t\t.selectFilterOptions(Filter.FORMAAT_CODE, new String[] {FULL_PAGE})\r\n\t\t\t.applyFilters();\r\n\t}", "public JodeList search(Predicate<Jode> filter) {\n List<Node> ret = new ArrayList<>();\n if (filter.test(this)) {\n ret.add(this.extend());\n }\n for (Jode j : this.children()) {\n JodeList subResult = j.search(filter);\n for (Jode subJ : subResult) {\n ret.add(subJ.extend());\n }\n }\n return new JodeList(ret);\n }", "void setMaxResults(int limit);", "public List<IContentNode> getChilds(int start, int limit);", "@Override\n\tpublic Page findNewsMediaGroupWorkByPage(Map<String, Object> filter,\n\t\t\tint pageNo, int pageSize, String type) {\n\t\tif (filter == null)\n\t\t\tfilter = new HashMap<String, Object>();\n\t\tList<HqlParameter> args = new ArrayList<HqlParameter>();\n\t\tString hql = \"select t from NewsMediaGroupWork t where t.removed = '0' \";\n\t\tString countHql = \"select count(*) from NewsMediaGroupWork t where t.removed = '0' \";\n\t\tString filterPart = \"\";\n\t\tint filterCounter = 0;\n\t\t\n\t\tif (!filter.isEmpty()) {\n\t\t\tfor (Iterator<String> i = filter.keySet().iterator(); i.hasNext();) {\n\t\t\t\tfilterPart += \" and \";\n\t\t\t\tString paramName = i.next();\n\t\t\t\t if(paramName.equals(\"technicalMeans\")||\n\t\t\t\t\t\t paramName.equals(\"directlyUnitName\")||\n\t\t\t\t\t\t paramName.equals(\"release\")||\n\t\t\t\t\t\t paramName.equals(\"coverPepole\")||\n\t\t\t\t\t\t paramName.equals(\"honor\")||\n\t\t\t\t\t\t paramName.equals(\"linkName\")||\n\t\t\t\t\t\t paramName.equals(\"mobilPhone\")){\n\t\t\t\t\tfilterPart += \"t.\" + paramName + \" like :\" + paramName;\n\t\t\t\t\targs.add(new HqlParameter(paramName, \"%\"+filter.get(paramName)+\"%\"));\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfilterCounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfilterPart += \" ORDER BY t.operateTime DESC\";\n\t\treturn findByHQLWithPage(hql + filterPart, args, pageNo, pageSize,\n\t\t\t\tcountHql + filterPart);\n\t}", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "protected List<Topic> doGetSubtypes(Topic type, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(type));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public List<DerivedPartOfPerspectivesFK> display(int firstRow, int rowCount, String sortField, boolean sortAscending, String searchTerm, String searchId, String searchDirection, String searchStartStage, String searchEndStage, String searchPerspective)\n throws Exception\n {\n \t\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n \n List<DerivedPartOfPerspectivesFK> dataList = new ArrayList<DerivedPartOfPerspectivesFK>();\n\n \tString sqlSortField = \"POP_PERSPECTIVE_FK\";\n \t\n if (sortField.equals(\"perspectiveFK\")) {\n \tsqlSortField = \"POP_PERSPECTIVE_FK\"; \n }\n if (sortField.equals(\"nodeEmapa\")) {\n \tsqlSortField = \"EMAPA_PUBLIC_ID\"; \n }\n if (sortField.equals(\"nodeEmap\")) {\n \tsqlSortField = \"EMAP_PUBLIC_ID\"; \n }\n if (sortField.equals(\"fullPath\")) {\n \tsqlSortField = \"FULL_PATH\"; \n }\n if (sortField.equals(\"fullPathOids\")) {\n \tsqlSortField = \"FULL_PATH_OIDS\"; \n }\n if (sortField.equals(\"fullPathJson\")) {\n \tsqlSortField = \"FULL_PATH_JSON\"; \n }\n if (sortField.equals(\"ancestor\")) {\n \tsqlSortField = \"POP_IS_ANCESTOR\"; \n }\n \n String searchTermWithWildCards = \"\";\n String searchEMAPAIdWithWildCards = \"\";\n String searchEMAPIdWithWildCards = \"\";\n\n if (WhatIsThisString.isItNumeric(searchTerm)){\n \tsearchId = \"%\" + searchTerm + \"%\";\n \tsearchTermWithWildCards = \"\";\n \tsearchTerm = \"\";\n }\n \n if (searchDirection.equals(\"UP\")) {\n searchTermWithWildCards = \"%.\" + searchTerm;\n }\n\n if (searchDirection.equals(\"ALL\")) {\n searchTermWithWildCards = \"%\" + searchTerm + \"%\";\n \t//searchTermWithWildCards = \"%.\" + searchTerm + \".%\";\n }\n\n int start = -1;\n \n if (WhatIsThisString.isItNumeric(searchStartStage)){\n start = ObjectConverter.convert(searchStartStage, Integer.class);\n }\n searchStartStage = ObjectConverter.convert(start, String.class);\n\n searchEMAPAIdWithWildCards = \"EMAPA:\" + searchId;\n searchEMAPIdWithWildCards = \"EMAP:\" + searchId;\n\n String sortDirection = sortAscending ? \"ASC\" : \"DESC\";\n String sql = \"\";\n Object[] values = null;\n \n if (searchTerm.equals(\"\") && searchId.equals(\"\")){\n\n \t//no stage => abstract ontology\n \tif (searchStartStage.equals(\"-1\")) {\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE_NOSTAGE, sqlSortField, sortDirection);\n\n \t\tvalues = new Object[3];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = firstRow;\n \t\tvalues[2] = rowCount;\n \t}\n \telse {\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE, sqlSortField, sortDirection);\n \t\t\n \t\tvalues = new Object[4];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = searchStartStage;\n \t\tvalues[2] = firstRow;\n \t\tvalues[3] = rowCount;\n \t} \t\n\n \t\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, sql, false, values);\n\n resultSet = preparedStatement.executeQuery();\n \n while (resultSet.next()) {\n dataList.add(mapDerivedPartOfPerspectivesFK(resultSet));\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(),connection, preparedStatement, resultSet);\n }\n\n return dataList;\n\n }\n \n if (searchTerm.equals(\"\") && !searchId.equals(\"\")){\n \t\n \t//no stage => abstract ontology\n \tif (searchStartStage.equals(\"-1\")) {\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE_AND_ID_NOSTAGE, sqlSortField, sortDirection);\n \t\t\n \t\tvalues = new Object[4];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = searchEMAPAIdWithWildCards;\n \t\tvalues[2] = firstRow;\n \t\tvalues[3] = rowCount;\n \t}\n \telse {\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE_AND_ID, sqlSortField, sortDirection);\n \t\t\n \t\tvalues = new Object[6];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = searchEMAPAIdWithWildCards;\n \t\tvalues[2] = searchEMAPIdWithWildCards;\n \t\tvalues[3] = searchStartStage;\n \t\tvalues[4] = firstRow;\n \t\tvalues[5] = rowCount;\n \t}\t\n\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, sql, false, values);\n \n resultSet = preparedStatement.executeQuery();\n \n while (resultSet.next()) {\n dataList.add(mapDerivedPartOfPerspectivesFK(resultSet));\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n\n return dataList;\n\n }\n\n if (!searchTerm.equals(\"\") && searchId.equals(\"\")){\n\n \t//no stage => abstract ontology\n \tif (searchStartStage.equals(\"-1\")) {\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE_AND_PATH_NOSTAGE, sqlSortField, sortDirection);\n\n \t\tvalues = new Object[4];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = searchTermWithWildCards;\n \t\tvalues[2] = firstRow;\n \t\tvalues[3] = rowCount;\n \t}\n \telse {\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE_AND_PATH, sqlSortField, sortDirection);\n\n \t\tvalues = new Object[5];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = searchTermWithWildCards;\n \t\tvalues[2] = searchStartStage;\n \t\tvalues[3] = firstRow;\n \t\tvalues[4] = rowCount;\n \t} \t\n\n\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, sql, false, values);\n\n resultSet = preparedStatement.executeQuery();\n \n while (resultSet.next()) {\n dataList.add(mapDerivedPartOfPerspectivesFK(resultSet));\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n\n return dataList;\n\n }\n \n if (!searchTerm.equals(\"\") && !searchId.equals(\"\")){\n \t\n \t//no stage => abstract ontology\n \tif (searchStartStage.equals(\"0\")) {\n\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE_AND_PATH_AND_ID_NOSTAGE, sqlSortField, sortDirection);\n \t\t\n \t\tvalues = new Object[5];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = searchTermWithWildCards;\n \t\tvalues[2] = searchEMAPAIdWithWildCards;\n \t\tvalues[3] = firstRow;\n \t\tvalues[4] = rowCount;\n\n \t}\n \telse {\n \t\tsql = String.format(SQL_DISPLAY_BY_ORDER_AND_LIMIT_BY_PERSPECTIVE_AND_PATH_AND_ID, sqlSortField, sortDirection);\n \t\t\n \t\tvalues = new Object[7];\n \t\tvalues[0] = searchPerspective;\n \t\tvalues[1] = searchTermWithWildCards;\n \t\tvalues[2] = searchEMAPAIdWithWildCards;\n \t\tvalues[3] = searchEMAPIdWithWildCards;\n \t\tvalues[4] = searchStartStage;\n \t\tvalues[5] = firstRow;\n \t\tvalues[6] = rowCount;\n \t} \n\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, sql, false, values);\n \n resultSet = preparedStatement.executeQuery();\n \n while (resultSet.next()) {\n dataList.add(mapDerivedPartOfPerspectivesFK(resultSet));\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n\n }\n\n return dataList;\n\n }", "protected void doQuery(DavResource resource,\n boolean recurse)\n throws DavException {\n if (((ExtendedDavResource)resource).isCalendarCollection()) {\n try {\n DavCalendarCollection collection = (DavCalendarCollection) resource;\n addResults(collection.findMembers(queryFilter));\n } catch (Exception e) {\n log.error(\"cannot run report query\", e);\n throw new DavException(DavServletResponse.SC_INTERNAL_SERVER_ERROR, \"cannot run report query: \" + e.getMessage());\n }\n }\n \n if (! recurse)\n return;\n \n for (DavResourceIterator i = resource.getMembers(); i.hasNext();) {\n ExtendedDavResource child = (ExtendedDavResource) i.nextResource();\n if (child.isCollection()) {\n doQuery(child, true);\n }\n }\n }", "public ResultMap<BaseNode> listChildren();", "@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);", "private final List<Object> searchForResults(@Nullable String query)\n {\n ArrayList<Object> results = new ArrayList<>();\n try {\n results.addAll(crDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the cr dao for results.\", e);\n }\n\n try {\n results.addAll(customMonsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the custom monster dao for results.\", e);\n }\n\n try {\n results.addAll(monsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the standard monster dao for results.\", e);\n }\n\n return results;\n }", "public IPage<PropertyIndex> list(int connId, HugeType type, String content,\n int pageNo, int pageSize) {\n HugeClient client = this.client(connId);\n List<IndexLabel> indexLabels = client.schema().getIndexLabels();\n\n Map<String, List<PropertyIndex>> matchedResults = new HashMap<>();\n Map<String, List<PropertyIndex>> unMatchResults = new HashMap<>();\n for (IndexLabel indexLabel : indexLabels) {\n if (!indexLabel.baseType().equals(type)) {\n continue;\n }\n String baseValue = indexLabel.baseValue();\n List<PropertyIndex> groupedIndexes;\n // Collect indexlabels that contains content\n boolean match = baseValue.contains(content);\n if (match) {\n groupedIndexes = matchedResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n } else {\n groupedIndexes = unMatchResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n }\n match = match || indexLabel.name().contains(content) ||\n indexLabel.indexFields().stream()\n .anyMatch(f -> f.contains(content));\n if (match) {\n groupedIndexes.add(convert(indexLabel));\n }\n }\n\n // Sort matched results by relevance\n if (!StringUtils.isEmpty(content)) {\n for (Map.Entry<String, List<PropertyIndex>> entry :\n matchedResults.entrySet()) {\n List<PropertyIndex> groupedIndexes = entry.getValue();\n groupedIndexes.sort(new Comparator<PropertyIndex>() {\n final int highScore = 2;\n final int lowScore = 1;\n @Override\n public int compare(PropertyIndex o1, PropertyIndex o2) {\n int o1Score = 0;\n if (o1.getName().contains(content)) {\n o1Score += highScore;\n }\n if (o1.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o1Score += lowScore;\n }\n\n int o2Score = 0;\n if (o2.getName().contains(content)) {\n o2Score += highScore;\n }\n if (o2.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o2Score += lowScore;\n }\n return o2Score - o1Score;\n }\n });\n }\n }\n List<PropertyIndex> all = new ArrayList<>();\n matchedResults.values().forEach(all::addAll);\n unMatchResults.values().forEach(all::addAll);\n return PageUtil.page(all, pageNo, pageSize);\n }", "protected List<Topic> doGetSubtypes(Topic type, int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(type));\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "entities.Torrent.NodeSearchResultOrBuilder getResultsOrBuilder(\n int index);", "private List<DataSource> getProcessedResults (List<DataSource> listOfDataSource, Page pageDetail) {\n List<DataSource> dataSourceList = listOfDataSource;\n List<PageSearch> searchList = pageDetail.getSearchList();\n if (ExecueCoreUtil.isCollectionNotEmpty(searchList)) {\n // TODO: -JM- Currently there will be only one search object, change later if there are multiple searches\n PageSearch search = searchList.get(0);\n // check for the search info\n if (PageSearchType.STARTS_WITH == search.getType()) {\n dataSourceList = new ArrayList<DataSource>();\n for (DataSource dataSource : dataSourceList) {\n // TODO: -JM- use the field from the search object\n String cDispName = dataSource.getName();\n if (cDispName.toLowerCase().startsWith(search.getString().toLowerCase())) {\n dataSourceList.add(dataSource);\n }\n }\n } else if (PageSearchType.CONTAINS == search.getType()) {\n dataSourceList = new ArrayList<DataSource>();\n for (DataSource dataSource : dataSourceList) {\n String cDispName = dataSource.getName();\n if (cDispName.toLowerCase().startsWith(search.getString().toLowerCase())) {\n dataSourceList.add(dataSource);\n }\n }\n }\n }\n // modify the page object with the new record count which will modify the page count as well\n pageDetail.setRecordCount(Long.valueOf(dataSourceList.size()));\n List<DataSource> pageDataSources = new ArrayList<DataSource>();\n // manipulate the list to return the set of concepts belonging to the page requested\n int start = (pageDetail.getRequestedPage().intValue() - 1) * pageDetail.getPageSize().intValue();\n int end = start + pageDetail.getPageSize().intValue();\n if (end > pageDetail.getRecordCount().intValue()) {\n end = (pageDetail.getRecordCount().intValue());\n }\n for (int i = start; i < end; i++) {\n pageDataSources.add(dataSourceList.get(i));\n }\n return pageDataSources;\n }", "PaginatedSearchResponseModel findAllPostsForType(String type, Pageable page);", "GroupQueryBuilder page(int firstResult, int maxResults) throws UnsupportedQueryCriterium;", "@Override\n\tpublic String findPage(Set<String> filterField) {\n\t\treturn null;\n\t}", "java.lang.String getQueryItems(int index);", "SearchResult search(State root, List<State> expanded_list, State goal);", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType5(@Param(\"userId\") Long userId, @Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);", "protected List<Topic> doGetSubtypes(int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes());\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "protected List<Topic> doGetSubtypes(int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes());\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "protected List<Topic> doGetSubtypes(Collection<? extends Topic> types, boolean all, int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(types, all));\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "void loadResults(ArrayList<Comic> results, int totalItems);", "List<SearchResult> search(SearchQuery searchQuery);", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }", "Page<Accessprofile> listWithCriteraByPage(SearchCriteria searchCriteria, Pageable pageable);", "@Override\n\tpublic PageUtil<Log> search(PageUtil<Log> logPage,\n\t\t\tList<PropertyFilter> filters) {\n\t\treturn null;\n\t}", "protected List<Topic> doGetSubtypes(Collection<? extends Topic> types, boolean all, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(types, all));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public interface PaginatedResult<T> {\n\n\t/**\n\t * Get the contents as an array of component type\n\t */\n\tpublic T[] items();\n\n\t/**\n\t * Obtain params required to perform the given relative query\n\t */\n\tpublic abstract PaginatedResult<T> first() throws AblyException;\n\tpublic abstract PaginatedResult<T> current() throws AblyException;\n\tpublic abstract PaginatedResult<T> next() throws AblyException;\n\n\tpublic abstract boolean hasFirst();\n\tpublic abstract boolean hasCurrent();\n\tpublic abstract boolean hasNext();\n}", "@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}", "Results setRowsPerPage(FilterSpecifier.ListBy listBy, int rowsPerPage) throws SearchServiceException;", "@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType1(@Param(\"userId\") Long userId,@Param(\"searchTerm\") String searchTerm,Pageable pageable);", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "public PostingsList search( Query query, int queryType, int rankingType,\n int structureType ) {\n double idf_threshold = new Double(0);\n double index_elimination = new Double(0.008);\n // System.err.println(pageRank[docNumber.get(\"121\")]);\n\n if (query.size()>0){\n switch (queryType){\n case Index.INTERSECTION_QUERY:\n System.err.println(\"Intersection query\");\n return intersect(query);\n case Index.PHRASE_QUERY:\n System.err.println(\"Phrase query\");\n return phrase_query(query);\n case Index.RANKED_QUERY:\n System.err.println(\"Ranked query\");\n switch(rankingType){\n case Index.TF_IDF: return ranked_query(query, 1, idf_threshold);\n case Index.PAGERANK: return ranked_query(query, 0, idf_threshold);//ranked_query(query, 0, idf_threshold);//ranked_query2(query, 0);\n case Index.COMBINATION: return ranked_query(query, index_elimination, idf_threshold);\n }\n default:\n System.out.println(\"not valid query\");\n return null;\n }\n }\n else\n // Query was empty\n return null;\n }", "public SolrQueryResult query(Map<String, String> params) {\n SolrQuery query = new SolrQuery();\n\n /* enable facetting */\n query.setFacet(true);\n\n /* list of all filters; key: name to display, value: entity parameter */\n List<SolrQueryParameter> filter = new ArrayList<SolrQueryParameter>();\n\n /* list of partition filter */\n List<SolrQueryParameter> partitionFilter = new ArrayList<SolrQueryParameter>();\n\n /*\n * list of filter which have been set by the user (key = filtername, value =\n * list of selections)\n */\n Map<String, List<String>> activeFilterValues = new HashMap<String, List<String>>();\n\n /*\n * determine on which type is searched for (either 'Table' or 'Partition')\n */\n String typeFilterValue = params.get(TYPE);\n filter.add(new SolrQueryParameter(FILTER_TYPE, TYPE, FilterType.EXCLUSIVE, FacetSort.COUNT));\n if (typeFilterValue != null && typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n typeFilterValue = TYPE_PARTITION;\n for (String parameter : metascopeParameterService.findDistinctParameters()) {\n partitionFilter.add(new SolrQueryParameter(\"Parameter: \" + parameter, parameter + \"_s\", FilterType.AND,\n FacetSort.INDEX));\n }\n for (SolrQueryParameter pFilter : partitionFilter) {\n query.addFacetField(pFilter.getName());\n query.add(\"f.\" + pFilter.getName() + \".facet.sort\", \"index\");\n String filterValue = params.get(pFilter.getName());\n if (filterValue != null && !filterValue.isEmpty()) {\n query.addFilterQuery(pFilter.getName() + \":\" + \"(\" + filterValue.replace(\",\", \" AND \") + \")\");\n }\n\n }\n } else {\n typeFilterValue = TYPE_TABLE;\n }\n query.addFilterQuery(\"{!tag=\" + TYPE + \"}\" + TYPE + \":\" + typeFilterValue);\n query.addFacetField(\"{!ex=\" + TYPE + \"}\" + TYPE);\n\n /* set solr search query parameter 'q' */\n String searchQueryValue = params.get(URLUtil.SEARCH_QUERY_PARAM);\n if (searchQueryValue == null || searchQueryValue.isEmpty()) {\n searchQueryValue = \"*\";\n query.setQuery(searchQueryValue);\n } else {\n String[] queryTerms = searchQueryValue.trim().split(\" \");\n String queryTerm = \"\";\n for (String term : queryTerms) {\n if (term.isEmpty()) {\n continue;\n }\n\n if (!queryTerm.isEmpty()) {\n queryTerm += \" AND \";\n }\n queryTerm += \"*\" + term + \"*\";\n }\n query.setQuery(queryTerm);\n query.setHighlight(true);\n query.setHighlightSimplePre(\"<b>\");\n query.setHighlightSimplePost(\"</b>\");\n query.setHighlightSnippets(100);\n query.set(\"hl.fl\", \"*\");\n }\n\n /* set the remaining filters */\n for (SolrQueryParameter queryFilter : facetFields) {\n filter.add(queryFilter);\n String value = params.get(queryFilter.getName());\n\n String filterQuery = \"\";\n String facetField = \"\";\n if (queryFilter.isExcludeFromFacet()) {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = \"{!tag=\" + queryFilter.getName() + \"}\" + queryFilter.getName() + \":\" + value;\n facetField = \"{!ex=\" + queryFilter.getName() + \"}\" + queryFilter.getName();\n } else {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = queryFilter.getName() + \":\" + value;\n facetField = queryFilter.getName();\n }\n\n if (value != null && !value.isEmpty()) {\n query.addFilterQuery(filterQuery);\n }\n query.addFacetField(facetField);\n\n if (queryFilter.getFacetSort().equals(FacetSort.INDEX)) {\n query.add(\"f.\" + queryFilter.getName() + \".facet.sort\", \"index\");\n }\n query.add(\"f.\" + queryFilter.getName() + \".facet.limit\", \"-1\");\n }\n\n /* set facet queries */\n Map<String, String> facetQueryMap = new HashMap<String, String>();\n long now = System.currentTimeMillis() / 1000;\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long from = range.getFrom() == Long.MAX_VALUE ? 0 : now - (range.getFrom() * 3600);\n String facetQueryString = solrFacetQuery.getName() + \":[\" + from + \" TO \" + now + \"]\";\n query.addFacetQuery(\"{!ex=\" + solrFacetQuery.getName() + \"}\" + facetQueryString);\n facetQueryMap.put(solrFacetQuery.getName() + range.getName(), facetQueryString);\n }\n String value = params.get(solrFacetQuery.getName());\n if (value != null) {\n String fq = \"{!tag=\" + solrFacetQuery.getName() + \"}\" + facetQueryMap.get(solrFacetQuery.getName() + value);\n query.addFilterQuery(fq);\n }\n }\n\n /* always sort the entities (for a deterministic view) */\n query.setSort(ID, ORDER.asc);\n\n /* set pagination information */\n int page = getPageParameter(params);\n int elements = getElementsParameter(params);\n query.setRows(elements);\n query.setStart((page - 1) * elements);\n\n /* execute the query */\n QueryResponse queryResponse = null;\n try {\n queryResponse = solrClient.query(query);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n SolrDocumentList list = queryResponse.getResults();\n\n /* get table / view entities from local repository */\n List<SolrQueryResultEntity> resultEntities = new LinkedList<SolrQueryResultEntity>();\n String resultType = \"\";\n for (SolrDocument solrDocument : list) {\n String id = (String) solrDocument.get(ID);\n\n if (typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id)));\n }\n resultType = TYPE_PARTITION;\n } else if (typeFilterValue.equalsIgnoreCase(TYPE_TABLE)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id)));\n }\n }\n }\n if (resultType.isEmpty()) {\n resultType = TYPE_TABLE;\n }\n\n filter.addAll(partitionFilter);\n\n /* get the facet values and counts */\n Map<String, List<SolrFacet>> facetValues = new HashMap<String, List<SolrFacet>>();\n for (SolrQueryParameter f : filter) {\n if (!f.getName().equals(URLUtil.SEARCH_QUERY_PARAM)) {\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n FacetField facet = queryResponse.getFacetField(f.getName());\n for (Count count : facet.getValues()) {\n values.add(new SolrFacet(count.getName(), count.getCount()));\n }\n facetValues.put(f.getName(), values);\n }\n }\n\n /* remove the type filter */\n filter.remove(0);\n\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n filter\n .add(new SolrQueryParameter(solrFacetQuery.getDisplayName(), solrFacetQuery.getName(), FilterType.EXCLUSIVE));\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long facetQueryCount = getFacetQueryCount(queryResponse, \"{!ex=\" + solrFacetQuery.getName() + \"}\"\n + facetQueryMap.get(solrFacetQuery.getName() + range.getName()));\n values.add(new SolrFacet(range.getName(), facetQueryCount));\n }\n facetValues.put(solrFacetQuery.getName(), values);\n }\n\n /* get the active filter values which have been selected by the user */\n addToActiveFilterValues(activeFilterValues, params, filter);\n\n /* is a search query */\n boolean isSearchQuery = (searchQueryValue != null && !searchQueryValue.isEmpty() && !searchQueryValue.equals(\"*\"))\n || hasActiveFilters(activeFilterValues);\n\n\n /* build and return the result */\n SolrQueryResult result = new SolrQueryResult().withResultEntities(resultEntities).withResultType(resultType)\n .withFilters(filter).withFacetValues(facetValues).withActiveFilterValues(activeFilterValues)\n .withSearchQuery(searchQueryValue).withPage(page).withElements(elements)\n .withTotalPages((int) Math.ceil(((double) list.getNumFound()) / elements)).withTotalResults(list.getNumFound())\n .withIsSearchRequest(isSearchQuery);\n return result;\n }", "@Override\n public void filter(String type) {\n\n List<Doctor> newDocs = new ArrayList<>();\n \n for (Doctor doctor : doctors) {\n //If doctor's specialization matches user searched specialization add to new doctor list\n if (doctor.getSpecialization()!=null && doctor.getSpecialization().equals(type)) {\n newDocs.add(doctor);\n }\n }\n \n //Set new doctor list as the doctor list\n doctors = newDocs;\n }", "@Override\n\tpublic ArrayList<Parent> queryAllOrderPage(int begin, int size) {\n\t\treturn parentDao.queryAllOrderPage(begin, size);\n\t}", "@Override\n public Filter getFilter() {\n return main_list_filter;\n }", "public List<JsonNode> findAllCriteria(JsonNode element) {\n List<JsonNode> criteria = new ArrayList<>();\n Stack<JsonNode> fringe = new Stack<>();\n fringe.push(element);\n\n while (!fringe.isEmpty()) {\n JsonNode currentElement = fringe.pop();\n if (currentElement.get(\"content\").get(\"type\").asText().equals(Type.SECTION.toString())) {\n for (JsonNode e: currentElement.get(\"children\")) {\n fringe.push(e);\n }\n } else {\n criteria.add(currentElement);\n }\n }\n\n return criteria;\n }", "public List<Entity> getEntitySearchResults(String type, String name, int limit) {\n\t\t//Type parameter will be one of -> {'Artist', 'Band', 'Label', 'Album', 'Track'}\n\t\tString URL = \"http://localhost:8081\" + type;\n\t\tSystem.out.println(\"Request made to: \" + URL);\n\t\tUriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(URL)\n\t\t\t\t.queryParam(\"name\", name)\n\t\t\t\t.queryParam(\"limit\", limit);\n\t\tUriComponents components = builder.build(false);\n\t\tURI uri = components.toUri();\n\t\tList<Entity> entities = restTemplate.getForObject(uri, List.class);\n\t\treturn entities;\n\t}", "public void searchMore() {\n if (session != null) session.searchMore();\n }", "public PageInfo search(String criteria, String specific, String text, int from, int size, String sort) throws Exception{\r\n\t\treturn getBeanList(getClassList(criteria),specific,text,from,size,sort,\"\", false);\r\n\t}", "List<ObjectInformation> filter(\n\t\t\tfinal GetObjectInformationParameters params)\n\t\t\tthrows WorkspaceCommunicationException {\n\t\tfinal int querysize = params.getLimit() < 100 ? 100 :\n\t\t\t\tparams.getLimit();\n\t\tfinal PermissionSet pset = params.getPermissionSet();\n\t\tif (pset.isEmpty()) {\n\t\t\treturn new LinkedList<ObjectInformation>();\n\t\t}\n\t\tfinal DBObject verq = buildQuery(params);\n\t\tfinal DBObject projection = buildProjection(params);\n\t\tfinal DBObject sort = buildSortSpec(params);\n\t\tfinal DBCursor cur = buildCursor(verq, projection, sort);\n\t\t\n\t\t//querying on versions directly so no need to worry about race \n\t\t//condition where the workspace object was saved but no versions\n\t\t//were saved yet\n\t\t\n\t\tfinal List<ObjectInformation> ret = new LinkedList<>();\n\t\twhile (cur.hasNext() && ret.size() < params.getLimit()) {\n\t\t\tfinal List<Map<String, Object>> verobjs = new ArrayList<>();\n\t\t\twhile (cur.hasNext() && verobjs.size() < querysize) {\n\t\t\t\ttry {\n\t\t\t\t\tverobjs.add(QueryMethods.dbObjectToMap(cur.next()));\n\t\t\t\t} catch (MongoException me) {\n\t\t\t\t\tthrow new WorkspaceCommunicationException(\n\t\t\t\t\t\t\t\"There was a problem communicating with the database\", me);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinal Map<Map<String, Object>, ObjectInformation> objs =\n\t\t\t\t\tgenerateObjectInfo(pset, verobjs, params.isShowHidden(),\n\t\t\t\t\t\t\tparams.isShowDeleted(), params.isShowOnlyDeleted(),\n\t\t\t\t\t\t\tparams.isShowAllVersions(), params.asAdmin()\n\t\t\t\t\t\t\t);\n\t\t\t//maintain the ordering \n\t\t\tfinal Iterator<Map<String, Object>> veriter = verobjs.iterator();\n\t\t\twhile (veriter.hasNext() && ret.size() < params.getLimit()) {\n\t\t\t\tfinal Map<String, Object> v = veriter.next();\n\t\t\t\tif (objs.containsKey(v)) {\n\t\t\t\t\tret.add(objs.get(v));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private void filterAndSort()\n {\n filteredAndSortedElements = elements;\n\n // filter and sort, use Job if too much elements\n if ( configuration.getFilter().isFiltered() || configuration.getSorter().isSorted() )\n {\n if ( elements.length > BrowserUIPlugin.getDefault().getPreferenceStore()\n .getInt( BrowserUIConstants.PREFERENCE_SEARCHRESULTEDITOR_SORT_FILTER_LIMIT )\n && mainWidget.getViewer() != null && !mainWidget.getViewer().getTable().isDisposed() )\n {\n // deactivate fitering and sorting for large data set\n // FilterAndSortRunnable runnable = new FilterAndSortRunnable( configuration, mainWidget, elements );\n // RunnableContextRunner.execute( runnable, null, true );\n // filteredAndSortedElements = runnable.getFilteredAndSortedElements();\n }\n else if ( elements.length > 0 && mainWidget.getViewer() != null\n && !mainWidget.getViewer().getTable().isDisposed() )\n {\n filteredAndSortedElements = configuration.getFilter().filter( mainWidget.getViewer(), \"\", elements ); //$NON-NLS-1$\n configuration.getSorter().sort( mainWidget.getViewer(), filteredAndSortedElements );\n }\n }\n\n // update virtual table\n mainWidget.getViewer().setItemCount( filteredAndSortedElements.length );\n\n // update state\n String url = \"\"; //$NON-NLS-1$\n boolean enabled = true;\n \n if ( input instanceof ISearch )\n {\n ISearch search = ( ISearch ) input;\n\n if ( filteredAndSortedElements.length < elements.length )\n {\n url += filteredAndSortedElements.length + Messages.getString( \"SearchResultEditorContentProvider.Of\" ); //$NON-NLS-1$\n }\n\n if ( search.getSearchResults() == null )\n {\n url += Messages.getString( \"SearchResultEditorContentProvider.SearchNotPerformed\" ); //$NON-NLS-1$\n enabled = false;\n }\n else if ( search.getSearchResults().length == 1 )\n {\n url += search.getSearchResults().length\n + Messages.getString( \"SearchResultEditorContentProvider.Result\" ); //$NON-NLS-1$\n }\n else\n {\n url += search.getSearchResults().length\n + Messages.getString( \"SearchResultEditorContentProvider.Results\" ); //$NON-NLS-1$\n }\n\n // url += search.getURL();\n url += Messages.getString( \"SearchResultEditorContentProvider.SearchBase\" ) + search.getSearchBase().getName() + \" - \"; //$NON-NLS-1$ //$NON-NLS-2$\n url += Messages.getString( \"SearchResultEditorContentProvider.Filter\" ) + search.getFilter(); //$NON-NLS-1$\n\n boolean showDn = BrowserUIPlugin.getDefault().getPreferenceStore().getBoolean(\n BrowserUIConstants.PREFERENCE_SEARCHRESULTEDITOR_SHOW_DN )\n || search.getReturningAttributes().length == 0;\n configuration.getFilter().inputChanged( search, showDn );\n configuration.getSorter().inputChanged( search, showDn );\n }\n else\n {\n url = Messages.getString( \"SearchResultEditorContentProvider.NoSearchSelected\" ); //$NON-NLS-1$\n enabled = false;\n }\n\n if ( mainWidget.getInfoText() != null && !mainWidget.getInfoText().isDisposed() )\n {\n mainWidget.getInfoText().setText( url );\n }\n if ( mainWidget.getQuickFilterWidget() != null )\n {\n mainWidget.getQuickFilterWidget().setEnabled( enabled );\n }\n if ( mainWidget.getViewer() != null && !mainWidget.getViewer().getTable().isDisposed() )\n {\n mainWidget.getViewer().getTable().setEnabled( enabled );\n }\n\n }", "protected List<Topic> doGetDirectSubtypes(Topic type, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getDirectSubtypes(type));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public List<Goods> selectByDate(int page,int maxResults);", "Results sortResults(FilterSpecifier.ListBy listBy, SortSpecifier sortspec) throws SearchServiceException;", "public ListSearchResults()\n {\n logEnter(LOG_TAG, \"<init>\");\n\n entryMap = new HashMap<String,SearchResultEntry>(0);\n entries = new LinkedList<SearchResultEntry>();\n instance = null;\n }", "public List<MCRContent> getAll() throws IOException, JDOMException, SAXException {\n\t\tList<MCRContent> resultsSet = new ArrayList<>();\n\t\t// build basic part of API URL\n\t\tString baseQueryURL = API_URL + \"/affiliation/AFFILIATION_ID:\" + AFFIL_ID + \"?apikey=\" + API_KEY\n\t\t\t\t+ \"&view=DOCUMENTS\";\n\n\t\t// divide API request in blocks a XXX documents (in final version 200\n\t\t// documents per block, number of blocks determined by total number of\n\t\t// documents)\n\t\t// int numberOfPublications = getNumberOfPublications(baseQueryURL);\n\t\t// at the moment only testing, two blocks a 10 documents\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tint start = 10 * i;\n\t\t\tint count = 10;\n\n\t\t\t// build API URL\n\t\t\tString queryURL = baseQueryURL + \"&start=\" + start + \"&count=\" + count + \"&view=DOCUMENTS\";\n\n\t\t\t// add block to list of blocks\n\t\t\tresultsSet.add(getResponse(queryURL));\n\t\t}\n\t\t// return API-response\n\t\treturn resultsSet;\n\t}" ]
[ "0.58739674", "0.5844292", "0.57218343", "0.56493264", "0.5611232", "0.55338335", "0.55242974", "0.548885", "0.5472217", "0.5457452", "0.53972065", "0.5389486", "0.5193801", "0.5170238", "0.5167961", "0.51473707", "0.5107472", "0.50975806", "0.50959784", "0.5085141", "0.5084524", "0.50842875", "0.5070919", "0.5070082", "0.5069402", "0.5056704", "0.50559616", "0.5052916", "0.5052822", "0.50365096", "0.5033325", "0.5029806", "0.5018278", "0.50138843", "0.5012154", "0.50022554", "0.49985522", "0.4992857", "0.49720818", "0.496949", "0.49571988", "0.49534968", "0.49503565", "0.49493864", "0.49476993", "0.49409318", "0.49392962", "0.4935067", "0.49310207", "0.49299106", "0.49296522", "0.49142298", "0.49107924", "0.49035978", "0.49007884", "0.48945057", "0.48924267", "0.48918232", "0.4890892", "0.4889253", "0.4884566", "0.4881188", "0.4880461", "0.48775503", "0.48550597", "0.4854049", "0.48471612", "0.48452407", "0.4840379", "0.4839254", "0.48231152", "0.48203632", "0.4819098", "0.4817505", "0.4815509", "0.48094392", "0.48057696", "0.4802843", "0.48003754", "0.47987065", "0.47975853", "0.47937125", "0.47845766", "0.4781918", "0.47803137", "0.47717172", "0.4769883", "0.47653717", "0.47651643", "0.4762707", "0.47583783", "0.47531217", "0.47470522", "0.47449526", "0.47448817", "0.4744654", "0.47433403", "0.47377428", "0.47354785", "0.4729284" ]
0.6156387
0
List root contents, optionally filtered by type, first result and max results
public List<Content> listRootContents(List<ContentType> types, Integer firstResult, Integer maxResults) { return contentDAO.listByNullParentAndTypesAndArchived(types, Boolean.FALSE, firstResult, maxResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Content> listContents(Content parent, List<ContentType> types, Integer firstResult, Integer maxResults) {\n return contentDAO.listByParentAndTypesAndArchived(parent, types, Boolean.FALSE, firstResult, maxResults);\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();", "entities.Torrent.NodeSearchResult getResults(int index);", "public ResultMap<BaseNode> listChildren(Pagination pagination);", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type, int firstResult, int maxResult);", "List<T> getResults();", "public abstract List<ClinicalDocument> findClinicalDocumentEntries(int firstResult, int maxResults);", "protected List<Topic> doGetSubtypes(Topic type, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(type));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public Collection<T> getResults();", "protected List<Topic> doGetSubtypes(Topic type, int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(type));\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public List<Entry> show10MostRecentEntries() {\n\t\tList<Entry> subList;\n\t\tif (entries.isEmpty()){\n\t\t\tSystem.out.println(\"The blog doesn't have any entries yet\");\n\t\t\treturn entries.getList();\n\t\t}\n\t\telse {\n\t\t\tif (entries.getSize()>= 10){\n\t\t\t\tsubList= entries.getSubList(0,10);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsubList= entries.getSubList(0,entries.getSize());\n\t\t\t}\n\t\t\tIterator<Entry> it = subList.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEntry entry = it.next();\n\t\t\t\tSystem.out.println(\"Entry Title: \" + entry.getTitle());\n\t\t\t\tSystem.out.println(\"Entry Content: \" + entry.getContent());\n\t\t\t}\n\t\t\t\n\t\t\treturn subList;\n\t\t}\n\t}", "public List<PlanNode> findAllFirstNodesAtOrBelow( Type typeToFind ) {\n List<PlanNode> results = new LinkedList<PlanNode>();\n LinkedList<PlanNode> queue = new LinkedList<PlanNode>();\n queue.add(this);\n while (!queue.isEmpty()) {\n PlanNode aNode = queue.poll();\n if (aNode.getType() == Type.PROJECT) {\n results.add(aNode);\n } else {\n queue.addAll(0, aNode.getChildren());\n }\n }\n return results;\n }", "public ResultMap<BaseNode> listChildren();", "public List<IContentNode> getChilds(int start, int limit);", "protected List<Topic> doGetSubtypes(int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes());\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public List getList(int start, int pernum, SearchParam param);", "Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;", "protected List<Topic> doGetSubtypes(int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes());\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public List<DirectoryCountryFormat> select(int maxResult);", "public List<Entity> getEntitySearchResults(String type, String name, int limit) {\n\t\t//Type parameter will be one of -> {'Artist', 'Band', 'Label', 'Album', 'Track'}\n\t\tString URL = \"http://localhost:8081\" + type;\n\t\tSystem.out.println(\"Request made to: \" + URL);\n\t\tUriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(URL)\n\t\t\t\t.queryParam(\"name\", name)\n\t\t\t\t.queryParam(\"limit\", limit);\n\t\tUriComponents components = builder.build(false);\n\t\tURI uri = components.toUri();\n\t\tList<Entity> entities = restTemplate.getForObject(uri, List.class);\n\t\treturn entities;\n\t}", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "protected List<Topic> doGetDirectSubtypes(Topic type, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getDirectSubtypes(type));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "entities.Torrent.NodeSearchResultOrBuilder getResultsOrBuilder(\n int index);", "public List<MCRContent> getAll() throws IOException, JDOMException, SAXException {\n\t\tList<MCRContent> resultsSet = new ArrayList<>();\n\t\t// build basic part of API URL\n\t\tString baseQueryURL = API_URL + \"/affiliation/AFFILIATION_ID:\" + AFFIL_ID + \"?apikey=\" + API_KEY\n\t\t\t\t+ \"&view=DOCUMENTS\";\n\n\t\t// divide API request in blocks a XXX documents (in final version 200\n\t\t// documents per block, number of blocks determined by total number of\n\t\t// documents)\n\t\t// int numberOfPublications = getNumberOfPublications(baseQueryURL);\n\t\t// at the moment only testing, two blocks a 10 documents\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tint start = 10 * i;\n\t\t\tint count = 10;\n\n\t\t\t// build API URL\n\t\t\tString queryURL = baseQueryURL + \"&start=\" + start + \"&count=\" + count + \"&view=DOCUMENTS\";\n\n\t\t\t// add block to list of blocks\n\t\t\tresultsSet.add(getResponse(queryURL));\n\t\t}\n\t\t// return API-response\n\t\treturn resultsSet;\n\t}", "@Override\n\tpublic List<Visit> load(int first, int pageSize, String sortField, SortOrder sortOrder, \n\t\t\tMap<String, Object> filters) {\n\n\t\t\n\t\treturn result;\n\t}", "public List<Type> getAll();", "@Override\n\tpublic List<Resource> queryForTree() throws Exception {\n\t\treturn sResourceJDao.tree(null);\n\t}", "public abstract PaginatedResult<T> first() throws AblyException;", "protected List<Topic> doGetSubtypes(Collection<? extends Topic> types, boolean all, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(types, all));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "@Override\n\tpublic List<T> getLimitedFilteredResult(Bson filter, int limit) {\n\t\tGson gson = new GsonBuilder().create();\n\t\tList<T> innerList = new ArrayList<>();\n\t\tcollection.find(filter).limit(limit).forEach((Block<Document>) document -> {\n\t\t\tinnerList.add(gson.fromJson(document.toJson(), entityClass));\n\t\t});\n\t\treturn innerList;\n\n\t}", "protected List<Topic> doGetDirectSubtypes(Topic type, int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getDirectSubtypes(type));\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "protected List<Topic> doGetSubtypes(Collection<? extends Topic> types, boolean all, int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSubtypes(types, all));\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "public abstract ArrayList<T> findAll(int limit, int offset);", "PaginatedSearchResponseModel findAllPostsForType(String type, Pageable page);", "public List<MainItemOrdered> findAll();", "@java.lang.Override\n public entities.Torrent.NodeSearchResult getResults(int index) {\n return results_.get(index);\n }", "private static void searchchildren(String keyword, Individual root, ListView<Individual> list) {\n\t\tif(root.getName().toLowerCase().contains(keyword.toLowerCase())){\n\t\t\t//System.out.println(root.getInfo());\n\t\t\tlist.getItems().add(root);\n\t\t\thits++;\n\t\t}\n\t\tif(root.getChildren()!=null){\n\t\t\tList<Individual> children = root.getChildren();\n\t\t\tfor(Individual e: children){\n\t\t\t\tsearchchildren(keyword, e, list);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Map<String, Object> getClazzes(int firstResult, int maxResults) {\n\t\treturn null;\n\t}", "public List<ExperimentCatResource> get(ResourceType type, int limit, int offset, Object orderByIdentifier,\n ResultOrderType resultOrderType) throws RegistryException {\n List<ExperimentCatResource> result = new ArrayList<ExperimentCatResource>();\n EntityManager em = null;\n try {\n em = ExpCatResourceUtils.getEntityManager();\n em.getTransaction().begin();\n QueryGenerator generator;\n Query q;\n switch (type) {\n case PROJECT:\n generator = new QueryGenerator(PROJECT);\n UserPK userPK = new UserPK();\n userPK.setGatewayId(getGatewayId());\n userPK.setUserName(user);\n Users users = em.find(Users.class, userPK);\n Gateway gatewayModel = em.find(Gateway.class, gatewayId);\n generator.setParameter(\"users\", users);\n if (gatewayModel != null) {\n generator.setParameter(\"gateway\", gatewayModel);\n }\n\n //ordering - only supported only by CREATION_TIME\n if (orderByIdentifier != null && resultOrderType != null\n && orderByIdentifier.equals(Constants.FieldConstants.ProjectConstants.CREATION_TIME)) {\n q = generator.selectQuery(em, ProjectConstants.CREATION_TIME, resultOrderType);\n } else {\n q = generator.selectQuery(em);\n }\n\n //pagination\n if (limit > 0 && offset >= 0) {\n q.setFirstResult(offset);\n q.setMaxResults(limit);\n }\n\n for (Object o : q.getResultList()) {\n Project project = (Project) o;\n org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource projectResource = (org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource) Utils.getResource(ResourceType.PROJECT, project);\n result.add(projectResource);\n }\n break;\n case EXPERIMENT:\n generator = new QueryGenerator(EXPERIMENT);\n generator.setParameter(ExperimentConstants.USER_NAME, getUser());\n\n //ordering - only supported only by CREATION_TIME\n if (orderByIdentifier != null && resultOrderType != null\n && orderByIdentifier.equals(Constants.FieldConstants.ProjectConstants.CREATION_TIME)) {\n q = generator.selectQuery(em, ExperimentConstants.CREATION_TIME, resultOrderType);\n } else {\n q = generator.selectQuery(em);\n }\n\n //pagination\n if (limit > 0 && offset >= 0) {\n q.setFirstResult(offset);\n q.setMaxResults(limit);\n }\n for (Object o : q.getResultList()) {\n Experiment experiment = (Experiment) o;\n ExperimentResource experimentResource = (ExperimentResource) Utils.getResource(ResourceType.EXPERIMENT, experiment);\n result.add(experimentResource);\n }\n\n break;\n default:\n logger.error(\"Unsupported resource type for worker resource.\", new IllegalArgumentException());\n break;\n }\n em.getTransaction().commit();\n em.close();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n throw new RegistryException(e);\n } finally {\n if (em != null && em.isOpen()) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n }\n }\n return result;\n }", "private List<String> createRootList(CachedUrl cu, Matcher mat) {\n String test_tar_name;\n String tar_begin = mat.group(1) + mat.group(2);\n List<String> rootList = new ArrayList<String>();\n // we know this one exists!\n rootList.add(tar_begin + \"A.tar\");\n for(char alphabet = 'B'; alphabet <= 'Z';alphabet++) {\n test_tar_name = tar_begin + String.valueOf(alphabet) + \".tar\";\n CachedUrl testCu = cu.getArchivalUnit().makeCachedUrl(test_tar_name);\n if ((testCu == null) || (!testCu.hasContent())){\n break;\n } else {\n rootList.add(test_tar_name);\n }\n }\n log.debug3(\"ROOT templates for inner iterator is: \" + rootList.toString());\n return rootList;\n }", "java.util.List<? extends entities.Torrent.NodeSearchResultOrBuilder>\n getResultsOrBuilderList();", "@GetMapping(\"/bestof\")\n public ResponseEntity<List<ArticleLister>> getTopTen(){\n return new ResponseEntity<>(articleService.getTopTen(), HttpStatus.OK);\n }", "@Override\n\tpublic GetContentResponse listContents() {\n\t\tLOGGER.debug(\"LIST ALL CONTENTS\");\n\t\t\n\t\tClientConfig clientConfig = new ClientConfig();\n\t\t \n\t HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(env.getProperty(\"liferay.user.id\"), env.getProperty(\"liferay.user.key\"));\n\t clientConfig.register( feature) ;\n\t \n\t clientConfig.register(JacksonFeature.class);\n\t\t\n\t\tClient client = ClientBuilder.newClient(clientConfig);\n\t\tWebTarget webTarget = client.target(env.getProperty(\"liferay.api.rootpath\")).path(\"article-id/0/content-type/tagtest\");\n\t\t \n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\t\n\t\tResponse response = invocationBuilder.get();\n\t\t \n\t\tGetContentResponse content = response.readEntity(GetContentResponse.class);\n\t\t\n\t\t\n\t\n\t\t \n\t\tLOGGER.info(\"status::\"+response.getStatus());\n\t\t\n\t\t\n\t\t\n\t\tcontent.setStatusCode(200);\n\t\tcontent.setStatusMessage(\"Content List\");\n\t\n\t\treturn content;\n\t}", "public Iterator<ODocument> getAllAsList(@Generic(\"T\") final Class<?> type) {\n return getAll(type);\n }", "protected abstract List<List<SearchResults>> processStream();", "@Override\n\tpublic List stulist(int page, int limit) {\n\t\treturn null;\n\t}", "List<Receta> getAll(String filter);", "public java.util.List<entities.Torrent.NodeSearchResult> getResultsList() {\n if (resultsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(results_);\n } else {\n return resultsBuilder_.getMessageList();\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <R> R getResults(Class<? extends R> type) {\n\t\tif (type.equals(String.class)) {\n\t\t\treturn (R) getJson(arr_chromosome);\n\t\t} else if (type.equals(JSONResult.class)) {\n\t\t\tJSONResult res = () -> {\n\t\t\t\treturn getJson(arr_chromosome);\n\t\t\t};\n\t\t\treturn (R) (res);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "ResponseEntity<List<Type>> findTaskTypes();", "List<PSTemplateSummary> findBaseTemplates(String type);", "public List<IndexEntry> find(String query, int first, int number) {\n try {\n if (first < 0) {\n number += first;\n first = 0;\n }\n if (directory.listAll().length == 0 || number <= 0) {\n return emptyList();\n }\n try (DirectoryReader reader = DirectoryReader.open(directory)) {\n IndexSearcher searcher = new IndexSearcher(reader);\n QueryParser parser = new QueryParser(BODY, analyzer);\n ScoreDoc[] hits = searcher.search(parser.parse(query), first + number).scoreDocs;\n List<IndexEntry> entries = new ArrayList<>(number);\n int last = min(first + number, hits.length);\n for (int i = first; i < last; i++) {\n Document document = searcher.doc(hits[i].doc);\n Hash hash = new Hash(document.getValues(CONTENT)[0]);\n Set<Hash> head = new HashSet<>();\n for (String value : document.getValues(REVISION)) {\n head.add(new Hash(value));\n }\n entries.add(new IndexEntry(hash, head));\n }\n return entries;\n }\n } catch (AlreadyClosedException e) {\n throw new RepositoryClosedException(e);\n\n } catch (ParseException e) {\n throw new BadRequestException(e);\n\n } catch (IOException e) {\n throw new IOFailureException(e);\n }\n }", "LazyDataModel<ReagentResult> getSearchResults();", "<T> List<T> getResultList(Class<T> type, Query query);", "@SuppressWarnings(\"unchecked\")\n\t// caused by instanceof simulation\n\tprivate <T extends EObject> List<T> allSubobjectsOfKind(EObject rootObject,\n\t\t\tClass<T> type) {\n\t\tList<T> result = new LinkedList<T>();\n\t\tTreeIterator<EObject> iterator = rootObject.eAllContents();\n\t\twhile (iterator.hasNext()) {\n\t\t\tEObject eObj = iterator.next();\n\t\t\tif (eObj.getClass() == type) { // simulates instanceof\n\t\t\t\tresult.add((T) eObj);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n\tpublic void shouldReturnAllPagedDocumentsFilteredByDocumentTypeSortedByDefaultSort()\n\t{\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments(\n\t\t\t\tcreatePageableData(0, 15, StringUtils.EMPTY), Collections.singletonList(AccountSummaryAddonUtils\n\t\t\t\t\t\t.createTypeCriteriaObject(StringUtils.EMPTY, StringUtils.EMPTY, FILTER_BY_DOCUMENT_TYPE)));\n\n\t\tTestCase.assertEquals(15, result.getResults().size());\n\t}", "@java.lang.Override\n public java.util.List<entities.Torrent.NodeSearchResult> getResultsList() {\n return results_;\n }", "Integer getMaxPageResults();", "Page<ExamPackage> searchList(int pageNo, int pageSize, Sort sort);", "@SuppressWarnings(\"unchecked\")\n public <T extends Resource> List<T> getChildren(Class<T> type)\n {\n Resource[] allChildren = getChildren();\n List<T> filteredChildren = new ArrayList<T>();\n for(Resource child : allChildren)\n {\n if(type.isAssignableFrom(child.getClass()))\n {\n filteredChildren.add((T)child);\n }\n }\n return filteredChildren;\n }", "private void luceneFirstGetNextChunk(SortBy sort) throws ServiceException {\n do {\n // DON'T set an sql LIMIT if we're asking for lucene hits!!! If we did, then we wouldn't be\n // sure that we'd \"consumed\" all the Lucene-ID's, and therefore we could miss hits!\n\n // limit in clause based on Db capabilities - bug 15511\n luceneChunk = luceneOp.getNextResultsChunk(Math.min(Db.getINClauseBatchSize(), hitsPerChunk));\n\n DbSearchConstraints.Leaf sc = getTopLeafConstraint();\n sc.indexIds.clear();\n sc.indexIds.addAll(luceneChunk.getIndexIds());\n\n // exponentially expand the chunk size in case we have to go back to the DB\n hitsPerChunk *= 2;\n if (hitsPerChunk > MAX_HITS_PER_CHUNK) {\n hitsPerChunk = MAX_HITS_PER_CHUNK;\n }\n\n if (sc.indexIds.size() == 0) {\n // we know we got all the index-id's from lucene. since we don't have a\n // LIMIT clause, we can be assured that this query will get all the remaining results.\n endOfHits = true;\n } else {\n // must not ask for offset,limit here b/c of indexId constraints!,\n dbSearch(dbHits, sort, -1, -1);\n }\n } while (dbHits.size() == 0 && !endOfHits);\n }", "public static List<String> get_RankedResults(List<Doc_accum> results) {\n List<String> filenames = new ArrayList();\n\n if (results.isEmpty()) {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n clickList = false;\n\n String notFound = \"Your search '\" + query + \"' is not found in any documents\";\n GUI.ResultsLabel.setText(notFound);\n\n } else {\n clickList = false;\n\n //clears list and repopulates it \n String docInfo;\n\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n for (Doc_accum p : results) {\n if (queryMode) {\n corpus.getDocument(p.getPosting().getDocumentId()).getContent();\n }\n //docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getTitle();\n docInfo = corpus.getDocument(p.getPosting().getDocumentId()).getFileName().toString();\n filenames.add(docInfo);\n\n }\n }\n\n GUI.SearchBarTextField.selectAll();\n\n return filenames;\n }", "private List<Graph> search(Function<String, BasicQuery> makeJson, String luceneSearch, String queryType) {\n\t\t\n\t\tCacheLocation cacheLocation = \n\t\t\t\tcache.searchForResultSet(\n\t\t\t\t\t\t\"Graph\", \n\t\t\t\t\t\tluceneSearch, \n\t\t\t\t\t\tnew String[] { luceneSearch }\n\t\t\t\t);\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Graph> cachedResult = \n\t\t\t\t(List<Graph>)cacheLocation.getResultSet();\n\t\t\n\t\tList<Graph> graphs = cachedResult;\n\t\tif(graphs==null) {\n\t\t\n\t\t\tSearchString networkSearch = search.networksBy(restrictQuery(luceneSearch));\n\t\t\tBasicQuery subnetQuery = makeJson.apply(luceneSearch);\n\t\t\t\n\t\t\tNetworkList networks = ndex.searchNetworks(networkSearch);\n\t\t\t\n\t\t\tList<CompletableFuture<Network>> futures = new ArrayList<>();\n\t\t\tfor (NetworkSummary network : networks.getNetworks()) {\n\t\t\t\tfutures.add(ndex.queryNetwork(network, subnetQuery, queryType));\n\t\t\t}\n\t\t\t\n\t\t\tList<Network> subnetworks = new ArrayList<>();\n\t\t\tfor (CompletableFuture<Network> future : futures) {\n\t\t\t\ttry {\n\t\t\t\t\tsubnetworks.add(future.get(TIMEOUT, TIMEUNIT));\n\t\t\t\t} catch (InterruptedException | ExecutionException | TimeoutException e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tgraphs = Util.map(Graph::new, subnetworks);\n\t\t\t\n\t\t\tcacheLocation.setResultSet(graphs);\n\t\t\t\n\t\t} \n\t\t\n\t\treturn graphs;\n\t}", "<T> Collection<T> get(Class<T> type, Iterable<Node> nodes);", "boolean getMoreResults();", "public IPage<PropertyIndex> list(int connId, HugeType type, String content,\n int pageNo, int pageSize) {\n HugeClient client = this.client(connId);\n List<IndexLabel> indexLabels = client.schema().getIndexLabels();\n\n Map<String, List<PropertyIndex>> matchedResults = new HashMap<>();\n Map<String, List<PropertyIndex>> unMatchResults = new HashMap<>();\n for (IndexLabel indexLabel : indexLabels) {\n if (!indexLabel.baseType().equals(type)) {\n continue;\n }\n String baseValue = indexLabel.baseValue();\n List<PropertyIndex> groupedIndexes;\n // Collect indexlabels that contains content\n boolean match = baseValue.contains(content);\n if (match) {\n groupedIndexes = matchedResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n } else {\n groupedIndexes = unMatchResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n }\n match = match || indexLabel.name().contains(content) ||\n indexLabel.indexFields().stream()\n .anyMatch(f -> f.contains(content));\n if (match) {\n groupedIndexes.add(convert(indexLabel));\n }\n }\n\n // Sort matched results by relevance\n if (!StringUtils.isEmpty(content)) {\n for (Map.Entry<String, List<PropertyIndex>> entry :\n matchedResults.entrySet()) {\n List<PropertyIndex> groupedIndexes = entry.getValue();\n groupedIndexes.sort(new Comparator<PropertyIndex>() {\n final int highScore = 2;\n final int lowScore = 1;\n @Override\n public int compare(PropertyIndex o1, PropertyIndex o2) {\n int o1Score = 0;\n if (o1.getName().contains(content)) {\n o1Score += highScore;\n }\n if (o1.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o1Score += lowScore;\n }\n\n int o2Score = 0;\n if (o2.getName().contains(content)) {\n o2Score += highScore;\n }\n if (o2.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o2Score += lowScore;\n }\n return o2Score - o1Score;\n }\n });\n }\n }\n List<PropertyIndex> all = new ArrayList<>();\n matchedResults.values().forEach(all::addAll);\n unMatchResults.values().forEach(all::addAll);\n return PageUtil.page(all, pageNo, pageSize);\n }", "@Override\n\tpublic BrowseResult search(String containerId, String searchCriteria,\n\t\t\tString filter, long firstResult, long maxResults,\n\t\t\tSortCriterion[] orderBy) throws ContentDirectoryException {\n\t\treturn super.search(containerId, searchCriteria, filter, firstResult,\n\t\t\t\tmaxResults, orderBy);\n\t}", "int getFirstItemOnPage();", "SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;", "List<T> findAll(Class<T> clazz, int first, int count);", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<Dummy> getIt() {\n\n \tCriterion cr = Restrictions.conjunction().add(Restrictions.gt(\"a\", 9));\n \tList<Dummy> dummies = BaseModel.getInstance().findByCriteria(Dummy.class, cr);\n \treturn dummies;\n\n }", "@Override\n @RequiresPermissions(\"em.emtype.query\")\n public void index() {\n List<EmType> list = EmType.dao.list();\n \n setAttr(\"list\", JsonKit.toJson(list));\n render(\"equipment_type_list.jsp\");\n }", "public java.util.List<VcmsArticleType> findAll();", "@Override\r\n\tpublic PaginationSupport getOpinionList(int pageNumber, int pageSize) {\n\t\tString HQL = \"\";\r\n\t\tHQL += \" from XzfyOtherSuggest x\";\r\n\t\tHQL += \" where 1 = 1 and x.parentId is null order by id desc\";\t\r\n\t\treturn super.find(HQL, pageNumber, pageSize);\r\n\r\n\t}", "public void index() {\n Integer pageNum = getParaToInt(\"pageNum\");\n Boolean includeContent = getParaToBoolean(\"includeContent\", false);\n\n if (pageNum == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n Page<Blog> blogAbstracts;\n if (!includeContent) {\n blogAbstracts = mBlogService.queryWithoutContent(pageNum);\n } else {\n blogAbstracts = mBlogService.queryAll(pageNum);\n }\n\n if (blogAbstracts.getList().size() == 0) {\n mResult.fail(107);\n } else {\n mResult.success(blogAbstracts.getList());\n }\n renderJson(mResult);\n }", "public JodeList search(Predicate<Jode> filter) {\n List<Node> ret = new ArrayList<>();\n if (filter.test(this)) {\n ret.add(this.extend());\n }\n for (Jode j : this.children()) {\n JodeList subResult = j.search(filter);\n for (Jode subJ : subResult) {\n ret.add(subJ.extend());\n }\n }\n return new JodeList(ret);\n }", "public List<MS> selectAllEntries() throws SQLException {\r\n Connection connection = super.getDataSource().getConnection();\r\n try {\r\n PreparedStatement pstmt = connection\r\n .prepareStatement(\"SELECT ID, NAME,\" + COMPONENT + \",TOTAL \"\r\n \t\t\t\t+ \"FROM ROOT\");\r\n ResultSet rs = pstmt.executeQuery();\r\n ArrayList<MS> list = new ArrayList<MS>();\r\n while (rs.next()) {\r\n MS ms = new MS();\r\n ms.setId(new Integer(rs.getInt(1)));\r\n \r\n ms.setSum(super.getSum(ms.getId()));\r\n \r\n \r\n ms.setName(rs.getString(2));\r\n ms.generateINumber();\r\n \r\n ms.setMs(rs.getInt(3));\r\n ms.setTotal(rs.getInt(4));\r\n list.add(ms);\r\n }\r\n Collections.sort(list);;\r\n return list;\r\n } finally {\r\n if (connection != null) {\r\n connection.close();\r\n }\r\n }\r\n }", "@Override\n\tpublic Collection<Tkfl> getTkflRoot() {\n\t\tString sql = \"select ID_,PARENT_ID,TKMC,MS from tkfl where parent_id = 0 order by id_ desc\";\n\t\tList<Tkfl> list = this.jdbcTemplate.query(sql, new RowMapper<Tkfl>() {\n\n\t\t\t@Override\n\t\t\tpublic Tkfl mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTkfl tkfl = new Tkfl();\n\t\t\t\ttkfl.setId(result.getInt(\"id_\"));\n\t\t\t\ttkfl.setParentId(result.getInt(\"parent_id\"));\n\t\t\t\ttkfl.setTkmc(result.getString(\"tkmc\"));\n\t\t\t\ttkfl.setMs(result.getString(\"ms\"));\n\t\t\t\treturn tkfl;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}", "public void getAllResults()\n {\n for(String module: modules.keySet())\n {\n getResults(module);\n }\n }", "public entities.Torrent.NodeSearchResult getResults(int index) {\n if (resultsBuilder_ == null) {\n return results_.get(index);\n } else {\n return resultsBuilder_.getMessage(index);\n }\n }", "@Override\n\tpublic JSONObject getByPage(String param) {\n\t\tJSONObject data = new JSONObject();\n\t\tJSONObject result = new JSONObject();\n\t\tMainUtility mainUtil = new MainUtility();\n\t\tJSONObject jsonParams = mainUtil.stringToJson(param);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringBuilder builderGetTotal = new StringBuilder();\n\n\t\tbuilder.append(\"SELECT `wt_id`, `wt_title`, `wt_content`, user.full_name, \"\n\t\t\t\t+ \"IF(writing_test.created_date IS NULL,null, DATE_FORMAT(writing_test.created_date, '%d-%m-%Y')) AS created_date FROM writing_test \"\n\t\t\t\t+ \"LEFT JOIN crm_user AS user ON writing_test.created_by = user.user_id WHERE 1=1 \");\n\t\tbuilderGetTotal.append(\"SELECT COUNT(1) FROM `writing_test` \"\n\t\t\t\t+ \" WHERE 1=1\");\n\t\t// filter header\n\t\tif (jsonParams.get(\"status\") == null || Integer.parseInt(jsonParams.get(\"status\").toString()) == -1) {\n\t\t\tbuilder.append(\" AND writing_test.deleted <> 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted <> 1\");\n\t\t} else if (Integer.parseInt(jsonParams.get(\"status\").toString()) == -2) {// thùng rác\n\t\t\tbuilder.append(\" AND writing_test.deleted = 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted = 1\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_title\") != null && !\"\".equals(jsonParams.get(\"wt_title\").toString())) {\n\t\t\tbuilder.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_content\") != null && !\"\".equals(jsonParams.get(\"wt_content\").toString())) {\n\t\t\tbuilder.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t}\n\t\t// sortby\n\t\tif (jsonParams.get(\"sortField\") != null && !\"\".equals(jsonParams.get(\"sortField\").toString())) {\n\t\t\tswitch (jsonParams.get(\"sortField\").toString()) {\n\t\t\tdefault:\n\t\t\t\tbuilder.append(\" ORDER BY writing_test.created_date DESC\");\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"descend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" DESC\");\n//\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"ascend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" ASC\");\n//\t\t\t}\n\t\t}\n\t\tmainUtil.getLimitOffset(builder, jsonParams);\n\t\ttry {\n\t\t\tint totalRow = this.jdbcTemplate.queryForObject(builderGetTotal.toString(), Integer.class);\n\t\t\tList<Map<String, Object>> lstWrittingTest = this.jdbcTemplate.queryForList(builder.toString());\n\t\t\tJSONObject results = new JSONObject();\n\t\t\tresults.put(\"results\", lstWrittingTest);\n\t\t\tresults.put(\"total\", totalRow);\n\t\t\tdata.put(\"data\", results);\n\t\t\tdata.put(\"success\", true);\n\t\t} catch (Exception e) {\n\t\t\tdata.put(\"success\", false);\n\t\t\tdata.put(\"err\", e.getMessage());\n\t\t\tdata.put(\"msg\", \"Lấy danh sách bài kiểm tra thất bại\");\n\t\t}\n\t\treturn data;\n\t}", "public List<ItemTypeDTO> getAll();", "List<JModuleInfo> queryAll();", "protected List<Topic> doGetSupertypes(Topic type, int offset, int limit, Comparator<Topic> comparator) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSupertypes(type));\r\n\t\tCollections.sort(cache, comparator);\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "SearchResult getBestResult(List<SearchResult> results, SearchQuery query);", "List<T> findMostPopularTags(Integer firstResult, Integer maxResult);", "abstract List<Divider<T> >getSearchResults(Divider<T> d);", "@Override\r\n\tpublic List<ViewListeEleve> filter(HttpHeaders headers, List<Predicat> predicats, Map<String, OrderType> orders,\r\n\t\t\tSet<String> properties, Map<String, Object> hints, int firstResult, int maxResult) {\n \tList<ViewListeEleve> list = super.filter(headers, predicats, orders, properties, hints, firstResult, maxResult);\r\n \tSystem.out.println(\"ViewListeEleveRSImpl.filter() size is \"+list.size());\r\n\t\treturn list ;\r\n\t}", "public Iterator<String> listRootClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listHierarchyRootClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\t\t\r\n\t}", "protected List<Topic> doGetSupertypes(Topic type, int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSupertypes(type));\r\n\t\treturn HashUtil.secureSubList(cache, offset, limit);\r\n\t}", "@Override\r\n public List<Page> getSpecialList(EnumWikipedia wiki, int limit) {\r\n List<Page> result = null;\r\n if (linterCategory != null) {\r\n API api = APIFactory.getAPI();\r\n try {\r\n result = api.retrieveLinterCategory(\r\n wiki, linterCategory.getCategory(),\r\n Namespace.MAIN, false, true, limit);\r\n } catch (APIException e) {\r\n //\r\n }\r\n }\r\n return result;\r\n }", "@Override\r\n\tpublic List<AsxDataVO> findByType(int type) {\n\t\treturn mongoTemplate.find(new Query(Criteria.where(\"type\").is(type)), AsxDataVO.class);\r\n\t}", "private static void traverse(ItemInfo rootItem, List<ItemInfo> results, int depth, String extraAttributes) throws Exception {\n Objects.requireNonNull(extraAttributes);\n\n final Collection<ItemInfo> children = new ArrayList<>();\n\n// final URL itemURL\n// = UriBuilder\n// .fromUri(rootItem.href.replace(\" \", \"%20\"))\n// .queryParam(\"attributes\", extraAttributes)\n// .build()\n// .toURL();\n\n final HttpURLConnection getItemConnection = (HttpURLConnection) rootItem.href.openConnection();\n getItemConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n getItemConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n getItemConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemStatus = getItemConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemStatus) {\n final String rawItemPageResults = PlatformTools.getContent(getItemConnection);\n final JSONObject itemResult = JSONObject.fromObject(rawItemPageResults);\n results.add(new ItemInfo(itemResult, depth));\n\n final JSONObject embedded = (JSONObject) itemResult.get(\"_embedded\");\n JSONObject collection = null;\n if (null != embedded) {\n collection = (JSONObject) embedded.get(\"loc:collection\");\n }\n // The item to traverse is a folder:\n if (null != collection) {\n // Get the items of the folder pagewise:\n JSONObject embeddedItems = (JSONObject) collection.get(\"_embedded\");\n if (null != embeddedItems) {\n do {\n final Object itemsObject = embeddedItems.get(\"loc:item\");\n if (null != itemsObject) {\n if (itemsObject instanceof JSONArray) {\n final JSONArray items = (JSONArray) itemsObject;\n\n final Collection<ItemInfo> itemPage = new ArrayList<>(items.size());\n for (final Object item : items) {\n final JSONObject folderItem = (JSONObject) item;\n itemPage.add(new ItemInfo(folderItem, depth + 1));\n }\n children.addAll(itemPage);\n } else {\n children.add(new ItemInfo((JSONObject) itemsObject, depth + 1));\n }\n }\n\n final JSONObject linkToNextPage = (JSONObject) collection.getJSONObject(\"_links\").get(\"next\");\n if (null != linkToNextPage) {\n final HttpURLConnection itemNextPageConnection = (HttpURLConnection) new URL(linkToNextPage.getString(\"href\").replace(\" \", \"%20\")).openConnection();\n itemNextPageConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n itemNextPageConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n itemNextPageConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemNextPageStatus = itemNextPageConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemNextPageStatus) {\n final String rawNextItemPageResults = PlatformTools.getContent(itemNextPageConnection);\n collection = JSONObject.fromObject(rawNextItemPageResults);\n embeddedItems = (JSONObject) collection.get(\"_embedded\");\n } else {\n collection = null;\n }\n } else {\n collection = null;\n }\n } while (null != collection && null != embeddedItems);\n }\n }\n\n for (final ItemInfo item : children) {\n if (item.hasChildren) {\n traverse(item, results, depth + 1, extraAttributes);\n }\n }\n\n for (final ItemInfo item : children) {\n if (!item.hasChildren) {\n results.add(item);\n }\n }\n } else {\n LOG.log(Level.INFO, \"Get item failed for item <{0}>. -> {1}\", new Object[] {rootItem.href, PlatformTools.getContent(getItemConnection)});\n }\n }", "private Set<RestModel> getArchiveNodes(RestModel root) {\n return ((ArchiveTreeNode) root).getChildren();\n }", "public List<IndexerState> select(int maxResult);", "@Override\n\tpublic List<DisplayResult> getResults(ReferencedEnvelope bounds) {\n\t\t\n\t\tString whereClause = bounds != null ? \"WHERE ST_Transform(geom, 4326) && ST_MakeEnvelope(\"+bounds.getMinX()+\",\"+bounds.getMinY()+\",\"+bounds.getMaxX()+\",\"+bounds.getMaxY()+\") \" : \"\";\n\t\t\n\t\t//Only latest results\n\t\tString query = \"SELECT DISTINCT ON (meshblock_id) id, meshblock_id, operat_score, date_entered, ST_AsText(ST_Transform(centroid,4326)), ST_AsText(ST_Transform(geom,4326)), \"\n\t\t\t\t+ \"natural_elements_score, incivilities_and_nuisance_score, navigation_and_mobility_score, territorial_score \"\n\t\t\t\t+ \"FROM result \"\n\t\t\t\t+ whereClause\n\t\t\t\t+ \"ORDER BY meshblock_id, date_entered DESC;\";\n\n\t\tSystem.out.println(query);\n\t GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n\n\t WKTReader reader = new WKTReader(geometryFactory);\n\t \n\t\tRowMapper<DisplayResult> rowMapper = (rs, rowNum) -> {\n\t\t\t\n\t\t\tDisplayResult result = new DisplayResult();\n\t\t\tresult.setResultId(rs.getInt(1));\n\t\t\tresult.setMeshblockId(rs.getInt(2));\n\t\t\tresult.setOperatScore(rs.getDouble(3));\n\t\t\t\t\n\t\t\tresult.setNaturalElementsScore(rs.getDouble(7));\n\t\t\tresult.setIncivilitiesScore(rs.getDouble(8));\n\t\t\tresult.setNavigationScore(rs.getDouble(9));\n\t\t\tresult.setTerritorialScore(rs.getDouble(10));\n\t\t\tPoint point;\n\t\t\ttry {\n\t\t\t\tpoint = (Point) reader.read(rs.getString(5));\n\t\t\t\tresult.setCentroid(point.toString());\n\t\t\t\tresult.setLat(point.getCoordinate().y);\n\t\t\t\tresult.setLng(point.getCoordinate().x);\n\t\t\t\t\t\n\t\t\t\tresult.setGeom(rs.getString(6));\n\t\t\t\t\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t\t\n\t\treturn jdbcTemplate.query(query, rowMapper);\n\t\t\n\t}", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();" ]
[ "0.5926171", "0.5860174", "0.58484304", "0.5835814", "0.5634566", "0.5630298", "0.5522109", "0.5386247", "0.5280986", "0.52781945", "0.523231", "0.5229175", "0.5211695", "0.5193879", "0.51725537", "0.51681864", "0.51661265", "0.51614743", "0.5158755", "0.51504946", "0.5150184", "0.51421005", "0.51261", "0.5123173", "0.50742376", "0.5072437", "0.5055595", "0.5052773", "0.5051792", "0.50247014", "0.50209963", "0.5020486", "0.50070626", "0.5006974", "0.5000955", "0.49952027", "0.49946743", "0.49790844", "0.49733078", "0.49690384", "0.494426", "0.49193528", "0.49103016", "0.49022764", "0.49003088", "0.48929918", "0.4888004", "0.48821908", "0.4880108", "0.4866184", "0.48579988", "0.48547328", "0.48528808", "0.48498693", "0.484026", "0.48357573", "0.4808182", "0.48036724", "0.48013556", "0.48004267", "0.4789228", "0.47851416", "0.4784167", "0.47797716", "0.4772303", "0.47622642", "0.47535768", "0.4752435", "0.47475576", "0.4746978", "0.47443157", "0.47364733", "0.473543", "0.47339654", "0.4727498", "0.471798", "0.47168297", "0.47115093", "0.4707044", "0.47016037", "0.4695586", "0.4694289", "0.4694196", "0.46924183", "0.468956", "0.46837977", "0.468364", "0.46808884", "0.46797168", "0.46796647", "0.46753237", "0.46665946", "0.46638754", "0.46618256", "0.46596953", "0.46587515", "0.46572083", "0.46572083", "0.46572083", "0.46572083" ]
0.69893974
0
Filters content by category slug
public List<Content> filterByCategorySlug(List<Content> contents, String categorySlug) { return contents .stream() .filter(content -> content.getCategory().equals(categorySlug)) .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/filterAdminSide\")\n public List<BannerDTO> filterByCategory(@RequestParam(\"category\") String categoryName){\n return bannerService.findAllByCategory(categoryName);\n }", "@Override\n\tpublic List<Literature> searchCategory(String category) {\n\t\treturn null;\n\t}", "private void listCategory() {\r\n \r\n cmbCategoryFilter.removeAllItems();\r\n cmbCategory.removeAllItems();\r\n \r\n cmbCategoryFilter.addItem(\"All\");\r\n for (Category cat : Category.listCategory()) {\r\n cmbCategoryFilter.addItem(cat.getName());\r\n cmbCategory.addItem(cat.getName());\r\n }\r\n \r\n }", "@GetMapping(\"/filterUserSide\")\n public List<BannerDTO> filterAllowedByCategory(@RequestParam(\"category\") String categoryName){\n return bannerService.findAllowedByCategory(categoryName);\n }", "private PortletCategoryBean filterCategoryFavoritesOnly(PortletCategoryBean category) {\n\n // Subcategories\n final Set<PortletCategoryBean> subcategories = new HashSet<>();\n category.getSubcategories()\n .forEach(\n sub -> {\n final PortletCategoryBean filteredBean =\n filterCategoryFavoritesOnly(sub);\n if (filteredBean != null) {\n subcategories.add(filteredBean);\n }\n });\n\n // Portlets\n final Set<PortletDefinitionBean> portlets = new HashSet<>();\n category.getPortlets()\n .forEach(\n child -> {\n if (child.getFavorite()) {\n log.debug(\n \"Including portlet '{}' because it is a favorite: {}\",\n child.getFname());\n portlets.add(child);\n } else {\n log.debug(\n \"Skipping portlet '{}' because it IS NOT a favorite: {}\",\n child.getFname());\n }\n });\n\n return !subcategories.isEmpty() || !portlets.isEmpty()\n ? PortletCategoryBean.create(\n category.getId(),\n category.getName(),\n category.getDescription(),\n subcategories,\n portlets)\n : null;\n }", "public String searchCategory()\n {\n logger.info(\"**** In searchCategory in Controller ****\");\n categoryList = categoryService.getCategories();\n return Constants.SEARCH_CATEGORY_VIEW;\n }", "@RequestMapping( value=\"/filter\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> filter (@RequestBody Category filter){\n\t\t\n\t\treturn new ResponseEntity<>(this.categoryRepository.findByDescriptionContainingIgnoreCase(filter.getDescription()), HttpStatus.OK);\n\t\t\n }", "public List<Book> getBooksByCategory(String category) {\n List<Book> books = bookRepository.findAll();\n return books.stream()\n .filter(book -> Arrays.stream(book.getCategories())\n .anyMatch(bookCategory -> bookCategory.equals(category)))\n .collect(Collectors.toList());\n \n }", "String category();", "default List<String> getCategory(String category) {\n return new ArrayList<>(getCategories().get(category.toLowerCase()).values());\n }", "private static Stream<String> parseCategory(ClassificationCategory category) {\n return Stream.of(category.getName().substring(1).split(\"/| & \"));\n }", "List<Post> findAllBycategory(Category category);", "String getCategory();", "String getCategory();", "public LocationLst filterBySubCategory(String subCategory)\n {\n LocationLst filteredLocationLst = new LocationLst();\n\n for (int i = 0; i < this.locationLst.size(); i++) {\n if(locationLst.get(i).getSubCategory() == subCategory)\n filteredLocationLst.addLocation(locationLst.get(i));\n }\n\n return filteredLocationLst;\n }", "public void searchByCategory(View v){\n category = searchSpinner.getSelectedItem().toString();\n if(category!=null && connection.isOnline(this)){\n new SearchByCategoryAsync().execute();\n }\n }", "public void setCategory(String category){\n this.category = category;\n }", "public Set<String> getCategory(){return category;}", "public List<String> getCategories();", "public List<String> getCategoryList(String cat) {\n ArrayList<String> ls = new ArrayList<String>();\n String[] keys = sortedStringKeys();\n\n for (String s : keys) {\n if (s.startsWith(cat)) { ls.add(getProperty(s)); }\n }\n return ls;\n }", "List<Product> getProductsByCategory(String category);", "public @NotNull Set<Item> findItems(@NotNull final Category category) throws BazaarException;", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "List getCategoriesOfType(String typeConstant);", "@GetMapping(\"category\")\n\t\tpublic List<String> getCategory(){\n\t\t\tList<String> list = repo.findByCat();\n\t\t\treturn list;\n\t\t\t\n\t\t\t\n\t\t}", "public String getCategory();", "private List<Scholarship> filter(List<Scholarship> models, String query) {\n query = query.toLowerCase();\n final List<Scholarship> filteredModelList = new ArrayList<>();\n for (final Scholarship model : models) {\n final String text = model.getTitle().toLowerCase();\n if (text.contains(query)) {\n filteredModelList.add(model);\n }\n }\n return filteredModelList;\n }", "public void filterArticles() {\n filterAgent.score(articles, filterType);\n articles = insertionSort(articles); // sorted articles list\n\n refreshTable();\n if (articles.size() > 0) {\n currentArt = (NewsArticle) articles.elementAt(0);\n }\n }", "public @NotNull Set<Category> findAllCategories() throws BazaarException;", "public void getCategorory(){\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(AssetCategory.class, \"category\", PortalClassLoaderUtil.getClassLoader());\n\t\ttry {\n\t\t\tList<AssetCategory> assetCategories = AssetCategoryLocalServiceUtil.dynamicQuery(dynamicQuery);\n\t\t\tfor(AssetCategory category : assetCategories){\n\t\t\t\tlog.info(category.getName());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "FilterResults performFiltering(CharSequence charSequence) { // Aplicamos el filtro\n String charString = charSequence.toString(); // String con el filtro\n if (charString.isEmpty()) { // Si esta vacio\n filteredSites = allSites; // No hay filtro y se muestran todas las instalaciones\n } else { // Si no\n ArrayList<ULLSiteSerializable> auxFilteredList = new ArrayList<>();\n for (ULLSiteSerializable site : allSites) { // Para todas las instalaciones \n // Se comprueba si el nombre la filtro coincide con la instalacion\n if (site.getName().toLowerCase().contains(charString.toLowerCase())) \n auxFilteredList.add(site); // Si coincide se agregan a la lista\n // auxiliar\n }\n filteredSites = auxFilteredList; // La lista auxiliar es igual a la de \n } // las instalaciones filtradas a mostrar\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredSites;\n return filterResults; // Se devuelve el resultado del filtro\n }", "boolean hasPageCategoryDescription();", "Category getCategoryByName(String categoryName);", "public void setCategory(String category) {\r\n this.category = category;\r\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public String getCategory() {\n return category;\n }", "Optional<Category> getCategory(String title);", "@Override\n public List<Article> getArticlesByCat(@RequestParam(\"cat\") String cat) {\n return articleDAO.getArticlesByCat(cat);\n }", "public void setCategory(String category);", "List<Category> getAllCategories();", "public Cursor getCatItems(String cat)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from products where category = '\"+cat+\"'\",null);\n return res;\n }", "public String searchCategoriesByCriteria()\n {\n logger.info(\"**** In searchCategoriesByCriteria in Controller ****\");\n if (category != null && (StringUtils.isNotEmpty(category.getCategoryName()) || StringUtils.isNotEmpty(category.getCategoryDescription())))\n {\n categoryList = categoryService.searchCategoriesByCriteria(category);\n }\n else\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.NO_SEARCH_CRITERIA, Constants.NO_SEARCH_CRITERIA);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return Constants.SEARCH_CATEGORY_VIEW;\n }", "@GetMapping(\"movie-cat/{category}\")\n\tpublic List<Movie> getMovieCat(@PathVariable(\"category\") String category){\n\t\tList<Movie> list = repo.findByCategory(category);\n\t\treturn list;\n\t\t\n\t}", "@Override\n public ParseResult filter(Content content, ParseResult parseResult,\n HTMLMetaTags metaTags, DocumentFragment doc) {\n\n // get parse obj\n Parse parse = parseResult.get(content.getUrl());\n\n // construct base url\n URL base;\n try {\n base = new URL(content.getBaseUrl());\n } catch (MalformedURLException e) {\n Parse emptyParse = new ParseStatus(e).getEmptyParse(getConf());\n parseResult.put(content.getUrl(), new ParseText(emptyParse.getText()),\n emptyParse.getData());\n return parseResult;\n }\n\n try {\n // extract license metadata\n Walker.walk(doc, base, parse.getData().getParseMeta(), getConf());\n } catch (ParseException e) {\n Parse emptyParse = new ParseStatus(e).getEmptyParse(getConf());\n parseResult.put(content.getUrl(), new ParseText(emptyParse.getText()),\n emptyParse.getData());\n return parseResult;\n }\n\n return parseResult;\n }", "public String getFilterCategory()\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n public String getCategory() {\n return category;\n }", "private void filterItems()\n {\n System.out.println(\"filtered items (name containing 's'):\");\n Set<ClothingItem> items = ctrl.filterItemsByName(\"s\");\n items.stream().forEach(System.out::println);\n }", "public String getCategory() {\r\n return category;\r\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n List<CasesItem> filteredList = new ArrayList<>();\n if(constraint == null || constraint.length() == 0) {\n\n filteredList.addAll(mItemCasesAll);\n } else {\n\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(CasesItem items: mItemCasesAll) {\n\n if(items.getmCountryName().toLowerCase().contains(filterPattern)) {\n\n filteredList.add(items);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n return filterResults;\n }", "private void defaultCategoryShouldNotBeFound(String filter) throws Exception {\n restCategoryMockMvc.perform(get(\"/api/categories?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restCategoryMockMvc.perform(get(\"/api/categories/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"0\"));\n }", "public boolean containsCategory(String categoryName);", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "boolean hasCategory();", "@FXML\n public void filterCupboardIngredients(){\n String searchText = searchIngredientCupboard.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n allIngredientsCupboardPane.setItems(filterObservableList);\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "@RequestMapping(value = \"/list/{category}\", method = RequestMethod.GET)\n public String listItemByTag(@PathVariable(\"category\") String category, Model model) {\n List<Item> items = itemService.findByCategoryAndTag(category, 1);\n model.addAttribute(\"items\", items);\n return \"item/list\";\n }", "public static void printMovieByCategory(String category) {\n System.out.println(\"View movies in the \" + category + \" category\");\n for (Movie movie : moviesList) {\n if (movie.getCategory().equalsIgnoreCase(category)) {\n System.out.println(movie.getName() + \" -- \" + movie.getCategory());\n }\n\n }\n\n\n }", "private static void seachCats(String maybeCat) {\n\t\tSystem.out.println(\"List of \" + maybeCat + \" movies\");\n\t\tSystem.out.println(\"===============================\");\n\t\tint i;\n\t\tint x = 0;\n\t\tfor (i = 0; i < movList.size(); i++) {\n\t\t\tif (movList.get(i).isCat(maybeCat)) {\n\t\t\t\tSystem.out.println(movList.get(i));\n\t\t\t\tx++;\n\t\t\t}\n\t\t}\n\t\tif (x == 0) {\n\t\t\tSystem.out.println(\"Sorry, there are no movies in that category.\");\n\t\t}\n\t}", "private void filter(String text) {\n List<Target> filteredlist = new ArrayList<>();\n // running a for loop to compare elements.\n for (Target item : repositoryList) {\n // checking if the entered string matched with any item of our recycler view.\n if (item.getNameTarget().toLowerCase().contains(text.toLowerCase())) {\n // if the item is matched we are\n // adding it to our filtered list.\n filteredlist.add(item);\n }\n } adapter.updateData(filteredlist);\n }", "@Override\n public void filter(String type) {\n\n List<Doctor> newDocs = new ArrayList<>();\n \n for (Doctor doctor : doctors) {\n //If doctor's specialization matches user searched specialization add to new doctor list\n if (doctor.getSpecialization()!=null && doctor.getSpecialization().equals(type)) {\n newDocs.add(doctor);\n }\n }\n \n //Set new doctor list as the doctor list\n doctors = newDocs;\n }", "public String getCategory() {\n return this.category;\n }", "@GetMapping(\"/category\")\n @TokenRequired\n @ApiOperation(value = \"Gets a Category\", httpMethod = \"GET\")\n public ServiceResponse<CategoryDto> getCategory(@RequestParam(value = \"categoryId\", required = false) String categoryId,\n @RequestParam(value = \"slug\", required = false) String slug,\n HttpServletResponse response) {\n ServiceResponse<CategoryDto> serviceResponse = new ServiceResponse<>();\n ServiceRequest<CategoryDto> serviceRequest = new ServiceRequest<>();\n try {\n checkRequiredParameters(categoryId, slug);\n serviceRequest.setParameter(createDto(categoryId, slug));\n Category categoryResult = categoryService.getCategoryByIdOrSlug(convertToEntity(serviceRequest.getParameter()));\n handleResponse(serviceResponse, convertToDto(categoryResult), response, true);\n } catch (Exception e) {\n exceptionHandler.handleControllerException(serviceResponse, serviceRequest, e, getMethodName(), response);\n }\n return serviceResponse;\n }", "public List<Categorie> getAllCategories();", "public void getCategories(String uri) {\n StringRequest request = new StringRequest(uri,\n response -> {\n JSONObject responseObject;\n JSONArray responseArray;\n\n try {\n // Get JSON object and array of data\n responseObject = new JSONObject(response);\n responseArray = responseObject.getJSONArray(\"categories\");\n ArrayList<String> categories = new ArrayList<>();\n\n // Add every found string to the ArrayList\n for (int i = 0; i < responseArray.length(); i++) {\n String category = responseArray.getString(i);\n categories.add(category);\n }\n // Use an adapter and the ArrayList to feed the list\n CategoryAdapter adapter = new CategoryAdapter(mContext, R.layout.list_item_category, categories);\n lv.setAdapter(adapter);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n },\n error -> Toast.makeText(mContext, R.string.error_network, Toast.LENGTH_SHORT).show());\n RequestQueue queue = Volley.newRequestQueue(this);\n queue.add(request);\n }", "public String getCategory()\n {\n return category;\n }", "String getCategoria();", "public void filter(String charText) {\n charText = charText.toLowerCase();\n\n //countries.clear();\n //countries = DashboardFragment.countriesList;\n CountryFragment.countriesList.clear();\n if (charText.length() == 0) {\n CountryFragment.countriesList.addAll(countries);\n // countries.addAll(DashboardFragment.countriesList);\n } else {\n for (Countries wp : countries) {\n if (wp.getCountry().toLowerCase().contains(charText)) {\n CountryFragment.countriesList.add(wp);\n //countries.add(wp);\n }\n }\n }\n notifyDataSetChanged();\n }", "public List<Dictionary> getDictionaryEntrysByCategory(String filter, String categoryFilter)\n throws LIMSRuntimeException {\n try {\n String sql = \"\";\n\n if (filter != null) {\n // bugzilla 1847: use dictEntryDisplayValue\n // bugzilla 2440 sql is incorrect - duplicate entries displaying\n // in dropdown\n if (!StringUtil.isNullorNill(categoryFilter)) {\n sql = \"from Dictionary d \"\n + \"where (d.localAbbreviation is not null and upper(d.localAbbreviation) || \"\n + enquote(IActionConstants.LOCAL_CODE_DICT_ENTRY_SEPARATOR_STRING)\n + \" || upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES)\n + \" and d.dictionaryCategory.categoryName = :param2)\"\n + \" OR (d.localAbbreviation is null and upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES) + \" and d.dictionaryCategory.categoryName = :param2)\";\n } else {\n sql = \"from Dictionary d \"\n + \"where (d.localAbbreviation is not null and upper(d.localAbbreviation) || \"\n + enquote(IActionConstants.LOCAL_CODE_DICT_ENTRY_SEPARATOR_STRING)\n + \" || upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES)\n + \")\"\n + \" OR (d.localAbbreviation is null and upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES) + \")\";\n }\n } else {\n if (!StringUtil.isNullorNill(categoryFilter)) {\n sql = \"from Dictionary d where d.dictEntry like :param1 and d.isActive= \" + enquote(YES)\n + \" and d.dictionaryCategory.categoryName = :param2\";\n } else {\n sql = \"from Dictionary d where d.dictEntry like :param1 and d.isActive= \" + enquote(YES);\n }\n }\n\n sql += \" order by d.dictEntry asc\";\n Query query = HibernateUtil.getSession().createQuery(sql);\n query.setParameter(\"param1\", filter + \"%\");\n if (!StringUtil.isNullorNill(categoryFilter)) {\n query.setParameter(\"param2\", categoryFilter);\n }\n\n @SuppressWarnings(\"unchecked\")\n List<Dictionary> list = query.list();\n HibernateUtil.getSession().flush();\n HibernateUtil.getSession().clear();\n\n return list;\n\n } catch (Exception e) {\n // bugzilla 2154\n LogEvent.logError(\"DictionaryDAOImpl\", \"getDictionaryEntrys()\", e.toString());\n throw new LIMSRuntimeException(\n \"Error in Dictionary getDictionaryEntrys(String filter, String categoryFilter)\", e);\n }\n }", "private List<VideoItem> filter(List<VideoItem> models, String query) {\n query = query.toLowerCase();\n final List<VideoItem> filteredModelList = new ArrayList<>();\n for (final VideoItem model : models) {\n final String text = model.getTitle().toLowerCase();\n if (text.contains(query)) {\n filteredModelList.add(model);\n }\n }\n return filteredModelList;\n }", "public abstract String getCategory();", "public abstract String getCategory();", "public void setCategory(java.lang.String category) {\n this.category = category;\n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "void categoryContent(Integer categoryId){\n Document query = new Document();\n// selected_collection.find({'locations' : {'$exists' : False}}, no_cursor_timeout=True)\n query.put(\"id\", categoryId);\n query.put(\"$where\", \"this.categoryContent.length==0\");\n FindIterable findIterable = mongoCollection.find(query);\n\n int count = 0;\n for (Object doc: findIterable){\n System.out.println(doc);\n StringBuilder content = new StringBuilder();\n Document result = (Document) doc;\n int id = result.getInteger(\"id\");\n List<String> siteURLs = (List<String>) result.get(\"siteURLs\");\n for(String url :siteURLs){\n try {\n String urlContent = getContent(url);\n if(urlContent != null){\n content.append(urlContent).append(\"\\n\");\n }\n } catch (BoilerpipeProcessingException e) {\n System.err.println(\"URL: \" + url + \" Message: \" + e.getMessage());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n mongoCollection.updateOne(new Document(\"id\", id),new Document(\"$set\", new Document(\"categoryContent\", content.toString())));\n count++;\n }\n System.out.println(count);\n }", "private CategoryFilter getCategoryFilter( HttpServletRequest request )\r\n {\r\n // SORT\r\n String strSortedAttributeName = request.getParameter( Parameters.SORTED_ATTRIBUTE_NAME );\r\n\r\n CategoryFilter filter = new CategoryFilter( );\r\n buildFilter( filter, request );\r\n _categoryFilter = filter;\r\n\r\n if ( strSortedAttributeName != null )\r\n {\r\n _categoryFilter.getOrders( ).add( strSortedAttributeName );\r\n\r\n String strAscSort = request.getParameter( Parameters.SORTED_ASC );\r\n boolean bIsAscSort = Boolean.parseBoolean( strAscSort );\r\n _categoryFilter.setOrderAsc( bIsAscSort );\r\n }\r\n\r\n return _categoryFilter;\r\n }", "private void defaultCategoryShouldBeFound(String filter) throws Exception {\n restCategoryMockMvc.perform(get(\"/api/categories?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(category.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].label\").value(hasItem(DEFAULT_LABEL)))\n .andExpect(jsonPath(\"$.[*].primaryColor\").value(hasItem(DEFAULT_PRIMARY_COLOR)))\n .andExpect(jsonPath(\"$.[*].secondaryColor\").value(hasItem(DEFAULT_SECONDARY_COLOR)));\n\n // Check, that the count call also returns 1\n restCategoryMockMvc.perform(get(\"/api/categories/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"1\"));\n }", "@Override\n protected Filter.FilterResults performFiltering(CharSequence constraint) {\n final Filter.FilterResults filterResults = new Filter.FilterResults();\n final List<Scenario> results = new ArrayList<Scenario>();\n\n if (original != null) {\n boolean noConstraint = constraint == null || constraint.toString().trim().isEmpty();\n for (Scenario s : original) {\n if (noConstraint || Integer.toString(s.getScenarioId()).contains(constraint) || s.getScenarioName().toLowerCase().contains(constraint)) {\n results.add(s);\n }\n }\n }\n filterResults.values = results;\n filterResults.count = results.size();\n return filterResults;\n\n }", "@Override\n public Filter getFilter() {\n\n return new Filter() {\n @Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n\n String charString = charSequence.toString();\n\n if (charString.isEmpty()) {\n\n mDataset = mArrayList;\n } else {\n\n ArrayList<DataObject> filteredList = new ArrayList<>();\n\n for (DataObject data : mArrayList) {\n\n if (data.getid().toLowerCase().contains(charString.toLowerCase()) || data.getname().toLowerCase().contains(charString.toLowerCase())) {\n\n filteredList.add(data);\n }\n }\n\n mDataset = filteredList;\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = mDataset;\n return filterResults;\n }\n\n @Override\n protected void publishResults(CharSequence charSequence, FilterResults filterResults) {\n mDataset = (ArrayList<DataObject>) filterResults.values;\n notifyDataSetChanged();\n }\n };\n }", "String getCategoryBySubCategory(String subCategory) throws DataBaseException;", "public String category() {\n return this.category;\n }", "public String category() {\n return this.category;\n }", "public String getCategory() {\n return this.category;\n }", "public List<ItemCategory> getByCat(int id) {\n return repository.findByCategoryId(id);\n }", "@RequestMapping(value = \"category\", method = RequestMethod.GET)\n public String category(Model model, @RequestParam int id){\n Category cat = categoryDao.findOne(id);\n List<Recipe> recipes = cat.getRecipes();\n model.addAttribute(\"recipes\", recipes);\n model.addAttribute(\"title\", cat.getCategoryName() + \" recipes\");\n return \"recipe/list-under\";\n }", "List<ConfigCategory> getCategoryOfTypeAndDisplayName(String typeConstant, String catDisplayName);", "@Override\n\tpublic Iterable<Category> findAllCategory() {\n\t\treturn categoryRepository.findAll();\n\t}", "public String categoryList(CategoryDetails c);", "@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}" ]
[ "0.5676467", "0.53262633", "0.5281431", "0.52104205", "0.51214474", "0.51173526", "0.5115744", "0.51128644", "0.5097522", "0.5073411", "0.50554657", "0.49446362", "0.49275443", "0.49275443", "0.4882224", "0.48694348", "0.48618084", "0.484928", "0.48492527", "0.48454618", "0.47919986", "0.4791237", "0.478383", "0.47779676", "0.47644413", "0.47547168", "0.47542706", "0.47494054", "0.47114983", "0.47113964", "0.47069952", "0.47059983", "0.46876138", "0.46818978", "0.46722516", "0.46688628", "0.46688628", "0.46688628", "0.46688628", "0.46688628", "0.46686608", "0.46667284", "0.4660924", "0.46530825", "0.4649867", "0.464664", "0.46313542", "0.46159726", "0.46122062", "0.46104065", "0.460861", "0.46084785", "0.46057138", "0.46036068", "0.45977452", "0.45959184", "0.45942485", "0.45942485", "0.45942485", "0.45942485", "0.45942485", "0.45942485", "0.45942485", "0.45912406", "0.4589307", "0.4588024", "0.4588024", "0.45868087", "0.45813775", "0.45673546", "0.456415", "0.4559013", "0.4554757", "0.4550368", "0.45431674", "0.45362073", "0.45361397", "0.4535003", "0.45313624", "0.45256272", "0.4519958", "0.4502899", "0.4502899", "0.44961232", "0.44874474", "0.4483079", "0.44699794", "0.44632515", "0.44478282", "0.44404593", "0.44391134", "0.44319984", "0.44319984", "0.4429957", "0.44223174", "0.4412399", "0.44082665", "0.43964347", "0.43926093", "0.43795007" ]
0.73598886
0
Lists content titles by content
public List<ContentTitle> listContentTitlesByContent(Content content) { return contentTitleDAO.listByContent(content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String listTitle();", "public abstract List<String> getContent( );", "@Override\n\tpublic List<Object> searchTitleContentList(String searchVar, int pageNo) {\n\t\tBoardVO vo = new BoardVO(searchVar,searchVar,pageNo);\n\t\treturn template.selectList(\"board.searchTitleContentList\",vo);\n\t}", "public List<ContentData> listContentDataByContent(Content content) {\n return contentDataDAO.listByContent(content);\n }", "java.util.List<java.lang.String> getContentsList();", "public void listTitles() {\n for (int i = 0; i < books.length; i++) {\n System.out.println(\"The title of book\" + (i + 1) + \": \" + books[i].getTitle());\n }\n }", "@Override\n\tpublic GetContentResponse listContents() {\n\t\tLOGGER.debug(\"LIST ALL CONTENTS\");\n\t\t\n\t\tClientConfig clientConfig = new ClientConfig();\n\t\t \n\t HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(env.getProperty(\"liferay.user.id\"), env.getProperty(\"liferay.user.key\"));\n\t clientConfig.register( feature) ;\n\t \n\t clientConfig.register(JacksonFeature.class);\n\t\t\n\t\tClient client = ClientBuilder.newClient(clientConfig);\n\t\tWebTarget webTarget = client.target(env.getProperty(\"liferay.api.rootpath\")).path(\"article-id/0/content-type/tagtest\");\n\t\t \n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\t\n\t\tResponse response = invocationBuilder.get();\n\t\t \n\t\tGetContentResponse content = response.readEntity(GetContentResponse.class);\n\t\t\n\t\t\n\t\n\t\t \n\t\tLOGGER.info(\"status::\"+response.getStatus());\n\t\t\n\t\t\n\t\t\n\t\tcontent.setStatusCode(200);\n\t\tcontent.setStatusMessage(\"Content List\");\n\t\n\t\treturn content;\n\t}", "public List<PageContent> getAllPageContent();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "List<String> getRecipeTitles();", "@Override\r\n\tpublic List<Blog> findTitle(String ti) {\n\t\tList<Blog> list = this.getBlogDao().findAll();\r\n\t\tList<Blog> list1 = new ArrayList<Blog>();\r\n\t\tfor(Blog b:list){\r\n\t\t\tif(b.getTitle().contains(ti)){\r\n\t\t\t\tlist1.add(b);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list1;\r\n\t}", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "List<WorkList<Content>> getMyContentList();", "public List<String> getTitles() {\n List<String> list = new ArrayList<>(((List<Entry>) Router.callRouter(this.entries, Entries.class, \"getEntry\", null, null)).size());\n for (Entry entry : this.entries.getEntry()) {\n list.add(entry.getTitle());\n }\n return list;\n }", "List<Content> getContentListForApproval();", "public void setContent(List<String> content){\n\t\t\tif (canHaveContent())this.content = content;\n\t\t}", "private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}", "public void testTitleSort() {\n sorter.inssortTitle();\n list = sorter.getLibrary();\n assertEquals(list.get(0).getTitle(), \"one\");\n assertEquals(list.get(1).getTitle(), \"three\");\n assertEquals(list.get(2).getTitle(), \"two\");\n }", "public java.lang.String getTitle();", "public static void displaySubTitles()\r\n {\n }", "public Iterable<Content> findAllContent(){\n\n return contentRepository.findAll();\n }", "public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}", "public static void readTitles() {\n System.out.println(\"Reading titles...\");\n ConfigurationSection config = plugin.getConfig().getConfigurationSection(\"titles\");\n System.out.println(\"Acquired configuration section \" + (config == null));\n Set<String> keys = config.getKeys(false);\n\n System.out.println(keys.size());\n\n for(String titleName : keys) {\n // System.out.println(titleName);\n String title = config.getString(titleName + \".Title\");\n char icon = ' ';\n int length = config.getInt(titleName + \".Characters\");\n int customModelData = config.getInt(titleName + \".CustomModelData\");\n\n Title t = new Title(titleName, title, icon, length, customModelData);\n\n titles.put(titleName, t);\n\n System.out.println(titles.get(titleName).toString());\n }\n }", "public List<Content> getAllContents() {\n return contentRepo.findAll();\n }", "public abstract String getContentDescription();", "public void listContent(String filter){\r\n \r\n try {\r\n // Clear Data\r\n int lastRow = tblContentList.getRowCount() - 1;\r\n while (lastRow > -1) {\r\n modelContentList.removeRow(lastRow);\r\n lastRow--;\r\n }\r\n \r\n // Add Userinfo\r\n int curRow = 0;\r\n String idx;\r\n for (Product product : Product.listProduct(filter, \"category, name\")) {\r\n \r\n try{\r\n modelContentList.addRow(new Object[0]);\r\n idx = IDPF_PRODUCT + IDFMT_PRODUCT.format(product.getId());\r\n modelContentList.setValueAt(idx, curRow, 0);\r\n\r\n modelContentList.setValueAt(product.getCode(), curRow, 1);\r\n modelContentList.setValueAt(product.getName(), curRow, 2);\r\n\r\n Category category = new Category(product.getCategory()); \r\n modelContentList.setValueAt(category.getName(), curRow, 3); \r\n\r\n modelContentList.setValueAt(DFMT_PRICE.format(product.getCost()), curRow, 4);\r\n modelContentList.setValueAt(DFMT_PRICE.format(product.getPrice()), curRow, 5);\r\n\r\n modelContentList.setValueAt(product.getDescription(), curRow, 6);\r\n modelContentList.setValueAt(product.getId(), curRow, 7);\r\n modelContentList.setValueAt(product.getStatus(), curRow, 8);\r\n\r\n curRow++;\r\n }catch(Exception e){\r\n \r\n }\r\n \r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n }", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "String getTitre();", "@Override\n\tpublic List<SimpleMovieInfo> getMoviesByTitle(String htmlContent,\n\t\t\tString websiteId, HtmlNodePathMapper htmlNodePathMapper) {\n\t\treturn null;\n\t}", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "private void getByTitle(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString type = request.getParameter(\"type\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tswitch(type){\n\t\tcase \"BigData\":\n\t\t\tlist = artService.getAll(\"atype\", \"辅修\");\n\t\t\tbreak;\n\t\tcase \"Computer\":\n\t\t\tlist = artService.getAll(\"atype\", \"专业\");\n\t\t\tbreak;\n\t\tcase \"Math\":\n\t\t\tlist = artService.getAll(\"atype\", \"留学\");\n\t\t\tbreak;\n\t\tcase \"Economy\":\n\t\t\tlist = artService.getAll(\"atype\", \"考研\");\n\t\t\tbreak;\n\t\tcase \"Psychology\":\n\t\t\tlist = artService.getAll(\"atype\", \"就业\");\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlist=artService.getAll(\"atype\", \"其他\");\n\t\t\t\tbreak;\n\t\t}\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getTitle(){\n return titlesText;\n }", "OrderedListContent createOrderedListContent();", "List<CmsVoteTitle> selectByExample(CmsVoteTitleExample example);", "@Override\n\tpublic String getListTitle() {\n\t\treturn \"Saisir des notes\";\n\t}", "List<String> getDocumentTitles(String query) throws SearcherException;", "void displayCards(List<Card> cards, String title);", "public List<Entry> getByTitle(String title) {\n List<Entry> matches = new ArrayList<>();\n for (Entry l : litRegister) {\n\n if (l.getTitle().contains(title)) {\n matches.add(l);\n }\n }\n return matches;\n }", "Collection<MoviesTitles> getMoviesTitles();", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "public Content existContentWithContenttitle(String contenttitle) {\n\t\tContent content=contentMapper.existContentWithContenttitle(contenttitle);\n\t\treturn content;\n\t}", "IDisplayString getTitle();", "public Iterable<Content> findAllFeaturedContent(){\n\n return contentRepository.findByIsFeatured(true);\n }", "public java.util.List<Todo> findByTitle(String title);", "public ReactorResult<java.lang.String> getAllTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), TITLE, java.lang.String.class);\r\n\t}", "List<String> getAllTitles(){\n return mAllTitles;\n }", "public void setContentList(List<GenericTextModel> contentList) {\n\t\tthis.contentList = contentList;\n\t}", "public abstract CharSequence getTitle();", "public Todo fetchByURLTitle(String urlTitle);", "public void prefetchContents(List<Content> contents) {\n\n for (Content c : contents) {\n prefetchContent(c);\n }\n\n }", "private List<ContentPlaceholder> getPrototypeContentPlaceholders()\n\t{\n\t\tList<ContentPlaceholder> contentPlaceholders = new ArrayList<ContentPlaceholder>();\n\t\t\n\t\tNewsItem item1 = new NewsItem(1, \"Anyone who's anyone in the Fallout community knows Pawel \\\"Ausir\\\" Dembowski. Founder of The Vault wiki which contains over 15,000 pages of Fallout lore, Pawel is a human encyclopedia of gaming's favorite post apocalyptic franchise\", \"Fallout Wiki Founder Banned From Wikia for Promoting Curse [Fallout]\", \"This is the short description\");\n\t\tNewsItem item2 = new NewsItem(2, \"The term 'cute' and 'tool' aren't often associated, but I can't think of a better way to describe this tiny screwdriver designed to look like a miniature tank hanging from your keyring\", \"Adorable Tool Tank Totally Out-Cutes Your Swiss Army Knife [Tools]\", \"This is the short description\");\n\t\tNewsItem item3 = new NewsItem(3, \"The Fraunhofer Institute for High Frequency Physics and Radar Techniques has taken this hot picture of the Russian Mars 13-ton probe Phobos-Grunt as it falls to planet Earth. It may hit tomorrow, but we still don't know where.\", \"Image of 13-Ton Russian Spacecraft As It Falls to Earth—Impact As Early As Tomorrow [Space]\", \"This is the short description\");\n\t\tNewsItem item4 = new NewsItem(4, \"Unless you work at the Pentagon, the key locks on your desk drawers are probably easy to compromise. So with their new Covert, the folks at Quirky figured that a drawer lock can't be picked if it can't be found\", \"Quirky's Invisible Drawer Locks Only Open With a Magnetic Key [Genius]\", \"This is the short description\");\n\t\tNewsItem item5 = new NewsItem(5, \"Thanks Prada for once again completely befuddling me when it comes to high fashion. Because while I certainly love the designs of classic American automobiles, I would never have thought to apply their iconic spoilers and taillights\", \"Prada's 2012 Spring Shoe Collection Inspired By Classic American Cars [Automotive]\", \"This is the short description\");\n\t\t\n\t\tNewsContentPlaceholder contentPlaceholderA = new NewsContentPlaceholder(1, 1);\n\t\tcontentPlaceholderA.addItem(item1);\n\t\tcontentPlaceholderA.addItem(item2);\n\t\tcontentPlaceholderA.addItem(item3);\n\t\tcontentPlaceholderA.addItem(item4);\n\t\tcontentPlaceholderA.addItem(item5);\n\t\t\n\t\tcontentPlaceholders.add(contentPlaceholderA);\n\t\t\n\t\tNewsContentPlaceholder contentPlaceholderB = new NewsContentPlaceholder(2, 1);\n\t\tcontentPlaceholderB.addItem(item1);\n\t\tcontentPlaceholderB.addItem(item2);\n\t\tcontentPlaceholderB.addItem(item3);\n\t\tcontentPlaceholderB.addItem(item4);\n\t\tcontentPlaceholderB.addItem(item5);\n\t\t\n\t\tcontentPlaceholders.add(contentPlaceholderB);\n\t\t\n\t\treturn contentPlaceholders;\n\t}", "public PageList() { \n// fileIO = new CharFileIO(\"utf-8\");\n// We are not currently using this to extract 'title' because it doesn't work \n// for whose title and meta-description tags are not explicitly specified;\n// Such as pages written in scripting languages like .jsp, .asp etc \n// parseJob = new ParseJob();\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "protected void populateContentListView(ArrayList<UnistorEntry> content){\n\n // If first entry is back button, the content array\n // is sorted without this item, which will be added in the first position\n if(content.get(0).getEntryType() == Constants.ENTRY_TYPE_BACK){\n UnistorEntry backEntry = content.remove(0);\n Collections.sort(content, new UnistorEntryComparator());\n content.add(0, backEntry);\n }else{\n Collections.sort(content, new UnistorEntryComparator());\n }\n\n // Setting the adapter with the new items.\n // If the adapter have been previously created, we use notifyDataSetChanged to refresh,\n // that uses fairly less resources than creating a new one.\n if(this.listView.getAdapter() == null){\n UnistorEntryListAdapter listViewAdapter = new UnistorEntryListAdapter(mContext, content);\n this.listView.setAdapter(listViewAdapter);\n // Set context menu for the listview\n registerForContextMenu(listView);\n\n }else{\n UnistorEntryListAdapter listViewAdapter = (UnistorEntryListAdapter)this.listView.getAdapter();\n listViewAdapter.clear();\n listViewAdapter.addAll(content);\n listViewAdapter.notifyDataSetChanged();\n }\n\n\n }", "public List<cn.edu.kmust.flst.domain.flst.tables.pojos.Article> fetchByArticleTitle(String... values) {\n return fetch(Article.ARTICLE.ARTICLE_TITLE, values);\n }", "@Override\n\tpublic List<Map<String, Object>> selectBoardListSearch(String content) {\n\t\treturn null;\n\t}" ]
[ "0.64923805", "0.6181383", "0.6140776", "0.5952848", "0.5935613", "0.5864366", "0.58330524", "0.577091", "0.5766931", "0.5766931", "0.5766931", "0.5766931", "0.5766931", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.5716217", "0.5706918", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.56523395", "0.5640781", "0.56293744", "0.5623156", "0.5599095", "0.55774575", "0.5568762", "0.5550742", "0.5535773", "0.5515869", "0.5468128", "0.5460266", "0.5459539", "0.54592943", "0.5455121", "0.5441776", "0.54310286", "0.5424298", "0.5416192", "0.5416192", "0.5416192", "0.5416192", "0.54075396", "0.5407209", "0.5406167", "0.53960013", "0.53949326", "0.5378021", "0.53624207", "0.53564084", "0.5345708", "0.5338647", "0.53237146", "0.5317038", "0.52797997", "0.5259953", "0.52569014", "0.52529216", "0.52512753", "0.5245529", "0.5235845", "0.5233791", "0.52299464", "0.52199966", "0.5199594", "0.5199594", "0.5199594", "0.5199594", "0.5199594", "0.5199594", "0.51964617", "0.5195779", "0.5193882" ]
0.75404716
0
Lists content content by content in all available languages
public List<ContentData> listContentDataByContent(Content content) { return contentDataDAO.listByContent(content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Language> getAll();", "@Override\n public String getContentLang() {\n return \"en\";\n }", "List<Language> findAll();", "public ArrayList<Book> getListBooklanguage(String laguage);", "public List<PageContent> getAllPageContent();", "@PermitAll\n @Override\n public List<Language> getLanguages(String lang) {\n Map params = new HashMap<String, Object>();\n if (lang != null) {\n params.put(CommonSqlProvider.PARAM_LANGUAGE_CODE, lang);\n }\n params.put(CommonSqlProvider.PARAM_ORDER_BY_PART, \"item_order\");\n return getRepository().getEntityList(Language.class, params);\n }", "@Override\n\tpublic GetContentResponse listContents() {\n\t\tLOGGER.debug(\"LIST ALL CONTENTS\");\n\t\t\n\t\tClientConfig clientConfig = new ClientConfig();\n\t\t \n\t HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(env.getProperty(\"liferay.user.id\"), env.getProperty(\"liferay.user.key\"));\n\t clientConfig.register( feature) ;\n\t \n\t clientConfig.register(JacksonFeature.class);\n\t\t\n\t\tClient client = ClientBuilder.newClient(clientConfig);\n\t\tWebTarget webTarget = client.target(env.getProperty(\"liferay.api.rootpath\")).path(\"article-id/0/content-type/tagtest\");\n\t\t \n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\t\n\t\tResponse response = invocationBuilder.get();\n\t\t \n\t\tGetContentResponse content = response.readEntity(GetContentResponse.class);\n\t\t\n\t\t\n\t\n\t\t \n\t\tLOGGER.info(\"status::\"+response.getStatus());\n\t\t\n\t\t\n\t\t\n\t\tcontent.setStatusCode(200);\n\t\tcontent.setStatusMessage(\"Content List\");\n\t\n\t\treturn content;\n\t}", "public abstract List<String> getContent( );", "List<UserContent> findContent(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t @Param(\"contentLang\") UserContentLanguage contentLang,\n\t\t\t\t\t\t\t\t @Param(\"userId\") Integer userId,\n\t\t\t\t\t\t\t\t @Param(\"substituteUserDrafts\") boolean substituteUserDrafts);", "@RequestMapping(value = \"\",\n method = RequestMethod.GET)\n @ResponseBody\n public ApiResponse<List<SupportedLanguage>> getAllLanguages() {\n LOG.debug(\"REST request to get all languages\");\n\n final ApiResponse <List <SupportedLanguage>> apiResponse = new ApiResponse <List<SupportedLanguage>>();\n\n List<SupportedLanguage> languageList = null;\n\n try {\n languageList = supportedLanguageService.findAllLanguages();\n apiResponse.setData(languageList);\n LOG.debug(\"Size{}\", languageList.size());\n } catch (Exception e) {\n throw new LucasRuntimeException(LucasRuntimeException.INTERNAL_ERROR, e);\n }\n\n return apiResponse;\n\n }", "public List<String> languageSupport() {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.language.support\");\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl);\r\n\r\n\t\t\tif (200 == apiResponse.getStatusLine().getStatusCode()) {\r\n\t\t\t\tJSONArray jsonArray = new JSONArray(EntityUtils.toString(apiResponse.getEntity()));\r\n\t\t\t\tfor (int i = 0; i < jsonArray.length() && i < 10; i++) {\r\n\t\t\t\t\tJSONObject object = (JSONObject) jsonArray.get(i);\r\n\t\t\t\t\tString displayText = (String) object.get(\"name\");\r\n\t\t\t\t\ttwitterResponseList.add(displayText);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn twitterResponseList;\r\n\t}", "private List<String> loadLanguages() {\n\t\tFile directory = new File(\"./src/resources/languages\");\t// load current directory\n\t\t\n\t\tFilenameFilter textFilter = new FilenameFilter() {\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\tif(!name.startsWith(\"Syntax\") && !name.startsWith(\"LanguageCodes\")) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t\t\n\t\tResourceFilter filter = new ResourceFilter(directory, textFilter);\n\t\t\n\t\tList<String> languages = (List<String>) filter.getFilteredList();\n\t\t\n\t\tlanguages = languages.stream()\n\t\t\t\t\t\t\t .map(m -> m.replace(UNWANTED_EXTENSION, \"\"))\n\t\t\t\t \t\t\t .collect(Collectors.toList());\n\t\t\n\t\treturn languages;\n\t}", "@GetMapping(\"api/languages\")\n\tpublic List<Language> index(){\n\t\treturn languageService.allLanguages();\n\t}", "String[] getLanguageList(InputStream inputStream) throws CaptionConverterException;", "public static void getLanguages(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\tArrayList<String> countryLang = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT DISTINCT language FROM Language\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"language\");\n\t\t\t\n\t\t\tcountryLang.add(next);\n\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"language\"));\n\t\t}\n\t\t\n\t\tCollections.sort(countryLang);\n\t\tcountriesListView.getItems().setAll(countryLang);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n}", "@Test\n public void listAllAvailableLanguages() throws IOException {\n System.out.println(\n \"Language preprocessing components for the following languages are available:\\n \"\n + String.join(\", \", LanguageComponents.languages()));\n }", "List<Content> getContentListForApproval();", "public Iterable<Content> findAllContent(){\n\n return contentRepository.findAll();\n }", "public Elements getTextFromWeb(String lang, String word) {\n\t\tToast t = Toast.makeText(this, \"Buscando...\", Toast.LENGTH_SHORT);\n\t\tt.setGravity(Gravity.TOP, 0, 0); // el show lo meto en el try\n\t\tseleccionado.setText(\"\");\n\t\tresultados.clear();\n\t\tlv.setAdapter(new ArrayAdapter<String>(this, R.layout.my_item_list,\n\t\t\t\tresultados));\n\n\t\tElements res = null;\n\t\tif (!networkAvailable(getApplicationContext())) {\n\t\t\tToast.makeText(this, \"¡Necesitas acceso a internet!\",\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tString url = \"http://www.wordreference.com/es/translation.asp?tranword=\";\n\t\t\tif (lang == \"aEspa\") {\n\t\t\t\turl += word;\n\t\t\t\tt.show();\n\t\t\t\t/* De ingles a español */\n\t\t\t\ttry {\n\t\t\t\t\tDocument doc = Jsoup.connect(url).get();\n\t\t\t\t\t/* Concise Oxford Spanish Dictionary © 2009 Oxford */\n\t\t\t\t\tif (doc.toString().contains(\n\t\t\t\t\t\t\t\"Concise Oxford Spanish Dictionary\")) {\n\t\t\t\t\t\tres = procesarOxford(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* Diccionario Espasa Concise © 2000 Espasa Calpe */\n\t\t\t\t\telse if (doc.toString().contains(\n\t\t\t\t\t\t\t\"Diccionario Espasa Concise\")) {\n\t\t\t\t\t\tres = procesarEspasa(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* WordReference English-Spanish Dictionary © 2012 */\n\t\t\t\t\telse if (doc.toString().contains(\n\t\t\t\t\t\t\t\"WordReference English-Spanish Dictionary\")) {\n\t\t\t\t\t\tres = procesarWR(doc);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(this, \"Error getting text from web\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\turl = \"http://www.wordreference.com/es/en/translation.asp?spen=\"\n\t\t\t\t\t\t+ word;\n\t\t\t\tt.show();\n\t\t\t\t/* De español a ingles */\n\t\t\t\ttry {\n\t\t\t\t\tDocument doc = Jsoup.connect(url).get();\n\t\t\t\t\t/* Concise Oxford Spanish Dictionary © 2009 Oxford */\n\t\t\t\t\tif (doc.toString().contains(\n\t\t\t\t\t\t\t\"Concise Oxford Spanish Dictionary\")) {\n\t\t\t\t\t\tres = procesarOxford2(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* Diccionario Espasa Concise © 2000 Espasa Calpe */\n\t\t\t\t\telse if (doc.toString().contains(\n\t\t\t\t\t\t\t\"Diccionario Espasa Concise\")) {\n\t\t\t\t\t\tres = procesarEspasa2(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* WordReference English-Spanish Dictionary © 2012 */\n\t\t\t\t\t// no hay\n\t\t\t\t\t// else if (doc.toString().contains(\n\t\t\t\t\t// \"WordReference English-Spanish Dictionary\")) {\n\t\t\t\t\t// res = procesarWR2(doc);\n\t\t\t\t\t// }\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(this, \"Error getting text from web\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public List<Content> getAllContents() {\n return contentRepo.findAll();\n }", "static WordList get(Language language) {\n return switch (language) {\n case ENGLISH -> readResource(\"bip39_english.txt\");\n };\n }", "public static HashMap<String, String> getLangs() {\r\n\t\t// search for it\r\n\t\tHashMap<String, String> names = new HashMap<String, String>();\r\n\t\tnames.put(\"de\", \"Deutsch (integriert) - German (included)\");\r\n\r\n\t\t// load all files from this dir\r\n\t\tfor (File f : new File(YAamsCore.programPath, \"lang\").listFiles()) {\r\n\t\t\tif (f.isDirectory() && new File(f, \"info.xml\").canRead()) {\r\n\t\t\t\tHashMap<String, String> data = (HashMap<String, String>) FileHelper.loadXML(new File(f, \"info.xml\"));\r\n\t\t\t\tnames.put(f.getName(), data.get(\"title\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "java.util.List<java.lang.String> getContentsList();", "List<Label> findAllByLanguage(String language);", "private void processLanguages(List<File> languageList) {\n // process each drive folder to download;\n for (File f : languageList) {\n String langName = f.getTitle();\n java.io.File localLangFolder = new java.io.File(targetDir, langName);\n if (!localLangFolder.exists())\n localLangFolder.mkdirs();\n getLanguageContents(f, localLangFolder);\n }\n }", "@GetMapping(\"/languages\")\n public List<Language> getLanguages() {\n return languageFacade.getLanguages();\n }", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "public String getContentLanguage() {\n return this.contentLanguage;\n }", "public Future<List<String>> getAvailableLanguages() throws DynamicCallException, ExecutionException {\n return call(\"getAvailableLanguages\");\n }", "private List<File> getContents(String whichFiles) {\n List<File> result = new ArrayList<File>();\n Files f1 = mService.files();\n Files.List request = null;\n\n do {\n try { \n request = f1.list();\n // get the language folders from drive\n request.setQ(whichFiles);\n FileList fileList = request.execute();\n \n result.addAll(fileList.getItems());\n request.setPageToken(fileList.getNextPageToken());\n } catch (UserRecoverableAuthIOException e) {\n startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);\n } catch (IOException e) {\n e.printStackTrace();\n if (request != null) \n request.setPageToken(null);\n }\n } while ((request.getPageToken() != null) \n && (request.getPageToken().length() > 0));\n \n return result;\n }", "List<WorkList<Content>> getMyContentList();", "public void setLanguages(List<String> languages) {\n this.languages = languages;\n }", "@Override\n public String getListTitle() {\n return \"LANGUES\";\n }", "@Override\n\tpublic IReplacement getAllReplacements(String lang){\n\t\t//connects to a DB and gets new values and names from there\n\t\tList<AutoreplaceL> data=dao.getByPropertiesValuePortionOrdered(\n\t\t\t\tnull, null, WHERE_NAMES, new Object[]{Boolean.TRUE, lang}, 0, -1, ORDER_BY, ORDER_HOW);\n\t\tList<String> values=new ArrayList<String>(data.size());\n\t\tList<Pattern> names_pattern=new ArrayList<Pattern>(data.size());\n\t\tfor (int i=0;i<data.size();i++){\n\t\t\tnames_pattern.add(Pattern.compile(Pattern.quote(data.get(i).getLocaleParent().getCode())));\n\t\t\tvalues.add(data.get(i).getText());\n\t\t}\n\t\treturn new Replacement(values, names_pattern);\n\t}", "public List<GenericTextModel> selector(PageEnum page) {\n\t\tString value = \"Metacube is a Software Engineering Services company with experience in\"\n\t\t\t\t+ \" developing enterprise applications for a wide spectrum of domains including\"\n\t\t\t\t+ \" global trade management, supply chain analytics, manufacturing analytics, business\"\n\t\t\t\t+ \" continuity planning, CRM, content management and eCommerce. These applications have\"\n\t\t\t\t+ \" been developed on a variety of technology platforms.\";\n\t\tGenericTextModel model;\n\t\t\n\t\t\n\t\tif (page.equals(PageEnum.LandingPage)) {//if Landing Page\n\t\t\tmodel = new GenericTextModel(value);\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeListPage)) { //if employee List page\n\t\t\tmodel = new GenericTextModel(\"Employee List Page\");\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeDetailsPage)) { //if employee Detail page\n\t\t\tmodel = new GenericTextModel(\"Employee Detail Page\");\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeRegistrationPage)) {//if employee Registeration page\n\t\t\tmodel = new GenericTextModel(\"Employee Registration/Edit Page\");\n\t\t\tcontentList.add(model);\n\t\t} else {//if other then all pages\n\t\t\tmodel = new GenericTextModel(\"Someting Wrong happen\");\n\t\t\tcontentList.add(model);\n\t\t}\n\n\t\treturn contentList;\n\t}", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "public void showWordsListInfo(String path) throws IOException {\r\n\t ArrayList<String> listOfWords=new ArrayList<String>();//creem lista\r\n\t @SuppressWarnings(\"resource\") \r\n\tBufferedReader bfr=new BufferedReader(new FileReader(new File(path)));//initializam un buffer reader cu calea URL a unui fisier\r\n\t String word=\"\"; \r\n\t while ((word = bfr.readLine()) != null) \t //pentru fiecare linie citita, incarcam lista cu respectivul cuvant de pe linie. \r\n\t listOfWords.add(word);\r\n\t for (String element_word : listOfWords) {\r\n\t \t System.out.println(element_word);\r\n\t\t\tshowInfoWord(element_word); //pentru fiecare cuvant din lista afisam informatiile :cuvantul, Acceptata/Neacceptat, starea finala.\r\n\t\t\t\r\n\t\t}\r\n }", "public javax.sip.header.ContentLanguageHeader getContentLanguage() {\n return (ContentLanguageHeader)\n getHeader(ContentLanguageHeader.NAME);\n \n }", "public Future<List<String>> getSupportedLanguages() throws DynamicCallException, ExecutionException {\n return call(\"getSupportedLanguages\");\n }", "com.clarifai.grpc.api.ConceptLanguage getConceptLanguages(int index);", "private Collection<String> searchMessagesIntoViewFile(String folderName, String viewName){\r\n\t\tCollection<String> res = new HashSet<String>();\r\n\t\tFileManager fileMngr = new FileManager(viewsFoldersPath+\"/\"+folderName+\"/\"+viewName);\r\n\t\tString content;\r\n\t\tint codeBeginIndex, codeEndIndex; //i18n&l10n start and end indexes\r\n\t\t\r\n\t\t//code=codigoi18n&l10n\r\n\t\tcontent = fileMngr.readFile();\r\n\t\tcodeBeginIndex = content.indexOf(\"code=\")+6;\r\n\t\twhile(true){\r\n\t\t\tcodeEndIndex = content.indexOf(\"\\\"\", codeBeginIndex);\r\n\t\t\tres.add(content.substring(codeBeginIndex, codeEndIndex));\r\n\t\t\tcodeBeginIndex = content.indexOf(\"code=\", codeEndIndex)+6;\r\n\t\t\t\r\n\t\t\tif(codeBeginIndex<codeEndIndex) break;\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public List<Locale> getTranslationLocales(String edition);", "@Test\n\tpublic void run() {\n\t\tWebDriver webdriver = WebDriverManager.getWebDriver();\n\t\twebdriver.get(WikiPag.url);\n\t\t\n\t\t//pesquisa pelo termo\n\t\tBy byInputSearch = By.id(\"searchInput\");\n\t\tWebElement elementInputSearch = webdriver.findElement(byInputSearch);\n\t\telementInputSearch.sendKeys(termo);\n\t\twebdriver.findElement(By.id(\"searchButton\")).click();\n\t\t\n\t\tString xpath = \"(.//div[@id='p-lang']/div/ul)\";\n\t\tSystem.out.println(webdriver.findElement(By.xpath(xpath)).getText());\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic List<Language> selectAllByEntity(Language language) {\n\t\treturn null;\r\n\t}", "public List<Language> getDownloadableLanguage() {\n\t\tList<Language> languages = languageManager.getAllAvailable();\n\t\tList<Language> result = new ArrayList<Language>();\n\t\tfor(Language language : languages){\n\t\t\tif(language.getBasePackages() != null &&\n\t\t\t\t\tlanguage.getBasePackages().size() != 0){\n\t\t\t\tresult.add(language);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "List<UserContentAccess> findContentAccess();", "public void setLanguages(String languages) {\n this.languages = languages;\n }", "public List<Language> getAllLanguages() {\r\n\r\n\t\tStringBuilder sbHql = new StringBuilder();\r\n\t\tsbHql.append(\"from Language\");\r\n\r\n\t\tQuery query = getSession().createQuery(sbHql.toString());\r\n\r\n\t\tList<Language> languages = query.list();\r\n\r\n\t\treturn languages;\r\n\t}", "public List<String> getAvailableLanguages() throws DynamicCallException, ExecutionException {\n return (List<String>)call(\"getAvailableLanguages\").get();\n }", "private static void englishReport1(Page[] ns0pages) {\n String englishHeader = \"==English==\";\n int numEnglish = 0;\n for (int i = 0; i < ns0pages.length; i++) {\n if (ns0pages[i].text.contains(englishHeader)) {\n numEnglish++;\n }\n }\n System.out.println(\"There are \" + numEnglish + \" articles with an English header.\");\n\n }", "public void setContent(List<String> content){\n\t\t\tif (canHaveContent())this.content = content;\n\t\t}", "List<String> showNewsAndMessages();", "public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}", "List<TermLang> findByProjectLangId(long id, Pageable pageable);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<T> getAllByLanguage(Lang lang) {\r\n\t\treturn getSqlMapClientTemplate().queryForList(\r\n\t\t\t\tSqlMapUtils.getSelectByLanguage(getShortName()), lang);\r\n\t}", "public static List<NLText> processTexts(List<String> texts) {\n// IProtocolClient api = ProtocolFactory.getHttpClient(Locale.ENGLISH, \"ui.disi.unitn.it\", 8092);\n LOG.warn(\"TODO - USING HARDCODED ENGLISH when creating sweb client in processTexts\");\n IProtocolClient api = ProtocolFactory.getHttpClient(Locale.ENGLISH);\n\t\tPipelineClient pipelineClient = new PipelineClient(api);\n NLPInput input = new NLPInput();\n input.setText(texts);\n //input.setNlpParameters(params);\n\n// NLText[] result = pipelineClient.run(\"KeywordTextPipeline\", input, 1l);\n NLText[] result = pipelineClient.run(\"ODHPipeline\", input, 1l);\n \n\t\treturn Arrays.asList(result);\n\t}", "@Override\n\tpublic List<Map<String, Object>> selectBoardListSearch(String content) {\n\t\treturn null;\n\t}", "java.util.List<com.clarifai.grpc.api.ConceptLanguage> \n getConceptLanguagesList();", "public List<String> getContent(){\n\t\t\tif (canHaveContent()){\n\t\t\t\treturn this.content;\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t}", "private void getLanguageContents(final File languageFolder, final java.io.File localLanguageFolder) {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n // gets only the folders in the language folder\n String whichFiles = \"'\" + languageFolder.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET;\n List<File> files = getContents(whichFiles);\n \n prune(localLanguageFolder, files);\n processFolders(files, localLanguageFolder);\n }\n });\n t.start();\n }", "public static void main(String[] args){\r\n Language myLang = new Language(\"Willish\", 5, \"Mars\", \"verb-noun-verb-adjective\");\r\n Mayan mayan = new Mayan(\"Ki'che'\", 2330000);\r\n SinoTibetan sino1 = new SinoTibetan(\"Chinese Tibetan\", 100000);\r\n SinoTibetan sino2 = new SinoTibetan(\"Tibetan\", 200000);\r\n ArrayList<Language> langList = new ArrayList<Language>();\r\n langList.add(myLang);\r\n langList.add(mayan);\r\n langList.add(sino1);\r\n langList.add(sino2);\r\n \r\n for (Language allLangs : langList){\r\n allLangs.getInfo();\r\n }\r\n }", "public String[] getLanguages() {\n/* 238 */ return getStringArray(\"language\");\n/* */ }", "public void listContent(String filter){\r\n \r\n try {\r\n // Clear Data\r\n int lastRow = tblContentList.getRowCount() - 1;\r\n while (lastRow > -1) {\r\n modelContentList.removeRow(lastRow);\r\n lastRow--;\r\n }\r\n \r\n // Add Userinfo\r\n int curRow = 0;\r\n String idx;\r\n for (Product product : Product.listProduct(filter, \"category, name\")) {\r\n \r\n try{\r\n modelContentList.addRow(new Object[0]);\r\n idx = IDPF_PRODUCT + IDFMT_PRODUCT.format(product.getId());\r\n modelContentList.setValueAt(idx, curRow, 0);\r\n\r\n modelContentList.setValueAt(product.getCode(), curRow, 1);\r\n modelContentList.setValueAt(product.getName(), curRow, 2);\r\n\r\n Category category = new Category(product.getCategory()); \r\n modelContentList.setValueAt(category.getName(), curRow, 3); \r\n\r\n modelContentList.setValueAt(DFMT_PRICE.format(product.getCost()), curRow, 4);\r\n modelContentList.setValueAt(DFMT_PRICE.format(product.getPrice()), curRow, 5);\r\n\r\n modelContentList.setValueAt(product.getDescription(), curRow, 6);\r\n modelContentList.setValueAt(product.getId(), curRow, 7);\r\n modelContentList.setValueAt(product.getStatus(), curRow, 8);\r\n\r\n curRow++;\r\n }catch(Exception e){\r\n \r\n }\r\n \r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n }", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "@Test(priority = 14)\n\tpublic void testTranslationsLists_From_Translation_0_10_OnAlQuranPage() throws Exception {\n\t\tSystem.out.println(\"<------Testing Translations Lists From_Translation_1_10 On Al-Quran Page------->\\n\");\n\t\ttestTranslations_chunk_Wise(0, 10);\n\t}", "public ArrayList<Language> listLanguages(){\n\t\t\t\n\t\t\tconnectToDatabase();\n\t\t\tArrayList<Language> languageArray = new ArrayList<Language>();\n\t\t\ttry {\n\t\t\t\tStatement create = connection.createStatement();\n\t\t\t\tResultSet result = create.executeQuery(\"Select languages.ID as id, languages.Name AS language FROM languages;\");\n\n\t\t\t\twhile(result.next()){\n\t\t\t\t\t\n\t\t\t\t\tLanguage newLanguage = new Language(result.getInt(\"id\"), result.getString(\"language\"));\n\t\t\t\t\tlanguageArray.add(newLanguage);\n\t\t\t\t}\n\t\t\t\treturn languageArray;\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"An error occurred when retrieving languages from the database.\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn languageArray;\n\t\t\t}\n\t\t\t\n\t\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Question> extractionQuestion(String directory) throws IOException, ClassNotFoundException{\n\t\tArrayList<Question> allQuestions = new ArrayList<>();\n\t\tFile[] files = new File(directory).listFiles();\n\t\tfor (File curFile : files) {\n\t\t\tString filePath = curFile.getAbsolutePath();\n\t\t\tList<CrawledPage> lcp;\n\t\t\tFileInputStream fis = new FileInputStream(filePath);\n\t\t\tGZIPInputStream gzipin = new GZIPInputStream(fis);\n\t\t\tObjectInputStream objectIn = new ObjectInputStream(gzipin);\n\t\t\tlcp = (List<CrawledPage>) objectIn.readObject();\n\t\t\tobjectIn.close();\n\t\t\tfor (int i = 0; i < lcp.size(); i++) {\n\t\t\t\tString link = lcp.get(i).url;\n\n\t\t\t\tif (!link.contains(\"wikihow.com/Main-Page\")\n\t\t\t\t\t\t&& link.lastIndexOf(\":\") < 6 && !link.contains(\"?\")\n\t\t\t\t\t\t&& link.lastIndexOf(\"/\") < 24\n\t\t\t\t\t\t&& !link.contains(\"Powered-and-Inspired-by-Mediawiki\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/About-wikiHow\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Terms-of-Use\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Writer%27s-Guide\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Picture-Patrol\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Categories\")\n\t\t\t\t\t\t) {\n\t\t\t\t\tSystem.out.println(link);\n\t\t\t\t\t// String content = lcp.get(i).content;\n\t\t\t\t\t// System.out.println(content);\n\t\t\t\t\t// Do something with the content\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString content = lcp.get(i).content;\n\t\t\t\t\t\n\t\t\t\t\tif (!content.equals(\"\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tExtraction extraction = new Extraction();\n\t\t\t\t\t\t//Extraction title\n\t\t\t\t\t\tString title = extraction.extractTitle(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract ques_explanation: Not really clean\n\t\t\t\t\t\tString expl = extraction.extractExplanation(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract tips\n\t\t\t\t\t\tString tips = extraction.extractTips(content);\t\n\t\t\t\t\t\n\t\t\t\t\t\t//Extract warnings\n\t\t\t\t\t\tString warnings = extraction.extractWarnings(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract videos\n\t\t\t\t\t\tString video = extraction.extractVideo(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract things\n\t\t\t\t\t\tArrayList<Things> things = extraction.extractThings(content);\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract ingredients\n\t\t\t\t\t\tArrayList<Ingredients> ingredients = extraction.extractIngredients(content);\n\t\t\t\n\t\t\t\t\t\t//Extract category\n\t\t\t\t\t\tArrayList<Category> categories = extraction.extractCategory(content);\n\n\t\t\t\t\t\t//Extract answer\n\t\t\t\t\t\tArrayList<Method> answer = extraction.extractAnswer(content);\n\n\t\t\t\t\t\tQuestion newQuestion = new Question(title, expl, answer,\n\t\t\t\t\t\t\t\tcategories, link, tips, warnings, video, things, ingredients);\n\t\t\t\t\t\t\n\t\t\t\t\t\tallQuestions.add(newQuestion);\n\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\treturn allQuestions;\n\t}", "List<JournalPage> getAllPages();", "@Override\n\tpublic Vector<Subject> getSubjectsInMod(int modId, int langid) {\n\t\treturn eDao.getSubjectsInMod(modId, langid, \"CONTENT\");\n\t}", "public List<Language> getLanguages() {\n return metaDao().queryLanguages();\n }", "public List<String> getContent()\n {\n return fContent;\n }", "private void odfContentList(Document document) {\n\t\t// mimetype\n\t\t// content\n\t\t// styles\n\t\t// meta\n\t\t// settings\n\t\t// META-INF/manifest - this thing should tell us what is in the document\n\t\t// Versions\n\t\t// Thumbnails\n\t\t// Pictures\n\n\t\tOdfPackage pkg = document.getPackage();\n\n\t\tfor (String file : pkg.getFilePaths()) {\n\t\t\tif (file != null)\n\t\t\t\tfilePaths.add(file);\n\t\t}\n\n\t}", "public LanguageList getLanguageList() {\r\n return languageList;\r\n }", "@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();", "public List<String> content() {\n return content;\n }", "public List<MCRContent> getAll() throws IOException, JDOMException, SAXException {\n\t\tList<MCRContent> resultsSet = new ArrayList<>();\n\t\t// build basic part of API URL\n\t\tString baseQueryURL = API_URL + \"/affiliation/AFFILIATION_ID:\" + AFFIL_ID + \"?apikey=\" + API_KEY\n\t\t\t\t+ \"&view=DOCUMENTS\";\n\n\t\t// divide API request in blocks a XXX documents (in final version 200\n\t\t// documents per block, number of blocks determined by total number of\n\t\t// documents)\n\t\t// int numberOfPublications = getNumberOfPublications(baseQueryURL);\n\t\t// at the moment only testing, two blocks a 10 documents\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tint start = 10 * i;\n\t\t\tint count = 10;\n\n\t\t\t// build API URL\n\t\t\tString queryURL = baseQueryURL + \"&start=\" + start + \"&count=\" + count + \"&view=DOCUMENTS\";\n\n\t\t\t// add block to list of blocks\n\t\t\tresultsSet.add(getResponse(queryURL));\n\t\t}\n\t\t// return API-response\n\t\treturn resultsSet;\n\t}", "private static List<String> loadDocuments(String path) throws Exception {\n\t\tFile folder = new File(path);\n\t\tArrayList<String> documents = new ArrayList<String>();\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tSystem.out.println(fileEntry.getName());\n\t\t\tif (fileEntry.isFile() && !fileEntry.isHidden()) {\n\t\t\t\tString content = getTextFromHtml(fileEntry);\n\t\t\t\tdocuments.add(content);\n\t\t\t}\n\t\t}\n\t\treturn documents;\n\t}", "public List<String> getSupportedLanguages() throws DynamicCallException, ExecutionException {\n return (List<String>)call(\"getSupportedLanguages\").get();\n }", "@RequestMapping(value = \"/translations\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<Translation>> getAllTranslations(Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of Translations\");\n Page<Translation> page = translationRepository.findAll(pageable); \n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/translations\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "public List<ContentTitle> listContentTitlesByContent(Content content) {\n return contentTitleDAO.listByContent(content);\n }", "public Map<Locale, T> getAvailableLocalesAndTranslatables() {\n Map<Locale, T> returnMap = new HashMap<Locale, T>();\n List<T> items = (List<T>) MongoEntity.getDs().find(this.getClass(), \"reference\", this.reference).asList();\n\n if (items != null && !items.isEmpty()) {\n for (T item : items) {\n returnMap.put(item.language, item);\n }\n }\n return returnMap;\n }", "public String[] list(String text, String von, String bis) throws RemoteException;", "@Override\n\tpublic List<Movie> searchMovieByLang(String lang) {\n\t\tString sql=\"Select * from movie where LANGUAGE='\"+lang+\"'\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> langMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(langMList==null||langMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn langMList;\n\t}", "public void loadAllLists(){\n }", "public java.util.List<VcmsArticleType> findAll();", "public interface ContentList extends Enumeration\n{\n /**\n * Gets the number of ContentEntry objects in this ContentList.\n * \n * @return Number of entries in this list. Returns 0 if the list is empty.\n */\n public int size();\n\n /**\n * Gets to total number of ContentEntry matches in the filter, browse or\n * search operation that generated this ContentList. This value SHALL be\n * greater than or equal to the value returned from the size() method of\n * this ContentList.\n * \n * This value SHALL be greater than the value returned from the size()\n * method of this ContentList if the <i>requestedCount</i> parameter of the\n * originating content entry request was less than the total entry matches\n * of the requesting operation.\n * \n * See {@link org.ocap.hn.ContentServerNetModule}.\n * \n * \n * @return the total number of ContentEntry matches from the originating\n * content entry request\n */\n public int totalMatches();\n\n /**\n * Sets the metadata sort order of the items in this list based on metadata\n * key identifiers using signed property values.\n * \n * The sortOrder parameter of this method is a string containing the\n * properties and sort modifiers to be used to sort the resulting\n * ContentList. The format of the string containing the sort criteria shall\n * follow the format defined in UPnP Content Directory Service 3.0\n * specification section 2.3.16: A_ARG_TYPE_SortCriteria.\n * \n * @param sortOrder\n * a String representing the sortOrder for this ContentList.\n */\n public void setSortOrder(String sortOrder);\n\n /**\n * Gets the sort order set by the #setSortOrder method.\n * \n * @return The array of sort keys, or null if the setPreferredSortOrder\n * method has not been called for this list.\n */\n public String getSortOrder();\n\n /**\n * Finds the first {@link ContentEntry} which identifier for the key '\n * <code>key</code>' equals the given object <code>obj</code>. For instance,\n * if key == \"Title\" then obj represents the title, e.g. \"Best movie ever\"\n * and this method will return the first ContentEntry in the list than\n * contains a match for the (key, value) pair.\n * \n * @param key\n * The identifier key.\n * @param value\n * The object to compare to\n * \n * @return The first matched ContentEntry, or null if no match found.\n */\n public ContentEntry find(String key, Object value);\n\n /**\n * Finds the first ContentEntry which matches the search. The keys and\n * values parameters are parallel arrays. For example, if keys[0] == \"TITLE\"\n * and values[0] == \"Best movie ever\", the implementation SHALL match the\n * first ContentEntry in the list where the metadata contains that (key,\n * value) pair, as well as matches any other entries in the parameter\n * arrays.\n * \n * @param keys\n * Array of identifier keys.\n * @param values\n * Array of values.\n * \n * @return The first matching ContentEntry found, or null if no match. If\n * the parameter arrays are not the same length this method returns\n * null.\n */\n public ContentEntry find(String[] keys, Object[] values);\n\n /**\n * Finds all ContentEntry objects which match the search. Same as the\n * #find(String[], Object[]) method except all matches are returned instead\n * of just the first match.\n * \n * @param keys\n * Array of identifier keys.\n * @param values\n * Array of values.\n * \n * @return A ContentList containing all matches, or null if no matches were\n * found.\n */\n public ContentList findAll(String[] keys, Object[] values);\n\n /**\n * Filters the ContentList. The returned ContentList is a new ContentList\n * only containing ContentItems on which ContentDatabaseFilter.accept\n * returned true.\n * \n * @param filter\n * the ContentDatabaseFilter\n * \n * @return newly created ContentList containing only the filtered\n * ContentItems.\n * \n * @throws DatabaseException\n * ; see DatabaseException for exception reasons.\n */\n public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;\n}", "public Iterable<Content> findByActive(boolean active){\n\n return contentRepository.findByIsActive(active);\n }", "public Iterable<Content> findAllFeaturedContent(){\n\n return contentRepository.findByIsFeatured(true);\n }", "public List<Content> listContents(Content parent, List<ContentType> types, Integer firstResult, Integer maxResults) {\n return contentDAO.listByParentAndTypesAndArchived(parent, types, Boolean.FALSE, firstResult, maxResults);\n }", "@RequestMapping(value = \"/txfileexchange\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<Description> getTxFileExchangeList(Locale locale) {\n return Collections2.transform(\n translationSourceService.getTxFileExchangeList(),\n Description.fromDescriptible(strings, locale)\n );\n }", "private static ArrayList<String> getAllKeyWord(String [] lignes){\n ArrayList<String> res= new ArrayList<>();\n\n // La recherche dans le pdf\n for(String ligne : lignes){\n for(String mot : ligne.split(\" |/|-|\\\\(|\\\\)|,\")){\n\n try{\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c#\".toLowerCase(Locale.ENGLISH)))\n res.add(\"csharp\");\n else\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c++\".toLowerCase(Locale.ENGLISH)))\n res.add(\"cpp\");\n else\n if(!mot.toLowerCase(Locale.ENGLISH).matches(\"| |à|de|je|un|et|une|en|d'un|d'une|le|la|avec|:|\\\\|\"))\n res.add(mot.toLowerCase(Locale.ENGLISH));\n }catch (IllegalArgumentException e){\n //System.out.println(e.getMessage());\n continue;\n }\n }\n //System.out.println(\"line: \"+s);\n }\n return (ArrayList) res.stream().distinct().collect(Collectors.toList());\n }", "static void list(String content, MessageChannel chan){\n if(!content.toLowerCase().startsWith(\"!list\"))\n return;\n\n List<Request> requestsForChannel = Util.findAllRequestsByChannel(requestList, chan);\n\n if(requestsForChannel.size() > 0){\n StringBuilder str = new StringBuilder(\"Image posting cycles for this channel: \");\n for(Request req : requestsForChannel){\n str.append(\"\\n- Tags: \\\"\")\n .append(req.getSearchTags())\n .append(\"\\\" every \")\n .append(Util.parseDuration(req.getTimeInterval()));\n }\n chan.sendMessage(str.toString()).queue();\n }\n else {\n chan.sendMessage(\"I'm not posting any images in this channel.\").queue();\n }\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public PageInfoType[] getPageContent() {\n return new PageInfoType[]{new PageInfoType(ContentType.EnumC30787c.Topic, this.f90217G.mo110111g())};\n }", "public List<PmPropertyLanguageBean> selectPropertyWithLanguages(Map Paramter);", "public List<String> iterateProgramPageList();", "public Language[] getLanguageList() {\n return languageList;\n }", "public List<LocalCentroComercial> consultarLocalesCentroComercialRegistrados();", "public void run() {\n LOG.info(\"Starting Contentful crawling\");\n //Partition of ContentTypes: TRUE: vocabularies and FALSE: non-vocabularies/web content\n Map<Boolean, List<CMAContentType>> contentTypes = getContentTypes();\n List<CMAContentType> vocContentTypes = contentTypes.get(Boolean.TRUE);\n List<CMAContentType> webContentTypes = contentTypes.get(Boolean.FALSE);\n\n //Extract vocabularies meta data\n VocabularyTerms vocabularyTerms = getVocabularyTerms(vocContentTypes);\n\n //Mapping generator can be re-used for all content types\n MappingGenerator mappingGenerator = new MappingGenerator(vocContentTypes);\n\n //Gets the ContentType.resourceId for news and articles, which vary by space\n newsContentTypeId = getContentTypeId(webContentTypes, configuration.getNewsContentType());\n articleContentTypeId = getContentTypeId(webContentTypes, configuration.getArticleContentType());\n projectContentTypeId = getContentTypeId(webContentTypes, configuration.getProjectContentType());\n\n\n //Crawl all Content Types, except for vocabularies\n crawlContentTypes(webContentTypes, mappingGenerator, vocabularyTerms);\n LOG.info(\"Contentful crawling has finished\");\n }", "private void LoadContent()\n {\n \n }", "@RequestMapping(value = \"/txsource\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<Description> getTxSourceList(Locale locale) {\n return Collections2.transform(\n translationSourceService.getTranslationSourceList(),\n Description.fromDescriptible(strings, locale)\n );\n }" ]
[ "0.6701373", "0.6172511", "0.6165597", "0.6054917", "0.60530925", "0.60014415", "0.59606457", "0.59209895", "0.58235335", "0.5739104", "0.5716091", "0.56936306", "0.5686238", "0.5601398", "0.55524474", "0.55519885", "0.5533608", "0.55332476", "0.55287296", "0.55240256", "0.5506837", "0.55065304", "0.55029696", "0.5497758", "0.5428492", "0.5397284", "0.53846157", "0.53620124", "0.53606486", "0.5343087", "0.5339488", "0.5336485", "0.53348315", "0.5301255", "0.52952987", "0.52690107", "0.5266012", "0.52639085", "0.5250855", "0.5245034", "0.5215748", "0.5199744", "0.5178961", "0.5157903", "0.5153675", "0.5152946", "0.5144951", "0.51442456", "0.5130215", "0.5125029", "0.5112367", "0.51065636", "0.50973314", "0.50911486", "0.5085895", "0.50787914", "0.5066437", "0.506634", "0.50608724", "0.5057835", "0.5053913", "0.5037436", "0.5030891", "0.5016241", "0.5006067", "0.50058985", "0.49966252", "0.49907568", "0.49897614", "0.49822032", "0.49774444", "0.49752346", "0.4974088", "0.49714544", "0.49659482", "0.49657285", "0.4965694", "0.49619287", "0.49490413", "0.49464616", "0.4945225", "0.49433595", "0.49389815", "0.4937554", "0.4937461", "0.4924434", "0.49154615", "0.49059466", "0.49030307", "0.48997214", "0.4890729", "0.48878175", "0.48802614", "0.48788252", "0.48630416", "0.48573738", "0.4841148", "0.48380128", "0.48371813", "0.48332137" ]
0.5214615
41
Finds content image metadata by imageId and content
public ContentImageMeta findContentImageMetaByIdAndContent(Long imageId, Content content) { return contentImageMetaDAO.findByIdAndContent(imageId, content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ImageContentData findContentData(String imageId);", "public ContentImageData findContentImageDatabyContentImageMeta(ContentImageMeta contentImageMeta) {\n return contentImageDataDAO.findByContentImageMeta(contentImageMeta);\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "Receta getByIdWithImages(long id);", "UserContentMetadata findContentMetadataById(@Param(\"contentUid\") Long contentUid);", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "@Override\n\tpublic List<PersonalisationMediaModel> getImageByID(final String imageID)\n\t{\n\t\tfinal String query1 = \"Select {pk} from {PersonalisationMedia} Where {code}=?imageId and {user}=?user\";\n\t\t/**\n\t\t * select distinct {val:pk} from {PersonalisationMediaModel as val join MediaModel as media on\n\t\t * {media:PK}={val.image} join User as user on {user:pk}={val:user} and {media:code}=?imageId and {user:pk}=?user}\n\t\t */\n\t\tfinal UserModel user = getUserService().getCurrentUser();\n\t\tfinal FlexibleSearchQuery fQuery = new FlexibleSearchQuery(query1);\n\t\tfinal Map<String, Object> params = new HashMap<>();\n\t\tparams.put(\"imageId\", imageID);\n\t\tparams.put(\"user\", user);\n\t\tfQuery.addQueryParameters(params);\n\t\tLOG.info(\"getImageByID\" + fQuery);\n\t\tfinal SearchResult<PersonalisationMediaModel> searchResult = flexibleSearchService.search(fQuery);\n\t\treturn searchResult.getResult();\n\t}", "public Content getContentMeta(Integer contentId) {\n String sql = \"SELECT * FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, new ContentMetaRowMapper(), contentId);\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index);", "public abstract Object getMetadata(String key);", "Object getMetadata(String key);", "public PictureData searchPicture(String pictureId) {\n\t\treturn null;\n\t}", "public List<ContentImageMeta> listContentImageMetaByContentFilterByType(Content content, String type) {\n if (type == null) {\n return contentImageMetaDAO.listByContent(content);\n }\n \n return contentImageMetaDAO.listByContentAndType(content, type);\n }", "public ResourceContent getMetadata() throws IOException;", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByTransform(int index);", "public void findImages() {\n \t\tthis.mNoteItemModel.findImages(this.mNoteItemModel.getContent());\n \t}", "public interface IImageMetadata {\n\n public String getImageType();\n\n public void setImageType(String imageType);\n\n public String getFilename();\n\n public void setFilename(String filename);\n\n public DateTime getLastModified();\n\n public void setLastModified(DateTime d);\n\n public DateTime getCreated();\n\n public void setCreated(DateTime d);\n\n public long getSize();\n\n public void setSize(long size);\n\n public String getReadableSize();\n\n}", "public Optional<PagedSearchIterable<GHContent>> getGHContents(String org, String img)\n throws IOException, InterruptedException {\n PagedSearchIterable<GHContent> contentsWithImage = null;\n for (int i = 0; i < 5; i++) {\n contentsWithImage = findFilesWithImage(img, org);\n if (contentsWithImage.getTotalCount() > 0) {\n break;\n } else {\n getGitHubUtil().waitFor(TimeUnit.SECONDS.toMillis(1));\n }\n }\n\n int numOfContentsFound = contentsWithImage.getTotalCount();\n if (numOfContentsFound <= 0) {\n log.info(\"Could not find any repositories with given image: {}\", img);\n return Optional.empty();\n }\n return Optional.of(contentsWithImage);\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByHandlerOrBuilder(\n int index);", "@Override\r\n\tpublic String searchimage(int cbid) throws Exception {\n\t\treturn dao.searchimage(cbid);\r\n\t}", "com.google.cloud.compute.v1.Metadata getMetadata();", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByHandlerList();", "MediaMetadata get(String uuid);", "public void dumpImageMetaData(Uri uri) {\n // BEGIN_INCLUDE (dump_metadata)\n\n // The query, since it only applies to a single document, will only return one row.\n // no need to filter, sort, or select fields, since we want all fields for one\n // document.\n Cursor cursor = getActivity().getContentResolver()\n .query(uri, null, null, null, null, null);\n\n try {\n // moveToFirst() returns false if the cursor has 0 rows. Very handy for\n // \"if there's anything to look at, look at it\" conditionals.\n if (cursor != null && cursor.moveToFirst()) {\n\n // Note it's called \"Display Name\". This is provider-specific, and\n // might not necessarily be the file name.\n String displayName = cursor.getString(\n cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n //Toast.makeText(getActivity(),\"Display Name: \"+ displayName, Toast.LENGTH_SHORT).show();\n imageInfo += \"Name:\" + displayName;\n int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);\n // If the size is unknown, the value stored is null. But since an int can't be\n // null in java, the behavior is implementation-specific, which is just a fancy\n // term for \"unpredictable\". So as a rule, check if it's null before assigning\n // to an int. This will happen often: The storage API allows for remote\n // files, whose size might not be locally known.\n String size = null;\n if (!cursor.isNull(sizeIndex)) {\n // Technically the column stores an int, but cursor.getString will do the\n // conversion automatically.\n size = cursor.getString(sizeIndex);\n } else {\n size = \"Unknown\";\n }\n imageInfo += \"Size: \" + size;\n //Toast.makeText(getActivity(),\"Size: \"+size,Toast.LENGTH_SHORT).show();\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n // END_INCLUDE (dump_metadata)\n }", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotFoundException(\"Could not find content for contentID: \" + contentID);\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByTransformOrBuilder(\n int index);", "UserContent findContentById(@Param(\"contentUid\") long contentUid);", "public Image getImageById(final String imageId)\n {\n GetImageByIdQuery getImageByIdQuery = new GetImageByIdQuery(imageId);\n List<Image> ImageList = super.queryResult(getImageByIdQuery);\n if (CollectionUtils.isEmpty(ImageList) || ImageList.size() > 1)\n {\n LOG.error(\"The Image cannot be found by this id:\" + imageId);\n return null;\n }\n return ImageList.get(0);\n }", "@Test\r\n\tpublic void test1() {\n\t\tFile jpegFile = new File(\"C:\\\\Users\\\\lefto\\\\Downloads\\\\flickr\\\\test2\\\\20170814-150511-6_36561788895_o_EDIT.jpg\");\r\n\t\tMetadata metadata;\r\n\t\ttry {\r\n\t\t\tmetadata = ImageMetadataReader.readMetadata(jpegFile);\r\n\t\t\tfor (Directory directory : metadata.getDirectories()) {\r\n\t\t\t\tfor (Tag tag : directory.getTags()) {\r\n\t\t\t\t\tSystem.out.println(tag);\r\n//\t\t\t\t\tSystem.out.println(tag.getDirectoryName() + \", \" + tag.getTagName() + \", \" + tag.getDescription());\r\n//\t\t\t\t\tif (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL)\r\n//\t\t\t\t\t\tSystem.out.println(tag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ImageProcessingException | IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "@Override\n \t\tpublic void populateImageMetadata() {\n \n \t\t\t// populate core metadata\n \n \t\t\tfinal OMEXMLMetadata omexmlMeta = getOmeMeta().getRoot();\n \n \t\t\tfor (int s = 0; s < getImageCount(); s++) {\n \n \t\t\t\tfinal ImageMetadata m = get(s);\n \t\t\t\ttry {\n \t\t\t\t\tm.setPlanarAxisCount(2);\n \t\t\t\t\tm.setAxisLength(Axes.X, omexmlMeta.getPixelsSizeX(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffWidth = (int) firstIFD.getImageWidth();\n \t\t\t\t\tif (m.getAxisLength(Axes.X) != tiffWidth && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeX mismatch: OME=\" + m.getAxisLength(Axes.X) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffWidth);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Y, omexmlMeta.getPixelsSizeY(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffHeight = (int) firstIFD.getImageLength();\n \t\t\t\t\tif (m.getAxisLength(Axes.Y) != tiffHeight && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeY mismatch: OME=\" + m.getAxisLength(Axes.Y) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffHeight);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Z, omexmlMeta.getPixelsSizeZ(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.CHANNEL, omexmlMeta.getPixelsSizeC(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.TIME, omexmlMeta.getPixelsSizeT(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setPixelType(FormatTools.pixelTypeFromString(omexmlMeta\n \t\t\t\t\t\t.getPixelsType(s).toString()));\n \t\t\t\t\tfinal int tiffPixelType = firstIFD.getPixelType();\n \t\t\t\t\tif (m.getPixelType() != tiffPixelType &&\n \t\t\t\t\t\t(s == 0 || adjustedSamples.get(s)))\n \t\t\t\t\t{\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"PixelType mismatch: OME=\" + m.getPixelType() + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffPixelType);\n \t\t\t\t\t\tm.setPixelType(tiffPixelType);\n \t\t\t\t\t}\n \t\t\t\t\tm.setBitsPerPixel(FormatTools.getBitsPerPixel(m.getPixelType()));\n \t\t\t\t\tString dimensionOrder =\n \t\t\t\t\t\tomexmlMeta.getPixelsDimensionOrder(s).toString();\n \n \t\t\t\t\t// hackish workaround for files exported by OMERO that have an\n \t\t\t\t\t// incorrect dimension order\n \t\t\t\t\tString uuidFileName = \"\";\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (omexmlMeta.getTiffDataCount(s) > 0) {\n \t\t\t\t\t\t\tuuidFileName = omexmlMeta.getUUIDFileName(s, 0);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcatch (final NullPointerException e) {}\n \t\t\t\t\tif (omexmlMeta.getChannelCount(s) > 0 &&\n \t\t\t\t\t\tomexmlMeta.getChannelName(s, 0) == null &&\n \t\t\t\t\t\tomexmlMeta.getTiffDataCount(s) > 0 &&\n \t\t\t\t\t\tuuidFileName.indexOf(\"__omero_export\") != -1)\n \t\t\t\t\t{\n \t\t\t\t\t\tdimensionOrder = \"XYZCT\";\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisTypes(metaService.findDimensionList(dimensionOrder));\n \n \t\t\t\t\tm.setOrderCertain(true);\n \t\t\t\t\tfinal PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n \t\t\t\t\tif (samples.get(s) > 1 || photo == PhotoInterp.RGB) {\n \t\t\t\t\t\tm.setPlanarAxisCount(3);\n \t\t\t\t\t}\n \t\t\t\t\tif ((samples.get(s) != m.getAxisLength(Axes.CHANNEL) &&\n \t\t\t\t\t\t(samples.get(s) % m.getAxisLength(Axes.CHANNEL)) != 0 && (m\n \t\t\t\t\t\t.getAxisLength(Axes.CHANNEL) % samples.get(s)) != 0) ||\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) == 1 || adjustedSamples.get(s))\n \t\t\t\t\t{\n \t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, m.getAxisLength(Axes.CHANNEL) *\n \t\t\t\t\t\t\tsamples.get(s));\n \t\t\t\t\t}\n \n \t\t\t\t\tif (m.getAxisLength(Axes.Z) * m.getAxisLength(Axes.TIME) *\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) > info[s].length &&\n \t\t\t\t\t\t!m.isMultichannel())\n \t\t\t\t\t{\n \t\t\t\t\t\tif (m.getAxisLength(Axes.Z) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.TIME) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.CHANNEL) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (omexmlMeta.getPixelsBinDataCount(s) > 1) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"OME-TIFF Pixels element contains BinData elements! \"\n \t\t\t\t\t\t\t\t+ \"Ignoring.\");\n \t\t\t\t\t}\n \t\t\t\t\tm.setLittleEndian(firstIFD.isLittleEndian());\n \t\t\t\t\tm.setIndexed(photo == PhotoInterp.RGB_PALETTE &&\n \t\t\t\t\t\tfirstIFD.getIFDValue(IFD.COLOR_MAP) != null);\n \t\t\t\t\tm.setFalseColor(true);\n \t\t\t\t\tm.setMetadataComplete(true);\n \t\t\t\t}\n \t\t\t\tcatch (final NullPointerException exc) {\n \t\t\t\t\tlog().error(\"Incomplete Pixels metadata\", exc);\n \t\t\t\t}\n \t\t\t\tcatch (final FormatException exc) {\n \t\t\t\t\tlog().error(\"Format exception when creating ImageMetadata\", exc);\n \t\t\t\t}\n \t\t\t}\n \n // if (getImageCount() == 1) {\n // CoreMetadata ms0 = core.get(0);\n // ms0.sizeZ = 1;\n // if (!ms0.rgb) {\n // ms0.sizeC = 1;\n // }\n // ms0.sizeT = 1;\n // }\n // metaService.populatePixels(getOmeMeta().getRoot(), this, false, false);\n \t\t\tgetOmeMeta().setRoot((OMEXMLMetadata) getMetadataStoreForConversion());\n \t\t}", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByTransformList();", "public interface ContentService extends KekeinfoEntityService<Long, Content>\n \n{\n\n\tpublic List<Content> listByType( String contentType)\n\t throws ServiceException;\n\n /**\n * Method responsible for storing content file for given Store.Files for given merchant store will be stored in\n * Infinispan.\n * \n * @param merchantStoreCode merchant store whose content images are being saved.\n * @param contentFile content image being stored\n * @throws ServiceException\n */\n void addContentFile(InputContentFile contentFile )\n throws ServiceException;\n\n \n /**\n * Method responsible for storing list of content image for given Store.Images for given merchant store will be stored in\n * Infinispan.\n * \n * @param merchantStoreCode merchant store whose content images are being saved.\n * @param contentImagesList list of content images being stored.\n * @throws ServiceException\n */\n void addContentFiles(List<InputContentFile> contentFilesList) throws ServiceException;\n \n \n /**\n * Method to remove given content image.Images are stored in underlying system based on there name.\n * Name will be used to search given image for removal\n * @param imageContentType\n * @param imageName\n * @param merchantStoreCode merchant store code\n * @throws ServiceException\n */\n public void removeFile(FileContentType fileContentType, String fileName) throws ServiceException;\n \n \n /**\n * Method to remove all images for a given merchant.It will take merchant store as an input and will\n * remove all images associated with given merchant store.\n * \n * @param merchantStoreCode\n * @throws ServiceException\n */\n public void removeFiles() throws ServiceException;\n \n /**\n * Method responsible for fetching particular content image for a given merchant store. Requested image will be\n * search in Infinispan tree cache and OutputContentImage will be sent, in case no image is found null will\n * returned.\n * \n * @param merchantStoreCode\n * @param imageName\n * @return {@link OutputContentImage}\n * @throws ServiceException\n */\n public OutputContentFile getContentFile(FileContentType fileContentType, String fileName )\n throws ServiceException;\n \n public InputStream getContentFileInputstream(FileContentType fileContentType, String fileName )\n throws ServiceException;\n \n \n /**\n * Method to get list of all images associated with a given merchant store.In case of no image method will return an empty list.\n * @param merchantStoreCode\n * @param imageContentType\n * @return list of {@link OutputContentImage}\n * @throws ServiceException\n */\n public List<OutputContentFile> getContentFiles(FileContentType fileContentType )\n throws ServiceException;\n\n\t\n List<String> getContentFilesNames(\n\t\t\tFileContentType fileContentType) throws ServiceException;\n\n /**\n * Add the store logo\n * @param merchantStoreCode\n * @param cmsContentImage\n * @throws ServiceException\n */\n\tvoid addLogo(InputContentFile cmsContentImage)\n\t\t\tthrows ServiceException;\n\n\t/**\n\t * Adds a property (option) image\n\t * @param merchantStoreId\n\t * @param cmsContentImage\n\t * @throws ServiceException\n\t */\n\tvoid addOptionImage(InputContentFile cmsContentImage)\n\t\t\tthrows ServiceException;\n\n\t\n\n}", "@Override\n\tpublic Image findById(Long id) {\n\t\treturn imageRepository.findById(id).get();\n\t}", "public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}", "public Img getImage(long id){\n\n Img imageObj = null;\n\n List<Img> imgList = null;\n imgList = Img.getImageList(id);\n if(imgList!=null && imgList.size()>0) {\n\n imageObj = imgList.get(0);\n }\n return imageObj;\n }", "CollectionImage findBy(Long ownerId, Long imageId);", "byte[] getRecipeImage(CharSequence query);", "SysPic selectByPrimaryKey(Integer id);", "public HashMap<CellID, Set<MetadataID> > searchMetadata(MetadataSearchFilters filters, CellID cid){\n return db.searchMetadata(filters, cid);\n }", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList();", "public BufferedImage readImage(String id) {\n BufferedImage bufImg = null;\n try {\n PreparedStatement pstmt = conn.prepareStatement(\n \"SELECT photo FROM vehicles WHERE veh_reg_no = ?\");\n pstmt.setString(1, id);\n System.out.println(pstmt); // for debugging\n ResultSet rset = pstmt.executeQuery();\n // Only one result expected\n rset.next();\n // Read image via InputStream\n InputStream in = rset.getBinaryStream(\"photo\"); \n // Decode the inputstream as BufferedImage\n bufImg = ImageIO.read(in); \n } catch(Exception ex) {\n ex.printStackTrace();\n }\n return bufImg;\n }", "public Content findContentById(Long contentId) {\n return contentDAO.findById(contentId);\n }", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList();", "@Test\n public void testGridViewImages() {\n /* use of the content desc from the cursor data gets us the specific imageview.\n Use of the 'anyOf' is an or statement for matching multiple content descriptions if necessary\n */\n final int COL_TITLE = 2;\n Cursor cursor = mActivityRule.getActivity().getContentResolver().query(\n TVContract.TVEntry.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n null // sort order\n );\n\n cursor.moveToFirst();\n onView(anyOf(withContentDescription(cursor.getString(COL_TITLE)))).check(matches(isDisplayed()));\n }", "@Override\r\n\tpublic ManageNursingContentWithBLOBs selectByPrimaryKeyBLOB(\r\n\t\t\tString manageNursingContentId) throws Exception {\n\t\treturn mContentMapper.selectByPrimaryKeyBLOB(manageNursingContentId);\r\n\t}", "void loadImages(int id_image, HouseRepository.GetImageFromHouseCallback callback);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }", "List<MediaMetadata> getAll();", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder() {\n if (imageByHandlerBuilder_ != null) {\n return imageByHandlerBuilder_.getMessageOrBuilder();\n } else {\n return imageByHandler_;\n }\n }", "Boolean hasTitlePicture(Long galleryId);", "Map<String, Object> getAllMetadata();", "public interface ContentsService {\n\n /**\n * Add the given data as a new media contents entry.\n *\n * @param name of the contents file to add\n * @param payload byte array to add\n */\n void addMediaContent(String name, byte[] payload);\n\n\n /**\n * Fetch the media content data for the given identifier.\n *\n * @param id predicate, used to resolve the media content to fetch\n *\n * @return the media object found, never {@code null}\n */\n Map<String, Object> getMediaContent(String id);\n}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder() {\n if (imageByTransformBuilder_ != null) {\n return imageByTransformBuilder_.getMessageOrBuilder();\n } else {\n return imageByTransform_;\n }\n }", "public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder() {\n return imageByTransform_;\n }", "private Map<String, String> findMetadata(InputStream table, String itemCode) throws IOException {\n\t\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(table));\n\t\t\tfinal List<String> columnNames = Arrays.asList(br.readLine().split(\"\\t\"));\n\t\t\tfinal int codeIndex = columnNames.indexOf(CODE_COLUMN);\n\t\t\t\n\t\t\tString line;\n\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\tString[] values = line.split(\"\\t\");\n\t\t\t\tif(values[codeIndex].equals(itemCode)) {\n\t\t\t\t\tfinal Map<String, String> metadata = new HashMap<String, String>();\n\t\t\t\t\tfor(int i = 0; i < columnNames.size(); ++i) {\n\t\t\t\t\t\tmetadata.put(columnNames.get(i), values[i]);\n\t\t\t\t\t}\n\t\t\t\t\treturn metadata;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}", "public ImageFile getImage(int id) {\n if(id < 0)\n return null;\n\n int i = 0;\n int size = imageFiles.size();\n while(id != imageFiles.get(i).getItemID()) {\n i++;\n if(size <= i)\n return null;\n }\n return imageFiles.get(i);\n }", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder() {\n return imageByHandler_;\n }", "java.lang.String getMetadata(int index);", "java.lang.String getMetadata(int index);", "public Map<String, Variant<?>> GetMetadata(int position);", "public ArrayList<DeviceMediaItem> getAllImagesByFolder(String path, Context contx) {\n ArrayList<DeviceMediaItem> media = new ArrayList<>();\n Uri allImagesuri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n String[] projection = {MediaStore.Images.ImageColumns.DATA, MediaStore.Images.Media.DISPLAY_NAME,\n MediaStore.Images.Media.SIZE, MediaStore.Images.Media.DATE_ADDED};\n Cursor cursor = contx.getContentResolver().query(allImagesuri, projection, MediaStore.Images.Media.DATA + \" like ? \", new String[]{\"%\" + path + \"%\"}, null);\n try {\n cursor.moveToFirst();\n do {\n DeviceMediaItem pic = new DeviceMediaItem();\n\n pic.setName(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DISPLAY_NAME)));\n pic.setPath(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA)));\n String date = getDate(cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_ADDED)));\n pic.setDate(date);\n\n media.add(pic);\n } while (cursor.moveToNext());\n cursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Uri allVideosuri = android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n String[] vidProjection = {MediaStore.Video.VideoColumns.DATA, MediaStore.Video.Media.DISPLAY_NAME,\n MediaStore.Video.Media.SIZE, MediaStore.Video.Media.DATE_ADDED};\n Cursor vidCursor = contx.getContentResolver().query(allVideosuri, vidProjection, MediaStore.Images.Media.DATA + \" like ? \", new String[]{\"%\" + path + \"%\"}, null);\n try {\n vidCursor.moveToFirst();\n do {\n DeviceMediaItem pic = new DeviceMediaItem();\n\n pic.setName(vidCursor.getString(vidCursor.getColumnIndexOrThrow(MediaStore.Video.Media.DISPLAY_NAME)));\n pic.setPath(vidCursor.getString(vidCursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA)));\n String date = getDate(vidCursor.getLong(vidCursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_ADDED)));\n pic.setDate(date);\n\n media.add(pic);\n } while (vidCursor.moveToNext());\n vidCursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return media;\n }", "static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }", "public void findBookDetails(AnnotateImageResponse imageResponse) throws IOException {\n\n String google = \"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=\";\n String search = \"searchString\";\n String charset = \"UTF-8\";\n\n URL url = new URL(google + URLEncoder.encode(search, charset));\n Reader reader = new InputStreamReader(url.openStream(), charset);\n GoogleResults results = new Gson().fromJson(reader, GoogleResults.class);\n\n // Show title and URL of 1st result.\n System.out.println(results.getResponseData().getResults().get(0).getTitle());\n System.out.println(results.getResponseData().getResults().get(0).getUrl());\n }", "byte[] getPhotoDetails(Long customerId,String type) throws EOTException;", "public PictureData searchPicture(String goodsId) {\n\t\tString sql = \"from PictureData p where p.goodsId = '\" + goodsId +\"' \";\n\t\tList<PictureData> list = hibernateDao.queryList(sql, null);\n\t\tif(list.size()!=0)\n\t\t\treturn list.get(0);\n\t\telse\n\t\t\treturn null;\n\t\t\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform() {\n if (imageByTransformBuilder_ == null) {\n return imageByTransform_;\n } else {\n return imageByTransformBuilder_.getMessage();\n }\n }", "WpPostsWithBLOBs selectByPrimaryKey(Long id);", "public Uri getImageFromCamera() {\n String[] projection = {\n MediaStore.Images.Thumbnails._ID, // The columns we want\n MediaStore.Images.Thumbnails.IMAGE_ID,\n MediaStore.Images.Thumbnails.KIND,\n MediaStore.Images.Thumbnails.DATA};\n String selection = MediaStore.Images.Thumbnails.KIND + \"=\" + // Select only mini's\n MediaStore.Images.Thumbnails.MINI_KIND;\n\n String sort = MediaStore.Images.Thumbnails._ID + \" DESC\";\n\n//At the moment, this is a bit of a hack, as I'm returning ALL images, and just taking the latest one. There is a better way to narrow this down I think with a WHERE clause which is currently the selection variable\n Cursor myCursor = getActivity().managedQuery(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, projection, selection, null, sort);\n\n long imageId = 0l;\n long thumbnailImageId = 0l;\n String thumbnailPath = \"\";\n\n try {\n myCursor.moveToFirst();\n imageId = myCursor.getLong(myCursor.getColumnIndexOrThrow(MediaStore.Images.Thumbnails.IMAGE_ID));\n thumbnailImageId = myCursor.getLong(myCursor.getColumnIndexOrThrow(MediaStore.Images.Thumbnails._ID));\n thumbnailPath = myCursor.getString(myCursor.getColumnIndexOrThrow(MediaStore.Images.Thumbnails.DATA));\n } finally {\n myCursor.close();\n }\n\n //Create new Cursor to obtain the file Path for the large image\n\n String[] largeFileProjection = {\n MediaStore.Images.ImageColumns._ID,\n MediaStore.Images.ImageColumns.DATA\n };\n\n String largeFileSort = MediaStore.Images.ImageColumns._ID + \" DESC\";\n myCursor = getActivity().managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, largeFileProjection, null, null, largeFileSort);\n String largeImagePath = \"\";\n\n try {\n myCursor.moveToFirst();\n\n//This will actually give yo uthe file path location of the image.\n largeImagePath = myCursor.getString(myCursor.getColumnIndexOrThrow(MediaStore.Images.ImageColumns.DATA));\n } finally {\n myCursor.close();\n }\n // These are the two URI's you'll be interested in. They give you a handle to the actual images\n Uri uriLargeImage = Uri.withAppendedPath(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, String.valueOf(imageId));\n Uri uriThumbnailImage = Uri.withAppendedPath(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, String.valueOf(thumbnailImageId));\n\n// I've left out the remaining code, as all I do is assign the URI's to my own objects anyways...\n return uriLargeImage;\n }", "private Bitmap getGoodsImageFromDatabase(String goodId) {\r\n Cursor cursor = helper.getSpecifyGoodImage(goodId);\r\n cursor.moveToFirst();\r\n byte bytes[] = Base64.decode(cursor.getString(0), Base64.DEFAULT);\r\n cursor.close();\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\r\n return bitmap;\r\n }", "public Object parseImage(int rssType, Document doc) throws Exception;", "public Iterable<SequenceInformation> extractMetadata(ExtractionContext extractionContext) throws SQLException;", "java.lang.String getContentId();", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(text, Constants.NEW_SEARCH);\n Call<SearchResponse> call = service.searchPhoto(options);\n\n call.enqueue(new Callback<SearchResponse>() {\n @Override\n public void onResponse(Response<SearchResponse> response, Retrofit retrofit) {\n SearchResponse result = response.body();\n if (result.getStat().equals(\"ok\")) {\n // Status is ok, add result to photo list\n if (photoList != null) {\n photoList.clear();\n photoList.addAll(result.getPhotos().getPhoto());\n imageAdapter.notifyDataSetChanged();\n pageCount = 2;\n }\n\n } else {\n // Display error if something wrong with result\n Toast.makeText(context, result.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n // Display error here since request failed\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "private void getMetadata() {\n masterRoot = AbstractMetadata.getAbstractedMetadata(sourceProduct);\n masterMetadata = new MetadataDoris(masterRoot);\n masterOrbit = new OrbitsDoris();\n masterOrbit.setOrbit(masterRoot);\n \n // SLAVE METADATA\n // hash table or just map for slaves - now it supports only a single sourceSlave image\n slaveRoot = sourceProduct.getMetadataRoot().getElement(AbstractMetadata.SLAVE_METADATA_ROOT).getElementAt(0);\n slaveMetadata = new MetadataDoris(slaveRoot);\n slaveOrbit = new OrbitsDoris();\n slaveOrbit.setOrbit(slaveRoot);\n }", "EnterprisePicture selectByPrimaryKey(Integer id);", "@Override\n\tpublic int getPhoto(int id, String path) throws Exception {\n\t\tif(id<0||id>this.getSize()){\n\t\t\treturn 200;\n\t\t}\n\t\ttry {\n\t\t\tdao.getPhoto(id, path);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\treturn 300;\n\t\t}\n\t\treturn 100;\n\t}", "Metadata getMetaData();", "public static Uri getImageContentUri(Context context, java.io.File imageFile) {\n String filePath = imageFile.getAbsolutePath();\n Cursor cursor = context.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n new String[]{MediaStore.Images.Media._ID}, MediaStore.Images.Media.DATA + \"=? \",\n new String[]{filePath}, null);\n if (cursor != null && cursor.moveToFirst()) {\n int id = cursor.getInt(cursor.getColumnIndex(MediaStore.MediaColumns._ID));\n Uri baseUri = Uri.parse(\"content://media/external/images/media\");\n return Uri.withAppendedPath(baseUri, \"\" + id);\n } else {\n if (imageFile.exists()) {\n ContentValues values = new ContentValues();\n values.put(MediaStore.Images.Media.DATA, filePath);\n return context.getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);\n } else {\n return null;\n }\n }\n }", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByHandlerOrBuilder(\n int index) {\n if (imagesByHandlerBuilder_ == null) {\n return imagesByHandler_.get(index); } else {\n return imagesByHandlerBuilder_.getMessageOrBuilder(index);\n }\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Override\n\tpublic ImageEntity find(Object primarykey) {\n\t\treturn (ImageEntity) DatabaseContext.find(ImageEntity.class, primarykey);\n\t}", "public int getImageId(){\n \t\treturn imageId;\n \t}", "public PropertyImages findByPrimaryKey(int id) throws PropertyImagesDaoException\n\t{\n\t\ttry {\n\t\t\tList<PropertyImages> list = getJdbcTemplate().query(\"SELECT ID, TITLE, TYPE, SIZE, SRC_URL, PROPERTY_DATA_UUID FROM \" + getTableName() + \" WHERE ID = ?\", this,id);\n\t\t\treturn list.size() == 0 ? null : list.get(0);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new PropertyImagesDaoException(\"Query failed\", e);\n\t\t}\n\t\t\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler() {\n if (imageByHandlerBuilder_ == null) {\n return imageByHandler_;\n } else {\n return imageByHandlerBuilder_.getMessage();\n }\n }", "public interface ContentRepository {\n\n List<Content> findContentList(int bbsId, int pageNum, int perPage, int searchMode, String searchContent);\n\n long findContentCount(int bbsId, int searchMode, String searchContent);\n\n void saveContent(Content content);\n\n Content findContentById(int contentId);\n\n void updateContent(Content content);\n\n void deleteContent(int contentId, String userid);\n\n List<Content> getBbsNoticeThumnailList(int bbsId);\n\n}", "private void setContent(String content) {\n \t\tthis.mContent.setText(content);\n \t\tint index = 0;\n \t\t/*\n \t\t * //图片路径数组 ArrayList<String> images = this.mNoteItemModel.getImages();\n \t\t * if(images.isEmpty()) return ; for(String image : images){ Bitmap\n \t\t * bitmap = this.mNoteItemModel.getBitmapByTag(image);\n \t\t * //根据Bitmap对象创建ImageSpan对象 ImageSpan imageSpan = new\n \t\t * ImageSpan(this.getContext(), bitmap);\n \t\t * //创建一个SpannableString对象,以便插入用ImageSpan对象封装的图像 SpannableString\n \t\t * spannableString = new SpannableString(image); // 用ImageSpan对象替换face\n \t\t * spannableString.setSpan(imageSpan, 0, spannableString.length(),\n \t\t * Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); //将选择的图片追加到EditText中光标所在位置\n \t\t * Editable edit_text = this.mContent.getEditableText();\n \t\t * edit_text.delete(content.indexOf(image),\n \t\t * content.indexOf(image)+image.length()); index =\n \t\t * content.indexOf(image); if(index <0 || index >= content.length()){\n \t\t * edit_text.append(spannableString); }else{ edit_text.insert(index,\n \t\t * spannableString); } }\n \t\t */\n \n \t\twhile (content.indexOf(\"[0x64\", index) >= 0) {\n \t\t\tindex = content.indexOf(\"[0x64\", index);\n \t\t\tint start = index + 5;\n \t\t\tint end = content.indexOf(\"]\", start);\n \t\t\tFile root = this.getContext().getExternalFilesDir(\n \t\t\t\t\tEnvironment.DIRECTORY_PICTURES);\n \t\t\tString filePath = root.getAbsolutePath()\n \t\t\t\t\t+ content.substring(start, end);\n \t\t\tLog.d(TAG, \"\" + content.subSequence(index, end + 1));\n \t\t\tLog.d(TAG, \"\" + filePath);\n \t\t\tBitmap bitmap = BitmapFactory.decodeFile(filePath);\n \t\t\t// 根据Bitmap对象创建ImageSpan对象\n \t\t\tImageSpan imageSpan = new ImageSpan(this.getContext(), bitmap);\n \t\t\t// 创建一个SpannableString对象,以便插入用ImageSpan对象封装的图像\n \t\t\tSpannableString spannableString = new SpannableString(\n \t\t\t\t\tcontent.subSequence(index, end + 1));\n \t\t\t// 用ImageSpan对象替换face\n \t\t\tspannableString.setSpan(imageSpan, 0, spannableString.length(),\n \t\t\t\t\tSpannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n \t\t\t// 将选择的图片追加到EditText中光标所在位置\n \t\t\tEditable edit_text = this.mContent.getEditableText();\n \t\t\tedit_text.delete(index, end + 1);\n \t\t\tif (index < 0 || index >= content.length()) {\n \t\t\t\tedit_text.append(spannableString);\n \t\t\t} else {\n \t\t\t\tedit_text.insert(index, spannableString);\n \t\t\t}\n \t\t\tindex += 1;\n \t\t}\n \n \t}", "public interface ImageSearchService {\n\n /**\n * Register an image into the search instance.\n *\n * @param imageData Image data in JPEG or PNG format.\n * @param imageType Image format.\n * @param uuid Unique identifier of the image.\n */\n void register(byte[] imageData, ObjectImageType imageType, String uuid);\n\n /**\n * Un-register an image from the search instance.\n *\n * @param uuid Unique identifier of the image.\n */\n void unregister(String uuid);\n\n /**\n * Find all images similar to the given one.\n *\n * @param imageData Image to match with registered ones in the search instance.\n * @param objectRegion object region to search.\n * @return Found images UUIDs and raw response.\n */\n ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);\n\n /**\n * Check the image search configuration is correct by making a fake search request.\n *\n * @param configuration Configuration to check.\n */\n void checkImageSearchConfiguration(Configuration configuration) throws InvalidConfigurationException;\n}", "@Override\n\tpublic AtiPhoto findById(String id) {\n\t\treturn atiPhotoDao.findOne(id);\n\t}", "public ObjectMetadata getObjectMetadata(String inKey);", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByTransformOrBuilder(\n int index) {\n if (imagesByTransformBuilder_ == null) {\n return imagesByTransform_.get(index); } else {\n return imagesByTransformBuilder_.getMessageOrBuilder(index);\n }\n }", "abstract public String getImageKey();", "public Content get(Integer contentId) {\n String sql = \"SELECT * FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, new ContentRowMapper(), contentId);\n }", "public interface ImageMetadataService {\n\n List<ArtistDTO> getArtistsByPrediction(String name, String name2, String surname);\n\n List<ImageTypeDTO> getImageTypesByPrediction(String name);\n\n UploadImageMetadataDTO saveMetadata(UploadImageMetadataDTO uploadImageMetadataDTO);\n\n List<ImageDTO> getTop10Images(String username, String title);\n\n List<ImageDTO> getAllUserImages(String username);\n\n List<ImageDTO> searchImagesByCriteria(SearchImageCriteriaDTO searchImageCriteriaDTO);\n\n ImageDTO updateImageMetadata(ImageDTO imageDTO);\n\n List<ImageDTO> getImagesTop50();\n\n void rateImage(RateImageDTO rateImageDTO);\n\n List<ImageDTO> getAllImages();\n}", "public void openIntentGetContent(){\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\n //have to use this instead of startActivity if you want to store the image in imageView\n //cause if you use this method, only then, can you use the method onActivityResult (defined below this method)\n //otherwise the execution won't go there\n startActivityForResult(intent, WRITE_REQUEST_CODE);\n\n }", "@Override\n public ContentHandle get(int index) {\n return storage.getArtifactByContentId(contentIds.get(index)).getContent();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ApiFileDTO> getFilesForMetadata(MetaDataType type, Long id) {\n // Build the SQL statement\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT mf.id as id, mf.extra as extra, mf.part as part, mf.part_title as partTitle, mf.movie_version as version, \");\n sql.append(\"mf.container as container, mf.codec as codec, mf.codec_format as codecFormat, mf.codec_profile as codecProfile, \");\n sql.append(\"mf.bitrate as bitrate, mf.overall_bitrate as overallBitrate, mf.fps as fps, \");\n sql.append(\"mf.width as width, mf.height as height, mf.aspect_ratio as aspectRatio, mf.runtime as runtime, mf.video_source as videoSource, \");\n sql.append(\"sf.id as fileId, sf.full_path as fileName, sf.file_date as fileDate, sf.file_size as fileSize, sf.file_type as fileType, \");\n\n if (type == MOVIE) {\n sql.append(\"null as season, null as episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf \");\n sql.append(\"WHERE mv.videodata_id=:id \");\n } else if (type == SERIES) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.series_id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == SEASON) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == EPISODE) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE vd.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n }\n\n sql.append(\"and mv.mediafile_id=mf.id and sf.mediafile_id=mf.id \");\n sql.append(\"and sf.file_type\");\n sql.append(SQL_SELECTABLE_VIDEOS);\n sql.append(\"and sf.status\");\n sql.append(SQL_IGNORE_STATUS_SET);\n\n if (type == SERIES || type == SEASON) {\n sql.append(\"ORDER BY sea.season ASC, vd.episode ASC\");\n }\n\n SqlScalars sqlScalars = new SqlScalars(sql);\n sqlScalars.addScalar(LITERAL_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EXTRA, BooleanType.INSTANCE);\n sqlScalars.addScalar(\"part\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"partTitle\", StringType.INSTANCE);\n sqlScalars.addScalar(\"version\", StringType.INSTANCE);\n sqlScalars.addScalar(\"container\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codec\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecFormat\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecProfile\", StringType.INSTANCE);\n sqlScalars.addScalar(\"bitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"overallBitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"fps\", FloatType.INSTANCE);\n sqlScalars.addScalar(\"width\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"height\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"aspectRatio\", StringType.INSTANCE);\n sqlScalars.addScalar(\"runtime\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"videoSource\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileId\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileName\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileDate\", TimestampType.INSTANCE);\n sqlScalars.addScalar(\"fileSize\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileType\", StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_SEASON, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EPISODE, LongType.INSTANCE);\n sqlScalars.addParameter(LITERAL_ID, id);\n\n List<ApiFileDTO> results = executeQueryWithTransform(ApiFileDTO.class, sqlScalars);\n for (ApiFileDTO file : results) {\n \t\tfile.setAudioCodecs(currentSession().getNamedQuery(AudioCodec.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n file.setSubtitles(currentSession().getNamedQuery(Subtitle.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n }\n return results;\n }" ]
[ "0.8116066", "0.6467489", "0.6448796", "0.63160354", "0.62916154", "0.6235458", "0.6200222", "0.6182089", "0.595357", "0.5950213", "0.5645259", "0.5624444", "0.55663806", "0.54990244", "0.54886305", "0.5481693", "0.54532355", "0.54223275", "0.5335167", "0.5317409", "0.52983195", "0.52657145", "0.5265006", "0.5245685", "0.52448976", "0.5244031", "0.5239659", "0.523074", "0.5228773", "0.5221717", "0.52107567", "0.5205931", "0.51933604", "0.5164913", "0.5159521", "0.51210237", "0.51131934", "0.5107342", "0.51070076", "0.5095297", "0.5091022", "0.50869817", "0.507394", "0.5072304", "0.50504595", "0.50447303", "0.5042337", "0.5039054", "0.5017897", "0.5015303", "0.49966493", "0.4984796", "0.49738136", "0.49641103", "0.49616268", "0.49543673", "0.4953314", "0.49376887", "0.49371696", "0.49337277", "0.4931833", "0.4926379", "0.4926379", "0.49212828", "0.49144104", "0.49134272", "0.489966", "0.4888313", "0.48876527", "0.4886795", "0.4881529", "0.487863", "0.48752874", "0.48752436", "0.48730382", "0.4866353", "0.4866076", "0.48659697", "0.48638317", "0.4862424", "0.48598513", "0.48584646", "0.4850391", "0.4844628", "0.4842943", "0.48407263", "0.48352033", "0.48344076", "0.48297113", "0.48296922", "0.48065358", "0.47995335", "0.4798655", "0.4798167", "0.47891796", "0.47820368", "0.47745794", "0.47728944", "0.47643307", "0.47564366" ]
0.7644686
1
Finds content images data with image metadata
public ContentImageData findContentImageDatabyContentImageMeta(ContentImageMeta contentImageMeta) { return contentImageDataDAO.findByContentImageMeta(contentImageMeta); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ImageContentData findContentData(String imageId);", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "public void findImages() {\n \t\tthis.mNoteItemModel.findImages(this.mNoteItemModel.getContent());\n \t}", "private void processImages() throws MalformedURLException, IOException {\r\n\r\n\t\tNodeFilter imageFilter = new NodeClassFilter(ImageTag.class);\r\n\t\timageList = fullList.extractAllNodesThatMatch(imageFilter, true);\r\n\t\tthePageImages = new HashMap<String, byte[]>();\r\n\r\n\t\tfor (SimpleNodeIterator nodeIter = imageList.elements(); nodeIter\r\n\t\t\t\t.hasMoreNodes();) {\r\n\t\t\tImageTag tempNode = (ImageTag) nodeIter.nextNode();\r\n\t\t\tString tagText = tempNode.getText();\r\n\r\n\t\t\t// Populate imageUrlText String\r\n\t\t\tString imageUrlText = tempNode.getImageURL();\r\n\r\n\t\t\tif (imageUrlText != \"\") {\r\n\t\t\t\t// Print to console, to verify relative link processing\r\n\t\t\t\tSystem.out.println(\"ImageUrl to Retrieve:\" + imageUrlText);\r\n\r\n\t\t\t\tbyte[] imgArray = downloadBinaryData(imageUrlText);\r\n\r\n\t\t\t\tthePageImages.put(tagText, imgArray);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n \t\tpublic void populateImageMetadata() {\n \n \t\t\t// populate core metadata\n \n \t\t\tfinal OMEXMLMetadata omexmlMeta = getOmeMeta().getRoot();\n \n \t\t\tfor (int s = 0; s < getImageCount(); s++) {\n \n \t\t\t\tfinal ImageMetadata m = get(s);\n \t\t\t\ttry {\n \t\t\t\t\tm.setPlanarAxisCount(2);\n \t\t\t\t\tm.setAxisLength(Axes.X, omexmlMeta.getPixelsSizeX(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffWidth = (int) firstIFD.getImageWidth();\n \t\t\t\t\tif (m.getAxisLength(Axes.X) != tiffWidth && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeX mismatch: OME=\" + m.getAxisLength(Axes.X) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffWidth);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Y, omexmlMeta.getPixelsSizeY(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffHeight = (int) firstIFD.getImageLength();\n \t\t\t\t\tif (m.getAxisLength(Axes.Y) != tiffHeight && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeY mismatch: OME=\" + m.getAxisLength(Axes.Y) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffHeight);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Z, omexmlMeta.getPixelsSizeZ(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.CHANNEL, omexmlMeta.getPixelsSizeC(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.TIME, omexmlMeta.getPixelsSizeT(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setPixelType(FormatTools.pixelTypeFromString(omexmlMeta\n \t\t\t\t\t\t.getPixelsType(s).toString()));\n \t\t\t\t\tfinal int tiffPixelType = firstIFD.getPixelType();\n \t\t\t\t\tif (m.getPixelType() != tiffPixelType &&\n \t\t\t\t\t\t(s == 0 || adjustedSamples.get(s)))\n \t\t\t\t\t{\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"PixelType mismatch: OME=\" + m.getPixelType() + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffPixelType);\n \t\t\t\t\t\tm.setPixelType(tiffPixelType);\n \t\t\t\t\t}\n \t\t\t\t\tm.setBitsPerPixel(FormatTools.getBitsPerPixel(m.getPixelType()));\n \t\t\t\t\tString dimensionOrder =\n \t\t\t\t\t\tomexmlMeta.getPixelsDimensionOrder(s).toString();\n \n \t\t\t\t\t// hackish workaround for files exported by OMERO that have an\n \t\t\t\t\t// incorrect dimension order\n \t\t\t\t\tString uuidFileName = \"\";\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (omexmlMeta.getTiffDataCount(s) > 0) {\n \t\t\t\t\t\t\tuuidFileName = omexmlMeta.getUUIDFileName(s, 0);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcatch (final NullPointerException e) {}\n \t\t\t\t\tif (omexmlMeta.getChannelCount(s) > 0 &&\n \t\t\t\t\t\tomexmlMeta.getChannelName(s, 0) == null &&\n \t\t\t\t\t\tomexmlMeta.getTiffDataCount(s) > 0 &&\n \t\t\t\t\t\tuuidFileName.indexOf(\"__omero_export\") != -1)\n \t\t\t\t\t{\n \t\t\t\t\t\tdimensionOrder = \"XYZCT\";\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisTypes(metaService.findDimensionList(dimensionOrder));\n \n \t\t\t\t\tm.setOrderCertain(true);\n \t\t\t\t\tfinal PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n \t\t\t\t\tif (samples.get(s) > 1 || photo == PhotoInterp.RGB) {\n \t\t\t\t\t\tm.setPlanarAxisCount(3);\n \t\t\t\t\t}\n \t\t\t\t\tif ((samples.get(s) != m.getAxisLength(Axes.CHANNEL) &&\n \t\t\t\t\t\t(samples.get(s) % m.getAxisLength(Axes.CHANNEL)) != 0 && (m\n \t\t\t\t\t\t.getAxisLength(Axes.CHANNEL) % samples.get(s)) != 0) ||\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) == 1 || adjustedSamples.get(s))\n \t\t\t\t\t{\n \t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, m.getAxisLength(Axes.CHANNEL) *\n \t\t\t\t\t\t\tsamples.get(s));\n \t\t\t\t\t}\n \n \t\t\t\t\tif (m.getAxisLength(Axes.Z) * m.getAxisLength(Axes.TIME) *\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) > info[s].length &&\n \t\t\t\t\t\t!m.isMultichannel())\n \t\t\t\t\t{\n \t\t\t\t\t\tif (m.getAxisLength(Axes.Z) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.TIME) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.CHANNEL) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (omexmlMeta.getPixelsBinDataCount(s) > 1) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"OME-TIFF Pixels element contains BinData elements! \"\n \t\t\t\t\t\t\t\t+ \"Ignoring.\");\n \t\t\t\t\t}\n \t\t\t\t\tm.setLittleEndian(firstIFD.isLittleEndian());\n \t\t\t\t\tm.setIndexed(photo == PhotoInterp.RGB_PALETTE &&\n \t\t\t\t\t\tfirstIFD.getIFDValue(IFD.COLOR_MAP) != null);\n \t\t\t\t\tm.setFalseColor(true);\n \t\t\t\t\tm.setMetadataComplete(true);\n \t\t\t\t}\n \t\t\t\tcatch (final NullPointerException exc) {\n \t\t\t\t\tlog().error(\"Incomplete Pixels metadata\", exc);\n \t\t\t\t}\n \t\t\t\tcatch (final FormatException exc) {\n \t\t\t\t\tlog().error(\"Format exception when creating ImageMetadata\", exc);\n \t\t\t\t}\n \t\t\t}\n \n // if (getImageCount() == 1) {\n // CoreMetadata ms0 = core.get(0);\n // ms0.sizeZ = 1;\n // if (!ms0.rgb) {\n // ms0.sizeC = 1;\n // }\n // ms0.sizeT = 1;\n // }\n // metaService.populatePixels(getOmeMeta().getRoot(), this, false, false);\n \t\t\tgetOmeMeta().setRoot((OMEXMLMetadata) getMetadataStoreForConversion());\n \t\t}", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "@Test\r\n\tpublic void test1() {\n\t\tFile jpegFile = new File(\"C:\\\\Users\\\\lefto\\\\Downloads\\\\flickr\\\\test2\\\\20170814-150511-6_36561788895_o_EDIT.jpg\");\r\n\t\tMetadata metadata;\r\n\t\ttry {\r\n\t\t\tmetadata = ImageMetadataReader.readMetadata(jpegFile);\r\n\t\t\tfor (Directory directory : metadata.getDirectories()) {\r\n\t\t\t\tfor (Tag tag : directory.getTags()) {\r\n\t\t\t\t\tSystem.out.println(tag);\r\n//\t\t\t\t\tSystem.out.println(tag.getDirectoryName() + \", \" + tag.getTagName() + \", \" + tag.getDescription());\r\n//\t\t\t\t\tif (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL)\r\n//\t\t\t\t\t\tSystem.out.println(tag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ImageProcessingException | IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByTransformList();", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index);", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByTransform(int index);", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByHandlerList();", "@Test\n public void testReadMetadataMaybeNull() throws IOException {\n // Just test that we can read the metadata without exceptions\n JPEGImageReader reader = createReader();\n\n for (TestData testData : getTestData()) {\n reader.setInput(testData.getInputStream());\n\n for (int i = 0; i < reader.getNumImages(true); i++) {\n try {\n IIOMetadata metadata = reader.getImageMetadata(i);\n assertNotNull(String.format(\"Image metadata null for %s image %s\", testData, i), metadata);\n }\n catch (IIOException e) {\n System.err.println(String.format(\"WARNING: Reading metadata failed for %s image %s: %s\", testData, i, e.getMessage()));\n }\n }\n }\n }", "public Properties getImageMetaData() {\n\t\treturn null;\n\t}", "byte[] getRecipeImage(CharSequence query);", "public Object parseImage(int rssType, Document doc) throws Exception;", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList();", "public ResourceContent getMetadata() throws IOException;", "private void imgDetected(Matcher matcher) {\n String component;\n matcher.reset();\n\n // store src value if <img> exist\n while (matcher.find()) {\n Data.imagesSrc.add(matcher.group(1));\n }\n\n // separate if the paragraph contain img\n // replace <img> with -+-img-+- to indicate image position in the text\n component = matcher.replaceAll(\"-+-img-+-\");\n\n //split the delimiter to structure image position\n String[] imageStructure = component.split(\"-\\\\+-\");\n\n // start looping the structured text\n int imageFoundIndex = 0;\n for (String structure : imageStructure) {\n // continue if the current index is not empty string \"\"\n if (!structure.trim().equals(\"\")) {\n // create ImageView if current index value equeal to \"img\"\n if (structure.trim().equals(\"img\")) {\n createImageView();\n imageFoundIndex++;\n } else {\n // else create textView for the text\n generateView(structure);\n }\n }\n }\n }", "java.util.List<com.google.protobuf.ByteString> getImgDataList();", "public void dumpImageMetaData(Uri uri) {\n // BEGIN_INCLUDE (dump_metadata)\n\n // The query, since it only applies to a single document, will only return one row.\n // no need to filter, sort, or select fields, since we want all fields for one\n // document.\n Cursor cursor = getActivity().getContentResolver()\n .query(uri, null, null, null, null, null);\n\n try {\n // moveToFirst() returns false if the cursor has 0 rows. Very handy for\n // \"if there's anything to look at, look at it\" conditionals.\n if (cursor != null && cursor.moveToFirst()) {\n\n // Note it's called \"Display Name\". This is provider-specific, and\n // might not necessarily be the file name.\n String displayName = cursor.getString(\n cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n //Toast.makeText(getActivity(),\"Display Name: \"+ displayName, Toast.LENGTH_SHORT).show();\n imageInfo += \"Name:\" + displayName;\n int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);\n // If the size is unknown, the value stored is null. But since an int can't be\n // null in java, the behavior is implementation-specific, which is just a fancy\n // term for \"unpredictable\". So as a rule, check if it's null before assigning\n // to an int. This will happen often: The storage API allows for remote\n // files, whose size might not be locally known.\n String size = null;\n if (!cursor.isNull(sizeIndex)) {\n // Technically the column stores an int, but cursor.getString will do the\n // conversion automatically.\n size = cursor.getString(sizeIndex);\n } else {\n size = \"Unknown\";\n }\n imageInfo += \"Size: \" + size;\n //Toast.makeText(getActivity(),\"Size: \"+size,Toast.LENGTH_SHORT).show();\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n // END_INCLUDE (dump_metadata)\n }", "public ContentImageMeta findContentImageMetaByIdAndContent(Long imageId, Content content) {\n return contentImageMetaDAO.findByIdAndContent(imageId, content);\n }", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList();", "private void montaListaDeItensDeImagem(org.jsoup.nodes.Document doc, JSONArray description) {\n Elements images = doc.select(\"div\").select(\"img\");\n for (Element image : images) {\n JSONObject ijson = new JSONObject();\n ijson.put(\"type\", \"image\");\n ijson.put(\"content\", image.attr(\"src\"));\n description.put(ijson);\n }\n }", "private static final byte[] xfuzzydoc_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -124, 0, 0, 102,\n\t\t\t\t102, 102, -1, -1, 0, -1, -1, -1, 0, 0, 0, 102, 102, 102, -53,\n\t\t\t\t125, 48, -21, -61, -126, -57, -90, 113, -37, -94, 69, -70, 105,\n\t\t\t\t40, -53, 117, 56, -61, 89, 4, -94, 121, 60, -21, -78, 93, -70,\n\t\t\t\t89, 24, -82, 69, 12, -66, 117, 24, -29, -94, 117, -49, 109, 40,\n\t\t\t\t-82, 93, 8, -29, -114, 56, -86, 101, 36, -5, -70, 97, -45, 125,\n\t\t\t\t40, -49, -122, 60, -57, 125, 40, -61, 105, 28, -29, -102, 81,\n\t\t\t\t-37, -122, 65, -13, -78, 97, -37, -94, 81, -1, -1, -1, 33, -2,\n\t\t\t\t14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77,\n\t\t\t\t80, 0, 33, -7, 4, 1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0,\n\t\t\t\t0, 5, 67, -32, 35, -118, 64, 57, 62, 101, 58, -90, 38, -54,\n\t\t\t\t-74, 46, 64, -66, 42, 57, -45, -11, -115, -61, -49, -32, -5,\n\t\t\t\t52, 91, 79, 64, 4, -42, 84, 3, 1, 67, -112, 28, -76, 94, -55,\n\t\t\t\t-30, -17, -124, 84, 46, -105, 78, 92, -108, 88, -36, 37, 25,\n\t\t\t\t96, -84, -105, -53, -51, -46, -66, 97, -26, -104, -84, -42, -2,\n\t\t\t\t-34, 33, 0, 59 };\n\t\treturn data;\n\t}", "public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}", "public Optional<PagedSearchIterable<GHContent>> getGHContents(String org, String img)\n throws IOException, InterruptedException {\n PagedSearchIterable<GHContent> contentsWithImage = null;\n for (int i = 0; i < 5; i++) {\n contentsWithImage = findFilesWithImage(img, org);\n if (contentsWithImage.getTotalCount() > 0) {\n break;\n } else {\n getGitHubUtil().waitFor(TimeUnit.SECONDS.toMillis(1));\n }\n }\n\n int numOfContentsFound = contentsWithImage.getTotalCount();\n if (numOfContentsFound <= 0) {\n log.info(\"Could not find any repositories with given image: {}\", img);\n return Optional.empty();\n }\n return Optional.of(contentsWithImage);\n }", "com.google.cloud.compute.v1.Metadata getMetadata();", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByTransformOrBuilder(\n int index);", "public interface IImageMetadata {\n\n public String getImageType();\n\n public void setImageType(String imageType);\n\n public String getFilename();\n\n public void setFilename(String filename);\n\n public DateTime getLastModified();\n\n public void setLastModified(DateTime d);\n\n public DateTime getCreated();\n\n public void setCreated(DateTime d);\n\n public long getSize();\n\n public void setSize(long size);\n\n public String getReadableSize();\n\n}", "public List<ImageInformation> imageInformation() {\n return this.innerProperties() == null ? null : this.innerProperties().imageInformation();\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByHandlerOrBuilder(\n int index);", "@Test\n\tpublic void testImageFromWindowsPhotoEditor2() throws IOException, ImageProcessingException, MetadataException {\n\t\tURL url = new URL(\"https://dbis-thure.uibk.ac.at/f/Get?id=BTCMSAGPZYLKPPLZWWQLSMKY\");\n\t\tRotatedBufferedImage bi = (RotatedBufferedImage) TrpImageIO.read(url);\n\t\tlogger.info(\"TrpImageIO result = \" + bi.getImageTransformation().toString());\n\t\t\n\t\tImageTransformation t = TrpImgMdParser.readImageDimension(url);\n\t\tlogger.info(\"TrpImgMdParser result = \" + t.toString());\n\t}", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "java.lang.String getImage();", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }", "private void imageSearch(ArrayList<Html> src) {\n // loop through the Html objects\n for(Html page : src) {\n\n // Temp List for improved readability\n ArrayList<Image> images = page.getImages();\n\n // loop through the corresponding images\n for(Image i : images) {\n if(i.getName().equals(this.fileName)) {\n this.numPagesDisplayed++;\n this.pageList.add(page.getLocalPath());\n }\n }\n }\n }", "private Bitmap getMetadataBitmap(MediaMetadata metadata) {\n for (int i = 0; i < PREFERRED_BITMAP_ORDER.length; i++) {\n Bitmap bitmap = metadata.getBitmap(PREFERRED_BITMAP_ORDER[i]);\n if (bitmap != null) {\n return bitmap;\n }\n }\n return null;\n }", "private static final byte[] xfuzzyload_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -82,\n\t\t\t\t69, 12, -128, -128, -128, -1, -1, -1, -64, -64, -64, -1, -1, 0,\n\t\t\t\t0, 0, 0, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 6, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 75, 8, -86,\n\t\t\t\t-42, 11, 45, -82, -24, 32, -83, -42, -80, 43, -39, -26, -35,\n\t\t\t\t22, -116, 1, -9, 24, -127, -96, 10, 101, 23, 44, 2, 49, -56,\n\t\t\t\t108, 21, 15, -53, -84, -105, 74, -86, -25, 50, -62, -117, 68,\n\t\t\t\t44, -54, 74, -87, -107, 82, 21, 40, 8, 81, -73, -96, 78, 86,\n\t\t\t\t24, 53, 82, -46, 108, -77, -27, -53, 78, -85, -111, -18, 116,\n\t\t\t\t87, 8, 23, -49, -123, 4, 0, 59 };\n\t\treturn data;\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder() {\n return imageByTransform_;\n }", "static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }", "public static NodeList findAllImages(DocumentFragment df)\n throws Exception {\n // troubble with expath in some dfs\n // do it the hard way:\n try {\n String domstring = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><\"+WXTROOT+\"></\"+WXTROOT+\">\";\n Document doc = makeDomFromString(domstring,true,null);\n doc.getDocumentElement().appendChild(doc.importNode(df, true));\n return doc.getElementsByTagName(\"img\");\n } catch (Exception ex) {\n throw new Exception(reporter.getBundleString(\"Could_not_extract_images\", ex.getMessage()));\n }\n }", "Receta getByIdWithImages(long id);", "private List<ImageInfo> scanForImageInfo(CharSequence source) {\n return null; \n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:08.680 -0500\", hash_original_method = \"4B0B8276597CEA521E1E338B4AADD471\", hash_generated_method = \"9283ED1C2044F4178961436920D7FF12\")\n \nstatic ImageDescriptor parse(byte[] rawData, int valueIndex) {\n ImageDescriptor d = new ImageDescriptor();\n try {\n d.width = rawData[valueIndex++] & 0xff;\n d.height = rawData[valueIndex++] & 0xff;\n d.codingScheme = rawData[valueIndex++] & 0xff;\n\n // parse image id\n d.imageId = (rawData[valueIndex++] & 0xff) << 8;\n d.imageId |= rawData[valueIndex++] & 0xff;\n // parse offset\n d.highOffset = (rawData[valueIndex++] & 0xff); // high byte offset\n d.lowOffset = rawData[valueIndex++] & 0xff; // low byte offset\n\n d.length = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));\n } catch (IndexOutOfBoundsException e) {\n CatLog.d(\"ImageDescripter\", \"parse; failed parsing image descriptor\");\n d = null;\n }\n return d;\n }", "public interface ImageMetadata extends Named, HasMetaTable {\n\n\t/** Sets width (in pixels) of thumbnail planes in this image. */\n\tvoid setThumbSizeX(long thumbSizeX);\n\n\t/** Sets height (in pixels) of thumbnail planes in this image. */\n\tvoid setThumbSizeY(long thumbSizeY);\n\n\t/**\n\t * Sets the data type associated with a pixel. Valid pixel type constants\n\t * (e.g., {@link FormatTools#INT8}) are enumerated in {@link FormatTools}.\n\t */\n\tvoid setPixelType(int pixelType);\n\n\t/** Sets the number of valid bits per pixel. */\n\tvoid setBitsPerPixel(int bitsPerPixel);\n\n\t/**\n\t * Sets whether or not we are confident that the dimension order is correct.\n\t */\n\tvoid setOrderCertain(boolean orderCertain);\n\n\t/** Sets whether or not each pixel's bytes are in little endian order. */\n\tvoid setLittleEndian(boolean littleEndian);\n\n\t/**\n\t * Sets whether or not the planes are stored as indexed color. An indexed\n\t * color image treats each pixel value as an index into a color table\n\t * containing one or more (typically 3) actual values for the pixel.\n\t */\n\tvoid setIndexed(boolean indexed);\n\n\t/**\n\t * Sets the number of planar axes in this image. This value represents the\n\t * number of dimensional axes constituting each {@link Plane} (as returned by\n\t * the {@link Reader#openPlane} methods). This value is necessary to determine\n\t * the total plane count for an N-dimensional image, as well as how many\n\t * pixels there are per plane.\n\t * <p>\n\t * For example, suppose we have a 4-dimensional image with axes (X, Y, Z, T)\n\t * and extents (768, 512, 7, 13). If there are two planar axes, then each\n\t * plane is 768 x 512 and there are 7 x 13 = 91 total planes. But if we have\n\t * three planar axes, then each plane is 768 x 512 x 7 and there are 13 total\n\t * planes.\n\t * </p>\n\t *\n\t * @see Reader#openPlane(int, long)\n\t */\n\tvoid setPlanarAxisCount(final int count);\n\n\t/**\n\t * Sets the number of interleaved axes in this image. This must be a value\n\t * between [0, planarAxisCount). Interleaved axes are planar axes that do not\n\t * constitute the \"canonical\" axes - e.g., in a CXY image with an interleaved\n\t * axis count of 1, the C axis is interleaved, and each plane is an XY plane\n\t * with C different representations.\n\t */\n\tvoid setInterleavedAxisCount(final int count);\n\n\t/** Sets whether or not we can ignore the color map (if present). */\n\tvoid setFalseColor(boolean falseColor);\n\n\t/**\n\t * Sets whether or not we are confident that all of the metadata stored within\n\t * the image has been parsed.\n\t */\n\tvoid setMetadataComplete(boolean metadataComplete);\n\n\t/**\n\t * Sets whether or not this image is a lower-resolution copy of another image.\n\t */\n\tvoid setThumbnail(boolean thumbnail);\n\n\t/**\n\t * Convenience method to set both the axis types and lengths for this\n\t * ImageMetadata.\n\t */\n\tvoid setAxes(CalibratedAxis[] axes, long[] axisLengths);\n\n\t/**\n\t * Sets the Axes types for this image. Order is implied by ordering within\n\t * this array\n\t */\n\tvoid setAxisTypes(AxisType... axisTypes);\n\n\t/**\n\t * Sets the Axes types for this image. Order is implied by ordering within\n\t * this array\n\t */\n\tvoid setAxes(CalibratedAxis... axes);\n\n\t/**\n\t * Sets the lengths of each axis. Order is parallel of {@code axes}.\n\t * <p>\n\t * NB: axes must already exist for this method to be called. Use\n\t * {@link #setAxes(CalibratedAxis[])} or {@link #setAxes}\n\t */\n\tvoid setAxisLengths(long[] axisLengths);\n\n\t/**\n\t * Sets the length for the specified axis. Adds the axis if if its type is not\n\t * already present in the image.\n\t */\n\tvoid setAxisLength(CalibratedAxis axis, long length);\n\n\t/**\n\t * As {@link #setAxisLength(CalibratedAxis, long)} but requires only the\n\t * AxisType.\n\t */\n\tvoid setAxisLength(AxisType axis, long length);\n\n\t/**\n\t * Sets the axis at the specified index, if an axis with a matching type is\n\t * not already defined. Otherwise the axes are re-ordered, per\n\t * {@link java.util.List#add(int, Object)}.\n\t */\n\tvoid setAxis(int index, CalibratedAxis axis);\n\n\t/**\n\t * As {@link #setAxis(int, CalibratedAxis)} but using the default calibration\n\t * values, per {@link FormatTools#createAxis(AxisType)}.\n\t */\n\tvoid setAxisType(int index, AxisType axis);\n\n\t// TODO: Consider typing rois and tables on more specific data structures.\n\n\t/** Sets the ROIs associated with this image. */\n\tvoid setROIs(Object rois);\n\n\t/** Sets the tables associated with this image. */\n\tvoid setTables(Object tables);\n\n\t/** Returns the size, in bytes, of all planes in this image. */\n\tlong getSize();\n\n\t/** Returns the size, in bytes, of one plane in this image. */\n\tlong getPlaneSize();\n\n\t/** Returns the width (in pixels) of the thumbnail planes in this image. */\n\tlong getThumbSizeX();\n\n\t/** Returns the height (in pixels) of the thumbnail planes in this image. */\n\tlong getThumbSizeY();\n\n\t/**\n\t * Returns the CalibratedAxis associated with the given type. Useful to\n\t * retrieve calibration information.\n\t */\n\tCalibratedAxis getAxis(AxisType axisType);\n\n\t/**\n\t * Returns the data type associated with a pixel. Valid pixel type constants\n\t * (e.g., {@link FormatTools#INT8}) are enumerated in {@link FormatTools}.\n\t */\n\tint getPixelType();\n\n\t/** Returns the number of valid bits per pixel. */\n\tint getBitsPerPixel();\n\n\t/**\n\t * Returns true if we are confident that the dimension order is correct.\n\t */\n\tboolean isOrderCertain();\n\n\t/** Returns true if each pixel's bytes are in little endian order. */\n\tboolean isLittleEndian();\n\n\t/** Returns true if the planes are stored as indexed color. */\n\tboolean isIndexed();\n\n\t/** Returns the number of planar axes in this image. */\n\tint getPlanarAxisCount();\n\n\t/**\n\t * Returns the number of interleaved axes in this image.\n\t */\n\tint getInterleavedAxisCount();\n\n\t/** Returns true if the {@link Axes#CHANNEL} axis is a planar axis. */\n\tboolean isMultichannel();\n\n\t/** Returns true if we can ignore the color map (if present). */\n\tboolean isFalseColor();\n\n\t/**\n\t * Returns true if we are confident that all of the metadata stored within the\n\t * image has been parsed.\n\t */\n\tboolean isMetadataComplete();\n\n\t/**\n\t * Determines whether or not this image is a lower-resolution copy of another\n\t * image.\n\t *\n\t * @return true if this image is a thumbnail\n\t */\n\tboolean isThumbnail();\n\n\t/**\n\t * Gets the axis of the (zero-indexed) specified plane.\n\t *\n\t * @param axisIndex - index of the desired axis within this image\n\t * @return Type of the desired plane.\n\t */\n\tCalibratedAxis getAxis(final int axisIndex);\n\n\t/**\n\t * Gets the length of the (zero-indexed) specified plane.\n\t *\n\t * @param axisIndex - index of the desired axis within this image\n\t * @return Length of the desired axis, or 1 if the axis is not found.\n\t */\n\tlong getAxisLength(final int axisIndex);\n\n\t/**\n\t * A convenience method for looking up the length of an axis based on its\n\t * type. No knowledge of plane ordering is necessary.\n\t *\n\t * @param t - CalibratedAxis to look up\n\t * @return Length of axis t, or 1 if the axis is not found.\n\t */\n\tlong getAxisLength(final CalibratedAxis t);\n\n\t/**\n\t * As {@link #getAxisLength(CalibratedAxis)} but only requires the\n\t * {@link AxisType} of the desired axis.\n\t *\n\t * @param t - CalibratedAxis to look up\n\t * @return Length of axis t, or 1 if the axis is not found.\n\t */\n\tlong getAxisLength(final AxisType t);\n\n\t/**\n\t * Returns the array index for the specified CalibratedAxis. This index can be\n\t * used in other Axes methods for looking up lengths, etc...\n\t * <p>\n\t * This method can also be used as an existence check for the target\n\t * CalibratedAxis.\n\t * </p>\n\t *\n\t * @param axis - axis to look up\n\t * @return The index of the desired axis or -1 if not found.\n\t */\n\tint getAxisIndex(final CalibratedAxis axis);\n\n\t/**\n\t * As {@link #getAxisIndex(CalibratedAxis)} but only requires the\n\t * {@link AxisType} of the desired axis.\n\t *\n\t * @param axisType - axis type to look up\n\t * @return The index of the desired axis or -1 if not found.\n\t */\n\tint getAxisIndex(final AxisType axisType);\n\n\t/**\n\t * Returns an array of the types for axes associated with the specified image\n\t * index. Order is consistent with the axis length (int) array returned by\n\t * {@link #getAxesLengths()}.\n\t * <p>\n\t * CalibratedAxis order is sorted and represents order within the image.\n\t * </p>\n\t *\n\t * @return List of CalibratedAxes. Ordering in the list indicates the axis\n\t * order in the image.\n\t */\n\tList<CalibratedAxis> getAxes();\n\n\t/**\n\t * Returns an array of the CalibratedAxis that, together, define the bounds of a\n\t * single plane in the dataset.\n\t *\n\t * @return List of CalibratedAxes. Ordering in the list indicates the axis\n\t * order in the image.\n\t */\n\tList<CalibratedAxis> getAxesPlanar();\n\n\t/**\n\t * Returns an array of the CalibratedAxis that define the number of planes in the\n\t * dataset.\n\t *\n\t * @return List of CalibratedAxes. Ordering in the list indicates the axis\n\t * order in the image.\n\t */\n\tList<CalibratedAxis> getAxesNonPlanar();\n\n\t/**\n\t * @return the number of planes in this image\n\t */\n\tlong getPlaneCount();\n\n\t/**\n\t * Returns an array of the lengths for axes associated with the specified\n\t * image index.\n\t * <p>\n\t * Ordering is consistent with the CalibratedAxis array returned by\n\t * {@link #getAxes()}.\n\t * </p>\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengths();\n\n\t/**\n\t * Returns an array of the lengths for axes in the provided CalibratedAxis list.\n\t * <p>\n\t * Ordering of the lengths is consistent with the provided ordering.\n\t * </p>\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengths(final List<CalibratedAxis> axes);\n\n\t/**\n\t * Returns an array of the lengths for the planar axes in this image.\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengthsPlanar();\n\n\t/**\n\t * Returns an array of the lengths for the non-planar axes in this image.\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengthsNonPlanar();\n\n\t// TODO: Consider typing rois and tables on more specific data structures.\n\n\t/** Retrieves the ROIs associated with this image. */\n\tObject getROIs();\n\n\t/** Retrieves the tables associated with this image. */\n\tObject getTables();\n\n\t/**\n\t * Appends the provided {@link CalibratedAxis} to the metadata's list of axes,\n\t * with a length of 1.\n\t *\n\t * @param axis - The new axis\n\t */\n\tvoid addAxis(final CalibratedAxis axis);\n\n\t/**\n\t * Appends the provided CalibratedAxis to the current CalibratedAxis array and\n\t * creates a corresponding entry with the specified value in axis lengths.\n\t *\n\t * @param axis - The new axis\n\t * @param value - length of the new axis\n\t */\n\tvoid addAxis(final CalibratedAxis axis, final long value);\n\n\t/**\n\t * As {@link #addAxis(CalibratedAxis, long)} using the default calibration\n\t * value, per {@link FormatTools#createAxis(AxisType)}.\n\t */\n\tvoid addAxis(final AxisType axisType, final long value);\n\n\t/**\n\t * @return A new copy of this ImageMetadata.\n\t */\n\tImageMetadata copy();\n\n\t/**\n\t * Populates this ImageMetadata using the provided instance.\n\t *\n\t * @param toCopy - ImageMetadata to copy\n\t */\n\tvoid copy(ImageMetadata toCopy);\n\n\t/**\n\t * As\n\t * {@link #populate(String, List, long[], int, boolean, boolean, boolean, boolean, boolean)}\n\t * but automatically determines bits per pixel.\n\t */\n\tvoid populate(String name, List<CalibratedAxis> axes, long[] lengths,\n\t\tint pixelType, boolean orderCertain, boolean littleEndian, boolean indexed,\n\t\tboolean falseColor, boolean metadataComplete);\n\n\t/**\n\t * Convenience method for manually populating an ImageMetadata.\n\t */\n\tvoid populate(String name, List<CalibratedAxis> axes, long[] lengths,\n\t\tint pixelType, int bitsPerPixel, boolean orderCertain, boolean littleEndian,\n\t\tboolean indexed, boolean falseColor, boolean metadataComplete);\n}", "public abstract Object getMetadata(String key);", "private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }", "public List<PictureData> searchAllPicture(String pageID) {\n\t\treturn null;\n\t}", "public List<PictureData> searchAllPicture(String pageID) {\n\t\treturn null;\n\t}", "Map<String, Object> getAllMetadata();", "@Override\n\tpublic void readImages() {\n\t\t\n\t}", "org.chromium.components.paint_preview.common.proto.PaintPreview.MetadataProto getMetadata();", "com.google.protobuf.ByteString getImgData(int index);", "List<Bitmap> getRecipeImgSmall();", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder() {\n if (imageByTransformBuilder_ != null) {\n return imageByTransformBuilder_.getMessageOrBuilder();\n } else {\n return imageByTransform_;\n }\n }", "public void findBookDetails(AnnotateImageResponse imageResponse) throws IOException {\n\n String google = \"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=\";\n String search = \"searchString\";\n String charset = \"UTF-8\";\n\n URL url = new URL(google + URLEncoder.encode(search, charset));\n Reader reader = new InputStreamReader(url.openStream(), charset);\n GoogleResults results = new Gson().fromJson(reader, GoogleResults.class);\n\n // Show title and URL of 1st result.\n System.out.println(results.getResponseData().getResults().get(0).getTitle());\n System.out.println(results.getResponseData().getResults().get(0).getUrl());\n }", "int getImgDataCount();", "private String processAllImgResources(List<Node> nodes,\n Map<Uri, FutureTask<RequestContext>> futureTasks) {\n StringBuilder cssContent = new StringBuilder(\"\");\n\n for (int i = 0; i < nodes.size(); i++) {\n Element imageElement = (Element) nodes.get(i);\n String src = imageElement.getAttribute(\"src\");\n RequestContext requestCxt;\n\n // Fetch the content of the requested uri.\n try {\n Uri imgUri = UriBuilder.parse(src).toUri();\n\n try {\n requestCxt = futureTasks.get(imgUri).get();\n } catch (InterruptedException ie) {\n throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR, ie);\n } catch (ExecutionException ie) {\n throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR, ie);\n }\n\n if (requestCxt.getGadgetException() != null) {\n throw requestCxt.getGadgetException();\n }\n\n HttpResponse response = requestCxt.getHttpResp();\n // Content header checking is fast so this is fine to do for every\n // response.\n ImageFormat imageFormat = Sanselan.guessFormat(\n new ByteSourceInputStream(response.getResponse(), imgUri.getPath()));\n\n if (imageFormat == ImageFormat.IMAGE_FORMAT_UNKNOWN) {\n // skip this node\n continue;\n }\n\n // extract height and width from the actual image and set these\n // attributes of the <img> tag.\n ImageInfo imageInfo = Sanselan.getImageInfo(response.getResponse(),\n imgUri.getPath());\n\n if (imageInfo == null) {\n continue;\n }\n\n int imageHeight = imageInfo.getHeight();\n int imageWidth = imageInfo.getWidth();\n\n if (imageHeight > 0 && imageWidth > 0 && imageHeight * imageWidth > 1) {\n imageElement.setAttribute(\"class\", IMG_ATTR_CLASS_NAME_PREFIX + i);\n cssContent.append('.').append(IMG_ATTR_CLASS_NAME_PREFIX).append(i).append(\" {\\n\")\n .append(\" height: \").append(imageHeight).append(\"px;\\n\")\n .append(\" width: \").append(imageWidth).append(\"px;\\n\")\n .append(\"}\\n\");\n }\n } catch (ImageReadException e) {\n if (LOG.isLoggable(Level.WARNING)) {\n LOG.logp(Level.WARNING, classname, \"processAllImgResources\", MessageKeys.UNABLE_TO_READ_RESPONSE, new Object[] {src});\n }\n } catch (GadgetException e) {\n if (LOG.isLoggable(Level.WARNING)) {\n LOG.logp(Level.WARNING, classname, \"processAllImgResources\", MessageKeys.UNABLE_TO_FETCH_IMG, new Object[] {src});\n }\n } catch (IOException e) {\n if (LOG.isLoggable(Level.WARNING)) {\n LOG.logp(Level.WARNING, classname, \"processAllImgResources\", MessageKeys.UNABLE_TO_PARSE_IMG, new Object[] {src});\n }\n }\n }\n\n return cssContent.toString();\n }", "List<Bitmap> getFavoriteRecipeImgs();", "void ProcessImage() {\n DoDescribe();\n }", "private static final byte[] xfuzzy_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -1,\n\t\t\t\t-1, -1, -82, 69, 12, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t36, -124, -113, -87, -101, -31, -33, 32, 120, 97, 57, 68, -93,\n\t\t\t\t-54, -26, 90, -24, 49, 84, -59, 116, -100, 88, -99, -102, 25,\n\t\t\t\t30, -19, 36, -103, -97, -89, -62, 117, -119, 51, 5, 0, 59 };\n\t\treturn data;\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform() {\n return imageByTransform_;\n }", "@Test\n public void testGridViewImages() {\n /* use of the content desc from the cursor data gets us the specific imageview.\n Use of the 'anyOf' is an or statement for matching multiple content descriptions if necessary\n */\n final int COL_TITLE = 2;\n Cursor cursor = mActivityRule.getActivity().getContentResolver().query(\n TVContract.TVEntry.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n null // sort order\n );\n\n cursor.moveToFirst();\n onView(anyOf(withContentDescription(cursor.getString(COL_TITLE)))).check(matches(isDisplayed()));\n }", "public Map<String, Variant<?>> GetMetadata(int position);", "public ImageDescriptor getImageDescriptor();", "private void getMetadata() {\n masterRoot = AbstractMetadata.getAbstractedMetadata(sourceProduct);\n masterMetadata = new MetadataDoris(masterRoot);\n masterOrbit = new OrbitsDoris();\n masterOrbit.setOrbit(masterRoot);\n \n // SLAVE METADATA\n // hash table or just map for slaves - now it supports only a single sourceSlave image\n slaveRoot = sourceProduct.getMetadataRoot().getElement(AbstractMetadata.SLAVE_METADATA_ROOT).getElementAt(0);\n slaveMetadata = new MetadataDoris(slaveRoot);\n slaveOrbit = new OrbitsDoris();\n slaveOrbit.setOrbit(slaveRoot);\n }", "public native String getImageAttribute(String key) throws MagickException;", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform() {\n if (imageByTransformBuilder_ == null) {\n return imageByTransform_;\n } else {\n return imageByTransformBuilder_.getMessage();\n }\n }", "Metadata getMetaData();", "Object getMetadata(String key);", "String getItemImage();", "List<MediaMetadata> getAll();", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder() {\n return imageByHandler_;\n }", "void loadImages(int id_image, HouseRepository.GetImageFromHouseCallback callback);", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder() {\n if (imageByHandlerBuilder_ != null) {\n return imageByHandlerBuilder_.getMessageOrBuilder();\n } else {\n return imageByHandler_;\n }\n }", "@Test\n public void testImageFiltering()\n { \n String html = header + \"<img src=\\\"file://path/to/local/image.png\\\"/>\" + footer;\n Document doc = wysiwygHTMLCleaner.clean(new StringReader(html));\n NodeList nodes = doc.getElementsByTagName(\"img\");\n Assert.assertEquals(1, nodes.getLength());\n Element image = (Element) nodes.item(0);\n Node startComment = image.getPreviousSibling();\n Node stopComment = image.getNextSibling();\n Assert.assertEquals(Node.COMMENT_NODE, startComment.getNodeType());\n Assert.assertEquals(\"startimage:false|-|attach|-|Missing.png\", startComment.getNodeValue());\n Assert.assertEquals(\"Missing.png\", image.getAttribute(\"src\"));\n Assert.assertEquals(Node.COMMENT_NODE, stopComment.getNodeType());\n Assert.assertTrue(stopComment.getNodeValue().equals(\"stopimage\"));\n }", "public PictureData searchPicture(String pictureId) {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testImageFromWindowsPhotoEditor() throws IOException, ImageProcessingException, MetadataException {\n\t\tURL url = new URL(\"https://files-test.transkribus.eu/Get?id=JMWVACVZDPHVPOVGFWQVBHXP\");\n\t\tRotatedBufferedImage bi = (RotatedBufferedImage) TrpImageIO.read(url);\n\t\tlogger.info(\"TrpImageIO result = \" + bi.getImageTransformation().toString());\n\t\t\n\t\tImageTransformation t = TrpImgMdParser.readImageDimension(url);\n\t\tlogger.info(\"TrpImgMdParser result = \" + t.toString());\n\t}", "@Test\r\n public void testGetPersonImages() throws MovieDbException {\r\n LOG.info(\"getPersonImages\");\r\n \r\n List<Artwork> artwork = tmdb.getPersonImages(ID_PERSON_BRUCE_WILLIS);\r\n assertTrue(\"No cast information\", artwork.size() > 0);\r\n }", "private void searchImages()\n {\n searchWeb = false;\n search();\n }", "DetectionResult getObjInImage(Mat image);", "private void getImagesFromDatabase() {\n try {\n mCursor = mDbAccess.getPuzzleImages();\n\n if (mCursor.moveToNext()) {\n for (int i = 0; i < mCursor.getCount(); i++) {\n String imagetitle = mCursor.getString(mCursor.getColumnIndex(\"imagetitle\"));\n String imageurl = mCursor.getString(mCursor.getColumnIndex(\"imageurl\"));\n mImageModel.add(new CustomImageModel(imagetitle, imageurl));\n mCursor.moveToNext();\n }\n } else {\n Toast.makeText(getActivity(), \"databse not created...\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n\n }", "public List<ContentImageMeta> listContentImageMetaByContentFilterByType(Content content, String type) {\n if (type == null) {\n return contentImageMetaDAO.listByContent(content);\n }\n \n return contentImageMetaDAO.listByContentAndType(content, type);\n }", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList() {\n if (imagesByTransformBuilder_ != null) {\n return imagesByTransformBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(imagesByTransform_);\n }\n }", "private String describeImage(String url, byte[] imageBytes) {\n Bitmap bitmap = BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length);\n\n return describeImage(url, bitmap);\n }", "public GeoTiffIIOMetadataDecoder getMetadata() {\n GeoTiffIIOMetadataDecoder metadata = null;\n ImageReader reader = null;\n boolean closeMe = true;\n ImageInputStream stream = null;\n\n try {\n if ((source instanceof InputStream) || (source instanceof ImageInputStream)) {\n closeMe = false;\n }\n if (source instanceof ImageInputStream) {\n stream = (ImageInputStream) source;\n } else {\n inStreamSPI = ImageIOExt.getImageInputStreamSPI(source);\n if (inStreamSPI == null) {\n throw new IllegalArgumentException(\"No input stream for the provided source\");\n }\n stream =\n inStreamSPI.createInputStreamInstance(\n source, ImageIO.getUseCache(), ImageIO.getCacheDirectory());\n }\n if (stream == null) {\n throw new IllegalArgumentException(\"No input stream for the provided source\");\n }\n stream.mark();\n reader = READER_SPI.createReaderInstance();\n reader.setInput(stream);\n final IIOMetadata iioMetadata = reader.getImageMetadata(0);\n metadata = new GeoTiffIIOMetadataDecoder(iioMetadata);\n } catch (IOException e) {\n if (LOGGER.isLoggable(Level.SEVERE)) {\n LOGGER.log(Level.SEVERE, e.getMessage(), e);\n }\n } finally {\n if (reader != null)\n try {\n reader.dispose();\n } catch (Throwable t) {\n }\n\n if (stream != null) {\n try {\n stream.reset();\n } catch (Throwable t) {\n }\n if (closeMe) {\n try {\n stream.close();\n } catch (Throwable t) {\n }\n }\n }\n }\n return metadata;\n }", "public native void readImage(ImageInfo imageInfo) throws MagickException;", "private static final byte[] pkg_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -1,\n\t\t\t\t-6, -51, 0, 0, 0, -91, 42, 42, -128, -128, -128, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100,\n\t\t\t\t101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4,\n\t\t\t\t1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 64, 8, -86,\n\t\t\t\t-79, -48, 110, -123, 32, 32, -99, 110, -118, 93, 41, -57, -34,\n\t\t\t\t54, 13, 83, 88, 61, -35, -96, 6, -21, 37, -87, 48, 27, 75, -23,\n\t\t\t\t-38, -98, -26, 88, 114, 120, -18, 75, -102, 96, 7, -62, 16, 85,\n\t\t\t\t-116, 39, -38, -121, -105, 44, 46, 121, 68, -122, 39, -124,\n\t\t\t\t-119, 72, 47, 81, -85, 84, -101, 0, 0, 59 };\n\t\treturn data;\n\t}", "public List<MapImage> convertMetdataToMapImages(PreparedQuery trackedMetadata) {\n List<MapImage> formLocationOptions = new ArrayList<>();\n for (Entity entity : trackedMetadata.asIterable()) {\n String location = (String) entity.getProperty(\"cityName\");\n double latitude = (double) entity.getProperty(\"latitude\");\n double longitude = (double) entity.getProperty(\"longitude\");\n\n formLocationOptions.add(new MapImage(latitude, longitude, location));\n }\n return formLocationOptions;\n }", "public List<Image> parseMainImagesResult(Document doc) {\n\n ArrayList<Image> mainImages = new ArrayList<>();\n Elements mainHtmlImages = doc.select(CSS_IMAGE_QUERY);\n Timber.i(\"Images: %s\", mainHtmlImages.toString());\n String href;\n Image mainImage;\n for (Element mainHtmlImage : mainHtmlImages) {\n href = mainHtmlImage.attr(\"href\");\n Timber.i(\"Link href: %s\", href);\n mainImage = new Image(href);\n mainImages.add(mainImage);\n }\n return mainImages;\n }", "public Iterable<SequenceInformation> extractMetadata(ExtractionContext extractionContext) throws SQLException;", "@Override\n\tpublic List<Image> findAllImage() {\n\t\treturn new ImageDaoImpl().findAllImage();\n\t}", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList() {\n return imagesByTransform_;\n }", "public native byte[] imageToBlob(ImageInfo imageInfo);", "@Override\n\tpublic List<PersonalisationMediaModel> getImageByID(final String imageID)\n\t{\n\t\tfinal String query1 = \"Select {pk} from {PersonalisationMedia} Where {code}=?imageId and {user}=?user\";\n\t\t/**\n\t\t * select distinct {val:pk} from {PersonalisationMediaModel as val join MediaModel as media on\n\t\t * {media:PK}={val.image} join User as user on {user:pk}={val:user} and {media:code}=?imageId and {user:pk}=?user}\n\t\t */\n\t\tfinal UserModel user = getUserService().getCurrentUser();\n\t\tfinal FlexibleSearchQuery fQuery = new FlexibleSearchQuery(query1);\n\t\tfinal Map<String, Object> params = new HashMap<>();\n\t\tparams.put(\"imageId\", imageID);\n\t\tparams.put(\"user\", user);\n\t\tfQuery.addQueryParameters(params);\n\t\tLOG.info(\"getImageByID\" + fQuery);\n\t\tfinal SearchResult<PersonalisationMediaModel> searchResult = flexibleSearchService.search(fQuery);\n\t\treturn searchResult.getResult();\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler() {\n if (imageByHandlerBuilder_ == null) {\n return imageByHandler_;\n } else {\n return imageByHandlerBuilder_.getMessage();\n }\n }" ]
[ "0.718179", "0.6723135", "0.6689388", "0.66375303", "0.6607423", "0.62004995", "0.6112258", "0.6073198", "0.6044367", "0.5977704", "0.597671", "0.59594744", "0.59444165", "0.59314287", "0.5897156", "0.58901453", "0.58249927", "0.5785783", "0.57530195", "0.5721371", "0.56915593", "0.567141", "0.5663607", "0.5661495", "0.5629702", "0.5624283", "0.55928445", "0.5587939", "0.5538415", "0.5535969", "0.55272126", "0.55129814", "0.54879653", "0.5459247", "0.54359376", "0.54238343", "0.5418231", "0.54008037", "0.53999573", "0.53886473", "0.53579074", "0.5355826", "0.535363", "0.53468657", "0.5338443", "0.5321086", "0.5320779", "0.53144646", "0.5306736", "0.5301662", "0.530002", "0.52969795", "0.52969795", "0.52823806", "0.52735096", "0.5269831", "0.5267294", "0.5266938", "0.5263683", "0.52560574", "0.52494323", "0.5248818", "0.52463907", "0.5244146", "0.5234402", "0.52343583", "0.5230025", "0.52230996", "0.5218908", "0.5218438", "0.5212699", "0.520554", "0.51870394", "0.51633567", "0.5160549", "0.51579714", "0.5151397", "0.5138189", "0.51358914", "0.5134909", "0.5132873", "0.5131405", "0.5099234", "0.5093958", "0.50861466", "0.5081324", "0.5077289", "0.5072901", "0.50707716", "0.5065069", "0.50533456", "0.5049342", "0.50463814", "0.50339526", "0.50245935", "0.50230753", "0.5022017", "0.5015574", "0.50152975", "0.5007687" ]
0.6123573
6
List content image metadatas by content or by content and type
public List<ContentImageMeta> listContentImageMetaByContentFilterByType(Content content, String type) { if (type == null) { return contentImageMetaDAO.listByContent(content); } return contentImageMetaDAO.listByContentAndType(content, type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index);", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByHandlerList();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList();", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByTransformList();", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList();", "public ContentImageMeta findContentImageMetaByIdAndContent(Long imageId, Content content) {\n return contentImageMetaDAO.findByIdAndContent(imageId, content);\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByTransform(int index);", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();", "ImageContentData findContentData(String imageId);", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByHandlerOrBuilder(\n int index);", "private void odfContentList(Document document) {\n\t\t// mimetype\n\t\t// content\n\t\t// styles\n\t\t// meta\n\t\t// settings\n\t\t// META-INF/manifest - this thing should tell us what is in the document\n\t\t// Versions\n\t\t// Thumbnails\n\t\t// Pictures\n\n\t\tOdfPackage pkg = document.getPackage();\n\n\t\tfor (String file : pkg.getFilePaths()) {\n\t\t\tif (file != null)\n\t\t\t\tfilePaths.add(file);\n\t\t}\n\n\t}", "private void montaListaDeItensDeImagem(org.jsoup.nodes.Document doc, JSONArray description) {\n Elements images = doc.select(\"div\").select(\"img\");\n for (Element image : images) {\n JSONObject ijson = new JSONObject();\n ijson.put(\"type\", \"image\");\n ijson.put(\"content\", image.attr(\"src\"));\n description.put(ijson);\n }\n }", "static void list(String content, MessageChannel chan){\n if(!content.toLowerCase().startsWith(\"!list\"))\n return;\n\n List<Request> requestsForChannel = Util.findAllRequestsByChannel(requestList, chan);\n\n if(requestsForChannel.size() > 0){\n StringBuilder str = new StringBuilder(\"Image posting cycles for this channel: \");\n for(Request req : requestsForChannel){\n str.append(\"\\n- Tags: \\\"\")\n .append(req.getSearchTags())\n .append(\"\\\" every \")\n .append(Util.parseDuration(req.getTimeInterval()));\n }\n chan.sendMessage(str.toString()).queue();\n }\n else {\n chan.sendMessage(\"I'm not posting any images in this channel.\").queue();\n }\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByTransformOrBuilder(\n int index);", "public List<ContentData> listContentDataByContent(Content content) {\n return contentDataDAO.listByContent(content);\n }", "List<MediaMetadata> getAll();", "public Object parseImage(int rssType, Document doc) throws Exception;", "public ContentImageData findContentImageDatabyContentImageMeta(ContentImageMeta contentImageMeta) {\n return contentImageDataDAO.findByContentImageMeta(contentImageMeta);\n }", "public List<Articleimage> getArticleImageList(Article article){\n \n UrlGenerator urlGen = new UrlGenerator();\n String imageKeyIdTemp = urlGen.getNewURL();\n \n List<Articleimage> articleimageList = new ArrayList<>();\n Document doc = Jsoup.parse(article.getArtContent());\n Elements elements = doc.getElementsByTag(\"img\");\n \n \n for(int i=0; i< elements.size(); i++){ \n String artImagekeyid = String.valueOf(i)+imageKeyIdTemp;\n \n String artImgsrc=elements.get(i).attr(\"src\");\n String artImgalt=elements.get(i).attr(\"alt\");\n String artImgcssclass=elements.get(i).attr(\"class\");\n String artImgcssstyle=elements.get(i).attr(\"style\");\n \n Articleimage articleimage = new Articleimage( artImgsrc, artImgcssclass,\n \t\t\t artImgcssstyle, artImgalt, artImagekeyid);\n articleimageList.add(articleimage);\n }\n return articleimageList;\n }", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList() {\n if (imagesByTransformBuilder_ != null) {\n return imagesByTransformBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(imagesByTransform_);\n }\n }", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList() {\n return imagesByHandler_;\n }", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList() {\n if (imagesByHandlerBuilder_ != null) {\n return imagesByHandlerBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(imagesByHandler_);\n }\n }", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList() {\n return imagesByTransform_;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_RATINGS, key=\"{#type, #id}\")\n public List<ApiRatingDTO> getRatingsForMetadata(MetaDataType type, Long id) {\n final MetaDataType fixedType = EPISODE == type ? MOVIE : type; \n return currentSession().getNamedQuery(\"metadata.rating.\"+fixedType.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "private void setContent(String content) {\n \t\tthis.mContent.setText(content);\n \t\tint index = 0;\n \t\t/*\n \t\t * //图片路径数组 ArrayList<String> images = this.mNoteItemModel.getImages();\n \t\t * if(images.isEmpty()) return ; for(String image : images){ Bitmap\n \t\t * bitmap = this.mNoteItemModel.getBitmapByTag(image);\n \t\t * //根据Bitmap对象创建ImageSpan对象 ImageSpan imageSpan = new\n \t\t * ImageSpan(this.getContext(), bitmap);\n \t\t * //创建一个SpannableString对象,以便插入用ImageSpan对象封装的图像 SpannableString\n \t\t * spannableString = new SpannableString(image); // 用ImageSpan对象替换face\n \t\t * spannableString.setSpan(imageSpan, 0, spannableString.length(),\n \t\t * Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); //将选择的图片追加到EditText中光标所在位置\n \t\t * Editable edit_text = this.mContent.getEditableText();\n \t\t * edit_text.delete(content.indexOf(image),\n \t\t * content.indexOf(image)+image.length()); index =\n \t\t * content.indexOf(image); if(index <0 || index >= content.length()){\n \t\t * edit_text.append(spannableString); }else{ edit_text.insert(index,\n \t\t * spannableString); } }\n \t\t */\n \n \t\twhile (content.indexOf(\"[0x64\", index) >= 0) {\n \t\t\tindex = content.indexOf(\"[0x64\", index);\n \t\t\tint start = index + 5;\n \t\t\tint end = content.indexOf(\"]\", start);\n \t\t\tFile root = this.getContext().getExternalFilesDir(\n \t\t\t\t\tEnvironment.DIRECTORY_PICTURES);\n \t\t\tString filePath = root.getAbsolutePath()\n \t\t\t\t\t+ content.substring(start, end);\n \t\t\tLog.d(TAG, \"\" + content.subSequence(index, end + 1));\n \t\t\tLog.d(TAG, \"\" + filePath);\n \t\t\tBitmap bitmap = BitmapFactory.decodeFile(filePath);\n \t\t\t// 根据Bitmap对象创建ImageSpan对象\n \t\t\tImageSpan imageSpan = new ImageSpan(this.getContext(), bitmap);\n \t\t\t// 创建一个SpannableString对象,以便插入用ImageSpan对象封装的图像\n \t\t\tSpannableString spannableString = new SpannableString(\n \t\t\t\t\tcontent.subSequence(index, end + 1));\n \t\t\t// 用ImageSpan对象替换face\n \t\t\tspannableString.setSpan(imageSpan, 0, spannableString.length(),\n \t\t\t\t\tSpannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n \t\t\t// 将选择的图片追加到EditText中光标所在位置\n \t\t\tEditable edit_text = this.mContent.getEditableText();\n \t\t\tedit_text.delete(index, end + 1);\n \t\t\tif (index < 0 || index >= content.length()) {\n \t\t\t\tedit_text.append(spannableString);\n \t\t\t} else {\n \t\t\t\tedit_text.insert(index, spannableString);\n \t\t\t}\n \t\t\tindex += 1;\n \t\t}\n \n \t}", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByTransformList() {\n if (imagesByTransformBuilder_ == null) {\n return java.util.Collections.unmodifiableList(imagesByTransform_);\n } else {\n return imagesByTransformBuilder_.getMessageList();\n }\n }", "public void fillViews(){\n if(interestPoint.getContents().size() > 0){\n contentList = (RecyclerView)findViewById(R.id.recyclerView);\n contentList.setAdapter(new ContentSelectionAdapter(this, interestPoint.getContents())); // Pass the ids for the icons\n contentList.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n\n // Get first subject to populate views\n Content first = interestPoint.getContents().get(0);\n\n Content.DisplayValues dv = first.getDisplayValues(Locale.getDefault());\n ((TextView) findViewById(R.id.subject_title)).setText(dv.title);\n ((TextView) findViewById(R.id.subject_content)).setText(Html.fromHtml(dv.description));\n\n // Load multimedia\n LayoutInflater inflater = getLayoutInflater();\n LinearLayout linearLayout = ((LinearLayout)findViewById(R.id.content_container));\n linearLayout.removeAllViewsInLayout();\n for(Multimedia m : first.getMultimedia()){\n NetworkImageView imageView = (NetworkImageView) inflater.inflate(R.layout.content_image, null);\n String url = \"http://\" + m.geteURL();\n ImageLoader loader = RequestManager.getInstance(getApplicationContext()).getImageLoader();\n loader.get(url, loader.getImageListener(imageView, R.mipmap.ic_launcher, R.mipmap.ic_launcher_round));\n imageView.setImageUrl(url, loader);\n\n linearLayout.addView(imageView);\n }\n\n final int pathID = (int)getIntent().getExtras().getLong(\"PathwayID\");\n // Read the path from the network\n PathUtils.readPathFromNetwork(this, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n path = PathwayJSON.createFullPathFromJSON(ContentActivity.this, response);\n }catch(Exception e){\n Log.e(\"PATH LOADING ERROR\", \"Failed loading the path\");\n }\n\n ((TextView)findViewById(R.id.regionText)).setText(String.valueOf(path.getreg()));\n ((TextView)findViewById(R.id.countryText)).setText(String.valueOf(path.getcouEN()));\n\n }\n }, pathID);\n }\n }", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByTransformList() {\n return imagesByTransform_;\n }", "public List<Pair<URL, URL>> getMediaList() {\n\t\tList<Pair<URL, URL>> result = new ArrayList<Pair<URL, URL>>();\n\t\tif (entities == null) {\n\t\t\treturn result;\n\t\t}\n\t\tif (entities.media == null) {\n\t\t\treturn result;\n\t\t}\n\t\tfor (Media media : entities.media) {\n\t\t\ttry {\n\t\t\t\tPair<URL, URL> urls = new Pair<URL, URL>(new URL(\n\t\t\t\t\t\tmedia.media_url + \":thumb\"), new URL(media.media_url));\n\t\t\t\tresult.add(urls);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (entities.urls == null) {\n\t\t\treturn result;\n\t\t}\n\t\tfor (Url url : entities.urls) {\n\t\t\tPictureService hoster = Utils.getPictureService(url);\n\t\t\tswitch (hoster) {\n\t\t\tcase TWITPIC:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(TwitpicApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase YFROG:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(YfrogApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase YOUTUBE:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(YoutubeApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IMGUR:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(ImgurApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IMGLY:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(ImglyApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INSTAGRAM:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(InstagramApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PLIXI:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(PlixiApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LOCKERZ:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(LockerzApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MOBYTO:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(MobytoApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OWLY:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(OwlyApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase NONE:\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "Map<String, Object> getContent();", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByHandlerList() {\n return imagesByHandler_;\n }", "@Override\n\tpublic GetContentResponse listContents() {\n\t\tLOGGER.debug(\"LIST ALL CONTENTS\");\n\t\t\n\t\tClientConfig clientConfig = new ClientConfig();\n\t\t \n\t HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(env.getProperty(\"liferay.user.id\"), env.getProperty(\"liferay.user.key\"));\n\t clientConfig.register( feature) ;\n\t \n\t clientConfig.register(JacksonFeature.class);\n\t\t\n\t\tClient client = ClientBuilder.newClient(clientConfig);\n\t\tWebTarget webTarget = client.target(env.getProperty(\"liferay.api.rootpath\")).path(\"article-id/0/content-type/tagtest\");\n\t\t \n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\t\n\t\tResponse response = invocationBuilder.get();\n\t\t \n\t\tGetContentResponse content = response.readEntity(GetContentResponse.class);\n\t\t\n\t\t\n\t\n\t\t \n\t\tLOGGER.info(\"status::\"+response.getStatus());\n\t\t\n\t\t\n\t\t\n\t\tcontent.setStatusCode(200);\n\t\tcontent.setStatusMessage(\"Content List\");\n\t\n\t\treturn content;\n\t}", "ImmutableList<SchemaOrgType> getThumbnailUrlList();", "public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}", "public void findImages() {\n \t\tthis.mNoteItemModel.findImages(this.mNoteItemModel.getContent());\n \t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByTransform(int index) {\n if (imagesByTransformBuilder_ == null) {\n return imagesByTransform_.get(index);\n } else {\n return imagesByTransformBuilder_.getMessage(index);\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ApiFileDTO> getFilesForMetadata(MetaDataType type, Long id) {\n // Build the SQL statement\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT mf.id as id, mf.extra as extra, mf.part as part, mf.part_title as partTitle, mf.movie_version as version, \");\n sql.append(\"mf.container as container, mf.codec as codec, mf.codec_format as codecFormat, mf.codec_profile as codecProfile, \");\n sql.append(\"mf.bitrate as bitrate, mf.overall_bitrate as overallBitrate, mf.fps as fps, \");\n sql.append(\"mf.width as width, mf.height as height, mf.aspect_ratio as aspectRatio, mf.runtime as runtime, mf.video_source as videoSource, \");\n sql.append(\"sf.id as fileId, sf.full_path as fileName, sf.file_date as fileDate, sf.file_size as fileSize, sf.file_type as fileType, \");\n\n if (type == MOVIE) {\n sql.append(\"null as season, null as episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf \");\n sql.append(\"WHERE mv.videodata_id=:id \");\n } else if (type == SERIES) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.series_id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == SEASON) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == EPISODE) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE vd.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n }\n\n sql.append(\"and mv.mediafile_id=mf.id and sf.mediafile_id=mf.id \");\n sql.append(\"and sf.file_type\");\n sql.append(SQL_SELECTABLE_VIDEOS);\n sql.append(\"and sf.status\");\n sql.append(SQL_IGNORE_STATUS_SET);\n\n if (type == SERIES || type == SEASON) {\n sql.append(\"ORDER BY sea.season ASC, vd.episode ASC\");\n }\n\n SqlScalars sqlScalars = new SqlScalars(sql);\n sqlScalars.addScalar(LITERAL_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EXTRA, BooleanType.INSTANCE);\n sqlScalars.addScalar(\"part\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"partTitle\", StringType.INSTANCE);\n sqlScalars.addScalar(\"version\", StringType.INSTANCE);\n sqlScalars.addScalar(\"container\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codec\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecFormat\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecProfile\", StringType.INSTANCE);\n sqlScalars.addScalar(\"bitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"overallBitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"fps\", FloatType.INSTANCE);\n sqlScalars.addScalar(\"width\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"height\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"aspectRatio\", StringType.INSTANCE);\n sqlScalars.addScalar(\"runtime\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"videoSource\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileId\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileName\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileDate\", TimestampType.INSTANCE);\n sqlScalars.addScalar(\"fileSize\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileType\", StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_SEASON, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EPISODE, LongType.INSTANCE);\n sqlScalars.addParameter(LITERAL_ID, id);\n\n List<ApiFileDTO> results = executeQueryWithTransform(ApiFileDTO.class, sqlScalars);\n for (ApiFileDTO file : results) {\n \t\tfile.setAudioCodecs(currentSession().getNamedQuery(AudioCodec.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n file.setSubtitles(currentSession().getNamedQuery(Subtitle.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n }\n return results;\n }", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByHandlerList() {\n if (imagesByHandlerBuilder_ == null) {\n return java.util.Collections.unmodifiableList(imagesByHandler_);\n } else {\n return imagesByHandlerBuilder_.getMessageList();\n }\n }", "private String processAllImgResources(List<Node> nodes,\n Map<Uri, FutureTask<RequestContext>> futureTasks) {\n StringBuilder cssContent = new StringBuilder(\"\");\n\n for (int i = 0; i < nodes.size(); i++) {\n Element imageElement = (Element) nodes.get(i);\n String src = imageElement.getAttribute(\"src\");\n RequestContext requestCxt;\n\n // Fetch the content of the requested uri.\n try {\n Uri imgUri = UriBuilder.parse(src).toUri();\n\n try {\n requestCxt = futureTasks.get(imgUri).get();\n } catch (InterruptedException ie) {\n throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR, ie);\n } catch (ExecutionException ie) {\n throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR, ie);\n }\n\n if (requestCxt.getGadgetException() != null) {\n throw requestCxt.getGadgetException();\n }\n\n HttpResponse response = requestCxt.getHttpResp();\n // Content header checking is fast so this is fine to do for every\n // response.\n ImageFormat imageFormat = Sanselan.guessFormat(\n new ByteSourceInputStream(response.getResponse(), imgUri.getPath()));\n\n if (imageFormat == ImageFormat.IMAGE_FORMAT_UNKNOWN) {\n // skip this node\n continue;\n }\n\n // extract height and width from the actual image and set these\n // attributes of the <img> tag.\n ImageInfo imageInfo = Sanselan.getImageInfo(response.getResponse(),\n imgUri.getPath());\n\n if (imageInfo == null) {\n continue;\n }\n\n int imageHeight = imageInfo.getHeight();\n int imageWidth = imageInfo.getWidth();\n\n if (imageHeight > 0 && imageWidth > 0 && imageHeight * imageWidth > 1) {\n imageElement.setAttribute(\"class\", IMG_ATTR_CLASS_NAME_PREFIX + i);\n cssContent.append('.').append(IMG_ATTR_CLASS_NAME_PREFIX).append(i).append(\" {\\n\")\n .append(\" height: \").append(imageHeight).append(\"px;\\n\")\n .append(\" width: \").append(imageWidth).append(\"px;\\n\")\n .append(\"}\\n\");\n }\n } catch (ImageReadException e) {\n if (LOG.isLoggable(Level.WARNING)) {\n LOG.logp(Level.WARNING, classname, \"processAllImgResources\", MessageKeys.UNABLE_TO_READ_RESPONSE, new Object[] {src});\n }\n } catch (GadgetException e) {\n if (LOG.isLoggable(Level.WARNING)) {\n LOG.logp(Level.WARNING, classname, \"processAllImgResources\", MessageKeys.UNABLE_TO_FETCH_IMG, new Object[] {src});\n }\n } catch (IOException e) {\n if (LOG.isLoggable(Level.WARNING)) {\n LOG.logp(Level.WARNING, classname, \"processAllImgResources\", MessageKeys.UNABLE_TO_PARSE_IMG, new Object[] {src});\n }\n }\n }\n\n return cssContent.toString();\n }", "private void processImages() throws MalformedURLException, IOException {\r\n\r\n\t\tNodeFilter imageFilter = new NodeClassFilter(ImageTag.class);\r\n\t\timageList = fullList.extractAllNodesThatMatch(imageFilter, true);\r\n\t\tthePageImages = new HashMap<String, byte[]>();\r\n\r\n\t\tfor (SimpleNodeIterator nodeIter = imageList.elements(); nodeIter\r\n\t\t\t\t.hasMoreNodes();) {\r\n\t\t\tImageTag tempNode = (ImageTag) nodeIter.nextNode();\r\n\t\t\tString tagText = tempNode.getText();\r\n\r\n\t\t\t// Populate imageUrlText String\r\n\t\t\tString imageUrlText = tempNode.getImageURL();\r\n\r\n\t\t\tif (imageUrlText != \"\") {\r\n\t\t\t\t// Print to console, to verify relative link processing\r\n\t\t\t\tSystem.out.println(\"ImageUrl to Retrieve:\" + imageUrlText);\r\n\r\n\t\t\t\tbyte[] imgArray = downloadBinaryData(imageUrlText);\r\n\r\n\t\t\t\tthePageImages.put(tagText, imgArray);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "String getItemImage();", "private List<Content> sortContentMapByContentTypeAndPrice(Map<Integer, List<Content>> unOrderderdContentMap) {\n\n\t\tList<Content> contentsLongList = new LinkedList<>();\n\n\t\tfor (Map.Entry<Integer, List<Content>> entry : unOrderderdContentMap.entrySet())\n\t\t\tfor (Content content : entry.getValue())\n\t\t\t\tcontentsLongList.add(content);\n\n\t\tCollections.sort(contentsLongList, (c1, c2) -> {\n\t\t\tDouble c1Price = c1.getPrice();\n\t\t\tDouble c2Price = c2.getPrice();\n\t\t\tContentType c1Type = c1.getType();\n\t\t\tContentType c2Type = c2.getType();\n\n\t\t\treturn c1Type.compareTo(c2Type) != 0 ? c1Type.compareTo(c2Type) : (int) (c1Price - c2Price);\n\t\t});\n\n\t\treturn contentsLongList;\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index) {\n if (imagesByHandlerBuilder_ == null) {\n return imagesByHandler_.get(index);\n } else {\n return imagesByHandlerBuilder_.getMessage(index);\n }\n }", "public Iterable<Content> findAllFeaturedContent(){\n\n return contentRepository.findByIsFeatured(true);\n }", "UserContentMetadata findContentMetadataById(@Param(\"contentUid\") Long contentUid);", "List<WorkList<Content>> getMyContentList();", "private Map<Long, List<ApiArtworkDTO>> getArtworkForMetadata(MetaDataType type, Long id, String artworkSortDir) {\n Set<String> artworkRequired = new HashSet<>();\n for (ArtworkType at : ArtworkType.values()) {\n artworkRequired.add(at.toString());\n }\n // remove the unknown type\n artworkRequired.remove(ArtworkType.UNKNOWN.toString());\n\n return getArtworkForMetadata(type, id, artworkRequired, artworkSortDir);\n }", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByHandlerOrBuilder(\n int index) {\n return imagesByHandler_.get(index);\n }", "List<WpPostsWithBLOBs> selectByExampleWithBLOBs(WpPostsExample example);", "private static Map<String, Object> getBasicAnalyticsAttributesForContent(Content content) {\n\n HashMap<String, Object> analyticsAttributes = new HashMap<>();\n // Set up the movie attributes.\n analyticsAttributes.put(AnalyticsConstants.ATTRIBUTE_TITLE, content.getTitle());\n String type = getContentType(content);\n // Add episode attributes, if content is an episode.\n if (TYPE_EPISODE.equals(type)) {\n analyticsAttributes.put(AnalyticsConstants.ATTRIBUTE_SUBTITLE, content.getSubtitle());\n }\n // Record type of content.\n analyticsAttributes.put(AnalyticsConstants.ATTRIBUTE_VIDEO_TYPE, type);\n\n // Record content id.\n analyticsAttributes.put(AnalyticsConstants.ATTRIBUTE_VIDEO_ID, content.getId());\n\n\n return analyticsAttributes;\n }", "private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }", "public List<PropertyImages> findWhereTypeEquals(String type) throws PropertyImagesDaoException\n\t{\n\t\ttry {\n\t\t\treturn getJdbcTemplate().query(\"SELECT ID, TITLE, TYPE, SIZE, SRC_URL, PROPERTY_DATA_UUID FROM \" + getTableName() + \" WHERE TYPE = ? ORDER BY TYPE\", this,type);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new PropertyImagesDaoException(\"Query failed\", e);\n\t\t}\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_GENRES, key=\"{#type, #id}\")\n public List<ApiGenreDTO> getGenresForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.genre.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "public Iterable<Content> findByContentType(String contentType, boolean active){\n\n return contentRepository.findByContentTypeAndIsActive(contentType, active);\n }", "List<NewsInfo> selectByExampleWithBLOBs(NewsInfoExample example);", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByHandlerOrBuilder(\n int index) {\n if (imagesByHandlerBuilder_ == null) {\n return imagesByHandler_.get(index); } else {\n return imagesByHandlerBuilder_.getMessageOrBuilder(index);\n }\n }", "List<Bitmap> getRecipeImgSmall();", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index) {\n return imagesByHandler_.get(index);\n }", "@Override\r\n\tpublic List<ManageNursingContentWithBLOBs> selectByExampleWithBLOBs(\r\n\t\t\tManageNursingContentExample example) throws Exception {\n\t\treturn mContentMapper.selectByExampleWithBLOBs(example);\r\n\t}", "@Override\n public ParseResult filter(Content content, ParseResult parseResult,\n HTMLMetaTags metaTags, DocumentFragment doc) {\n\n // get parse obj\n Parse parse = parseResult.get(content.getUrl());\n\n // construct base url\n URL base;\n try {\n base = new URL(content.getBaseUrl());\n } catch (MalformedURLException e) {\n Parse emptyParse = new ParseStatus(e).getEmptyParse(getConf());\n parseResult.put(content.getUrl(), new ParseText(emptyParse.getText()),\n emptyParse.getData());\n return parseResult;\n }\n\n try {\n // extract license metadata\n Walker.walk(doc, base, parse.getData().getParseMeta(), getConf());\n } catch (ParseException e) {\n Parse emptyParse = new ParseStatus(e).getEmptyParse(getConf());\n parseResult.put(content.getUrl(), new ParseText(emptyParse.getText()),\n emptyParse.getData());\n return parseResult;\n }\n\n return parseResult;\n }", "@Override\r\n public Set<PhotoDTO> selectPhotosByType(String type) {\r\n PreparedStatement selectAllPhoto = dalService.getPreparedStatement(\r\n \"SELECT * ,f.state FROM project.photos p ,project.furniture f,project.furniture_types t \"\r\n + \"WHERE p.photo_id =f.favorite_photo AND \"\r\n + \"f.furniture_type=t.furniture_type_id AND t.name=?\");\r\n try {\r\n selectAllPhoto.setString(1, type);\r\n try (ResultSet rs = selectAllPhoto.executeQuery()) {\r\n Set<PhotoDTO> setPhotoDTOs = new HashSet<PhotoDTO>();\r\n while (rs.next()) {\r\n PhotoDTO photo = setPhotoDto(rs);\r\n photo.setFurnitureState(rs.getString(\"state\"));\r\n setPhotoDTOs.add(photo);\r\n }\r\n return setPhotoDTOs;\r\n }\r\n } catch (SQLException e) {\r\n throw new FatalException(e.getMessage().toString());\r\n }\r\n }", "public List<PageContent> getAllPageContent();", "@Override\n \t\tpublic void populateImageMetadata() {\n \n \t\t\t// populate core metadata\n \n \t\t\tfinal OMEXMLMetadata omexmlMeta = getOmeMeta().getRoot();\n \n \t\t\tfor (int s = 0; s < getImageCount(); s++) {\n \n \t\t\t\tfinal ImageMetadata m = get(s);\n \t\t\t\ttry {\n \t\t\t\t\tm.setPlanarAxisCount(2);\n \t\t\t\t\tm.setAxisLength(Axes.X, omexmlMeta.getPixelsSizeX(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffWidth = (int) firstIFD.getImageWidth();\n \t\t\t\t\tif (m.getAxisLength(Axes.X) != tiffWidth && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeX mismatch: OME=\" + m.getAxisLength(Axes.X) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffWidth);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Y, omexmlMeta.getPixelsSizeY(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tfinal int tiffHeight = (int) firstIFD.getImageLength();\n \t\t\t\t\tif (m.getAxisLength(Axes.Y) != tiffHeight && s == 0) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"SizeY mismatch: OME=\" + m.getAxisLength(Axes.Y) + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffHeight);\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisLength(Axes.Z, omexmlMeta.getPixelsSizeZ(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.CHANNEL, omexmlMeta.getPixelsSizeC(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setAxisLength(Axes.TIME, omexmlMeta.getPixelsSizeT(s).getValue()\n \t\t\t\t\t\t.intValue());\n \t\t\t\t\tm.setPixelType(FormatTools.pixelTypeFromString(omexmlMeta\n \t\t\t\t\t\t.getPixelsType(s).toString()));\n \t\t\t\t\tfinal int tiffPixelType = firstIFD.getPixelType();\n \t\t\t\t\tif (m.getPixelType() != tiffPixelType &&\n \t\t\t\t\t\t(s == 0 || adjustedSamples.get(s)))\n \t\t\t\t\t{\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"PixelType mismatch: OME=\" + m.getPixelType() + \", TIFF=\" +\n \t\t\t\t\t\t\t\ttiffPixelType);\n \t\t\t\t\t\tm.setPixelType(tiffPixelType);\n \t\t\t\t\t}\n \t\t\t\t\tm.setBitsPerPixel(FormatTools.getBitsPerPixel(m.getPixelType()));\n \t\t\t\t\tString dimensionOrder =\n \t\t\t\t\t\tomexmlMeta.getPixelsDimensionOrder(s).toString();\n \n \t\t\t\t\t// hackish workaround for files exported by OMERO that have an\n \t\t\t\t\t// incorrect dimension order\n \t\t\t\t\tString uuidFileName = \"\";\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (omexmlMeta.getTiffDataCount(s) > 0) {\n \t\t\t\t\t\t\tuuidFileName = omexmlMeta.getUUIDFileName(s, 0);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcatch (final NullPointerException e) {}\n \t\t\t\t\tif (omexmlMeta.getChannelCount(s) > 0 &&\n \t\t\t\t\t\tomexmlMeta.getChannelName(s, 0) == null &&\n \t\t\t\t\t\tomexmlMeta.getTiffDataCount(s) > 0 &&\n \t\t\t\t\t\tuuidFileName.indexOf(\"__omero_export\") != -1)\n \t\t\t\t\t{\n \t\t\t\t\t\tdimensionOrder = \"XYZCT\";\n \t\t\t\t\t}\n \t\t\t\t\tm.setAxisTypes(metaService.findDimensionList(dimensionOrder));\n \n \t\t\t\t\tm.setOrderCertain(true);\n \t\t\t\t\tfinal PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n \t\t\t\t\tif (samples.get(s) > 1 || photo == PhotoInterp.RGB) {\n \t\t\t\t\t\tm.setPlanarAxisCount(3);\n \t\t\t\t\t}\n \t\t\t\t\tif ((samples.get(s) != m.getAxisLength(Axes.CHANNEL) &&\n \t\t\t\t\t\t(samples.get(s) % m.getAxisLength(Axes.CHANNEL)) != 0 && (m\n \t\t\t\t\t\t.getAxisLength(Axes.CHANNEL) % samples.get(s)) != 0) ||\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) == 1 || adjustedSamples.get(s))\n \t\t\t\t\t{\n \t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, m.getAxisLength(Axes.CHANNEL) *\n \t\t\t\t\t\t\tsamples.get(s));\n \t\t\t\t\t}\n \n \t\t\t\t\tif (m.getAxisLength(Axes.Z) * m.getAxisLength(Axes.TIME) *\n \t\t\t\t\t\tm.getAxisLength(Axes.CHANNEL) > info[s].length &&\n \t\t\t\t\t\t!m.isMultichannel())\n \t\t\t\t\t{\n \t\t\t\t\t\tif (m.getAxisLength(Axes.Z) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.TIME) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.CHANNEL, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if (m.getAxisLength(Axes.CHANNEL) == info[s].length) {\n \t\t\t\t\t\t\tm.setAxisLength(Axes.TIME, 1);\n \t\t\t\t\t\t\tm.setAxisLength(Axes.Z, 1);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (omexmlMeta.getPixelsBinDataCount(s) > 1) {\n \t\t\t\t\t\tlog().warn(\n \t\t\t\t\t\t\t\"OME-TIFF Pixels element contains BinData elements! \"\n \t\t\t\t\t\t\t\t+ \"Ignoring.\");\n \t\t\t\t\t}\n \t\t\t\t\tm.setLittleEndian(firstIFD.isLittleEndian());\n \t\t\t\t\tm.setIndexed(photo == PhotoInterp.RGB_PALETTE &&\n \t\t\t\t\t\tfirstIFD.getIFDValue(IFD.COLOR_MAP) != null);\n \t\t\t\t\tm.setFalseColor(true);\n \t\t\t\t\tm.setMetadataComplete(true);\n \t\t\t\t}\n \t\t\t\tcatch (final NullPointerException exc) {\n \t\t\t\t\tlog().error(\"Incomplete Pixels metadata\", exc);\n \t\t\t\t}\n \t\t\t\tcatch (final FormatException exc) {\n \t\t\t\t\tlog().error(\"Format exception when creating ImageMetadata\", exc);\n \t\t\t\t}\n \t\t\t}\n \n // if (getImageCount() == 1) {\n // CoreMetadata ms0 = core.get(0);\n // ms0.sizeZ = 1;\n // if (!ms0.rgb) {\n // ms0.sizeC = 1;\n // }\n // ms0.sizeT = 1;\n // }\n // metaService.populatePixels(getOmeMeta().getRoot(), this, false, false);\n \t\t\tgetOmeMeta().setRoot((OMEXMLMetadata) getMetadataStoreForConversion());\n \t\t}", "Container getContainer(ContentType type, List<Element> elements);", "private Map<Long, List<ApiArtworkDTO>> getArtworkForMetadata(MetaDataType type, Object id, Set<String> artworkRequired, String artworkSortDir) {\n LOG.trace(\"Artwork required for {} ID {} is {}\", type, id, artworkRequired);\n\n StringBuilder sbSQL = new StringBuilder();\n sbSQL.append(\"SELECT '\").append(type.toString()).append(\"' AS source,\");\n sbSQL.append(\" v.id AS id, a.id AS artworkId, al.id AS locatedId, ag.id AS generatedId,\");\n sbSQL.append(\" a.artwork_type AS artworkType, ag.cache_dir AS cacheDir, ag.cache_filename AS cacheFilename \");\n if (type == MOVIE) {\n sbSQL.append(\"FROM videodata v \");\n } else if (type == SERIES) {\n sbSQL.append(\"FROM series v \");\n } else if (type == SEASON) {\n sbSQL.append(\"FROM season v \");\n } else if (type == PERSON) {\n sbSQL.append(\"FROM person v\");\n } else if (type == BOXSET) {\n sbSQL.append(\"FROM boxed_set v\");\n }\n sbSQL.append(\", artwork a\"); // artwork must be last for the LEFT JOIN\n sbSQL.append(SQL_LEFT_JOIN_ARTWORK_LOCATED);\n sbSQL.append(SQL_LEFT_JOIN_ARTWORK_GENERATED);\n if (type == MOVIE) {\n sbSQL.append(\" WHERE v.id=a.videodata_id\");\n sbSQL.append(\" AND v.episode<0\");\n } else if (type == SERIES) {\n sbSQL.append(\" WHERE v.id=a.series_id\");\n } else if (type == SEASON) {\n sbSQL.append(\" WHERE v.id=a.season_id\");\n } else if (type == PERSON) {\n sbSQL.append(\" WHERE v.id=a.person_id\");\n } else if (type == BOXSET) {\n sbSQL.append(\" WHERE v.id=a.boxedset_id\");\n }\n sbSQL.append(\" AND al.id is not null\");\n sbSQL.append(\" AND v.id IN (:id)\");\n sbSQL.append(SQL_ARTWORK_TYPE_IN_ARTWORKLIST);\n if (\"DESC\".equalsIgnoreCase(artworkSortDir)) {\n sbSQL.append(\" ORDER BY al.create_timestamp DESC\");\n } else {\n sbSQL.append(\" ORDER BY al.create_timestamp ASC\");\n }\n \n SqlScalars sqlScalars = new SqlScalars(sbSQL);\n LOG.trace(\"Artwork SQL: {}\", sqlScalars.getSql());\n\n sqlScalars.addScalar(LITERAL_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_SOURCE, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_ARTWORK_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_LOCATED_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_GENERATED_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_ARTWORK_TYPE, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_CACHE_DIR, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_CACHE_FILENAME, StringType.INSTANCE);\n\n sqlScalars.addParameter(LITERAL_ID, id);\n sqlScalars.addParameter(\"artworklist\", artworkRequired);\n\n List<ApiArtworkDTO> results = executeQueryWithTransform(ApiArtworkDTO.class, sqlScalars);\n return generateIdMapList(results);\n }", "List<Forumpost> selectByExampleWithBLOBs(ForumpostExample example);", "public String content_pic_rule() {\n\t\treturn \"img[title~=屏幕快照]\";\n\t}", "public Content getContentMeta(Integer contentId) {\n String sql = \"SELECT * FROM contents WHERE content_id = ?\";\n return jdbc.queryForObject(sql, new ContentMetaRowMapper(), contentId);\n }", "Receta getByIdWithImages(long id);", "public interface ContentService extends KekeinfoEntityService<Long, Content>\n \n{\n\n\tpublic List<Content> listByType( String contentType)\n\t throws ServiceException;\n\n /**\n * Method responsible for storing content file for given Store.Files for given merchant store will be stored in\n * Infinispan.\n * \n * @param merchantStoreCode merchant store whose content images are being saved.\n * @param contentFile content image being stored\n * @throws ServiceException\n */\n void addContentFile(InputContentFile contentFile )\n throws ServiceException;\n\n \n /**\n * Method responsible for storing list of content image for given Store.Images for given merchant store will be stored in\n * Infinispan.\n * \n * @param merchantStoreCode merchant store whose content images are being saved.\n * @param contentImagesList list of content images being stored.\n * @throws ServiceException\n */\n void addContentFiles(List<InputContentFile> contentFilesList) throws ServiceException;\n \n \n /**\n * Method to remove given content image.Images are stored in underlying system based on there name.\n * Name will be used to search given image for removal\n * @param imageContentType\n * @param imageName\n * @param merchantStoreCode merchant store code\n * @throws ServiceException\n */\n public void removeFile(FileContentType fileContentType, String fileName) throws ServiceException;\n \n \n /**\n * Method to remove all images for a given merchant.It will take merchant store as an input and will\n * remove all images associated with given merchant store.\n * \n * @param merchantStoreCode\n * @throws ServiceException\n */\n public void removeFiles() throws ServiceException;\n \n /**\n * Method responsible for fetching particular content image for a given merchant store. Requested image will be\n * search in Infinispan tree cache and OutputContentImage will be sent, in case no image is found null will\n * returned.\n * \n * @param merchantStoreCode\n * @param imageName\n * @return {@link OutputContentImage}\n * @throws ServiceException\n */\n public OutputContentFile getContentFile(FileContentType fileContentType, String fileName )\n throws ServiceException;\n \n public InputStream getContentFileInputstream(FileContentType fileContentType, String fileName )\n throws ServiceException;\n \n \n /**\n * Method to get list of all images associated with a given merchant store.In case of no image method will return an empty list.\n * @param merchantStoreCode\n * @param imageContentType\n * @return list of {@link OutputContentImage}\n * @throws ServiceException\n */\n public List<OutputContentFile> getContentFiles(FileContentType fileContentType )\n throws ServiceException;\n\n\t\n List<String> getContentFilesNames(\n\t\t\tFileContentType fileContentType) throws ServiceException;\n\n /**\n * Add the store logo\n * @param merchantStoreCode\n * @param cmsContentImage\n * @throws ServiceException\n */\n\tvoid addLogo(InputContentFile cmsContentImage)\n\t\t\tthrows ServiceException;\n\n\t/**\n\t * Adds a property (option) image\n\t * @param merchantStoreId\n\t * @param cmsContentImage\n\t * @throws ServiceException\n\t */\n\tvoid addOptionImage(InputContentFile cmsContentImage)\n\t\t\tthrows ServiceException;\n\n\t\n\n}", "private Entry getMediaContent(Entry entry, String level, String contClassification) {\n\n\t\tArrayList<Entry> tempEntries = new ArrayList<Entry>();\n\t\tArrayList<Medium> tempMedia = new ArrayList<Medium>();\n\n\t\tArrayList<Medium> media = entry.getMedia();\n\t\tentry.setMedia(null);\n\n\t\tif (media != null && media.size() > 0) {\n\n\t\t\tfor (Medium medium : media) {\n\n\t\t\t\tchar tempLastChar = medium.getGuid().charAt(medium.getGuid().length() - 1);\n\n\t\t\t\tif (level.equalsIgnoreCase(AppConstant.CONT_lEVEL_C)\n\t\t\t\t\t\t&& contClassification.equalsIgnoreCase(AppConstant.CONT_CLASSIFICATION_C)) {\n\t\t\t\t\tif (tempLastChar == 'C') {\n\t\t\t\t\t\ttempMedia.add(medium);\n\t\t\t\t\t}\n\n\t\t\t\t} else if (level.equalsIgnoreCase(AppConstant.CONT_lEVEL_U)\n\t\t\t\t\t\t&& contClassification.equalsIgnoreCase(AppConstant.CONT_CLASSIFICATION_C)) {\n\t\t\t\t\tif (tempLastChar != 'C') {\n\t\t\t\t\t\ttempMedia.add(medium);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tentry.setMedia(tempMedia);\n\t\t\ttempMedia = new ArrayList<Medium>();\n\t\t}\n\t\t//tempEntries.add(entry);\n\t\treturn entry;\n\t}", "private ImageSet createImages(String kind) {\n \t\tImageSet images = new ImageSet();\n \t\tImageDescriptor desc;\n \t\tdesc = getPredefinedImageDescriptor(kind);\n if (desc == null) {\n \t\t desc = TaskEditorManager.getInstance().getImageDescriptor(kind);\n }\n \t\tif (desc != null) {\t\t\n \t\t\timages.put(ICompositeCheatSheetTask.NOT_STARTED, desc.createImage());\n \t\t\t\n \t\t\tcreateImageWithOverlay(ICompositeCheatSheetTask.IN_PROGRESS, \n\t\t \"$nl$/icons/ovr16/task_in_progress.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\tcreateImageWithOverlay(ICompositeCheatSheetTask.SKIPPED, \n\t\t \"$nl$/icons/ovr16/task_skipped.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\tcreateImageWithOverlay(BLOCKED, \n\t\t \"$nl$/icons/ovr16/task_blocked.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\tcreateImageWithOverlay(ICompositeCheatSheetTask.COMPLETED, \n\t\t \"$nl$/icons/ovr16/task_complete.gif\", //$NON-NLS-1$\n \t\t images, \n \t\t desc);\n \t\t\t\n \t\t}\n \t\treturn images;\n \t}", "@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByTransformOrBuilder(\n int index) {\n return imagesByTransform_.get(index);\n }", "public List<Resource> getDBpediaResources(THashSet<String> anchorList, EntityType type)\n\t{\n\t\tList<Resource> resourceList = new ArrayList<Resource>();\n\t\tfor (String anchor : anchorList)\n\t\t{\n\t\t\tif (!anchor.isEmpty() && !anchor.startsWith(\"File:\") && !anchor.startsWith(\"Image:\")\n\t\t\t\t\t&& !anchor.startsWith(\"Image'3A\") && !anchor.contains(\"index.php\"))\n\t\t\t{\n\t\t\t\tResource resource = this.getResourceURI(anchor, type);\n\t\t\t\tif (resource != null && !resource.isEmpty())\n\t\t\t\t\tresourceList.add(resource);\n\t\t\t}\n\t\t}\n\t\treturn resourceList;\n\t}", "Map getAspectDatas();", "private static List<ContentObjectMetadata> getLmdObjectListForObjects(User user, ExecutionContext context, List<ManagedObject> moList)\n throws RSuiteException {\n List<ContentObjectMetadata> comList = new ArrayList<ContentObjectMetadata>();\n for (ManagedObject mo : moList) {\n ContentObjectMetadata com = new ContentObjectMetadata(context, user, mo.getId());\n List<String> lmdNames = RSuiteUtils.getLmdFieldNames(context, user, mo);\n for (String lmdName : lmdNames) {\n for (MetaDataItem mi : mo.getMetaDataItems()) {\n if (mi.getName().equals(lmdName)) {\n com.addMetadataProperty(lmdName, mi.getValue());\n }\n }\n }\n comList.add(com);\n }\n return comList;\n }", "List<ArticleDo> selectByExampleWithBLOBs(ArticleDoExample example);", "public ContentHandler[] forType(String type) {\n return impl.forType(type);\n }", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByTransform(int index) {\n return imagesByTransform_.get(index);\n }", "static void picture(User user, String content, MessageChannel chan) {\n String[] arguments = content.toLowerCase().split(\" \");\n\n if(!arguments[0].equals(\"!picture\") && !arguments[0].equals(\"!pic\"))\n return;\n\n int searchTagIndex = arguments[0].length();\n String searchTags = \"\";\n\n String nsfwTag = null;\n if(arguments.length >= 2){\n try {\n nsfwTag = getNSFWTag(chan, arguments[1]);\n } catch (Exception e) {\n chan.sendMessage(\"Channel is not set as a NSFW channel.\").queue();\n return;\n }\n }\n\n if(nsfwTag == null) nsfwTag = \" rating:safe\";\n else searchTagIndex += arguments[1].length() + 1;\n\n searchTags = content.substring(searchTagIndex) + nsfwTag\n + \" \" + excludeMap.getOrDefault(user.getIdLong(), \"\");\n searchTags = searchTags.trim();\n\n Request request = new Request(chan, user, 0, searchTags);\n postController.schedulePostOnce(request);\n }", "Map<String, Object> getAllMetadata();", "public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImagesByTransformOrBuilder(\n int index) {\n if (imagesByTransformBuilder_ == null) {\n return imagesByTransform_.get(index); } else {\n return imagesByTransformBuilder_.getMessageOrBuilder(index);\n }\n }", "public abstract List<String> getContent( );", "@Test\n public void testGridViewImages() {\n /* use of the content desc from the cursor data gets us the specific imageview.\n Use of the 'anyOf' is an or statement for matching multiple content descriptions if necessary\n */\n final int COL_TITLE = 2;\n Cursor cursor = mActivityRule.getActivity().getContentResolver().query(\n TVContract.TVEntry.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n null // sort order\n );\n\n cursor.moveToFirst();\n onView(anyOf(withContentDescription(cursor.getString(COL_TITLE)))).check(matches(isDisplayed()));\n }", "public interface MetaExtractor {\n List<Meta> extract(String url);\n}", "public abstract List<EXIFContent> parse();", "private void getOGTag(String url){\n String imageUrl = null;\n String linkTitle = null;\n if (isValidURL(url)) {\n Document doc = null;\n\n try {\n doc = Jsoup.connect(url).get(); // -- 1. get방식의 URL에 연결해서 가져온 값을 doc에 담는다.\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n\n Elements titles = doc.select(\"meta\"); // -- 2. doc에서 selector의 내용을 가져와 Elemntes 클래스에 담는다.\n for(Element element: titles) { // -- 3. Elemntes 길이만큼 반복한다.\n if(element.attr(\"property\").equals(\"og:image\"))\n imageUrl = element.attr(\"content\");\n if(element.attr(\"property\").equals(\"og:title\"))\n linkTitle = element.attr(\"content\");\n System.out.println(element.attr(\"content\")); // -- 4. 원하는 요소가 출력된다.\n }\n }\n else{\n imageUrl = \"https://github.com/HGUMOA/MOA/blob/master/app/src/main/res/drawable-xxhdpi/logosmall.png?raw=true\";\n linkTitle = \" \";\n }\n\n if(imageUrl == null)\n imageUrl = \"https://github.com/HGUMOA/MOA/blob/master/app/src/main/res/drawable-xxhdpi/logosmall.png?raw=true\";\n\n if(linkTitle == null)\n linkTitle = \" \";\n\n stuffRoomInfo.setImageUrl(imageUrl);\n stuffRoomInfo.setOgTitle(linkTitle);\n }", "public IPage<PropertyIndex> list(int connId, HugeType type, String content,\n int pageNo, int pageSize) {\n HugeClient client = this.client(connId);\n List<IndexLabel> indexLabels = client.schema().getIndexLabels();\n\n Map<String, List<PropertyIndex>> matchedResults = new HashMap<>();\n Map<String, List<PropertyIndex>> unMatchResults = new HashMap<>();\n for (IndexLabel indexLabel : indexLabels) {\n if (!indexLabel.baseType().equals(type)) {\n continue;\n }\n String baseValue = indexLabel.baseValue();\n List<PropertyIndex> groupedIndexes;\n // Collect indexlabels that contains content\n boolean match = baseValue.contains(content);\n if (match) {\n groupedIndexes = matchedResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n } else {\n groupedIndexes = unMatchResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n }\n match = match || indexLabel.name().contains(content) ||\n indexLabel.indexFields().stream()\n .anyMatch(f -> f.contains(content));\n if (match) {\n groupedIndexes.add(convert(indexLabel));\n }\n }\n\n // Sort matched results by relevance\n if (!StringUtils.isEmpty(content)) {\n for (Map.Entry<String, List<PropertyIndex>> entry :\n matchedResults.entrySet()) {\n List<PropertyIndex> groupedIndexes = entry.getValue();\n groupedIndexes.sort(new Comparator<PropertyIndex>() {\n final int highScore = 2;\n final int lowScore = 1;\n @Override\n public int compare(PropertyIndex o1, PropertyIndex o2) {\n int o1Score = 0;\n if (o1.getName().contains(content)) {\n o1Score += highScore;\n }\n if (o1.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o1Score += lowScore;\n }\n\n int o2Score = 0;\n if (o2.getName().contains(content)) {\n o2Score += highScore;\n }\n if (o2.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o2Score += lowScore;\n }\n return o2Score - o1Score;\n }\n });\n }\n }\n List<PropertyIndex> all = new ArrayList<>();\n matchedResults.values().forEach(all::addAll);\n unMatchResults.values().forEach(all::addAll);\n return PageUtil.page(all, pageNo, pageSize);\n }", "List<MetaTag> findAll();", "@NonNull\n private static String getContentType(Content content) {\n\n String type = TYPE_VIDEO;\n if (content.getSubtitle() != null && !content.getSubtitle().isEmpty()) {\n type = TYPE_EPISODE;\n }\n return type;\n }", "public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic String imageLists(String url, QueryBean param) throws IOException {\n\t\treturn new HttpUtil().getHttp(url + param.toString());\n\t}", "public abstract Content getTypeAnnotationLinks(LinkInfo linkInfo);", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_EXTERNAL_IDS, key=\"{#type, #id}\")\n public List<ApiExternalIdDTO> getExternalIdsForMetadata(MetaDataType type, Long id) {\n final MetaDataType fixedType = EPISODE == type ? MOVIE : type; \n return currentSession().getNamedQuery(\"metadata.externalid.\"+fixedType.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "public ResourceContent getMetadata() throws IOException;", "@JsonIgnore public Collection<Mass> getSodiumContents() {\n final Object current = myData.get(\"sodiumContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }" ]
[ "0.6162841", "0.6140021", "0.61014956", "0.60520154", "0.6027209", "0.60037565", "0.5989634", "0.59575", "0.59383595", "0.58700496", "0.5769392", "0.57564735", "0.5651216", "0.55990404", "0.5578359", "0.5558569", "0.5520445", "0.5514604", "0.55005634", "0.54412806", "0.5249017", "0.52198005", "0.5210432", "0.51754814", "0.5167546", "0.5162393", "0.5152721", "0.5135203", "0.5115739", "0.50923795", "0.5090353", "0.50819993", "0.5079084", "0.5078099", "0.5068685", "0.50401825", "0.502973", "0.50288963", "0.5024388", "0.50198203", "0.5016094", "0.5006676", "0.500595", "0.50027955", "0.4997081", "0.49923322", "0.4983242", "0.49816737", "0.4975786", "0.4975267", "0.4974322", "0.49619186", "0.49590224", "0.49587005", "0.49579787", "0.49554944", "0.49485388", "0.49443617", "0.4934726", "0.49299642", "0.49170676", "0.49158168", "0.49105328", "0.49084723", "0.49014574", "0.4895061", "0.48892853", "0.48889896", "0.48855963", "0.48763135", "0.48729095", "0.48708412", "0.4862496", "0.48547247", "0.48519266", "0.48503843", "0.48438868", "0.48429987", "0.483799", "0.4831676", "0.48254463", "0.48195952", "0.48168424", "0.4815123", "0.48129183", "0.48070103", "0.4806865", "0.48059902", "0.4799081", "0.4797669", "0.47937202", "0.47924507", "0.47912258", "0.47868612", "0.47854465", "0.4777221", "0.4770264", "0.47636798", "0.4763281", "0.47585168" ]
0.7880705
0
Lists non archived origin ids by contentType and origin
public List<String> listOriginIds(ContentType contentType, String origin) { return contentDAO.listOriginIdsByContentTypeOriginAndArchived(contentType, origin, Boolean.FALSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<OriginEntryFull> getGeneratedOriginEntries();", "public Content findContentByOriginId(String originId) {\n return contentDAO.findByOriginId(originId);\n }", "public void setOriginType(String originType) {\n this.originType = originType;\n }", "Origins(String origin){\n\t\tthis.origin = origin;\n\t}", "@DISPID(1610940433) //= 0x60050011. The runtime will prefer the VTID if present\n @VTID(39)\n OriginElements originElements();", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_EXTERNAL_IDS, key=\"{#type, #id}\")\n public List<ApiExternalIdDTO> getExternalIdsForMetadata(MetaDataType type, Long id) {\n final MetaDataType fixedType = EPISODE == type ? MOVIE : type; \n return currentSession().getNamedQuery(\"metadata.externalid.\"+fixedType.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "List<List<String>> getFieldOrigins();", "private List<Flight> getFlightsFromOrigin(String originCode) {\n\t\tList<Flight> possibleFlights = new LinkedList<>();\n\t\tfor (Flight f : flights) {\n\t\t\tif (f.getOrigin().equals(originCode)) {\n\t\t\t\tpossibleFlights.add(f); // add it to the returned list if it has that as the origin\n\t\t\t}\n\t\t}\n\t\treturn possibleFlights;\n\t}", "public String getOriginType() {\n return this.originType;\n }", "public void setOrigin(String origin) {\n this.origin = origin;\n }", "public void setOrigin(String origin) {\n this.origin = origin;\n }", "String decideResponseOriginHeader(List<String> allowed, String origin) {\n\t\tif (allowed == null || allowed.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (allowed.contains(\"*\")) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tif (allowed.contains(origin)) {\n\t\t\treturn origin;\n\t\t}\n\t\treturn null;\n\t}", "ImmutableList<SchemaOrgType> getAssociatedMediaList();", "ImmutableList<SchemaOrgType> getContentLocationList();", "List<Content> getContentListForApproval();", "void removeOrigin(Origin origin) {\n Set<String> origins = getStoredOrigins();\n origins.remove(origin.toString());\n\n mPreferences.edit()\n .putStringSet(KEY_ALL_ORIGINS, origins)\n .remove(createPermissionKey(ContentSettingsType.NOTIFICATIONS, origin))\n .remove(createPermissionSettingKey(ContentSettingsType.NOTIFICATIONS, origin))\n .remove(createPermissionKey(ContentSettingsType.GEOLOCATION, origin))\n .remove(createPermissionSettingKey(ContentSettingsType.GEOLOCATION, origin))\n .remove(createAppNameKey(origin))\n .remove(createPackageNameKey(origin))\n .remove(createAllDelegateAppsKey(origin))\n .apply();\n }", "List<Long> getAuthorisedList( Long id) ;", "java.util.List<Integer> getSrcIdList();", "public Collection<RouteBean> findDestinations(String origin) {\n\t\tRouteBean rb = null;\n\t\tCollection<RouteBean> rbs = new ArrayList<RouteBean>();\n\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tResultSet rs = null;\n\t\t\trs = st.executeQuery(\"SELECT DISTINCT(destination) FROM route r,bus b where r.rid=b.rid AND origin='\"+origin+\"'\");\n\t\t\twhile (rs.next()) {\n\t\t\t\trb = new RouteBean();\n\t\t\t\trb.setDestination(rs.getString(\"destination\"));\n\t\t\t\trbs.add(rb);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rbs;\n\t}", "@Override\r\n\tpublic int getLinkOriginId() {\n\t\treturn origin.getNodeId();\r\n\t}", "private void exposeIds(RepositoryRestConfiguration config) {\n /*\n * expose enttiy ids\n */\n // get a list of all entity classes from the entity manager\n Set<EntityType<?>> entities= this.entityManager.getMetamodel().getEntities();\n // create a array of entity types\n List<Class> entityClasses= new ArrayList<>();\n for(EntityType tempEnityType: entities){\n entityClasses.add(tempEnityType.getJavaType());\n }\n Class[] domainTypes = entityClasses.toArray(new Class[0]);\n config.exposeIdsFor(domainTypes);\n\n }", "public interface ContentList extends Enumeration\n{\n /**\n * Gets the number of ContentEntry objects in this ContentList.\n * \n * @return Number of entries in this list. Returns 0 if the list is empty.\n */\n public int size();\n\n /**\n * Gets to total number of ContentEntry matches in the filter, browse or\n * search operation that generated this ContentList. This value SHALL be\n * greater than or equal to the value returned from the size() method of\n * this ContentList.\n * \n * This value SHALL be greater than the value returned from the size()\n * method of this ContentList if the <i>requestedCount</i> parameter of the\n * originating content entry request was less than the total entry matches\n * of the requesting operation.\n * \n * See {@link org.ocap.hn.ContentServerNetModule}.\n * \n * \n * @return the total number of ContentEntry matches from the originating\n * content entry request\n */\n public int totalMatches();\n\n /**\n * Sets the metadata sort order of the items in this list based on metadata\n * key identifiers using signed property values.\n * \n * The sortOrder parameter of this method is a string containing the\n * properties and sort modifiers to be used to sort the resulting\n * ContentList. The format of the string containing the sort criteria shall\n * follow the format defined in UPnP Content Directory Service 3.0\n * specification section 2.3.16: A_ARG_TYPE_SortCriteria.\n * \n * @param sortOrder\n * a String representing the sortOrder for this ContentList.\n */\n public void setSortOrder(String sortOrder);\n\n /**\n * Gets the sort order set by the #setSortOrder method.\n * \n * @return The array of sort keys, or null if the setPreferredSortOrder\n * method has not been called for this list.\n */\n public String getSortOrder();\n\n /**\n * Finds the first {@link ContentEntry} which identifier for the key '\n * <code>key</code>' equals the given object <code>obj</code>. For instance,\n * if key == \"Title\" then obj represents the title, e.g. \"Best movie ever\"\n * and this method will return the first ContentEntry in the list than\n * contains a match for the (key, value) pair.\n * \n * @param key\n * The identifier key.\n * @param value\n * The object to compare to\n * \n * @return The first matched ContentEntry, or null if no match found.\n */\n public ContentEntry find(String key, Object value);\n\n /**\n * Finds the first ContentEntry which matches the search. The keys and\n * values parameters are parallel arrays. For example, if keys[0] == \"TITLE\"\n * and values[0] == \"Best movie ever\", the implementation SHALL match the\n * first ContentEntry in the list where the metadata contains that (key,\n * value) pair, as well as matches any other entries in the parameter\n * arrays.\n * \n * @param keys\n * Array of identifier keys.\n * @param values\n * Array of values.\n * \n * @return The first matching ContentEntry found, or null if no match. If\n * the parameter arrays are not the same length this method returns\n * null.\n */\n public ContentEntry find(String[] keys, Object[] values);\n\n /**\n * Finds all ContentEntry objects which match the search. Same as the\n * #find(String[], Object[]) method except all matches are returned instead\n * of just the first match.\n * \n * @param keys\n * Array of identifier keys.\n * @param values\n * Array of values.\n * \n * @return A ContentList containing all matches, or null if no matches were\n * found.\n */\n public ContentList findAll(String[] keys, Object[] values);\n\n /**\n * Filters the ContentList. The returned ContentList is a new ContentList\n * only containing ContentItems on which ContentDatabaseFilter.accept\n * returned true.\n * \n * @param filter\n * the ContentDatabaseFilter\n * \n * @return newly created ContentList containing only the filtered\n * ContentItems.\n * \n * @throws DatabaseException\n * ; see DatabaseException for exception reasons.\n */\n public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;\n}", "ImmutableList<SchemaOrgType> getThumbnailUrlList();", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "ImmutableList<SchemaOrgType> getIsBasedOnUrlList();", "public Collection<RouteBean> findOrigins() {\n\t\tRouteBean rb = null;\n\t\tCollection<RouteBean> rbs = new ArrayList<RouteBean>();\n\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tResultSet rs = null;\n\t\t\trs = st.executeQuery(\"SELECT DISTINCT(origin) FROM route r,bus b where r.rid=b.rid\");\n\t\t\twhile (rs.next()) {\n\t\t\t\trb = new RouteBean();\n\t\t\t\trb.setOrigin(rs.getString(\"origin\"));\n\t\t\t\trbs.add(rb);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rbs;\n\t}", "public Iterable<Origin> origins() {\n return backendServices.stream()\n .map(BackendService::origins)\n .flatMap(Collection::stream)\n .collect(toList());\n }", "public String getContentTypes() {\n return contentTypes;\n }", "ImmutableList<SchemaOrgType> getSourceOrganizationList();", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "@Override\n\tpublic String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {\n\t\treturn new String[] {\n\t\t\tIDocument.DEFAULT_CONTENT_TYPE \n\t\t};\t\t\n\t}", "@Override\n\tpublic GetContentResponse listContents() {\n\t\tLOGGER.debug(\"LIST ALL CONTENTS\");\n\t\t\n\t\tClientConfig clientConfig = new ClientConfig();\n\t\t \n\t HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(env.getProperty(\"liferay.user.id\"), env.getProperty(\"liferay.user.key\"));\n\t clientConfig.register( feature) ;\n\t \n\t clientConfig.register(JacksonFeature.class);\n\t\t\n\t\tClient client = ClientBuilder.newClient(clientConfig);\n\t\tWebTarget webTarget = client.target(env.getProperty(\"liferay.api.rootpath\")).path(\"article-id/0/content-type/tagtest\");\n\t\t \n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\t\n\t\tResponse response = invocationBuilder.get();\n\t\t \n\t\tGetContentResponse content = response.readEntity(GetContentResponse.class);\n\t\t\n\t\t\n\t\n\t\t \n\t\tLOGGER.info(\"status::\"+response.getStatus());\n\t\t\n\t\t\n\t\t\n\t\tcontent.setStatusCode(200);\n\t\tcontent.setStatusMessage(\"Content List\");\n\t\n\t\treturn content;\n\t}", "public int getOrigin() {\r\n\t\treturn origin;\r\n\t}", "private ArrayList<Location> getCandidateLocations(Location origin)\n {\n ArrayList<Location> locs = new ArrayList<>();\n Piece p = getPiece(origin);\n if (p==null)\n return locs;\n switch (p.getType())\n {\n case QUEEN:case ROOK:case BISHOP:\n locs = getLocations();break;\n case KNIGHT:case PAWN:case KING:\n locs = getLocationsWithin(getLocation(p),2);\n }\n return locs;\n }", "ImmutableList<SchemaOrgType> getInteractivityTypeList();", "ImmutableList<SchemaOrgType> getAuthorList();", "public static void displayOriginRequestHeaders(HttpRequest argOriginRequest) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tHeader[] headers = argOriginRequest.getAllHeaders();\r\n\t\t\tif (headers != null) {\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : BEGIN =============================\");\r\n\t\t\t\tlogger.debug(argOriginRequest.getRequestLine().toString());\r\n\t\t\t\tfor (Header header : headers) {\r\n\t\t\t\t\tlogger.debug(header.getName() + \": \" + header.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : END =============================\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "List<FinancingSourceEntity> getAllFinancingSource();", "public PackageVersionOrigin withOriginType(String originType) {\n setOriginType(originType);\n return this;\n }", "List<UserContentAccess> findContentAccess();", "ImmutableList<SchemaOrgType> getMainEntityList();", "public List<Content> listContents(Content parent, List<ContentType> types, Integer firstResult, Integer maxResults) {\n return contentDAO.listByParentAndTypesAndArchived(parent, types, Boolean.FALSE, firstResult, maxResults);\n }", "public void testLoadContentsId_1() throws Throwable {\n \tList<String> list = null;\n\t\ttry {\n\t\t\tlist = _contentSearcherDao.loadPublicContentsId(\"ART\", null, null, null);\n\t\t} catch (Throwable t) {\n\t\t\tthrow t;\n\t\t}\n\t\tassertEquals(4, list.size());\n\t\tassertFalse(list.contains(\"ART179\"));//contenuto non on-line\n\t\tassertTrue(list.contains(\"ART180\"));\n\t\tassertTrue(list.contains(\"ART187\"));\n\t\tassertTrue(list.contains(\"ART121\"));//contenuto administrator abilitato ai free\n\t\tassertFalse(list.contains(\"ART102\"));//contenuto di gruppo customers\n\t}", "public List<MediaType> getContentTypes() {\n\t\treturn this.contentTypes;\n\t}", "List<Long> findActiveContentFilesForContentUid(@Param(\"contentUid\") long contentUid);", "ImmutableList<SchemaOrgType> getCitationList();", "ImmutableList<SchemaOrgType> getLocationCreatedList();", "public String getOrigin(){\n\t\treturn origin;\n\t}", "public void setContentTypes(String contentTypes) {\n this.contentTypes = contentTypes;\n }", "public List<Pair<URL, URL>> getMediaList() {\n\t\tList<Pair<URL, URL>> result = new ArrayList<Pair<URL, URL>>();\n\t\tif (entities == null) {\n\t\t\treturn result;\n\t\t}\n\t\tif (entities.media == null) {\n\t\t\treturn result;\n\t\t}\n\t\tfor (Media media : entities.media) {\n\t\t\ttry {\n\t\t\t\tPair<URL, URL> urls = new Pair<URL, URL>(new URL(\n\t\t\t\t\t\tmedia.media_url + \":thumb\"), new URL(media.media_url));\n\t\t\t\tresult.add(urls);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (entities.urls == null) {\n\t\t\treturn result;\n\t\t}\n\t\tfor (Url url : entities.urls) {\n\t\t\tPictureService hoster = Utils.getPictureService(url);\n\t\t\tswitch (hoster) {\n\t\t\tcase TWITPIC:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(TwitpicApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase YFROG:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(YfrogApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase YOUTUBE:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(YoutubeApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IMGUR:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(ImgurApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IMGLY:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(ImglyApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INSTAGRAM:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(InstagramApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PLIXI:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(PlixiApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LOCKERZ:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(LockerzApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MOBYTO:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(MobytoApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OWLY:\n\t\t\t\ttry {\n\t\t\t\t\tresult.add(OwlyApiAccess.getUrlPair(url));\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase NONE:\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private String getContentTypeId(Collection<CMAContentType> contentTypes, String name) {\n return contentTypes.stream()\n .filter(contentType -> contentType.getName().equals(name))\n .findFirst()\n .orElseThrow(() -> new IllegalStateException(\"ContentType not found for [\" + name + \"]\")).getId();\n }", "public Collection<Integer> getIncludedTransportTypes();", "List<ObjectMessage> getObjects(long stream, long version, ObjectType... types);", "public String getOrigin() {\n return origin;\n }", "public String getOrigin() {\n return origin;\n }", "public String detailOriginOrReturn();", "default void setAcceptedOrigins(List<String> origins) {\n acceptedOrigins.clear();\n acceptedOrigins.addAll(origins);\n }", "public List<String> getActivityIdsFeed(Identity ownerIdentity, int offset, int limit);", "private List<EntityId> getEntityIdsFromKijiRestEntityIds(\n List<KijiRestEntityId> kijiRestEntityIds,\n KijiTableLayout layout)\n throws IOException {\n Set<EntityId> entityIds = Sets.newHashSet();\n\n for (KijiRestEntityId kijiRestEntityId : kijiRestEntityIds) {\n EntityId eid = kijiRestEntityId.resolve(layout);\n if (!entityIds.contains(eid)) {\n entityIds.add(eid);\n }\n }\n\n return Lists.newArrayList(entityIds);\n }", "public static String getContentType(HttpResponse argOriginResponse) {\r\n\t\tString mime = null;\r\n\t\tHeader header = argOriginResponse\r\n\t\t\t\t.getFirstHeader(HttpConstants.CONTENT_TYPE);\r\n\t\tif (header != null) {\r\n\t\t\tmime = header.getValue();\r\n\t\t\tint semiColonIndex = mime.indexOf(HttpConstants.SEMI_COLON);\r\n\t\t\tif (semiColonIndex != -1) {\r\n\t\t\t\tmime = mime.substring(0, semiColonIndex);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mime;\r\n\t}", "int getContentTypeValue();", "public PackageVersionOrigin withOriginType(PackageVersionOriginType originType) {\n this.originType = originType.toString();\n return this;\n }", "public List<SiteData> getAuthorizedSites(RoleType role) {\n List<SiteData> returnList = new ArrayList<SiteData>();\n\n // Use prefix\n for (String comboString : findValuesFromAuthorizationData(\n PROT_ELEM_TRIAL_DATA_PROVENANCE,\n PROT_ELEM_PROJECT + SiteData.SITE_DELIMITER + PROT_ELEM_SITE,\n role)) {\n returnList.add(new SiteData(comboString));\n }\n\n return returnList;\n }", "GetPrefix remoteContent();", "private List<NameIdType> loadInfo(UUID typeId) {\r\n final EntityManager entMgr = trans.getEntityManager();\r\n\r\n if ( ! maybeState.isPresent()) {\r\n final String sQuery = \"SELECT NEW littleware.asset.db.jpa.NameIdType( x.name, x.objectId, x.typeId ) \" +\r\n \"FROM Asset x WHERE x.fromId=:fromId AND x.typeId=:typeId\";\r\n final Query query = entMgr.createQuery(sQuery).\r\n setParameter(\"fromId\", UUIDFactory.makeCleanString(uFrom)).\r\n setParameter(\"typeId\", UUIDFactory.makeCleanString(typeId));\r\n return query.getResultList();\r\n } else {\r\n final String sQuery = \"SELECT NEW littleware.asset.db.jpa.NameIdType( x.name, x.objectId, x.typeId ) \" +\r\n \"FROM Asset x WHERE x.fromId=:fromId AND x.typeId=:typeId AND x.state=:state\";\r\n final Query query = entMgr.createQuery(sQuery).\r\n setParameter(\"fromId\", UUIDFactory.makeCleanString(uFrom)).\r\n setParameter(\"typeId\", UUIDFactory.makeCleanString(typeId)).\r\n setParameter(\"state\", maybeState.get().intValue());\r\n return query.getResultList();\r\n }\r\n }", "ImmutableList<SchemaOrgType> getContentRatingList();", "public Long getOriginCityId() {\n return origin.getCityId();\n }", "com.google.protobuf.ProtocolStringList\n getCityImageURLsList();", "public Long getOriginAirportId() {\n return origin.getId();\n }", "@Override\n public int getContentType() {\n return 0;\n }", "java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.ContentIdEmbeddingTokenPairProto> \n getContentIdToEmbeddingTokensList();", "private List<Concept> getConceptList(String id, Terminology terminology, IncludeParam ip)\n throws JsonMappingException, JsonProcessingException {\n Optional<ElasticObject> esObject = getElasticObject(id, terminology);\n if (!esObject.isPresent()) {\n return Collections.<Concept> emptyList();\n }\n\n List<Concept> concepts = esObject.get().getConcepts();\n return ConceptUtils.applyInclude(concepts, ip);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate List<ApiArtworkDTO> getFirstMemberArtwork(Long boxedSetId, ArtworkType artworkType, String artworkSortDir) {\n \tStringBuilder sb = new StringBuilder();\n \tsb.append(\"SELECT 'BOXSET' as source, bso_1.boxedset_id as id, a_1.id AS artworkId, al_1.id AS locatedId, ag_1.id AS generatedId,\");\n \tsb.append(\"a_1.artwork_type AS artworkType, ag_1.cache_dir AS cacheDir, ag_1.cache_filename AS cacheFilename, al_1.create_timestamp, bso_1.ordering \");\n \tsb.append(\"FROM boxed_set_order bso_1 \");\n \tsb.append(\"JOIN artwork a_1 ON a_1.videodata_id=bso_1.videodata_id AND a_1.artwork_type=:artworkType \");\n \tsb.append(\"JOIN artwork_located al_1 ON a_1.id=al_1.artwork_id and al_1.status not in ('INVALID','NOTFOUND','ERROR','IGNORE','DELETED') \");\n \tsb.append(\"JOIN artwork_generated ag_1 ON al_1.id=ag_1.located_id \");\n \tsb.append(\"WHERE bso_1.boxedset_id=:id \");\n \tsb.append(\"UNION \");\n \tsb.append(\"SELECT 'BOXSET' as source, bso_2.boxedset_id as id, a_2.id AS artworkId, al_2.id AS locatedId, ag_2.id AS generatedId,\");\n \tsb.append(\"a_2.artwork_type AS artworkType, ag_2.cache_dir AS cacheDir, ag_2.cache_filename AS cacheFilename, al_2.create_timestamp, bso_2.ordering \");\n \tsb.append(\"FROM boxed_set_order bso_2 \");\n \tsb.append(\"JOIN artwork a_2 ON a_2.series_id=bso_2.series_id AND a_2.artwork_type=:artworkType \");\n \tsb.append(\"JOIN artwork_located al_2 ON a_2.id=al_2.artwork_id and al_2.status not in ('INVALID','NOTFOUND','ERROR','IGNORE','DELETED') \"); \n \tsb.append(\"JOIN artwork_generated ag_2 ON al_2.id=ag_2.located_id \");\n \tsb.append(\"WHERE bso_2.boxedset_id=:id \");\n if (\"DESC\".equalsIgnoreCase(artworkSortDir)) {\n \tsb.append(\"ORDER BY ordering DESC, create_timestamp DESC\");\n } else {\n \tsb.append(\"ORDER BY ordering ASC, create_timestamp ASC\");\n }\n \n \tSQLQuery query = currentSession().createSQLQuery(sb.toString());\n \tquery.addScalar(LITERAL_ID, LongType.INSTANCE);\n \tquery.addScalar(LITERAL_SOURCE, StringType.INSTANCE);\n \tquery.addScalar(LITERAL_ARTWORK_ID, LongType.INSTANCE);\n \tquery.addScalar(LITERAL_LOCATED_ID, LongType.INSTANCE);\n \tquery.addScalar(LITERAL_GENERATED_ID, LongType.INSTANCE);\n \tquery.addScalar(LITERAL_ARTWORK_TYPE, StringType.INSTANCE);\n \tquery.addScalar(LITERAL_CACHE_DIR, StringType.INSTANCE);\n \tquery.addScalar(LITERAL_CACHE_FILENAME, StringType.INSTANCE);\n\n \tquery.setLong(LITERAL_ID, boxedSetId);\n \tquery.setString(\"artworkType\", artworkType.name());\n query.setResultTransformer(Transformers.aliasToBean(ApiArtworkDTO.class));\n query.setMaxResults(1); // just the first result\n return query.list();\n }", "public List<URI> getType();", "int getOriginName();", "ImmutableList<SchemaOrgType> getMentionsList();", "public List<ContentImageMeta> listContentImageMetaByContentFilterByType(Content content, String type) {\n if (type == null) {\n return contentImageMetaDAO.listByContent(content);\n }\n \n return contentImageMetaDAO.listByContentAndType(content, type);\n }", "public Integer getOrigin() {\n\t\treturn new Integer(origin);\n\t}", "List<WorkList<Content>> getMyContentList();", "String getContentType();", "String getContentType();", "String getContentType();", "public List<String> getActivityIdsOfConnections(Identity ownerIdentity, int offset, int limit);", "java.util.List<java.lang.String> getContentsList();", "public long[] getContentTypeIds(IPSRequestContext request) {\n\n // Obtain the session\n String userSessionId = request.getUserSessionId();\n\n // Constructs a security token for the supplied session.\n PSSecurityToken securityToken = new PSSecurityToken(userSessionId);\n\n return PSItemDefManager.getInstance().getContentTypeIds(securityToken);\n }", "ImmutableList<SchemaOrgType> getPublisherList();", "Set<URI> getAuthors();", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByTransformList();", "ImmutableList<SchemaOrgType> getPublicationList();", "@Test\n public void test05FindContentTypes() throws Exception\n {\n List<Integer> cids = new ArrayList<Integer>();\n \n cids.addAll(ms_cms.findContentIdsByType(311));\n cids.addAll(ms_cms.findContentIdsByType(305));\n cids.addAll(ms_cms.findContentIdsByType(313));\n \n Set<Long> contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == 3);\n assertTrue(contenttypeids.contains(311L));\n assertTrue(contenttypeids.contains(305L));\n assertTrue(contenttypeids.contains(313L));\n \n // Test large collection of content ids\n cids.clear();\n \n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n cids.addAll(ms_cms.findContentIdsByType(ALL_FF_TYPES[i])); \n }\n \n contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == ALL_FF_TYPES.length);\n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n assertTrue(contenttypeids.contains(new Long(ALL_FF_TYPES[i])));\n }\n }", "public List searchTransportation(String origin, String destination,\n\t\t\tLocale locale) throws HTMLActionException {\n\t\tList transportation = null;\n\t\tList transportationBean = new ArrayList();\n\n\t\t// call catalog component\n\t\ttry {\n\t\t\tCatalogFacade catalogFacade = new CatalogFacade();\n\t\t\ttransportation = catalogFacade.getTransportations(origin,\n\t\t\t\t\tdestination, locale);\n\n\t\t\t// Catch catalog exceptions and re-throw them as\n\t\t\t// mini-app application defined exceptions.\n\t\t} catch (Exception e) {\n\t\t\tthrow new HTMLActionException(\n\t\t\t\t\t\"Transportation Search Exception:: Catalog Exception accessing catalog component: \"\n\t\t\t\t\t\t\t+ e);\n\t\t}\n\t\tfor (int i = 0; i < transportation.size(); ++i) {\n\t\t\ttransportationBean\n\t\t\t\t\t.add(new TransportationBean(\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getTransportationId(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getName(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getDescription(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getImageURI(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getPrice(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getOrigin(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getDestination(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getCarrier(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getDepartureTime(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getArrivalTime(),\n\t\t\t\t\t\t\t((com.sun.j2ee.blueprints.catalog.Transportation) transportation\n\t\t\t\t\t\t\t\t\t.get(i)).getTravelClass()));\n\t\t}\n\t\treturn transportationBean;\n\t}", "public void setOrigin(int source) {\r\n\t\tthis.origin = source;\r\n\t}", "public List getAllIds();", "List<GWTJahiaNodeType> getContentTypes(List<String> baseTypes, boolean includeSubTypes, boolean displayStudioElement) throws GWTJahiaServiceException;", "@java.lang.Override\n public java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.ContentIdEmbeddingTokenPairProto> getContentIdToEmbeddingTokensList() {\n return contentIdToEmbeddingTokens_;\n }", "public List<Long> getFolderContentIds(long folderId, EntryType type, boolean visibleOnly) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n ArrayList<Predicate> predicates = new ArrayList<>();\n predicates.add(getBuilder().equal(from.get(\"id\"), folderId));\n if (visibleOnly) {\n predicates.add(getBuilder().equal(entry.get(\"visibility\"), Visibility.OK.getValue()));\n }\n if (type != null) {\n predicates.add(getBuilder().equal(entry.get(\"recordType\"), type.getName()));\n }\n query.select(entry.get(\"id\")).where(predicates.toArray(new Predicate[0]));\n return currentSession().createQuery(query).list();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "public List<Content> listRootContents(List<ContentType> types, Integer firstResult, Integer maxResults) { \n return contentDAO.listByNullParentAndTypesAndArchived(types, Boolean.FALSE, firstResult, maxResults);\n }", "public String getContentType();", "public String getContentType();", "Origin getOrigin();" ]
[ "0.54699856", "0.54544973", "0.54107106", "0.51173294", "0.5085098", "0.5056006", "0.5044765", "0.50022995", "0.49708343", "0.49351993", "0.49351993", "0.48785332", "0.4863125", "0.48565733", "0.47048822", "0.46860388", "0.46100786", "0.45887822", "0.45855194", "0.4568501", "0.45665154", "0.45522338", "0.4543578", "0.45267785", "0.45203352", "0.45038834", "0.44964567", "0.44932103", "0.44919994", "0.4484478", "0.44308677", "0.44259235", "0.44211316", "0.43910223", "0.43617615", "0.43593678", "0.4336475", "0.43127432", "0.43110192", "0.43102172", "0.4308401", "0.42926985", "0.42864868", "0.4286052", "0.42848405", "0.4280736", "0.42761266", "0.4275221", "0.42674986", "0.4266314", "0.42587078", "0.4258138", "0.42562813", "0.42458507", "0.42458507", "0.42423385", "0.42398518", "0.42332292", "0.42332008", "0.4229167", "0.42265728", "0.42221248", "0.42209587", "0.4219211", "0.42098394", "0.42085153", "0.4203232", "0.41969278", "0.41950777", "0.41874972", "0.4178325", "0.41757575", "0.41724283", "0.41637734", "0.4163368", "0.41580495", "0.41567293", "0.4155651", "0.41500545", "0.41461977", "0.41461977", "0.41461977", "0.41454414", "0.41294542", "0.41266724", "0.41239038", "0.41217405", "0.41123134", "0.41115892", "0.410996", "0.41073778", "0.41065314", "0.4105416", "0.4097043", "0.40948254", "0.4083036", "0.4079162", "0.40785125", "0.40785125", "0.4077715" ]
0.7746285
0
TODO Autogenerated method stub
public static void main(String[] args) { int number=123,reverse=0; while(number!=0) { int remainder=number%10; reverse=reverse*10+remainder; number=number/10; } System.out.println("The reverse of the given number is:" +reverse); }
{ "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
ElMayorCucapah.cat start: 01012010 end: 12092010
public static void main(String[] args) { Catalog catOut = null; try { File in = new File("tmp/cat_gen/El-Mayor-Cucapah.cat"); File out = new File("tmp/cat_gen/El-Mayor-Cucapah_Mgt3.js"); MutableCatalog cat = new MutableCatalog(in, new Reader_SCEDC(20000)); System.out.println(" Source Size: " + cat.size()); cal.set(2010,0,1,0,0,0); long start = cal.getTimeInMillis(); cal.set(2010,11,31,0,0,0); long end = cal.getTimeInMillis(); ExtentsFilter filter = new ExtentsFilter(); filter.setDates(start, end); filter.setMagnitudes(3, 8); int[] idx = filter.process(cat); catOut = cat.deriveCatalog(idx, new MutableCatalog()); System.out.println("Trimmed Size: " + catOut.size()); BufferedWriter br = new BufferedWriter(new FileWriter(out)); br.write("var cat='"); br.write(CatTools.toJSON(catOut)); br.write("';"); IOUtils.closeQuietly(br); //System.out.println(CatTools.toJSON(catOut)); } catch (IOException ioe) { ioe.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n int i =2003;\n long d = 13220100526L;\n System.out.println(new Date(d));\n System.out.println(i / 20 + (i % 20 > 0 ? 1 : 0));\n }", "public void visitCAT( DevCat devCat ) {}", "@Override public void map( Chunk c, NewChunk nc ) {\n String date;\n ValueString vStr = new ValueString();\n for( int i=0; i<c._len; ++i ) {\n if( !c.isNA(i) ) {\n if( isStr ) date = c.atStr(vStr, i).toString();\n else date = dom[(int)c.at8(i)];\n nc.addNum(DateTime.parse(date,_fmt).getMillis(),0);\n } else nc.addNA();\n }\n }", "@Override public void map( Chunk c, NewChunk nc ) {\n String date;\n ValueString vStr = new ValueString();\n for( int i=0; i<c._len; ++i ) {\n if( !c.isNA(i) ) {\n if( isStr ) date = c.atStr(vStr, i).toString();\n else date = dom[(int)c.at8(i)];\n nc.addNum(DateTime.parse(date,_fmt).getMillis(),0);\n } else nc.addNA();\n }\n }", "@Test\n public void test66() throws Throwable {\n DateAxis dateAxis0 = new DateAxis();\n TickUnits tickUnits0 = (TickUnits)DateAxis.createStandardDateTickUnits();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) dateAxis0);\n CategoryPointerAnnotation categoryPointerAnnotation0 = new CategoryPointerAnnotation(\"org.jfree.data.time.Day\", (Comparable) \"org.jfree.data.time.Day\", 0.0, 0.0);\n boolean boolean0 = combinedRangeCategoryPlot0.removeAnnotation(categoryPointerAnnotation0);\n combinedRangeCategoryPlot0.configureRangeAxes();\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n combinedRangeCategoryPlot0.setDomainAxisLocation(525, axisLocation0, false);\n }", "public void test800324() {\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 2\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 3\", new SimpleTimePeriod(new Date(), new Date())));\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(s1);\n try {\n tsc.getStartValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getEndValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getSubIntervalCount(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n }", "public static void main(String[] args) {\n DataFactory df = new DataFactory();\n Date minDate = df.getDate(2000, 1, 1);\n Date maxDate = new Date();\n \n for (int i = 0; i <=1400; i++) {\n Date start = df.getDateBetween(minDate, maxDate);\n Date end = df.getDateBetween(start, maxDate);\n System.out.println(\"Date range = \" + dateToString(start) + \" to \" + dateToString(end));\n }\n\n}", "String indexBlackLabBuildTime();", "public static void main(String[] args)\r\n {\n Date date = new Date();\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(date);\r\n \r\n year = calendar.get(Calendar.YEAR);\r\n month = calendar.get(Calendar.MONTH) + 1; // Januarry is Month 0 ???\r\n day = calendar.get(Calendar.DAY_OF_MONTH);\r\n \r\n //initialize a dictionary.\r\n Hdict dict = new Hdict();\r\n leechYahoo(dict);\r\n leechNytimes(dict);\r\n leechCNN(dict);\r\n //fox doesn't work, have to find the conversation element.\r\n //leechFOX(dict);\r\n \r\n Words[] output = dict.toArr();\r\n Hdict.arrSort(output);\r\n \r\n for(int i = 0; i < output.length; i++)\r\n {\r\n System.out.println(\"word \" + output[i].getName() + \" has popularity \" + output[i].getPopularity());\r\n }\r\n }", "@Test\n public void test51() throws Throwable {\n PeriodAxis periodAxis0 = new PeriodAxis(\"e\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) periodAxis0);\n CategoryMarker categoryMarker0 = new CategoryMarker((Comparable) \"e\");\n categoryMarker0.setKey(\"e\");\n Layer layer0 = Layer.FOREGROUND;\n combinedRangeCategoryPlot0.addDomainMarker(3, categoryMarker0, layer0);\n }", "private void dumpLongestCycle(Catalog cat) {\n DependencyCycle longest = null;\n for (DependencyCycle cycle : cat.getCycles()) {\n if (longest == null || longest.getCycleSegments().size() < cycle.getCycleSegments().size()) {\n longest = cycle;\n }\n }\n\n if (longest != null) {\n for (Dependency dependency : longest.getCycleSegments()) {\n System.out.println(dependency);\n }\n }\n }", "@Test\n public void test53() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n GanttRenderer ganttRenderer0 = new GanttRenderer();\n combinedDomainCategoryPlot0.setRenderer((CategoryItemRenderer) ganttRenderer0, true);\n Layer layer0 = Layer.FOREGROUND;\n Collection collection0 = combinedDomainCategoryPlot0.getRangeMarkers(layer0);\n LogAxis logAxis0 = new LogAxis(\"\");\n CombinedRangeXYPlot combinedRangeXYPlot0 = new CombinedRangeXYPlot((ValueAxis) logAxis0);\n AxisLocation axisLocation0 = combinedRangeXYPlot0.getRangeAxisLocation(0);\n AxisLocation axisLocation1 = AxisLocation.getOpposite(axisLocation0);\n combinedDomainCategoryPlot0.setDomainAxisLocation(244, axisLocation1);\n }", "@Test\n public void test31() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n combinedDomainCategoryPlot0.setAnchorValue(2191.3904);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(2191.3904, (-1506.5146538784184), (-1506.5146538784184), 1734.5430998130028);\n double double0 = rectangle2D_Double0.getX();\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getDefault();\n TimeSeriesCollection timeSeriesCollection0 = new TimeSeriesCollection((TimeZone) zoneInfo0);\n Range range0 = timeSeriesCollection0.getDomainBounds(false);\n ModuloAxis moduloAxis0 = new ModuloAxis((String) null, (Range) null);\n int int0 = combinedDomainCategoryPlot0.getRangeAxisIndex(moduloAxis0);\n }", "@Test\n public void test24() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n Number[][] numberArray0 = new Number[2][6];\n Number[] numberArray1 = new Number[0];\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[6];\n int int0 = ICC_Profile.icHdrDeviceClass;\n numberArray2[0] = (Number) 12;\n int int1 = SystemColor.CONTROL_SHADOW;\n numberArray2[1] = (Number) 21;\n int int2 = TransferHandler.NONE;\n numberArray2[2] = (Number) 0;\n byte byte0 = Character.DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR;\n numberArray2[3] = (Number) (byte)4;\n int int3 = Calendar.SEPTEMBER;\n numberArray2[4] = (Number) 8;\n int int4 = AffineTransform.TYPE_GENERAL_TRANSFORM;\n numberArray2[5] = (Number) 32;\n numberArray0[1] = numberArray2;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n combinedDomainCategoryPlot0.setDataset((CategoryDataset) defaultIntervalCategoryDataset0);\n }", "public void parseGCRecord(double timestamp, String line) {\n /*\n (STW) [GC (CMS Initial Mark) [1 CMS-initial-mark: 53400K(344064K)] 79710K(498944K), 0.0032015 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]\n [CMS-concurrent-mark-start]\n [CMS-concurrent-mark: 0.005/0.005 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]\n [CMS-concurrent-preclean-start]\n [CMS-concurrent-preclean: 0.002/0.002 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]\n [CMS-concurrent-abortable-preclean-start]\n [CMS-concurrent-abortable-preclean: 0.711/1.578 secs] [Times: user=5.00 sys=0.12, real=1.58 secs]\n (STW) [GC (CMS Final Remark) [YG occupancy: 97189 K (154880 K)]2017-11-20T19:55:50.907+0800: 4.148: [Rescan (parallel) , 0.0325130 secs]2017-11-20T19:55:50.940+0800: 4.181: [weak refs processing, 0.0000407 secs]2017-11-20T19:55:50.940+0800: 4.181: [class unloading, 0.0059425 secs]2017-11-20T19:55:50.946+0800: 4.187: [scrub symbol table, 0.0044211 secs]2017-11-20T19:55:50.950+0800: 4.191: [scrub string table, 0.0006347 secs][1 CMS-remark: 118936K(344064K)] 216125K(498944K), 0.0442861 secs] [Times: user=0.13 sys=0.00, real=0.04 secs]\n [CMS-concurrent-sweep-start]\n [CMS-concurrent-sweep: 0.002/0.002 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]\n [CMS-concurrent-reset-start]\n [CMS-concurrent-reset: 0.108/0.109 secs] [Times: user=0.34 sys=0.05, real=0.11 secs]\n */\n\n // Full GC\n if (line.startsWith(\"[CMS-concurrent\") || line.startsWith(\"[GC (CMS Initial Mark)\") || line.startsWith(\"[GC (CMS Final Remark)\")) {\n\n if (line.startsWith(\"[GC (CMS Initial Mark)\")) {\n // 53400K(344064K)] 79710K(498944K), 0.0032015 secs\n String CMS_initial_mark = line.substring(line.indexOf(':') + 2, line.indexOf(\"secs]\") + 4);\n double oCurrentMB = computeMB(CMS_initial_mark.substring(0, CMS_initial_mark.indexOf('K')));\n double oldMB = computeMB(CMS_initial_mark.substring(CMS_initial_mark.indexOf(\"(\") + 1, CMS_initial_mark.indexOf(\"K)\")));\n\n // 79710K(498944K), 0.0032015 secs\n CMS_initial_mark = CMS_initial_mark.substring(CMS_initial_mark.indexOf(']') + 2);\n double heapCurrentMB = computeMB(CMS_initial_mark.substring(0, CMS_initial_mark.indexOf('K')));\n double heapMB = computeMB(CMS_initial_mark.substring(CMS_initial_mark.indexOf('(') + 1, CMS_initial_mark.indexOf(\"K)\")));\n\n double fgcSeconds = Double.parseDouble(CMS_initial_mark.substring(CMS_initial_mark.indexOf(\", \") + 2, CMS_initial_mark.indexOf(\" secs\")));\n\n// double yCurrentMB = heapCurrentMB - oCurrentMB;\n// double youngMB = heapMB - oldMB;\n//\n// usage.addYoungUsage(timestamp, yCurrentMB, youngMB, \"FGC\");\n //usage.addOldUsage(timestamp, oCurrentMB, oldMB, \"FGC\");\n\n } else if (line.startsWith(\"[GC (CMS Final Remark)\")) {\n // 97189 K (154880 K)\n String YG_occupancy = line.substring(line.indexOf(':') + 2, line.indexOf(']'));\n double yCurrentMB = computeMB(YG_occupancy.substring(0, YG_occupancy.indexOf('K') - 1));\n double youngMB = computeMB(YG_occupancy.substring(YG_occupancy.indexOf(\"(\") + 1, YG_occupancy.indexOf(\"K)\") - 1));\n\n // 118936K(344064K)] 216125K(498944K), 0.0442861 secs] [Times: user=0.13 sys=0.00, real=0.04 secs]\n String CMS_remark = line.substring(line.indexOf(\"CMS-remark\") + 12);\n double oCurrentMB = computeMB(CMS_remark.substring(0, CMS_remark.indexOf('K')));\n double oldMB = computeMB(CMS_remark.substring(CMS_remark.indexOf(\"(\") + 1, CMS_remark.indexOf(\"K)\")));\n\n // 216125K(498944K), 0.0442861 secs] [Times: user=0.13 sys=0.00, real=0.04 secs]\n CMS_remark = CMS_remark.substring(CMS_remark.indexOf(']') + 2);\n double heapCurrentMB = computeMB(CMS_remark.substring(0, CMS_remark.indexOf('K')));\n double heapMB = computeMB(CMS_remark.substring(CMS_remark.indexOf('(') + 1, CMS_remark.indexOf(\"K)\")));\n\n double fgcSeconds = Double.parseDouble(CMS_remark.substring(CMS_remark.indexOf(\", \") + 2, CMS_remark.indexOf(\" secs\")));\n\n //usage.addYoungUsage(timestamp, yCurrentMB, youngMB, \"FGC\");\n //usage.addOldUsage(timestamp, oCurrentMB, oldMB, \"FGC\");\n\n }\n }\n // Young GC\n /*\n [GC (Allocation Failure) 2017-11-20T19:55:51.305+0800: 4.546: [ParNew: 148472K->15791K(154880K), 0.0136927 secs] 267406K->137259K(498944K), 0.0138721 secs] [Times: user=0.04 sys=0.01, real=0.02 secs]\n [GC (GCLocker Initiated GC) 2017-11-20T19:55:52.467+0800: 5.708: [ParNew: 2611K->1477K(154880K), 0.0019634 secs] 132956K->131822K(498944K), 0.0020074 secs] [Times: user=0.02 sys=0.00, real=0.00 secs]\n CMS: abort preclean due to time 2017-11-20T19:57:04.539+0800: 77.780: [CMS-concurrent-abortable-preclean: 0.651/5.055 secs] [Times: user=0.65 sys=0.01, real=5.06 secs]\n */\n else if (line.startsWith(\"[GC\") && line.contains(\"[ParNew:\")){\n String ygcCause = line.substring(line.indexOf('(') + 1, line.indexOf(')'));\n\n // 148472K->15791K(154880K), 0.0136927 secs\n String ParNew = line.substring(line.indexOf(\"[ParNew:\") + 9, line.indexOf(']'));\n // System.out.println(ParNew);\n double yBeforeMB = computeMB(ParNew.substring(0, ParNew.indexOf('K')));\n double yAfterMB = computeMB(ParNew.substring(ParNew.indexOf('>') + 1, ParNew.indexOf(\"K(\")));\n double youngMB = computeMB(ParNew.substring(ParNew.indexOf('(') + 1, ParNew.indexOf(\"K)\")));\n\n double ygcSeconds = Double.parseDouble(ParNew.substring(ParNew.indexOf(\", \") + 2, ParNew.indexOf(\" secs\")));\n // System.out.println(ParNew);\n // System.out.println(\" yBeforeMB = \" + yBeforeMB + \", yAfterMB = \" + yAfterMB + \", youngMB = \" + youngMB);\n\n // 267406K->137259K(498944K), 0.0138721 secs\n String heapUsage = line.substring(line.indexOf(\"]\") + 2, line.indexOf(\"] [Times:\"));\n double heapBeforeMB = computeMB(heapUsage.substring(0, heapUsage.indexOf('K')));\n double heapAfterMB = computeMB(heapUsage.substring(heapUsage.indexOf('>') + 1, heapUsage.indexOf(\"K(\")));\n double heapMB = computeMB(heapUsage.substring(heapUsage.indexOf('(') + 1, heapUsage.indexOf(\"K)\")));\n\n double oldBeforeMB = heapBeforeMB - yBeforeMB;\n double oldAfterMB = heapAfterMB - yAfterMB;\n double oldMB = heapMB - youngMB;\n\n //usage.addYoungUsage(timestamp, yBeforeMB, youngMB, \"YGC\");\n //usage.addYoungUsage(timestamp, yAfterMB, youngMB, \"\");\n\n if (oldAfterMB != oldBeforeMB) {\n //usage.addOldUsage(timestamp, oldBeforeMB, oldMB, \"YGC\");\n //usage.addOldUsage(timestamp, oldAfterMB, oldMB, \"\");\n }\n\n }\n }", "public void visitCoinDispenser( DevCat devCat ) {}", "@Test\n public void testDetailedCollectionDatestampMixed1() throws Exception {\n final DataReader reader = getDataReader(\"SampleSun1_7_0G1_DateStamp_Detailed-mixedLine1.txt\");\n GCModel model = reader.read();\n Assert.assertEquals(\"nummber of events\", 2, model.size());\n Assert.assertEquals(\"number of pauses\", 1, model.getPause().getN());\n Assert.assertEquals(\"gc pause sum\", 0.286451, model.getPause().getSum(), 1.0E-9);\n Assert.assertEquals(\"gc memory\", ((17786 * 1024) - (17147 * 1024)), model.getFreedMemoryByGC().getMax());\n }", "@Test\n public void test81() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(228.0, 0.0, 228.0, 0.0);\n LogAxis logAxis0 = new LogAxis(\"8dVi7isYx7'@IN\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logAxis0);\n combinedRangeCategoryPlot0.setAnchorValue((-725.5571138));\n }", "private long m517c(C0082e eVar, int i) {\n int c = eVar.mo67c(C0071a.DAY_OF_YEAR);\n return (long) m514b(m511a(c, i), c);\n }", "public int getCycleYearsForComponent(Record record);", "public void characters(char[] ch, int start, int length)\r\n\t{\r\n\t String cdata = (new String(ch, start, length)).trim();\r\n\r\n\r\n\t if(cdata.length() < 1)\r\n\t\treturn;\r\n\r\n\t String cur_element = current_tag.peek();\r\n\r\n\t /* Process the cdata for the current element */\r\n\t if(cur_element == null)\r\n\t\t{\r\n\t\t System.out.println(\"Error (ETDHandler:characters): no tag for with cdata \" + cdata);\r\n\t\t System.exit(1);\r\n\t\t}\r\n\r\n\t if(cur_element.equals(\"DISS_surname\")){\r\n\t\tname[LAST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_fname\")){\r\n\t\tname[FIRST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_middle\")){\r\n\t\tname[MIDDLE] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_language\")){\r\n\t\tlanguage = getLangCode(cdata);\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_title\")){\r\n\t\ttitle += \"\" + cdata;\r\n\t\t//marc_out.add(\"=245 10$a\" + cdata.trim() + \"$h[electronic resource]\" + \".\");\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_comp_date\")){\r\n\t\t comp_date = cdata.substring(0,4);\r\n\t\t}\r\n\r\n\t //else if(cur_element.equals(\"DISS_accept_date\") && cdata.length() >= 4){\r\n\t\t// ProQuest/UMI changed to a new system, which uses \"01/01/08\" for any ETD submitted in 2008. The accept_date is\r\n\t\t// no longer useful to generate the real accept date. \r\n\t\t//accept_date = cdata.substring(0, 4);\r\n\t\t// if DISS_accept_date is format of \"20050731\", length of 8\r\n\t\t//if(cdata.length() >= 8) {\r\n\t\t //running_date = cdata.substring(2, 8);\r\n\t\t// accept_date = cdata.substring(0,4);\r\n\t\t//}\r\n\r\n\t\t//-------revised by xing--------begin-------\r\n\t\t// if DISS_accept_date is format 0f \"07/31/2008\", lenght of 10\r\n\t\t//if(cdata.length() >= 10){\r\n\t\t //running_date = cdata.substring(8,10) + cdata.substring(0,2)+ cdata.substring(3,5);\r\n\t\t // accept_date = cdata.substring (6,10);\r\n\t\t//}\r\n\t\t//-------end--------------------------------\r\n\r\n\t//-------revised by JS 20090107, use full date--------begin-------\r\n\t else if(cur_element.equals(\"DISS_accept_date\")){\r\n\t\t accept_date = cdata.substring (0,10);\r\n\t marc_out.add(\"=500 \\\\\\\\$aTitle and description based on DISS metadata (ProQuest UMI) as of \" + accept_date + \".\");\r\n\t }\r\n\t\t// added JS 200912; if DISS_cat_code is present, grab to add to 502 $o\r\n\t else if(cur_element.equals(\"DISS_cat_code\")){\r\n\t\tcatCode += cdata + \"\";\r\n\t }\r\n\t\t//-------end--------------------------------\r\n\t else if(cur_element.equals(\"DISS_para\")){\r\n\t\tparagraphs += cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_inst_contact\")){\r\n\t\tissueDept += cdata + \"\";\r\n\r\n\t\t/*marc_out.add(\"=699 \\\\\\\\$a\" + cdata + \".\"); //blah*/\r\n\t\t/*=699 \\\\\\\\$a\" + cdata + \".\"=> 200912JS: changed to 710 /blah*/\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_keyword\")){\r\n\t\t/* Preferably parsing keywords into 699 marc data should be done here, but bug in java\r\n\t\t SAX causes characters() call on <DISS_keywords> to happen twice inbetween cdata */\r\n\t\tString n_cdata = cdata.replace(',', ';');\r\n\t\tn_cdata = n_cdata.replace(':', ';');\r\n\t\tn_cdata = n_cdata.replace('.', ';');\r\n\r\n\t\tkeywords += n_cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_ISBN\")){\r\n\t\tmarc_out.add(\"=020 \\\\\\\\$a\" + cdata);\r\n\t }\r\n\t /* else if(cur_element.equals(\"DISS_cat_code\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$o\" + catCode + \".\");\r\n\t\t} */ \r\n\t else if(cur_element.equals(\"DISS_degree\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$aThesis$b(\" + cdata + \")--$cGeorge Washington University,$d\" + comp_date + \".\");\r\n\t\t} \r\n //System.out.println(catCode); /* output content of cat_code */\r\n\r\n\t}", "public static void main(String[] args) throws ParseException {\n\n System.out.println(getMounthEnd(\"2017-11-17\"));\n\n }", "private int analyzeConstPool()\n {\n cp_index = new int[constant_pool_count];\n cp_index[0] = -1;\n\n int index = 1;\n int offset = 10;\n while (index < constant_pool_count)\n {\n cp_index[index] = offset;\n ++index;\n\n EConstPoolItem item = EConstPoolItem.getByTag(bytes[offset]);\n if (item == EConstPoolItem.UTF8_INFO)\n {\n int length = ByteTool.uBigEnd(bytes[offset + 1], bytes[offset + 2]);\n offset += length + 3;\n }\n else\n {\n offset += item.count;\n }\n\n // 这规定mdzz\n if (item == EConstPoolItem.DOUBLE_INFO || item == EConstPoolItem.LONG_INFO)\n {\n ++index;\n }\n }\n\n return offset;\n }", "public ClipLog(String name, String start, String end){\n this.name = name;\n this.start = start;\n this.end = end;\n }", "long getTimeBoltBBoltC();", "public int start() { return _start; }", "public String getFeatureCat(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[2];\n\t}", "protected void doAWTimeSlice()\n\t\tthrows DbCompException\n\t{\n//AW:TIMESLICE\n dates.add(_timeSliceBaseTime);\n//AW:TIMESLICE_END\n\t}", "public static void main(String[] args) {\n\t\tFile f= new File(\"E://workplace/BigFileRead/src/data/itcont.txt\");\r\n\t\ttry {\r\n\t\t\tBufferedReader b=new BufferedReader(new FileReader(f));\r\n\t\t\tString readLine=\"\";\r\n\t\t\t\r\n\t\t\t//得到总行数\r\n\t\t\tInstant lineCountStart=Instant.now();//当前时间\r\n\t\t\tint lines=0;\r\n\t\t\tInstant nameStart=Instant.now();\r\n\t\t\tArrayList<String> names=new ArrayList<String>();\r\n\t\t\t//得到第432个和第43243个名字\r\n\t\t\tArrayList<Integer> indexs=new ArrayList<>();\r\n\t\t\t\r\n\t\t\tindexs.add(1);\r\n\t\t\tindexs.add(433);\r\n\t\t\tindexs.add(43244);\r\n\t\t\t//计算每个月的捐赠量\r\n\t\t\tInstant donationsStart=Instant.now();\r\n\t\t\tArrayList<String> dates=new ArrayList<String>();\r\n\t\t\t//计算每一个名字的出现次数\r\n\t\t\tInstant commonNamesStart=Instant.now();\r\n\t\t\tArrayList<String> firstNames=new ArrayList<String>();\r\n\t\t\tSystem.out.println(\"start read file using input stream!\");\r\n\t\t\ttry {\r\n\t\t\t\twhile((readLine=b.readLine())!=null){\r\n\t\t\t\tlines++;\r\n\t\t\t\t//得到所有的名字\r\n\t\t\t\tString array1[]=readLine.split(\"\\\\s*\\\\|s*\");\r\n\t\t\t\tString name=array1[7];\r\n\t\t\t\tnames.add(name);\r\n\t\t\t\tif(indexs.contains(lines)){\r\n\t\t\t\t\tSystem.out.println(\"names:\"+names.get(lines-1)+\"at index: \"+(lines-1));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif (name.contains(\", \")){\r\n\t\t\t\t\tString array2[]=(name.split(\",\"));\r\n\t\t\t\t\tString firstHalfOfName=array2[1].trim();\r\n\t\t\t\t\tif(firstHalfOfName!=\"undefined\"||!firstHalfOfName.isEmpty()){\r\n\t\t\t\t\t\tif(firstHalfOfName.contains(\" \")){\r\n\t\t\t\t\t\t\tString array3[]=(name.split(\" \"));\r\n\t\t\t\t\t\t\tString firstName=array3[0].trim();\r\n\t\t\t\t\t\t\tfirstNames.add(firstName);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tfirstNames.add(firstHalfOfName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tString rawDate=array1[4];\r\n\t\t\t\tString year=rawDate.substring(0,4);\r\n\t\t\t\tString month=rawDate.substring(4,6);\r\n\t\t\t\tString formatDate=month+\"-\"+year;\r\n\t\t\t\tdates.add(formatDate);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tInstant namesEnd=Instant.now();\r\n\t\t\tlong timeElapseNames=Duration.between(nameStart, namesEnd).toMillis();\r\n\t\t\tSystem.out.println(\"names time :\"+timeElapseNames+\"ms\");\r\n\t\t\tSystem.out.println(\"total lines :\"+lines);\r\n\t\t\t\r\n\t\t\tInstant lineCountsEnd=Instant.now();\r\n\t\t\tlong timeElapselineCounts=Duration.between(lineCountStart, lineCountsEnd).toMillis();\r\n\t\t\tSystem.out.println(\"lines time :\"+timeElapseNames+\"ms\");\r\n\t\t\t\r\n\t\t\tHashMap<String, Integer> dateMap=new HashMap<String, Integer>();\r\n\t\t\tfor(String date:dates){\r\n\t\t\t\tInteger count =dateMap.get(date);\r\n\t\t\t\tif(count==null){\r\n\t\t\t\t\tdateMap.put(date, 1);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tdateMap.put(date, count+1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (Map.Entry<String, Integer> entry :dateMap.entrySet()){\r\n\t\t\t\tString key=entry.getKey();\r\n\t\t\t\tInteger value=entry.getValue();\r\n\t\t\t\tSystem.out.println(\"Donations per month and year: \"+key+\" and donation count: \"+value);\r\n\t\t\t}\r\n\t\t\tInstant donationEnd=Instant.now();\r\n\t\t\tlong timeElapsedDonations=Duration.between(donationsStart, donationEnd).toMillis();\r\n\t\t\tSystem.out.println(\"Donation time: \"+timeElapsedDonations+\" ms\");\r\n\t\t\t\t\r\n\t\t\tHashMap<String, Integer> map=new HashMap<String, Integer>();\r\n\t\t\tfor(String name : firstNames){\r\n\t\t\t\tInteger count =dateMap.get(name);\r\n\t\t\t\tif(count==null){\r\n\t\t\t\t\tmap.put(name, 1);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmap.put(name, count+1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tLinkedList<Entry<String, Integer>> list =new LinkedList<>(map.entrySet());\r\n\t\t\t\r\n\t\t\tCollections.sort(list,new Comparator<Map.Entry<String, Integer>>() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Map.Entry<String, Integer> o1, Map.Entry<String, Integer> o2) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\treturn (o2.getValue()).compareTo(o1.getValue());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The most Common first name is: \"+list.get(0).getKey()+\" and it occurs: \"+list.get(0).getValue()+\" time.\");\r\n\t\t\tInstant commonNameEnd=Instant.now();\r\n\t\t\tlong timeElapseCommonName =Duration.between(commonNamesStart, commonNameEnd).toMillis();\r\n\t\t\tSystem.out.println(\"most common name time: \"+timeElapseCommonName+\" ms\");\r\n\t\t} catch (FileNotFoundException e) { \r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "public void setStart(long start) { this.start = start; }", "public String printActivityPatterns()\n\t{\n\t\tStringBuilder toReturn = new StringBuilder();\n\n\t\ttoReturn.append(\"ACTIVITY PATTERNS\\n\");\n\t\ttoReturn.append(\" Activity in one-hour segments - Species (Number of pictures in one hour segments/Total number of pics)\\n\");\n\n\t\tfor (Species species : analysis.getAllImageSpecies())\n\t\t{\n\t\t\tStringBuilder toAdd = new StringBuilder();\n\t\t\tList<ImageEntry> imagesWithSpecies = new ImageQuery().speciesOnly(species).query(analysis.getImagesSortedByDate());\n\t\t\tInteger totalImages = imagesWithSpecies.size();\n\t\t\t// Activity / All\n\t\t\ttoAdd.append(\" All months Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\n\");\n\t\t\ttoAdd.append(\" Hour Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency\\n\");\n\n\t\t\tint[] totals = new int[13];\n\t\t\tint[] totalActivities = new int[13];\n\n\t\t\t// 12 months + all months\n\t\t\tfor (int i = -1; i < 12; i++)\n\t\t\t{\n\t\t\t\tInteger activity;\n\t\t\t\t// -1 = all months\n\t\t\t\tif (i == -1)\n\t\t\t\t\tactivity = analysis.activityForImageList(imagesWithSpecies);\n\t\t\t\telse\n\t\t\t\t\tactivity = analysis.activityForImageList(new ImageQuery().monthOnly(i).query(imagesWithSpecies));\n\t\t\t\ttotalActivities[i + 1] = activity;\n\t\t\t}\n\n\t\t\t// 24 hrs\n\t\t\tfor (int i = 0; i < 24; i++)\n\t\t\t{\n\t\t\t\tList<ImageEntry> imagesWithSpeciesAtTime = new ImageQuery().timeFrame(i, i + 1).query(imagesWithSpecies);\n\t\t\t\ttoAdd.append(String.format(\"%02d:00-%02d:00 \", i, i + 1));\n\t\t\t\t// 12 months\n\t\t\t\tfor (int j = -1; j < 12; j++)\n\t\t\t\t{\n\t\t\t\t\tInteger activity;\n\t\t\t\t\t// -1 = all months\n\t\t\t\t\tif (j == -1)\n\t\t\t\t\t\tactivity = analysis.activityForImageList(imagesWithSpeciesAtTime);\n\t\t\t\t\telse\n\t\t\t\t\t\tactivity = analysis.activityForImageList(new ImageQuery().monthOnly(j).query(imagesWithSpeciesAtTime));\n\n\t\t\t\t\tif (activity != 0)\n\t\t\t\t\t\ttoAdd.append(String.format(\"%6d %10.3f\", activity, (double) activity / totalActivities[j + 1]));\n\t\t\t\t\telse\n\t\t\t\t\t\ttoAdd.append(\" \");\n\t\t\t\t\ttotals[j + 1] = totals[j + 1] + activity;\n\t\t\t\t}\n\t\t\t\ttoAdd.append(\"\\n\");\n\t\t\t}\n\n\t\t\ttoAdd.append(\"Total \");\n\n\t\t\tfor (int total : totals) toAdd.append(String.format(\"%6d 100.000\", total));\n\n\t\t\ttoAdd.append(\"\\n\");\n\n\t\t\t// Print the header first\n\t\t\ttoReturn.append(String.format(\"%-28s (%6d/ %6d)\\n\", species.getName(), totals[0], totalImages));\n\n\t\t\ttoReturn.append(toAdd);\n\n\t\t\ttoReturn.append(\"\\n\");\n\t\t}\n\n\t\treturn toReturn.toString();\n\t}", "@Override\n\tpublic int getTimeSlice() {\n\t\treturn 0;\n\t}", "public Record getCoverageContiguousEffectiveDate(Record record);", "@Test\n public void test79() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\";\n stringArray0[1] = \"( Z?rh;q|PN\";\n Number[][] numberArray0 = new Number[0][4];\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(stringArray0, numberArray0, numberArray0);\n LogAxis logAxis0 = new LogAxis(\"9\\\"0-oMh}]m6e RZQxr\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, (CategoryAxis) null, (ValueAxis) logAxis0, (CategoryItemRenderer) null);\n RectangleEdge rectangleEdge0 = categoryPlot0.getDomainAxisEdge(0);\n }", "public static String[] GoldAUTOtoCATS(String line){\n String[] cats = AUTOtoCATS(line);\n for(int i = 0; i < cats.length; ++i) {\n //cats[i] = simplifyCCG(cats[i]);\n cats[i] = dropArgNoFeats(cats[i]);\n }\n return cats;\n }", "public void readCategoryFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\tint row = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t//System.out.println(sCurrentLine);\n\t\t\t\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\t//System.out.println(lineElements.length);\n\t\t\tfor (int column = 0; column < lineElements.length; column++) {\t\t\n\t\t\t\t//System.out.println(column);\n\t\t\t\tint category = Integer.parseInt(lineElements[column]);\n\t\t\t\t//System.out.println(vertices.size());\n\t\t\t\tPOI v1 = vertices.get(row);\n\t\t\t\tPOI v2 = vertices.get(column);\n\t\t\t\t\n\t\t\t\tArc arc = getArc(v1, v2);\n\t\t\t\tif (!distMtx) {\n\t\t\t\t\tdouble distance = v1.distanceTo(v2);\n\t\t\t\t\tif (data == Dataset.VERBEECK) {\n\t\t\t\t\t\tdistance = distance / 5.0;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistance = distance / 10.0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tarc.setLength(distance);\n\t\t\t\t}\n\t\t\t\tarc.setCategory(category);\n\t\t\t\tif (distConstraint) {\n\t\t\t\t\tarc.setSpeedTable(allOneSpeedTable);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tarc.setSpeedTable(speedTables.get(category));\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trow ++;\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "public static void main(String[] args) throws IOException, ParserConfigurationException, SAXException {\n\t\tDateTime d = new DateTime().withDayOfMonth(1);;\n\n\t\tfor( int i =0 ; i < 24; i ++){\n\t\t\tSystem.out.println(d.minusMonths(i));\n\t\t}\n\n\t}", "OffsetDateTime usageStart();", "public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }", "@Test\n public void test80() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n Year year0 = new Year();\n CategoryMarker categoryMarker0 = new CategoryMarker((Comparable) year0);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = categoryPlot0.getRangeMarkers(layer0);\n Layer layer1 = Layer.BACKGROUND;\n LengthAdjustmentType lengthAdjustmentType0 = categoryMarker0.getLabelOffsetType();\n categoryMarker0.setLabelOffsetType(lengthAdjustmentType0);\n categoryPlot0.addRangeMarker((-6), (Marker) categoryMarker0, layer1);\n double double0 = categoryPlot0.getAnchorValue();\n CategoryItemRenderer categoryItemRenderer0 = categoryPlot0.getRenderer(10);\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n double double1 = rectangle2D_Double0.getX();\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n rectangle2D_Double1.x = (double) 10;\n CombinedDomainXYPlot combinedDomainXYPlot0 = new CombinedDomainXYPlot();\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)2;\n byteArray0[2] = (byte) (-50);\n byteArray0[3] = (byte) (-41);\n byteArray0[4] = (byte)48;\n byteArray0[5] = (byte) (-127);\n byteArray0[6] = (byte) (-25);\n byteArray0[7] = (byte)0;\n byteArray0[8] = (byte) (-118);\n ByteLookupTable byteLookupTable0 = null;\n try {\n byteLookupTable0 = new ByteLookupTable((-135), byteArray0);\n } catch(IllegalArgumentException e) {\n //\n // Offset must be greater than 0\n //\n assertThrownBy(\"java.awt.image.LookupTable\", e);\n }\n }", "@Test\n public void testDetailedCollectionDatestampMixed3() throws Exception {\n DataReader reader = getDataReader(\"SampleSun1_7_0G1_DateStamp_Detailed-mixedLine3.txt\");\n GCModel model = reader.read();\n Assert.assertEquals(\"nummber of events\", 2, model.size());\n Assert.assertEquals(\"concurrent event type\", G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());\n Assert.assertEquals(\"number of pauses\", 1, model.getPause().getN());\n Assert.assertEquals(\"gc pause sum\", 0.088949, model.getPause().getSum(), 1.0E-9);\n Assert.assertEquals(\"gc memory\", ((29672 * 1024) - (28733 * 1024)), model.getFreedMemoryByGC().getMax());\n }", "public static void main(String args[])\n{\n\n\n ArrayList al = adventLibrary.readData(\"day9.txt\");\n long data1[] = adventLibrary.longArray1CSV( al );\n\n System.out.print( \"part 1: \" );\n IntComputer amp1 = new IntComputer( data1 );\n amp1.process();\n //amp1.dataDump();\n\n}", "@Test\n public void test43() throws Throwable {\n DateAxis dateAxis0 = new DateAxis();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) dateAxis0);\n dateAxis0.setLabelToolTip(\"Null 'order' argument.\");\n int int0 = combinedRangeCategoryPlot0.getRangeAxisIndex(dateAxis0);\n combinedRangeCategoryPlot0.mapDatasetToRangeAxis(2758, 2758);\n Point2D.Double point2D_Double0 = new Point2D.Double((double) 2758, (double) 0);\n String string0 = point2D_Double0.toString();\n }", "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "public void visitLineDisplay( DevCat devCat ) {}", "@Test\n public void testDetailedCollectionDatestampMixed2() throws Exception {\n TestLogHandler handler = new TestLogHandler();\n handler.setLevel(Level.WARNING);\n GCResource gcResource = new GcResourceFile(\"SampleSun1_7_0G1_DateStamp_Detailed-mixedLine2.txt\");\n gcResource.getLogger().addHandler(handler);\n DataReader reader = getDataReader(gcResource);\n GCModel model = reader.read();\n Assert.assertEquals(\"number of events\", 3, model.size());\n Assert.assertEquals(\"number of warnings\", 0, handler.getCount());\n Assert.assertEquals(\"concurrent event type\", G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());\n Assert.assertEquals(\"number of pauses\", 2, model.getPause().getN());\n Assert.assertEquals(\"gc pause max\", 0.280312, model.getPause().getMax(), 1.0E-9);\n Assert.assertEquals(\"gc memory\", ((20701 * 1024) - (20017 * 1024)), model.getFreedMemoryByGC().getMax());\n }", "public static void main(String[] args) {\n\n\t\t SimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n\t\t// for(int i=0; i<100; i++) {\n\t\t// String strDT = sf.format(new Date(System.currentTimeMillis()));\n\t\t// System.out.println(strDT);\n\t\t// }\n\n\t\t\n\t\tDate oldDate = new Date();\n\t\tCalendar gcal = new GregorianCalendar();\n\t\tgcal.setTime(oldDate);\n\t\tgcal.add(Calendar.SECOND, -4468);\n\t\tDate newDate = gcal.getTime();\n\t\tSystem.out.println(sf.format(oldDate));\n\t\tSystem.out.println(sf.format(newDate));\n\t}", "@Test\n public void test76() throws Throwable {\n SimpleTimeZone simpleTimeZone0 = new SimpleTimeZone((-614), \"\", 0, 0, 0, (-1), 0, 0, 3473, (-1));\n DateAxis dateAxis0 = new DateAxis(\"\", (TimeZone) simpleTimeZone0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) dateAxis0);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n CombinedRangeXYPlot combinedRangeXYPlot0 = new CombinedRangeXYPlot((ValueAxis) dateAxis0);\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeXYPlot0.getDomainZeroBaselineStroke();\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n PipedOutputStream pipedOutputStream0 = new PipedOutputStream(pipedInputStream0);\n DataOutputStream dataOutputStream0 = new DataOutputStream((OutputStream) pipedOutputStream0);\n ObjectOutputStream objectOutputStream0 = new ObjectOutputStream((OutputStream) dataOutputStream0);\n SerialUtilities.writeStroke(basicStroke0, objectOutputStream0);\n SystemColor systemColor0 = SystemColor.text;\n LookupPaintScale lookupPaintScale0 = new LookupPaintScale((double) 0, 1955.7194307587054, (Paint) systemColor0);\n PaintScaleLegend paintScaleLegend0 = new PaintScaleLegend((PaintScale) lookupPaintScale0, (ValueAxis) dateAxis0);\n AxisLocation axisLocation0 = paintScaleLegend0.getAxisLocation();\n combinedRangeCategoryPlot0.setDomainAxisLocation(334, axisLocation0);\n }", "public void visitHardTotals( DevCat devCat ) {}", "public void endDocument()\r\n\t{\r\n\t /* marc_out.add(\"=008 \" + running_date + \"s\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\dcu\\\\\\\\\\\\\\\\\\\\sbm\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" + language + \"\\\\d\"); */ /** 008/24-27: biblio+thesis codes **/\r\n\t marc_out.add(\"=008 \" + running_date + \"s\" + comp_date + \"\\\\\\\\\\\\\\\\dcu\\\\\\\\\\\\\\\\\\\\obm\\\\\\\\\\\\000\\\\0\\\\\" + language + \"\\\\d\"); /** 008/24-27: biblio+thesis codes **/\r\n\t marc_out.add(\"=264 30$a[Washington, D. C.] :$bGeorge Washington University,$c\" + comp_date + \".\"); /** 20130430: rev 260*/\r\n\t}", "public static void getTitles(String tag){\n Connection con = LyricsAccess.startconnection(\"orcl\");\n int count = 0; //song lyrics count\n int page = 1; //page of lyrics\n \n while(count<50){\n XmlPage xml = getXmlResults(tag,page);\n if(xml.asXml().contains(\"error code\")){ //if there was an error, exit\n return;\n }\n //System.out.println(xml.asXml());\n try{\n BufferedReader in = new BufferedReader(new StringReader(xml.asXml()));\n\n String line = \"\";\n String lastline = \"\";\n boolean nameflag = false;\n boolean artistflag = false;\n String artist = \"\";\n String name = \"\"; \n int length = 0;\n\n while((line = in.readLine())!=null){ //iterate thorugh each line \n if(lastline.trim().equals(\"<duration>\")){\n length = Integer.parseInt(line.trim());\n //System.out.println(length);\n } \n if(nameflag){ //song name\n name = line.trim().replace(\"&amp;\", \"&\"); //convert HTML escaped character into normal character\n //System.out.println(line.trim());\n }\n if(artistflag){ //song artist\n artist = line.trim();\n //System.out.println(\" \" + line.trim());\n\n // Get lyrics from online\n LyricsProcess lyric = new LyricsProcess();\n String uLyrics = lyric.webgrab(name,artist); //get lyrics\n String c_lyrics = \"\"; //with timestamp\n String nt_lyrics = \"\"; //no timestamp\n //c_lyrics = lyric.cleanup7(uLyrics,true); //clean up\n //nt_lyrics = lyric.cleanup7(uLyrics, false); //clean up (without timestamp)\n \n nt_lyrics = LyricsWiki.cleanup(LyricsWiki.grabLyrics(name, artist)); //get lyrics and clean up\n //System.out.println(c_lyrics);\n \n //random wait time\n Random rand = new Random();\n int value = 1000*(rand.nextInt(4)+2);\n try {\n Thread.sleep(value);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n \n int moods[] = {5}; ///////////mood to be input, 0-7\\\\\\\\\\\\\\\\\\\\\\\n \n //c_lyrics = LyricsProcess.oneLine(c_lyrics);\n nt_lyrics = LyricsProcess.oneLine(nt_lyrics); //put lyrics in one line\n \n if(!nt_lyrics.isEmpty()){ //if there are lyrics\n LyricsAccess.saveto(con, name, artist, length, nt_lyrics, c_lyrics, moods);\n count++;\n System.out.println(count);\n }\n if(count==50){\n return;\n }\n } \n\n if(line.trim().equals(\"<name>\")&&!lastline.trim().equals(\"<artist>\")){ //finds the name of the song\n nameflag = true;\n } else {\n nameflag = false;\n }\n\n if(line.trim().equals(\"<name>\")&&lastline.trim().equals(\"<artist>\")){ //finds the artist of the song\n artistflag = true;\n } else {\n artistflag = false;\n }\n\n lastline = line;\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n \n page++;\n }\n }", "public void testPrintGcApplicationConcurrentTimeAnalysis() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset104.txt\");\n Jvm jvm = new Jvm(null, null);\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertTrue(Analysis.WARN_PRINT_GC_APPLICATION_CONCURRENT_TIME + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_GC_APPLICATION_CONCURRENT_TIME));\n }", "protected void beforeTimeSlices()\n\t\tthrows DbCompException\n\t{\n dates = new ArrayList<Date>();\n\t}", "private static void printCloudletList(List<Cloudlet> list) {\n\t\tint size = list.size();\n\t\tCloudlet cloudlet;\n List<Double> CPUtime = new ArrayList<Double>();\n List <Double> cputime = new ArrayList<Double>();\n List <Double> start_time = new ArrayList<Double>();\n List<Double> starttime = new ArrayList<Double>();\n List<Double> endtime = new ArrayList<Double>();\n\t\tString indent = \" \";\n\t\tLog.printLine();\n\t\tLog.printLine(\"========== OUTPUT ==========\");\n\t\tDecimalFormat dft = new DecimalFormat(\"###.##\");\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tcloudlet = list.get(i);\n\t\t if (cloudlet.getCloudletStatus() == Cloudlet.SUCCESS){\n\t\t\t\tcputime.add(cloudlet.getActualCPUTime());\n\t\t\t\tstart_time.add(cloudlet.getExecStartTime());\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tcloudlet = list.get(i);\n\t\t\tif (cloudlet.getCloudletStatus() == Cloudlet.SUCCESS){\n\t\t if(!CPUtime.contains(cloudlet.getActualCPUTime())) {\n\t\t \t CPUtime.add(cloudlet.getActualCPUTime());\n\t\t \t }\n\t\t if(!starttime.contains(cloudlet.getExecStartTime())) {\n\t\t \t starttime.add(cloudlet.getExecStartTime());\n\t\t \t}\n\t\t if(!endtime.contains(cloudlet.getFinishTime())) {\n\t\t \t endtime.add(cloudlet.getFinishTime());\n\t\t \t }\n\t\t\t}\n\t\t}\n\t\t\n int n=0;\n\t\tfor (int i=0; i< CPUtime.size();i++) {\n\t\t\t\n n= Collections.frequency(cputime,CPUtime.get(i));\n Log.printLine(dft.format(n)+\" \"+\"Cloudlets finish in \"+ dft.format(CPUtime.get(i))+\"s\" );\n\t\t}\n\t\tLog.printLine();\n\t\tfor (int i=0; i< starttime.size();i++) {\n\t\t\t n= Collections.frequency(start_time,starttime.get(i));\n\t\t\t Log.printLine(dft.format(n)+\" \"+\"Cloudlets executes in time \"+ dft.format(starttime.get(i))+\"~\" + dft.format(endtime.get(i))+\"s\");\n\t\t }\n\t}", "@Override\n public void lifeTime() {\n System.out.println(\"Lifetime is around 5 years.\");\n }", "public static void main(String... args){\n Calendar cal = new Calendar(123456789101112L, 1314151617181920L);\n// cal.iterateYears();\n// cal.displayStats();\n\n cal.alternateIterateYears(123456789101112L, 1314151617181920L);\n //cal.alternateIterateYears(1234, 5678);\n\n cal.displayStats();\n }", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "public void characters(char ch[], int start, int length){\n \t\t\t\t\tstr = new String(ch, start, length);\n \t\t\t\t\tif(tagname.equals(\"libraryname\")){\n \t\t\t\t\t\tcounts = 0;\n \t\t\t\t\t\tSystem.out.println(\"-----IN LIB-name\"+str+\"-----\"+\" \"+counts);\n \t\t\t\t\t\tbdatalist = new ArrayList<String>();\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"librarytel\")){\n \t\t\t\t\t\tSystem.out.println(\"-LIB TEL-\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"librarysite\")){\n \t\t\t\t\t\tSystem.out.println(\"-LIB SITE-\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"libraryaddr\")){\n \t\t\t\t\t\tSystem.out.println(\"-LIB ADDR-\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"bdata\")){\n \t\t\t\t\t\tSystem.out.println(\"-FOUND NEW BOOK-\");\n \t\t\t\t\t}else if(tagname.equals(\"bookname\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-NAME\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"ISBN\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-ISBN\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"author\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-AUTHOR\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"bookshelf\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-SHELF\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"serial\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-SERIAL\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"returned\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-returned\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"checkoutdate\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-chkdate\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}else if(tagname.equals(\"returndate\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND BOOK-rtndate\"+str+\" \"+counts);\n \t\t\t\t\t\tbdatalist.add(counts, str);\n \t\t\t\t\t\tcounts++;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}", "void mo17021c();", "static ArrayList<String> tag(ArrayList<String> rawWords){\n\t\tArrayList<String> outSentence = new ArrayList<String>();\n\t\t//String[][] chart = new String[rawWords.size()][rawWords.size()];\n\t\tfor(int i = 0; i<rawWords.size(); i++){\n\t\t\tString[] entry = rawWords.get(i).split(\"\\\\s+\");\n\t\t\tString word = entry[0];\n\t\t\tString pos = entry[1];\n\t\t\tSystem.out.println(word);\n\t\t\tif((pos.equals(\"NNP\")||word.equals(\"tomorrow\"))&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"due\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j = i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNP\")||next.equals(\"NNS\")||next.equals(\"NNPS\")||next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse if (pos.equals(\"CD\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tif((rawWords.get(j).split(\"\\\\s\")[1].equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(\"CD\")&&rawWords.get(j+1).split(\"\\\\s\")[1].equals(\"CD\"))||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NN\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNP\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNPS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"%\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s\")[0].equals(\"to\")&&rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"up\")){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"#\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"PRP$\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJ\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJR\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"$\")){\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"POS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"DT\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"approximately\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"around\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"almost\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"about\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[0].equals(\"as\")&&(rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"many\")||rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"much\"))&&rawWords.get(j-2).split(\"\\\\s\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning-=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if((rawWords.get(j).split(\"\\\\s\")[1].equals(\"RBR\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\t}\n\t\t\t\t\ti=ending;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else if(pos.equals(\"CD\")&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"$\")&&rawWords.get(i-2).split(\"\\\\s+\")[1].equals(\"IN\")){\n\t\t\t\tint beginning=i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j=i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString prior=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tString priorWord = rawWords.get(j).split(\"\\\\s\")[0];\n\t\t\t\t\tif(prior.equals(\"$\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s+\")[0].equals(\"as\")&&rawWords.get(j-1).split(\"\\\\s+\")[0].equals(\"much\")&&rawWords.get(j-2).split(\"\\\\s+\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning -=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\tj -=3;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"IN\")){\n\t\t\t\t\t\tbeginning --;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}*/\n\t\t\t//else if(pos.equals(arg0))\n\t\t\telse if(pos.equals(\"PRP\")||pos.equals(\"WP\")||word.equals(\"those\")||pos.equals(\"WDT\")){\n\t\t\t\tint beginning = i;\n\t\t\t\t//int ending = i;\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}\n\t\t\telse if(word.equals(\"anywhere\")&&rawWords.get(i+1).split(\"\\\\s+\")[0].equals(\"else\")){\n\t\t\t\toutSentence.add(\"anywhere\\tB-NP\");\n\t\t\t\toutSentence.add(\"else\\tI-NP\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t/*else if (word.equals(\"same\")&&rawWords.get(i-1).split(\"\\\\s\")[0].equals(\"the\")){\n\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\tString nounGroupLine = \"the\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tnounGroupLine = \"same\\tI-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}*/\n\t\t\telse if(pos.equals(\"NN\")||pos.equals(\"NNS\")||pos.equals(\"NNP\")||pos.equals(\"NNPS\")||pos.equals(\"CD\")/*||pos.equals(\"PRP\")*/||pos.equals(\"EX\")||word.equals(\"counseling\")||word.equals(\"Counseling\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean endFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNS\")||next.equals(\"NNP\")||next.equals(\"NNPS\")||next.equals(\"CD\")||(next.equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(rawWords.get(j+1).split(\"\\\\s\")[1]))){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString[] pArray = rawWords.get(j).split(\"\\\\s+\");\n\t\t\t\t\tString prior = pArray[1];\n\t\t\t\t\tif(j>2 &&prior.equals(rawWords.get(j-2).split(\"\\\\s+\")[1])&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"CC\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\"))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if(prior.equals(\"JJ\")||prior.equals(\"JJR\")||prior.equals(\"JJS\")||prior.equals(\"PRP$\")||prior.equals(\"RBS\")||prior.equals(\"$\")||prior.equals(\"RB\")||prior.equals(\"NNP\")||prior.equals(\"NNPS\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBG\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((prior.equals(\"RBR\")||pArray[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((pArray[0].equals(\"Buying\")||pArray[0].equals(\"buying\"))&&rawWords.get(j+1).split(\"\\\\s+\")[0].equals(\"income\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(pArray[0].equals(\"counseling\")||pArray[0].equals(\"Counseling\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s+\")[1].equals(\"NN\")){\n\t\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\t\tj--;\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 if (prior.equals(\"DT\")||prior.equals(\"POS\")){\n\t\t\t\t\t\t//j--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tif(!rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\"))\n\t\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString outLine = word+\"\\tO\";\n\t\t\t\toutSentence.add(outLine);\n\t\t\t}\n\t\t}\n\t\toutSentence.remove(0);\n\t\toutSentence.remove(outSentence.size()-1);\n\t\toutSentence.add(\"\");\n\t\treturn outSentence;\n\t}", "@Test\n public void test36() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"\", (Comparable) \"\", (-1680.444156425021));\n categoryTextAnnotation0.setCategory(\"\");\n boolean boolean0 = combinedDomainCategoryPlot0.removeAnnotation(categoryTextAnnotation0);\n categoryTextAnnotation0.setRotationAngle((-614.082251));\n CategoryItemRenderer categoryItemRenderer0 = combinedDomainCategoryPlot0.getRenderer(0);\n combinedDomainCategoryPlot0.setRenderer((CategoryItemRenderer) null);\n int int0 = combinedDomainCategoryPlot0.getRangeAxisCount();\n }", "public interface C2007e {\n C3224j getData();\n\n float getMaxHighlightDistance();\n\n int getMaxVisibleCount();\n\n float getYChartMax();\n\n float getYChartMin();\n}", "public static void main(String[] args) throws IOException {\n\t\t\n\t\n\tnew VetClinic();\n\t\n\t// WELCOME TO MY CODE: MAIRA LORENA WALTERO GUEVARA \n\t// This code is for demonstration purposes for my application for Graduate Software Engineer (Dublin)in DATALEX \n\t\n\t// MY CLINIC IS DIVIDED IN TWO SUPER CLASES: \n\t// 1. STAFF AND 2. ANIMALS \n\t\n\t// 1. STAFF HAS 3 CHILDREN: \n\t// 1.1 ADMINISTRATIVE STAFF AND 1.2 MEDICAL STAFF\n\t// 1.1 ADMININSTRATIVE STAFF HAS 3 CHILDS: \n\t//1.1.1 HR (id=229 -230) , 1.1.2 IT (id=226-228) AND 1.1.3 RECEPTIONIST (id=221-225)\n\t\n\t// 1.2. MEDICAL STAFF HAS 3 CHILDREN: \n\t//1.2.1 SMALL ANIMALS VETS (id= 111 - 125) , 1.2.2 LARGE ANIMALS VETS (id= 126 - 130) AND LABORATORIANS (id= 131 - 140) \n\t//1.2.1 SMALL ANIMALS VETS is only attending small animals = pets \n\t//1.2.2 LARGE ANIMALS VETS is only attending large animals = livestock animals \n\t//1.2.3 LABORATORIANS are attending both type of animals but only if they need. \n\t\n\t//2. ANIMALS HAS TWO SUBCLASSES: \n\t//2.1 COMPANION ANIMALS AND 2.2 LIVESTOCK ANIMALS \n\t//2.1 COMPANION ANIMALS HAS 3 SUBCLASSES:\n\t//2.1.2 CAT , 2.1.2 DOG AND 2.1.3 RABBIT \n\t//2.2 LIVESTOCK ANIMALS HAS TWO SUBCLASSES: \n\t//2.2.1 CATTLE AND 2.2.2 SHEEP \n\t\n\t// THE ARE TREE TYPES OF CLASES WHO CONTAIN THE METHODS IN ORDER TO CREATE THE FUNTIONS \n\t// 1. READING FILES , 2. MAIN CLASS OF METHODS AND 3. PRINT AND QUESTION METHODS\n\t\n\t// 1. READING FILES: \n\t// 1.1 INFOANIMALS AND INFOSTAFF : IN HERE THE METHOD READ THE FILE AND IN SOME CASES CREATE AN ARRAY LIST WITH RANDOM ELEMENTS \n\t// 1.2 MAIN CLASS OF METHOS: IN HERE THERE ARE THE METHODS TO CREATE THE INTANCES, POPULATE THE QUEUES, ASSING TASKS AND DO THE SEARCHS \n\t// 1.3 PRINT AND QUESTION METHODS: THIS CONTAIN THE METHODS TO ASK TO THE USER QUESTIONS AND PRINT THE ANSWER USING THE METHODS INSIDE OF INFORMATION CLASS\n\t}", "public void measure(){\n \tend = System.nanoTime(); \n \tlong elapsedTime = end - start;\n\n \t//convert to seconds \n \tseconds = (double)elapsedTime / 1000000000.0f;\n \tend =0; //歸零\n \tstart =0;\n }", "@Test\n public void test19() throws Throwable {\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"O!{8XKZr&]&{\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logarithmicAxis0);\n MultiplePiePlot multiplePiePlot0 = new MultiplePiePlot();\n multiplePiePlot0.setOutlineVisible(false);\n JFreeChart jFreeChart0 = multiplePiePlot0.getPieChart();\n RectangleInsets rectangleInsets0 = jFreeChart0.getPadding();\n combinedRangeCategoryPlot0.setAxisOffset(rectangleInsets0);\n combinedRangeCategoryPlot0.setRangeAxis(1947, (ValueAxis) null, true);\n }", "OffsetDateTime usageEnd();", "private TimeSeries createEURTimeSeries(String WellID, String lang) {\n int count = 0;\n String precipitation = \"\";\n if(lang.equals(\"EN\")){\n precipitation = precipitation_en;\n }else{\n precipitation = precipitation_fr;\n }\n TimeSeries t1 = new TimeSeries(precipitation + \" (mm)\");\n //System.out.println (t1.getMaximumItemCount()); \n Hour begin = new Hour( 1, 1, 1, 2005);\n Hour end = new Hour(23, 31, 12, 2012);\n String endStr = end.toString();\n String str = begin.toString();\n \n for(Hour h1 = begin; !str.equals(endStr) ; h1 = (Hour) h1.next()){\n Second s = new Second(0, 0, h1.getHour(), h1.getDayOfMonth(), h1.getMonth(), h1.getYear());\n t1.addOrUpdate(s, new Double(Double.NaN)); \n str = h1.toString();\n }\n \n try {\n // Open the file that is the first \n // command line parameter\n FileInputStream fstream = new FileInputStream(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + WellID + \".csv\");\n // Get the object of DataInputStream\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n //Read File Line By Line\n int i = 0;\n while ((strLine = br.readLine()) != null) {\n if(i>0){ \n String [] temp = strLine.split(\",\");\n //System.out.println (i);\n String [] dateTimeAM = (temp[2]).split(\" \"); //08/20/2009 10:35:00 AM\n \n String [] dates = (dateTimeAM[0]).split(\"/\"); //6/10/2009\n int month = Integer.parseInt(dates[0]);\n int day = Integer.parseInt(dates[1]);\n int year = Integer.parseInt(dates[2]);\n //System.out.println (i);\n int hour = 0;\n int minute = 0;\n int second = 0; \n if (dateTimeAM.length > 1) {\n String [] temp3 = (dateTimeAM[1]).split(\":\"); //10:35:00\n hour = Integer.parseInt(temp3[0]);\n minute = Integer.parseInt(temp3[1]);\n second = Integer.parseInt(temp3[2]);\n //08/20/2009 10:35:00 AM\n if ((dateTimeAM[2]).equals(\"PM\")) {\n if (hour < 12) {\n hour = hour + 12;\n }\n }\n if ((dateTimeAM[2]).equals(\"AM\") && (hour == 12)) {\n hour = 0;\n }\n }\n Second s = new Second(second, minute, hour, day, month, year);\n //System.out.println(strLine);\n //System.out.println(year + \", \" + month + \", \" + day + \", \" + hour + \", \" + minute + \", \" + second);\n //Hour h = new Hour(hour, day, month, year);\n Double d = new Double(Double.NaN);\n //System.out.println(temp[2]);\n if (temp.length > 2){\n d = Double.parseDouble(temp[3]);// - depth;\n count ++;\n }\n t1.addOrUpdate(s, d);\n }\n i = i + 1;\n }\n in.close();\n \n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n \n return t1;\n }", "Record getShortTermCompEffAndExpDates(Record inputRecord);", "@Override\r\n\tpublic String getCpQueryStatusLine(int asCuu) {\r\n\t\treturn String.format(\"TAPE %03X ON TAPE %03X\", asCuu, asCuu);\r\n\t}", "public static void main(String[] args) {\n\t\tint day = 29;\r\n\t\tString month = \"febbraio\";\r\n\t\tint year = 1583;\r\n\t\tSystem.out.println(calend(day, month, year));\r\n\t}", "private int addLiveAlarms(String label, TimePeriodValues datasetAlarm, int start) {\n\n\t\t\tif (datasetAlarm == null) \n\t\t\t\treturn start;\n\n\t\t\tint end = start+datasetAlarm.getItemCount();\n\t\t\tint index = 0;\n\n\t\t\tGregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone(\"Europe/London\"));\n\n\n\t\t\tStringBuffer startBuffer =new StringBuffer();\n\t\t\tFormatter startFormatter = new Formatter(startBuffer);\n\n\t\t\tStringBuffer endBuffer =new StringBuffer();\n\t\t\tFormatter endFormatter = new Formatter(endBuffer);\n\n\n\t\t\tfor (int i=start; i<end; i++) {\n\n\t\t\t\tdata[i] = new LiveAlarm();\n\t\t\t\t\n\t\t\t\tdata[i].type= label;\n\n\n\t\t\t\tcalendar.setTimeInMillis(datasetAlarm.getTimePeriod(index).getStart().getTime());\n\t\t\t\tstartFormatter.format(\"%1$tH:%1$tM:%1$tS %1$tb %1$te,%1$tY\", calendar);\t\n\t\t\t\tdata[i].start= startBuffer.toString();\n\n\t\t\t\tcalendar.setTimeInMillis(datasetAlarm.getTimePeriod(index++).getEnd().getTime());\n\t\t\t\tendFormatter.format(\"%1$tH:%1$tM:%1$tS %1$tb %1$te,%1$tY\", calendar);\t\n\t\t\t\tdata[i].end= endBuffer.toString();\n\n\t\t\t\tstartBuffer.delete(0, startBuffer.length());\n\t\t\t\tendBuffer.delete(0, endBuffer.length());\n\t\t\t}\n\t\t\treturn end;\n\t\t}", "public static void method_3(){\n int totalhotdog = 400;\n int hotDogPerContainer = 8;\n int totalContainer =0;\n int temp = totalhotdog+hotDogPerContainer;\n\n while (temp>hotDogPerContainer){\n temp = temp - hotDogPerContainer;\n System.out.println(temp);\n totalContainer++;\n }\n System.out.println(\"\\n \\n\\n\\n\\n \"+totalContainer);\n }", "public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}", "public TimeSeriesTally() {\n\tsuper();\n\tfPrevTime = 0.0;\n }", "void mo17012c();", "String getBeginRange();", "public void visitMICR( DevCat devCat ) {}", "public void visitPointCardRW( DevCat devCat ) {}", "void mo304a(C0366h c0366h);", "public void mo1403c() {\n }", "public void past();", "@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }", "private Calendar weekendOffset(Calendar cc)\n {\n \tint dayofweek;\n \tdayofweek= cc.get(Calendar.DAY_OF_WEEK);\n \tif (dayofweek == Calendar.SATURDAY) \n\t\t\t\tcc.add(Calendar.DATE, SAT_OFFSET);\n\t\t\telse if (dayofweek == Calendar.SUNDAY) \n\t\t\t\tcc.add(Calendar.DATE, SUN_OFFSET);\n \treturn cc;\n \t\n }", "@Test\n public void test68() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"8pY%wg3-9N4;)\");\n combinedRangeCategoryPlot0.setDomainAxis(3, (CategoryAxis) subCategoryAxis0, true);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public int characteristics() {\n/* 1350 */ return this.characteristics;\n/* */ }", "short getPageStart();", "public Cite()\r\n {\r\n startTag=\"CITE\";\r\n endTag=\"/CITE\";\r\n }", "void extractBed(Variant seqChange) {\n\t\tfor (int start = seqChange.getStart(); start <= (seqChange.getEnd() - minBases); start++) {\n\t\t\t// Find best interval starting at 'start'\n\t\t\tVariant sc = extractBed(seqChange, start);\n\t\t\tif (sc == null) continue; // Nothing found\n\n\t\t\t// Show interval\n\t\t\tprintBed(sc, score(sc));\n\n\t\t\tstart = sc.getEnd() + 1; // Move after interval's end\n\t\t}\n\t}", "@Test\n public void test52() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n Color color0 = (Color)combinedRangeCategoryPlot0.getDomainGridlinePaint();\n cyclicNumberAxis0.setAxisLineVisible(false);\n Line2D.Double line2D_Double0 = new Line2D.Double(0.0, (-1489.688195002), 0.0, 0.0);\n line2D_Double0.x1 = (-1489.688195002);\n line2D_Double0.y2 = 0.0;\n line2D_Double0.x1 = 2.0;\n double double0 = line2D_Double0.getY2();\n CategoryAxis categoryAxis0 = combinedRangeCategoryPlot0.getDomainAxis(1);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation((-2.147483648E9), 0.75);\n double double1 = point2D_Double0.getX();\n combinedRangeCategoryPlot0.configureRangeAxes();\n Range range0 = combinedRangeCategoryPlot0.getDataRange(cyclicNumberAxis0);\n }", "@Test\n public void test28() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n CategoryAnchor categoryAnchor0 = combinedRangeCategoryPlot0.getDomainGridlinePosition();\n RectangleEdge rectangleEdge0 = combinedRangeCategoryPlot0.getRangeAxisEdge((-119));\n }", "String getEndRange();", "public String getTags(){\n\t\tctags = null;\n\t\tCurrentSets = getCurrentSets();\n\t\tif(blocks.length == 1)\n\t\t\tctags = Integer.toString(blocks[0].getAge());\n\t\telse{\n\t\t\tif(CurrentSets == 0){\n\t\t\t\treturn null;\n\t\t\t}else{\n\t\t\t\tfor(i = 0; i < CurrentSets; i++){\n\t\t\t\t\tctags = blocks[i].getHexTag();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ctags;\n\t}", "private static void testDump(CrossSection c) {\r\n\t\tArrayList<CrossSectionPoint> points = c.getPoints();\r\n\t\tSystem.out.println(\"Site: \" + c.getName());\r\n\t\tSystem.out.println(\"Downstream distance (m): \" + c.getId() + \"\\n\");\r\n\t\tfor (int i = 0; i < points.size(); i++) {\r\n\t\t\tCrossSectionPoint p = points.get(i);\r\n\t\t\tSystem.out.println(p.getX() + \" \" + p.getY() + \" \" + p.getInflection());\r\n\t\t}\r\n\t}", "public ResultSet getRelevantProductsByDate(String cat, String inm) throws IllegalStateException{\n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try {\n\t\t con = openDBConnection();\n\t\t String sc = cat.substring(0, 1);\n\t\t String si = inm.substring(0, 1);\n\t String queryString = \"SELECT * \" \n \t\t+ \"FROM ITEM \"\n\t\t\t + \"WHERE UPPER(CATEG)\" + \" LIKE '%' || UPPER('\"+sc+\"') || '%' and UPPER(INAME) LIKE '%' || UPPER('\"+si+\"') || '%'\"\n\t\t\t +\" ORDER BY AUC_END_DATE DESC\" + \n\t\t\t \" , CASE\"\n\t\t\t +\" \tWHEN UPPER(INAME) = UPPER('\"+inm+\"') THEN 10 \" + \n\t\t\t \" WHEN UPPER(INAME) LIKE UPPER('\"+inm+\"') || '%' THEN 9\" + \n\t\t\t \" WHEN UPPER(INAME) LIKE '%'|| UPPER('\"+inm+\"') ||'%' THEN 8\" + \n\t\t\t \" ELSE 0\" + \n\t\t\t \" END DESC \"+\n\t\t\t \" , CASE \"\n\t\t\t + \"\t WHEN UPPER(CATEG) = UPPER('ELECTRONIC') THEN 7\" + \n\t\t\t \" WHEN UPPER(CATEG) LIKE UPPER('ELECTRONIC') ||'%' THEN 6 \" + \n\t\t\t \" WHEN UPPER(CATEG) LIKE '%'|| UPPER('Iphone') ||'%' THEN 5\" + \n\t\t\t \" ELSE 0\" + \n\t\t\t \" END DESC\" + \n\t\t\t \" , CASE\" + \n\t\t\t \" WHEN SOUNDEX(INAME) = SOUNDEX('IPHONE') THEN 4\" + \n\t\t\t \" WHEN SOUNDEX(CATEG) = SOUNDEX('ELECTRONIC') THEN 3\" + \n\t\t\t \" ELSE 0\" + \n\t\t\t \" END DESC\";\n\t stmt = con.createStatement();\n\t result = stmt.executeQuery(queryString);\n\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t }\n\t return result;\n}", "public static void main(String args[])\r\n\t{\n\t\tSystem.out.println( getSAPDateAndTime(\"20210426 135157\") );\r\n\t}", "@Test\n public void test33() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n List list0 = combinedRangeCategoryPlot0.getSubplots();\n PlotOrientation plotOrientation0 = combinedRangeCategoryPlot0.getOrientation();\n SortOrder sortOrder0 = SortOrder.DESCENDING;\n DateAxis dateAxis0 = new DateAxis(\"M+*J(I1\\u0003Du\");\n dateAxis0.setPositiveArrowVisible(true);\n combinedRangeCategoryPlot0.setRangeAxis((ValueAxis) dateAxis0);\n combinedRangeCategoryPlot0.setRowRenderingOrder(sortOrder0);\n combinedRangeCategoryPlot0.setRangeCrosshairVisible(true);\n CategoryAxis categoryAxis0 = combinedRangeCategoryPlot0.getDomainAxisForDataset((-2385));\n combinedRangeCategoryPlot0.setGap((-2385));\n combinedRangeCategoryPlot0.clearRangeMarkers(3);\n XYPointerAnnotation xYPointerAnnotation0 = new XYPointerAnnotation(\"\", 0.0, 1.7976931348623157E308, (-752.113037619));\n Color color0 = (Color)xYPointerAnnotation0.getArrowPaint();\n combinedRangeCategoryPlot0.setNoDataMessagePaint(color0);\n combinedRangeCategoryPlot0.setRangeCrosshairLockedOnData(true);\n combinedRangeCategoryPlot0.setRangeCrosshairLockedOnData(false);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2465L, 2465L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2465L, 2465L);\n range1.getBegin();\n range0.equals(range1);\n long long0 = range0.getEnd();\n assertEquals(2464L, long0);\n }" ]
[ "0.5087139", "0.50498194", "0.49376902", "0.49376902", "0.48692864", "0.4846383", "0.48227918", "0.47974437", "0.47970673", "0.47805473", "0.47142902", "0.47135204", "0.47125924", "0.46995422", "0.46821272", "0.46710837", "0.46627665", "0.4657533", "0.46403107", "0.46305665", "0.46225464", "0.46097982", "0.4604671", "0.46031028", "0.4592151", "0.45864525", "0.45844656", "0.45818147", "0.45806736", "0.4567237", "0.45670816", "0.45642346", "0.45598876", "0.4540781", "0.4540589", "0.45315638", "0.4528654", "0.45268074", "0.4523199", "0.45223156", "0.45147926", "0.4510928", "0.4505051", "0.44958907", "0.4494757", "0.449185", "0.4483341", "0.44792035", "0.4469386", "0.44556236", "0.4446468", "0.4445996", "0.44457754", "0.4440724", "0.44405288", "0.4439317", "0.44388267", "0.4432308", "0.44296607", "0.44290116", "0.44232556", "0.4418705", "0.44155538", "0.44134775", "0.44103736", "0.44090906", "0.44059843", "0.44010332", "0.4400078", "0.4398639", "0.43981224", "0.43935215", "0.4386607", "0.4382647", "0.4377001", "0.43687567", "0.43686393", "0.43680197", "0.43672502", "0.43636253", "0.43619058", "0.43604308", "0.4352706", "0.43503097", "0.4346935", "0.43434137", "0.43405136", "0.4330523", "0.43284982", "0.43273807", "0.43270558", "0.43252957", "0.43248516", "0.43220472", "0.43168703", "0.43122968", "0.43108088", "0.43105504", "0.43100944", "0.43027076" ]
0.5331968
0
/ Container lifecycle callbacks from SessionBean interface
public void ejbActivate() { System.out.println("ejbActivate"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface BeanInitListener {\n void initialize();\n}", "void sessionCreated(SessionEvent se);", "@Override\r\npublic void sessionCreated(HttpSessionEvent arg0) {\n\t\r\n}", "public void contextInitialized(ServletContextEvent event) { \n super.contextInitialized(event); \n ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); \n //获取bean \n // emailListener = (EmailListener) applicationContext.getBean(\"emailListener\"); \n // birthdayListener = (BirthdayListener) applicationContext.getBean(\"birthdayListener\"); \n /* \n 具体地业务代码 \n */ \n // emailListener.contextInitialized(event);\n // birthdayListener.contextInitialized(event);\n }", "@PostConstruct\r\n public void init(){\n\r\n }", "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\tlog.info(\"------ sessionListen-----init------\");\n\t}", "void fireSessionDestroyedListeners(Session session);", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seguimientoController = context.getApplication().evaluateExpressionGet(context, \"#{seguimientoController}\", SeguimientoController.class);\n programaAnoController = context.getApplication().evaluateExpressionGet(context, \"#{programaAnoController}\", ProgramaAnoController.class);\n }", "public default void sessionCreated(HttpSessionEvent se) {\n }", "public MainSessionBean() {\r\n init();\r\n }", "public void sessionCreated(IoSession session) { }", "@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tstartupEvt.fire(new ContainerStartupEvent());\n\t}", "@Override\r\npublic void sessionWillPassivate(HttpSessionEvent arg0) {\n\t\r\n}", "void onEvent(GuiceyLifecycleEvent event);", "@PostConstruct\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\npublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\r\n}", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n oferenteController = context.getApplication().evaluateExpressionGet(context, \"#{oferenteController}\", OferenteController.class);\n expedienteprocesoController = context.getApplication().evaluateExpressionGet(context, \"#{expedienteprocesoController}\", ExpedienteprocesoController.class);\n }", "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\t\n\t}", "@Override\n public void sessionCreated(HttpSessionEvent event) {\n }", "public void onSessionDestroyed() {\n }", "@PostConstruct\n\tpublic void init() {\n\t}", "@PostConstruct\n\tpublic void init() {\n\t}", "@PreDestroy\n public void perDestroyFn (){\n LOOGER.info(\" ==== pre destroy the bean ====> {}:\");\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seqTurnoController = context.getApplication().evaluateExpressionGet(context, \"#{turnoController}\", TurnoController.class);\n seqPessoaController = context.getApplication().evaluateExpressionGet(context, \"#{pessoaController}\", PessoaController.class);\n seqEscolaController = context.getApplication().evaluateExpressionGet(context, \"#{escolaController}\", EscolaController.class);\n seqAnoController = context.getApplication().evaluateExpressionGet(context, \"#{anoController}\", AnoController.class);\n }", "@PostConstruct\n public void init() {\n }", "@Override\n public void sessionCreated(IoSession session) {\n }", "@PostConstruct\n\tpublic void init() {\n\n\t}", "@PostConstruct\n\tpublic void init() {\n\n\t}", "@Override\r\npublic void sessionDidActivate(HttpSessionEvent arg0) {\n\t\r\n}", "public interface ContextBeansListener {\n /**\n * Notification that a new instance of a bean was added to the bean holder.\n * \n * @param bean The bean for which the action took place\n * @param context The creational context that was used\n * @param instance The instance added\n */\n public void instanceAdded(Contextual<?> bean, CreationalContext<?> context, Object instance);\n /**\n * Notification that a bean was removed from the bean holder.\n * \n * @param bean The bean\n * @param context The creational context\n * @param instance The instance\n */\n public void instanceRemoved(Contextual<?> bean, CreationalContext<?> context, Object instance);\n}", "public void sessionStarted() {\n\t\t\r\n\t}", "public void onContainerReInitialize(ContainerId containerId) {}", "public void init(@Observes @Initialized(ApplicationScoped.class) Object init) {\n }", "@Override\r\npublic void requestInitialized(ServletRequestEvent arg0) {\n\t\r\n}", "@PostConstruct\r\n\tvoid init() {\n\t}", "public interface ServerListener {\n void onSessionCreated(Session session);\n\n void onSessionRemoved(Session session);\n}", "@PostConstruct\n public void postConstruct() {\n \n }", "<V> IBeanRuntime<V> registerWithLifecycle(V object);", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@Override\n\tpublic void sessionCreated(HttpSessionEvent se) {\n\t\tSystem.out.println(\"HttpSessionListener:sessionCreated\");\n\t}", "@PostConstruct\n\tpublic void inicializar() {\n\t}", "public interface ServletContextAware {\r\n\t/**\r\n\t * Set the ServletContext that this object runs in.\r\n\t * <p>Invoked after population of normal bean properties but before an init\r\n\t * callback like InitializingBean's <code>afterPropertiesSet</code> or a\r\n\t * custom init-method. Invoked after ApplicationContextAware's\r\n\t * <code>setApplicationContext</code>.\r\n\t * @param servletContext ServletContext object to be used by this object\r\n\t * @see InitializingBean#afterPropertiesSet\r\n\t * @see ApplicationContextAware#setApplicationContext\r\n\t */\r\n\tvoid setServletContext(ServletContext servletContext);\r\n\r\n}", "SessionBeanDescriptor createSessionBeanDescriptor();", "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\tlog.info(\"------ sessionListen init------\");\n\t\tlog.info(arg0.getSession().getId());\n\t}", "@Override\r\npublic void requestDestroyed(ServletRequestEvent arg0) {\n\t\r\n}", "void sessionDestroyed(SessionEvent se);", "@Override\n\tLifecycle on();", "protected void beforeSessionManagerDestroyed() {\n }", "void afterInit(Object bean, Class<?> clazz) throws Exception;", "public interface LifeCycleHandler {\n\n\tvoid beginning() throws Exception;\n\n\tvoid ending() throws Exception;\n\n}", "protected void beforeSessionFactoryDestruction() {\n\t}", "void onOpenSession(Session session);", "LifecycleState lifecycleState();", "LifecycleState lifecycleState();", "public interface SessionSynchronization {\n /**\n * The <code>afterBegin</code> method notifies a stateful session bean instance that a new\n * transaction has started, and that the subsequent business methods on the\n * instance will be invoked in the context of the transaction.\n *\n * <p> The instance can use this method, for example, to read data\n * from a database and cache the data in the instance fields.\n *\n * <p> This method executes in the proper transaction context.\n *\n * @exception EJBException Thrown by the method to indicate a failure\n * caused by a system-level error.\n *\n * @exception RemoteException This exception is defined in the method\n * signature to provide backward compatibility for enterprise beans \n * written for the EJB 1.0 specification. Enterprise beans written \n * for the EJB 1.1 and later specifications should throw the\n * javax.ejb.EJBException instead of this exception. \n * Enterprise beans written for the EJB 2.0 and later specifications \n * must not throw the java.rmi.RemoteException.\n *\n * @see AfterBegin\n */\n public void afterBegin() throws EJBException, RemoteException;\n\n /**\n * The <code>beforeCompletion</code> method notifies a stateful session bean instance that\n * a transaction is about to be committed. The instance can use this\n * method, for example, to write any cached data to a database.\n *\n * <p> This method executes in the proper transaction context.\n *\n * <p><b>Note:</b> The instance may still cause the container to\n * rollback the transaction by invoking the <code>setRollbackOnly</code> method\n * on the session context, or by throwing an exception.\n *\n * @exception EJBException Thrown by the method to indicate a failure\n * caused by a system-level error.\n *\n * @exception RemoteException This exception is defined in the method\n * signature to provide backward compatibility for enterprise beans \n * written for the EJB 1.0 specification. Enterprise beans written \n * for the EJB 1.1 and later specification should throw the\n * javax.ejb.EJBException instead of this exception.\n * Enterprise beans written for the EJB 2.0 and later specifications \n * must not throw the java.rmi.RemoteException.\n *\n * @see BeforeCompletion\n */\n public void beforeCompletion() throws EJBException, RemoteException;\n\n /**\n * The <code>afterCompletion</code> method notifies a stateful session bean instance that a\n * transaction commit protocol has completed, and tells the instance\n * whether the transaction has been committed or rolled back.\n *\n * <p> This method executes with no transaction context.\n *\n * @param committed True if the transaction has been committed, false\n * if is has been rolled back.\n *\n * @exception EJBException Thrown by the method to indicate a failure\n * caused by a system-level error.\n *\n * @exception RemoteException This exception is defined in the method\n * signature to provide backward compatibility for enterprise beans \n * written for the EJB 1.0 specification. Enterprise beans written \n * for the EJB 1.1 and later specification should throw the\n * javax.ejb.EJBException instead of this exception. \n * Enterprise beans written for the EJB 2.0 and later specifications \n * must not throw the java.rmi.RemoteException.\n *\n * @see AfterCompletion\n */\n public void afterCompletion(boolean committed) throws EJBException,\n\t RemoteException;\n}", "public abstract void lifeCycle();", "private void setSessionEvents(SessionManager sessionMan)\n\t// create session callback...\n {\n try {\n // session end\n sessionMan.getSessionEndEvent().addObserver( new IObserver<NullEventArgs>() {\n public void update(IObservable<NullEventArgs> observable, NullEventArgs args)\n { isRunning = false; }\n });\n }\n catch (StatusException e) {\n e.printStackTrace();\n }\n }", "public void sessionDestroyed(HttpSessionEvent se) {\n }", "@OnClose\n public void onClose(Session session) {\n }", "@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tServletContextListener.super.contextInitialized(sce);\n\t}", "@PreDestroy\n void destroy() {\n firedPreDestroy = true;\n }", "public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager manager) {\r\n\t\t//register ZK contexts\r\n\t\tevent.addContext(new DesktopContext());\r\n\t\tevent.addContext(new PageContext());\r\n\t\tevent.addContext(new IdSpaceContext());\r\n\t\tevent.addContext(new ComponentContext());\r\n\t\tevent.addContext(new ExecutionContext());\r\n\t\tlog.info(\"ZK Weld Extension \"+Version.UID);\r\n\t}", "@PreDestroy //code will execute before the bean is destroyed \r\n\tpublic void doMyCleanupStuff()\r\n\t{\r\n\t\tSystem.out.println(\"TennisCoach: inside doMyCleanupStuff method\");\r\n\t}", "public interface BeanProcessor {\n\n\n void process(Object bean, Class<?> clazz) throws Exception;\n\n //before all beans loaded.\n void beforeInit(Object bean, Class<?> clazz) throws Exception;\n\n //after all beans loaded.\n void afterInit(Object bean, Class<?> clazz) throws Exception;\n}", "public interface BeanPostProcessor {\n\n Object postProcessBeforeInitialization(Object bean, String beanName);\n\n Object postProcessAfterInitialization(Object bean, String beanName);\n}", "public void sessionCreated(final HttpSessionEvent event) {\n }", "public interface SessionListener {\n\n /**\n * Called when a <code>Session</code> is about to be 'closed' by\n * calling <code>{@link javax.jcr.Session#logout()}</code>. At this\n * moment the session is still valid.\n *\n * @param session the <code>Session</code> that is about to be 'closed'\n */\n void loggingOut(Session session);\n\n /**\n * Called when a <code>Session</code> has been 'closed' by\n * calling <code>{@link javax.jcr.Session#logout()}</code>.\n *\n * @param session the <code>Session</code> that has been 'closed'\n */\n void loggedOut(Session session);\n}", "public abstract void initialize(ISession session);", "public void sessionCreated(HttpSessionEvent sessionEvent) {\n\t\tHttpSession session = sessionEvent.getSession();\n\t\tDate date = new Date();\n\t\tSystem.out.println(\">>> Created Session : [\" + session.getId() + \"] at [\" + date.toString() + \"] <<<\"); \n\t\tSystem.out.println(\">>> getMaxInactiveInterval : [\" + session.getMaxInactiveInterval() + \" ] <<<\"); \n\t}", "public void registerInterceptorBinding(@Observes BeforeBeanDiscovery event)\n {\n event.addInterceptorBinding(LifecycleBinding.class);\n }", "@Override\r\n public void contextInitialized(ServletContextEvent servletContextEvent) {\r\n \r\n }", "public void onObjectRegistration(ObjectContainer container)\n {\n }", "@Override\n\tprotected void onDestroy(HttpSession session) {\n\t}", "@PreDestroy\r\n\tpublic void preDestroySession() {\r\n\t\tfor (BeanStorage storage : activeViewScopes.values()) {\r\n\t\t\tstorage.destroyBeans();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void contextInitialized(ServletContextEvent event) {\r\n\t\tinvoke(\"contextInitialized\", event);\r\n\t}", "@PostConstruct\r\n\tpublic void doMyInitStuff() {\r\n\t\tSystem.out.println(\"init method\");\r\n\t}", "public interface SessionHandler extends Component {\n\n String getWorkerName();\n\n Scheduler getScheduler();\n\n SessionIdGenerator getSessionIdGenerator();\n\n SessionCache getSessionCache();\n\n int getDefaultMaxIdleSecs();\n\n void setDefaultMaxIdleSecs(int defaultMaxIdleSecs);\n\n /**\n * Get a known existing session.\n * @param id the session id\n * @return a Session or null if none exists\n */\n DefaultSession getSession(String id);\n\n /**\n * Create an entirely new Session.\n * @param id identity of session to create\n * @return the new session object\n */\n DefaultSession createSession(String id);\n\n void releaseSession(DefaultSession session);\n\n /**\n * Create a new Session ID.\n * @param seedTerm the seed for RNG\n * @return the new session id\n */\n String createSessionId(long seedTerm);\n\n /**\n * Change the id of a Session.\n * @param oldId the current session id\n * @param newId the new session id\n * @return the Session after changing its id\n */\n String renewSessionId(String oldId, String newId);\n\n /**\n * Remove session from manager.\n * @param id the session to remove\n * @param invalidate if false, only remove from cache\n * @return if the session was removed\n */\n DefaultSession removeSession(String id, boolean invalidate);\n\n DefaultSession removeSession(String id, boolean invalidate, Session.DestroyedReason reason);\n\n /**\n * Called when a session has expired.\n * @param id the id to invalidate\n */\n void invalidate(String id);\n\n void invalidate(String id, Session.DestroyedReason reason);\n\n /**\n * Each session has a timer that is configured to go off\n * when either the session has not been accessed for a\n * configurable amount of time, or the session itself\n * has passed its expiry.\n *\n * If it has passed its expiry, then we will mark it for\n * scavenging by next run of the HouseKeeper; if it has\n * been idle longer than the configured eviction period,\n * we evict from the cache.\n *\n * If none of the above are true, then the System timer\n * is inconsistent and the caller of this method will\n * need to reset the timer.\n * @param session the default session\n * @param now the time at which to check for expiry\n */\n void sessionInactivityTimerExpired(DefaultSession session, long now);\n\n /**\n * Called periodically by the HouseKeeper to handle the list of\n * sessions that have expired since the last call to scavenge.\n */\n void scavenge();\n\n /**\n * Adds an event listener for session-related events.\n * @param listener the session listener\n * @see #removeSessionListener(SessionListener)\n */\n void addSessionListener(SessionListener listener);\n\n /**\n * Removes an event listener for session-related events.\n * @param listener the session listener to remove\n * @see #addSessionListener(SessionListener)\n */\n void removeSessionListener(SessionListener listener);\n\n /**\n * Removes all event listeners for session-related events.\n *\n * @see #removeSessionListener(SessionListener)\n */\n void clearSessionListeners();\n\n /**\n * Call binding and attribute listeners based on the new and old values of\n * the attribute.\n * @param name name of the attribute\n * @param newValue new value of the attribute\n * @param oldValue previous value of the attribute\n * @throws IllegalStateException if no session manager can be find\n */\n void fireSessionAttributeListeners(Session session, String name, Object oldValue, Object newValue);\n\n /**\n * Call the session lifecycle listeners.\n * @param session the session on which to call the lifecycle listeners\n */\n void fireSessionDestroyedListeners(Session session);\n\n /**\n * Record length of time session has been active. Called when the\n * session is about to be invalidated.\n * @param session the session whose time to record\n */\n void recordSessionTime(DefaultSession session);\n\n /**\n * @return the maximum amount of time session remained valid\n */\n long getSessionTimeMax();\n\n /**\n * @return the total amount of time all sessions remained valid\n */\n long getSessionTimeTotal();\n\n /**\n * @return the mean amount of time session remained valid\n */\n long getSessionTimeMean();\n\n /**\n * @return the standard deviation of amount of time session remained valid\n */\n double getSessionTimeStdDev();\n\n /**\n * Resets the session usage statistics.\n */\n void statsReset();\n\n}", "public default void sessionDestroyed(HttpSessionEvent se) {\n }", "@PostConstruct\n public void postConstructFn (){\n LOOGER.info(\" ==== post constructor of the bean ====> {}:\");\n }", "public void sessionDestroyed(HttpSessionEvent se) {\r\n }", "interface SessionReleasedCallback {\n\n /**\n * Called when the given session is released.\n *\n * @param session The session that has been released.\n */\n void onReleased(Session session);\n }", "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent httpSessionEvent) {\n\t}", "public void afterInit(){\n System.out.println(\"## afterInit() - After Init - called by Bean Post Processor\");\n }", "@Override\n\tpublic void sessionCreated(HttpSessionEvent httpSessionEvent) {\n\t\tSystem.out.println(\"sessionDestroyed dice: Abriendo session\");\n\t}", "@PreDestroy\n void destroy(InvocationContext ctx) throws Exception {\n SuperclassInterceptorMethodsTest.LIFECYCLE_CALLBACKS.add(\"c\");\n ctx.proceed();\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent sce) {\n\t\tshutdownEvt.fire(new ContainerShutdownEvent());\n\t}", "@Override\r\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tCptedController.getInstance();\r\n\t}", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "protected void onSessionStateChange(SessionState state, Exception exception) {\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n newProspects = ejbFacade.findAllNew();\n \n FacesContext fc = FacesContext.getCurrentInstance();\n\tgetIdParam(fc);\n \n }", "public void contextInitialized(ServletContextEvent event) {\r\n \t\r\n }", "@Override\r\npublic void valueBound(HttpSessionBindingEvent arg0) {\n\t\r\n}", "public interface BaseLifecycleObserver extends LifecycleObserver {\n @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)\n void onCrete();\n\n/* @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)\n void onResume();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)\n void onPause();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_STOP)\n void onStop();*/\n\n @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n void onDestroy();\n}", "public interface DynamicBeanService extends BeanDefinitionRegistryPostProcessor, ApplicationContextAware, ApplicationListener<ApplicationEvent> {\n void refresh();\n}", "@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}", "@PostConstruct\n public void init() {\n if (!FacesContext.getCurrentInstance().isPostback()\n && conversation.isTransient()) {\n\n conversation.begin();\n }\n }" ]
[ "0.66691077", "0.6360668", "0.62641174", "0.62082565", "0.61866385", "0.6115214", "0.6097885", "0.6088028", "0.6084961", "0.60791373", "0.6076908", "0.60579383", "0.603728", "0.60302436", "0.60252535", "0.6023796", "0.6004116", "0.5991277", "0.5947972", "0.5944562", "0.5933545", "0.5933545", "0.59326357", "0.59288496", "0.5921856", "0.5893521", "0.5885653", "0.5885653", "0.586873", "0.5851512", "0.5848765", "0.58367485", "0.5810498", "0.58055043", "0.5802316", "0.57780343", "0.5768427", "0.57584774", "0.5746572", "0.5746572", "0.5746572", "0.5746572", "0.5746572", "0.5746572", "0.57450074", "0.5744819", "0.5719509", "0.5713916", "0.5709978", "0.5695473", "0.5692439", "0.56893694", "0.56829166", "0.56777257", "0.5674795", "0.5670112", "0.56337", "0.5633246", "0.5633246", "0.5632391", "0.562593", "0.5624866", "0.56244963", "0.5616361", "0.5615045", "0.5613475", "0.56033385", "0.559895", "0.5597601", "0.55921906", "0.5586396", "0.5586192", "0.5583398", "0.55752134", "0.5568693", "0.55612934", "0.5554685", "0.55406827", "0.55389965", "0.5527756", "0.5524839", "0.5523403", "0.5513621", "0.55134004", "0.55119705", "0.55106616", "0.5508961", "0.5501836", "0.5500921", "0.5498813", "0.54926074", "0.549168", "0.54801774", "0.54662675", "0.54635584", "0.54609996", "0.54592174", "0.5456257", "0.545615", "0.5453866", "0.5440195" ]
0.0
-1
/ Container lifecycle callback from home interface (Stateless EJB must have only this)
public void ejbCreate() { System.out.println("ejbCreate"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void lifeCycle();", "@Override\n\tLifecycle on();", "public interface LifeCycleHandler {\n\n\tvoid beginning() throws Exception;\n\n\tvoid ending() throws Exception;\n\n}", "public abstract void onContainerStopped(ContainerId containerId);", "void onEvent(GuiceyLifecycleEvent event);", "EJBContainerImpl(Habitat habitat, Server server, \n EmbeddedEjbContainer ejbContainer, EmbeddedDeployer deployer) {\n this.habitat = habitat;\n this.server = server;\n this.ejbContainer = ejbContainer;\n this.deployer = deployer;\n state = RUNNING;\n }", "void onContainerStopped(ContainerId containerId);", "public interface LifecycleEventListener {\n\n /**\n * Called when host (activity/service) receives resume event (e.g. {@link Activity#onResume}\n */\n void onHostResume();\n\n /**\n * Called when host (activity/service) receives pause event (e.g. {@link Activity#onPause}\n */\n void onHostPause();\n\n /**\n * Called when host (activity/service) receives destroy event (e.g. {@link Activity#onDestroy}\n */\n void onHostDestroy();\n\n}", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "public void ejbActivate() {\n }", "public void afterBegin() throws EJBException, RemoteException;", "protected abstract void onMainContainerReady(@Nullable Bundle savedInstanceState);", "LifecycleState lifecycleState();", "LifecycleState lifecycleState();", "@Remote\npublic interface PassengerStatefulEJBRemote {\n\n Passenger getPassenger();\n void createPassengers(String ssn, String firstName, String lastName, Integer frequentFlyerMiles, byte[] picture, Date dateOfBirth, PassengerType passengerType, Date lastFlight);\n void pickPassenger(long id);\n void setAddress(Address address);\n void addCreditCard(CreditCard creditCard);\n void addTicket(double price, Status status);\n void checkOut();\n}", "public interface IComponentDestroy {\n Destroyed onComponentDestroyed();\n}", "public interface EJBLocalHome {\n\n /**\n * <p>Remove an EJB object identified by its primary key.</p>\n *\n * <p>This method can only be used by local clients of an entity bean.\n * An attempt to call this method on a session bean will result in an EJBException.</p>\n *\n * @param primaryKey - The primary key\n * @exception RemoveException - Thrown if the enterprise Bean or the container does\n * not allow the client to remove the object.\n * @exception EJBException - Thrown when the method failed due to a system-level failure.\n */\n public void remove(java.lang.Object primaryKey)\n throws RemoveException, EJBException;\n}", "public void onContainerReInitialize(ContainerId containerId) {}", "public interface EJBContainerProvider\n{\n /**\n * Called by the embeddable container bootstrap process to find a suitable embeddable container\n * implementation. An embeddable container provider may deem itself as appropriate for the\n * embeddable application if any of the following are true : The javax.ejb.embeddable.initial\n * property was included in the Map passed to createEJBContainer and the value of the property is\n * the provider's implementation class. No javax.ejb.embeddable.initial property was specified.\n * If a provider does not qualify as the provider for the embeddable application, it must return null.\n * \n * @param properties\n * @return EJBContainer instance or null\n * @throws EJBException\n */\n EJBContainer createEJBContainer(Map<?, ?> properties) throws EJBException;\n}", "public void onStartImpl() {\n }", "public void ejbLoad() {\n }", "public void ejbLoad() {\n }", "public void onContainerRestart(ContainerId containerId) {}", "public interface LocalHelloWorldHome extends EJBLocalHome {\n com.sunflower.ejb.LocalHelloWorld create() throws CreateException;\n}", "@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tstartupEvt.fire(new ContainerStartupEvent());\n\t}", "public interface BeanInitListener {\n void initialize();\n}", "public void ejbCreate() {\n\n }", "public interface EntityDestroyedListener extends EventListener {\n /**\n * Called then an entity is destroyed.\n *\n * @param entity the entity that is destroyed.\n */\n void entityDestroyed(Entity entity);\n}", "public void contextInitialized(ServletContextEvent event) { \n super.contextInitialized(event); \n ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); \n //获取bean \n // emailListener = (EmailListener) applicationContext.getBean(\"emailListener\"); \n // birthdayListener = (BirthdayListener) applicationContext.getBean(\"birthdayListener\"); \n /* \n 具体地业务代码 \n */ \n // emailListener.contextInitialized(event);\n // birthdayListener.contextInitialized(event);\n }", "public void ejbPassivate() {\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seguimientoController = context.getApplication().evaluateExpressionGet(context, \"#{seguimientoController}\", SeguimientoController.class);\n programaAnoController = context.getApplication().evaluateExpressionGet(context, \"#{programaAnoController}\", ProgramaAnoController.class);\n }", "public interface FMISComLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates a default instance of Session Bean: FMISBusiness\n\t */\n\tpublic FMISComLocal create() throws javax.ejb.CreateException;\n}", "public interface EmpSessionHome extends EJBHome {\n swforge.EmpSession create() throws RemoteException, CreateException;\n}", "@PreDestroy\n void destroy(InvocationContext ctx) throws Exception {\n SuperclassInterceptorMethodsTest.LIFECYCLE_CALLBACKS.add(\"c\");\n ctx.proceed();\n }", "public interface UserAccountHandlerRemoteHome extends EJBHome {\r\n\r\n String COMP_NAME = \"java:comp/env/ejb/UserAccountHandler\";\r\n\r\n String JNDI_NAME = \"ejb/UserAccountHandler\";\r\n\r\n UserAccountHandlerRemote create() throws CreateException, RemoteException;\r\n\r\n}", "public interface AppLifecycles {\n void attachBaseContext(Context base);\n\n void onCreate(Application application);\n\n void onTerminate(Application application);\n}", "public interface BaseLifecycleObserver extends LifecycleObserver {\n @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)\n void onCrete();\n\n/* @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)\n void onResume();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)\n void onPause();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_STOP)\n void onStop();*/\n\n @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n void onDestroy();\n}", "@Override\n\tprotected void onShutdown(ApplicationEvent event) {\n\t\t\n\t}", "public interface EJBControllerLocalHome extends EJBLocalHome {\n public EJBControllerLocal create() \n throws CreateException;\n}", "@PostConstruct\n public void init(){\n // 获取小夜灯当前状态\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n oferenteController = context.getApplication().evaluateExpressionGet(context, \"#{oferenteController}\", OferenteController.class);\n expedienteprocesoController = context.getApplication().evaluateExpressionGet(context, \"#{expedienteprocesoController}\", ExpedienteprocesoController.class);\n }", "public interface AccessSessionLocal\n extends javax.ejb.EJBLocalObject\n{\n /**\n * Business Method\n */\n public boolean authenticateUser( java.security.cert.X509Certificate[] certificates ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal[] getAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal getServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,boolean isForwarded,java.lang.String xmlDoc,java.lang.String docSig ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,java.lang.String requestDocument ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.kernel.ServiceInfo[] listAvailableServices( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stop( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.eMayor.PolicyEnforcement.C_UserProfile getUserProfile( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getSessionId( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getUserId( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public void setUserId( java.lang.String userId ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.util.Date getStartDate( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n}", "protected void onDispose() {\n\t\t/* Shutdown procedure */\n\t\tshutDown();\n\t}", "public interface ConectorLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Conector\n\t */\n\t static final String JNDI_NAME=\"ejb/co/com/telefonica/atiempo/ejb/eb/ConectorLocalHome\";\n\t \n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal create(\n\t\tjava.lang.Integer cod_conector)\n\t\tthrows javax.ejb.CreateException;\n\t/**\n\t * Finds an instance using a key for Entity Bean: Conector\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.ConectorKey primaryKey)\n\t\tthrows javax.ejb.FinderException;\n}", "public interface AInstalarTOALocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/vpistbba/actividades/df/instalacion/ejb/sb/AInstalarTOALocalHome\";\t\n\n\t/**\n\t * Creates a default instance of Session Bean: AInstalarTOA\n\t */\n\tpublic co.com.telefonica.atiempo.vpistbba.actividades.df.instalacion.ejb.sb.AInstalarTOALocal create()\n\t\tthrows javax.ejb.CreateException;\n}", "public interface ModelManagerRemoteHome extends javax.ejb.EJBHome {\n \n \n \n /**\n *\n */\n org.tgdb.model.modelmanager.ModelManagerRemote create() throws javax.ejb.CreateException, java.rmi.RemoteException;\n \n \n}", "@Override\n public void onStart() {\n Log.e(TAG, \"detect the lifecycleowner--- started\");\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent sce) {\n\t\tshutdownEvt.fire(new ContainerShutdownEvent());\n\t}", "@PostConstruct\r\n public void init(){\n\r\n }", "@Override\n public ServiceRegistration<CdiContainer> call() throws Exception {\n BeanBundle cdiBundle = container.getInstance().select(BeanBundle.class)\n .get();\n BundleContext bc = bundle.getBundleContext();\n cdiBundle.setBundleContext(bc);\n\n // fire ContainerInitialized event\n BeanManager beanManager = container.getBeanManager();\n beanManager.fireEvent(new ContainerInitialized());\n\n // register CdiContainer service\n Dictionary<String, Object> props = new Hashtable<String, Object>();\n props.put(\"bundleId\", bundle.getBundleId());\n props.put(\"symbolicName\", bundle.getSymbolicName());\n\n return bc.registerService(CdiContainer.class, container, props);\n }", "void onServerStopped();", "EJBObject getEJBObject() throws IllegalStateException;", "public interface Presenter {\n void onCreate();\n\n void onStop();\n}", "public abstract void onInit();", "public interface CommonDispatcher extends javax.ejb.EJBObject {\n\t\n\t/**\n\t * An example business method\n\t * \n\t * @throws EJBException\n\t * Thrown if method fails due to system-level error.\n\t */\n\tpublic DataHolder processRequest(DataHolder indataholder) throws java.rmi.RemoteException;\n\tpublic ProcessResult processRequest(VTObject inputDTO) throws java.rmi.RemoteException;\n\t//public DataHolder processRequest(DataHolder indataholder) throws java.rmi.RemoteException;\n}", "public interface Lifecycle {\n\n /**\n * Called when an MBean is started\n *\n * @throws Exception if something went wrong.\n */\n void start() throws Exception;\n\n /**\n * Called when an MBean is stopped\n */\n void stop();\n}", "@PreDestroy\n public void perDestroyFn (){\n LOOGER.info(\" ==== pre destroy the bean ====> {}:\");\n }", "public interface SimpleLogRemote extends javax.ejb.EJBObject, com.arexis.mugen.simplelog.SimpleLogRemoteBusiness {\n \n \n}", "public interface SuMaoConsultCallback {\n void callbackSuMaoConsult(AnnounceBean announceBean);\n}", "StatePacBuilder lifecycleState(LifecycleState lifecycleState);", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n seqTurnoController = context.getApplication().evaluateExpressionGet(context, \"#{turnoController}\", TurnoController.class);\n seqPessoaController = context.getApplication().evaluateExpressionGet(context, \"#{pessoaController}\", PessoaController.class);\n seqEscolaController = context.getApplication().evaluateExpressionGet(context, \"#{escolaController}\", EscolaController.class);\n seqAnoController = context.getApplication().evaluateExpressionGet(context, \"#{anoController}\", AnoController.class);\n }", "void addLifecycleCallback(LifecycleCallbackItem lifecycleCallbackItem);", "public interface IPresenter {\n\n /**\n * 做一些初始化操作\n */\n void onStart();\n\n /**\n * 在框架中会默认调用\n */\n void onDestroy();\n\n}", "public interface AppLifecycleListener {\n Topic<AppLifecycleListener> TOPIC = Topic.create(\"Application lifecycle notifications\", AppLifecycleListener.class);\n\n default void appFrameCreated(final String[] commandLineArgs, @NotNull Ref<Boolean> willOpenProject) {\n }\n\n default void appStarting(@Nullable Project projectFromCommandLine) {\n }\n\n /**\n * Called when a project frame is closed.\n */\n default void projectFrameClosed() {\n }\n\n /**\n * Called if the project opening was cancelled or failed because of an error.\n */\n default void projectOpenFailed() {\n }\n\n /**\n * Called when the welcome screen is displayed.\n */\n default void welcomeScreenDisplayed() {\n }\n\n /**\n * Fired before saving settings and before final 'can exit?' check. App may end up not closing if some of the\n * {@link com.intellij.openapi.application.ApplicationListener} listeners return false from their {@code canExitApplication}\n * method.\n */\n default void appClosing() {\n }\n\n\n /**\n * Fired after saving settings and after final 'can exit?' check.\n */\n default void appWillBeClosed(boolean isRestart) {\n }\n\n /**\n * @deprecated Please use {@link AppLifecycleListener} directly.\n */\n @Deprecated\n abstract class Adapter implements AppLifecycleListener {\n }\n}", "public interface BasePresenter {\n void onDestroy();\n}", "@OnLifecycleEvent(Lifecycle.Event.ON_START)\n public void onMoveToForeground() {\n Log.i(\"AppLifecycleListener\", \"Foreground\");\n\n }", "public interface ServiceDestroyReceiver {\n void onServiceDestroy();\n}", "@PostConstruct\n public void init() {\n super.setFacade(ejbFacadeFacturaIngreso);\n }", "public interface TestSessionBeanLocal\n extends javax.ejb.EJBLocalObject\n{\n\n}", "public void ejbRemove() {\n }", "public void ejbRemove() {\n }", "@Override\n\tpublic void ejbActivate() throws EJBException, RemoteException {\n\n\t}", "public interface RestfulListener {\r\n public void childChange(String businessKey);\r\n}", "@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n public void onAppDestroyed() {\n Log.i(\"AppLifecycleListener\", \"onAppDestroyed\");\n }", "public interface Lifecycle extends Startable, Stopable {\r\n\r\n}", "@PostConstruct\n public void postConstruct() {\n \n }", "public interface Pie2NriHome extends javax.ejb.EJBHome {\ncom.hps.july.arenda.billing.Pie2Nri create() throws javax.ejb.CreateException, java.rmi.RemoteException;\n}", "public interface SatlujRemoteHome\n extends EJBHome\n{\n\n public abstract SatlujRemote create()\n throws CreateException, RemoteException;\n}", "public interface AppLifecycles {\n\n void attachBaseContext(@NonNull Context base);\n\n void onCreate(@NonNull Application application);\n\n void onTerminate(@NonNull Application application);\n}", "@PreDestroy\n void destroy() {\n firedPreDestroy = true;\n }", "@Override\n\tpublic void onDestroy() {\n\t\tshutdown();\n\t\tLog.d(tag,\"service onDestroy\");\n\t\tsuper.onDestroy();\n\t}", "public interface MvpView extends LifecycleOwner {\n}", "public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }", "public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}", "@Override\n public void onContextCreated() {\n HeartbeatJob.updateBinaryServiceClusterChanges(serversService);\n registersHeartbeatJob();\n registerCallHomeJob();\n }", "public interface StatefulServiceInterface extends ServiceInterface {\n\n \n /**\n * Perform whatever passivation is possible or throw an exception.\n * A good passivation method will free up as much memory as\n * possible, most likely by storing it to disk. A call to\n * passivate should be safe even if the service is already\n * passivated.\n */\n void passivate();\n \n /**\n * Completely restore this service for active use from whatever\n * passivation it has implemented. A call to activate should be\n * safe even if the service is already activated.\n */\n void activate();\n\n /**\n * signals the end of the service lifecycle. Resources such as Sessions can\n * be released. All further calls will throw an exception.\n */\n void close();\n\n /**\n * Returns the current {@link IEventContext} for this instance. This is\n * useful for later identifying changes made by this {@link Event}.\n */\n IEventContext getCurrentEventContext();\n}", "@Override\n\tprotected void onResumed() {\n\t\t\n\t}", "public void ejbStore() {\n }", "public void ejbStore() {\n }", "@PreDestroy //code will execute before the bean is destroyed \r\n\tpublic void doMyCleanupStuff()\r\n\t{\r\n\t\tSystem.out.println(\"TennisCoach: inside doMyCleanupStuff method\");\r\n\t}", "public void onStart() {\n /* do nothing - stub */\n }", "public interface ServerListener {\n void onSessionCreated(Session session);\n\n void onSessionRemoved(Session session);\n}", "public void beginLoadingService(MVCCallback<MVCService> onServiceLoadedCallback);", "@PostConstruct\n\tpublic void doMyStartupStfff() {\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStartupStuff\");\n\t}", "interface PlatformServiceListener {\n\t\tpublic void onServiceAvailable(PlatformInit service);\n\t}" ]
[ "0.64545864", "0.6403073", "0.63612926", "0.6311018", "0.6206444", "0.6088547", "0.6027306", "0.60143155", "0.59744143", "0.59744143", "0.59744143", "0.59744143", "0.59744143", "0.59744143", "0.59706527", "0.5964959", "0.5962467", "0.5955818", "0.5955818", "0.5948596", "0.5880832", "0.5795081", "0.579317", "0.5770342", "0.571488", "0.57087624", "0.57087624", "0.57031506", "0.56819403", "0.56791806", "0.5654136", "0.56391317", "0.56252927", "0.56202394", "0.5619951", "0.56194794", "0.56124574", "0.558301", "0.5557259", "0.55509365", "0.55487686", "0.5542939", "0.55272824", "0.55240387", "0.5520138", "0.5517092", "0.5507805", "0.55069005", "0.5505616", "0.5495634", "0.5494615", "0.5493208", "0.5486682", "0.54569155", "0.544631", "0.5446106", "0.54244024", "0.5420124", "0.54128623", "0.54084873", "0.54043156", "0.54024976", "0.5397291", "0.5388108", "0.5378637", "0.53755367", "0.5373193", "0.536772", "0.53674775", "0.5366666", "0.5353336", "0.5343746", "0.53431046", "0.5339193", "0.53350526", "0.53350526", "0.5332291", "0.5295685", "0.5295181", "0.52912724", "0.5288561", "0.52830863", "0.52825177", "0.5280012", "0.52782065", "0.52754414", "0.5264729", "0.5256947", "0.52494746", "0.52483714", "0.52453583", "0.524202", "0.5239661", "0.5238114", "0.5238114", "0.5237576", "0.523601", "0.5235524", "0.5233366", "0.52279615", "0.5226533" ]
0.0
-1
TODO Autogenerated method stub
@Transactional public void delete(ComplaintVO complaintVO) { complaintDAO.delete(complaintVO); }
{ "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: Let min, max value of a specific type be a part of definition of Type may be much better.By doing that, We would be able to abstract code in this block to a method.
private Expr process(Type type, long rightValue, long min, long max, Expr expr, Expr childOfCast) throws AnalysisException { // TODO: We could do constant folding here. if (rightValue < min || rightValue > max) { return expr; } replaceLeftChildWithNumericLiteral(expr, childOfCast, new IntLiteral(rightValue, type)); return expr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}", "public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}", "public void MakeRep(int type, int min, int max)\n\t{\n\t\t_type += (type - One);\n\t\t_m = min;\n\t\t_n = max;\n\t}", "RangeOfValuesType createRangeOfValuesType();", "public MaxAndMin(){\n this.list=new ListOfData().getData();\n }", "private static Object getInputWithinRange(String message, Scanner sc, Class type, float min, float max)\n throws IllegalArgumentException {\n while (true) {\n Object input = getInput(message, sc, type);\n float in;\n if (type.equals(Integer.class)) {\n in = 1.0f * (int) input;\n }\n else {\n in = (float) input;\n }\n \n if (in >= min && in <= max) {\n return input;\n }\n else {\n System.out.println(\"Invalid input: must be >=\" + min + \" and <=\" + max);\n }\n }\n }", "void setValues(final T value, final T min, final T max)\n {\n setValue(value, valueLabel);\n setValue(min, minValueLabel);\n setValue(max, maxValueLabel);\n }", "public static RangeInfo obtain(int type, float min, float max, float current) {\n/* 3057 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public ExPar(int type, double min, double max, ExParValue value, String hint) {\r\n\t\tthis.type = type;\r\n\t\tthis.minValue = min;\r\n\t\tthis.maxValue = max;\r\n\t\tthis.value = value;\r\n\t\tthis.defaultValue = (ExParValue) (value.clone());\r\n\t\tthis.hint = hint;\r\n\t}", "protected void calcMinMax() {\n }", "@Override\n\tprotected DateRangeStore decideType() {\n\t\tif (!anyOpen && onlyQuarters) {\n\t\t\tfinal IntegerParser quarterParser = new IntegerParser(getConfig());\n\t\t\tquarterParser.setLines(getLines());\n\t\t\tquarterParser.setMaxValue(maxValue);\n\t\t\tquarterParser.setMinValue(minValue);\n\n\t\t\treturn new DateRangeTypeQuarter(quarterParser.findBestType());\n\t\t}\n\n\n\t\t// They need to be aligned if they are non-empty.\n\n\t\tif(!minParser.isEmpty()) {\n\t\t\tminParser.setLines(getLines());\n\t\t}\n\n\t\tif(!maxParser.isEmpty()){\n\t\t\tmaxParser.setLines(getLines());\n\t\t}\n\n\t\treturn new DateRangeTypeDateRange(minParser.findBestType(), maxParser.findBestType());\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tInteger i =Integer.MAX_VALUE;\n\t\tBoolean b = true;\n\t\t\n\t\t\n\t\t\n\t\t//Find the min and max value of byte data type \n\t\t\n\t\tByte byteMin =Byte.MIN_VALUE;\n\t\tSystem.out.println(byteMin);//-128\n\t\t\n\t\tByte byteMax = Byte.MAX_VALUE;\n\t\tSystem.out.println(byteMax);\n\t\t\n\t\tShort shortMin = Short.MIN_VALUE;\n\t\tSystem.out.println(shortMin);\n\t\t\n\t\tShort shortMax = Short.MAX_VALUE;\n\t\tSystem.out.println(shortMax);\n\t\t\n\t\t//homework:\n\t\t//Find all min and max values of primitive data types\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\tint myValue = 10000;\n// int Mininum and vaximun value\n\tint myMinIntValue = Integer.MIN_VALUE;\n\tint myMaxIntValue = Integer.MAX_VALUE;\n\tSystem.out.println(\"Interger Minimum Value = \" + myMinIntValue);\n\tSystem.out.println(\"Interger Maximum Value = \" + myMaxIntValue);\n\t\tSystem.out.println(\"Busted MAX value = \" + (myMaxIntValue + 1));\n\t\tSystem.out.println(\"Busted Min value \" + (myMinIntValue - 1));\n//max int\n\t\tint myMaxIntTest = 2_147_483_647;\n//max and min byte value\n\t\tbyte myMinByteValue = Byte.MIN_VALUE;\n\t\tbyte myMaxByteValue = Byte.MAX_VALUE;\n\t\tSystem.out.println(\"Byte Minimum value =\" + myMinByteValue);\n\t\tSystem.out.println(\"Byte maximum value =\" + myMaxByteValue);\n\t\t//max and min short value\n\t\tshort myMinShortValue = Short.MIN_VALUE;\n\t\tshort myMaxShortValue = Short.MAX_VALUE;\n\t\tSystem.out.println(\"Short Minimum value =\" + myMinShortValue);\n\t\tSystem.out.println(\"Short maximum value =\" + myMaxShortValue);\n\t\t//max and min long value. long is double of int so while initializing value, put 'L'\n\t\tlong myLongValue = 100L;\n\t\tlong myMinlongValue = Long.MIN_VALUE;\n\t\tlong myMaxlongValue = Long.MAX_VALUE;\n\t\tSystem.out.println(\"long Minimum value =\" + myMinlongValue);\n\t\tSystem.out.println(\"long maximum value =\" + myMaxlongValue);\n\t\t//long literal value--just as we did of int.\n\t\tlong bigLongLiteralValue = 2_147_483_647_234L;\n\t\tSystem.out.println(bigLongLiteralValue);\n\t\t//short literal value\n\t\tshort bigShortLiteralValue = 32767;\n\t\t//total of datatype int\n\t\tint myTotal = (myMinIntValue /2);\n\t\t/* since it is not a literal value, we need to cast it. (byte) is casting, by this java\n\t\tidentifies it */\n\t\tbyte myByte = (byte) (myMinByteValue / 2);\n\n\t\tshort myShort = (short) (myMinShortValue /2);\n\t\t//chalenge\n\t\tbyte MyChallenge = 10;\n\t\tshort MyShort = 20;\n\t\tint MyInte = 50;\n\t\tlong Mylong = 50000L + 10l * (MyChallenge + MyShort + MyInte);\n\t\tSystem.out.println(Mylong);\n\n\n\n\t}", "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "public abstract Type createRangeType(ReferenceType bottom);", "Limits limits();", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected Type adjustType(Type currentType, Type addedType, Range addedRange) {\n\t\treturn type;\n\t}", "private boolean validateType(int type)\n {\n return type >=0 && type < TYPE_ENUM.length;\n }", "public static String addDatatypeForParameters( GenerateCVC1 cvc, QueryBlockDetails queryBlock ){\n\t\tString retVal = \"\";\n\t\tIterator<ArrayList<String>> itr = queryBlock.getParamsNodeMap().keySet().iterator();\n\t\tint val = 0;\n\t\tboolean isMaxOrMin = false;\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList<String> params = (ArrayList<String>)itr.next();\n\t\t\tNode n = queryBlock.getParamsNodeMap().get(params);\n\t\t\t//String datatype = getDatatypeFromNode(n);\n\t\t\t//modified by bikash to ensure that datatype is the same as column name to ensure that range constraints get satisfied\n\t\t\t//FIXME: What if left side is aggregation\n\t\t\tString datatype;\n\n\t\t\tif(n.getLeft().getType().equalsIgnoreCase(Node.getAggrNodeType()))//If the left side of node is aggregate function\n\t\t\t\tdatatype = n.getLeft().getAgg().getAggExp().getColumn().getColumnName();\n\t\t\telse if (n.getRight().getType().equalsIgnoreCase(Node.getAggrNodeType()))//If the right side of node is aggregate function\n\t\t\t\tdatatype = n.getRight().getAgg().getAggExp().getColumn().getColumnName();\n\n\t\t\telse if(n.getLeft().getColumn()!=null)//if left side is not aggregate\n\t\t\t\tdatatype = n.getLeft().getColumn().getColumnName();\n\t\t\telse\n\t\t\t\tdatatype = n.getRight().getColumn().getColumnName();\n\t\t\t//System.out.println(\"datatype: \"+datatype);*/\n\t\t\t//String datatype = getDatatypeFromNode(n);\n\t\t\tif(n.getType().equalsIgnoreCase(Node.getBroNodeType())){\n\t\t\t\tif(n.getLeft().getType().equalsIgnoreCase(Node.getAggrNodeType()) ||\n\t\t\t\t\t\tn.getRight().getType().equalsIgnoreCase(Node.getAggrNodeType())){\n\t\t\t\t\tif(n.getAggFuncFromNode().getFunc().equalsIgnoreCase(\"MAX\")){\n\t\t\t\t\t\tisMaxOrMin = true;\n\t\t\t\t\t\tVector<Column> cols = n.getAggFuncFromNode().getAggExp().getColumnsFromNode();\n\t\t\t\t\t\tval = 0;\n\t\t\t\t\t\tfor(int i=0;i<cols.size();i++){\n\t\t\t\t\t\t\tif(val < cols.get(i).getMaxVal())\tval = (int)cols.get(i).getMaxVal();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(n.getAggFuncFromNode().getFunc().equalsIgnoreCase(\"MIN\")){\n\t\t\t\t\t\tisMaxOrMin = true;\n\t\t\t\t\t\tVector<Column> cols = n.getAggFuncFromNode().getAggExp().getColumnsFromNode();\n\t\t\t\t\t\tval = 1000000;\n\t\t\t\t\t\tfor(int i=0;i<cols.size();i++){\n\t\t\t\t\t\t\tif(val > cols.get(i).getMinVal())\tval = (int)cols.get(i).getMinVal();\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//Add the data type for all the params to CVC\n\t\t\tfor(int i=0;i<params.size();i++){\n\t\t\t\tretVal += params.get(i) + \" : \" + datatype +\";\\n\";\n\t\t\t\tif(isMaxOrMin)\n\t\t\t\t\tretVal += \"ASSERT \"+params.get(i)+\" = \"+val+\";\\n\";\n\t\t\t}\n\t\t\tisMaxOrMin = false;\n\t\t}\n\n\t\treturn retVal;\n\t}", "public interface MediaRangeSubType {}", "public LongRange(Number number1, Number number2) {\n/* 132 */ if (number1 == null || number2 == null) {\n/* 133 */ throw new IllegalArgumentException(\"The numbers must not be null\");\n/* */ }\n/* 135 */ long number1val = number1.longValue();\n/* 136 */ long number2val = number2.longValue();\n/* 137 */ if (number2val < number1val) {\n/* 138 */ this.min = number2val;\n/* 139 */ this.max = number1val;\n/* 140 */ if (number2 instanceof Long) {\n/* 141 */ this.minObject = (Long)number2;\n/* */ }\n/* 143 */ if (number1 instanceof Long) {\n/* 144 */ this.maxObject = (Long)number1;\n/* */ }\n/* */ } else {\n/* 147 */ this.min = number1val;\n/* 148 */ this.max = number2val;\n/* 149 */ if (number1 instanceof Long) {\n/* 150 */ this.minObject = (Long)number1;\n/* */ }\n/* 152 */ if (number2 instanceof Long) {\n/* 153 */ this.maxObject = (Long)number2;\n/* */ }\n/* */ } \n/* */ }", "public AllowedValues(final RangeType range){\n \n valueOrRange = new ArrayList<>();\n valueOrRange.add(range);\n }", "public LongRange(Number number) {\n/* 87 */ if (number == null) {\n/* 88 */ throw new IllegalArgumentException(\"The number must not be null\");\n/* */ }\n/* 90 */ this.min = number.longValue();\n/* 91 */ this.max = number.longValue();\n/* 92 */ if (number instanceof Long) {\n/* 93 */ this.minObject = (Long)number;\n/* 94 */ this.maxObject = (Long)number;\n/* */ } \n/* */ }", "public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }", "public static interface DataTypeWithRatioScale<T> {\r\n \r\n /**\r\n * Add\r\n *\r\n * @param augend\r\n * @param addend\r\n * @return\r\n */\r\n public abstract T add(T augend, T addend);\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param s1\r\n * @param s2\r\n * @return\r\n * @throws NumberFormatException\r\n * @throws ParseException\r\n */\r\n public abstract int compare(String s1, String s2) throws NumberFormatException,\r\n ParseException;\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param t1\r\n * @param t2\r\n * @return\r\n */\r\n public abstract int compare(T t1, T t2);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract String divide(String dividend, String divisor);\r\n \r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract T divide(T dividend, T divisor);\r\n \r\n /**\r\n * Format\r\n *\r\n * @param t\r\n * @return\r\n */\r\n public abstract String format(T t);\r\n\r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T fromDouble(Double d);\r\n\r\n /**\r\n * Description\r\n *\r\n * @return\r\n */\r\n public abstract DataTypeDescription<T> getDescription();\r\n\r\n /**\r\n * Maximum\r\n *\r\n * @return\r\n */\r\n public T getMaximum();\r\n \r\n /**\r\n * Minimum\r\n *\r\n * @return\r\n */\r\n public T getMinimum();\r\n\r\n /**\r\n * Valid\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract boolean isValid(String s);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract String multiply(String multiplicand,\r\n String multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, double multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, int multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, T multiplicator);\r\n \r\n /**\r\n * Parse\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T parse(String s);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract double ratio(T dividend, T divisor);\r\n \r\n /**\r\n * Subtract\r\n *\r\n * @param minuend\r\n * @param subtrahend\r\n * @return\r\n */\r\n public abstract T subtract(T minuend, T subtrahend);\r\n \r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract Double toDouble(T t);\r\n }", "int getValueMaxRessource(TypeRessource type);", "public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }", "public interface SimpleRestriction extends SchemaComponent {\n public static final String ENUMERATION_PROPERTY = \"enumerations\";\n public static final String PATTERN_PROPERTY = \"patterns\";\n public static final String MIN_EXCLUSIVE_PROPERTY = \"minExclusives\";\n public static final String MIN_LENGTH_PROPERTY = \"minLengths\";\n public static final String MAX_LENGTH_PROPERTY = \"maxLengths\";\n public static final String FRACTION_DIGITS_PROPERTY = \"fractionDigits\";\n public static final String WHITESPACE_PROPERTY = \"whitespaces\";\n public static final String MAX_INCLUSIVE_PROPERTY = \"maxInclusives\";\n public static final String TOTAL_DIGITS_PROPERTY = \"totalDigits\";\n public static final String LENGTH_PROPERTY = \"lengths\";\n public static final String MIN_INCLUSIVE_PROPERTY = \"minInclusives\";\n public static final String MAX_EXCLUSIVE_PROPERTY = \"maxExclusives\";\n public static final String BASE_PROPERTY = \"base\";\n public static final String INLINETYPE_PROPERTY = \"inlinetype\";\n \n Collection<TotalDigits> getTotalDigits();\n void addTotalDigit(TotalDigits td);\n void removeTotalDigit(TotalDigits td);\n \n Collection<MinExclusive> getMinExclusives();\n void addMinExclusive(MinExclusive me);\n void removeMinExclusive(MinExclusive me);\n \n Collection<MinInclusive> getMinInclusives();\n void addMinInclusive(MinInclusive me);\n void removeMinInclusive(MinInclusive me);\n \n Collection<MinLength> getMinLengths();\n void addMinLength(MinLength ml);\n void removeMinLength(MinLength ml);\n \n Collection<MaxLength> getMaxLengths();\n void addMaxLength(MaxLength ml);\n void removeMaxLength(MaxLength ml);\n \n Collection<Pattern> getPatterns();\n void addPattern(Pattern p);\n void removePattern(Pattern p);\n \n Collection<MaxExclusive> getMaxExclusives();\n void addMaxExclusive(MaxExclusive me);\n void removeMaxExclusive(MaxExclusive me);\n \n Collection<MaxInclusive> getMaxInclusives();\n void addMaxInclusive(MaxInclusive me);\n void removeMaxInclusive(MaxInclusive me);\n \n Collection<Length> getLengths();\n void addLength(Length me);\n void removeLength(Length me);\n \n Collection<Whitespace> getWhitespaces();\n void addWhitespace(Whitespace me);\n void removeWhitespace(Whitespace me);\n \n Collection<FractionDigits> getFractionDigits();\n void addFractionDigits(FractionDigits fd);\n void removeFractionDigits(FractionDigits fd);\n \n Collection<Enumeration> getEnumerations();\n void addEnumeration(Enumeration fd);\n void removeEnumeration(Enumeration fd);\n \n LocalSimpleType getInlineType();\n void setInlineType(LocalSimpleType aSimpleType);\n \n}", "public void updateMinMax( ) {\r\n if( (data == null) || (data.size() < 1) ) {\r\n min = 0.0;\r\n max = 0.0;\r\n return;\r\n }\r\n\r\n min = data.get( 0 );\r\n max = data.get( 0 );\r\n\r\n for( int i = 1; i < data.size(); i++ ) {\r\n if( min > data.get( i ) )\r\n min = data.get( i );\r\n if( max < data.get( i ) )\r\n max = data.get( i );\r\n }\r\n\r\n }", "public RangeParameter(ComponentType componentType, String type, String id, float defaultValue) {\r\n super(componentType, type, id);\r\n this.defaultValue = defaultValue;\r\n }", "private void populateMinMaxTime()\n {\n final ColumnHolder columnHolder = index.getColumnHolder(ColumnHolder.TIME_COLUMN_NAME);\n try (final NumericColumn column = (NumericColumn) columnHolder.getColumn()) {\n this.minTime = DateTimes.utc(column.getLongSingleValueRow(0));\n this.maxTime = DateTimes.utc(column.getLongSingleValueRow(column.length() - 1));\n }\n }", "public ADocument(Number min, Number max) {\n this.min = min;\n this.max = max;\n\n if (min.getClass().equals(Byte.class)) {\n currentVal = new Byte((byte) 0);\n } else {\n if (min.getClass().equals(Short.class)) {\n currentVal = new Short((short) 0);\n } else {\n if (min.getClass().equals(Integer.class)) {\n currentVal = new Integer(0);\n } else {\n if (min.getClass().equals(Long.class)) {\n currentVal = new Long(0L);\n } else {\n if (min.getClass().equals(Float.class)) {\n currentVal = new Float(0f);\n } else {\n currentVal = new Double(0d);\n }\n }\n }\n }\n }\n }", "void calculateRange() {\n //TODO: See Rules\n }", "private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}", "Range controlLimits();", "private void generalise(Instance inst) throws Exception {\n\n if(m_ClassValue != inst.classValue())\n\tthrow new Exception(\"Exemplar.generalise : Incompatible instance's class.\");\n\n add(inst);\n\n /* extends each range in order to cover inst */\n for(int i = 0; i < numAttributes(); i++){\n\t \n\tif(inst.isMissing(i))\n\t throw new Exception(\"Exemplar.generalise : Generalisation with missing feature impossible.\");\n\n\tif(i == classIndex())\n\t continue;\n\t \n\tif(attribute(i).isNumeric()){\n\t if(m_MaxBorder[i] < inst.value(i)) \n\t m_MaxBorder[i] = inst.value(i);\n\t if(inst.value(i) < m_MinBorder[i]) \n\t m_MinBorder[i] = inst.value(i); \n\t\t\n\t} else {\n\t m_Range[i][(int) inst.value(i)] = true;\n\t}\n }\n }", "@Override\r\n public void setMinMax(Double min, Double max) {\r\n this.minIn = min;\r\n this.maxIn = max;\r\n }", "private static double calcTypeMod(String powerType, String defenderType1, String defenderType2) {\r\n\r\n\t\tdouble firstMult = 0, secondMult = 0;\r\n\r\n\t\tif (defenderType1.equals(\"Normal\")) {\r\n\t\t\tfirstMult = type.normal(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Water\")) {\r\n\t\t\tfirstMult = type.water(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Grass\")) {\r\n\t\t\tfirstMult = type.grass(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Fire\")) {\r\n\t\t\tfirstMult = type.fire(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Dark\")) {\r\n\t\t\tfirstMult = type.dark(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Dragon\")) {\r\n\t\t\tfirstMult = type.dragon(powerType);\r\n\r\n\t\t} \r\n\t\t\r\n\t\telse if (defenderType1.equals(\"Ghost\")) {\r\n\t\t\tfirstMult = type.ghost(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Psychic\")) {\r\n\t\t\tfirstMult = type.psychic(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Rock\")) {\r\n\t\t\tfirstMult = type.rock(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Steel\")) {\r\n\t\t\tfirstMult = type.steel(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Electric\")) {\r\n\t\t\tfirstMult = type.electric(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Ground\")) {\r\n\t\t\tfirstMult = type.ground(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Flying\")) {\r\n\t\t\tfirstMult = type.flying(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Bug\")) {\r\n\t\t\tfirstMult = type.bug(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Fighting\")) {\r\n\t\t\tfirstMult = type.fighting(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Ice\")) {\r\n\t\t\tfirstMult = type.ice(powerType);\r\n\r\n\t\t}\r\n\r\n\t\telse if (defenderType1.equals(\"Poison\")) {\r\n\t\t\tfirstMult = type.poison(powerType);\r\n\r\n\t\t}\r\n\t\t\r\n\t\telse if (defenderType1.equals(\"Fairy\")) {\r\n\t\t\tfirstMult = type.fairy(powerType);\r\n\r\n\t\t}\r\n\r\n\t\tif (!defenderType2.equals(\"null\")) {\r\n\t\t\tif (defenderType2.equals(\"Normal\")) {\r\n\t\t\t\tsecondMult = type.normal(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Water\")) {\r\n\t\t\t\tsecondMult = type.water(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Grass\")) {\r\n\t\t\t\tsecondMult = type.grass(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Fire\")) {\r\n\t\t\t\tsecondMult = type.fire(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Dark\")) {\r\n\t\t\t\tsecondMult = type.dark(powerType);\r\n\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Dragon\")) {\r\n\t\t\t\tsecondMult = type.dragon(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Ghost\")) {\r\n\t\t\t\tsecondMult = type.ghost(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Psychic\")) {\r\n\t\t\t\tsecondMult = type.psychic(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Rock\")) {\r\n\t\t\t\tsecondMult = type.rock(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Steel\")) {\r\n\t\t\t\tsecondMult = type.steel(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Electric\")) {\r\n\t\t\t\tsecondMult = type.electric(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Ground\")) {\r\n\t\t\t\tsecondMult = type.ground(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Flying\")) {\r\n\t\t\t\tsecondMult = type.flying(powerType);\r\n\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Bug\")) {\r\n\t\t\t\tsecondMult = type.bug(powerType);\r\n\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Fighting\")) {\r\n\t\t\t\tsecondMult = type.fighting(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Ice\")) {\r\n\t\t\t\tsecondMult = type.ice(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (defenderType2.equals(\"Poison\")) {\r\n\t\t\t\tsecondMult = type.poison(powerType);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (defenderType2.equals(\"Fairy\")) {\r\n\t\t\t\tsecondMult = type.fairy(powerType);\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn firstMult * secondMult;\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn firstMult;\r\n\t}", "public ExPar(int type, int min, int max, ExParValue value, String hint) {\r\n\t\tthis(type, (double) min, (double) max, value, hint);\r\n\t}", "public abstract T getMaxValue();", "public static void main(String[] args) {\n int minIntValue = Integer.MIN_VALUE;\n int maxIntValue = Integer.MAX_VALUE;\n System.out.println(\"Int min val: \" + minIntValue);\n System.out.println(\"Int max val: \" + maxIntValue);\n System.out.println(\"Busted MAX value = \" + maxIntValue + 1);\n // if you try and put a value larger than the max value in java, or a value smaller than\n // minimum value in java, then you will get and overflow in the case of the max value\n // or an underflow in the case of the minimum\n\n // in this case, we are using the MIN_VALUE and MAX_VALUE to get Java to tell us the\n // minimum and maximum ranges of numbers that can be stored.\n\n\n }", "public void setRange(int min, int max) {\n range = new PriceRange();\n range.setMaximum(max);\n range.setMinimum(min);\n }", "public void setValidType(int value) {\r\n this.validType = value;\r\n }", "private ExplorationTypes(int type_val) \n { \n this.type_val = type_val; \n }", "@Test\r\n public void minMax() throws Exception {\r\n assertEquals(1, (int) sInt.first());\r\n assertEquals(5, (int) sInt.last());\r\n assertEquals(\"kek\", sStr.first());\r\n assertEquals(\"lol\", sStr.last());\r\n }", "void addPowertypeRange(Generalization powertypeRange);", "public DynamicPart minMax(float min, float max) {\n return this.min(min).max(max);\n }", "public static MediaRange custom(String mainType, Map<String, String> parameters) {\n return akka.http.scaladsl.model.MediaRange.custom(mainType, Util.convertMapToScala(parameters), 1.0f);\n }", "protected void calcMinMax(T t) {\n if (this.mYMax < t.getYMax()) {\n this.mYMax = t.getYMax();\n }\n if (this.mYMin > t.getYMin()) {\n this.mYMin = t.getYMin();\n }\n if (this.mXMax < t.getXMax()) {\n this.mXMax = t.getXMax();\n }\n if (this.mXMin > t.getXMin()) {\n this.mXMin = t.getXMin();\n }\n if (t.getAxisDependency() == YAxis.AxisDependency.LEFT) {\n if (this.mLeftAxisMax < t.getYMax()) {\n this.mLeftAxisMax = t.getYMax();\n }\n if (!(this.mLeftAxisMin > t.getYMin())) return;\n {\n this.mLeftAxisMin = t.getYMin();\n return;\n }\n } else {\n if (this.mRightAxisMax < t.getYMax()) {\n this.mRightAxisMax = t.getYMax();\n }\n if (!(this.mRightAxisMin > t.getYMin())) return;\n {\n this.mRightAxisMin = t.getYMin();\n return;\n }\n }\n }", "protected int getBoundedValue(int aNumber) {\r\n if (aNumber < getMin()) {\r\n aNumber = getMin();\r\n } else if (aNumber > getMax()) {\r\n aNumber = getMax();\r\n }\r\n return aNumber;\r\n }", "public static void checkMinMax() {\r\n\t\tSystem.out.println(\"Beginning min/max test (should be -6 and 17)\");\r\n\t\tSortedIntList list = new SortedIntList();\r\n\t\tlist.add(5);\r\n\t\tlist.add(-6);\r\n\t\tlist.add(17);\r\n\t\tlist.add(2);\r\n\t\tSystem.out.println(\" min = \" + list.min());\r\n\t\tSystem.out.println(\" max = \" + list.max());\r\n\t\tSystem.out.println();\r\n\t}", "public T caseRangeType(RangeType object) {\n\t\treturn null;\n\t}", "public MutableBlock createMutableBlock(TimeParameter timeType, int start, int end) {\r\n String type = timeType.getTextField();\r\n ExpressionBuilder exp = new ExpressionBuilder();\r\n exp.value(type).greaterEquals().value(start).and().value(type).lessEquals().value(end);\r\n return createMutableBlock(exp);\r\n }", "public Type() {\n\t\tsetSize();\n\t}", "private void findMinandMaxValues(SparklineValues values) {\n minY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).min().orElse(0.0);\n maxY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).max().orElse(0.0);\n\n if (Math.abs(minY) > 1E30 || Math.abs(maxY) > 1E30) {\n // something is probably wrong\n System.out.println(\"Unexpectedly small/large min or max: \");\n values.getValues().forEach(value -> {\n System.out.print(value.getValue() + \" \");\n });\n System.out.println();\n minY = -1.0;\n maxY = 1.0;\n }\n\n if (minY.equals(maxY)) {\n if (minY.equals(0.0)) {\n minY = -1.0;\n maxY = 1.0;\n } else {\n minY = minY - 0.1 * Math.abs(minY);\n maxY = maxY + 0.1 * Math.abs(maxY);\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 SettingInteger setValidRange(int min, int max) { _minValue = min; _maxValue = max; return this; }", "public void setRange(double min, double max) {\n super.setRange(min, max);\n }", "public RangeParameter(ComponentType componentType, String type, String id) {\r\n super(componentType, type, id);\r\n this.defaultValue = 0.0f;\r\n }", "private int saisiePersoInt(String typeChoice, int min, int max) { \n\t\tint persoInt; \n\t\ttry {\n\t\t\tSystem.out.println(\"choisissez \"+ typeChoice+\" entre \"+min+\" et \"+max); \n\t\t\tpersoInt=sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tif(persoInt<min || persoInt>max) {\n\t\t\t\tsaisiePersoInt(typeChoice, min, max);\n\t\t\t}; \n\t\t\treturn persoInt; \n\t\t} catch (InputMismatchException e) { \n\t\t\tSystem.out.println(\"vous n'avez pas rentré un monbre entier\"); \n\t\t\tsc.nextLine();\n\t\t\treturn saisiePersoInt(typeChoice, min, max); \n\t\t} catch (NoSuchElementException e) {\n\t\t\tSystem.out.println(\"vous n'avez rien rentré\"); \n\t\t\tsc.nextLine();\n\t\t\treturn saisiePersoInt(typeChoice, min, max);\n\t\t}\n\t}", "public void allMinMax() {\n\t\tthis.theMaxX();\n\t\tthis.theMinX();\n\t\tthis.theMaxY();\n\t\tthis.theMinY();\n\t}", "private void initMinMax(final Configuration currentConfiguration,\n\t\t\tfinal Map<DateTime, Position> minX,\n\t\t\tfinal Map<DateTime, Position> maxX,\n\t\t\tfinal Map<DateTime, Velocity> minV,\n\t\t\tfinal Map<DateTime, Velocity> maxV,\n\t\t\tfinal Map<DateTime, Amount<Power>> minCharges) {\n\n\t\t// set minX, maxX, minV, maxV\n\t\tfor (PossibleRun possibleRun : currentConfiguration\n\t\t\t\t.getPossibleRunsConfiguration().getPossibleRuns()) {\n\t\t\tAmount<Power> minXThisDim = Amount.valueOf(Double.NaN, Power.UNIT);\n\t\t\tAmount<Power> maxXThisDim = Amount.valueOf(Double.NaN, Power.UNIT);\n\n\t\t\tswitch (possibleRun.getLoadFlexibilityOfRun()) {\n\t\t\tcase FIXED:\n\t\t\t\tfor (Slot slot : possibleRun.getNeededSlots()) {\n\t\t\t\t\tif (slot.getLoad().isLessThan(minXThisDim)) {\n\t\t\t\t\t\tminXThisDim = slot.getLoad();\n\t\t\t\t\t}\n\t\t\t\t\tif (slot.getLoad().isGreaterThan(maxXThisDim)) {\n\t\t\t\t\t\tmaxXThisDim = slot.getLoad();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase LIMITED_CHOICE:\n\t\t\t\tif (possibleRun.getPossibleLoads().isEmpty()) {\n\t\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\t\"Possible Loads must contain at least one element!\");\n\t\t\t\t}\n\t\t\t\tminXThisDim = Amount.valueOf(0, Power.UNIT);\n\t\t\t\tmaxXThisDim = Amount.valueOf(possibleRun.getPossibleLoads()\n\t\t\t\t\t\t.size() - 1, Power.UNIT);\n//\t\t\t\tLOG.trace(\n//\t\t\t\t\t\t\"There are {} possibilities for run with start date {}\",\n//\t\t\t\t\t\tpossibleRun.getPossibleLoads().size(),\n//\t\t\t\t\t\tpossibleRun.getEarliestStartTime());\n\t\t\t\tbreak;\n\t\t\tcase RANGE:\n\t\t\t\tminXThisDim = possibleRun.getRangeOfPossibleLoads()\n\t\t\t\t\t\t.lowerEndpoint();\n\t\t\t\tmaxXThisDim = possibleRun.getRangeOfPossibleLoads()\n\t\t\t\t\t\t.upperEndpoint();\n\t\t\t\tLOG.trace(\n\t\t\t\t\t\t\"Run with start date {} has dimension limits {} to {}\",\n\t\t\t\t\t\tpossibleRun.getEarliestStartTime(), minXThisDim,\n\t\t\t\t\t\tmaxXThisDim);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tminX.put(possibleRun.getEarliestStartTime(), new Position(\n\t\t\t\t\tpossibleRun, minXThisDim));\n\t\t\tmaxX.put(possibleRun.getEarliestStartTime(), new Position(\n\t\t\t\t\tpossibleRun, maxXThisDim));\n\n\t\t\tminV.put(possibleRun.getEarliestStartTime(), new Velocity(\n\t\t\t\t\tpossibleRun, minXThisDim.minus(maxXThisDim)));\n\t\t\tmaxV.put(possibleRun.getEarliestStartTime(), new Velocity(\n\t\t\t\t\tpossibleRun, maxXThisDim.minus(minXThisDim)));\n\t\t}\n\n\t\t// incorporate no charging times!\n\t\tRunConstraint constraint = currentConfiguration\n\t\t\t\t.getPossibleRunsConfiguration().getRunConstraint();\n\t\tfor (DateTime noCharge : constraint.getLossOfEnergyAtPointsInTime()\n\t\t\t\t.keySet()) {\n\t\t\tif (minX.containsKey(noCharge)) {\n\t\t\t\tPossibleRun run = minX.get(noCharge).getPossibleRun();\n\n\t\t\t\tif (LoadFlexiblity.LIMITED_CHOICE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tminX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tgetZeroChargeForLimitedChoice(run));\n\t\t\t\t} else if (LoadFlexiblity.RANGE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tminX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tAmount.valueOf(0, Power.UNIT));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (maxX.containsKey(noCharge)) {\n\t\t\t\tPossibleRun run = maxX.get(noCharge).getPossibleRun();\n\n\t\t\t\tif (LoadFlexiblity.LIMITED_CHOICE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tmaxX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tgetZeroChargeForLimitedChoice(run));\n\t\t\t\t} else if (LoadFlexiblity.RANGE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tmaxX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tAmount.valueOf(0, Power.UNIT));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (minV.containsKey(noCharge)) {\n\t\t\t\tminV.get(noCharge)\n\t\t\t\t\t\t.setChosenValue(Amount.valueOf(0, Power.UNIT));\n\t\t\t}\n\t\t\tif (maxV.containsKey(noCharge)) {\n\t\t\t\tmaxV.get(noCharge)\n\t\t\t\t\t\t.setChosenValue(Amount.valueOf(0, Power.UNIT));\n\t\t\t}\n\t\t}\n\n\t\t// set minCharges\n\t\tAmount<Power> powerToCharge = Amount.valueOf(0, Power.UNIT);\n\t\tAmount<Power> lastValueOfChargesAtPointsInTime = Amount.valueOf(0,\n\t\t\t\tPower.UNIT);\n\t\tSet<DateTime> reverseKeys = ImmutableSortedSet.copyOf(minX.keySet())\n\t\t\t\t.descendingSet();\n\t\tfor (DateTime now : reverseKeys) {\n\t\t\tif (!lastValueOfChargesAtPointsInTime.approximates(Amount.valueOf(\n\t\t\t\t\t0, Power.UNIT))) {\n\t\t\t\tpowerToCharge = powerToCharge\n\t\t\t\t\t\t.plus(lastValueOfChargesAtPointsInTime);\n\t\t\t\tlastValueOfChargesAtPointsInTime = Amount\n\t\t\t\t\t\t.valueOf(0, Power.UNIT);\n\t\t\t}\n\n\t\t\tif (constraint.getChargesAtPointsInTime().containsKey(now)) {\n\t\t\t\tlastValueOfChargesAtPointsInTime = constraint\n\t\t\t\t\t\t.getChargesAtPointsInTime().get(now);\n\t\t\t}\n\n\t\t\tPossibleRun run = minX.get(now).getPossibleRun();\n\n\t\t\tif (powerToCharge.approximates(Amount.valueOf(0, Power.UNIT))\n\t\t\t\t\t|| powerToCharge.isLessThan(Amount.valueOf(0, Power.UNIT))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdouble hours = run.getLengthOfRun().toStandardMinutes()\n\t\t\t\t\t.getMinutes()\n\t\t\t\t\t/ HOUR_IN_MINUTES;\n\t\t\tAmount<Power> charge = null;\n\t\t\tif (LoadFlexiblity.LIMITED_CHOICE.equals(run\n\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\tfor (Amount<Power> possibleLoad : run.getPossibleLoads()) {\n\t\t\t\t\tif (possibleLoad.isLessThan(Amount.valueOf(0, Power.UNIT))) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tcharge = possibleLoad;\n\n\t\t\t\t\tif (charge.times(hours).isGreaterThan(powerToCharge)) {\n\t\t\t\t\t\tcharge = powerToCharge.divide(hours);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (charge == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tAmount<Power> maxChargeNow = maxX.get(now).getChosenValue();\n\t\t\t\tif (powerToCharge.isGreaterThan(maxChargeNow)) {\n\t\t\t\t\tcharge = maxChargeNow;\n\t\t\t\t} else if (powerToCharge.isGreaterThan(Amount.valueOf(0,\n\t\t\t\t\t\tPower.UNIT))) {\n\t\t\t\t\tcharge = powerToCharge;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tminCharges.put(now, powerToCharge);\n\t\t\tpowerToCharge = powerToCharge.minus(charge.times(hours));\n\t\t}\n\n\t\tif (powerToCharge.isGreaterThan(Amount.valueOf(0, Power.UNIT))) {\n\t\t\tLOG.debug(\"powerToCharge is greater than 0, which means that the charging constraints cannot be satisfied!\");\n\t\t}\n\t}", "public T getMin ();", "public M csmiCertifyTypeMin(Object min){this.put(\"csmiCertifyTypeMin\", min);return this;}", "public Resource(final int type, final double x, final double y, final double minReward, final double maxReward) {\r\n if (type < 0) {\r\n throw new InvalidParameterException(\"Resource types must be 0 or higher\");\r\n }\r\n\r\n mType = type;\r\n mReward = new RewardRange(minReward, maxReward);\r\n mLocation = new Location(x, y);\r\n }", "public void handleIntValue(int type, int val) {\n\t\t\n\t}", "public static void main(String[] args) {\n int myValue = 10000;\n int myMinIntValue = Integer.MIN_VALUE;\n int myMaxIntValue = Integer.MAX_VALUE;\n int myMaxIntTest = 2_147_483_647; // use \"_\" for better readability\n System.out.println(\"INT min value = \" + myMinIntValue);\n System.out.println(\"INT max value = \" + myMaxIntValue);\n System.out.println(\"Bad int max value = \" + (myMaxIntValue + 1)); // causes overflow - exceed max data value\n System.out.println(\"Bad int min value = \" + (myMinIntValue - 1)); // causes underflow - exceed min data value\n\n // BYTES - occupies 8 bits\n byte minByteValue = Byte.MIN_VALUE;\n byte maxByteValue = Byte.MAX_VALUE;\n System.out.println(\"BYTE min value = \" + minByteValue);\n System.out.println(\"BYTE max value = \" + maxByteValue);\n\n // SHORT - occupies 16 bits\n short minShortValue = Short.MIN_VALUE;\n short maxShortValue = Short.MAX_VALUE;\n System.out.println(\"SHORT min value = \" + minShortValue);\n System.out.println(\"SHORT max value = \" + maxShortValue);\n\n // LONG\n long longValue = 1000L; // \"L\" indicates that it is a long value\n long minLongValue = Long.MIN_VALUE;\n long maxLongValue = Long.MAX_VALUE;\n System.out.println(\"LONG min value = \" + minLongValue);\n System.out.println(\"LONG max value = \" + maxLongValue);\n\n // Arithmetic - try to always use an integer\n int intDivision = (myMinIntValue / 2); // java treats parens as ints\n byte byteValue = (byte) (myMinIntValue / 2); // casting - tells java to treat the parens as a byte\n short shortValue = (short) (minShortValue / 2);\n\n // Primitive Challenge:\n byte byteChallenge = 100;\n short shortChallenge = 1000;\n int intChallenge = 50;\n\n long challengeTotal = 50_000L + 10L * (byteChallenge + shortChallenge + intChallenge);\n System.out.println(challengeTotal);\n\n short shortTotal = (short) (1000 + 10 * (byteChallenge + shortChallenge + intChallenge));\n }", "public void setMinMax(double min, double max)\n {\n if (max == min)\n throw new IllegalArgumentException(\"Max value must be bigger than Min value!\");\n\n this.min = min;\n this.max = max;\n if (max < min)\n {\n this.max = min;\n this.min = max;\n }\n }", "private int validateNumber(int data, int defaultValue, int minValue, int maxValue)\n {\n return (data < minValue || data > maxValue) ? defaultValue : data;\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 }", "private void initialize(int initialValue, int extent, int minimum, int maximum) {\r\n if ((maximum >= minimum)\r\n && (initialValue >= minimum)\r\n && ((initialValue + extent) >= initialValue)\r\n && ((initialValue + extent) <= maximum)) {\r\n // this.theExtent = extent;\r\n this.min = minimum;\r\n this.max = maximum;\r\n } else {\r\n throw new IllegalArgumentException(\"invalid range properties \" +\r\n \"max = \" + maximum + \" min = \" + minimum + \" initialValue = \" + initialValue + \" extent = \" + extent);\r\n\r\n }\r\n }", "private static <T extends RealType<T>> double typeMax(\n\t\tfinal RandomAccessibleInterval<T> image)\n\t{\n\t\treturn image.randomAccess().get().getMaxValue();\n\t}", "private void init() {\r\n\t\t// Convert the string Values from file to numerical values\r\n\t\tif ((field.getDecimalMinimum() != null)\r\n\t\t\t\t&& (field.getDecimalMaximum() != null)) {\r\n\t\t\ttry {\r\n\t\t\t\thasRange = true;\r\n\t\t\t\tminimum = Long.valueOf(Long.parseLong(field.getDecimalMinimum()));\r\n\t\t\t\tmaximum = Long.valueOf(Long.parseLong(field.getDecimalMaximum()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\thasRange = false;\r\n\t\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thasRange = false;\r\n\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t}\r\n\r\n\t\tisNumeric = field.getCharacterSet().matches(\"^[0-9\\\\-*\\\\[\\\\]]*$\");\r\n\t\tintBitLength = field.getBitLength() == null ? 0 : field.getBitLength()\r\n\t\t\t\t.intValue();\r\n\t\tString charSet = \"^\"\r\n\t\t\t\t+ (field.getCharacterSet().endsWith(\"*\") ? field\r\n\t\t\t\t\t\t.getCharacterSet() : field.getCharacterSet() + \"*\")\r\n\t\t\t\t+ \"$\";\r\n\t\tcharSetRegex = Pattern.compile(charSet);\r\n\t\tintLength = field.getLength() == null ? Integer.MAX_VALUE : field\r\n\t\t\t\t.getLength().intValue();\r\n\t}", "StockRangeLineType createStockRangeLineType();", "public abstract Type getSpecializedType(Type type);", "protected void mapValueToWithinBounds() {\n if (getAllele() != null) {\n \tFloat d_value = ( (Float) getAllele());\n if (d_value.isInfinite()) {\n // Here we have to break to avoid a stack overflow.\n // ------------------------------------------------\n return;\n }\n // If the value exceeds either the upper or lower bounds, then\n // map the value to within the legal range. To do this, we basically\n // calculate the distance between the value and the float min,\n // then multiply it with a random number and then care that the lower\n // boundary is added.\n // ------------------------------------------------------------------\n if (d_value.floatValue() > m_upperBound ||\n d_value.floatValue() < m_lowerBound) {\n RandomGenerator rn;\n if (getConfiguration() != null) {\n rn = getConfiguration().getRandomGenerator();\n }\n else {\n rn = new StockRandomGenerator();\n }\n setAllele(new Float((rn.nextFloat()\n * ((m_upperBound - m_lowerBound))) + m_lowerBound));\n }\n }\n }", "NumericRangeFilter(double p_min, double p_max) {\n maximum = p_max;\n minimum = p_min;\n }", "Range alarmLimits();", "private void initLimits() {\n lowerLimit1 = quarterHolderWidth;\n lowerLimit2 = (2 * quarterHolderWidth);\n lowerLimit3 = (3 * quarterHolderWidth);\n lowerLimit4 = holderWidth;\n }", "static int Limit(int val, int max, int min) {\n if (val > max) {\n val = max;\n } else if (val < min) {\n val = min;\n }\n\n return val;\n }", "public void setAxisRange(double xMin,double xMax, double yMin, double yMax) {\n minXValue=xMin;\n maxXValue=xMax;\n minYValue=yMin;\n maxYValue=yMax;\n this.customAxis=true;\n addGraphPanel();\n\n }", "@SuppressWarnings(\"unused\")\n public static float valueRangeLimit(float value, float startValue, float endValue) {\n // If is over the limit return the normalized value\n if (value < Math.min(startValue, endValue)) return Math.min(startValue, endValue);\n if (value > Math.max(startValue, endValue)) return Math.max(startValue, endValue);\n // Else return the original value\n return value;\n }", "public static void main(String[] args) {\n\n Scanner value = new Scanner(System.in);\n\n int minnum = Integer.MAX_VALUE;\n int maxnum = Integer.MIN_VALUE;\n while (true){\n System.out.println(\" Enter Number\");\n boolean Isint = value.hasNextInt();\n if (Isint){\n int number = value.nextInt();\n minnum = Math.min(minnum, number);\n maxnum = Math.max(maxnum, number);\n\n } else {\n System.out.println(\" The Minimum Number entered is \" + minnum + \" & the max number entered is \" + maxnum);\n break;\n }value.nextLine();\n\n } value.close();\n }", "public com.vodafone.global.er.decoupling.binding.request.RangeValueFullType createRangeValueFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.RangeValueFullTypeImpl();\n }", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "public TypeSpec determineEnumBaseSpec ( TypeSpec baseSpec, Constant.IntC minValue, Constant.IntC maxValue )\n{\n assert baseSpec == minValue.spec && baseSpec == maxValue.spec;\n\n if (false)\n return baseSpec;\n else\n {\n if (baseSpec.signed)\n {\n if (!minValue.fitsInLong() || !maxValue.fitsInLong())\n return baseSpec;\n long mi = minValue.asLong();\n long ma = maxValue.asLong();\n\n for ( int i = TypeSpec.SCHAR.ordinal(); i <= TypeSpec.SLLONG.ordinal(); i += 2 )\n {\n final TypeSpec ts = TypeSpec.values()[i];\n if (mi >= ts.minValue && ma <= ts.maxValue)\n return ts;\n }\n }\n else\n {\n if (!minValue.fitsInULong() || !maxValue.fitsInULong())\n return baseSpec;\n long ma = maxValue.asULong();\n\n for ( int i = TypeSpec.UCHAR.ordinal(); i <= TypeSpec.ULLONG.ordinal(); i += 2 )\n {\n final TypeSpec ts = TypeSpec.values()[i];\n if (!Constant.unsignedLessThan( ts.maxValue, ma ))\n return ts;\n }\n }\n\n return baseSpec;\n }\n}", "public static double limitRange( double val , double max , double min )\n {\n //If number is greater than maximum, it becomes the maximum.\n if( val > max )\n {\n val = max; \n }\n else if( val < min )//Else if the number is less than minimum, it becomes the minimum.\n {\n val = min;\n }\n \n //Returns the limited number.\n return val;\n }", "void setMaxValue();", "public static boolean isValueRange(int value, int min, int max) throws Exception {\r\n\t\t//Checks the Case:\r\n\t\tif (value >= min && value <= max) {\r\n\t\t\t//Returns Value:\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\t//Returns Value:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public abstract double getRangeSize();", "public void validateMinimum() {\n/* */ double newMin;\n/* */ try {\n/* 373 */ newMin = Double.parseDouble(this.minimumRangeValue.getText());\n/* 374 */ if (newMin >= this.maximumValue) {\n/* 375 */ newMin = this.minimumValue;\n/* */ }\n/* */ }\n/* 378 */ catch (NumberFormatException e) {\n/* 379 */ newMin = this.minimumValue;\n/* */ } \n/* */ \n/* 382 */ this.minimumValue = newMin;\n/* 383 */ this.minimumRangeValue.setText(Double.toString(this.minimumValue));\n/* */ }", "protected int check(int type) {\n\t\tif (type < 0 || type > 127)\n\t\t\tthrow new IllegalArgumentException(\"invalid.ASTNode.type: \" + type);\n\t\treturn type;\n\t}", "private void setDefaultValueIfMissing() {\n if (!getType().isNumber() || !hasValidation()) {\n return;\n }\n if (!hasDefaultValue()) {\n if (validation.hasMinimum()) {\n setDefaultValue(validation.getMinimum());\n } else {\n if (validation.hasMaximum()) {\n setDefaultValue(validation.getMaximum());\n }\n }\n }\n }", "TypeDescription validated();", "private synchronized void updateNumberFormat()\n\t{\n\n\t\tfinal int sw = rangeSlider.getWidth();\n\t\tif ( sw > 0 )\n\t\t{\n\t\t\tfinal double vrange = range.getMaxBound() - range.getMinBound();\n\t\t\tfinal int digits = ( int ) Math.ceil( Math.log10( sw / vrange ) );\n\n\t\t\tblockUpdates = true;\n\n\t\t\tJSpinner.NumberEditor numberEditor = ( ( JSpinner.NumberEditor ) minSpinner.getEditor() );\n\t\t\tnumberEditor.getFormat().setMaximumFractionDigits( digits );\n\t\t\tnumberEditor.stateChanged( new ChangeEvent( minSpinner ) );\n\n\t\t\tnumberEditor = ( ( JSpinner.NumberEditor ) maxSpinner.getEditor() );\n\t\t\tnumberEditor.getFormat().setMaximumFractionDigits( digits );\n\t\t\tnumberEditor.stateChanged( new ChangeEvent( maxSpinner ) );\n\n\t\t\tblockUpdates = false;\n\t\t}\n\t}", "private static <T extends RealType<T>> double typeMin(\n\t\tfinal RandomAccessibleInterval<T> image)\n\t{\n\t\treturn image.randomAccess().get().getMinValue();\n\t}", "@Override\n public int between(int min, int max) {\n return super.between(min, max);\n }", "private Type get_value_type(long xx) {\n Type vt = _values.get(xx);\n assert vt!=null;\n return vt;\n }", "@Override\n protected void adjustTypeAttributes() {\n this.getSpecialData().addAttribute(SharedMonsterAttributes.maxHealth, 20.0);\n this.getSpecialData().multAttribute(SharedMonsterAttributes.movementSpeed, 1.2);\n }" ]
[ "0.6798772", "0.6721411", "0.618273", "0.59548414", "0.5824804", "0.57246524", "0.5653693", "0.5581012", "0.55732137", "0.5554075", "0.5520936", "0.5495913", "0.54950416", "0.5493575", "0.54493546", "0.5444922", "0.5442243", "0.54060173", "0.5398136", "0.53694326", "0.5360627", "0.5347501", "0.5324092", "0.5310234", "0.52718127", "0.526182", "0.52561855", "0.5250288", "0.52448124", "0.52313787", "0.52258396", "0.5197584", "0.5195337", "0.5155809", "0.5151804", "0.514999", "0.51463276", "0.5134302", "0.5131787", "0.513065", "0.51287085", "0.51235604", "0.5106446", "0.50987834", "0.5097609", "0.5097089", "0.5072545", "0.50706124", "0.50611186", "0.5054663", "0.5051713", "0.5051159", "0.50433093", "0.50431186", "0.50332123", "0.50277966", "0.50081754", "0.4991014", "0.4989956", "0.49886674", "0.49846038", "0.49797925", "0.49605623", "0.49552208", "0.4947331", "0.49445492", "0.4943765", "0.49353555", "0.49328274", "0.49297857", "0.49291244", "0.49271566", "0.49267575", "0.49218115", "0.4907666", "0.49071172", "0.49043876", "0.49009246", "0.48961508", "0.48946795", "0.48894125", "0.48806247", "0.48741218", "0.48716962", "0.48707554", "0.48617035", "0.48603818", "0.48547494", "0.48527384", "0.48480594", "0.48440248", "0.4841839", "0.48395336", "0.4838802", "0.48387", "0.48342603", "0.48335686", "0.48192886", "0.481916", "0.48176295" ]
0.54722077
14
Is not supported by RefactoringMiner yet
@Override public RefactoringInfo specify(Refactoring refactoring, RefactoringInfo info) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Refactoring createRefactoring();", "protected abstract Refactoring createRefactoring();", "public Problem prepare(RefactoringElementsBag refactoringElements) {\n if (semafor.get() != null) {\n return null;\n }\n semafor.set(new Object());\n try {\n rename = (RenameRefactoring)refactoring;\n \n Problem problem = null;\n Lookup lkp = rename.getRefactoringSource();\n \n TreePathHandle handle = lkp.lookup(TreePathHandle.class);\n if (handle != null) {\n InfoHolder infoholder = examineLookup(lkp);\n Project project = FileOwnerQuery.getOwner(handle.getFileObject());\n if (project == null || project.getLookup().lookup(NbModuleProvider.class) == null) {\n // take just netbeans module development into account..\n return null;\n }\n \n if (infoholder.isClass) {\n checkManifest(project, infoholder.fullName, refactoringElements);\n checkLayer(project, infoholder.fullName, refactoringElements);\n }\n if (infoholder.isMethod) {\n checkMethodLayer(infoholder, handle.getFileObject(), refactoringElements);\n }\n }\n NonRecursiveFolder nrf = lkp.lookup(NonRecursiveFolder.class);\n if (nrf != null) {\n Project project = FileOwnerQuery.getOwner(nrf.getFolder());\n if (project.getLookup().lookup(NbModuleProvider.class) == null) {\n // take just netbeans module development into account..\n return null;\n }\n Sources srcs = org.netbeans.api.project.ProjectUtils.getSources(project);\n SourceGroup[] grps = srcs.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);\n for (SourceGroup gr : grps) {\n if (FileUtil.isParentOf(gr.getRootFolder(), nrf.getFolder())) {\n String relPath = FileUtil.getRelativePath(gr.getRootFolder(), nrf.getFolder());\n relPath.replace('/', '.');\n //TODO probably aslo manifest or layers.\n //TODO how to distinguish single package from recursive folder?\n }\n }\n }\n \n return problem;\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n return null;\n } finally {\n semafor.set(null);\n }\n }", "default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "public RefactoringTask() {\n\t\tlauncher = new Launcher();\n\t\tinputSources = new ArrayList<String>();\n\t\tprocessors = new ArrayList<String>();\n\t\ttemplates = new ArrayList<SpoonResource>();\n\t\trefactoringsApplied = new HashMap<String, Integer>();\n\t\toutputSource = \"\";\n\t\tisProcessed = false;\n\t\tisModelBuilt = false;\n\t}", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "private void runRefactoring() {\r\n Refactoring refactoring = createRefactoring();\r\n\r\n // Update the code\r\n try {\r\n refactoring.run();\r\n } catch (RefactoringException re) {\r\n JOptionPane.showMessageDialog(null, re.getMessage(), \"Refactoring Exception\",\r\n JOptionPane.ERROR_MESSAGE);\r\n } catch (Throwable thrown) {\r\n ExceptionPrinter.print(thrown, true);\r\n }\r\n\r\n followup(refactoring);\r\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "UCRefactoringFactory getUCRefactoringFactory();", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "protected void thoroughInspection() {}", "@Override\n public void review( IMigrationAction action ) throws MigrationException {\n if( ! ( action instanceof CopyFileAction ) ) return;\n CopyFileAction ca = (CopyFileAction) action;\n\n // It may have Ant-like $pathMaks instead of $src.\n if( ca.getSrc() == null ) return;\n \n String fName = ca.getSrc().getName();\n if( ! fName.endsWith(\"-beans.xml\")) return;\n \n // Check each <bean class=\"...\">. If the class is org.jboss.*, WARN.\n List<Bean> beans = extractBeans( ca.getSrc() );\n for( Bean bean : beans ) {\n if( bean.cls.startsWith(\"org.jboss.\")){\n action.getWarnings().add(\"A bean in \" + fName + \" uses org.jboss.* class: \" + bean.cls + \"\\n\"\n + \"Using MBeans is only supported as a legacy technology.\\n\"\n + \"Server boot may fail with ClassNotFoundException.\\n\"\n + \"Consult server documentation about classloading and modules.\");\n }\n }\n }", "public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}", "public interface IRefactoringProcessorIds {\n\n /**\n\t * Processor ID of the rename Java project processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameJavaProjectProcessor\"</code>).\n\t *\n\t * The rename Java project processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IJavaProject</code>.</li>\n\t * <li>participants registered for renaming <code>IProject</code>.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_JAVA_PROJECT_PROCESSOR = \"org.eclipse.jdt.ui.renameJavaProjectProcessor\";\n\n /**\n\t * Processor ID of the rename source folder\n\t * (value <code>\"org.eclipse.jdt.ui.renameSourceFolderProcessor\"</code>).\n\t *\n\t * The rename package fragment root processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IPackageFragmentRoot</code>.</li>\n\t * <li>participants registered for renaming <code>IFolder</code>.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_SOURCE_FOLDER_PROCESSOR = \"org.eclipse.jdt.ui.renameSourceFolderProcessor\";\n\n /**\n\t * Processor ID of the rename package fragment processor\n\t * (value <code>\"org.eclipse.jdt.ui.renamePackageProcessor\"</code>).\n\t *\n\t * The rename package fragment processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IPackageFragment</code>.</li>\n\t * <li>participants registered for moving <code>IFile</code> to participate in the\n\t * file moves caused by the package fragment rename.</li>\n\t * <li>participants registered for creating <code>IFolder</code> if the package\n\t * rename results in creating a new destination folder.</li>\n\t * <li>participants registered for deleting <code>IFolder</code> if the package\n\t * rename results in deleting the folder corresponding to the package\n\t * fragment to be renamed.</li>\n\t * </ul>\n\t *\n\t * <p>Since 3.3:</p>\n\t *\n\t * <p>The refactoring processor moves and renames Java elements and resources.\n\t * Rename package fragment participants can retrieve the new location of\n\t * Java elements and resources through the interfaces\n\t * {@link IJavaElementMapper} and {@link IResourceMapper}, which can be\n\t * retrieved from the processor using the getAdapter() method.</p>\n\t */\n //$NON-NLS-1$\n public static String RENAME_PACKAGE_FRAGMENT_PROCESSOR = \"org.eclipse.jdt.ui.renamePackageProcessor\";\n\n /**\n\t * Processor ID of the rename compilation unit processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameCompilationUnitProcessor\"</code>).\n\t *\n\t * The rename compilation unit processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>ICompilationUnit</code>.</li>\n\t * <li>participants registered for renaming <code>IFile</code>.</li>\n\t * <li>participants registered for renaming <code>IType</code> if the\n\t * compilation unit contains a top level type.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_COMPILATION_UNIT_PROCESSOR = \"org.eclipse.jdt.ui.renameCompilationUnitProcessor\";\n\n /**\n\t * Processor ID of the rename type processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameTypeProcessor\"</code>).\n\t *\n\t * The rename type processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IType</code>.</li>\n\t * <li>participants registered for renaming <code>ICompilationUnit</code> if the\n\t * type is a public top level type.</li>\n\t * <li>participants registered for renaming <code>IFile</code> if the compilation\n\t * unit gets rename as well.</li>\n\t * </ul>\n\t *\n\t * <p>Since 3.2:</p>\n\t *\n\t * <p>Participants that declare <pre> &lt;param name=\"handlesSimilarDeclarations\" value=\"false\"/&gt; </pre>\n\t * in their extension contribution will not be loaded if the user selects the\n\t * \"update similar declarations\" feature.</p>\n\t *\n\t * <p>Rename type participants can retrieve information about similar declarations by casting the\n\t * RenameArguments to RenameTypeArguments. The new signatures of similar declarations\n\t * (and of other Java elements or resources) are available\n\t * through the interfaces {@link IJavaElementMapper} and {@link IResourceMapper}, which can be retrieved from the\n\t * processor using the getAdapter() method.</p>\n\t *\n\t */\n //$NON-NLS-1$\n public static String RENAME_TYPE_PROCESSOR = \"org.eclipse.jdt.ui.renameTypeProcessor\";\n\n /**\n\t * Processor ID of the rename method processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameMethodProcessor\"</code>).\n\t *\n\t * The rename method processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IMethod</code>. Renaming\n\t * virtual methods will rename methods with the same name in the type\n\t * hierarchy of the type declaring the method to be renamed as well.\n\t * For those derived methods participants will be loaded as well.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_METHOD_PROCESSOR = \"org.eclipse.jdt.ui.renameMethodProcessor\";\n\n /**\n\t * Processor ID of the rename field processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameFieldProcessor\"</code>).\n\t *\n\t * The rename filed processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IField</code>.</li>\n\t * <li>participants registered for renaming <code>IMethod</code> if\n\t * corresponding setter and getter methods are renamed as well.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_FIELD_PROCESSOR = \"org.eclipse.jdt.ui.renameFieldProcessor\";\n\n /**\n\t * Processor ID of the rename enum constant processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameEnumConstProcessor\"</code>).\n\t *\n\t * The rename filed processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IField</code>.</li>\n\t * </ul>\n\t * @since 3.1\n\t */\n //$NON-NLS-1$\n public static String RENAME_ENUM_CONSTANT_PROCESSOR = \"org.eclipse.jdt.ui.renameEnumConstProcessor\";\n\n /**\n\t * Processor ID of the rename resource processor\n\t * (value <code>\"org.eclipse.jdt.ui.renameResourceProcessor\"</code>).\n\t *\n\t * The rename resource processor loads the following participants:\n\t * <ul>\n\t * <li>participants registered for renaming <code>IResource</code>.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String RENAME_RESOURCE_PROCESSOR = \"org.eclipse.jdt.ui.renameResourceProcessor\";\n\n /**\n\t * Processor ID of the move resource processor\n\t * (value <code>\"org.eclipse.jdt.ui.MoveProcessor\"</code>).\n\t *\n\t * The move processor loads the following participants, depending on the type of\n\t * element that gets moved:\n\t * <ul>\n\t * <li><code>IPackageFragmentRoot</code>: participants registered for moving\n\t * package fragment roots together with participants moving a <code>IFolder\n\t * </code>.</li>\n\t * <li><code>IPackageFragment</code>: participants registered for moving\n\t * package fragments. Additionally move file, create folder and delete\n\t * folder participants are loaded to reflect the resource changes\n\t * caused by a moving a package fragment.</li>\n\t * <li><code>ICompilationUnit</code>: participants registered for moving\n\t * compilation units and <code>IFile</code>. If the compilation unit\n\t * contains top level types, participants for these types are loaded\n\t * as well.</li>\n\t * <li><code>IResource</code>: participants registered for moving resources.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String MOVE_PROCESSOR = \"org.eclipse.jdt.ui.MoveProcessor\";\n\n /**\n\t * Processor ID of the move static member processor\n\t * (value <code>\"org.eclipse.jdt.ui.MoveStaticMemberProcessor\"</code>).\n\t *\n\t * The move static members processor loads participants registered for the\n\t * static Java element that gets moved. No support is available to participate\n\t * in non static member moves.\n\t */\n //$NON-NLS-1$\n public static String MOVE_STATIC_MEMBERS_PROCESSOR = \"org.eclipse.jdt.ui.MoveStaticMemberProcessor\";\n\n /**\n\t * Processor ID of the delete resource processor\n\t * (value <code>\"org.eclipse.jdt.ui.DeleteProcessor\"</code>).\n\t *\n\t * The delete processor loads the following participants, depending on the type of\n\t * element that gets deleted:\n\t * <ul>\n\t * <li><code>IJavaProject</code>: participants registered for deleting <code>IJavaProject\n\t * </code> and <code>IProject</code></li>.\n\t * <li><code>IPackageFragmentRoot</code>: participants registered for deleting\n\t * <code>IPackageFragmentRoot</code> and <code>IFolder</code>.\n\t * <li><code>IPackageFragment</code>: participants registered for deleting\n\t * <code>IPackageFragment</code>. Additionally delete file and delete folder\n\t * participants are loaded to reflect the resource changes caused by\n\t * deleting a package fragment.</li>\n\t * <li><code>ICompilationUnit</code>: participants registered for deleting compilation\n\t * units and files. Additionally type delete participants are loaded to reflect the\n\t * deletion of the top level types declared in the compilation unit.</li>\n\t * <li><code>IType</code>: participants registered for deleting types. Additional\n\t * compilation unit and file delete participants are loaded if the type to be deleted\n\t * is the only top level type of a compilation unit.</li>\n\t * <li><code>IMember</code>: participants registered for deleting members.</li>\n\t * <li><code>IResource</code>: participants registered for deleting resources.</li>\n\t * </ul>\n\t */\n //$NON-NLS-1$\n public static String DELETE_PROCESSOR = \"org.eclipse.jdt.ui.DeleteProcessor\";\n\n /**\n\t * Processor ID of the copy processor (value <code>\"org.eclipse.jdt.ui.CopyProcessor\"</code>).\n\t *\n\t * The copy processor is used when copying elements via drag and drop or when pasting\n\t * elements from the clipboard. The copy processor loads the following participants,\n\t * depending on the type of the element that gets copied:\n\t * <ul>\n\t * <li><code>IJavaProject</code>: no participants are loaded.</li>\n\t * <li><code>IPackageFragmentRoot</code>: participants registered for copying\n\t * <code>IPackageFragmentRoot</code> and <code>ResourceMapping</code>.</li>\n\t * <li><code>IPackageFragment</code>: participants registered for copying\n\t * <code>IPackageFragment</code> and <code>ResourceMapping</code>.</li>\n\t * <li><code>ICompilationUnit</code>: participants registered for copying\n\t * <code>ICompilationUnit</code> and <code>ResourceMapping</code>.</li>\n\t * <li><code>IType</code>: like ICompilationUnit if the primary top level type is copied.\n\t * Otherwise no participants are loaded.</li>\n\t * <li><code>IMember</code>: no participants are loaded.</li>\n\t * <li><code>IFolder</code>: participants registered for copying folders.</li>\n\t * <li><code>IFile</code>: participants registered for copying files.</li>\n\t * </ul>\n\t * <p>\n\t * Use the method {@link ResourceMapping#accept(ResourceMappingContext context, IResourceVisitor visitor, IProgressMonitor monitor)}\n\t * to enumerate the resources which form the Java element. <code>ResourceMappingContext.LOCAL_CONTEXT</code>\n\t * should be use as the <code>ResourceMappingContext</code> passed to the accept method.\n\t * </p>\n\t * @see org.eclipse.core.resources.mapping.ResourceMapping\n\t * @since 3.3\n\t */\n //$NON-NLS-1$\n public static String COPY_PROCESSOR = \"org.eclipse.jdt.ui.CopyProcessor\";\n}", "public void test04() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"CODE_ON\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step14\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "public void test07() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"\", \"XDateChooser\");\r\n rfr.setField(\"_maxDate\");\r\n rfr.setNewName(\"_maximumDate\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step15\");\r\n\r\n FileCompare.assertEquals(\"XDateChooser is incorrect\",\r\n new File(check, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"));\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void testNoFixFor_ParsingErrorInsertToComplete() throws Exception {\n IPackageFragment pack1 = fSourceFolder.createPackageFragment(\"test1\", false, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package test1;\\n\");\n buf.append(\"import java.util.*;\\n\");\n buf.append(\"class E {\\n\");\n buf.append(\" public class MyLayout {\\n\");\n buf.append(\" int indent;\\n\");\n buf.append(\" }\\n\");\n buf.append(\" public void foo() {\\n\");\n buf.append(\" new MyLayout().indent // no real quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" \\n\");\n buf.append(\" private int[] fField;\\n\");\n buf.append(\" public void bar() {\\n\");\n buf.append(\" fField[0] // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" public void baz() {\\n\");\n buf.append(\" try { // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" }\\n\");\n buf.append(\" void foo(Map<String, String> map) {\\n\");\n buf.append(\" map..keySet(); // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" void // no quick fix\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu = pack1.createCompilationUnit(\"E.java\", buf.toString(), false, null);\n CompilationUnit astRoot = getASTRoot(cu);\n List<ICompletionProposal> proposals = collectAllCorrections(cu, astRoot, 9);\n assertNumberOfProposals(proposals, 0);\n IProblem[] problems = astRoot.getProblems();\n for (int i = 0; i < problems.length; i++) {\n IProblem problem = problems[i];\n if (i == 5) {\n assertEquals(IProblem.ParsingErrorDeleteToken, problem.getID());\n } else {\n assertEquals(IProblem.ParsingErrorInsertToComplete, problem.getID());\n }\n }\n assertFalse(\"IProblem.ParsingErrorInsertToComplete is very general and should not trigger the quick fix lightbulb everywhere\", JavaCorrectionProcessor.hasCorrections(cu, IProblem.ParsingErrorInsertToComplete, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER));\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public MakeCPMLEditableTool(){\n\t}", "public static void main(String[] args) {\n\n\t\tGitService gitService = new GitServiceImpl();\n\t\tGitHistoryRefactoringMiner miner = new GitHistoryRefactoringMinerImpl();\n\n\t\tRepository repo;\n\t\ttry {\n\t\t\trepo = gitService.cloneIfNotExists(\n\t\t\t\t\t\"/home/steve/Steve/git/commons-rng\",\n\t\t\t\t\t\"https://github.com/apache/commons-rng.git\");\n\t\t\t//\t\t\trepo = gitService.cloneIfNotExists(\n\t\t\t//\t\t\t\t\t\"tmp/refactoring-toy-example\",\n\t\t\t//\t\t\t\t\t\"https://github.com/danilofes/refactoring-toy-example.git\");\n\t\t\t// For all with sample\n\t\t\t//\t\t\tminer.detectAll(repo, \"master\", new RefactoringHandler() {\n\t\t\t//\t\t\t\t @Override\n\t\t\t//\t\t\t\t public void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t//\t\t\t\t System.out.println(\"Refactorings at \" + commitId);\n\t\t\t//\t\t\t\t for (Refactoring ref : refactorings) {\n\t\t\t//\t\t\t\t System.out.println(ref.toString());\n\t\t\t////\t\t\t\t System.out.println(ref.toJSON());\n\t\t\t//\t\t\t\t }\n\t\t\t//\t\t\t\t }\n\t\t\t//\t\t\t\t});\n\t\t\t// For between 2 commits with sample\n\t\t\t//\t\t\t// start commit: 819b202bfb09d4142dece04d4039f1708735019b\n\t\t\t//\t\t\t// end commit: d4bce13a443cf12da40a77c16c1e591f4f985b47\n\t\t\t//\t\t\tminer.detectBetweenCommits(repo, \n\t\t\t//\t\t\t\t\t\"819b202bfb09d4142dece04d4039f1708735019b\", \"d4bce13a443cf12da40a77c16c1e591f4f985b47\",\n\t\t\t//\t\t\t\t\tnew RefactoringHandler() {\n\t\t\t//\t\t\t\t@Override\n\t\t\t//\t\t\t\tpublic void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t//\t\t\t\t\tSystem.out.println(\"Refactorings at \" + commitId);\n\t\t\t//\t\t\t\t\tfor (Refactoring ref : refactorings) {\n\t\t\t//\t\t\t\t\t\t//\t\t\t System.out.println(ref.toString());\n\t\t\t//\t\t\t\t\t\tSystem.out.println(ref.toJSON());\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\n\t\t\t// start commit: 40fd7ad244b350d657ca4f1a9efe667c52697327\n\t\t\t// end commit: 3ca48892811538e911eb3c5bafd60b4d9ca92483\n\t\t\tminer.detectBetweenCommits(repo, \n\t\t\t\t\t\"40fd7ad244b350d657ca4f1a9efe667c52697327\", \"3ca48892811538e911eb3c5bafd60b4d9ca92483\",\n\t\t\t\t\tnew RefactoringHandler() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t\t\tSystem.out.println(\"***********************************************************************************\");\n\t\t\t\t\tSystem.out.println(\"Refactorings at \" + commitId);\n\t\t\t\t\tfor (Refactoring ref : refactorings) {\n\t\t\t\t\t\t// System.out.println(ref.toString());\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(ref.toJSON());\n\t\t\t\t\t\tif (ref instanceof ExtractOperationRefactoring) {\n\t\t\t\t\t\t\tExtractOperationRefactoring refactoring = (ExtractOperationRefactoring)ref;\n\t\t\t\t\t\t\tUMLOperationBodyMapper mapper = refactoring.getBodyMapper();\n\t\t\t\t\t\t\tList<StatementObject> newLeaves = mapper.getNonMappedLeavesT2(); //newly added leaf statements\n\t\t\t\t\t\t\tList<CompositeStatementObject> newComposites = mapper.getNonMappedInnerNodesT2(); //newly added composite statements\n\t\t\t\t\t\t\tList<StatementObject> deletedLeaves = mapper.getNonMappedLeavesT1(); //deleted leaf statements\n\t\t\t\t\t\t\tList<CompositeStatementObject> deletedComposites = mapper.getNonMappedInnerNodesT1(); //deleted composite statements\n\t\t\t\t\t\t\tSystem.out.println(\"newLeaves: \\n\" + newLeaves);\n\t\t\t\t\t\t\tSystem.out.println(\"newComposites: \\n\" + newComposites);\n\t\t\t\t\t\t\tSystem.out.println(\"deletedLeaves: \\n\" + deletedLeaves);\n\t\t\t\t\t\t\tSystem.out.println(\"deletedComposites: \\n\" + deletedComposites);\n\n\t\t\t\t\t\t\tfor(AbstractCodeMapping mapping : mapper.getMappings()) {\n\t\t\t\t\t\t\t\tAbstractCodeFragment fragment1 = mapping.getFragment1();\n\t\t\t\t\t\t\t\tAbstractCodeFragment fragment2 = mapping.getFragment2();\n\t\t\t\t\t\t\t\tSet<Replacement> replacements = mapping.getReplacements();\n\t\t\t\t\t\t\t\tSystem.out.println(\"**************** Replacements: ***********\\n\");\n\t\t\t\t\t\t\t\tfor(Replacement replacement : replacements) {\n\t\t\t\t\t\t\t\t\tString valueBefore = replacement.getBefore();\n\t\t\t\t\t\t\t\t\tString valueAfter = replacement.getAfter();\n\t\t\t\t\t\t\t\t\tReplacementType type = replacement.getType();\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"valueBefore: \" + valueBefore);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"valueAfter: \" + valueAfter);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"type: \" + type);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"***********************************************************************************\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n}", "public void testCopyCuWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n buf = new StringBuffer();\n buf.append(\"package org.test1;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = otherFragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n ICopyPolicy policy = ReorgPolicyFactory.createCopyPolicy(new IResource[0], new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaCopyProcessor javaCopyProcessor = new JavaCopyProcessor(policy);\n javaCopyProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaCopyProcessor.setReorgQueries(new MockReorgQueries());\n javaCopyProcessor.setNewNameQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new CopyRefactoring(javaCopyProcessor), false);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n // replaced\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "public void test08() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"childObject\");\r\n rfr.setNewName(\"myChild\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step16\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void test03() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"height\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step13\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "@Override\n protected void performRefactoringIteration(UsagesInFile usagesInFile) {\n Collection<UsageInfo> usages1 = usagesInFile.getUsages();\n ArrayList<MigrationUsageInfo> usages = Lists.newArrayList(Iterables.filter(usages1, MigrationUsageInfo.class));\n usages.sort(ImportUsageFirstComparator.INSTANCE);\n\n for (MigrationMapEntry entry : migrationMap.values()) {\n FlexMigrationUtil.doClassMigration(myProject, entry, usages);\n }\n }", "public void test01() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"simple\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step11\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "private void adjustFactory(IFile iFile, ResourceSet resourceSet) {\n\t\tIJavaProject javaProject = JavaCore.create(iFile.getProject());\r\n\t\ttry {\r\n\t\t\tfor (IClasspathEntry cpEntry : javaProject.getRawClasspath()) {\r\n\t\t\t\tif (cpEntry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {\r\n\t\t\t\t\t//to register newly generated code;\r\n\t\t\t\t\tupdateClaspath(new File(iFile.getWorkspace().getRoot().getLocation().toString() + \r\n\t\t\t\t\t\t\tcpEntry.getPath().toString()), \"\", resourceSet);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (JavaModelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void test02() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"code\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n File check = new File(this.check + \"\\\\ut2\\\\step12\");\r\n\r\n FileCompare.assertEquals(\"RenameFieldTest is incorrect\",\r\n new File(check, \"RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"));\r\n FileCompare.assertEquals(\"UsesFieldTest is incorrect\",\r\n new File(check, \"UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"));\r\n FileCompare.assertEquals(\"InheritFieldTest is incorrect\",\r\n new File(check, \"InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"));\r\n }", "public void testGRECLIPSE731f() throws Exception {\n String contents = \"class X { String xxx\\ndef foo() { }\\ndef meth() { xxx = foo()\\nxxx } }\";\n int start = contents.lastIndexOf(\"xxx\");\n int end = start + \"xxx\".length();\n assertType(contents, start, end, \"java.lang.String\");\n }", "public void saveBeforeCompile() { }", "public void saveBeforeCompile() { }", "public void testProjectsView() {\n ProjectsTabOperator.invoke();\n // needed for slower machines\n JemmyProperties.setCurrentTimeout(\"JTreeOperator.WaitNextNodeTimeout\", 30000); // NOI18N\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n Node sampleClass1Node = new Node(sample1Node, SAMPLE1_FILE_NAME);\n // test pop-up menu actions\n // \"Copy\"\n CopyAction copyAction = new CopyAction();\n copyAction.perform(sampleClass1Node);\n // \"Paste\"\n PasteAction pasteAction = new PasteAction();\n // \"Refactor\"\n String refactorItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_Action\");\n // \"Copy...\"\n String copyItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_CopyAction\");\n new ActionNoBlock(null, pasteAction.getPopupPath() + \"|\" + refactorItem + \" \" + copyItem).perform(sample1Node);\n\n String copyClassTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_CopyClass\");\n NbDialogOperator copyClassDialog = new NbDialogOperator(copyClassTitle);\n // \"Refactor\"\n String refactorLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"CTL_Finish\");\n new JButtonOperator(copyClassDialog, refactorLabel).push();\n // refactoring is done asynchronously => need to wait until dialog dismisses\n copyClassDialog.waitClosed();\n\n Node newClassNode = new Node(sample1Node, \"SampleClass11\"); // NOI18N\n // \"Cut\"\n CutAction cutAction = new CutAction();\n cutAction.perform(newClassNode);\n // package created by default when the sample project was created\n Node sampleProjectPackage = new Node(sourcePackagesNode, SAMPLE_PROJECT_NAME.toLowerCase());\n // \"Move...\"\n String moveItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_MoveAction\");\n new ActionNoBlock(null, pasteAction.getPopupPath() + \"|\" + refactorItem + \" \" + moveItem).perform(sampleProjectPackage);\n new EventTool().waitNoEvent(1000);\n // confirm refactoring\n // \"Move Class\"\n String moveClassTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_MoveClass\");\n NbDialogOperator moveClassDialog = new NbDialogOperator(moveClassTitle);\n new JButtonOperator(moveClassDialog, refactorLabel).push();\n // refactoring is done asynchronously => need to wait until dialog dismisses\n try {\n moveClassDialog.waitClosed();\n } catch (TimeoutExpiredException e) {\n // try it once more\n moveClassDialog = new NbDialogOperator(moveClassTitle);\n new JButtonOperator(moveClassDialog, refactorLabel).push();\n }\n // \"Delete\"\n newClassNode = new Node(sampleProjectPackage, \"SampleClass11\"); // NOI18N\n new EventTool().waitNoEvent(2000);\n new DeleteAction().perform(newClassNode);\n DeleteAction.confirmDeletion();\n }", "public void mo21781F() {\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private CanonizeSource() {}", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "public String getSuggestPackage() {\n/* 63 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void mo1406f() {\n }", "public void testRenameToNonJava() throws JavaModelException {\n\t\tIPath projectPath = env.addProject(\"Project\"); //$NON-NLS-1$\n\t\tenv.addExternalJars(projectPath, Util.getJavaClassLibs());\n\t\t\n\t\t// remove old package fragment root so that names don't collide\n\t\tenv.removePackageFragmentRoot(projectPath,\"\"); //$NON-NLS-1$\n\t\t\n\t\tIPath root = env.addPackageFragmentRoot(projectPath, \"src\"); //$NON-NLS-1$\n\t\tenv.setOutputFolder(projectPath, \"bin\"); //$NON-NLS-1$\n\t\t\n\t\tIPath cuPath = env.addClass(root, \"p1\", \"X\", //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"package p1;\\n\"+ //$NON-NLS-1$\n\t\t\t\"public class X extends Y {\\n\"+ //$NON-NLS-1$\n\t\t\t\"}\\n\" //$NON-NLS-1$\n\t\t\t);\n\t\t\t\n\t\tfullBuild(projectPath);\n\t\texpectingOnlyProblemsFor(cuPath);\n\t\texpectingOnlySpecificProblemFor(cuPath, new Problem(\"X\", \"Y cannot be resolved to a type\", cuPath, 35, 36, CategorizedProblem.CAT_TYPE)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\n\t\t\n\t\tenv.renameCU(root.append(\"p1\"), \"X.java\", \"X.txt\"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\tincrementalBuild(projectPath);\n\t\texpectingNoProblems();\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public void mo56167c() {\n }", "public void test06() {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"simple\");\r\n rfr.setNewName(\"code\");\r\n\r\n boolean exceptionThrown = false;\r\n\r\n try {\r\n rfr.run();\r\n } catch (RefactoringException re) {\r\n exceptionThrown = true;\r\n assertEquals(\"Incorrect exception\", \"A field named code already exists in class RenameFieldTest\", re.getMessage());\r\n }\r\n\r\n assertTrue(\"No exception thrown\", exceptionThrown);\r\n }", "public void m9741j() throws cf {\r\n }", "public static void main(String[] args) throws Exception {\n String ade_view_root = args[1].trim();\n String filelistpath=args[0].trim();\n String[] files=FamilyModuleHelper.getFileList(filelistpath, ade_view_root);\n HashSet<String> projectDirs = new HashSet<String>(); \n \n vcScanner.debugWriter = new BufferedWriter(new FileWriter(\"listBindings.txt\"));\n vcScanner.writer = new BufferedWriter(new FileWriter(\"VC_scan_UI_Performance.csv\")); \n vcScanner.writer1 = new BufferedWriter(new FileWriter(\"VC_scan_UI_Performance_noVC.csv\"));\n vcScanner.generateExemptionList();\n vcScanner.writer1.write(\"Family,Module,Product,Filename,Label,ViewName,Issue,Jsff,Model,Component\\n\");\n vcScanner.writer.write(\"Family,Module,Product,Filename,Label,ViewName, ViewAttribute,\" +\n \"Column Name, Table Name, IsView, ResolvedTableCol, Indexed Table, NumRows, NumBlocks, Column Type, Index, Column Position, \" +\n \"VC Required, Is VC Case-insensitive?, IsQueriable?, RenderMode, VCR:VCI, \" +\n \"UI File, modelValue, componentName\\n\");\n \n boolean familySet = false;\n for(int i = 0; i < files.length; i++) {\n String filePath = ade_view_root + \"/\" + files[i].trim();\n File f = new File(filePath);\n if(!f.exists())\n continue;\n if(fileOfInterest(filePath)) {\n viewFilesInTransaction.add(files[i].trim());\n if(!familySet){\n vcScanner.sCrawlDir = files[i].trim();\n vcScanner.m_family = ViewCriteriaHelper.getFamily(files[i].trim());\n familySet = true;\n }\n String jprDir = VCPremergeChecker.findProjectDirectory(filePath);\n projectDirs.add(jprDir);\n } \n } \n if(projectDirs.size()==0)\n return;\n \n if(args.length > 2){\n String label = args[2].trim();\n String release = FamilyModuleHelper.getRelease(label);\n if(!ViewCriteriaHelper.isEmpty(release)) {\n try{\n int releaseNo= Integer.parseInt(release);\n \n if(releaseNo >= 11){\n vcScanner.function_indexColumns = SqlIndexFinder.readIndexesFromFile_rel11(\"function\");\n vcScanner.default_indexColumns = SqlIndexFinder.readIndexesFromFile_rel11(\"default\");\n SqlIndexFinder.readColPositionsFromFile_rel11();\n SqlIndexFinder.readTableDataFromFile_rel11();\n SqlIndexFinder.readViewDataFromFile_rel11();\n }else {\n vcScanner.function_indexColumns = SqlIndexFinder.readIndexesFromFile(\"function\");\n vcScanner.default_indexColumns = SqlIndexFinder.readIndexesFromFile(\"default\");\n SqlIndexFinder.readColPositionsFromFile();\n SqlIndexFinder.readTableDataFromFile();\n SqlIndexFinder.readViewDataFromFile();\n }\n if(releaseNo >=8)\n SqlIndexFinder.readTableDataFromFile_customer();\n \n }catch (NumberFormatException e) {\n //do nothing\n }\n }\n }else{\n vcScanner.function_indexColumns = SqlIndexFinder.readIndexesFromFile(\"function\");\n vcScanner.default_indexColumns = SqlIndexFinder.readIndexesFromFile(\"default\");\n SqlIndexFinder.readColPositionsFromFile();\n SqlIndexFinder.readTableDataFromFile();\n SqlIndexFinder.readViewDataFromFile();\n }\n \n \n \n \n vcScanner.parser =new ModifiedComboboxParser(vcScanner.m_family.toLowerCase(), ModifiedComboboxParser.ScanType.ALL);\n \n crawlDirectories(projectDirs); \n vcScanner.processFiles();\n vcScanner.writer.close();\n vcScanner.writer1.close();\n \n BufferedReader reader = new BufferedReader(new FileReader(\"VC_scan_UI_Performance_noVC.csv\"));\n vcScanner.writer1 = new BufferedWriter(new FileWriter(\"VC_scan_UI_Performance_noVC_rows.csv\"));\n vcScanner.writer1.write(\"Family,Module,Product,Filename,Label,ViewName,Issue,\" +\n \"UI File,Model,Component, ListOfTables, MaxRows, Blocks, TableWithMaxRows,WHEREContainsBinds\\n\");\n \n String line = reader.readLine();\n while((line = reader.readLine()) != null){\n \n String[] parts = line.split(\",\");\n String fileName = ade_view_root + \"/\" + parts[3].trim(); \n XMLDocument voXml = null;\n if(parts[3].trim().startsWith(\"oracle\"))\n voXml = vcScanner.voXmlsFromOtherJars.get(parts[3].trim());\n //ViewCriteriaHelper.getMaxRows(fileName,writer1,line,voXml, exemptions,currentVCViolations);\n ViewCriteriaHelper.getMaxRows(fileName,vcScanner.writer1,line,voXml,vcScanner.noVCexemptedTables1, vcScanner.noVCexemptedTables2_maxrows,vcScanner.lovVOToBaseVOMapping,vcScanner.voMaxRowsCalculated);\n }\n \n vcScanner.writer1.close();\n \n BufferedWriter outputFileWriter = new BufferedWriter(new FileWriter(\"vc_perf_scan.txt\"));\n \n reader = new BufferedReader(new FileReader(\"VC_scan_UI_Performance.csv\"));\n line = reader.readLine();\n boolean hasViolation = false;\n while((line = reader.readLine()) != null){\n String[] parts = line.split(\",\");\n if(parts.length < 25) continue; \n \n String fileName = parts[22].trim();\n if(viewFilesInTransaction.contains(fileName)){\n hasViolation = true;\n if(line.contains(\"savedSearch\"))\n outputFileWriter.write(\"Issue: SavedSearchBadViewCriteriaItems\\n\");\n else\n outputFileWriter.write(\"Issue: BadViewCriteriaItems\\n\");\n outputFileWriter.write(\"VO FileName: \" + parts[3] + \"\\n\");\n outputFileWriter.write(\"ViewAttribute: \" + parts[6].trim() + \"\\n\");\n outputFileWriter.write(\"ViewCriteria Name: \" + parts[21] + \"\\n\");\n outputFileWriter.write(\"Table Name: \" + parts[8] + \"\\n\");\n outputFileWriter.write(\"Column Name: \" + parts[7] + \"\\n\");\n outputFileWriter.write(\"Column position in index: \" + parts[16] + \"\\n\");\n outputFileWriter.write(\"UI File: \" + parts[22] + \"\\n\"); \n outputFileWriter.write(\"Model value: \" + parts[23] + \"\\n\"); \n outputFileWriter.write(\"Component: \" + parts[24] + \"\\n\");\n outputFileWriter.write(\"Description:\" + \"Required and Selectively Required ViewCriteria items \" +\n \"used in query panels and LOVs should be backed by proper indexes\\n\\n\");\n }\n }\n \n reader.close();\n \n if(hasViolation)\n outputFileWriter.write(\"\\n\\nPlease see http://myforums.oracle.com/jive3/thread.jspa?threadID=871762&tstart=0 \" +\n \"for description of the issue and resolution.\\n\\n\\n\");\n \n reader = new BufferedReader(new FileReader(\"VC_scan_UI_Performance_noVC_rows.csv\"));\n line = reader.readLine();\n hasViolation = false;\n while((line = reader.readLine()) != null){\n String[] parts = line.split(\",\");\n if(parts.length < 15) continue; \n \n String fileName = parts[7].trim();\n if(viewFilesInTransaction.contains(fileName)){\n hasViolation = true;\n if(line.contains(\"savedSearch\"))\n outputFileWriter.write(\"Issue: SavedSearchNoViewCriteria\\n\");\n else\n outputFileWriter.write(\"Issue: NoViewCriteria\\n\");\n outputFileWriter.write(\"VO FileName: \" + parts[3] + \"\\n\");\n outputFileWriter.write(\"UI File: \" + parts[7] + \"\\n\"); \n outputFileWriter.write(\"Model: \" + parts[8] + \"\\n\");\n outputFileWriter.write(\"Component: \" + parts[9] + \"\\n\");\n outputFileWriter.write(\"Description:\" + parts[6] + \"\\n\\n\");\n }\n }\n \n reader.close(); \n \n if(hasViolation)\n outputFileWriter.write(\"\\n\\nPlease see http://myforums.oracle.com/jive3/thread.jspa?threadID=871763&tstart=0\" +\n \" for description of the issue and resolution.\\n\\n\");\n \n outputFileWriter.close();\n \n }", "public TestRenameFieldRefactoring(String name) {\r\n super(name);\r\n }", "public void mo21792Q() {\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void test0103() throws JavaModelException {\n\tIPath projectPath = env.addProject(\"Project\");\n\tenv.addExternalJars(projectPath, Util.getJavaClassLibs());\t\n\tenv.removePackageFragmentRoot(projectPath, \"\");\n\tIPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n\tIPath classTest1 = env.addClass(root, \"p1\", \"Test1\",\n\t\t\"package p1;\\n\" +\n\t\t\"public class Test1 {\\n\" +\n\t\t\" // TODO: marker only\\n\" +\n\t\t\"}\\n\"\n\t);\n\tfullBuild();\n\tProblem[] prob1 = env.getProblemsFor(classTest1);\n\texpectingSpecificProblemFor(classTest1, new Problem(\"p1\", \"TODO : marker only\", classTest1, 38, 55, -1));\n\tassertEquals(JavaBuilder.GENERATED_BY, prob1[0].getGeneratedBy());\n}", "public void projectModified() { }", "public void projectModified() { }", "private void runRefactoring() {\r\n Refactoring refactoring = createRefactoring();\r\n\r\n // Update the code\r\n try {\r\n refactoring.run();\r\n } catch (RefactoringException re) {\r\n JOptionPane.showMessageDialog(null, re.getMessage(), \"Refactoring Exception\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n\r\n updateSummaries();\r\n\r\n // Update the GUIs\r\n ReloaderSingleton.reload();\r\n }", "public void mo21785J() {\n }", "public void testBug364450() throws JavaModelException {\n //$NON-NLS-1$\n IPath projectPath = env.addProject(\"Project\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n //$NON-NLS-1$\n env.setOutputFolder(projectPath, \"bin\");\n IPath wPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"w\", //$NON-NLS-1$ //$NON-NLS-2$\n \"W\", \"package w;\\n\" + \"public class W {\\n\" + //$NON-NLS-1$\n \"\tprivate w.I i;}\");\n IPath aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n fullBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(wPath, new Problem(\"W\", \"w.I cannot be resolved to a type\", wPath, 37, 40, CategorizedProblem.CAT_TYPE, IMarker.SEVERITY_ERROR));\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n incrementalBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n env.removeProject(projectPath);\n }", "public interface C5138c {\n /* renamed from: e */\n void mo25968e(TemplateInfo templateInfo);\n\n /* renamed from: f */\n void mo25969f(TemplateInfo templateInfo);\n}", "private SourcecodePackage() {}", "public void method_4270() {}", "public void smell() {\n\t\t\n\t}", "public Object fix(IModule module);", "public void testMoveCU2() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class C extends MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = fragment.createCompilationUnit(\"C.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[] { file }, new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor));\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n // moved and changed\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n // changed\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo21793R() {\n }", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "public void testMoveCuWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n buf = new StringBuffer();\n buf.append(\"package org.test1;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = otherFragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[0], new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor), false);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n // moved and changed\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n // replaced\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public NbRenameRefactoringPlugin(AbstractRefactoring refactoring) {\n super(refactoring);\n }", "public void mo21789N() {\n }", "public void mo21795T() {\n }", "public void m23075a() {\n }", "public void mo115188a() {\n }", "interface C2088h {\n /* renamed from: a */\n void mo33697a(ZipFile zipFile, Set<C2090j> set) throws IOException;\n}", "public void testClasspathFileChange() throws JavaModelException {\n IPath projectPath = env.addProject(\"Project\");\n //$NON-NLS-1$\n env.removePackageFragmentRoot(projectPath, \"\");\n //$NON-NLS-1$\n IPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n //$NON-NLS-1$\n env.setOutputFolder(projectPath, \"bin\");\n IPath classTest1 = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n root, //$NON-NLS-1$ //$NON-NLS-2$\n \"p1\", //$NON-NLS-1$ //$NON-NLS-2$\n \"Test1\", //$NON-NLS-1$\n \"package p1;\\n\" + //$NON-NLS-1$\n \"public class Test1 extends Zork1 {}\");\n // not yet on the classpath\n //$NON-NLS-1$\n IPath src2Path = env.addFolder(projectPath, \"src2\");\n //$NON-NLS-1$\n IPath src2p1Path = env.addFolder(src2Path, \"p1\");\n //$NON-NLS-1$ //$NON-NLS-2$\n env.addFile(//$NON-NLS-1$ //$NON-NLS-2$\n src2p1Path, //$NON-NLS-1$ //$NON-NLS-2$\n \"Zork1.java\", //$NON-NLS-1$\n \"package p1;\\n\" + //$NON-NLS-1$\n \"public class Zork1 {}\");\n fullBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(classTest1, new Problem(\"src\", \"Zork1 cannot be resolved to a type\", classTest1, 39, 44, CategorizedProblem.CAT_TYPE, IMarker.SEVERITY_ERROR));\n //----------------------------\n // Step 2\n //----------------------------\n //$NON-NLS-1$\n StringBuffer buffer = new StringBuffer(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n //$NON-NLS-1$\n buffer.append(\"<classpath>\\n\");\n //$NON-NLS-1$\n buffer.append(\" <classpathentry kind=\\\"src\\\" path=\\\"src\\\"/>\\n\");\n // add src2 on classpath through resource change //$NON-NLS-1$\n buffer.append(\" <classpathentry kind=\\\"src\\\" path=\\\"src2\\\"/>\\n\");\n String[] classlibs = Util.getJavaClassLibs();\n for (int i = 0; i < classlibs.length; i++) {\n //$NON-NLS-1$ //$NON-NLS-2$\n buffer.append(\" <classpathentry kind=\\\"lib\\\" path=\\\"\").append(classlibs[i]).append(\"\\\"/>\\n\");\n }\n //$NON-NLS-1$\n buffer.append(\" <classpathentry kind=\\\"output\\\" path=\\\"bin\\\"/>\\n\");\n //$NON-NLS-1$\n buffer.append(\"</classpath>\");\n boolean wasAutoBuilding = env.isAutoBuilding();\n try {\n // turn autobuild on\n env.setAutoBuilding(true);\n // write new .classpath, will trigger autobuild\n //$NON-NLS-1$\n env.addFile(projectPath, \".classpath\", buffer.toString());\n // ensures the builder did see the classpath change\n env.waitForAutoBuild();\n expectingNoProblems();\n } finally {\n env.setAutoBuilding(wasAutoBuilding);\n }\n }", "public void test05() {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"crazy\");\r\n rfr.setNewName(\"changed\");\r\n\r\n boolean exceptionThrown = false;\r\n\r\n try {\r\n rfr.run();\r\n } catch (RefactoringException re) {\r\n exceptionThrown = true;\r\n assertEquals(\"Incorrect exception\", \"No field named crazy is contained in RenameFieldTest\", re.getMessage());\r\n }\r\n\r\n assertTrue(\"No exception thrown\", exceptionThrown);\r\n }", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public void mo23813b() {\n }", "public void activeCompilerChanged() { }", "protected ChangeAnalyzer() {\r\n }", "public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {\n\n\n addCodeCheckAPI(project);\n\n //Create a second thread for the CodeCheck fix\n CallFixThread cf = new CallFixThread();\n try {\n\n //get the argument\n PsiExpression arg = (PsiExpression) descriptor.getPsiElement();\n //get the current instance of IntelliJ and create a \"factory\" to generate better code\n PsiElementFactory factory = JavaPsiFacade.getInstance(project).getElementFactory();\n\n\n //create a safer call to CodeCheck.validator\n PsiMethodCallExpression safeCall =\n (PsiMethodCallExpression) factory.createExpressionFromText(\n \"CodeCheck.validator.getValidInputString(a)\", null);\n //replace our code with our safer call\n safeCall.getArgumentList().getExpressions()[0].replace(arg);\n arg.replace(safeCall);\n\n } catch (IncorrectOperationException e) {\n LOG.error(e);\n\n }\n\n\n\n\n\n\n\n\n }", "void mo57277b();", "public void mo3376r() {\n }", "private InternalRefactoringProcessor(List<EObject> selection){\r\n\t\t\t\tsuper(getParent(), selection, applyRefactoring());\t\t\t\t\r\n\t\t}", "static void feladat6() {\n\t}", "@Override\n\tpublic void suggestExchange() {\n\t\t\n\t}", "void rustAndMahem() {\n //TODO: See rules\n }", "private void scanAndPatchIfNeeded( FunctionName name ) {\n String className = name.className;\n String sourceFile = null;\n WasmInstruction instr = null;\n try {\n ClassFile classFile = classFileLoader.get( className );\n sourceFile = classFile.getSourceFile();\n MethodInfo method = classFile.getMethod( name.methodName, name.signature );\n method = options.functions.replace( name, method );\n\n Code code = method.getCode();\n javaCodeBuilder.buildCode( code, method );\n\n boolean patched = false;\n List<WasmInstruction> instructions = new ArrayList<>( javaCodeBuilder.getInstructions() );\n for( int i = 0; i < instructions.size(); i++ ) {\n instr = instructions.get( i );\n switch( instr.getType() ) {\n case Global:\n WasmGlobalInstruction global = (WasmGlobalInstruction)instr;\n String fieldClassName = global.getFieldName().className;\n if( className.equals( fieldClassName ) ) {\n continue; // field in own class\n }\n for( Iterator<FunctionName> it = clinits.iterator(); it.hasNext(); ) {\n FunctionName clinit = it.next();\n if( fieldClassName.equals( clinit.className ) ) {\n instructions.add( new WasmCallInstruction( clinit, instr.getCodePosition(), instr.getLineNumber(), options.types, false ) );\n i++;\n patched = true;\n it.remove();\n scanAndPatchIfNeeded( clinit );\n }\n }\n break;\n case Call:\n //TODO\n }\n }\n\n if( patched ) {\n options.functions.markAsNeededAndReplaceIfExists( new SyntheticFunctionName( className, name.methodName, name.signature ) {\n @Override\n protected boolean hasWasmCode() {\n return true;\n }\n\n protected WasmCodeBuilder getCodeBuilder( WatParser watParser ) {\n WasmCodeBuilder codebuilder = watParser;\n watParser.reset( null, null, null );\n codebuilder.getInstructions().addAll( instructions );\n return watParser;\n }\n } );\n }\n } catch( IOException ex ) {\n throw WasmException.create( ex, sourceFile, className, name.methodName, instr == null ? -1 : instr.getLineNumber() );\n }\n\n }" ]
[ "0.65831226", "0.65831226", "0.5901177", "0.5890599", "0.58077073", "0.5760844", "0.56282866", "0.56282866", "0.55874276", "0.55874276", "0.5557312", "0.5557312", "0.5532849", "0.55295205", "0.55295205", "0.55120337", "0.5504304", "0.5504304", "0.54805696", "0.5470952", "0.5468409", "0.5466859", "0.54409724", "0.5438229", "0.5438229", "0.5415758", "0.5415758", "0.5402853", "0.53895307", "0.5375341", "0.5352276", "0.5352276", "0.5315543", "0.5303963", "0.5289878", "0.52882314", "0.52759403", "0.5271017", "0.52582175", "0.5251594", "0.52410686", "0.5201125", "0.5199435", "0.5199435", "0.519344", "0.51910233", "0.5180238", "0.5176247", "0.51751065", "0.5171115", "0.51612234", "0.5153841", "0.51485306", "0.5110652", "0.51084834", "0.51065093", "0.51042277", "0.51006997", "0.5098807", "0.50973654", "0.5096887", "0.50957245", "0.508381", "0.508381", "0.5082111", "0.5068404", "0.50566894", "0.5056588", "0.50469327", "0.50425327", "0.5026429", "0.50212425", "0.5006978", "0.50047266", "0.4998095", "0.49934146", "0.49787405", "0.49571404", "0.49439615", "0.49326715", "0.49303207", "0.49251512", "0.49237573", "0.49210724", "0.49206376", "0.49167186", "0.49163443", "0.49151176", "0.49151176", "0.49138093", "0.49116856", "0.4901416", "0.48958787", "0.4893557", "0.48929358", "0.48881906", "0.48880678", "0.4887447", "0.48859367", "0.4881844" ]
0.52461606
40
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_privacy_politic, container, false); unbinder = ButterKnife.bind(this, view); setTexto(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Metodo para cambiar el texto
private void setTexto() { textViewPolitica.setText(Html.fromHtml(politica)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void txt() {\n\n\t}", "String getToText();", "public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "String getTransformedText();", "@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}", "@Override\n public void escribir(String dato,JTextPane jtxtPane) {\n txt.escribir(dato,jtxtPane);\n }", "public String getPlainText();", "void printTextToAnotherMedium(String content){\n }", "@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "@Override\n public abstract String asText();", "public String text();", "@Override\n\tpublic String getText() {\n\t\treturn \"MMS: \" + text;\n\t}", "public String getText();", "public String getText();", "public String getText();", "public String getText();", "@Override\n public void showText(String s){\n }", "Text createText();", "void printTextToConsole(String content){\n }", "public void setExtraText(String string) {\n\t\t\n\t}", "public abstract String getText();", "public abstract String getText();", "public abstract String getText();", "public abstract String getText();", "public String text() { return text; }", "public String getContent() {\r\n \r\n return text;\r\n }", "public abstract String text();", "public abstract String text();", "public String getTexto() {\n return texto;\n }", "public String getAboutBoxText();", "protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}", "@Override\n public String toTxt() {\n return this.content;\n }", "public void leseTextEin()\r\n\t{\n\t\tif( this.text != \"\" )\r\n\t\t\treturn;\r\n\t\t\r\n\t StringBuffer buffer = new StringBuffer();\r\n\t BufferedReader input = null;\r\n\t \r\n\t try \r\n\t {\r\n\t \tinput = new BufferedReader( new FileReader(this.dateipfad) );\r\n\t \tString line = null; \r\n\t \twhile ((line=input.readLine()) != null)\r\n\t \t{\r\n\t \t\tbuffer.append(line); \r\n\t \t\tbuffer.append(System.getProperty(\"line.separator\"));\r\n\t \t}\r\n\t }\r\n\t catch (IOException ex)\r\n\t { ex.printStackTrace(); }\r\n\t finally \r\n\t {\r\n\t \ttry\r\n\t \t{\r\n\t \t\tif (input!= null) \r\n\t \t\t\tinput.close();\r\n\t \t}\r\n\t \tcatch (IOException ex)\r\n\t \t{ ex.printStackTrace(); }\r\n\t }\r\n\t this.text = buffer.toString();\r\n\t}", "@Override\n public void add_content() {\n Scanner _thisText = new Scanner(System.in);\n System.out.println(\"Enter Ad text:\");\n _adContent = _thisText.nextLine();\n }", "public String saveText() {\n\n return \"!Základ!\\n\\n\" + \"Hrubá mzda : \" + wage + \"Kč\\n\" + \"Sleva poplatníka : \" + saveTextChoose + \"\\nSuperhrubá mzda : \" + calc.superGrossWage(wage) + \" Kč\\n\" + \"\\n!Zaměstnavatel odvody z mzdy!\\n\\n\" + \"Socialní pojištění : \" + calc.socialInsuranceEmployer(wage) + \" Kč\\n\" + \"Zdravotní pojištění: \" + calc.healthInsuranceEmployer(wage) + \" Kč\\n\" +\n \"\\n!Zaměstnanec odvody z mzdy!\\n\" + \"\\nSocialní pojištění : \" + calc.socialInsuranceEmployee(wage) + \" Kč\\n\" + \"Zdravotní pojištění : \" + calc.healthInsuranceEmployee(wage) + \" Kč\\n\" +\n \"\\n!Daň ze závislé činnosti!\\n\" + \"\\nZáklad daní :\" + calc.round(wage) + \" Kč\\n\" + \"Daň : \" + calc.tax(wage) + \" Kč \\n\" + \"Daň po odpoču slevy : \" + calc.afterDeductionOfDiscounts(wage, choose) + \" Kč\\n\" +\n \"\\nČistá mzda : \" + calc.netWage(wage, choose) + \" Kč\";\n }", "public TextoCifrado(String textoCifrado) {\r\n\t\tthis.textoCifrado = new String(textoCifrado);\r\n\t}", "public CharSequence getText();", "public void copyText(){\n try{\n if(mCursor.isSelected()){\n mClipboardManager.setTextToClipboard(getText().subContent(mCursor.getLeftLine(),\n mCursor.getLeftColumn(),\n mCursor.getRightLine(),\n mCursor.getRightColumn()).toString());\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "protected Text getText() {\n \t\treturn text;\n \t}", "public abstract void setText(String txt);", "protected abstract String childSavingTextLine();", "public String getInfoText();", "String text();", "public void copyText() {\n ((ClipboardManager) getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(\"textFromCoolapk\", this.mBinding.text.getText()));\n Toast.show(getActivity(), \"结果已复制\");\n }", "public void cosoleText(String line)\n\t{\n\t\tconsole.setText(line);\n\t}", "protected String getTextContent()\n {\n return super.getText().trim();\n }", "void baInfo(String text);", "public void pasteText(){\n try{\n CharSequence text = mClipboardManager.getTextFromClipboard();\n if(text != null && mConnection != null){\n mConnection.commitText(text, 0);\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn text.toString();\r\n\t}", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setTexto(String t)\r\n {\r\n texto = t;\r\n }", "@Override\n public String toString() {\n return text;\n }", "@Override\r\n\tpublic String getText(Object object) {\r\n\t\treturn super.getText(object);\r\n\t}", "public abstract String getContentString();", "void addHadithText(Object newHadithText);", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "String getFromText();", "public MarcoAreaTexto() {\r\n \r\n super(\"Demostración JTextArea\");\r\n Box cuadro = Box.createHorizontalBox();\r\n String demo = \"Texto de ejemplo\\npara mostrar como\\n\" +\r\n \"se copia texto por\\neventoexterno (Salu2)\";\r\n \r\n areaTexto1 = new JTextArea(demo, 10, 15); \r\n cuadro.add(new JScrollPane(areaTexto1) );\r\n copiar = new JButton(\"Copiar >>> \");\r\n cuadro.add(copiar);\r\n copiar.addActionListener(\r\n \r\n new ActionListener() {\r\n \r\n public void actionPerformed(ActionEvent event) {\r\n \r\n areaTexto2.setText(areaTexto1.getSelectedText() );\r\n } //Fin del método actionPerformed\r\n } //Clase interna anónima\r\n ); //Clase interna anónima\r\n \r\n areaTexto2 = new JTextArea(10, 15);\r\n areaTexto2.setEditable(false);\r\n cuadro.add(new JScrollPane(areaTexto2) );\r\n add(cuadro);\r\n }", "public void setText(String text){\n String _text = dcode.enCode(new String[] { encodeType, title, passWd, text });\n if(statusKey == ALRIGHT){\n setFileText(/*ccode == null ? */_text/* : ccode.enCrype(_text)*/);\n } else{\n System.err.println(\"You can't writes this file.\");\n System.err.println(\"This file contains unknown encode or is encrypted.\");\n }\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "boolean saveMyNoteText(String myNote);", "void sendText(String content);", "public String getText(){\r\n\t\treturn text;\r\n\t}", "default String getClipboardText() {\n byte[] base64decodedBytes = Base64\n .getMimeDecoder()\n .decode(getClipboard(ClipboardContentType.PLAINTEXT));\n return new String(base64decodedBytes, StandardCharsets.UTF_8);\n }", "public String getText(){\r\n return text;\r\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "@Override\n\tpublic String type() {\n\t\treturn \"TEXT\";\n\t}", "void copyTextToTextBox(String text,boolean isMaxSet);", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "public void addText(String texto) {\n\t\tthis.texto = texto == null ? \"\" : texto.trim();\n\t}", "public java.lang.String getText() {\n \t\treturn text;\n \t}", "public String text(){ // no input , some output\n\t\t\tSystem.out.println(\"text method\");\n\t\t\tString s = \"selenium\";\n\t\t\treturn s ;\n\t\t}", "public void onTextCopy()\n\t{\n\t}" ]
[ "0.6957875", "0.6623323", "0.6538857", "0.64835554", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.64099324", "0.6370774", "0.63410324", "0.6332441", "0.6315632", "0.6297714", "0.62586457", "0.62586457", "0.62586457", "0.62586457", "0.62586457", "0.62586457", "0.62586457", "0.6256084", "0.62327206", "0.62092215", "0.6184763", "0.6184763", "0.6184763", "0.6184763", "0.61699575", "0.6161215", "0.6153242", "0.61509913", "0.6136371", "0.6136371", "0.6136371", "0.6136371", "0.61276037", "0.61242604", "0.6085183", "0.6085183", "0.60633713", "0.603598", "0.6014274", "0.60058624", "0.6005499", "0.59912324", "0.59870064", "0.5979489", "0.5977318", "0.5974797", "0.5967859", "0.5951553", "0.5949724", "0.59449387", "0.5939321", "0.5930406", "0.5926507", "0.5923564", "0.59221756", "0.5918468", "0.58978057", "0.5890447", "0.58831656", "0.58795047", "0.5875374", "0.5861867", "0.5861404", "0.5855447", "0.5850716", "0.5846392", "0.5842194", "0.583578", "0.58103675", "0.5804089", "0.580213", "0.5794787", "0.5794586", "0.5788323", "0.5788323", "0.5788323", "0.5788323", "0.5788323", "0.5788323", "0.57853615", "0.5780027", "0.5779103", "0.5779103", "0.5779103", "0.5779103", "0.5779103", "0.5779103", "0.5779103", "0.5779103", "0.57746375", "0.57590336", "0.5758199", "0.57395476" ]
0.0
-1
void hitBlock(GVector2f scale, int damage);
default void onHitPlayer(@NotNull String name, int damage) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}", "@Override\n public void hit(int damage)\n {\n state.hit(damage, this);\n }", "void hitEvent(Block beingHit, Ball hitter);", "void hitEvent(Block beingHit, Ball hitter);", "public void hit(int melee_dmg,int range_dmg) {\n melee_dmg=this.current_atk-30;\n range_dmg=this.current_atk-60;\n }", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "@Override\r\n public void onHit(int damage){\n if(box2body != null){\r\n hp -= damage;\r\n screen.getGameManager().get(\"Sounds/orc-34-hit.wav\", Sound.class).play();\r\n if(this.hp <= 0) {\r\n screen.bodiesToDelete.add(box2body);\r\n deleteFlag = true;\r\n screen.spawnedCreatures.remove(this);\r\n screen.getGameManager().get(\"Sounds/orc-32-death.wav\", Sound.class).play();\r\n\r\n //Award Experience\r\n screen.getPlayer().awardExperience(this.experienceValue);\r\n screen.getPlayer().increaseKillCount();\r\n }\r\n }\r\n //Attack player when damaged\r\n //Prevents player from sniping monsters using Wander AI\r\n if(currentState != State.ATTACKING){\r\n Vector2 orcPosition = new Vector2(box2body.getPosition().x, box2body.getPosition().y);\r\n Vector2 playerPosition = new Vector2(screen.getPlayer().box2body.getPosition().x, screen.getPlayer().box2body.getPosition().y);\r\n\r\n currentState = State.HASBEENATTACKED;\r\n velocity = new Vector2(playerPosition.x - orcPosition.x, playerPosition.y - orcPosition.y);\r\n box2body.setLinearVelocity(velocity.scl(speed));\r\n }\r\n }", "@Override\r\n public void hitEvent(Block beingHit, Ball hitter) {\n this.currentScore.increase(5);\r\n // and destroying a block is worth and additional 10 points\r\n if (beingHit.getHitPointsNumber() == 0) {\r\n this.currentScore.increase(10);\r\n }\r\n }", "@Override\n\tpublic void getHit(int damage) {\n\t\tsuper.getHit(damage);\n\t}", "@Override\n\t\tpublic void hit(Npc attacker, Mob defender, Hit hit) {\n\t\t}", "public void takeDamage(int damage);", "@Override\r\n public void hitEvent(Block beingHit, Ball hitter) {\n this.currentScore.increase(5);\r\n if (beingHit.getHitPoints() == 1) {\r\n this.currentScore.increase(10);\r\n }\r\n }", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "public void hit() {\n if (explodeTime == 0) {\n if (isExplosive) {\n region = explodeAnimation.getKeyFrame(explodeTime, false);\n explodeTime += Gdx.graphics.getDeltaTime();\n width = region.getRegionWidth();\n height = region.getRegionHeight();\n position.sub(width / 2, height / 2);\n direction = new Vector2(1, 0);\n explosionSound.play();\n } else {\n impactSound.play();\n active = false;\n }\n }\n }", "@Override\n\tpublic void takeHit(int attack) {\n\n\t}", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "private void takeDamage(int damage){ health -= damage;}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "@Override\n public void hit(int atk) {\n hp = hp - atk;\n }", "@Override\n public void attack(Entity e) {\n e.hit(atk);\n }", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "void takeDamage(int points) {\n this.health -= points;\n }", "public void setBorderDamagePerBlock(double damage)\n {\n borderDamagePerBlock = damage;\n }", "boolean takeDamage(int dmg);", "void impact(GameObject object) {\n\n }", "@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\r\n\t}", "public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) {}", "@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}", "public void hitEvent(Block beingHit, Ball hitter) {\r\n this.currentScore.increase(5);\r\n if (beingHit.getHitPoints() == 0) {\r\n this.currentScore.increase(10);\r\n }\r\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "PlayingSquare giveDamage(int damage);", "public void func_180430_e(float distance, float damageMultiplier) {}", "float shouldAggroOnHit(IGeneticMob geneticMob, EntityLiving attacker);", "public int giveDamage();", "public void Hit()\n {\n this.numLives--;\n //Oscillate visible and not if the number of lives is greater than zero\n if(this.numLives > 0)\n {\n this.damaged = true;\n this.Blink(1);\n\n }\n }", "@Override\n\tpublic void onHit() {\n\t\t\n\t}", "public void beAttacked(int damage) {\r\n\t\tif (health > damage) {\r\n\t\t\thealth -= damage;\r\n\t\t}else {\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void hit(DamageEvent e) {\n\t\t\t\tonHit(e.dmged, e.item);\n\t\t\t}", "public void takeDamage(int damage){\n\t\thealth -= damage;\n\t\tif(health<= 0) {\n\t\t\tspawnNew();\n\t\t}\n\t}", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "public void takeDamage(int dmg){ \r\n\t\tif(hitPoints - dmg >= 0){\r\n\t\t\tSystem.out.print(this.getName() + \" took \" + dmg + \" damage! \\n\");\r\n\t\t\tSystem.out.print(this.name + \"'s Hit Points: \" + hitPoints + \" ---> \" + (hitPoints-dmg) + \"\\n\");\r\n\t\t\thitPoints -= dmg;\r\n\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.print(this.getName() + \" took \" + dmg + \" damage! \\n\");\r\n\t\t\tSystem.out.print(this.name + \"'s Hit Points: \" + hitPoints + \" ---> \" + 0 + \"\\n\");\r\n\t\t\thitPoints = 0;\r\n\t\t}\r\n\t\tif(hitPoints == 0){\r\n\t\t\tthis.isAlive = false;\r\n\t\t\tSystem.out.print(this.name + \" has been incapacitated.\\n\");\r\n\t\t}\r\n\r\n\t}", "@Override\n public void applyOnHit(LivingEntity user, LivingEntity target, int level, EntityDamageByEntityEvent event) {\n if (Math.random() * 100 > settings.get(CHANCE, level)) return;\n\n final double range = settings.get(RANGE, level);\n final double damage = settings.get(DAMAGE, level);\n final double speed = settings.get(SPEED, level);\n for (Entity entity : user.getNearbyEntities(range, range, range)) {\n if (!(entity instanceof LivingEntity) || Protection.isAlly(user, (LivingEntity)entity)) continue;\n\n ((LivingEntity) entity).damage(damage, user);\n entity.setVelocity(user.getLocation().subtract(entity.getLocation()).toVector().multiply(speed));\n }\n }", "@EventHandler\n\tpublic void onSignHit (BlockDamageEvent event){\n\t\tdebugOut(\"BlockDamageEvent\");\n\t\t//getLogger().info(\"MEEP\");\n\t\tif(event.getBlock().getType()==Material.SIGN_POST || event.getBlock().getType()==Material.WALL_SIGN){\n\t\t\tdebugOut(\"A sign was done damage.\");\n\t\t\t//Credit: https://bukkit.org/threads/how-to-convert-block-class-to-sign-class.102313/\n\t\t\tBlockState blockState = event.getBlock().getState();\n\t\t\tSign sign = (Sign) blockState;\n\t\t\tif(isMakingShop(event.getPlayer())){\n\t\t\t\t//Do this if the player hits a shop while making one\n\t\t\t\tdebugOut(event.getPlayer()+\" is making a shop\");\n\t\t\t\tString[] playerHashInfo = PlayerMakingShop.get(event.getPlayer().getName() ).split(\",\");\n\t\t\t\tInteger shopX = event.getBlock().getX();\n\t\t\t\tInteger shopY = event.getBlock().getY();\n\t\t\t\tInteger shopZ = event.getBlock().getZ();\n\t\t\t\tInteger playerX = Integer.valueOf(playerHashInfo[0]);\n\t\t\t\tInteger playerY = Integer.valueOf(playerHashInfo[1]);\n\t\t\t\tInteger playerZ = Integer.valueOf(playerHashInfo[2]);\n\t\t\t\tString shopWorld = event.getBlock().getWorld().getName();\n\t\t\t\tString playerWorld = playerHashInfo[3];\n\t\t\t\tdebugOut(\"Shop: \"+shopX+shopY+shopZ+shopWorld);\n\t\t\t\tdebugOut(\"Play: \"+playerX+playerY+playerZ+playerWorld);\n\t\t\t\tif(shopX.intValue()==playerX.intValue() && shopY.intValue()==playerY.intValue() && shopZ.intValue() == playerZ.intValue() && shopWorld.equals(playerWorld)){\n\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop that (s)he was creating\");\n\t\t\t\t\tItemStack equipped = event.getPlayer().getItemInHand();\n\t\t\t\t\tif(equipped.getType()!=Material.AIR && equipped.getType()!=Material.WRITTEN_BOOK){\n\t\t\t\t\t\tdebugOut(\"Begin establishing Shop at xyz (\"+shopX+\",\"+shopY+\",\"+shopZ+\") in \"+shopWorld);\n\t\t\t\t\t\tString ownerUUID = playerHashInfo[4];\n\t\t\t\t\t\tString establisherUUID = playerHashInfo[5];\n\t\t\t\t\t\tplayerSuccess(event.getPlayer(), \"Success!\");\n\t\t\t\t\t\tString[] buyLine = sign.getLine(2).split(\" \");\n\t\t\t\t\t\tFloat buy = Float.valueOf(buyLine[1]);\n\t\t\t\t\t\tFloat sell = Float.valueOf(buyLine[3]);\n\t\t\t\t\t\testablishShop(ownerUUID, establisherUUID, event.getPlayer().getName(),shopX, shopY, shopZ, event.getBlock().getWorld(), equipped, buy, sell);\n\t\t\t\t\t}else if(equipped.getType()==Material.AIR){\n\t\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop with Air, which cannot be sold\");\n\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"cant-sell-air\") );\n\t\t\t\t\t}else if(equipped.getType()==Material.WRITTEN_BOOK) {\n\t\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop with a written book, which cannot be sold\");\n\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"cant-sell-book\") );\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" did not hit the shop the shop (s)he was creating\");\n\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"click-wrong-shop\"));\n\t\t\t\t\tif(shopX.intValue()==playerX.intValue()){\n\t\t\t\t\t\tdebugOut(\"X matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerX + \" does not equal \" + shopX);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopY.intValue()==playerY.intValue()){\n\t\t\t\t\t\tdebugOut(\"Y matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerY + \" does not equal \" + shopY);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopZ.intValue() == playerZ.intValue()){\n\t\t\t\t\t\tdebugOut(\"Z matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerZ + \" does not equal \" + shopZ);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopWorld.equals(playerWorld)){\n\t\t\t\t\t\tdebugOut(\"Worlds match\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerWorld + \" does not equal \" + shopWorld);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(sign.getLine(0).equals(getConfig().getString(\"sign-header\"))){\n\t\t\t\t//Do this if the player hit a shop, when he wasn't making one.\n\t\t\t\tInteger thisShopID = getShopID(event.getBlock().getX(), event.getBlock().getY(), event.getBlock().getZ(), event.getBlock().getWorld() );//GET FROM DATABASE\n\t\t\t\tdebugOut(event.getPlayer()+\" is not making a shop, but did click on a shop sign\");\n\t\t\t\tif(ActivePlayerShop.containsKey(event.getPlayer().getName())){\n\t\t\t\t\tInteger currentValue = ActivePlayerShop.get(event.getPlayer().getName());\n\t\t\t\t\tif(Integer.valueOf(currentValue)==Integer.valueOf(thisShopID) && Integer.valueOf(currentValue)!=0 ){\n\t\t\t\t\t\t//BUY FROM THE SHOP OR WITHDRAW\n\t\t\t\t\t\tdebugOut(\"Checking to see if the selected shop is owned\");\n\t\t\t\t\t\tString shopOwner = getShopOwner(thisShopID);\n\t\t\t\t\t\tif(shopOwner!=\"null\"){\n\t\t\t\t\t\t\tInteger currentStock = getStock(thisShopID);\n\t\t\t\t\t\t\tif(shopOwner.equals(event.getPlayer().getUniqueId().toString()) ){\n\t\t\t\t\t\t\t\tdebugOut(\"Shop is owned\");\n\t\t\t\t\t\t\t\t//Do shop owner stuff\n\t\t\t\t\t\t\t\tif(event.getPlayer().isSneaking()){\n\t\t\t\t\t\t\t\t\t//withdraw a stack\n\t\t\t\t\t\t\t\t\tdebugOut(\"withdrawing one stack -- attempt\");\n\t\t\t\t\t\t\t\t\tItemStack currentItem = getShopItem(thisShopID, true, sign.getLine(3) );\n\t\t\t\t\t\t\t\t\tInteger stackSize = currentItem.getMaxStackSize();\n\t\t\t\t\t\t\t\t\tif(Integer.valueOf(currentStock)>=stackSize){\n\t\t\t\t\t\t\t\t\t\t//Withdraw a stack\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"There are enough items in stock\");\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"The player can fit all of the items in inventory\");\n\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().getInventory().addItem(currentItem);\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-stackSize);\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"The player cannot fit all items in inventory\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is true -- dropping extra items on floor\");\n\t\t\t\t\t\t\t\t\t\t\t\t//Drop extra items on floor\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-stackSize);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is false -- cancelling trade\");\n\t\t\t\t\t\t\t\t\t\t\t\t//Do not sell\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t//Not enough in stock\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"There are not enough items in stock to withdraw a stack\");\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"not-enough-items\"));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t//withdraw one item\n\t\t\t\t\t\t\t\t\tdebugOut(\"withdrawing one item -- attempt\");\n\t\t\t\t\t\t\t\t\tif(Integer.valueOf(currentStock)>0){\n\t\t\t\t\t\t\t\t\t\t//Add one to player\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"In Stock\");\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Retrieving the item\");\n\t\t\t\t\t\t\t\t\t\tItemStack currentItem = getShopItem(thisShopID, false, sign.getLine(3) );\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Item retrieved\");\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player can fit item -- adding\");\n\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock by one...\");\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-1);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player cannot fit item\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is true -- dropping extra items on floor\");\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock by one...\");\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-1);\n\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is false -- cancelling trade\");\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Transaction Completed\");\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Out of Stock\");\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"out-of-stock\"));\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}else {\n\t\t\t\t\t\t\t\tdebugOut(\"Shop is not owned\");\n\t\t\t\t\t\t\t\t//Do consumer stuff\n\t\t\t\t\t\t\t\tdebugOut(\"getShopBuyPrice\");\n\t\t\t\t\t\t\t\tfloat buyPrice = getShopBuyPrice(thisShopID);\n\t\t\t\t\t\t\t\tdebugOut(\"getVaultbalance\");\n\t\t\t\t\t\t\t\tfloat customerBalance = (float) getVaultBalance(event.getPlayer().getUniqueId());\n\t\t\t\t\t\t\t\tdebugOut(\"Creating 'currentItem'\");\n\t\t\t\t\t\t\t\tItemStack currentItem;\n\t\t\t\t\t\t\t\tif(event.getPlayer().isSneaking()){\n\t\t\t\t\t\t\t\t\t//buy a stack\n\t\t\t\t\t\t\t\t\tdebugOut(\"attempting to buy a stack\");\n\t\t\t\t\t\t\t\t\tcurrentItem = getShopItem(thisShopID, true, sign.getLine(3));\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t//buy one item\n\t\t\t\t\t\t\t\t\tdebugOut(\"attempting to buy one item\");\n\t\t\t\t\t\t\t\t\tcurrentItem = getShopItem(thisShopID, false, sign.getLine(3));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(currentStock>=currentItem.getAmount()){\n\t\t\t\t\t\t\t\t\tdebugOut(\"Item has sufficient stock\");\n\t\t\t\t\t\t\t\t\tif(customerBalance < (buyPrice*currentItem.getAmount()) ){\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Insufficient Funds -- player has: \"+customerBalance+\" | the shop needs: \"+(buyPrice*currentItem.getAmount() ));\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"insufficient-funds\"));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player has sufficient funds: \"+customerBalance);\n\t\t\t\t\t\t\t\t\t\tUUID ownerUUID = UUID.fromString(getShopOwner(thisShopID));\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\t//Do transaction\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player can fit item -- adding\");\n\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock\");\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Changing funds...\");\n\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(ownerUUID, buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(event.getPlayer().getUniqueId(), -buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().sendMessage(ChatColor.GREEN + \"You have bought \"+ChatColor.YELLOW+currentItem.getAmount()+\" \"+ChatColor.GREEN+\" item(s) for \"+ChatColor.YELLOW+buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player cannot fit item\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is enabled -- continuing transaction\");\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock\");\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Changing funds...\");\n\t\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(ownerUUID, buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(event.getPlayer().getUniqueId(), -buyPrice*currentItem.getAmount()) ;\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Notifying Player...\");\n\t\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().sendMessage(ChatColor.GREEN + \"You have bought \"+ChatColor.YELLOW+currentItem.getAmount()+\" \"+ChatColor.GREEN+\" item(s) for \"+ChatColor.YELLOW+buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is not enabled -- cancelling transaction\");\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tdebugOut(\"Not enough in stock\");\n\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"not-enough-items\"));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tdebugOut(\"This shop does not exist; is it finished being created?\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdebugOut(\"A shop was activated, but it was not this one; changing to this shop\");\n\t\t\t\t\t\tActivePlayerShop.put(event.getPlayer().getName(), thisShopID);\n\t\t\t\t\t\tshowShopInfo(thisShopID, event.getPlayer());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tdebugOut(\"No shop activated, activating it\");\n\t\t\t\t\tActivePlayerShop.put(event.getPlayer().getName(), thisShopID);\n\t\t\t\t\tshowShopInfo(thisShopID, event.getPlayer());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void handleAttack(int damage) {\n this.health -= damage;\n }", "public Spit(float x, float y, int width, int height, Rectangle bounds, Handler handler, float velX, float velY,int value, float damage, float speed, int range/*, BufferedImage... args*/)\n {\n super(x,y,width,height,bounds,handler,velX,velY,value,damage,speed,range,Weapons.mouth/*,args*/);\n }", "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHitPoints() == 0) {\r\n this.currentScore.increase(10);\r\n return;\r\n }\r\n\r\n this.currentScore.increase(5);\r\n }", "public abstract int doDamage(int time, GenericMovableUnit unit, Unit target);", "public abstract void attack(Vector2 spawnPos, Vector2 target);", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tfor (Damage damage : actionAttack.damages) {\r\n\t\t\t\t\t\t\t\tBattlerSprite attacked = damage.target.getTag();\r\n\t\t\t\t\t\t\t\tattacked.takeHit(damage.damage);\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void hit(Graphics g) {\r\n\t\tthis.myDraw(g);\r\n\t\tsuper.loseHealth();\r\n\t\tg.drawImage(sprite,super.X(),super.Y(), null);\r\n\t\tfor(int i = 0; i < spits.size();i++) {\r\n\t\t\tspits.get(i).myDraw(g);\r\n\t\t}\r\n\t}", "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "public void specialize()\n {\n\tdef -= 200;\n\tdmg += 0.5;\n\tcounter += 1;\n }", "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "void decreaseHealth(Float damage);", "public void takesHit()\n {\n // TODO: replace this line with your code\n }", "public void attack(Entity entity) {\n\t}", "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "public void getDamage(int damagePoint){\n hp-=damagePoint;\n if(hp==0){\n alive=false;\n }\n }", "public void breakBlock(World world, int x, int y, int z, Block par5, int par6)\r\n/* 186: */ {\r\n/* 187:209 */ if ((world.getBlock(x, y, z) != FMPBase.getFMPBlockId()) && \r\n/* 188:210 */ ((world.getTileEntity(x, y, z) instanceof TileEntityTransferNode)))\r\n/* 189: */ {\r\n/* 190:211 */ TileEntityTransferNode tile = (TileEntityTransferNode)world.getTileEntity(x, y, z);\r\n/* 191:213 */ if (!tile.getUpgrades().isEmpty()) {\r\n/* 192:214 */ for (int i = 0; i < tile.getUpgrades().size(); i++)\r\n/* 193: */ {\r\n/* 194:215 */ ItemStack itemstack = (ItemStack)tile.getUpgrades().get(i);\r\n/* 195:216 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 196:217 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 197: */ EntityItem entityitem;\r\n/* 198:220 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 199: */ {\r\n/* 200:221 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 201:223 */ if (k1 > itemstack.stackSize) {\r\n/* 202:224 */ k1 = itemstack.stackSize;\r\n/* 203: */ }\r\n/* 204:227 */ itemstack.stackSize -= k1;\r\n/* 205:228 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 206:229 */ float f3 = 0.05F;\r\n/* 207:230 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 208:231 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 209:232 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 210:234 */ if (itemstack.hasTagCompound()) {\r\n/* 211:235 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 212: */ }\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215: */ }\r\n/* 216:241 */ if ((tile instanceof TileEntityTransferNodeInventory))\r\n/* 217: */ {\r\n/* 218:242 */ TileEntityTransferNodeInventory tileentity = (TileEntityTransferNodeInventory)tile;\r\n/* 219: */ \r\n/* 220:244 */ ItemStack itemstack = tileentity.getStackInSlot(0);\r\n/* 221:246 */ if (itemstack != null)\r\n/* 222: */ {\r\n/* 223:247 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 224:248 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 225: */ EntityItem entityitem;\r\n/* 226:251 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 227: */ {\r\n/* 228:252 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 229:254 */ if (k1 > itemstack.stackSize) {\r\n/* 230:255 */ k1 = itemstack.stackSize;\r\n/* 231: */ }\r\n/* 232:258 */ itemstack.stackSize -= k1;\r\n/* 233:259 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 234:260 */ float f3 = 0.05F;\r\n/* 235:261 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 236:262 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 237:263 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 238:265 */ if (itemstack.hasTagCompound()) {\r\n/* 239:266 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 240: */ }\r\n/* 241: */ }\r\n/* 242: */ }\r\n/* 243:271 */ world.func_147453_f(x, y, z, par5);\r\n/* 244: */ }\r\n/* 245: */ }\r\n/* 246:276 */ super.breakBlock(world, x, y, z, par5, par6);\r\n/* 247: */ }", "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "int hit();", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "@SubscribeEvent\n public void onPlayerClickGrassBlock(BonemealEvent event)\n {\n if (!event.getWorld().isRemote)\n {\n \t\n if (event.getBlock()==Blocks.GRASS.getDefaultState())\n {\n \tSystem.out.println(\"触发了骨粉对草方块施肥事件\");\n EntityLiving entityLiving = new EntityButterfly(event.getWorld());\n BlockPos pos = event.getPos();\n entityLiving.setPositionAndUpdate(pos.getX() , pos.getY()+1, pos.getZ());\n event.getWorld().spawnEntityInWorld(entityLiving);\n return;\n }\n }\n }", "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHits() <= 1) {\r\n beingHit.removeFromGame(this.gameLevel);\r\n this.remainingBlocks.decrease(1);\r\n }\r\n }", "@Override\n public void hitEvent(Block beingHit, Ball hitter) {\n //checking if we hit the death block\n //creating the upper left point of the death block\n Point upLeftDeathBlock = new Point(0.0, 600.0);\n if (beingHit.getCollisionRectangle().getUpperLeft().equals(upLeftDeathBlock)) {\n hitter.removeFromGame(this.gameLevel);\n this.remainingBalls.decrease(1);\n return;\n }\n //in regular cases\n return;\n\n }", "@Override\n public void attack(int damage)\n {\n EntityPirate target = this.world.getClosestTarget(this, EntityPirate.class, 50, true);\n //System.out.println(target.toString());\n \n float newtonForce = 1200F; //The amount of force applied to the projectile\n \n if(target != null)\n {\n Vector2 difference = target.getPos().cpy().sub(this.getPos()); //Get the difference vector\n difference.nor().scl(newtonForce); //Normalize it to a unit vector, and scale it\n new EntityWaterBomb(this.world, this.getPos().x, this.getPos().y, difference.x, difference.y, this, damage); \n } // target\n }", "@Override\n public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand,\n BlockHitResult hit) {\n return super.onUse(state, world, pos, player, hand, hit);\n }", "public void scaleAnimetion(SpriteBatch batch){\n }", "@Nonnull\n @Override\n public EnumActionResult onItemUse(@Nonnull EntityPlayer player, World world, @Nonnull BlockPos pos, EnumHand hand, @Nonnull EnumFacing facing, float hitX, float hitY, float hitZ) {\n // don't place the slab if unable to edit\n ItemStack stack = player.getHeldItem(hand);\n if(stack.getCount() != 0 && player.canPlayerEdit(pos.offset(facing), facing, stack)) {\n\n // try placing the slab at the current position\n // note that this requires the slab to be extended on the side the block was clicked\n if(tryPlace(player, stack, world, pos, facing)) {\n return EnumActionResult.SUCCESS;\n }\n // otherwise. try and place it in the block in front\n else if(this.tryPlace(player, stack, world, pos.offset(facing), null)) {\n return EnumActionResult.SUCCESS;\n }\n\n return super.onItemUse(player, world, pos, hand, facing, hitX, hitY, hitZ);\n }\n else {\n return EnumActionResult.FAIL;\n }\n }", "public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune) {\n/* 78 */ if (!worldIn.isRemote && worldIn.getGameRules().getGameRuleBooleanValue(\"doTileDrops\")) {\n/* */ \n/* 80 */ EntitySilverfish var6 = new EntitySilverfish(worldIn);\n/* 81 */ var6.setLocationAndAngles(pos.getX() + 0.5D, pos.getY(), pos.getZ() + 0.5D, 0.0F, 0.0F);\n/* 82 */ worldIn.spawnEntityInWorld((Entity)var6);\n/* 83 */ var6.spawnExplosionParticle();\n/* */ } \n/* */ }", "boolean takeDamage(DamageCount damage);", "public void receiveDamage(double damage) {\r\n health = health - damage;\r\n }", "@Override\n\tpublic void onHitPlayer(EntityDamageByEntityEvent e, Player damager, Player victim) {\n\t\t\n\t}", "public void attack(CreatureAttack attack, Creature attacked){\r\n if(successfulHit(attack, attacked)){\r\n attacked.attributes.health.hit(attack, attacked);\r\n }\r\n }", "public Shot(int damage) {\n\t\tthis.damage = damage;\n\t}", "public void weaken(float hit) {\n if (!isInvincible()) {\n hp -= hit;\n invincible = true;\n if (hp < 0) {\n hp = 0;\n }\n\n if(isWeak()){ //Play the death animation\n currentAnimation = deathAnimation;\n }\n }\n }", "void ponderhit();", "public boolean hitEntity(ItemStack var1, EntityLiving var2, EntityLiving var3)\r\n {\r\n if (this.toolMaterial == XCEnumToolMaterial.FORSAKEN)\r\n {\r\n var1.damageItem(1, var3);\r\n var2.setFire(30);\r\n return true;\r\n }\r\n else\r\n {\r\n var1.damageItem(1, var3);\r\n return true;\r\n }\r\n }", "@Override\n\t\t\tpublic void onDamaged(DamageEvent e) {\n\t\t\t\tonDamage(e.target, e.item);\n\t\t\t\tbounds.x = e.x;\n\t\t\t\tbounds.y = e.y;\n\t\t\t}", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }", "public void takeDamage(int dmg) {\n\t\thealth -= dmg;\n\t}", "public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {}", "public void setDamage(int damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "Float attack();", "public void takeDamage(int damage) {\r\n health -= damage;\r\n if(health<=0)setAlive(false);\r\n }", "public void attackEntity(Entity entity)\n/* 79: */ {\n/* 80:71 */ super.attackEntity(entity);\n/* 81: */ }", "public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }" ]
[ "0.68639195", "0.68639195", "0.68639195", "0.68234295", "0.6731923", "0.6686967", "0.6686967", "0.6636251", "0.64063007", "0.6391076", "0.6361029", "0.6334267", "0.62992597", "0.6290544", "0.6258954", "0.62255526", "0.6200185", "0.6193539", "0.6158172", "0.6150212", "0.61371434", "0.6136589", "0.60743797", "0.6004042", "0.6003334", "0.5967388", "0.5966585", "0.5965636", "0.59638566", "0.5962315", "0.5949977", "0.59449804", "0.59449804", "0.59414685", "0.593908", "0.591731", "0.59157646", "0.5898749", "0.5893239", "0.5892174", "0.5882079", "0.5860553", "0.58566296", "0.58295214", "0.5816444", "0.5810708", "0.5788034", "0.5785608", "0.5771144", "0.5768076", "0.5764237", "0.5760602", "0.5760307", "0.5745373", "0.57418704", "0.5726227", "0.5721641", "0.5720118", "0.5700471", "0.5684544", "0.5682535", "0.5682337", "0.56786144", "0.56680214", "0.5667826", "0.56664234", "0.5662576", "0.56415033", "0.56208247", "0.56207085", "0.5613113", "0.56099075", "0.5601394", "0.5600102", "0.55969363", "0.5594213", "0.5593984", "0.55904275", "0.55773765", "0.5574499", "0.55736876", "0.5572065", "0.5571466", "0.5570352", "0.55683285", "0.5552185", "0.5551192", "0.5549005", "0.55353767", "0.5521147", "0.55198985", "0.55193174", "0.5517283", "0.55157304", "0.5512382", "0.55118006", "0.55111617", "0.55106074", "0.5508595", "0.55007637" ]
0.5939458
34
Tato funkcia sa vola pri presusenie hry aby sa dalo ostatnym hracom vediet ze bola hra prerusena
void setCloseConnection();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "public void asetaTeksti(){\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public abstract String dohvatiKontakt();", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void sendeSpielfeld();", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void Ordenamiento() {\n\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "private void remplirPrestaraireData() {\n\t}", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "@Override\n public void perish() {\n \n }", "private static boolean poserTapis(){\n\t\tSystem.out.println(\"Choisisser une premiere case pour poser la premiere partie du tapis\");\n\t\tint premiereCaseTapis = console.obtenirDirection();\n\t\tint direction = premiereCaseTapis;\n\t\tint posXTapis = 0, posYTapis = 0;\n\n\t\t//Pose du premier carre de tapis\n\t\ttry{\n\t\t\tif(premiereCaseTapis == 1){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-2][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-2;\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 2){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion();\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 3){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()-2].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-2;\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion();\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\treturn false;\n\t\t}\n\n\n\n\n\t\tconsole.afficherJeu();\n\t\tSystem.out.println(\"Choisissez la deuxieme case\");\n\n\t\t//Pose du second petit carre de tapis\n\t\twhile(true){\n\t\t\tint d = console.obtenirDirection();\n\t\t\t//pour ne pas faire de demi tour ou erreur de d\n\t\t\tif(direction == 1 && d == 2 || direction == 2 && d == 1 || direction == 3 && d == 4 || direction == 4 && d == 3 || d<1 || d>4){\n\t\t\t\tconsole.afficherImpossibleChoisirDirection();\n\t\t\t} else {\n\t\t\t\ttry{\n\t\t\t\t\tif(d == 1){\n\t\t\t\t\t\tjeu.cases[posXTapis-1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 2){\n\t\t\t\t\t\tjeu.cases[posXTapis+1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 3){\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis-1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis+1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tjeu.getJoueurs()[tour-1].useTapis();\n\t\treturn true;\n\n\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void validerSaisie();", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\tString nombre = leerTexto(\"Ingrese un nombre:\");\r\n\tint edad = leerNumero(\"Ingrese su edad:\");\r\n\tString rut = leerTexto(\"Ingresa el RUT:\");\r\n\tchar genero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tfloat peso = leerNumero(\"Ingrese peso:\");\r\n\tfloat altura = leerNumero(\"Ingrese la altura:\");\r\n\tPersona claudia = new Persona(nombre, rut, edad, genero, peso, altura);\r\n\t\r\n\tnombre = leerTexto(\"Ingrese un nombre:\");\r\n\tedad = leerNumero(\"Ingrese su edad:\");\r\n\trut = leerTexto(\"Ingresa el RUT:\");\r\n\tgenero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tPersona juliano = new Persona(nombre, rut, edad, genero);\r\n\t\r\n\tPersona noelia = new Persona();\r\n\tnoelia.setNombre(leerTexto(\"Ingresa un nombre\"));\r\n\tnoelia.setEdad(leerNumero(\"Ingresa la edad\"));\r\n\tnoelia.setRut(leerTexto(\"Ingresa el RUT\"));\r\n\tnoelia.setGenero(leerTexto(\"Ingresa el genero\").charAt(0));\r\n\tnoelia.setAltura(leerNumero(\"Ingresa la altura\"));\r\n\tnoelia.setPeso(leerNumero(\"Ingresa el peso\"));\r\n\t\r\n\tPersona[] perso = new Persona[3];\r\n\tperso[0] = claudia;\r\n\tperso[1] = juliano;\r\n\tperso[2] = noelia;\r\n\t\r\n\tfor (Persona persona : perso) {\r\n\t\tif (persona.calcularIMC()==Persona.PESO_BAJO) {\r\n\t\t\tescribir(\"Pongale sus buenas cazuelas\");\r\n\t\t}else {\r\n\t\t\tif (persona.calcularIMC()==Persona.PESO_IDEAL) {\r\n\t\t\t\tescribir(\"Estamos tiki taka\");\r\n\t\t\t}else {\r\n\t\t\t\tescribir(\"Menos coffe break!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Mayor de edad\r\n\t\tescribir(\"La persona \" + persona.getNombre() + \" es mayor de edad? \" + persona.esMayorDeEdad());\r\n\t\t//Mostrar el toString()\r\n\t\tescribir(persona.toString());\r\n\t }\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "void berechneFlaeche() {\n\t}", "public static void horoscopo() {\n\n ArrayList<String> frases = new ArrayList<>();\n\n frases.add(\"Todo lo que seas capaz de creer, eres capaz de conseguir.\");\n frases.add(\"Serás más poderoso cuando tengas control total sobre ti mismo.\");\n frases.add(\"La sabiduría y la casualidad no van unidas de la mano.\");\n frases.add(\"Lo que hay en el ayer o en el mañana no es nada comparado con lo que hay en nuestro interior.\");\n frases.add(\"Cáete siete veces y levántate ocho.\");\n frases.add(\"Nunca es tarde para comenzar un nuevo proyecto, para ser quien siempre has deseado ser.\");\n frases.add(\"Con pensamientos positivos y perseverancia, solo es cuestión de tiempo que superes las adversidades y te propongas nuevos retos.\");\n frases.add(\"La vida es un 10% lo que nos ocurre, y un 90% cómo reaccionamos a ello.\");\n frases.add(\"No es más rico quien más tiene, sino quien menos necesita.\");\n frases.add(\"Intenta y falla, pero nunca falles en intentarlo.\");\n frases.add(\"Solo los hombres más sabios son capaces de saborear los momentos más simples.\");\n frases.add(\"cada segundo que goces, será segundo aprovechado.\");\n\n double numero = Math.round(Math.random() * 11);\n int numeroAleatorio = (int) numero;\n\n //Random r = new Random(); \n // int randomNumber = r.nextInt(frases.size());\n System.out.println(\"Frase horóscopo: \" + frases.get(numeroAleatorio));\n\n }", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public void trenneVerbindung();", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "void pasarALista();", "void entrerAuGarage();", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void asignarVida();", "@Test\n\tpublic void vero_se_e_solo_se_un_prestito_uguale_a_se_stesso() {\n\t\tassertTrue(prestito.equals(prestito),\"Prestito uguale sse uguale a se stesso\");\n\t}", "private void remplirUtiliseData() {\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "Reserva Obtener();", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\n }", "@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }", "@Override\r\n public void salir() {\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public void jugarMaquinaSola(int turno) {\n if (suspenderJuego) {\n return;\n }\n CuadroPieza cuadroActual;\n CuadroPieza cuadroDestino;\n CuadroPieza MovDestino = null;\n CuadroPieza MovActual = null;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n cuadroActual = tablero[x][y];\n if (cuadroActual.getPieza() != null) {\n if (cuadroActual.getPieza().getColor() == turno) {\n for (int x1 = 0; x1 < 8; x1++) {\n for (int y1 = 0; y1 < 8; y1++) {\n cuadroDestino = tablero[x1][y1];\n if (cuadroDestino.getPieza() != null) {\n if (cuadroActual.getPieza().validarMovimiento(cuadroDestino, this)) {\n if (MovDestino == null) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n } else {\n if (cuadroDestino.getPieza().getPeso() > MovDestino.getPieza().getPeso()) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n if (cuadroDestino.getPieza().getPeso() == MovDestino.getPieza().getPeso()) {\n //Si es el mismo, elijo al azar si moverlo o no\n if (((int) (Math.random() * 3) == 1)) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n }\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n if (MovActual == null) {\n boolean b = true;\n do {//Si no hay mov recomendado, entonces genero uno al azar\n int x = (int) (Math.random() * 8);\n int y = (int) (Math.random() * 8);\n tablero[x][y].getPieza();\n int x1 = (int) (Math.random() * 8);\n int y1 = (int) (Math.random() * 8);\n\n MovActual = tablero[x][y];\n MovDestino = tablero[x1][y1];\n if (MovActual.getPieza() != null) {\n if (MovActual.getPieza().getColor() == turno) {\n b = !MovActual.getPieza().validarMovimiento(MovDestino, this);\n //Si mueve la pieza, sale del while.\n }\n }\n } while (b);\n }\n if (MovActual.getPieza().MoverPieza(MovDestino, this)) {\n this.setTurno(this.getTurno() * -1);\n if (getRey(this.getTurno()).isInJacke(this)) {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!! - te lo dije xD\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n } else {\n JOptionPane.showMessageDialog(null, \"Rey en Hacke - ya t kgste\");\n }\n } else {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Solo por que te ahogaste...!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n }\n }\n if (this.getTurno() == turnoComputadora) {\n jugarMaquinaSola(this.getTurno());\n }\n }", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public String ingresarLetra(String letra, String palabra)throws MyException{\n String respuesta=\"\";\n if(Integer.toString(1).equals(letra)||Integer.toString(2).equals(letra)||Integer.toString(3).equals(letra)||Integer.toString(4).equals(letra)||Integer.toString(5).equals(letra)||Integer.toString(6).equals(letra)||Integer.toString(7).equals(letra)||Integer.toString(8).equals(letra)||Integer.toString(9).equals(letra)||Integer.toString(0).equals(letra)||letra.equals(letra.toUpperCase())){\n throw new MyException(\"Debe ingresar una letra en minúsculas(a-z)\");\n }else{\n if(palabra.contains(letra)){\n if(this.palabra.contains(\"-\")){\n for(int i=0;i<this.palabra.length();i++){\n if((letra.toLowerCase().equals(palabra.toLowerCase().substring(i,i+1)))){\n respuesta+=palabra.subSequence(i, i+1);\n }else{\n respuesta+=\"-\";\n }\n }\n }else{\n for(int i=0;i<this.palabra.length();i++){\n if((letra.toLowerCase().equals(palabra.toLowerCase().substring(i,i+1)))){\n respuesta+=palabra.subSequence(i, i+1);\n }else{\n respuesta+=\"-\";\n }\n }\n this.palabra=respuesta;\n }\n }else{\n respuesta=this.ocultarPalabra(this.palabra);\n this.oportunidades-=1;\n try{\n this.cambiarEstadoImagen();\n }\n catch(NullPointerException ex){\n JOptionPane.showMessageDialog(null, \"No se pudo actualizar la imagen del ahorcado :(\\n\\n Imagen no encontrada\");\n }\n }\n return respuesta;\n }\n }" ]
[ "0.6696462", "0.6495379", "0.6425535", "0.6406178", "0.62808186", "0.6275628", "0.6273064", "0.6231423", "0.62275296", "0.6198841", "0.6197375", "0.6162817", "0.616114", "0.6159761", "0.6155713", "0.61511075", "0.61501175", "0.61354995", "0.6130652", "0.6126044", "0.61092204", "0.6084326", "0.6067552", "0.6066784", "0.60640895", "0.6042728", "0.60412496", "0.6033472", "0.60298437", "0.6023227", "0.6007082", "0.6003014", "0.6002707", "0.5996594", "0.59959704", "0.5989554", "0.5988558", "0.5988372", "0.59725696", "0.5964418", "0.5961771", "0.59448916", "0.59405166", "0.5935199", "0.5920458", "0.59147656", "0.5905337", "0.59045124", "0.59029526", "0.58987975", "0.58980787", "0.5897358", "0.5893185", "0.588959", "0.58892286", "0.58892214", "0.5888771", "0.58881044", "0.58870274", "0.58796036", "0.58714116", "0.5866693", "0.5865986", "0.58597803", "0.58511806", "0.5850955", "0.5849883", "0.58487785", "0.58460444", "0.5845485", "0.5844836", "0.5839441", "0.5837002", "0.58356315", "0.58325744", "0.5829553", "0.58290005", "0.5812228", "0.5811188", "0.58062166", "0.5799381", "0.5795498", "0.5785178", "0.5783441", "0.57833105", "0.5781741", "0.5780658", "0.57751155", "0.57725996", "0.57720023", "0.576709", "0.5766791", "0.57638144", "0.5763543", "0.5758942", "0.5757024", "0.5753381", "0.57530487", "0.57487106", "0.57481176", "0.5745029" ]
0.0
-1
verbose:gc Xms300M Xmx300M Xss1M XX:+UseSerialGC XX:+PrintGCDetails XX:+PrintGCDateStamps XX:InitialHeapSize=314572800 XX:MaxHeapSize=314572799 Xss1M XX:+UseSerialGC XX:+PrintGCDetails
public static void main(String[] args) { for(int i=0;i<200000000;i++){ test(); if(i == 9 || i == 19){ Runtime.getRuntime().gc(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tRuntime rt = Runtime.getRuntime();\n\t\n\tSystem.out.println(\"Available Free Memory: \" + rt.freeMemory());\n\t\n\tfor(int i=0; i<10000; i++ ) {\n\tGC1 x = new GC1(i);\n\t}\n\n\tSystem.out.println(\"Free Memory before call to gc(): \" +rt.freeMemory());\n\tSystem.runFinalization();\n\tSystem.gc();\n\tSystem.out.println(\" Free Memory after call to gc(): \" +\n\trt.freeMemory());\n\n\t}", "public void testPrintReferenceGCByOptions() {\n String jvmOptions = \"-Xss128k -XX:+PrintReferenceGC -Xms2048M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.WARN_PRINT_REFERENCE_GC_ENABLED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_REFERENCE_GC_ENABLED));\n }", "public static void gc() {\n // Collecting RAM before collecting EEPROM means that only live objects\n // in RAM with pointers to EEPROM will be considered as roots while\n // marking EEPROM objects.\n Native.gc();\n\n int wordSize = Native.getPersistentMemorySize()/4;\n try {\n int[] bitVector = new int[(wordSize / 32) + 2];\n int[] markingStack = new int[GC_MARK_STACK_SIZE];\n Native.gcPersistentMemory(bitVector, markingStack);\n } catch (OutOfMemoryError oome) {\n throw new OutOfMemoryError(\"Cannot allocate auxillary data structures for persistent gc\");\n }\n }", "public void gc();", "@Override\r\n\tpublic void debit() {\n\t\tSystem.out.println(\"Core Method of GC\");\r\n\t}", "public static void main(String[] var0) {\n\n// for(int i =0;i<10;i++){\n// Object object = new byte[2*1024*1024];\n// map.put(i+\"\",object);\n// }\n // map =null;\n System.gc();\n// System.out.println(\"打印出了最大可用堆内存\");\n// System.out.println(\"-Xmx\" + Runtime.getRuntime().maxMemory() / 1024L / 1024L + \"M\");\n }", "public void testPrintGCDetailsDisabled() {\n String jvmOptions = \"-Xss128k -XX:-PrintGCDetails -Xms2048M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.WARN_PRINT_GC_DETAILS_DISABLED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_GC_DETAILS_DISABLED));\n Assert.assertFalse(Analysis.WARN_PRINT_GC_DETAILS_MISSING + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_GC_DETAILS_MISSING));\n }", "void doGarbageCollection(GCType type);", "public static void main(String s[]) throws Exception {\n Runtime rs = Runtime.getRuntime();\n System.out.println(\"Free memory in JVM before Garbage Collection = \"+rs.freeMemory());\n // gc method of RunTime class\n rs.gc();\n System.out.println(\"Free memory in JVM after Garbage Collection = \"+rs.freeMemory());\n\n }", "public static void main(String[] args) {\n System.out.println(\" System Properties ===> \"+System.getProperties());\n System.out.println(\" get system enviornment variable classpath ===> \"+System.getenv(\"classpath\"));\n System.out.println(\" get system enviornment variable java_home ===> \"+System.getenv(\"java_home\")); \n System.out.println(\" calling system.gc ===> \"); \n System.gc();\n System.out.println(\"get time in milliseconds ===> \"+System.currentTimeMillis()); \n }", "public static void main(String[] args) {\nGarbagecollection s1=new Garbagecollection();\r\nGarbagecollection s2=new Garbagecollection();\r\ns1=null;\r\ns2=null;\r\nSystem.gc();\r\n\t}", "public static void main(String[] args) {\r\n\t\tmeasureHeapMemory();\r\n\t}", "private void kludgeMantis(Map<String, Monitor> map, StringMonitor args) {\n /*\n * the HotSpot 1.4.2 JVM with the +UseParallelGC option along\n * with its default +UseAdaptiveSizePolicy option has a bug with\n * the initialization of the sizes of the eden and survivor spaces.\n * See bugid 4890736.\n *\n * note - use explicit 1.4.2 counter names here - don't update\n * to latest counter names or attempt to find aliases.\n */\n\n String cname = \"hotspot.gc.collector.0.name\";\n StringMonitor collector = (StringMonitor)map.get(cname);\n\n if (collector.stringValue().compareTo(\"PSScavenge\") == 0) {\n boolean adaptiveSizePolicy = true;\n\n /*\n * HotSpot processes the -XX:Flags/.hotspotrc arguments prior to\n * processing the command line arguments. This allows the command\n * line arguments to override any defaults set in .hotspotrc\n */\n cname = \"hotspot.vm.flags\";\n StringMonitor flags = (StringMonitor)map.get(cname);\n String allArgs = flags.stringValue() + \" \" + args.stringValue();\n\n /*\n * ignore the -XX: prefix as it only applies to the arguments\n * passed from the command line (i.e. the invocation api).\n * arguments passed through .hotspotrc omit the -XX: prefix.\n */\n int ahi = allArgs.lastIndexOf(\"+AggressiveHeap\");\n int aspi = allArgs.lastIndexOf(\"-UseAdaptiveSizePolicy\");\n\n if (ahi != -1) {\n /*\n * +AggressiveHeap was set, check if -UseAdaptiveSizePolicy\n * is set after +AggressiveHeap.\n */\n //\n if ((aspi != -1) && (aspi > ahi)) {\n adaptiveSizePolicy = false;\n }\n } else {\n /*\n * +AggressiveHeap not set, must be +UseParallelGC. The\n * relative position of -UseAdaptiveSizePolicy is not\n * important in this case, as it will override the\n * UseParallelGC default (+UseAdaptiveSizePolicy) if it\n * appears anywhere in the JVM arguments.\n */\n if (aspi != -1) {\n adaptiveSizePolicy = false;\n }\n }\n\n if (adaptiveSizePolicy) {\n // adjust the buggy AdaptiveSizePolicy size counters.\n\n // first remove the real counters.\n String eden_size = \"hotspot.gc.generation.0.space.0.size\";\n String s0_size = \"hotspot.gc.generation.0.space.1.size\";\n String s1_size = \"hotspot.gc.generation.0.space.2.size\";\n map.remove(eden_size);\n map.remove(s0_size);\n map.remove(s1_size);\n\n // get the maximum new generation size\n String new_max_name = \"hotspot.gc.generation.0.capacity.max\";\n LongMonitor new_max = (LongMonitor)map.get(new_max_name);\n\n /*\n * replace the real counters with pseudo counters that are\n * initialized to to the correct values. The maximum size of\n * the eden and survivor spaces are supposed to be:\n * max_eden_size = new_size - (2*alignment).\n * max_survivor_size = new_size - (2*alignment).\n * since we don't know the alignment value used, and because\n * of other parallel scavenge bugs that result in oversized\n * spaces, we just set the maximum size of each space to the\n * full new gen size.\n */\n Monitor monitor = null;\n\n LongBuffer lb = LongBuffer.allocate(1);\n lb.put(new_max.longValue());\n monitor = new PerfLongMonitor(eden_size, Units.BYTES,\n Variability.CONSTANT, false, lb);\n map.put(eden_size, monitor);\n\n monitor = new PerfLongMonitor(s0_size, Units.BYTES,\n Variability.CONSTANT, false, lb);\n map.put(s0_size, monitor);\n\n monitor = new PerfLongMonitor(s1_size, Units.BYTES,\n Variability.CONSTANT, false, lb);\n map.put(s1_size, monitor);\n }\n }\n }", "private static void gc() {\n System.gc();\n System.gc();\n }", "public static void main(String[] args) {\n\t\tGarbageCollection s1= new GarbageCollection();\r\n\t\tGarbageCollection s2= new GarbageCollection();\r\n\t\t\r\n\t\ts1=null;\r\n\t\ts2=null;\r\n\t\t\r\n\t\tSystem.gc();\r\n\t\tSystem.out.println(\"\"+s1);\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tGarbagecollection g1 = new Garbagecollection();\r\n\t\t\r\n\t\tGarbagecollection g2 = new Garbagecollection();\r\n\t\t\r\n\t\tg1=null;\r\n\t\tg2=null;\r\n\t\tSystem.gc();\r\n\t}", "public static void main(String[] args) {\n\n Set<Long> ids = LongStream.range(0, 1_000_000).boxed().collect(Collectors.toSet());\n // HashSet\n // ArrayList\n // Long[]\n // long[]\n // int[]\n // LinkedList\n System.out.println(\"Allocated!\");\n\n System.out.println(PerformanceUtil.getUsedHeap());\n }", "private static void runGC () throws Exception \r\n {\n for (int r = 0; r < 4; ++ r) _runGC (); \r\n }", "@External\r\n\t@ClientFunc\r\n\tpublic MetaVar __gc();", "public void testPrintGcApplicationConcurrentTimeAnalysis() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset104.txt\");\n Jvm jvm = new Jvm(null, null);\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertTrue(Analysis.WARN_PRINT_GC_APPLICATION_CONCURRENT_TIME + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_GC_APPLICATION_CONCURRENT_TIME));\n }", "public void testPrintReferenceGCByLogging() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n List<LogEventType> eventTypes = new ArrayList<LogEventType>();\n eventTypes.add(LogEventType.REFERENCE_GC);\n jvmRun.setEventTypes(eventTypes);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.WARN_PRINT_REFERENCE_GC_ENABLED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_REFERENCE_GC_ENABLED));\n }", "public static void initializeMetrics()\n {\n // Get the Java runtime\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n \tstartingMemory = runtime.totalMemory() - runtime.freeMemory();\n }", "public static void runGarbageCollection()\n {\n // see if we need to run the collector...\n //----------------------------------------\n if (bRunCollector())\n {\n String sStaleDuration = \"\";\n int iStaleDuration = 0;\n \n try\n {\n sStaleDuration = PropertyAccessor.getProperty(GATEWAY_PROPERTY_FILE, GARBAGE_COLLECT_STALE_DURATION);\n iStaleDuration = Integer.parseInt(sStaleDuration);\n } \n catch (Exception e)\n {\n String sErrorMessage = \"Failed to read and parse property: \" + GARBAGE_COLLECT_STALE_DURATION +\n \" from PropertyFile: \" + GATEWAY_PROPERTY_FILE + \".propertues. No \" +\n \"garbage collection will be done on the aggregator tables.\";\n log.error(sErrorMessage);\n return;\n }\n \n if ((sStaleDuration == null) ||\n (sStaleDuration.length() <= 0))\n {\n String sErrorMessage = \"Failed to read and parse property: \" + GARBAGE_COLLECT_STALE_DURATION +\n \" from PropertyFile: \" + GATEWAY_PROPERTY_FILE + \".propertues. No \" +\n \"garbage collection will be done on the aggregator tables.\";\n log.error(sErrorMessage);\n return;\n }\n \n Calendar oCal = Calendar.getInstance();\n oCal.add(Calendar.SECOND, (-1) * iStaleDuration);\n \n log.debug(\"Running aggregator garbage collection thread now.\");\n \n GarbageCollectorThread oCollectorThread = new GarbageCollectorThread(oCal.getTime());\n oCollectorThread.run();\n dtLastRun = new Date();\n \n }\n }", "public static void main(String[] args) {\n Car car1 = new Car(\"mersedes\");\n Car car2 = new Car(\"bmw\");\n Car car3 = new Car(\"\");\n\n car1.setColor(\"black\");\n car2.setColor(\"red\");\n while (car2.speed<100) {\n car2.accelerate(10);\n }\n car2.accelerate(200);\n System.out.println(car2.speed);\n\n while (car1.speed>0) {\n car1.slowDown(1);\n }\n System.out.println(car1.speed);\n printMemory();\n\n Car[][] Cars = new Car[10000][10000];\n for(int i=0;i<1010;i++){\n Cars[1][i] = new Car(\"nnn\");\n }\n printMemory();\n Runtime.getRuntime().gc();\n printMemory();\n }", "@DefaultValue(\"300000\")\n long getNodeGcTtlMs();", "void scheduleGarbageCollection(GCType type, long delay);", "public static void main(String[] args) {\n\n printMemory();\n\n byte[] buf1 = new byte[1*1024*1024];\n printMemory(\"分配1M内存\");\n\n byte[] buf2 = new byte[4*1024*1024];\n printMemory(\"分配4M内存\");\n }", "@Test\n public void printGCCause() throws Exception {\n TestLogHandler handler = new TestLogHandler();\n handler.setLevel(Level.WARNING);\n GCResource gcResource = new GcResourceFile(\"SampleSun1_7_0_40PrintGCCause.txt\");\n gcResource.getLogger().addHandler(handler);\n DataReader reader = getDataReader(gcResource);\n GCModel model = reader.read();\n Assert.assertEquals(\"gc pause\", 0.077938, model.getPause().getMax(), 1.0E-9);\n GCEvent heap = ((GCEvent) (model.getEvents().next()));\n Assert.assertEquals(\"heap\", (32 * 1024), heap.getPreUsed());\n // test parsing of decimal values\n Assert.assertEquals(\"heap\", 7136, ((double) (heap.getPostUsed())), 100.0);\n Assert.assertEquals(\"heap\", ((88.0 * 1024) * 1024), ((double) (heap.getTotal())), 100.0);\n Assert.assertEquals(\"number of errors\", 0, handler.getCount());\n }", "@Override\n public String toString() {\n return GC_cause + \" \" + freedObject + \" \" + freedByte + \" \"\n + freedLObject + \" \" + freedLByte + \" \" + percent_free\n + \" \" + current_heap_size + \" \" + total_memory + \" \"\n + pause_time + \" \" + Total_time;\n }", "@Test\n public void printAdaptiveSizePolicy() throws Exception {\n TestLogHandler handler = new TestLogHandler();\n handler.setLevel(Level.WARNING);\n GCResource gcResource = new GcResourceFile(\"SampleSun1_7_0_12PrintAdaptiveSizePolicy.txt\");\n gcResource.getLogger().addHandler(handler);\n DataReader reader = getDataReader(gcResource);\n GCModel model = reader.read();\n Assert.assertEquals(\"gc pause\", 0.158757, model.getPause().getMax(), 1.0E-9);\n GCEvent heap = ((GCEvent) (model.getEvents().next()));\n Assert.assertEquals(\"heap\", ((65 * 1024) * 1024), heap.getPreUsed());\n // test parsing of decimal values\n Assert.assertEquals(\"heap\", ((64.3 * 1024) * 1024), heap.getPostUsed(), 100.0);\n Assert.assertEquals(\"heap\", ((92.0 * 1024) * 1024), heap.getTotal(), 100.0);\n Assert.assertEquals(\"number of errors\", 0, handler.getCount());\n }", "@Test\n\tpublic void t3() {\n\n\t\tlogger.info(\"start\");\n\n\t\ttestFinalize();\n\t\tSystem.gc();\n\n\t\tlogger.info(\"done\");\n\n\t}", "public static void main (String[] args) {\n IdeCfg lg = new IdeCfg (\"/home/tb97952/nb34/netbeans/bin/ide.cfg\"); //(\"/space/nbsrc/performance/gc/report/vanilla/gclog\");\n Iterator i = lg.iterator();\n System.out.println(\"Printing the stuff:\");\n while (i.hasNext()) {\n System.out.println(i.next());\n }\n }", "public static void main(String[] args) \r\n {\n\t\tint numberOfIterations = 100000;\r\n\t\tFoo mass[] = new Foo[numberOfIterations];\r\n\t\tfor (int i = 0; i < numberOfIterations; i++) \r\n {\r\n\t\t\t//TODO: collect references to foo at an array to prevent object being deleted by GC\r\n\t\t\tmass[i] = new Foo(i);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void main (String [] args) throws Exception \r\n {\n runGC (); \r\n usedMemory (); \r\n // Array to keep strong references to allocated objects \r\n final int count = 10000000; \r\n// Object [] objects = new Object[count]; \r\n LinkedBlockingQueue<ShopBuyLog> list=new LinkedBlockingQueue<ShopBuyLog>();\r\n long heap1 = 0; \r\n // Allocate count+1 objects, discard the first one \r\n for (int i = -1; i < count; ++ i) \r\n { \r\n// \tObject object=null;\r\n \tShopBuyLog log = null; \r\n \r\n // Instantiate your data here and assign it to object \r\n \r\n \tlog = new ShopBuyLog (); \r\n \tlog.setCosttype(1);\r\n \tlog.setItems(\"{\\\"bind\\\":false,\\\"clazz\\\":\\\"com.game.backpack.structs.CommonGoods\\\",\\\"gridId\\\":0,\\\"id\\\":323117282203989,\\\"itemModelId\\\":-1,\\\"losttime\\\":0,\\\"num\\\":1080,\\\"packageId\\\":0}\");\r\n \tlog.setNpcid(Integer.MAX_VALUE);\r\n \tlog.setNum(Integer.MAX_VALUE);\r\n \tlog.setResume(Integer.MAX_VALUE);\r\n \tlog.setRoleid(Long.MAX_VALUE);\r\n \tlog.setRolelevel(Integer.MAX_VALUE);\r\n \tlog.setSellid(Integer.MAX_VALUE);\r\n// log.setTime(System.currentTimeMillis());\r\n// object=log;\r\n// object=log.buildSql();\r\n //object = new Integer (i); \r\n //object = new Long (i); \r\n// object = new String (); \r\n// object = new byte [128][1]; \r\n \r\n if (i >= 0) \r\n \tlist.add(log);\r\n else \r\n { \r\n \tlog = null; // Discard the warm up object \r\n// runGC (); \r\n heap1 = usedMemory (); // Take a before heap snapshot \r\n } \r\n } \r\n// runGC (); \r\n long heap2 = usedMemory (); // Take an after heap snapshot: \r\n \r\n final int size = Math.round (((float)(heap2 - heap1))/count); \r\n System.out.println (\"'before' heap: \" + heap1 + \r\n \", 'after' heap: \" + heap2); \r\n System.out.println (\"heap delta: \" + (heap2 - heap1) + \r\n \", {\" + ShopBuyLog.class.getSimpleName() + \"} size = \" + size + \" bytes\"); \r\n// for (int i = 0; i < count; ++ i) objects [i] = null; \r\n// objects = null; \r\n }", "private long getMemoryFootprint() {\n Runtime runtime = Runtime.getRuntime();\n long memAfter = runtime.totalMemory() - runtime.freeMemory();\n long memBefore = memAfter + 1;\n while (memBefore != memAfter) {\n memBefore = memAfter;\n System.gc();\n memAfter = runtime.totalMemory() - runtime.freeMemory();\n }\n return memAfter;\n }", "long memoryUnused();", "private void disposeGC(GC gc) {\n\tif (gc != printerGC) {\n\t\tgc.dispose();\n\t}\n}", "@DefaultValue(\"1800000\")\n long getPodTerminationGcTimeoutMs();", "public static void main(String[] args) {\n Maxheap<Integer> maxheap = new Maxheap<>();\n double time=0;\n int opCount = 10000000;\n time = testHeap(maxheap,opCount,true);\n System.out.println(\"Test heapify completed: \"+time+ \"s\");\n time = testHeap(maxheap,opCount,false);\n System.out.println(\"Test completed: \"+time+ \"s\");\n\n\n// time = debugHeap(maxheap,5,true);\n// System.out.println(\"Test completed: \"+time+ \"s\");\n }", "public static void main(String[] args) throws InterruptedException {\n\t HashMap h=new HashMap();\n\t\tTempDemo t=new TempDemo();\n\t\th.put(t, \"durga\");\n\t\tt=null;\n\t\tSystem.out.println(h);\n\t\tSystem.gc();\n\t\tThread.sleep(5000);\n\t\tSystem.out.println(h);\n\t\tSystem.out.println(\"----------\");\n\t\t\n\t\t\n\t\t//WeakHashMap where gc dominates WeakHashMap\n\t\t WeakHashMap h1=new WeakHashMap();\n\t\t\tTempDemo t2=new TempDemo();\n\t\t\th1.put(t2, \"durga\");\n\t\t\tt2=null;\n\t\t\tSystem.out.println(h1);\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(5000);\n\t\t\tSystem.out.println(h1);\n\t\t\n\t\t\n\n\t}", "public boolean isGCEnabled() {\n return runGC;\n }", "private void incrementGcCounter() {\n if (null == PSAgentContext.get().getMetrics()) {\n return; // nothing to do.\n }\n long elapsedGc = getElapsedGc();\n long totalGc = 0;\n String gc_time = PSAgentContext.get().getMetrics().get(AngelCounter.GC_TIME_MILLIS);\n if (gc_time != null) {\n totalGc = elapsedGc + Long.parseLong(gc_time);\n } else {\n totalGc = elapsedGc;\n }\n PSAgentContext.get().getMetrics().put(AngelCounter.GC_TIME_MILLIS, Long.toString(totalGc));\n }", "public static void dumpMem() {\n\t\tRuntime runtime = Runtime.getRuntime();\n\n\t\t// Print used memory\n\t\tSystem.out.println(\"Used Memory:\" + (runtime.totalMemory() - runtime.freeMemory()) / mb);\n\n\t\t// Print free memory\n\t\tSystem.out.println(\"Free Memory:\" + runtime.freeMemory() / mb);\n\n\t\t// Print total available memory\n\t\tSystem.out.println(\"Total Memory:\" + runtime.totalMemory() / mb);\n\n\t\t// Print Maximum available memory\n\t\tSystem.out.println(\"Max Memory:\" + runtime.maxMemory() / mb);\n\n\t}", "public long getGCInterval() {\n return gcIntervalMillis;\n }", "public static void main(String args[]) throws InterruptedException {\n int genClassCount = Integer.parseInt(System.getenv(\"DYN_CLASS_COUNT\"));\n\n // memory to consume by each instantiated object\n int memToConsumeMb = Integer.parseInt(System.getenv(\"MEM_USAGE_PER_OBJECT_MB\"));\n\n\n System.out.println(\"Generating and instantiating \" + genClassCount + \" classes.\");\n System.out.println(\"Each instantiated class will consume \" + memToConsumeMb + \" MB of memory.\");\n System.out.println(\"Available CPUs:\" + Runtime.getRuntime().availableProcessors());\n\n List<MemoryConsumer> memoryConsumers = new ArrayList<>();\n\n ClassPool pool = ClassPool.getDefault();\n pool.insertClassPath(new ClassClassPath(DynamicClassGen.class));\n\n try {\n\n for (int i = 0; i < genClassCount; i++) {\n // generate a new class from DynClassBase\n String className = DynClassBase.class.getCanonicalName();\n CtClass cc = pool.get(className);\n cc.setName(className + i);\n\n Class genClass = cc.toClass();\n Class<?> []ctorPrms = null;\n\n Constructor ctor = genClass.getConstructor(ctorPrms);\n\n MemoryConsumer memConsumer = (MemoryConsumer)ctor.newInstance(null);\n memoryConsumers.add(memConsumer);\n\n System.out.println(\"Instantiated class \" + memConsumer.getClass().getSimpleName());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // gradually increase memory consumption\n for (MemoryConsumer consumer: memoryConsumers) {\n int memToConsumeInBytes = memToConsumeMb * 1024 * 1024;\n consumer.consumeSomeMemory(memToConsumeInBytes);\n\n System.out.println(consumer.getClass().getSimpleName() + \" instance consuming \" + memToConsumeMb + \"MB\");\n }\n\n while(true){\n Thread.sleep(1000);\n }\n }", "public static void main(String[] args) {\n Util_BinTreeNode<Integer> root = new Util_BinTreeNode<>();\n root.add(8);\n root.add(4); root.add(16);\n root.add(2); root.add(6); root.add(11); root.add(20);\n /*\n Caution. Adding the bellow nodes, causes the java.lang.OutOfMemoryError: GC overhead limit exceeded\n root.add(1); root.add(3); root.add(5); root.add(7);\n root.add(10); root.add(12); root.add(19); root.add(21);\n */\n System.out.println(java.time.LocalTime.now());\n ArrayList<LinkedList<Integer>> aofl = allSequences(root);\n System.out.println(java.time.LocalTime.now());\n\n for (LinkedList<Integer> list : aofl) {\n for (Integer i : list) {\n System.out.print(i + \",\");\n }\n System.out.println(\" \");\n }\n }", "public FileGarbageCollector(){\n\t\tthis.maxAge = 0;\n\t\tthis.dirs = new Vector<File>();\n\t}", "static void dumpHeap(String fileName, boolean live) {\n initHotspotMBean();\n try {\n Class clazz = Class.forName(\"com.sun.management.HotSpotDiagnosticMXBean\");\n Method m = clazz.getMethod(\"dumpHeap\", String.class, boolean.class);\n m.invoke( hotspotMBean , fileName, live);\n } catch (RuntimeException re) {\n throw re;\n } catch (Exception exp) {\n throw new RuntimeException(exp);\n }\n }", "private static void JVMInfo() {\n System.out.println(\"Available processors (cores): \" +\n Runtime.getRuntime().availableProcessors());\n\n /* Total amount of free memory available to the JVM */\n System.out.println(\"Free memory (bytes): \" +\n Runtime.getRuntime().freeMemory());\n\n /* This will return Long.MAX_VALUE if there is no preset limit */\n long maxMemory = Runtime.getRuntime().maxMemory();\n /* Maximum amount of memory the JVM will attempt to use */\n System.out.println(\"Maximum memory (bytes): \" +\n (maxMemory == Long.MAX_VALUE ? \"no limit\" : maxMemory));\n\n /* Total memory currently in use by the JVM */\n System.out.println(\"Total memory (bytes): \" +\n Runtime.getRuntime().totalMemory());\n\n }", "public void testPrintStringDeduplicationStatistics() {\n String jvmOptions = \"-Xss128k -XX:+PrintStringDeduplicationStatistics -Xms2048M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.WARN_PRINT_STRING_DEDUP_STATS_ENABLED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_STRING_DEDUP_STATS_ENABLED));\n }", "public static void getOutOfMemoryErrorMetaspace() {\n LOGGER.info(String.format(MESSAGE, \"OutOfMemoryError\", \"to many loaded classes\"));\n\n for (int i = 0; i < 1700; i++) {\n try {\n Class clazz = classPool.makeClass(i + \"class\").toClass();\n } catch (CannotCompileException e) {\n e.printStackTrace();\n }\n }\n }", "public static void test(){\n ReferenceCountingGC a = new ReferenceCountingGC();\n ReferenceCountingGC b = new ReferenceCountingGC();\n a.instance = b;\n b.instance = a;\n\n a = null;\n b = null;\n\n System.gc();\n }", "@Override\n public void printReportStats(Printer printer) {\n super.printReportStats(printer);\n printer.println(\"Classes: \" + jvmClasses.size());\n printer.println(\"Fields: \" + jvmFields.size());\n printer.println(\"Methods: \" + jvmMethods.size());\n printer.println(\"Variables: \" + jvmVariables.size());\n printer.println(\"HeapAllocations: \" + jvmHeapAllocations.size());\n printer.println(\"MethodInvocations: \" + jvmInvocations.size());\n printer.println(\"Usages: \" + usages.size());\n printer.println(\"Aliases: \" + aliases.size());\n printer.println(\"StringConstants: \" + jvmStringConstants.size());\n }", "public static void main(String[] args) {\n\t\tMonkey m1 = new Monkey(\"Money\");\r\n\t\tMonkey m2 = new Monkey(\"Peter\");\r\n\t\tMonkey m3 = new Monkey(\"CCR\");\r\n\t\tSystem.out.println(Monkey.count);\r\n\t\tm1=null;\r\n\t\tm2=null;\r\n\t\tm3=null;\r\n\t\tSystem.gc();\r\n\t\tSystem.out.println(Monkey.count);\r\n\t}", "public void internal_dispose_GC (int phGC, GCData data) {\n\tOS.PgDestroyGC(phGC);\r\n}", "int checkElapsedTime(){\r\n\t\treturn gc.getElapsedTime();\r\n\t}", "public void testPhysicalMemoryLessThanJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959551);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "public void customConfig() {\n KConfig kConfig = new KConfig.KConfigBuilder()\n .heapRatio(85.0f) //heap occupied ration in percent, 85.0f means use 85% memory of max heap\n .rootDir(this.getCacheDir().getAbsolutePath()) //root dir stores report and hprof files\n .heapOverTimes(3) //heap max times of over heap's used threshold\n .build();\n KOOM.getInstance().setKConfig(kConfig);\n }", "@Test\n public void simpleLogCleanUpNoMemory() throws Exception {\n final InputStream in = new ByteArrayInputStream((\"2013-06-22T18:58:45.955+0200: 1.433: [Full GC 128M->63M(128M), 0.0385026 secs]\" + ((\"\\n2013-06-22T18:58:45.986+0200: 1.472: [GC cleanup, 0.0000004 secs]\" + \"\\n2013-06-22T18:58:45.986+0200: 1.472: [GC concurrent-mark-abort]\") + \"\\n2013-06-22T18:58:46.002+0200: 1.483: [GC pause (young) 91M->90M(128M), 0.0128787 secs]\")).getBytes());\n DataReader reader = new DataReaderSun1_6_0G1(new GcResourceFile(\"bytearray\"), in, SUN1_7G1);\n GCModel model = reader.read();\n Assert.assertEquals(\"count\", 4, model.size());\n // the order of the events is in fact wrong; but for the sake of simplicity in the parser I accept it\n Assert.assertEquals(\"cleanup event\", \"GC cleanup\", model.get(2).getTypeAsString());\n Assert.assertEquals(\"concurrent-mark-abort event\", \"GC concurrent-mark-abort\", model.get(1).getTypeAsString());\n }", "public static void main(String[] args)\n {\n\t\n A a1 = new A();\n \n A a2 = new A();\n \n //Assigning a2 to a1\n \n a1 = a2;\n \n //Making finalize() method to execute forcefully\n \n\t System.gc();\n// Runtime.getRuntime().runFinalization();\n \n System.out.println(\"done\");\n }", "public static void showMemoryInfo()\r\n\t{ \r\n\t\tRuntime rt = Runtime.getRuntime(); \r\n\t\tpf(\"Maxx : \\t %d Kb\\n\", rt.maxMemory() / 1024); \r\n\t\tpf(\"Free : \\t %d Kb\\n\", rt.freeMemory() / 1024); \r\n\t\tpf(\"Totl : \\t %d Kb\\n\", rt.totalMemory() / 1024); \r\n\t\tpf(\"Used : \\t %d Kb\\n\", (rt.totalMemory()-rt.freeMemory()) / 1024); \r\n\t}", "public void testUseParNewGcDisabled() {\n String jvmOptions = \"-Xss128k -XX:-UseParNewGC -Xms2048M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.WARN_CMS_PAR_NEW_DISABLED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_CMS_PAR_NEW_DISABLED));\n }", "public static void main(String[] args) {\n Memory mem = new Memory();\n System.out.println(\n \"Initial memory: \"\n + Utils.doubleToString(Memory.toMegaByte(mem.getInitial()), 1) + \"MB\" \n + \" (\" + mem.getInitial() + \")\");\n System.out.println(\n \"Max memory: \"\n + Utils.doubleToString(Memory.toMegaByte(mem.getMax()), 1) + \"MB\"\n + \" (\" + mem.getMax() + \")\");\n }", "public final void cleanUp() {\n\t\tmgdmfunctions = null;\n\t\tmgdmlabels = null;\n\t\theap.finalize();\n\t\theap = null;\n\t\tSystem.gc();\n\t}", "private static void doMemoryReleases() {\n\r\n OptimizedJavaRecognizer.releaseMemory();\r\n FastJavaLexer.clear();\r\n }", "public void testPhysicalMemoryEqualJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959552);\n jvmRun.doAnalysis();\n Assert.assertFalse(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "void garbageCollector() {\n Enemy ETR = null;\n Sprite BTR = null;\n Medkit MTR = null;\n for (Enemy e: enemies) {\n if (e.eTank.getX() < -100) {\n ETR = e;\n }\n }\n for (Sprite c: smBullets) {\n if (c.getX() > width + 100) {\n BTR = c;\n }\n if (c.getY() > height + 100) {\n BTR = c;\n }\n if (c.getX() < -100) {\n BTR = c;\n }\n if (c.getY() < -100) {\n BTR = c;\n }\n }\n \n for (Medkit med : health) {\n if (med.timer <= 0) {\n MTR = med;\n }\n }\n //gets rid of bullets that went off-screen\n if (BTR != null) {\n smBullets.remove(BTR);\n println(\"Deleted bullet\");\n }\n if (ETR != null) {\n enemies.remove(ETR);\n }\n //Medkits to despawn\n if (MTR != null) {\n health.remove(MTR);\n }\n}", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "public void showOutOfMemory() {\n if (!isEnabled())\n return;\n \n System.gc();\n\n String msg = \"Not enough memory. Please load a smaller \" \n + \"dataset or use larger heap size.\\n\"\n + \"- initial JVM size: \" \n + Utils.doubleToString(toMegaByte(m_Initial), 1) + \"MB\\n\"\n + \"- total memory used: \" \n + Utils.doubleToString(toMegaByte(m_Total), 1) + \"MB\\n\"\n + \"- max. memory avail.: \" \n + Utils.doubleToString(toMegaByte(m_Max), 1) + \"MB\\n\"\n + \"\\n\"\n + \"Note:\\n\"\n + \"The Java heap size can be specified with the -Xmx option.\\n\"\n + \"E.g., to use 128MB as heap size, the command line looks like this:\\n\"\n + \" java -Xmx128m -classpath ...\\n\"\n + \"This does NOT work in the SimpleCLI, the java command refers\\n\"\n + \"to the one with which Weka is started.\";\n \n System.err.println(msg);\n \n if (getUseGUI())\n JOptionPane.showMessageDialog(\n null, msg, \"OutOfMemory\", JOptionPane.WARNING_MESSAGE);\n }", "boolean isTimeToGC() {\n long now;\n now = System.currentTimeMillis();\n\n log.debug(\"isTimeToGC(): \" + (now >= lastGC + Math.round((float) gcIntervalMillis * 0.9f)));\n\n return now >= lastGC + Math.round((float) gcIntervalMillis * 0.9f);\n\n }", "public static void main(String[] args) {\n\t\tAuto miAuto=new Auto(); // 3388\n\t\tAuto miOtroAuto=miAuto; // 3388\n\t\t\n\t\tmiAuto=new Auto();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.gc();\n\t\t\n\t}", "long memoryUsed();", "public static void cleanUp() {\n\t\tHashDecay.stopAll();\n\t\tSystem.gc();\n\t}", "@Override\n public double compactionTimePerKbInNanos()\n {\n return TimeUnit.MICROSECONDS.toNanos(compactionTimeMicros);\n }", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "private GC getGC() {\n\tif (printerGC != null) return printerGC;\n\treturn new GC(styledText);\n}", "public static void main(String[] args){\n\t\tMemory mem = getMemInfo();\r\n//\t\tfor(CPU cpu : cpus){\r\n//\t\t\tSystem.out.println(cpu.getName()+\",\"+cpu.getUsedRatio());\r\n//\t\t}\r\n//\t\tfor(Disk d : disks){\r\n//\t\t\tSystem.out.println(d.getName()+\",\"+d.getFreeSize());\r\n//\t\t}\r\n\t\tSystem.out.println(mem.getFreeSize());\r\n//\t\tSystem.out.println(System.getProperty(\"java.library.path\"));\r\n\t}", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tSystem.out.println(\"finalize\");\n\t}", "public void cleanDeadThreads()\n {\n\t\tSystem.gc();\n }", "@Test\n public void youngPause_u2() throws Exception {\n TestLogHandler handler = new TestLogHandler();\n handler.setLevel(Level.WARNING);\n GCResource gcResource = new GcResourceFile(\"SampleSun1_7_0-02_G1_young.txt\");\n gcResource.getLogger().addHandler(handler);\n DataReader reader = getDataReader(gcResource);\n GCModel model = reader.read();\n Assert.assertEquals(\"gc pause\", 0.144822, model.getPause().getMax(), 1.0E-9);\n GCEvent heap = ((GCEvent) (model.getEvents().next()));\n Assert.assertEquals(\"heap before\", (1105 * 1024), heap.getPreUsed());\n Assert.assertEquals(\"heap after\", (380 * 1024), heap.getPostUsed());\n Assert.assertEquals(\"heap\", ((2 * 1024) * 1024), heap.getTotal());\n GCEvent young = model.getGCEvents().next().getYoung();\n Assert.assertNotNull(\"young\", young);\n Assert.assertEquals(\"young before\", (1024 * 1024), young.getPreUsed());\n Assert.assertEquals(\"young after\", (128 * 1024), young.getPostUsed());\n Assert.assertEquals(\"young total\", ((896 + 128) * 1024), young.getTotal());\n GCEvent tenured = model.getGCEvents().next().getTenured();\n Assert.assertNotNull(\"tenured\", tenured);\n Assert.assertEquals(\"tenured before\", ((1105 - 1024) * 1024), tenured.getPreUsed());\n Assert.assertEquals(\"tenured after\", ((380 - 128) * 1024), tenured.getPostUsed());\n Assert.assertEquals(\"tenured total\", (1024 * 1024), tenured.getTotal());\n Assert.assertEquals(\"number of errors\", 0, handler.getCount());\n }", "public static AbstractCompactionTask forGarbageCollection(ColumnFamilyStore cfs, LifecycleTransaction txn, int gcBefore, CompactionParams.TombstoneOption tombstoneOption)\n {\n AbstractCompactionTask task = new CompactionTask(cfs, txn, gcBefore, false, null)\n {\n @Override\n protected CompactionController getCompactionController(Set<SSTableReader> toCompact)\n {\n return new CompactionController(cfs, toCompact, gcBefore, null, tombstoneOption);\n }\n\n @Override\n protected int getLevel()\n {\n return txn.onlyOne().getSSTableLevel();\n }\n };\n task.setUserDefined(true);\n task.setCompactionType(OperationType.GARBAGE_COLLECT);\n return task;\n }", "public void testSummaryStatsParallel() {\n File testFile = new File(\"src/test/data/dataset1.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 248192, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 786432, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 3, jvmRun.getNewRatio());\n Assert.assertEquals(\"Max heap space not calculated correctly.\", 1034624, jvmRun.getMaxHeapSpace());\n Assert.assertEquals(\"Max heap occupancy not calculated correctly.\", 1013058, jvmRun.getMaxHeapOccupancy());\n Assert.assertEquals(\"Max pause not calculated correctly.\", 2782, jvmRun.getMaxGcPause());\n Assert.assertEquals(\"Max perm gen space not calculated correctly.\", 159936, jvmRun.getMaxPermSpace());\n Assert.assertEquals(\"Max perm gen occupancy not calculated correctly.\", 76972, jvmRun.getMaxPermOccupancy());\n Assert.assertEquals(\"Total GC duration not calculated correctly.\", 5614, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SCAVENGE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SCAVENGE));\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SERIAL_OLD));\n Assert.assertTrue(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_PARALLEL));\n }", "public void MIPSme()\n {\n sir_MIPS_a_lot.getInstance().heap_allocate(size, targetReg);\n }", "@Test\n\tpublic void testHeap() {\n\t\t// merely a suggestion \n\t}", "private static void init() {\n\t\tLogger.setPrinting(true);\n\n\t\tdouble gb = 1024 * 1024 * 1024;\n\t\tlog(\"Make sure that your memory limit is increased, using at least 8GB is recommended to process the KaVE datasets... (-Xmx8G)\");\n\t\tlog(\"Current max. memory: %.1f GB\", Runtime.getRuntime().maxMemory() / gb);\n\n\t\tJsonUtilsCcKaveRsseCalls.registerJsonAdapters();\n\t}", "private static void testStringPoolGarbageCollection() {\n //first method call - use it as a reference\n test(1000 * 1000);\n //we are going to clean the cache here.\n System.gc();\n //check the memory consumption and how long does it take to intern strings\n //in the second method call.\n test(1000 * 1000);\n }", "private static void testStringPoolGarbageCollection() {\n //first method call - use it as a reference\n test(1000 * 1000);\n //we are going to clean the cache here.\n System.gc();\n //check the memory consumption and how long does it take to intern strings\n //in the second method call.\n test(1000 * 1000);\n }", "@DefaultValue(\"300000\")\n long getUnknownPodGcTimeoutMs();", "long getLocalOnHeapSizeInBytes();", "@Override\r\n public void onLowMemory() {\r\n super.onLowMemory();\r\n Glide.get(getApplicationContext()).clearMemory();\r\n Glide.get(getApplicationContext()).trimMemory(TRIM_MEMORY_COMPLETE);\r\n System.gc();\r\n }", "void compact(long maxSize) throws IOException;", "public HeapImp() {\n\t\tthis(10000);\n\t}", "public void customDump() {\n //Same with StandardHeapDumper StripHprofHeapDumper\n new ForkJvmHeapDumper().dump(\"absolute-path\");\n }", "public static void main(String[] args) {\n\t\tUnsafe unsafe = getUnsafe();\r\n\t\ttry {\r\n\t\tSystem.out.println(\"分配内存\");\r\n\t\tlong base = unsafe.allocateMemory(_1GB);\r\n\t\tSystem.in.read();\r\n\t\tSystem.out.println(\"释放内存\");\r\n\t\tunsafe.freeMemory(base);\r\n\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public MemoryLogger(int size) {\n\t\tthis.size = size;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Starting with \" + ContadorDeInstancias.getCount());\n\t\tfor (int i = 0;i<300;i++) {\n\t\t\tnew ContadorDeInstancias();\n\t\t\tSystem.out.println(\"Created \"+ ContadorDeInstancias.getCount());\n\t\t}\n\n\t}", "private void setMemorySize() { }", "public void summarizeSpaceEfficient() {\n int maxLevel = Collections.max(CALattice.levelMap.keySet());\n for (int i = maxLevel; i >= 0; i--) {\n summarizeSpaceEfficientHelper(CALattice.levelMap.get(i));\n //freeing memory\n if (i < maxLevel)\n freeMemory(CALattice.levelMap.get(i + 1));\n }\n }", "@Test\n @BenchmarkOptions(benchmarkRounds = 2, warmupRounds = 2)\n /**\n * ?:\n * < 128K use glibc brk\n * > 128K use mmap\n * speed: 100x diff\n *\n * malloc/malloc.c:\n * (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit platforms define as 512KFor 64-bit platforms as 32MB.\n */\n public void allocateAndFreeMemoryCost260k() {\n for (int i = 0; i < 1000_000; i++) {\n long address = UNSAFE.allocateMemory(SIZE_260k);\n// address++;\n// address--;\n UNSAFE.freeMemory(address);\n }\n }", "@Override\n public int getCacheSize() {\n return 4 * 1024 * 1024;\n }" ]
[ "0.6814655", "0.66230756", "0.65885574", "0.65472203", "0.6325013", "0.6264202", "0.62365824", "0.6230103", "0.6110051", "0.60697293", "0.60516113", "0.6011595", "0.60076344", "0.59897816", "0.5988785", "0.59844524", "0.59181523", "0.5858513", "0.5791678", "0.5759726", "0.57284683", "0.57004416", "0.5605328", "0.55768734", "0.55578244", "0.55131865", "0.5491181", "0.54607195", "0.5460615", "0.5455747", "0.5451077", "0.53912157", "0.5350179", "0.53479475", "0.5346458", "0.533131", "0.5327064", "0.5310937", "0.5278265", "0.5270654", "0.5249142", "0.52319944", "0.5226356", "0.521487", "0.5204035", "0.52038527", "0.52026904", "0.51781553", "0.5154534", "0.5101301", "0.5083537", "0.50806415", "0.5075893", "0.5071402", "0.50697476", "0.5065576", "0.50585455", "0.5055242", "0.50535196", "0.5023483", "0.49534404", "0.49464947", "0.49452117", "0.4910706", "0.49000233", "0.48923784", "0.48856384", "0.48622322", "0.48359385", "0.48111194", "0.48059002", "0.47936055", "0.4786721", "0.4772777", "0.47665638", "0.47630942", "0.47546816", "0.47410884", "0.4737766", "0.4737699", "0.4737476", "0.47311956", "0.47169185", "0.47107568", "0.4709561", "0.46909308", "0.46909308", "0.46855575", "0.46809384", "0.4672883", "0.46685526", "0.46671465", "0.4651398", "0.4649565", "0.46484354", "0.4641829", "0.46344477", "0.46140388", "0.46121702", "0.45893016" ]
0.5536803
25
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); combo = new javax.swing.JComboBox<>(); search = new javax.swing.JTextField(); btn_search = new javax.swing.JButton(); btn_update = new javax.swing.JButton(); btn_delete = new javax.swing.JButton(); btn_Return = new javax.swing.JButton(); jLabel8 = new javax.swing.JLabel(); txt_flight_fare = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); txt_seat_no = new javax.swing.JTextField(); jLabel10 = new javax.swing.JLabel(); txt_Orgin = new javax.swing.JTextField(); txt_destination = new javax.swing.JTextField(); txt_Days = new javax.swing.JTextField(); txt_months = new javax.swing.JTextField(); txt_id = new javax.swing.JTextField(); txt_year = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); txt_hours = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); txt_minutes = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); table = new javax.swing.JTable(); help = new javax.swing.JLabel(); btn_save = new javax.swing.JButton(); btn_cancel = new javax.swing.JButton(); jLabel12 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane1.setViewportView(jTable1); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } public void windowDeactivated(java.awt.event.WindowEvent evt) { formWindowDeactivated(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel1.setText("Search Option"); combo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Origin Airport Code", "Destination Airport Code", "Date", "ALL Flight", " " })); combo.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { comboItemStateChanged(evt); } }); combo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { comboActionPerformed(evt); } }); btn_search.setText("Search"); btn_search.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_searchActionPerformed(evt); } }); btn_update.setText("Update"); btn_update.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_updateActionPerformed(evt); } }); btn_delete.setText("Delete"); btn_delete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_deleteActionPerformed(evt); } }); btn_Return.setText("Return"); btn_Return.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_ReturnActionPerformed(evt); } }); jLabel8.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel8.setText("Minutes"); txt_flight_fare.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel9.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel9.setText("Seats No:"); txt_seat_no.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel10.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel10.setText("Flight Fare:"); txt_Orgin.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N txt_destination.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N txt_Days.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N txt_months.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N txt_id.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N txt_year.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel2.setText("Flight ID"); txt_hours.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel3.setText("Orgin"); txt_minutes.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel4.setText("Destination"); jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel5.setText("Days"); jLabel6.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel6.setText("Month"); jLabel7.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel7.setText("Year:"); jLabel11.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel11.setText("Hours:"); table.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Flight ID", "Orgin ", "Destination", "Days", "Month", "Year", "Hours", "Minutes", "Seat", "Fare" } )); table.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tableMouseClicked(evt); } }); jScrollPane2.setViewportView(table); help.setText("Origin Airport should be consist of three characters"); btn_save.setText("Save"); btn_save.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_saveActionPerformed(evt); } }); btn_cancel.setText("Cancel"); btn_cancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_cancelActionPerformed(evt); } }); jLabel12.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel12.setText("For FLIGHT"); jButton1.setText("Exit"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane2) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(41, 41, 41) .addComponent(search, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGap(22, 22, 22) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jLabel12))) .addGap(18, 18, 18) .addComponent(help, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(btn_Return, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn_delete, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn_update, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE) .addComponent(btn_search, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_flight_fare, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_seat_no, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_minutes, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_hours, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_year, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_months, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_Days, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_destination, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_Orgin, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(btn_save, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn_cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(48, 48, 48)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(txt_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(txt_Orgin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(6, 6, 6) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(txt_destination, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(txt_Days, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(txt_months, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(txt_year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11) .addComponent(txt_hours, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(txt_minutes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(txt_seat_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel10) .addComponent(txt_flight_fare, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(13, 13, 13) .addComponent(btn_cancel)) .addGroup(layout.createSequentialGroup() .addGap(18, 18, 18) .addComponent(btn_save)))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(23, 23, 23) .addComponent(help, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel12))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(search, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(btn_search) .addGap(18, 18, 18) .addComponent(btn_update) .addGap(18, 18, 18) .addComponent(btn_delete) .addGap(18, 18, 18) .addComponent(btn_Return) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton1))) .addGap(35, 35, 35) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73213893", "0.72913563", "0.72913563", "0.72913563", "0.7286415", "0.724936", "0.72132975", "0.72076875", "0.71963966", "0.7190991", "0.7184836", "0.71593595", "0.71489584", "0.709429", "0.7080468", "0.70567", "0.6987573", "0.69780385", "0.69556123", "0.69538146", "0.6945521", "0.69423586", "0.6935968", "0.69330275", "0.692813", "0.6924971", "0.69242555", "0.6911953", "0.6911683", "0.689307", "0.689293", "0.68911546", "0.68901724", "0.6888897", "0.6883029", "0.68823075", "0.68819803", "0.6878825", "0.6875638", "0.6874702", "0.68724024", "0.68601924", "0.68568707", "0.6856268", "0.6856217", "0.68552643", "0.6853839", "0.6852327", "0.6852327", "0.6843502", "0.68374175", "0.6837008", "0.6828905", "0.6828786", "0.68258685", "0.6823454", "0.6823341", "0.68164855", "0.6816273", "0.681072", "0.6810196", "0.68090945", "0.68083966", "0.68072087", "0.6802229", "0.679545", "0.6795217", "0.67920595", "0.67905307", "0.67902476", "0.6789075", "0.6787793", "0.678205", "0.6765594", "0.67655575", "0.676554", "0.6755679", "0.6755387", "0.67527455", "0.6750321", "0.6741919", "0.6739145", "0.67376417", "0.673622", "0.6733591", "0.67282665", "0.6727961", "0.6720994", "0.6715958", "0.6715172", "0.67146355", "0.67088073", "0.67068994", "0.67046213", "0.67008626", "0.67002195", "0.6699175", "0.66977036", "0.66942674", "0.6691273", "0.6689522" ]
0.0
-1
GENFIRST:event_btn_ReturnActionPerformed TODO add your handling code here:
private void btn_ReturnActionPerformed(java.awt.event.ActionEvent evt) { Filight_Details FD = new Filight_Details(); FD.setVisible(true); this.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void keyPressed(KeyEvent e) {\n int key;\n key = e.getKeyCode();\n if(key == KeyEvent.VK_ENTER){\n if(e.getSource().toString().contains(\"Return\")){\n try{\n // System.out.println(\"walal\");\n if(\"\".equals(issueReturnView.getIssueId())){\n JOptionPane.showMessageDialog(issueReturnView, \"Please Select the Issued Item to be Return\");\n return;\n }\n // System.out.println(\"walal\"); \n if(issueReturnView.getReturnQuantity().trim().isEmpty()){\n JOptionPane.showMessageDialog(issueReturnView, \"Return Quantity Can be Zero.\");\n return;\n }\n // System.out.println(issueReturnView.getReturnQuantity());\n // System.out.println(\"walal\");\n if(Float.parseFloat(issueReturnView.getReturnQuantity())> Float.parseFloat(issueReturnView.getIssueQuantity())){\n JOptionPane.showMessageDialog(issueReturnView, \"Return Quantity is greater than Issued Quantity\");\n return;\n }\n // System.out.println(\"walal\");\n int choice;\n choice = JOptionPane.showConfirmDialog(issueReturnView, \"Do You Want to Return the Item\",\"Return Item\", JOptionPane.YES_NO_OPTION);\n if(choice == JOptionPane.YES_OPTION){\n issueReturnModel.IssueReturn(issueReturnView.getIssueReturnInfo());\n issueReturnView.clearAll();\n issueReturnView.enableReturnBtn();\n }\n }\n \n catch(Exception ee){\n JOptionPane.showMessageDialog(issueReturnView, ee+\"form IssueReturnListener\");\n }\n \n }\n if(e.getSource().toString().contains(\"Cancel\")){\n issueReturnView.clearAll(); \n issueReturnView.disableReturnBtn();\n }\n if(e.getSource().toString().contains(\"Search\")){\n String strsearch;\n String[] SearchBox = new String[7];\n boolean flag = false;\n int col =1;\n try{\n strsearch = issueReturnView.getSearch();\n for(int row = 0;row<issueReturnView.tblReturnList.getModel().getRowCount();row++){\n if(strsearch.equalsIgnoreCase(issueReturnView.tblReturnList.getValueAt(row, col).toString())||strsearch.equalsIgnoreCase(issueReturnView.tblReturnList.getValueAt(row, col-1).toString())){\n for(int scol = 0;scol<issueReturnView.tblReturnList.getModel().getColumnCount();scol++){\n SearchBox[scol] = issueReturnView.tblReturnList.getValueAt(row, scol).toString();\n }\n //inorer to scrooll over the tbale\n issueReturnView.tblReturnList.scrollRectToVisible(issueReturnView.tblReturnList.getCellRect(row, 0, true));\n // for focus\n issueReturnView.tblReturnList.setRowSelectionInterval(row, row);\n// issueReturnView.setIssueReturnInfo(SearchBox);\n// issueReturnView.setFieldEditableFalse();\n// Float UnitRelativeQuantity = issueReturnModel.getUnitRelativeQuantity(issueReturnModel.getUnitIdByIssueId(issueReturnView.getIssueId()));\n// issueReturnView.setStockQuantity(String.valueOf(issueReturnModel.getStockQuantityfromResturantStore(issueReturnView.getIssueId())/UnitRelativeQuantity));\n// issueReturnView.enableReturnBtn();\n flag = true;\n break;\n \n }\n }\n \n if(flag == false){\n JOptionPane.showMessageDialog(issueReturnView, \"Item Not Found.\");\n }\n \n }\n catch(Exception sere){\n JOptionPane.showMessageDialog(issueReturnView, sere+\"from search\");\n }\n }\n }\n }", "private void enterPressed(java.awt.event.KeyEvent evt){\n //Check if enter was pressed\n if(evt.getKeyCode()==java.awt.event.KeyEvent.VK_ENTER){\n //If the button is enabled\n if(this.jButtonSearch.isEnabled()){\n //Simulate a click on the button\n this.jButtonSearchActionPerformed(new java.awt.event.ActionEvent(new Object(),0,\"\"));\n }\n }\n }", "private void jTextField13ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void actionPerformed(ActionEvent e) { \n enter();\n }", "private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "private void Button_CEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_CEActionPerformed\n // TODO add your handling code here:\n \n }", "public void actionPerformed(ActionEvent event) {\n\n\t\t//se foi, ele fecha a janela de ranking\n\t\tif (event.getSource() == returnButton){\n\t\t\tthis.dispose();\n\t\t}\n\t}", "private void btn_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_ExitActionPerformed\n System.exit(0);\n }", "public void actionPerformed(ActionEvent event) {\n sendData(event.getActionCommand());\n enterField.setText(\"\");\n }", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_exitButtonActionPerformed\n\tSystem.exit(0);\n }", "public ReturnButton(String text) {\n super(text);\n this.addActionListener(this);\n }", "private void KeyActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void escActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_escActionPerformed\n back();\n dispose();\n }", "public void actionPerformed(ActionEvent evt) {\n\n\t\t// Enter pressed in text field\n\t\tif (evt.getSource() == textField) {\n\t\t\tsaveCurrRectToStack(combo.getSelectedItem());\n\t\t}\n\t\t// Category chosen from combo box\n\t\telse if (evt.getSource() == combo) {\n\t\t\tframe.requestFocusInWindow();\n\t\t}\n\t\t// Next button pressed\n\t\telse if (evt.getSource() == button1){\n\t\t\tsaveHandler();\n\t\t}\n\t\t// Prev button pressed\n\t\telse if (evt.getSource() == button2){\n\t\t\trewindToPreviousImage();\n\t\t}\n\t}", "private void btnCerrarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseClicked\r\n \r\n System.exit(0);\r\n// TODO add your handling code here:\r\n }", "private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Click(R.id.ivReturn)\n\tvoid toReturn() {\n\t\tfinish();\n\t}", "private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtKQActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\n\tpublic void actionPerformed(ActionEvent ev) {\n\t\tString command = ev.getActionCommand();\n\t\tif (command.equals(\"Enter\")) {\n\t\t\tshowResult();\n\t\n\t\t} else if (command.equals(\"Reset\")) {\n\t\t\treset();\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void button1KeyPressed(KeyEvent e) {\n }", "private void txt_montoKeyReleased(java.awt.event.KeyEvent evt) {\n if (evt.getKeyCode()==KeyEvent.VK_ENTER){\n insertarRubro();\n } \n }", "public void actionPerformed(ActionEvent e) {\r\n\r\n if (identifier.intValue() == KeyEvent.VK_F3 || identifier.intValue() == KeyEvent.VK_ENTER) {\r\n btnSearch.doClick();\r\n }\r\n else if (identifier.intValue() == KeyEvent.VK_F12 || identifier.intValue() == KeyEvent.VK_ESCAPE) {\r\n btnCancel.doClick();\r\n }\r\n }", "public void keyPressed(KeyEvent e) {\n if (e.getKeyCode()==KeyEvent.VK_ENTER){\n enter();\n } \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tObject source = e.getSource();\r\n\t\tif(source==button) {\r\n\t\t\tlabel.setText(\"You clicked the button\");\r\n\t\t} else {\r\n\t\t\tlabel.setText(\"You pressed Enter\");\r\n\t\t}\r\n\t\t\r\n\t}", "private void quitJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_quitJButtonActionPerformed\n // TODO add your handling code here:\n System.exit(0);\n }", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitButtonActionPerformed\n System.exit(0);\n }", "public String enterPressed();", "private void exitJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitJButtonActionPerformed\n System.exit(0);\n }", "private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyPressed\r\n int key = evt.getKeyCode();\r\n if (key == KeyEvent.VK_ENTER) {\r\n sendMessage(jTextField1.getText());\r\n }\r\n }", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_CancelActionPerformed\n // TODO add your handling code here:\n }", "private void txtRucActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texit_click(e);\r\n\t\t\t}", "public void keyReleased(KeyEvent e) {\r\n\t\tif(e.getKeyCode() == KeyEvent.VK_ENTER)\r\n\t\t\tverBtn.doClick();\r\n\t\tif(e.getKeyCode() == KeyEvent.VK_ESCAPE)\r\n\t\t\tcancelarBtn.doClick();\r\n\t}", "private void txtserchActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButtonAtrasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAtrasActionPerformed\n System.exit(0);\n }", "private void btnConfirmActionPerformed(java.awt.event.ActionEvent evt) {\n }", "void okButton_actionPerformed(ActionEvent e) {\n setItskey(keyTextField.getText());\n setItsvalue(valueTextField.getText());\n setUserAction(OK);\n setVisible(false);\n }", "private JButton createReturnButton() {\r\n exit = new JButton();\r\n exit.setBounds(215, 260, 100, 25);\r\n\r\n add(new SComponent(exit,\r\n new String[] {\"Schließen\", \"Close\"},\r\n new String[] {\"Schließt das Fenster.\",\r\n \"Closes the window.\"}));\r\n\r\n exit.addActionListener(new ActionListener() {\r\n\r\n /** Schliesst den Dialog\r\n *\r\n * @param e ActionEvent\r\n */\r\n public void actionPerformed(final ActionEvent e) {\r\n close();\r\n }\r\n });\r\n\r\n return exit;\r\n }", "private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public JButton getReturnButton() {\n return this.retour;\n }", "private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "private void btnKeluarActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "private void codigoProductoTBKeyPressed(java.awt.event.KeyEvent evt) {\n }", "private void formKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_formKeyPressed\n \n //Llama a la función escalable\n vKeyPreEsc(evt);\n \n }", "private void jTextField12ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField12ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\n protected void handleEscapeKeyPressed() {\n\n }", "public void keyPressed(KeyEvent e) {\n if(e.getKeyCode()==KeyEvent.VK_ENTER){\n\n }\n }", "public IButton getReturnButton() {\n return controls.getReturnButton();\n }", "private void jButtonCancelActionPerformed() {\r\n\t\texit();\r\n\t}", "private void btnRegresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextFieldSearchWordKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldSearchWordKeyReleased\n //Enable/disable the search button\n this.searchButtonEnabler();\n //Check if enter was pressed\n this.enterPressed(evt);\n }", "private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {\n \n }", "private void searchTextFiledActionPerformed(ActionEvent evt) {\n }", "@FXML\n\tprivate void handleReturn() {\n\t\tmainApp.showVariableOverview(\n\t\t\t\tnew CurrentDirectoryController(mainApp.getCurrentFileController().getFile().getParentFile()));\n\t}", "private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void initReturn() {\n TextButton returnButton = new TextButton(\"return\", skin);\n returnButton.setPosition(320, 65);\n returnButton.addListener(new InputListener() {\n @Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n stateManager.setState(new LoginState(stateManager));\n }\n\n @Override\n public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n return true;\n }\n });\n stage.addActor(returnButton);\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER) {\n\t\t\t\t\tsbt_jbt.doClick();\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void processExitButtonClick(ProcessButtonObjectEvent e) {\n\t\t\n\t}", "private void textField1ActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "private void button1ActionPerformed(ActionEvent e) {\n }", "public TeamListPage pressReturnButton() {\n controls.getReturnButton().click();\n return new TeamListPage();\n }", "public void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER) {\n\t\t\t\t\tsbt_jbt.doClick();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tsendData(event.getActionCommand());//调用sendData方法,响应操作。\t将信息发送给客户\r\n\t\t\t\tenterField.setText(\"\"); //将输入区域置空\r\n\t\t\t}", "@Override\r\n public void handle(KeyEvent ke){\n if (ke.getCode().equals(KeyCode.ENTER) || ke.getCode().equals(KeyCode.TAB)){ \r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_buscar\")){ \r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_caja(tf_buscar.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_buscar.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. Guia NO existe en la \" + ScreenName, \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n tf_buscar.setVisible(false); //establece el textField como oculto al finalizar\r\n }\r\n }\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n \t Robot r;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tr = new Robot();\r\n\t\t\t\t int keyCode = KeyEvent.VK_ENTER; // the A key\r\n\t\t\t\t r.keyPress(keyCode);\t\t\t\t \r\n\t\t\t\t} catch (AWTException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "private void menu_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_ExitActionPerformed\n System.exit(0);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btnSearch) {\n\t\t\tbtnSearch_Clicked();\n\t\t\t}\n\t\t\n\t\telse if(e.getSource()==btnClose) {\n\t\t\tif(JOptionPane.showConfirmDialog(this, \"确认关闭窗口吗?\",\n \"关闭窗口\",JOptionPane.OK_CANCEL_OPTION)\n\t\t\t\t\t==JOptionPane.OK_OPTION) {\n\t\t\t\tthis.dispose();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\tcon.setResult(btnName);\n\t\t\t}", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void nombretxtActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }", "private void CActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\tif (e.getKeyCode()==e.VK_ENTER) {\r\n\t\t\t\t\ttfPreco.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\tpublic void handle(KeyEvent event) {\n\t\t\t\tif(event.getCode().equals(KeyCode.ENTER)){\n\t\t\t\t\tPlatform.runLater(()->{dodaj.fire(); sifra.requestFocus();});\n\t\t\t\t}\n\t\t\t}", "private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {\n \n }", "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "@FXML\r\n\t public void returnAction(ActionEvent event) throws IOException {\r\n\r\n\t\t\t\tLoadGUI.loadFXML(\"SubscriberMenu.fxml\",returnButton);\r\n\t }", "private void jTextField19ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\tif (e.getKeyCode()==e.VK_ENTER) {\r\n\t\t\t\t\ttfCNPJ.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}", "private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n \n }", "@Override\n\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\t\tif (e.getKeyChar() == KeyEvent.VK_ENTER) getActionNewParticipant().actionPerformed(null);\n\t\t\t\t\t}", "protected void enterPressed()\n\t{\n\t\t// Call the enter method if the enter key was pressed\n\t\tif (showCaret)\n\t\t\tonSubmit(text.getText().substring(0, text.getText().length() - 1));\n\t\telse onSubmit(text.getText());\n\t}", "private void botao_atirarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n this.dispose();\n }" ]
[ "0.7255962", "0.72538877", "0.72393316", "0.6961143", "0.69024354", "0.6803738", "0.6801007", "0.6781234", "0.67586356", "0.6756985", "0.66935563", "0.66832256", "0.6657512", "0.66453826", "0.6622331", "0.6598139", "0.6574769", "0.6570583", "0.6567137", "0.6563895", "0.6562578", "0.65497833", "0.6538567", "0.6519076", "0.65061194", "0.64942986", "0.64925665", "0.6488145", "0.6468013", "0.6459555", "0.64414525", "0.64368844", "0.64368844", "0.6436806", "0.64348096", "0.643036", "0.64292103", "0.64216524", "0.6421637", "0.6407111", "0.64024574", "0.6382136", "0.6379671", "0.6375497", "0.63747627", "0.6366307", "0.63642424", "0.6355615", "0.6354918", "0.6350836", "0.6350836", "0.63493127", "0.63492525", "0.633908", "0.6315617", "0.6303457", "0.63020897", "0.63007456", "0.62922674", "0.6288521", "0.62832695", "0.6270824", "0.6270824", "0.624932", "0.6249075", "0.6245348", "0.6238436", "0.62354857", "0.62343395", "0.6229963", "0.6220268", "0.6219453", "0.62141466", "0.6207711", "0.6203429", "0.6201435", "0.62010247", "0.6196541", "0.6194757", "0.6194757", "0.6194757", "0.61903435", "0.6184871", "0.61815", "0.61777914", "0.61757046", "0.61750454", "0.6169996", "0.61693084", "0.6168407", "0.61625606", "0.6150055", "0.6148372", "0.6146733", "0.61464137", "0.614193", "0.614193", "0.614193", "0.614193", "0.61360747" ]
0.6164435
90
Cria um validador com uma mensagem geral vazia.
public Validador() { this.msgGeral = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Validador(String msgGeral) {\n this.msgGeral = msgGeral + \": \";\n }", "private Validador() {\r\n }", "private ValidationError() {\n }", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "void AlertaValidacion(String title, String message){\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(title);\n builder.setMessage(message).setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "public ValidationMessage() {\n }", "void validateActivoCreate(Activo activo);", "public ErrorMessage() {\n\t}", "public Validacion(String descripcion) {\n super(descripcion);\n }", "public ValidaCpf() {\n }", "public ModeloNoValidoException(String mensaje) {\n\t\tsuper(mensaje);\n\t}", "private ValidatorForm(){}", "@Override\r\n\tpublic void validarSaldo() {\n\t\tSystem.out.println(\"Transaccion exitosa\");\r\n\t}", "private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }", "public Result validate(MessageNode mesgNode, Message mesg);", "public void verValidarCandidato()\r\n\t{\r\n\t\tcandidato = new ValidarCandidato(this);\r\n\t\tcandidato.setVisible(true);\r\n\t}", "public String createErrorMessage(CommandSender sender, MCommand command);", "public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}", "public boolean validarForm() throws Exception {\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(\"Los campos marcados con (*) son obligatorios\",\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }", "public String preValidar() {\n\t\tString errores = \"\";\r\n\t\t\r\n\t\tif (email == null || email.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique el e-mail</br>\";\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tif(!isValidEmailAddress()){\r\n\t\t\t\terrores = errores + \"indique un e-mail válido</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (contrasenya == null || contrasenya.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique la contraseña</br>\";\r\n\t\t} else {\r\n\t\t\tif(!isValidPwd()){\r\n\t\t\t\terrores = errores + \"la contraseña debe contener\"\r\n\t\t\t\t\t\t+ \" al menos 8 caracteres, y estos deben ser\"\r\n\t\t\t\t\t\t+ \"alfanuméricos</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn errores;\r\n\t}", "@Test(expected = MessageValidationException.class)\r\n public void testValidate1() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.validate();\r\n }", "@Test\r\n public void testValidate() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }", "@Override\r\n\tpublic void validate(FacesContext context, UIComponent component, Object object) throws ValidatorException {\r\n\t\t\r\n\t\tString valor = object.toString();\r\n\t\t\t\r\n\t\tif (valor.matches(\"^\\\\s.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al principi\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*\\\\s$\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al final\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*[ ]{2,}.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver mÚs d'un espai en blanc entre paraules\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (!valor.matches(\"[a-zA-Z ]+\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"┌nicament es poden utilitzar carÓcters alfabŔtics\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "public MessagesAssertor() {\r\n this.preconditions = new ArrayList<>();\r\n this.messages = new ArrayList<>();\r\n }", "public static void validate() {\r\n\t\tfrmMfhEmailer.validate();\r\n\t}", "public PetsValidationException(String message) {\n super(message);\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void criaContatoTelefoneInvalido() {\n\t\tcontato = new Contato(\"Jardely\", \"Maris\", \"\");\n\t}", "public MessageParseException() {\n }", "public DataDiFineTirocinioNonValidaException(String messaggio) {\r\n super(messaggio);\r\n }", "public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}", "public boolean validarCampos() {\n\t\tboolean valid = true;\n\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getNome())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataCadastro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getSexo())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getRG())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isObjectNotNull(this.getPaciente().getRG()) && this.getPaciente().getRG() < 0) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG015\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isCPFValido(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG006\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isCPFValido(this.getPaciente().getCPF()) && isPacienteCadastrado(this.getPaciente())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG017\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getEndereco())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getBairro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getCidade())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getUF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataNascimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isTelefoneValido(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "public void validar(View v) {\r\n //Compruebo que se hayan insertado todos los datos\r\n SimpleDateFormat formatoFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n if(!nombre.getText().toString().equals(\"\")\r\n &&!mail.getText().toString().equals(\"\")\r\n &&!fecha.getText().toString().equals(\"\")) {\r\n //Si se han introducido todos los datos compruebo la edad\r\n fNac = null;\r\n fActual = null;\r\n\r\n try {\r\n fNac = formatoFecha.parse(fecha.getText().toString());\r\n fActual = new Date();\r\n edad = (int) ((fActual.getTime() - fNac.getTime()) / 1000 / 60 / 60 / 24 / 360);//Calculo la edad\r\n //Compruebo si es mayor de edad\r\n if (edad < 18)\r\n //Error si es menor de edad\r\n Toast.makeText(getApplicationContext(), R.string.menorDeEdad, Toast.LENGTH_LONG).show();\r\n else {//Si todo es correcto devuelve los datos introcucidos a la pantalla principal.\r\n Toast.makeText(getApplicationContext(), R.string.registroCompletado, Toast.LENGTH_LONG).show();\r\n Intent i = new Intent();\r\n i.putExtra(\"REGISTRADO\", true);\r\n i.putExtra(\"NOMBRE\", nombre.getText().toString());\r\n i.putExtra(\"MAIL\", mail.getText().toString());\r\n i.putExtra(\"FECHA\", fecha.getText().toString());\r\n setResult(RESULT_OK,i);\r\n finish();\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_LONG).show();//Si no se ha introducido ninguna fecha\r\n }\r\n }else\r\n Toast.makeText(getApplicationContext(), R.string.toastFaltanDatos, Toast.LENGTH_LONG).show();\r\n }", "@Test(expected = MessageValidationException.class)\r\n public void testValidate2() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n instance.validate();\r\n }", "private Validate(){\n //private empty constructor to prevent object initiation\n }", "public boolean validarForm() throws Exception {\r\n\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxNro_ingreso.setStyle(\"background-color:white\");\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxEstado_salida.setStyle(\"background-color:white\");\r\n dtbxFecha_ingreso.setStyle(\"background-color:white\");\r\n\r\n Admision admision = ((Admision) lbxNro_ingreso.getSelectedItem()\r\n .getValue());\r\n\r\n boolean valida = true;\r\n\r\n String mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n if (tbxNro_identificacion.getText().trim().equals(\"\")) {\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_prestador.getText().trim().equals(\"\")) {\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (admision == null) {\r\n lbxNro_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_diagnostico_principal.getText().trim().equals(\"\")) {\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (lbxCausa_externa.getSelectedIndex() == 0) {\r\n lbxCausa_externa\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (valida) {\r\n if (lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono el estado de la salida como muerto(a) \\npor lo tanto debe seleccionar la causa de muerte\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (!lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && !tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n lbxEstado_salida.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono una casua de muerte \\npor lo tanto debe seleccionar el estado a la salida como muerto (a)\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (dtbxFecha_ingreso.getValue().compareTo(\r\n dtbxFecha_egreso.getValue()) > 0) {\r\n dtbxFecha_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"La fecha de ingreso no puede ser mayor a la fecha de egreso\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (!valida) {\r\n Messagebox.show(mensaje,\r\n usuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n Messagebox.EXCLAMATION);\r\n }\r\n\r\n return valida;\r\n }", "public PromoCodeAlreadyExistsException (Promo promo_input)\n {\n super(\"Promo Code: \");\n this.promo_error=promo_input;\n }", "public FilmValidator() {\n errorMessage = new HashSet<>();\n }", "public boolean validarForm() throws Exception {\n\n\t\tboolean valida = true;\n\n\t\tif (!valida) {\n\t\t\tMensajesUtil.mensajeAlerta(usuarios.getNombres()\n\t\t\t\t\t+ \" recuerde que...\",\n\t\t\t\t\t\"Los campos marcados con (*) son obligatorios\");\n\t\t}\n\n\t\treturn valida;\n\t}", "private void validarCampos() {\n }", "public abstract String mensajeCrearCelula();", "public ValidationException(String msg) {\n\t\tsuper(msg);\n\t}", "public void validate() throws SpringBootBaseAppException,MessageValidationException;", "public interface ValidacionConstantes {\n\t\n\t/**\n\t * Expresión regular para validar correos electrónicos.\n\t */\n\tString EXPR_REG_EMAIL = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"\"\n\t\t\t+ \"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x\"\n\t\t\t+ \"0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-\"\n\t\t\t+ \"9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4\"\n\t\t\t+ \"][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\"\n\t\t\t+ \"-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n\t\n\t\n\t/*\n\t * Mensajes de validación\n\t */\n\t\n\t\n\tString MSG_EMAIL_REQUERIDO = \"Correo electrónico no válido\";\n\t\n\t\n\n}", "Usuario validarUsuario(Usuario usuario) throws Exception;", "public void validar(){\n\t\tif (verificador == false){\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}else{\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsPresentInAChannel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsntPresentInAChannel();\r\n\t\t\t}else{\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean validarEntradaDeDados() {\n\t\tString errorMessage = \"\";\n\n\t\tif (textFieldProdutoNome.getText() == null || textFieldProdutoNome.getText().length() == 0) {\n\t\t\terrorMessage += \"Nome invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoPreco.getText() == null || textFieldProdutoPreco.getText().length() == 0) {\n\t\t\terrorMessage += \"Preço invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoQuantidade.getText() == null || textFieldProdutoQuantidade.getText().length() == 0) {\n\t\t\terrorMessage += \"Quantidade invalido!\\n\";\n\t\t}\n\t\tif (comboBoxProdutoCategoria.getSelectionModel().getSelectedItem() == null) {\n\t\t\terrorMessage += \"Categoria invalido!\\n\";\n\t\t}\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\n\t\t\t/** Mostrar a mensagem de erro. */\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Erro no registo\");\n\t\t\talert.setHeaderText(\"Campos invalidos, corrija...\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.show();\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n\tpublic String getMessage() {\r\n\t\treturn \"Veuillez entrer un nombre positif\";\r\n\t}", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "public void validate() {}", "ValidationError getValidationError();", "String getInvalidMessage();", "public boolean validar() {\n if (getUsuario().length() <= 8) {\n if (getSenha().length() > 7 && getSenha().length() < 17) {\n return true;\n }\n }\n return false;\n }", "public boolean ValidaTerminoFormulario(String mensagem) {\n\t\tboolean achou;\n\t\t\n\t\tif (DriverFactory.getDriver().findElement(By.xpath(\"//h1[@class = 'sc-bxivhb iYGUAI' and contains (text(), '\" + mensagem + \"')]\")) != null) {\n\t\tachou = true;\n\t\t}\n\t\telse achou = false;\n\t\t\n\t\treturn achou;\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void validar(Cliente cliente) throws ValidacaoException {\n\t\t\n\t}", "public boolean validar() {\n if (foto==null){\n Toast.makeText(this, getResources().getString(R.string.error_f), Toast.LENGTH_SHORT).show();\n foto.requestFocus();\n return false;\n }\n\n if (txtID.getText().toString().isEmpty()) {\n txtID.setError(getResources().getString(R.string.error_ID));\n txtID.requestFocus();\n return false;\n }\n\n if (txtNombre.getText().toString().isEmpty()) {\n txtNombre.setError(getResources().getString(R.string.error_nombre));\n txtNombre.requestFocus();\n return false;\n }\n\n if (txtTipo.getText().toString().isEmpty()) {\n txtTipo.setError(getResources().getString(R.string.error_tipo));\n txtTipo.requestFocus();\n return false;\n }\n\n /*if (o1 == 0) {\n Toast.makeText(this, getResources().getString(R.string.error_cantidad), Toast.LENGTH_SHORT).show();\n cmbSexo.requestFocus();\n return false;\n }*/\n\n if (txtCantidad.getText().toString().isEmpty()) {\n txtCantidad.setError(getResources().getString(R.string.error_cantidad));\n txtCantidad.requestFocus();\n return false;\n }\n\n return true;\n\n }", "public boolean validarCampos() {\n\t\tboolean valid = true;\n\t\t\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getData())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getHorarioInicioAtendimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getHorarioFimAtendimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\tif(valid) {\n\t\t\tif(this.getAgendaMedicoDAO().verificaAgendamentoHorario(this.getMedicoSessao(), this.getAgendaMedico())) {\n\t\t\t\tthis.tratarMensagemErro(null, \"MSG014\");\n\t\t\t\tvalid = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "@Override\n\tprotected void validators() {\n\t\tString nsrmc = getDj_nsrxx().getNsrmc();\n\n\t\tif (ValidateUtils.isNullOrEmpty(nsrmc)) {\n\t\t\tthis.setSystemMessage(\"纳税人名称不能为空\", true, null);\n\t\t}\n\n\t}", "@Test(expected = MessageValidationException.class)\r\n public void testValidate3() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public Validate() {\n }", "public InvalidRequestMsg() {\n\n this(\"\");\n\n }", "public Message(){}", "public PromoMessages() {\n }", "public interface PropertyValidatorMessages {\n String EMPTY_PROPERTY_FIELD = \"EMPTY PROPERTY FIELD\";\n String PROPERTY_ALREADY_EXIST = \"PROPERTY ALREADY EXIST\";\n\n}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"REGISTRO PODA\");\n builder.setMessage(\"USUARIO O CONTRASEÑA INCORRECTA\");\n final AlertDialog.Builder ok = builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // You don't have to do anything here if you just want it dismissed when clicked\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }", "private void openValidateDialog() {\n final ValidateEmailDialog dialog = new ValidateEmailDialog(EmailRegisterActivity.this, EmailRegisterActivity.this, editEmail.getText().toString().trim());\n }", "public UserActivationValidationException(String message, LocalizedMessage reasonMessage) {\r\n super(message);\r\n this.reasonMessageBuilder = null;\r\n this.reasonMessage = reasonMessage;\r\n }", "@Override\n public HangarMessages addConstraintsNotBlankMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_NotBlank_MESSAGE));\n return this;\n }", "private Messages() {\n\t}", "private StatusMessage() {\n\n\t}", "private StatusMessage() {\n\n\t}", "private boolean validarComunicacion() {\n String texto = textInputAnadirComunicacion.getEditText().getText().toString().trim();\n if (texto.isEmpty()) {\n textInputAnadirComunicacion.setError(\"El campo no puede estar vacío\");\n return false;\n } else {\n textInputAnadirComunicacion.setError(null);\n return true;\n }\n }", "public Message() {}", "public Message() {}", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "public Erro(final String propriedade, final String mensagem) {\n this.propriedade = propriedade;\n this.mensagem = mensagem;\n }", "public NotValidException(String message) {\r\n super(message);\r\n }", "public interface AuthorValidationMessages {\n\n String EMPTY_AUTHORNAME_FIELD = \"EMPTY AUTHOR NAME\";\n String AUTHORNAME_ALREADY_EXISTS = \"AUTHORNAME ALREADY EXISTS\";\n String EMPTY_AUTHORSURNAME_FIELD = \"EMPTY AUTHOR SURNAME\";\n}", "private void validar() {\n String email_val = email.getText().toString().trim();\n String password_val = password.getText().toString().trim();\n progressBar.setVisibility(View.VISIBLE);\n if ((Patterns.EMAIL_ADDRESS.matcher(email_val).matches() == false) && (email_val.isEmpty())) {\n mensaje_email();\n progressBar.setVisibility(View.GONE);\n } else if ((password_val.isEmpty())) {\n mensaje_tamaño();\n progressBar.setVisibility(View.GONE);\n } else {\n firebase_inicio();\n }\n }", "public BundleValidator() {\n\t\tsuper();\n\t}", "public CaixaDeEntrada() {\n this.emails = new ArrayList<Mensagem>();\n this.emptyMessage = new Mensagem(\"\", \"\");\n }", "public Validation() {\n }", "protected ValidationException() {\r\n\t\t// hidden\r\n\t}", "public String getValidatorMessage() {\n \n return this.validatorMessage;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void criaContatoNomeInvalido() {\n\t\tcontato = new Contato(\"\", \"Jardely\", \"984653722\");\n\t}", "private void attemptCreation() {\n newFlat.setAddressLine1(\"\");\n newFlat.setPostcode(\"\");\n newFlat.setNotes(\"\");\n newFlat.setFlatNum(\"\");\n newFlat.setTenant(\"\");\n\n // Reset errors\n actvProperty.setError(null);\n etFlatNum.setError(null);\n etFlatNotes.setError(null);\n flatTenant.setError(null);\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for valid address, if the user entered one\n if (TextUtils.isEmpty(actvProperty.getText().toString())) {\n actvProperty.setError(\"This field is required\");\n cancel = true;\n focusView = actvProperty;\n } else if (!isAddressValid(actvProperty.getText().toString())) {\n actvProperty.setError(\"This address is invalid\");\n cancel = true;\n focusView = actvProperty;\n }\n\n // Check for a valid flat number, if the user entered one\n if (TextUtils.isEmpty(etFlatNum.getText().toString())) {\n etFlatNum.setError(\"This field is required\");\n cancel = true;\n if (focusView == null) {\n focusView = etFlatNum;\n }\n } else if (!isFlatNumValid(\"Flat \" + etFlatNum.getText().toString())) {\n etFlatNum.setError(\"This flat number is in use\");\n cancel = true;\n if (focusView == null) {\n focusView = etFlatNum;\n }\n\n Collections.sort(flatNums);\n\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Warning\")\n .setMessage(\"These flats already exist in \" + actvProperty.getText().toString()\n + \":\\n\\n\" + flatNums.toString() + \"\\n\\nPlease enter a unique number.\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .show();\n }\n\n // Check for valid tenant, if the user entered one\n if (TextUtils.isEmpty(flatTenant.getText().toString())) {\n // No need to add a tenant\n } else if (!isTenantValid(flatTenant.getText().toString())) {\n flatTenant.setError(\"This tenant does not exist in the system\");\n cancel = true;\n if (focusView == null) {\n focusView = flatTenant;\n }\n } else if (!isTenantFree(flatTenant.getText().toString())) {\n flatTenant.setError(\"This tenant number is in use\");\n cancel = true;\n if (focusView == null) {\n focusView = flatTenant;\n }\n }\n\n // Check for notes and add default notes if null\n if (TextUtils.isEmpty(etFlatNotes.getText().toString())) {\n etFlatNotes.setText(\"No notes yet. That's okay, you can add some later..\");\n }\n\n if (cancel) {\n // There was an error; don't attempt creation and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n saveNewFlat();\n }\n }", "@Test(expected = MessageValidationException.class)\r\n public void testValidate4() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }", "private ValidationUtils() {}", "public void createFailure() {\n\t\tgetController().changeFree(true);\t\t\n\t\tdisplayAdvertisement(\"opponent failure\");\n\t\tvalidate();\n\t}", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n ActionErrors errors = new ActionErrors();\n// if (getBuyerName() == null || getBuyerName().length() < 1) {\n// errors.add(\"name\", new ActionMessage(\"error.name.required\"));\n// // TODO: add 'error.name.required' key to your resources\n// }\n return errors;\n }", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "@Test(expected = MessageValidationException.class)\r\n public void testValidate7() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n //Too short\r\n instance.setMessage(\"message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }", "public Jogador()\n {\n pecasValidas = new ArrayList <Peca> ();\n }", "public JaxelValidator() {\n\t\tsuper();\n\t}", "public EmailValidation create(EmailValidation user);" ]
[ "0.6857255", "0.6665864", "0.6201551", "0.60978514", "0.604538", "0.5988796", "0.5984059", "0.5856381", "0.57916325", "0.572916", "0.569138", "0.5660189", "0.5626628", "0.5617347", "0.561272", "0.5534841", "0.55294424", "0.5526024", "0.5525048", "0.5507096", "0.5506766", "0.5492607", "0.5489665", "0.5475271", "0.54606", "0.5435061", "0.54274064", "0.54212815", "0.5419122", "0.5416593", "0.54159814", "0.5396829", "0.53906107", "0.53526735", "0.5349047", "0.53459567", "0.534326", "0.5342491", "0.53395903", "0.53391474", "0.5325133", "0.53147644", "0.5282801", "0.5270409", "0.52660704", "0.5265306", "0.52545893", "0.5253699", "0.52511716", "0.5242747", "0.52373785", "0.52334887", "0.5233104", "0.5231589", "0.5221007", "0.5208736", "0.5206371", "0.5204552", "0.5195478", "0.51905507", "0.5188544", "0.51680964", "0.5156558", "0.5154328", "0.51542574", "0.51530874", "0.51475364", "0.5144702", "0.51429135", "0.51319766", "0.5131875", "0.5128731", "0.5111378", "0.5106538", "0.5106538", "0.509994", "0.50996274", "0.50996274", "0.5092408", "0.50905627", "0.5088594", "0.506493", "0.5063552", "0.5062789", "0.5057024", "0.50564647", "0.5053617", "0.5049815", "0.5049247", "0.504677", "0.504382", "0.50435436", "0.50423324", "0.50326926", "0.5031526", "0.502474", "0.5023128", "0.5016468", "0.50143665", "0.5008788" ]
0.75184095
0
Cria um validador com uma mensagem geral passada como parametro.
public Validador(String msgGeral) { this.msgGeral = msgGeral + ": "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Validador() {\n this.msgGeral = \"\";\n }", "private Validador() {\r\n }", "public Validacion(String descripcion) {\n super(descripcion);\n }", "public ValidationMessage() {\n }", "void validateActivoCreate(Activo activo);", "void AlertaValidacion(String title, String message){\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(title);\n builder.setMessage(message).setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "private ValidationError() {\n }", "public DataDiFineTirocinioNonValidaException(String messaggio) {\r\n super(messaggio);\r\n }", "public ModeloNoValidoException(String mensaje) {\n\t\tsuper(mensaje);\n\t}", "@Override\r\n\tpublic void validate(FacesContext context, UIComponent component, Object object) throws ValidatorException {\r\n\t\t\r\n\t\tString valor = object.toString();\r\n\t\t\t\r\n\t\tif (valor.matches(\"^\\\\s.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al principi\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*\\\\s$\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al final\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*[ ]{2,}.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver mÚs d'un espai en blanc entre paraules\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (!valor.matches(\"[a-zA-Z ]+\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"┌nicament es poden utilitzar carÓcters alfabŔtics\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t}", "public ErrorMessage() {\n\t}", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "public ValidaCpf() {\n }", "public String createErrorMessage(CommandSender sender, MCommand command);", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }", "public PetsValidationException(String message) {\n super(message);\n }", "public void verificaNulo(Object parametro, String mensagem) {\n if (parametro == null) {\n throw new NullPointerException(this.msgGeral + mensagem);\n }\n }", "public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}", "private ValidatorForm(){}", "public Result validate(MessageNode mesgNode, Message mesg);", "public ValidationException(String msg) {\n\t\tsuper(msg);\n\t}", "Usuario validarUsuario(Usuario usuario) throws Exception;", "public interface ValidacionConstantes {\n\t\n\t/**\n\t * Expresión regular para validar correos electrónicos.\n\t */\n\tString EXPR_REG_EMAIL = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"\"\n\t\t\t+ \"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x\"\n\t\t\t+ \"0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-\"\n\t\t\t+ \"9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4\"\n\t\t\t+ \"][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\"\n\t\t\t+ \"-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n\t\n\t\n\t/*\n\t * Mensajes de validación\n\t */\n\t\n\t\n\tString MSG_EMAIL_REQUERIDO = \"Correo electrónico no válido\";\n\t\n\t\n\n}", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public InvalidRequestMsg() {\n\n this(\"\");\n\n }", "MessageParameter createMessageParameter();", "@Test(expected = IllegalArgumentException.class)\n\tpublic void criaContatoTelefoneInvalido() {\n\t\tcontato = new Contato(\"Jardely\", \"Maris\", \"\");\n\t}", "public MessageParseException() {\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "private FunctionParametersValidator() {}", "public void verificaStringVazia(String parametro, String mensagem) {\n if (parametro.trim().isEmpty()) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "private void validarCampos() {\n }", "@Override\r\n\tpublic String getMessage() {\r\n\t\treturn \"Veuillez entrer un nombre positif\";\r\n\t}", "public Erro(final String propriedade, final String mensagem) {\n this.propriedade = propriedade;\n this.mensagem = mensagem;\n }", "@Test\r\n public void testValidate() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }", "public PromoCodeAlreadyExistsException (Promo promo_input)\n {\n super(\"Promo Code: \");\n this.promo_error=promo_input;\n }", "public Dialog createAddPersonDialog(String title, String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getMyAcitivty());\n builder.setTitle(title);\n builder.setMessage(msg);\n\n // Use an EditText view to get user input.\n final EditText input = new EditText(getMyAcitivty());\n input.setText(\"\");\n builder.setView(input);\n\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n String value = input.getText().toString();\n Log.d(TAG, \"user input: \" + value);\n inputDialogResult = value;\n launchTrainingActivity();\n// AlertDialog dg =\n// SelectServerAlertDialog.createDialog(\n// getContext(),\n// \"Pick a Server\",\n// getAllIps(),\n// launchTrainingActivityAction,\n// cancelAction,\n// true);\n// dg.show();\n }\n });\n builder.setNegativeButton(\"Cancel\", SelectServerAlertDialog.cancelAction);\n return builder.create();\n }", "@Test(expected = MessageValidationException.class)\r\n public void testValidate1() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.validate();\r\n }", "public String preValidar() {\n\t\tString errores = \"\";\r\n\t\t\r\n\t\tif (email == null || email.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique el e-mail</br>\";\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tif(!isValidEmailAddress()){\r\n\t\t\t\terrores = errores + \"indique un e-mail válido</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (contrasenya == null || contrasenya.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique la contraseña</br>\";\r\n\t\t} else {\r\n\t\t\tif(!isValidPwd()){\r\n\t\t\t\terrores = errores + \"la contraseña debe contener\"\r\n\t\t\t\t\t\t+ \" al menos 8 caracteres, y estos deben ser\"\r\n\t\t\t\t\t\t+ \"alfanuméricos</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn errores;\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void criaContatoNomeInvalido() {\n\t\tcontato = new Contato(\"\", \"Jardely\", \"984653722\");\n\t}", "public CustomDialog(Activity context, String mensaje, String parteVerde){\n dialog = new Dialog(context);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_sucees);\n TextView tvMensError = dialog.findViewById(R.id.tvMensSucces);\n tvMensError.setText(Html.fromHtml(mensaje + \"<font color='#072146'>\" + parteVerde + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar);\n tvAceptar.setOnClickListener(v -> {\n dialog.dismiss();\n });\n }", "protected void validateMessageContexts(java.lang.String[] param){\n \n }", "String getInvalidMessage();", "public abstract String mensajeCrearCelula();", "private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }", "private Validate(){\n //private empty constructor to prevent object initiation\n }", "public FilmValidator() {\n errorMessage = new HashSet<>();\n }", "public boolean ValidaTerminoFormulario(String mensagem) {\n\t\tboolean achou;\n\t\t\n\t\tif (DriverFactory.getDriver().findElement(By.xpath(\"//h1[@class = 'sc-bxivhb iYGUAI' and contains (text(), '\" + mensagem + \"')]\")) != null) {\n\t\tachou = true;\n\t\t}\n\t\telse achou = false;\n\t\t\n\t\treturn achou;\n\t\t\n\t\t\n\t}", "public boolean startValidation(IPSComponent component, String message);", "public boolean validarCampos() {\n\t\tboolean valid = true;\n\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getNome())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataCadastro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getSexo())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getRG())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isObjectNotNull(this.getPaciente().getRG()) && this.getPaciente().getRG() < 0) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG015\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isCPFValido(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG006\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isCPFValido(this.getPaciente().getCPF()) && isPacienteCadastrado(this.getPaciente())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG017\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getEndereco())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getBairro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getCidade())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getUF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataNascimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isTelefoneValido(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "public ValidationException(String userMessage, String logMessage) {\r\n super(userMessage, logMessage);\r\n }", "ValidationError getValidationError();", "public Validate() {\n }", "MessageResource setMensaje(Integer userID, MessageForm mensaje) throws IllegalArgumentException;", "public void validar(){\n\t\tif (verificador == false){\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}else{\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsPresentInAChannel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsntPresentInAChannel();\r\n\t\t\t}else{\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void validate() throws SpringBootBaseAppException,MessageValidationException;", "public NotValidException(String message) {\r\n super(message);\r\n }", "public interface PropertyValidatorMessages {\n String EMPTY_PROPERTY_FIELD = \"EMPTY PROPERTY FIELD\";\n String PROPERTY_ALREADY_EXIST = \"PROPERTY ALREADY EXIST\";\n\n}", "public ValidationFailure(String message) {\n this.message = message;\n }", "private void setvalidation(String msg, int validateflag, char validateresult) {\r\n\t\tmAlertMsg = msg;\r\n\t\tmValidateFlag = validateflag;\r\n\t\tmValidateResult = validateresult;\r\n\t}", "private void validateInputParameters(){\n\n }", "public ValidationException(String msgKey) {\r\n\t\tsuper(getMessageValue(msgKey));\r\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public void creacionIncorrecta() throws IllegalArgumentException {\r\n P = new Partido(\"Camp Nou\",\"28-04-2010\");\r\n }", "public boolean validarForm() throws Exception {\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(\"Los campos marcados con (*) son obligatorios\",\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "public interface CommonMessage {\n /**\n * validate prefix\n */\n String VALIDATE = \"COMMON.VALIDATE.\";\n /**\n * error prefix\n */\n String ERROR = \"COMMON.ERROR.\";\n /**\n * warn prefix\n */\n String WARN = \"COMMON.WARN.\";\n /**\n * info prefix\n */\n String INFO = \"INFO.WARN.\";\n\n\n /**\n * 校验异常\n */\n interface ValidateMessage {\n /**\n * REQUIRE:必填字段\n */\n String REQUIRE = VALIDATE + \"REQUIRE\";\n /**\n * REMOTE:请修正此字段\n */\n String REMOTE = VALIDATE + \"REMOTE\";\n /**\n * EMAIL:请输入有效的电子邮件地址\n */\n String EMAIL = VALIDATE + \"EMAIL\";\n /**\n * URL:请输入有效的网址\n */\n String URL = VALIDATE + \"URL\";\n /**\n * DATE:请输入有效的日期\n */\n String DATE = VALIDATE + \"DATE\";\n /**\n * DATEISO:请输入有效的日期 (YYYY-MM-DD)\n */\n String DATEISO = VALIDATE + \"DATEISO\";\n /**\n * NUMBER:请输入有效的数字\n */\n String NUMBER = VALIDATE + \"NUMBER\";\n /**\n * DIGITS:只能输入数字\n */\n String DIGITS = VALIDATE + \"DIGITS\";\n /**\n * CREDITCARD:请输入有效的信用卡号码\n */\n String CREDITCARD = VALIDATE + \"CREDITCARD\";\n /**\n * EQUALTO:你的输入不相同\n */\n String EQUALTO = VALIDATE + \"EQUALTO\";\n /**\n * EXTENSION:请输入有效的后缀\n */\n String EXTENSION = VALIDATE + \"EXTENSION\";\n /**\n * MAXLENGTH:最多可以输入 {0} 个字符\n */\n String MAXLENGTH = VALIDATE + \"MAXLENGTH\";\n /**\n * MINLENGTH:最少要输入 {0} 个字符\n */\n String MINLENGTH = VALIDATE + \"MINLENGTH\";\n /**\n * RANGELENGTH:请输入长度在 {0} 到 {1} 之间的字符串\n */\n String RANGELENGTH = VALIDATE + \"RANGELENGTH\";\n /**\n * RANGE:请输入范围在 {0} 到 {1} 之间的数值\n */\n String RANGE = VALIDATE + \"RANGE\";\n /**\n * MAX:请输入不大于 {0} 的数值\n */\n String MAX = VALIDATE + \"MAX\";\n /**\n * MIN:请输入不小于 {0} 的数值\n */\n String MIN = VALIDATE + \"MIN\";\n }\n\n /**\n * 错误信息\n */\n interface ErrorMessage {\n /**\n * SYSTEMEXCEPTION:系统异常,请联系管理员\n */\n String SYSTEMEXCEPTION = ERROR + \"SYSTEMEXCEPTION\";\n /**\n * NOTFIND:页面找不到\n */\n String NOTFIND = ERROR + \"NOTFIND\";\n /**\n * TIMEOUT:连接超时,请重新登录\n */\n String TIMEOUT = ERROR + \"TIMEOUT\";\n /**\n * DOWNLOADEXCEPTION:{0}下载异常\n */\n String DOWNLOADEXCEPTION = ERROR + \"DOWNLOADEXCEPTION\";\n /**\n * UPLOADEXCEPTION:{0}上传异常\n */\n String UPLOADEXCEPTION = ERROR + \"UPLOADEXCEPTION\";\n }\n\n interface WarnMessage {\n /**\n * AUTHORITY:该用户没有访问权限!\n */\n String AUTHORITY = WARN + \"AUTHORITY\";\n }\n\n interface InfoMessage {\n /**\n * SAVE:保存成功!\n */\n String SAVE = INFO + \"SAVE\";\n /**\n * DELETE:删除成功!\n */\n String DELETE = INFO + \"DELETE\";\n /**\n * EDIT:修改成功!\n */\n String EDIT = INFO + \"EDIT\";\n }\n\n}", "public ValidationException(String userMessage, String logMessage, String context) {\r\n super(userMessage, logMessage);\r\n setContext(context);\r\n }", "public CustomDialog(Activity context, String mensaje, String parteVerde, Runnable aceptar){\n dialog = new Dialog(context);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_sucees);\n TextView tvMensError = dialog.findViewById(R.id.tvMensSucces);\n tvMensError.setText(Html.fromHtml(mensaje + \"<font color='#072146'>\" + parteVerde + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar);\n tvAceptar.setOnClickListener(v -> {\n context.runOnUiThread(aceptar);\n dialog.dismiss();\n } );\n }", "public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}", "@Override\r\n\tpublic void validarSaldo() {\n\t\tSystem.out.println(\"Transaccion exitosa\");\r\n\t}", "private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }", "@Test\n void test_ArgsConstructor() {\n assertThrows(\n IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));\n assertThrows(\n IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));\n\n ValidationContext<Bean> ctx =\n new ValidationContextFactoryImpl(propertyNameObtainerFactory, null).buildFor(new Bean());\n\n assertTrue(ctx.isNull(Bean::getString1));\n }", "public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "public Message(){}", "public interface AuthorValidationMessages {\n\n String EMPTY_AUTHORNAME_FIELD = \"EMPTY AUTHOR NAME\";\n String AUTHORNAME_ALREADY_EXISTS = \"AUTHORNAME ALREADY EXISTS\";\n String EMPTY_AUTHORSURNAME_FIELD = \"EMPTY AUTHOR SURNAME\";\n}", "public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "public ValidationComponent ()\n\t\t{\n\t\t}", "public UserActivationValidationException(String message, LocalizedMessage reasonMessage) {\r\n super(message);\r\n this.reasonMessageBuilder = null;\r\n this.reasonMessage = reasonMessage;\r\n }", "public ValorInvalidoException (String mensagem, double valorInvalido) {\n\t\tsuper(mensagem);\n\t\t\n\t\tthis.valorInvalido = valorInvalido;\n\t}", "@Test(expected = MessageValidationException.class)\r\n public void testValidate2() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n instance.validate();\r\n }", "public InvalidCommand() {\n this.errorMessage = EMPTY_STRING;\n }", "public void validate() throws ParameterValuesException {\n\t\tif (txtTenTaiSan.getText().isEmpty())\n\t\t\tthrow new ParameterValuesException(\"Bạn cần nhập tên tài sản\", null);\n\t}", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}", "public void ValidandoPerfil()\r\n\t{\n\t\t\r\n\t}", "@ExceptionHandler(value = {MethodArgumentNotValidException.class})\r\n\tpublic ResponseEntity<DefaultErrorList> handleValidationExceptionA(MethodArgumentNotValidException pe, HttpServletRequest request) {\r\n \tLOGGER.warn(\"Argmentos invalidos, {}\", pe.getMessage());\r\n\t\treturn new ResponseEntity<DefaultErrorList>(new DefaultErrorList(new DefaultError(GeneralCatalog.GRAL006.getCode(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGeneralCatalog.GRAL006.getMessage(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGeneralCatalog.GRAL006.getLevelException().toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpe.getBindingResult().getFieldError().getField().toString() + \": \" + pe.getBindingResult().getFieldError().getDefaultMessage(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trequest.getRequestURL().toString()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)), GeneralCatalog.GRAL006.getHtttpStatus());\r\n\t}", "public EmailValidation create(EmailValidation user);", "private void validate(String s, int length, String msg) {\n Logger.getLogger(getClass()).info(\"valore della stringa inserita\"+s);\n \tif (s != null && s.length()>length)\n throw new IllegalArgumentException(msg);\n }", "public Validation() {\n }", "public ValidatorFactory(String bundleName) {\n this.messageResolver = new ResourceMessageResolver(bundleName);\n }", "public MessagesAssertor() {\r\n this.preconditions = new ArrayList<>();\r\n this.messages = new ArrayList<>();\r\n }", "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n ActionErrors errors = new ActionErrors();\n if (\"\".equals(getNombre())){\n errors.add(\"nombreObligatorio\", new ActionMessage(\"errors.obligatorio\"));\n mapping.getInputForward();\n }\n return errors;\n }", "public void assertValidationMsg(String txt, String msg) {\n clickOnBtn(ActionsEnum.Create.name());\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, txt);\n actual = assertAndGetText(xpathValidationMsg);\n logger.info(\"# Validation message for 'Name': \" + actual);\n assertEquals(actual, msg,\n \"Actual validation msg '\" + actual + \"' should be same as expected '\" + msg + \"'.\");\n }", "@Override\n\tpublic void validate(Object obj, Errors errors) {\n\t\tReservationCommand command = (ReservationCommand)obj; \n\t\tReservation reservation = command.getReservation();\n\t\t\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(errors, \"reservation.numOfPeople\", \"NUMOFPEOPLE_REQUIRED\", \"num of people is required.\");\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(errors, \"reservation.visit_date\", \"VISIT_DATE_REQUIRED\", \"visit date is required.\");\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(errors, \"reservation.visit_time\", \"VISIT_TIME_REQUIRED\", \"visit time is required.\");\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(errors, \"reservation.name\", \"NAME_REQUIRED\", \"name is required.\");\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(errors, \"reservation.phone\", \"PHONE_REQUIRED\", \"Phone number is required.\");\n\n\t\t\n\t}", "@Test(expected = MessageValidationException.class)\r\n public void testValidate3() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }", "public boolean validarForm() throws Exception {\n\n\t\tboolean valida = true;\n\n\t\tif (!valida) {\n\t\t\tMensajesUtil.mensajeAlerta(usuarios.getNombres()\n\t\t\t\t\t+ \" recuerde que...\",\n\t\t\t\t\t\"Los campos marcados con (*) son obligatorios\");\n\t\t}\n\n\t\treturn valida;\n\t}", "public void validate() {}", "public void addErrorMessage(ConstraintViolation<?> constraintViolation, Widget widget) {\n\t\tSpanElement msg = DOM.createSpan().cast();\n\t\tmsg.setInnerText(constraintViolation.getMessage());\n\t\tmsg.addClassName(\"help-block\");\n\t\twidget.getElement().getParentElement().appendChild(msg );\n\t}", "public void validaNulos( JTextField valor, String texto){\n\t\ttry {\n\t\t\tif(valor.getText().length() < 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\t\tvalor.grabFocus();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (NullPointerException ex) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\treturn;\n\t\t}\n\t}", "public void validar(View v) {\r\n //Compruebo que se hayan insertado todos los datos\r\n SimpleDateFormat formatoFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n if(!nombre.getText().toString().equals(\"\")\r\n &&!mail.getText().toString().equals(\"\")\r\n &&!fecha.getText().toString().equals(\"\")) {\r\n //Si se han introducido todos los datos compruebo la edad\r\n fNac = null;\r\n fActual = null;\r\n\r\n try {\r\n fNac = formatoFecha.parse(fecha.getText().toString());\r\n fActual = new Date();\r\n edad = (int) ((fActual.getTime() - fNac.getTime()) / 1000 / 60 / 60 / 24 / 360);//Calculo la edad\r\n //Compruebo si es mayor de edad\r\n if (edad < 18)\r\n //Error si es menor de edad\r\n Toast.makeText(getApplicationContext(), R.string.menorDeEdad, Toast.LENGTH_LONG).show();\r\n else {//Si todo es correcto devuelve los datos introcucidos a la pantalla principal.\r\n Toast.makeText(getApplicationContext(), R.string.registroCompletado, Toast.LENGTH_LONG).show();\r\n Intent i = new Intent();\r\n i.putExtra(\"REGISTRADO\", true);\r\n i.putExtra(\"NOMBRE\", nombre.getText().toString());\r\n i.putExtra(\"MAIL\", mail.getText().toString());\r\n i.putExtra(\"FECHA\", fecha.getText().toString());\r\n setResult(RESULT_OK,i);\r\n finish();\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_LONG).show();//Si no se ha introducido ninguna fecha\r\n }\r\n }else\r\n Toast.makeText(getApplicationContext(), R.string.toastFaltanDatos, Toast.LENGTH_LONG).show();\r\n }" ]
[ "0.7182677", "0.63996524", "0.60570616", "0.60220337", "0.6016797", "0.5970686", "0.59143966", "0.5792211", "0.57846624", "0.5784161", "0.57706213", "0.5758053", "0.57426906", "0.56973577", "0.56702334", "0.5640074", "0.56057966", "0.56008804", "0.558807", "0.55760384", "0.5538139", "0.5531871", "0.5498659", "0.5485254", "0.5469465", "0.54250073", "0.5408681", "0.5403994", "0.5403293", "0.5388839", "0.53833306", "0.53630304", "0.53524464", "0.5307147", "0.5291013", "0.52891964", "0.52854913", "0.5285292", "0.5273571", "0.5256897", "0.52561814", "0.525185", "0.52474296", "0.52345484", "0.5224649", "0.5208304", "0.5200219", "0.5189902", "0.5188624", "0.5185406", "0.51834273", "0.5176884", "0.5174542", "0.5170933", "0.5166764", "0.5166247", "0.5166129", "0.51588386", "0.51540303", "0.5153123", "0.5150983", "0.5145282", "0.5143211", "0.51427805", "0.5133444", "0.513053", "0.5129238", "0.5123717", "0.5118112", "0.51177263", "0.51168346", "0.5116586", "0.51163226", "0.5110117", "0.5098883", "0.5094349", "0.5083224", "0.5076279", "0.50750685", "0.50709575", "0.5070812", "0.50640935", "0.50561357", "0.5055988", "0.50552154", "0.5055183", "0.5053059", "0.505304", "0.5052889", "0.5044498", "0.504167", "0.50409156", "0.50349444", "0.5034638", "0.50294214", "0.50147194", "0.5008909", "0.50077015", "0.5000516", "0.49813887" ]
0.6934749
1
Verifica se o parametro eh nulo. Se for lanca um erro com a mensagem passada.
public void verificaNulo(Object parametro, String mensagem) { if (parametro == null) { throw new NullPointerException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaStringVazia(String parametro, String mensagem) {\n if (parametro.trim().isEmpty()) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void verificaInteiroNegativo(int parametro, String mensagem) {\n if (parametro < 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "public void verificaInteiroMaiorQueZero(int parametro, String mensagem) {\n if (parametro <= 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void checkParameters() {\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "boolean hasErrormessage();", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}", "private static boolean paramValid(String paramName,String paramValue){\n return paramName!=null&&paramName.length()>0&&paramValue!=null&&paramValue.length()>0;\n }", "private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean hasParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \");\n Via via=(Via)sipHeader;\n \n if(name == null) throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null parameter\");\n return via.hasParameter(name);\n }", "boolean hasErrorMessage();", "boolean hasErrorMessage();", "boolean hasParameterName();", "boolean hasErrmsg();", "public void validate() throws ParameterValuesException {\n\t\tif (txtTenTaiSan.getText().isEmpty())\n\t\t\tthrow new ParameterValuesException(\"Bạn cần nhập tên tài sản\", null);\n\t}", "private void validateInputParameters(){\n\n }", "public void verificaStringNulaOuVazia(String parametro, String mensagem) {\n verificaNulo(parametro, mensagem);\n verificaStringVazia(parametro, mensagem);\n }", "private void checkForMissingParameter(Object param, String paramName)\n\t\t\tthrows MissingParameterException {\n\t\tif (param == null) {\n\t\t\tthrow new MissingParameterException(paramName + \" can not be null\");\n\t\t}\n\t}", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "boolean hasParameterValue();", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "boolean hasErr();", "public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}", "public boolean hasParameterName()\n {\n return this.paramName != null;\n }", "private void checkForEmptyParameter(String param, String paramName)\n\t\t\tthrows MissingParameterException, InvalidParameterException {\n\t\tif (param != null && param.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(paramName + \" can not be empty\");\n\t\t}\n\t}", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "private boolean hasErroNome(String nome) {\r\n\t\terroNome.setText(\"\");\r\n\t\terroNome.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroNome.setBounds(150, 155, 250, 20);\r\n\t\terroNome.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaLength(nome)) {\r\n\t\t\terroNome.setText(\"Minimo de 3 caracteres\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse if (!Validacao.isAlfabetico(nome)) {\r\n\t\t\terroNome.setText(\"Nao pode conter Numeros\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse if (!Validacao.validaCompleto(nome)) {\r\n\t\t\terroNome.setText(\"Nome precisa ser Completo\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroNome.setText(\"Nome Valido!\");\r\n\t\t\terroNome.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected abstract boolean isValidParameter(String parameter);", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "protected abstract String insufficientParameterExceptionMessage(TransactionCommand transactionCommand);", "public static void ensureResultMessageIsSet() {\r\n final EventHandlerContext context = ContextStore.get().getEventHandlerContext();\r\n if (!context.parameterExists(RESULT_MESSAGE_PARAMETER)\r\n || StringUtil.isNullOrEmpty(context.getParameter(RESULT_MESSAGE_PARAMETER))) {\r\n context.addResponseParameter(RESULT_MESSAGE_PARAMETER, RESULT_MESSAGE_OK);\r\n }\r\n }", "private void validateParameters(CustomMap<String, CustomList<String>> parameters) {\n /* Verify if the parameters are the students number. */\n if(parameters == null || parameters.size() > 3){\n errorValidator.addError(\"name\", \"This parameter must exist.\");\n errorValidator.addError(\"num\", \"This parameter must exist.\");\n errorValidator.addError(\"email\", \"This parameter must exist.\");\n return;\n }\n\n /* Verify if the parameters are correct. */\n CustomList nameAux = parameters.get(\"name\"), numAux = parameters.get(\"num\"), emailAux = parameters.get(\"email\");\n\n if(nameAux == null)\n errorValidator.addError(\"name\", \"This parameter must exist.\");\n\n if(numAux == null)\n errorValidator.addError(\"num\", \"This parameter must exist.\");\n\n if(emailAux == null)\n errorValidator.addError(\"email\", \"This parameter must exist.\");\n\n if(errorValidator.hasError())\n return;\n\n /* Verify num, pid email and name parameters type. */\n num = numAux.getVerifiedInt(0, errorValidator, \"num\");\n email = emailAux.getVerifiedString(0, errorValidator, \"email\");\n name = nameAux.getVerifiedString(0, errorValidator, \"name\");\n }", "@Test\n\tpublic void CT04UC01CadastrarLivro_com_titulo_invalido() {\n\t\ttry {\n\t\t\tlivro.setTitulo(\"\");\n\t\t\tfail(\"deveria lançar uma exceção\");\n\t\t} catch (RuntimeException e) {\n\t\t\tassertEquals(\"Titulo invalido\", e.getMessage());\n\t\t}\n\t}", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "public static String checkHTTPParameterValue(String paramName,\n\t\t\tString paramValue, int maxLength, boolean isNulable) {\n\t\tAppLog.begin();\n\t\tString errMsg = null;\n\t\ttry {\n\t\t\tif (null != paramValue) {\n\t\t\t\tif (!isNulable && paramValue.trim().length() == 0) {\n\n\t\t\t\t\terrMsg = paramName + \" is Mandatory.\";\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn errMsg;\n\t\t\t\t}\n\t\t\t\tif (paramValue.length() != 0) {\n\t\t\t\t\t// String getValidInpuStr =\n\t\t\t\t\t// validator.getValidInput(paramName,\n\t\t\t\t\t// paramValue, \"VALID_HTTPParameterValue\", maxLength,\n\t\t\t\t\t// isNulable);\n\t\t\t\t\tif (!checkPresenceOfParticularChar(paramValue,\n\t\t\t\t\t\t\tDJBConstants.checkHTTPParameterValueRegex)) {\n\t\t\t\t\t\terrMsg = \"Invalid \" + paramName + \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (paramValue.length() > maxLength) {\n\t\t\t\t\terrMsg = paramName + \" Should not Contain More than \"\n\t\t\t\t\t\t\t+ maxLength + \" Characters.\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!isNulable) {\n\t\t\t\t\terrMsg = paramName + \" is Mandatory.\";\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn errMsg;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\terrMsg = \"Invalid \" + paramName + \".\";\n\t\t\tAppLog.error(ex);\n\t\t}\n\t\tAppLog.end();\n\t\treturn errMsg;\n\t}", "protected void validatePedidoDetalle(biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[] param){\n \n if ((param != null) && (param.length < 1)){\n throw new java.lang.RuntimeException();\n }\n \n }", "@Override\n\tpublic boolean isHaveParam() {\n\t\treturn param !=null;\n\t}", "boolean hasError();", "boolean hasError();", "boolean hasError();", "public void validateNamedParameters() {\n if (namedParameters != null) {\n for (Map.Entry<String, Object> e : namedParameters.entrySet()) {\n if (e.getValue() == null) {\n throw log.queryParameterNotSet(e.getKey());\n }\n }\n }\n }", "private void validationMotDePasse( String motDePasse ) throws Exception {\n if ( motDePasse != null ) {\n if ( motDePasse.length() < 3 ) {\n throw new Exception( \"Le mot de passe doit contenir au moins 3 caractères.\" );\n }\n } else {\n throw new Exception( \"Merci de saisir votre mot de passe.\" );\n }\n }", "private void checkValue(Variable toBeVariable) throws MethodCallWithNonexistentParameter {\n if (!toBeVariable.hasValue()) {\n throw new MethodCallWithNonexistentParameter();\n }\n }", "private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }", "boolean hasParameters();", "private boolean validateData() {\r\n TASKAggInfo agg = null;\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n\r\n if (getArgument1() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 1 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getArgument2() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 2 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getOperand() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Filter value must be of type integer\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n\tpublic void testGetIncorrectParam() {\n\t\tfinal String owner = \"1\";\n\t\tResponse response = piiController.getPii(null, owner);\n\t\t\n\t\tverifyZeroInteractions(mPiiService);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\t\n\t\tassertEquals(400, response.getStatus());\n\t\tassertNull(response.getEntity());\n\t}", "public boolean validateParameter(Parameter oParameter) {\r\n boolean bRet = true;\r\n for (Parameter cat : this.lstParameters) {\r\n if (cat.getDescriptionP().equalsIgnoreCase(oParameter.getDescriptionP())) {\r\n bRet = false;\r\n }\r\n }\r\n return bRet;\r\n }", "public boolean hasParameter(){\n\t\tif (parameterType==null)\n\t\t\treturn false;\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "public boolean hasError();", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "private static void checkArg(Object s) {\n if (s == null) {\n throw new NullPointerException(\"Argument must not be null\");\n }\n }", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "@Override\n public boolean validate(final String param) {\n return false;\n }", "private void checkForNullOrEmptyParameter(String param, String paramName)\n\t\t\tthrows MissingParameterException, InvalidParameterException {\n\t\tif (param == null) {\n\t\t\tthrow new MissingParameterException(paramName + \" can not be null\");\n\t\t} else if (param.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(paramName + \" can not be empty\");\n\t\t}\n\t}", "public void validaNulos( JTextField valor, String texto){\n\t\ttry {\n\t\t\tif(valor.getText().length() < 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\t\tvalor.grabFocus();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (NullPointerException ex) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\treturn;\n\t\t}\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public static boolean check(String param) {\r\n\t\tboolean result = false;\r\n\t\tif (param != null && (!param.isEmpty())) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void testGetMessageNullPointerException() {\r\n assertNotNull(\"setup fails\", uploadRequestValidator);\r\n try {\r\n uploadRequestValidator.getMessage(null);\r\n fail(\"if argument is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "public void testGetMessage_NullObj() {\r\n try {\r\n validator.getMessage(null);\r\n fail(\"testGetMessage_NullObj is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occurs in testGetMessage_NullObj.\");\r\n }\r\n }", "private boolean validateParams(String userName, String password, String fullName) {\n if (userName == null || password == null || fullName == null) {\n return false;\n }\n\n if (userName.length() == 0 || password.length() == 0 || fullName.length() == 0) {\n return false;\n }\n\n return true;\n }", "private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif(userNameField.getText() == null || userNameField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a felhasználó név mező!\\n\";\n\t\t}\n\t\tif(passwordField.getText() == null || passwordField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a jelszó mező!\";\n\t\t}\n\t\t\n\t\tif(errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// show the error message\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Érvénytelen mezők\");\n\t\t\talert.setHeaderText(\"Kérlek töltsd ki az összes mezőt!\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\t\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "public void illegalDataFieldsCheck(int intSID, String strName, String strTitle) throws IllegalArgumentException{\r\n String exceptionMessage = \"\";\r\n if (strName.equals(\"\")) {\r\n exceptionMessage += \"Name Can't Be Blank \\n\";\r\n }\r\n\r\n if (strTitle.equals(\"\")) {\r\n exceptionMessage += \"Title Can't Be Blank \\n\";\r\n }\r\n\r\n if (intSID == 0) {\r\n exceptionMessage += \"SID Can't Be 0 \\n\";\r\n }\r\n\r\n if (!exceptionMessage.equals(\"\")) {\r\n throw new IllegalArgumentException(exceptionMessage);\r\n }\r\n }", "public boolean validarCampos(){\n String nome = campoNome.getText().toString();\n String descricao = campoDescricao.getText().toString();\n String valor = String.valueOf(campoValor.getRawValue());\n\n\n if(!nome.isEmpty()){\n if(!descricao.isEmpty()){\n if(!valor.isEmpty() && !valor.equals(\"0\")){\n return true;\n }else{\n exibirToast(\"Preencha o valor do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha a descrição do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha o nome do seu serviço\");\n return false;\n }\n }", "static void checkNull(final Object param, final String paramName) {\r\n if (param == null) {\r\n throw new IllegalArgumentException(\"The argument '\" + paramName\r\n + \"' should not be null.\");\r\n }\r\n }", "public boolean entradaValida(String parametro, String entrada) {\n\t\tString expresion = expresiones(parametro);\n\t\tBoolean todoBien = true;\n\t\tPattern pattern;\n\t\tMatcher matcher;\n\t\tpattern = Pattern.compile(expresion);\n\t\tmatcher = pattern.matcher(entrada);\n\t\tif (!matcher.matches()) {\n\t\t\ttodoBien = false;\n\t\t} else {\n\t\t\ttodoBien = true;\n\t\t}\n\t\treturn todoBien;\n\t}", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify a configuration\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "boolean hasErrors();", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (commentField.getText() == null || commentField.getText().length() == 0) {\n errorMessage += \"Не введен комментарий!\\n\";\n }\n if (timeField.getText() == null || timeField.getText().length() == 0) {\n errorMessage += \"Не введено время выполнения задачи!\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не введены все данные!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Пожалуйста, введите все данные!\");\n alert.showAndWait();\n return false;\n }\n }", "private String checkParameters (HttpServletRequest request)\r\n\t{\r\n\t\tString ret = \"ok\";\r\n\t\tString paramName = null;\r\n\t\tString occNo = null;\r\n\t\tString encoding = null;\r\n\t\tString reqInd = null;\r\n\t\tString expression = \"^[-+]?[0-9]*\";\r\n\t\tPattern pattern = Pattern.compile(expression);\r\n\t\tMatcher matcher = null;\r\n\t\t\r\n\t\tfor (int i = 0; true; i++) {\r\n\t\t\tparamName = request.getParameter(\"paramName\" + i);\r\n\t\t\tif(paramName == null || paramName.equalsIgnoreCase(\"\")){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\toccNo = request.getParameter(\"paramOccNo\" + i);\r\n\t\t\t\r\n\t\t\t// WI 22224\r\n\t\t\tif(occNo != null){\r\n\t\t\t\tmatcher = pattern.matcher(occNo);\r\n\t\t\t}\r\n\t\t\tif(occNo!=null && !occNo.equalsIgnoreCase(\"\") && !matcher.matches()){ \r\n\t\t\t\tret = \"The Parameter Occurence Number should be integer.\"; \r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tencoding = request.getParameter(\"paramEncoding\" + i);\r\n\t\t\tif(encoding!=null && !encoding.equalsIgnoreCase(\"\") && !encoding.equalsIgnoreCase(Phrase.XML_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ZIP_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.BASE64_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ENCRYPT_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.DIGEST_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.NONE_TYPE)\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Encoding should be: \" \r\n\t\t\t\t\t+ Phrase.XML_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ZIP_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.BASE64_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ENCRYPT_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.DIGEST_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.NONE_TYPE + \".\"\r\n\t\t\t\t\t; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\treqInd = request.getParameter(\"paramReqInd\" + i);\r\n\t\t\tif(reqInd!=null && !reqInd.equalsIgnoreCase(\"\") && !reqInd.equalsIgnoreCase(\"true\")\r\n\t\t\t\t&& !reqInd.equalsIgnoreCase(\"false\")\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Required Indicator should be: true or false.\"; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t\r\n\t}", "boolean isFail();", "private boolean hasErroIdade(String idade) {\r\n\t\terroIdade.setText(\"\");\r\n\t\terroIdade.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroIdade.setBounds(150, 307, 250, 14);\r\n\t\terroIdade.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaInt(idade)) {\r\n\t\t\terroIdade.setText(\"Deve conter apenas numeros\");\r\n\t\t\treturn true;\r\n\t\t} else if (!Validacao.validaIdade(idade)) {\r\n\t\t\terroIdade.setText(\"Nao pode ser maior que 150\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroIdade.setText(\"Idade Valida!\");\r\n\t\t\terroIdade.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isInvalid(JTextField campo) {\n return campo.getText().isEmpty();\n }", "protected static boolean ensureNumArgs( String param[], int n ) {\n\t\tif ( n >= 0 && param.length != n || n < 0 && param.length < -n ) {\n\t\t\tSystem.err.println( \"Wrong number (\" + param.length + \") of arguments.\" );\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkParams(String[] params){\r\n\t\tfor(String param:params){\r\n\t\t\tif(param == \"\" || param == null || param.isEmpty()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}", "public boolean validateParameters(IGetParameterDefinitionTask task,\n\t\t\tMap parameters)\n\t{\n\t\tassert task != null;\n\t\tassert parameters != null;\n\n\t\tboolean missingParameter = false;\n\n\t\tCollection parameterList = task.getParameterDefns(false);\n\t\tfor (Iterator iter = parameterList.iterator(); iter.hasNext();)\n\t\t{\n\t\t\tIScalarParameterDefn parameterObj = (IScalarParameterDefn) iter.next();\n\t\t\t// ScalarParameterHandle paramHandle = (ScalarParameterHandle)\n\t\t\t// parameterObj\n\t\t\t// .getHandle();\n\n\t\t\tString parameterName = parameterObj.getName();\n\t\t\tObject parameterValue = parameters.get(parameterName);\n\n\t\t\tif (parameterObj.isHidden())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (parameterValue == null && !parameterObj.allowNull())\n\t\t\t{\n\t\t\t\tmissingParameter = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (IScalarParameterDefn.TYPE_STRING == parameterObj.getDataType())\n\t\t\t{\n\t\t\t\tString parameterStringValue = (String) parameterValue;\n\t\t\t\tif (parameterStringValue != null\n\t\t\t\t\t\t&& parameterStringValue.length() <= 0\n\t\t\t\t\t\t&& !parameterObj.allowBlank())\n\t\t\t\t{\n\t\t\t\t\tmissingParameter = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn missingParameter;\n\t}", "boolean isError();", "public boolean checkVaild() throws IOException;", "public boolean hasValidArgs() {\r\n // if it has has zero argument, it is valid\r\n boolean zeroArgs = this.getCmd().getArguments().size() == 0;\r\n // return the boolean value\r\n return zeroArgs;\r\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean hasParam(String paramName);", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ID.getText() == null || ID.getText().length() == 0) {\n errorMessage += \"No valid id!\\n\";\n System.out.println(\"fl\");\n }\n if (password.getText() == null || password.getText().length() == 0) {\n errorMessage += \"No valid password!\\n\"; \n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Dialogs.create()\n .title(\"Invalid Fields\")\n .masthead(\"Please correct invalid fields\")\n .message(errorMessage)\n .showError();\n return false;\n }\n }", "private void checkParameters()\n\t\tthrows DiameterMissingAVPException {\n\t\tDiameterClientRequest request = getRequest();\n\t\tDiameterAVPDefinition def = ShUtils.getUserIdentityAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t\tdef = ShUtils.getDataReferenceAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t}", "private boolean isParameter() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameterDeclaration())\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(isParameterMark())\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "@Override\n\tpublic boolean hasError() {\n\t\treturn super.hasError() || (answerCode != null && answerCode == GeneralAnswerCode.FAIL);\n\t}", "@Test\n public void testBadParameterQuery() {\n try {\n QueryCriteria criteria = QueryCriteria.create().add(Criteria.eq(FakeEntity.FIELDNAME1, \"value\"));\n QueryGenerator.generator(FakeEntity.class, criteria, \"a\").generate();\n } catch (QueryParameterException e) {\n log.error(\"QueryCriteria unable to detect existing field.\", e);\n Assert.fail(\"QueryCriteria unable to detect existing field.\");\n }\n try {\n QueryCriteria criteria = QueryCriteria.create().add(Criteria.eq(\"invalidParameterName\", \"value\"));\n QueryGenerator.generator(FakeEntity.class, criteria, \"a\").generate();\n Assert.fail(\"QueryCriteria unable to detect non-existing field.\");\n } catch (QueryParameterException e) {\n // Expected\n }\n }", "@Test\n\tpublic void test_ArgumentCount_0_InvalidInput() {\n\t\tString[] args = {};\n\t\tTypeFinder.main(args);\n\t\tString expected = TypeFinder.INVALID_ARGUMENT_ERROR_MESSAGE + FileManager.lineSeparator;\n\t\tString results = errContent.toString();\n\t\tassertEquals(expected, results);\n\t}", "public boolean isExpectedNumberOfParameters(long numberOfParameters);", "@Test\n\tpublic void CT04UC01CadastrarLivro_com_autor_invalido() {\n\t\ttry {\n\t\t\tlivro.setAutor(\"\");\n\t\t\tfail(\"deveria lançar uma exceção\");\n\t\t} catch (RuntimeException e) {\n\t\t\tassertEquals(\"Autor invalido\", e.getMessage());\n\t\t}\n\t}", "@Override\n public boolean hasErrorMessage() {\n return errorMessage != null;\n }" ]
[ "0.67316705", "0.66154635", "0.6507646", "0.6487178", "0.6375387", "0.6198602", "0.6175052", "0.6174003", "0.6143704", "0.6107341", "0.6101536", "0.6036875", "0.60352194", "0.6013773", "0.6013773", "0.6003254", "0.59595394", "0.5950606", "0.59045255", "0.589227", "0.5802587", "0.5760011", "0.5743529", "0.5739303", "0.5732827", "0.5728128", "0.5718168", "0.5711418", "0.569753", "0.5690378", "0.5681575", "0.5667946", "0.56593734", "0.5649397", "0.56357175", "0.5630361", "0.56216943", "0.5614319", "0.56102324", "0.5599282", "0.55975145", "0.55917895", "0.5588834", "0.55875254", "0.55875254", "0.55875254", "0.55867726", "0.5571313", "0.5570619", "0.5560891", "0.5557558", "0.55497634", "0.5517485", "0.55172586", "0.5516229", "0.5505816", "0.5499586", "0.549306", "0.5492933", "0.54858935", "0.54652673", "0.54628754", "0.5460253", "0.54584163", "0.54483044", "0.54441667", "0.5437981", "0.54378796", "0.54322857", "0.5429927", "0.5429829", "0.54195476", "0.54157287", "0.54140204", "0.5412414", "0.54075986", "0.53995794", "0.5397431", "0.53858215", "0.53802234", "0.5370506", "0.5370165", "0.53423405", "0.53346646", "0.5330263", "0.5320058", "0.53134274", "0.53092486", "0.53065145", "0.5305678", "0.53051543", "0.5303123", "0.52878135", "0.52872187", "0.52784073", "0.527429", "0.52738756", "0.52663654", "0.5263425", "0.5256925" ]
0.7084431
0
Verifica se a string eh vazia. Se for lanca um erro com a mensagem passada.
public void verificaStringVazia(String parametro, String mensagem) { if (parametro.trim().isEmpty()) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaStringNulaOuVazia(String parametro, String mensagem) {\n verificaNulo(parametro, mensagem);\n verificaStringVazia(parametro, mensagem);\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testInvalidStringPositiveTest()\n {\n form.setVerificationCode(testStr);\n validator.validate(form, errors);\n assertTrue(errors.hasErrors());\n }", "boolean hasErrormessage();", "private boolean verificarText(String text,String campo) {\n\t\tif(text.length()==0) {\n\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": campo vacio\");\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\tfor(int i =0;i<text.length();i++) {\n\t\t\tif(text.charAt(i)!=' ') {\n\t\t\t\tif((text.charAt(i)<'a' || text.charAt(i)>'z'&& (text.charAt(i)<'A' || text.charAt(i)>'Z') ) ) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": Se ingreso un numero o caracter especial\");\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\t\n\t}", "@Test\n\tvoid testCheckString3() {\n\t\tassertFalse(DataChecker.checkString(null));\n\t}", "public static boolean validarVacio(JTextField text) {\n String vText = text.getText().trim();\n if (\"\".equals(vText)) {\n MensajeSistema.MensajeVarios(\"Este campo no se puede vacio!!!\", MensajeSistema.ERROR_MESSAGE());\n text.setText(null);\n text.grabFocus();\n return false;\n } else {\n text.setText(vText);\n return true;\n }\n }", "@Test\n\tvoid testCheckString2() {\n\t\tassertFalse(DataChecker.checkString(\"\"));\n\t}", "private static Boolean errorCheck(String Buffer){\n if(Buffer.matches(\"Y\")) return true;\n if(Buffer.matches(\"N\")) return false;\n screenClear(); //Clears the screen and applies an error message.\n return moreInput(); //Recursive repeat upon error.\n }", "public boolean isCorrect(String str);", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "void showErrorMsg(String string);", "private void validate(String s, int length, String msg) {\n Logger.getLogger(getClass()).info(\"valore della stringa inserita\"+s);\n \tif (s != null && s.length()>length)\n throw new IllegalArgumentException(msg);\n }", "public boolean showfinalresult() throws PalindromeException{\n if((checkString()==true)){\n if(this.joinedTextPalindrome.length()==0){\n throw new PalindromeException(\"This text is too short\");\n }else{\n return true;\n }\n }else{\n return false;\n }\n }", "private boolean hasErroNome(String nome) {\r\n\t\terroNome.setText(\"\");\r\n\t\terroNome.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroNome.setBounds(150, 155, 250, 20);\r\n\t\terroNome.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaLength(nome)) {\r\n\t\t\terroNome.setText(\"Minimo de 3 caracteres\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse if (!Validacao.isAlfabetico(nome)) {\r\n\t\t\terroNome.setText(\"Nao pode conter Numeros\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse if (!Validacao.validaCompleto(nome)) {\r\n\t\t\terroNome.setText(\"Nome precisa ser Completo\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroNome.setText(\"Nome Valido!\");\r\n\t\t\terroNome.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean verificaRigaVuota (String stringa){\r\n\t\tif(Pattern.matches(\"[0-9a-zA-Z]\", stringa)) return true;\r\n\t\treturn false;\r\n\t}", "@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}", "public void verifyAlertText(String message) {\n\t\tboolean assertion = message.equals(uiElementAction.getTextfromAlert());\n\t\tLog.info(\"Alert message is correct : \" + assertion);\n\t\tAssert.assertTrue(\"Alert message is correct : \" + assertion, assertion);\n\t}", "public void verificarMensagem(String m){\r\n\t\tboolean verificaM =\tmensagem.getText().equals(m);\r\n\t\tAssert.assertTrue(verificaM);\r\n\t\tlogPrint(\"Mensagem apareceu\");\r\n\t}", "private boolean testString(String s, boolean critical) {\n // Have the generator check the String\n Violation violation = new Violation(baseSink, baseSink);\n generator.checkTaint(s, 0, violation);\n // Check if a critical violation would have been reported\n return critical == !violation.getTaintedValues().isEmpty();\n }", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }", "public boolean Check() {\r\n if (this.ValidExpression != 0)\r\n System.out.println(\"Well the string is wrong or missing, master!\");\r\n else \r\n System.out.println(\"Nice String Bro!\"); \r\n return (this.ValidExpression != 0);\r\n }", "@Override\n\tpublic boolean verificarMensaje(String mensaje) {\n\t\tboolean reenvio = false;\n\t\tSystem.out.println(mensaje.length());\n\t\tSystem.out.println(\"Mensaje recibido: \"+ mensaje);\n\t\tString lectura = mensaje.substring(0, 12);\n\t\tSystem.out.println(\"Inicio de trama: \"+lectura);\n\t\tif (lectura.equals(inicioTrama)) {\n\t\t\tlectura = mensaje.substring(12, 14);\n\t\t\tSystem.out.println(\"Tpo de trama: \"+lectura);\n\t\t\tif (lectura.equals(\"01\")) {\n\t\t\t\treenvio = tipoTrama01(mensaje);\n\t\t\t}\n\t\t}\n\t\treturn reenvio;\n\t}", "boolean hasErrmsg();", "public static void assertInvalid(String text)\n {\n assertTrue(parseInvalidProgram(text));\n }", "@Test\n\t public void teststringAPI_fail() {\n\t\tString testData = \"Caps is not considered the same\";\n\t\tchar charData='c';\n\t\tString expected = \"aps is not onsidered the same\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tassertNotSame(\"Got Expected Result\", expected, actualStr);\n\t }", "public static boolean validateTextViewEmpty(TextView textView,\n String message,\n Context context,\n String textData)\n {\n\n if (textView.getText().toString().equals(textData))\n {\n Toast toast = Toast.makeText(context, \"\" + message, Toast.LENGTH_LONG);\n toast.show();\n return false;\n }\n else\n {\n return true;\n }\n\n\n }", "boolean hasErrorMessage();", "boolean hasErrorMessage();", "@When(\"je verifie mon {string} puis clique sur Suivant\")\n\tpublic void je_verifie_mon_puis_clique_sur_Suivant(String string) {\n\t throw new PendingException();\n\t}", "public boolean canProvideString();", "@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}", "public static boolean isTaken(String string) {\n return false;\n }", "@Test\n\tvoid testCheckString1() {\n\t\tassertTrue(DataChecker.checkString(\"Test\"));\n\t}", "public void CheckError(String s) {\r\n if (s.equals(token.get(lookAheadPossition))){\r\n System.out.println(\"Expected: \"+ s +\" at line:\"+ lookAheadPossition);\r\n lookAheadPossition=lookAheadPossition+1;\r\n }else {\r\n System.out.println(\"ERROR: at line:\"+ lookAheadPossition +\" expected-> \"+ s +\" --- \" + token.get(lookAheadPossition)+ \" <-detected.\" );\r\n System.exit(0);\r\n }\r\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "boolean hasString();", "public boolean insuranceCheck(String String) {\n\t\treturn false;\n\t}", "private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif(userNameField.getText() == null || userNameField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a felhasználó név mező!\\n\";\n\t\t}\n\t\tif(passwordField.getText() == null || passwordField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a jelszó mező!\";\n\t\t}\n\t\t\n\t\tif(errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// show the error message\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Érvénytelen mezők\");\n\t\t\talert.setHeaderText(\"Kérlek töltsd ki az összes mezőt!\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\t\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean validarVacioSinMsj(JTextField text) {\n String vText = text.getText().trim();\n if (\"\".equals(vText)) {\n text.setText(null);\n return false;\n } else {\n text.setText(vText);\n return true;\n }\n }", "public boolean isDone(String s) {\n return (s.equals(\"V\"));\n }", "public boolean hasErrorText() {\n return result.hasErrorText();\n }", "public boolean hasErrorText() {\n return result.hasErrorText();\n }", "public static boolean makeSure(String message){\n char answer;\n boolean validChar = false;\n do {\n answer = Console.readCharacter(message + \" (S/N) \");\n if (Console.validateQuestion(answer))\n validChar = true;\n else\n System.out.println(\"Opción no válida... \");\n } while(!validChar);\n if (Character.toLowerCase(answer) == 's')\n return true;\n else\n return false;\n }", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static String checkString(String s) {\n if(s==null || s.length()==0) return null;\n return s;\n }", "private void valida(String str)throws Exception{\n\t\t\t\n\t\t\tif(str == null || str.trim().isEmpty()){\n\t\t\t\tthrow new Exception(\"Nao eh possivel trabalhar com valores vazios ou null.\");\n\t\t\t}\n\t\t\n\t\t}", "public static boolean checkInputAlert(String saInput) throws Exception {\r\n\t\tboolean bool = checkInput(saInput);\r\n\r\n\t\tif (! bool) {\r\n\t\t\tStringBuffer sb = new StringBuffer(\"Hazardous characters found in the input: \");\r\n\t\t\tsb.append(\"\\\"\").append(HansFilter.alter(saInput)).append(\"\\\"\");\r\n\r\n\t\t\tthrow new Exception(sb.toString());\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public abstract boolean isValid(String s);", "@Test\n public void testEnsureStringExists(){\n String exists = \"Hello World\";\n String emptyString = \"\";\n\n assertTrue(StringUtil.ensureStringExists(exists));\n assertFalse(StringUtil.ensureStringExists(null));\n assertFalse(StringUtil.ensureStringExists(emptyString));\n }", "public boolean validarIngreso(String texto) {\n if (texto.trim().length() == 0) {\n return true;\n } else {\n return false;\n }\n }", "public void testValidStringPositiveTest()\n {\n form.setVerificationCode(\"123456\");\n validator.validate(form, errors);\n assertTrue(!errors.hasErrors());\n }", "private boolean checkInCashe(String s) {\n return true;\n }", "boolean hasStringValue();", "private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }", "public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }", "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "public boolean textVacio(JTextField txtDNI, JPasswordField pwsPass, JTextField txtNom,\n JTextField txtApe, JTextField txtTele, JTextField txtCorreo, JComboBox cbx, JLabel lblMensaje) {\n\n try {\n\n boolean veri = txtDNI.getText().trim().isEmpty() || pwsPass.getText().trim().isEmpty() || txtNom.getText().trim().isEmpty()\n || txtApe.getText().trim().isEmpty() || txtTele.getText().trim().isEmpty() || txtCorreo.getText().trim().isEmpty()\n || cbx.getSelectedIndex() == 0;\n\n if (veri == true) {\n lblMensaje.setText(\"TODOS LOS CAMPOS SON NECESARIOS\".toUpperCase());\n return true;\n } else {\n lblMensaje.setText(\"\".toUpperCase());\n return false;\n }\n } catch (Exception e) {\n System.err.println(\"Erro bro :(\");\n }\n return true;\n }", "private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }", "private void assertMessage(String aMessage){\n\t\tSystem.out.println(aMessage);\n\t\terror = true;\n\t}", "private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }", "public void check() throws IOException {\n Boolean codeIsValid = Boolean.valueOf(res.readEntity(String.class));\n if(codeIsValid) {\n ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();\n context.redirect(context.getRequestContextPath() + \"/business/UseDeals.jsf\");\n codeMessage = \"\";\n } else {\n codeMessage = \"Code is not valid! Please try again!\";\n }\n }", "public void testIsTextValid() {\n String text = null;\n int slotId = 0;\n int feature = 0;\n\n // 01--empty\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 02--valid\n text = \"nickmmmm\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 03--too long\n text = \"abcdefghijklmnopqrstu\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 04\n text = \"端午春asdfghjklop\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 05\n text = \"端午春as\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n }", "public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tpercentInputValidator.validate(name, value);\n\t\t} catch (ParameterException e) {\n\t\t\tresult = e.getMessage();\n\t\t}\n\t\tLOG.debug(\"result:\" + result);\n\t\tAssert.assertTrue(!result.equals(referenceResult));\n\t}", "private void validationMotDePasse( String motDePasse ) throws Exception {\n if ( motDePasse != null ) {\n if ( motDePasse.length() < 3 ) {\n throw new Exception( \"Le mot de passe doit contenir au moins 3 caractères.\" );\n }\n } else {\n throw new Exception( \"Merci de saisir votre mot de passe.\" );\n }\n }", "public boolean checkVaild() throws IOException;", "public static void isInputValid(String errorMessage){\r\n\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\talert.setTitle(\"Error!\");\r\n\t\talert.setHeaderText(\"\");\r\n\t\talert.setContentText(errorMessage);\r\n\t\talert.showAndWait();\r\n\t}", "private boolean is_valid_message(String ID)\n\t{\n\t\t// if the string is not null, not empty, and between 0 and 65356 in length, it is valid\n\t\tif(ID != null && !ID.equals(\"\") && ID.length() > 0 && ID.length() < 65356)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t// otherwise it's not\n\t\treturn false;\n\t}", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (commentField.getText() == null || commentField.getText().length() == 0) {\n errorMessage += \"Не введен комментарий!\\n\";\n }\n if (timeField.getText() == null || timeField.getText().length() == 0) {\n errorMessage += \"Не введено время выполнения задачи!\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не введены все данные!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Пожалуйста, введите все данные!\");\n alert.showAndWait();\n return false;\n }\n }", "private void checkInput(String input)throws Exception{\n\n if (input.getBytes(\"UTF-8\").length > 255){\n throw new IOException(\"Message too long\");\n\n }\n try {\n if (Integer.parseInt(input) < 0 || Integer.parseInt(input) > 65535) {\n throw new IOException(\"Port not valid\");\n }\n }catch (NumberFormatException e){\n //nothing should happen\n }\n }", "public AlwaysFailsCheck(String excepmsg) {\n errmsg = excepmsg;\n }", "public void checkSafeString(IRubyObject object) {\n if (getSafeLevel() > 0 && object.isTaint()) {\n ThreadContext tc = getCurrentContext();\n if (tc.getFrameName() != null) {\n throw newSecurityError(\"Insecure operation - \" + tc.getFrameName());\n }\n throw newSecurityError(\"Insecure operation: -r\");\n }\n secure(4);\n if (!(object instanceof RubyString)) {\n throw newTypeError(\n \"wrong argument type \" + object.getMetaClass().getName() + \" (expected String)\");\n }\n }", "private boolean hasErroIdade(String idade) {\r\n\t\terroIdade.setText(\"\");\r\n\t\terroIdade.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroIdade.setBounds(150, 307, 250, 14);\r\n\t\terroIdade.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaInt(idade)) {\r\n\t\t\terroIdade.setText(\"Deve conter apenas numeros\");\r\n\t\t\treturn true;\r\n\t\t} else if (!Validacao.validaIdade(idade)) {\r\n\t\t\terroIdade.setText(\"Nao pode ser maior que 150\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroIdade.setText(\"Idade Valida!\");\r\n\t\t\terroIdade.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n// Show the error message.\r\n Dialogs.create()\r\n .title(\"Invalid Fields\")\r\n .masthead(\"Please correct invalid fields\")\r\n .message(errorMessage)\r\n .showError();\r\n return false;\r\n }\r\n }", "@Test\n public void testIsEmptyValidRoman() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidRoman(\"\");\n assertEquals(false, result);\n }", "public boolean ValidaTerminoFormulario(String mensagem) {\n\t\tboolean achou;\n\t\t\n\t\tif (DriverFactory.getDriver().findElement(By.xpath(\"//h1[@class = 'sc-bxivhb iYGUAI' and contains (text(), '\" + mensagem + \"')]\")) != null) {\n\t\tachou = true;\n\t\t}\n\t\telse achou = false;\n\t\t\n\t\treturn achou;\n\t\t\n\t\t\n\t}", "public void verifyAlertMessage(String vExpMsg) {\n\t\tvActMessage = myD.findElement(By.id(\"hideMe\")).getText();\n\t\tSystem.out.println(\"Actual Message is :\" + vActMessage);\n\t\tSystem.out.println(\"Expected Message is :\" + vExpMsg);\n\t\tif (vActMessage.equals(vExpMsg)) {\n\t\t\tvResult = \"Pass\";\n\t\t} else {\n\t\t\tvResult = \"Fail\";\n\t\t}\n\t\tSystem.out.println(\"Test Case is a \"+ vResult);\n\t}", "private static boolean validateString(String string) {\n Pattern pattern = Pattern.compile(\"^([1-9]+[0-9]?|100)\\\\s([1-9]+\" +\n \"[0-9]?|100)\\\\s([1-9]+[0-9]?|100)$\");\n Matcher matcher = pattern.matcher(string);\n return matcher.matches();\n }", "@Then(\"je verifie que le message {string} est present.\")\n\tpublic void je_verifie_que_le_message_est_present(String string) {\n\t throw new PendingException();\n\t}", "private boolean isPasswordValid(String password) {\n if(password.length() < 4){\n TextView tv = findViewById(R.id.wrongPassError);\n tv.setText(getResources().getString(R.string.error_invalid_password));\n return false;\n }\n return true;\n }", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }", "public boolean estMotDePasseValide(String motDePasse) {\n\t\t\n\t\tif(motDePasse.length()>8) {\n\t\t\tfor(int i=0;i<motDePasse.length();i++) {\n\t\t\t\tif(motDePasse.charAt(i)==motDePasse.toUpperCase().charAt(i)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "static boolean checkOk(String response) {\n\t\tMatcher m = PAT_ES_SUCCESS.matcher(response);\n\t\tif (m.find()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public String isInvalidAlert(String object, String data) {\n\t\tlogger.debug(\"Verify the Alert pop up \");\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t\ttry {\n\t\t\t\t//waitForPageLoad(driver);\n\t\t\t\tif (driver.switchTo().alert() != null) {\n\t\t\t\t\tlogger.debug(\"Alert detected\");\n\t\t\t\t\tAlert alert = explicitWaitForAlert();\n\t\t\t\t\t//browserSpecificPauseForAlert(object, data);\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\talert.accept();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Alert not detected\";\n\t\t\t\t}\n\t\t\t} catch (NoAlertPresentException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t// e.printStackTrace();\n\t\t\t\treturn Constants.KEYWORD_PASS + \" Alert not detected\";\n\t\t\t}\n\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \"--some exception occured\" + e.getMessage();\n\t\t}\n\t\treturn Constants.KEYWORD_FAIL + \" Alert Should not be detected\";\n\t}", "public final void testAlwaysThereStrings() throws Exception\n {\n mSolo.sleep(TestValues.LET_UI_THREAD_UPDATE_DISPLAY);\n\n // working on a substring as does not work on multi-lines\n // Assert.assertTrue(mSolo.waitForText(mSolo.getString(R.string.mass_import__principle_explanation__label).substring(10)));\n Assert.assertTrue(mSolo.waitForText(mSolo.getString(R.string.mass_import__import__button)));\n\n // let human see the screen\n mSolo.sleep(Common.HUMAN_TIME_FOR_READING);\n }", "public String verifyBlankValue(String object, String data) {\n\t\tlogger.debug(\"Verifying the text\");\n\t\ttry {\n\n\t\t\tString actual = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getText().trim();\n\t\t\tlogger.debug(\"act\" + actual);\n\t\t\tif (actual.length() == 0)\n\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\telse\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" -- Some Value Present\";\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" Object not found \" + e.getMessage();\n\t\t}\n\t}", "public String verifyNullValue(String object, String data) {\n\t\tlogger.debug(\"Verifying the Textbox text is null\");\n\t\ttry {\n\t\t\tdata = \"\";\n\t\t\tString actual = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getAttribute(OR.getProperty(\"ATTRIBUTE_VALUE\"));\n\t\t\tString expected = data;\n\n\t\t\tlogger.debug(\"actual\" + actual);\n\t\t\tlogger.debug(\"expected\" + expected);\n\t\t\tif (actual.equals(expected))\n\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\telse\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" -- text not verified--\" + actual + \" -- \" + expected;\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\t\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" Object not found \" + e.getMessage();\n\t\t}\n\t}", "public static String checkNotEmpty(String str, String message) {\n if (checkNotNull(str).isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "@AssertTrue(message=\"La clave debe ser alfanumerica \")\r\n\tpublic boolean validarClave(){\r\n\t\tboolean a=StringUtils.isAlphanumeric(clave);\r\n\t\tboolean b=StringUtils.isNotBlank(clave);\r\n\t\treturn (a && b);\r\n\t}", "@Então(\"a mensagem de erro {string}\")\n\tpublic void a_mensagem_de_erro(String mensagem) {\n\t\tresponse.then()\n\t\t\t\t.assertThat()\n\t\t\t\t.body(\"messages[0]\", is(mensagem));\n\t\t\n\t}", "boolean hasErr();", "private boolean checkError(byte[] response) {\n\t\treturn Arrays.equals(response,\"error\".getBytes());\n\t}", "public boolean isError() {\r\n return textErrorIndex >= 0;\r\n }", "boolean hasError();", "boolean hasError();", "boolean hasError();" ]
[ "0.6923225", "0.65725744", "0.65725744", "0.63950324", "0.6103774", "0.6097375", "0.6069514", "0.60482824", "0.60229677", "0.596474", "0.59488136", "0.5938211", "0.5938211", "0.5887017", "0.5883698", "0.58548844", "0.5848072", "0.58451086", "0.5830031", "0.582974", "0.58262354", "0.57988083", "0.5784286", "0.5783916", "0.57604027", "0.5751769", "0.5726942", "0.5713541", "0.5689597", "0.5657172", "0.56492645", "0.56492645", "0.5637561", "0.562833", "0.5627491", "0.56013185", "0.5600656", "0.55929524", "0.55750966", "0.55750966", "0.5561476", "0.5556215", "0.5547303", "0.55336976", "0.5527757", "0.55233085", "0.55233085", "0.549064", "0.54812354", "0.54765284", "0.5467127", "0.5459818", "0.5451812", "0.5451527", "0.54455596", "0.54343575", "0.54331493", "0.5429313", "0.54269433", "0.54267275", "0.5423123", "0.5418697", "0.5415946", "0.5398131", "0.53855956", "0.5380261", "0.5376388", "0.53752095", "0.53689003", "0.53657156", "0.5365683", "0.53604335", "0.53568643", "0.5351032", "0.5347482", "0.5346388", "0.5339625", "0.5336436", "0.53340596", "0.5324569", "0.5320817", "0.53199226", "0.53132594", "0.53123176", "0.53059494", "0.53029865", "0.53025025", "0.52899355", "0.5284467", "0.5280092", "0.5279544", "0.52747124", "0.5273001", "0.52701896", "0.5267342", "0.5267219", "0.5262502", "0.52583796", "0.52583796", "0.52583796" ]
0.7030801
0
Verifica se a string eh vazia ou nula. Se for lanca um erro com a mensagem passada.
public void verificaStringNulaOuVazia(String parametro, String mensagem) { verificaNulo(parametro, mensagem); verificaStringVazia(parametro, mensagem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaStringVazia(String parametro, String mensagem) {\n if (parametro.trim().isEmpty()) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "private boolean verificarText(String text,String campo) {\n\t\tif(text.length()==0) {\n\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": campo vacio\");\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\tfor(int i =0;i<text.length();i++) {\n\t\t\tif(text.charAt(i)!=' ') {\n\t\t\t\tif((text.charAt(i)<'a' || text.charAt(i)>'z'&& (text.charAt(i)<'A' || text.charAt(i)>'Z') ) ) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": Se ingreso un numero o caracter especial\");\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\t\n\t}", "private boolean hasErroNome(String nome) {\r\n\t\terroNome.setText(\"\");\r\n\t\terroNome.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroNome.setBounds(150, 155, 250, 20);\r\n\t\terroNome.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaLength(nome)) {\r\n\t\t\terroNome.setText(\"Minimo de 3 caracteres\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse if (!Validacao.isAlfabetico(nome)) {\r\n\t\t\terroNome.setText(\"Nao pode conter Numeros\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse if (!Validacao.validaCompleto(nome)) {\r\n\t\t\terroNome.setText(\"Nome precisa ser Completo\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroNome.setText(\"Nome Valido!\");\r\n\t\t\terroNome.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }", "boolean hasErrormessage();", "private static Boolean errorCheck(String Buffer){\n if(Buffer.matches(\"Y\")) return true;\n if(Buffer.matches(\"N\")) return false;\n screenClear(); //Clears the screen and applies an error message.\n return moreInput(); //Recursive repeat upon error.\n }", "public void testInvalidStringPositiveTest()\n {\n form.setVerificationCode(testStr);\n validator.validate(form, errors);\n assertTrue(errors.hasErrors());\n }", "@Test\n\tvoid testCheckString3() {\n\t\tassertFalse(DataChecker.checkString(null));\n\t}", "public boolean isCorrect(String str);", "boolean hasErrmsg();", "private void validate(String s, int length, String msg) {\n Logger.getLogger(getClass()).info(\"valore della stringa inserita\"+s);\n \tif (s != null && s.length()>length)\n throw new IllegalArgumentException(msg);\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif(userNameField.getText() == null || userNameField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a felhasználó név mező!\\n\";\n\t\t}\n\t\tif(passwordField.getText() == null || passwordField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a jelszó mező!\";\n\t\t}\n\t\t\n\t\tif(errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// show the error message\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Érvénytelen mezők\");\n\t\t\talert.setHeaderText(\"Kérlek töltsd ki az összes mezőt!\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\t\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n\tvoid testCheckString2() {\n\t\tassertFalse(DataChecker.checkString(\"\"));\n\t}", "private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }", "public boolean Check() {\r\n if (this.ValidExpression != 0)\r\n System.out.println(\"Well the string is wrong or missing, master!\");\r\n else \r\n System.out.println(\"Nice String Bro!\"); \r\n return (this.ValidExpression != 0);\r\n }", "public boolean showfinalresult() throws PalindromeException{\n if((checkString()==true)){\n if(this.joinedTextPalindrome.length()==0){\n throw new PalindromeException(\"This text is too short\");\n }else{\n return true;\n }\n }else{\n return false;\n }\n }", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasErrorMessage();", "boolean hasErrorMessage();", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (commentField.getText() == null || commentField.getText().length() == 0) {\n errorMessage += \"Не введен комментарий!\\n\";\n }\n if (timeField.getText() == null || timeField.getText().length() == 0) {\n errorMessage += \"Не введено время выполнения задачи!\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не введены все данные!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Пожалуйста, введите все данные!\");\n alert.showAndWait();\n return false;\n }\n }", "public static boolean verificaRigaVuota (String stringa){\r\n\t\tif(Pattern.matches(\"[0-9a-zA-Z]\", stringa)) return true;\r\n\t\treturn false;\r\n\t}", "private boolean hasErroIdade(String idade) {\r\n\t\terroIdade.setText(\"\");\r\n\t\terroIdade.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroIdade.setBounds(150, 307, 250, 14);\r\n\t\terroIdade.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaInt(idade)) {\r\n\t\t\terroIdade.setText(\"Deve conter apenas numeros\");\r\n\t\t\treturn true;\r\n\t\t} else if (!Validacao.validaIdade(idade)) {\r\n\t\t\terroIdade.setText(\"Nao pode ser maior que 150\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroIdade.setText(\"Idade Valida!\");\r\n\t\t\terroIdade.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}", "public static boolean makeSure(String message){\n char answer;\n boolean validChar = false;\n do {\n answer = Console.readCharacter(message + \" (S/N) \");\n if (Console.validateQuestion(answer))\n validChar = true;\n else\n System.out.println(\"Opción no válida... \");\n } while(!validChar);\n if (Character.toLowerCase(answer) == 's')\n return true;\n else\n return false;\n }", "public static boolean validarVacio(JTextField text) {\n String vText = text.getText().trim();\n if (\"\".equals(vText)) {\n MensajeSistema.MensajeVarios(\"Este campo no se puede vacio!!!\", MensajeSistema.ERROR_MESSAGE());\n text.setText(null);\n text.grabFocus();\n return false;\n } else {\n text.setText(vText);\n return true;\n }\n }", "void showErrorMsg(String string);", "@Override\n\tpublic boolean verificarMensaje(String mensaje) {\n\t\tboolean reenvio = false;\n\t\tSystem.out.println(mensaje.length());\n\t\tSystem.out.println(\"Mensaje recibido: \"+ mensaje);\n\t\tString lectura = mensaje.substring(0, 12);\n\t\tSystem.out.println(\"Inicio de trama: \"+lectura);\n\t\tif (lectura.equals(inicioTrama)) {\n\t\t\tlectura = mensaje.substring(12, 14);\n\t\t\tSystem.out.println(\"Tpo de trama: \"+lectura);\n\t\t\tif (lectura.equals(\"01\")) {\n\t\t\t\treenvio = tipoTrama01(mensaje);\n\t\t\t}\n\t\t}\n\t\treturn reenvio;\n\t}", "private boolean checkForWrongInput(){\n if(this.studentCode.getText().isEmpty())\n return true;\n //Check for length\n if(this.studentCode.getText().length() != 3)\n return true;\n //Check for invalid characters\n for(char c: this.studentCode.getText().toCharArray())\n if(!Character.isDigit(c))\n return true;\n\n return false;\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (nameField.getText() == null || nameField.getText().length() == 0) {\r\n errorMessage += \"请输入直播名!\\n\";\r\n }\r\n if (urlField.getText() == null || urlField.getText().length() == 0) {\r\n errorMessage += \"请输入直播流!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"输入错误\");\r\n alert.setContentText(errorMessage);\r\n return false;\r\n }\r\n }", "public void CheckError(String s) {\r\n if (s.equals(token.get(lookAheadPossition))){\r\n System.out.println(\"Expected: \"+ s +\" at line:\"+ lookAheadPossition);\r\n lookAheadPossition=lookAheadPossition+1;\r\n }else {\r\n System.out.println(\"ERROR: at line:\"+ lookAheadPossition +\" expected-> \"+ s +\" --- \" + token.get(lookAheadPossition)+ \" <-detected.\" );\r\n System.exit(0);\r\n }\r\n }", "private boolean checkInCashe(String s) {\n return true;\n }", "private boolean validarContrasena (String contrasena){\n Pattern pattern = Pattern.compile(\"^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=!.])(?=\\\\S+$).{6,}$\");\n if (!contrasena.matches(String.valueOf(pattern))){\n errorCo.setText(\"La Contraseña debe tener al menos: 6 caracteres, 1 minúscula, 1 mayúscula, 1 número y 1 signo\");\n errorCo.setVisibility(View.VISIBLE);\n\n }\n return contrasena.matches(String.valueOf(pattern));\n }", "private void valida(String str)throws Exception{\n\t\t\t\n\t\t\tif(str == null || str.trim().isEmpty()){\n\t\t\t\tthrow new Exception(\"Nao eh possivel trabalhar com valores vazios ou null.\");\n\t\t\t}\n\t\t\n\t\t}", "private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n// Show the error message.\r\n Dialogs.create()\r\n .title(\"Invalid Fields\")\r\n .masthead(\"Please correct invalid fields\")\r\n .message(errorMessage)\r\n .showError();\r\n return false;\r\n }\r\n }", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n //for now just check they actually typed something\n if ((userField.getText() == null) || userField.getText().isEmpty()) {\n errorMessage += \"No username entered\\n\";\n }\n if ((pwField.getText() == null) || pwField.getText().isEmpty()) {\n errorMessage += \"No password entered\\n\";\n }\n\n //no error message means success / good input\n if (errorMessage.isEmpty()) {\n return true;\n } else {\n // Show the error message if bad data\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(_dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }", "public void verificarMensagem(String m){\r\n\t\tboolean verificaM =\tmensagem.getText().equals(m);\r\n\t\tAssert.assertTrue(verificaM);\r\n\t\tlogPrint(\"Mensagem apareceu\");\r\n\t}", "@AssertTrue(message=\"La clave debe ser alfanumerica \")\r\n\tpublic boolean validarClave(){\r\n\t\tboolean a=StringUtils.isAlphanumeric(clave);\r\n\t\tboolean b=StringUtils.isNotBlank(clave);\r\n\t\treturn (a && b);\r\n\t}", "public boolean ValidaTerminoFormulario(String mensagem) {\n\t\tboolean achou;\n\t\t\n\t\tif (DriverFactory.getDriver().findElement(By.xpath(\"//h1[@class = 'sc-bxivhb iYGUAI' and contains (text(), '\" + mensagem + \"')]\")) != null) {\n\t\tachou = true;\n\t\t}\n\t\telse achou = false;\n\t\t\n\t\treturn achou;\n\t\t\n\t\t\n\t}", "private void validationMotDePasse( String motDePasse ) throws Exception {\n if ( motDePasse != null ) {\n if ( motDePasse.length() < 3 ) {\n throw new Exception( \"Le mot de passe doit contenir au moins 3 caractères.\" );\n }\n } else {\n throw new Exception( \"Merci de saisir votre mot de passe.\" );\n }\n }", "public static String checkString(String s) {\n if(s==null || s.length()==0) return null;\n return s;\n }", "public boolean canProvideString();", "public static boolean isStringValid(String check, String inputData) {\n\t\tString errorMessage = \"\";\n\n\t\tif (inputData == null || inputData.length() == 0) {\n\t\t\terrorMessage += \"No valid : \" + check + \"\\n\";\n\t\t}\n\n\t\tif (errorMessage.length() == 0)\n\t\t\treturn true;\n\n\t\terrorMessage(errorMessage);\n\t\treturn false;\n\t}", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "public abstract boolean isValid(String s);", "public static boolean isEntero(String valor) {\n boolean valido = false;\n\n try {\n int cantidad = Integer.parseInt(valor);\n if (cantidad > 0) {\n valido = true;\n }\n } catch (NumberFormatException e) {\n System.out.println(\"No es un caracter entero\");\n }\n\n return valido;\n }", "public void testIsTextValid() {\n String text = null;\n int slotId = 0;\n int feature = 0;\n\n // 01--empty\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 02--valid\n text = \"nickmmmm\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 03--too long\n text = \"abcdefghijklmnopqrstu\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 04\n text = \"端午春asdfghjklop\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 05\n text = \"端午春as\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n }", "public boolean validarIngreso(String texto) {\n if (texto.trim().length() == 0) {\n return true;\n } else {\n return false;\n }\n }", "public boolean checkInvalid2(String x) {\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i)))) {\n count++;\n }\n }\n return count == x.length();\n\n }", "public boolean validarCampos(){\n String nome = campoNome.getText().toString();\n String descricao = campoDescricao.getText().toString();\n String valor = String.valueOf(campoValor.getRawValue());\n\n\n if(!nome.isEmpty()){\n if(!descricao.isEmpty()){\n if(!valor.isEmpty() && !valor.equals(\"0\")){\n return true;\n }else{\n exibirToast(\"Preencha o valor do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha a descrição do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha o nome do seu serviço\");\n return false;\n }\n }", "boolean hasString();", "private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }", "private boolean validarNombreImagen(String nombreImagen) {\n\n String msjeError;\n if (nombreImagen.equals(\"\") || flagCheck_1 == false) {\n\n msjeError = \"Debe ingresar imagen válida para continuar.\";\n this.jLabelError.setText(msjeError);\n this.jLabelError.setForeground(Color.RED);\n this.jLabelError.setVisible(true);\n\n this.jLabel2.setForeground(Color.red);\n return false;\n } else {\n\n this.jLabel2.setForeground(jlabelColor);\n this.jLabelError.setVisible(false);\n return true;\n }\n }", "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "public static boolean checkInputAlert(String saInput) throws Exception {\r\n\t\tboolean bool = checkInput(saInput);\r\n\r\n\t\tif (! bool) {\r\n\t\t\tStringBuffer sb = new StringBuffer(\"Hazardous characters found in the input: \");\r\n\t\t\tsb.append(\"\\\"\").append(HansFilter.alter(saInput)).append(\"\\\"\");\r\n\r\n\t\t\tthrow new Exception(sb.toString());\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public boolean hasErrorText() {\n return result.hasErrorText();\n }", "public boolean hasErrorText() {\n return result.hasErrorText();\n }", "@Test\n\tvoid testCheckString1() {\n\t\tassertTrue(DataChecker.checkString(\"Test\"));\n\t}", "public String preValidar() {\n\t\tString errores = \"\";\r\n\t\t\r\n\t\tif (email == null || email.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique el e-mail</br>\";\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tif(!isValidEmailAddress()){\r\n\t\t\t\terrores = errores + \"indique un e-mail válido</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (contrasenya == null || contrasenya.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique la contraseña</br>\";\r\n\t\t} else {\r\n\t\t\tif(!isValidPwd()){\r\n\t\t\t\terrores = errores + \"la contraseña debe contener\"\r\n\t\t\t\t\t\t+ \" al menos 8 caracteres, y estos deben ser\"\r\n\t\t\t\t\t\t+ \"alfanuméricos</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn errores;\r\n\t}", "private boolean isInvalid(JTextField campo) {\n return campo.getText().isEmpty();\n }", "public boolean textVacio(JTextField txtDNI, JPasswordField pwsPass, JTextField txtNom,\n JTextField txtApe, JTextField txtTele, JTextField txtCorreo, JComboBox cbx, JLabel lblMensaje) {\n\n try {\n\n boolean veri = txtDNI.getText().trim().isEmpty() || pwsPass.getText().trim().isEmpty() || txtNom.getText().trim().isEmpty()\n || txtApe.getText().trim().isEmpty() || txtTele.getText().trim().isEmpty() || txtCorreo.getText().trim().isEmpty()\n || cbx.getSelectedIndex() == 0;\n\n if (veri == true) {\n lblMensaje.setText(\"TODOS LOS CAMPOS SON NECESARIOS\".toUpperCase());\n return true;\n } else {\n lblMensaje.setText(\"\".toUpperCase());\n return false;\n }\n } catch (Exception e) {\n System.err.println(\"Erro bro :(\");\n }\n return true;\n }", "private boolean verificaDados() {\n if (!txtNome.getText().equals(\"\") && !txtProprietario.getText().equals(\"\")) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"Falta campos a ser preenchido\", \"Informação\", 2);\n return false;\n }\n }", "private boolean validateInput() {\n boolean isValid = true;\n Alert errMsg = Util.getAlert(Alert.AlertType.ERROR);\n if (connectionsCB.getEditor().getText() == null || !Util.isValidAddress(connectionsCB.getEditor().getText())) {\n errMsg.setContentText(\"Invalid TRex Host Name or IP address\");\n isValid = false;\n } else if (!Util.isValidPort(rpcPort.getText())) {\n errMsg.setContentText(\"Invalid TRex Sync Port Number(\" + rpcPort.getText() + \")\");\n isValid = false;\n } else if (!Util.isValidPort(asyncPort.getText())) {\n errMsg.setContentText(\"Invalid Async Port Number(\" + asyncPort.getText() + \")\");\n isValid = false;\n } else if (Util.isNullOrEmpty(nameTF.getText())) {\n errMsg.setContentText(\"Name should not be empty\");\n isValid = false;\n }\n\n if (!isValid) {\n errMsg.show();\n }\n return isValid;\n }", "private boolean testString(String s, boolean critical) {\n // Have the generator check the String\n Violation violation = new Violation(baseSink, baseSink);\n generator.checkTaint(s, 0, violation);\n // Check if a critical violation would have been reported\n return critical == !violation.getTaintedValues().isEmpty();\n }", "private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }", "public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ID.getText() == null || ID.getText().length() == 0) {\n errorMessage += \"No valid id!\\n\";\n System.out.println(\"fl\");\n }\n if (password.getText() == null || password.getText().length() == 0) {\n errorMessage += \"No valid password!\\n\"; \n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Dialogs.create()\n .title(\"Invalid Fields\")\n .masthead(\"Please correct invalid fields\")\n .message(errorMessage)\n .showError();\n return false;\n }\n }", "@Test\n public void testEnsureStringExists(){\n String exists = \"Hello World\";\n String emptyString = \"\";\n\n assertTrue(StringUtil.ensureStringExists(exists));\n assertFalse(StringUtil.ensureStringExists(null));\n assertFalse(StringUtil.ensureStringExists(emptyString));\n }", "boolean hasErr();", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (gemNameField.getText() == null || gemNameField.getText().length() == 0) {\n errorMessage += \"No valid gem name!\\n\";\n }\n if (gemValueField.getText() == null || gemValueField.getText().length() == 0) {\n errorMessage += \"No valid gem value!\\n\";\n } else {\n // try to parse the gem value into an int.\n try {\n Integer.parseInt(gemValueField.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid gem value (must be an integer)!\\n\";\n }\n }\n if (gemDescripField.getText() == null || gemDescripField.getText().length() == 0) {\n errorMessage += \"No valid gem description!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }", "public boolean validarEntradaLetra(String letra) {\n\n\t\tPattern p = Pattern.compile(\"[a-zA-Z]{1,1}\");\n\n\t\tMatcher m = p.matcher(letra);\n\n\t\tif (m.matches() == false) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Letra inválida, favor insira uma letra válida!\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "boolean hasError();", "boolean hasError();", "boolean hasError();", "@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}", "private boolean hasNomeInvalido(String[] n) throws Exception {\n boolean invalido = false;\n for (int i = 0; i < n.length; i++) {\n if (n[i].equals(\"bank\")) {\n invalido = true;\n }\n }\n return invalido;\n }", "private boolean validarNombre (String nombre){\n Pattern pattern = Pattern.compile(\"[a-zA-Z-ZñÑáéíóúÁÉÍÓÚ]+\\\\s[a-zA-Z-ZñÑáéíóúÁÉÍÓÚ\\\\s]+\");\n if (!nombre.matches(String.valueOf(pattern))){\n errorDu.setText(\"Debe cargar Nombre y Apellido y solo se permiten letras\");\n errorDu.setVisibility(View.VISIBLE);\n\n }\n return nombre.matches(String.valueOf(pattern));\n }", "private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif (dateField.getText() == null || dateField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiges Datum!\\n\";\n\t\t} else {\n\t\t\tif (!DateUtil.validDate(dateField.getText())) {\n\t\t\t\terrorMessage += \"Kein gültiges Datum. Benutze das dd.mm.yyy Format!\\n\";\n\t\t\t}\n\t\t}\n\t\tString categoryFieldSelection = categoryField.getSelectionModel().getSelectedItem();\n\t\tif (categoryFieldSelection.isEmpty() || categoryFieldSelection.length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Kategorie!\\n\";\n\t\t}\n\t\tif (useField.getText() == null || useField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Verwendungszweck!\\n\";\n\t\t}\n\t\tif (amountField.getText() == null || amountField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Betrag!\\n\";\n\t\t} \n\t\t/**else {\n\t\t\t// try to parse the amount into a double\n\t\t\ttry {\n\t\t\t\tDouble.parseDouble(amountField.getText());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\terrorMessage += \"Kein zulässiger Betrag! (Nur Dezimalzahlen erlaubt)\\n\";\n\t\t\t}\n\t\t}**/\n\t\tif (distributionKindField.getText() == null || distributionKindField.getText().length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Ausgabeart!\\n\";\n\t\t}\n\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Show the error message.\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Ungültige Eingaben\");\n\t\t\talert.setHeaderText(\"Bitte korrigieren Sie die Fehler in den Feldern.\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.showAndWait();\n\t\t\treturn false;\n\t\t}\n\t}", "public void onError(String cadena) {\r\n\t\tJOptionPane.showMessageDialog(null, cadena, \"Movimiento invalido\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\r\n\t}", "public boolean isError() {\r\n return textErrorIndex >= 0;\r\n }", "private static boolean validateString(String string) {\n Pattern pattern = Pattern.compile(\"^([1-9]+[0-9]?|100)\\\\s([1-9]+\" +\n \"[0-9]?|100)\\\\s([1-9]+[0-9]?|100)$\");\n Matcher matcher = pattern.matcher(string);\n return matcher.matches();\n }", "public static boolean validarVacioSinMsj(JTextField text) {\n String vText = text.getText().trim();\n if (\"\".equals(vText)) {\n text.setText(null);\n return false;\n } else {\n text.setText(vText);\n return true;\n }\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "boolean hasStringValue();", "public void testValidStringPositiveTest()\n {\n form.setVerificationCode(\"123456\");\n validator.validate(form, errors);\n assertTrue(!errors.hasErrors());\n }", "@Test\n\t public void teststringAPI_fail() {\n\t\tString testData = \"Caps is not considered the same\";\n\t\tchar charData='c';\n\t\tString expected = \"aps is not onsidered the same\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tassertNotSame(\"Got Expected Result\", expected, actualStr);\n\t }", "private boolean validateInput(){\n boolean result = false;\n\n if(!us.setUsername(userField.getText())){\n errorLabel.setText(\"Nombre de usuario invalido\");\n } else if(!us.setPassword(passField.getText())){ //Valido 1 por uno los campos que ingreso el usuario\n errorLabel.setText(\"Contraseña invalida\");\n } else if(!us.setName(nameField.getText())){\n errorLabel.setText(\"Nombre Invalido\");\n } else if(!us.setSurname(surnameField.getText())){\n errorLabel.setText(\"Apellido Invalido\");\n } else if(!us.setDni(dniField.getText())){\n errorLabel.setText(\"Dni invalido\");\n } else if(!ageField.getText().matches(\"\\\\d{2}\")){\n errorLabel.setText(\"Edad invalida\");\n }\n else{\n us.setAge(Integer.parseInt(ageField.getText()));\n result = true;\n }\n return result;\n }", "private void validationMotsDePasse(String motDePasse, String confirmation) throws Exception {\r\n\t\tif (motDePasse != null && motDePasse.trim().length() != 0 && confirmation != null\r\n\t\t\t\t&& confirmation.trim().length() != 0) {\r\n\t\t\tif (!motDePasse.equals(confirmation)) {\r\n\t\t\t\tthrow new Exception(\"Les mots de passe entrés sont différents, merci de les saisir à nouveau.\");\r\n\t\t\t} else if (motDePasse.trim().length() < 8) {\r\n\t\t\t\tthrow new Exception(\"Les mots de passe doivent contenir au moins 8 caractères.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"Merci de saisir et confirmer votre mot de passe.\");\r\n\t\t}\r\n\t}", "private boolean verifyStudyName() {\n\t\t\n\t\tif (subjectNameTF.getText().isEmpty()) { \n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Subject Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\tsubjectNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "public static void isInputValid(String errorMessage){\r\n\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\talert.setTitle(\"Error!\");\r\n\t\talert.setHeaderText(\"\");\r\n\t\talert.setContentText(errorMessage);\r\n\t\talert.showAndWait();\r\n\t}", "boolean isError();", "public static boolean verificaDataInserita (String data){\r\n\t\t\r\n\t\t//if (!(Pattern.matches(\"(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[-/.](19|20)\\\\d\\\\d\", data))) {\r\n\r\n\t\tif (!(Pattern.matches(\"(19|20)\\\\d\\\\d[\\\\-.](0[1-9]|1[012])[\\\\-.](0[1-9]|[12][0-9]|3[01])\", data))) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"La data Inserita deve essere di tipo aaaa-mm-gg\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean checkValidity() {\n if(txtSupplierCode.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please Enter the Supplier Code!!\", \"EMPTY SUPPLIER CODE\", JOptionPane.ERROR_MESSAGE);\n txtSupplierCode.setBackground(Color.RED);\n return false;\n }\n if(txtSupplierName.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please Enter the Supplier Name!!\", \"EMPTY SUPPLIER NAME\", JOptionPane.ERROR_MESSAGE);\n txtSupplierName.setBackground(Color.RED);\n return false;\n }\n return true;\n }", "public void validarRut(String rut) {\n boolean validacion = false;\n try {\n rut = rut.toUpperCase().replace(\".\", \"\").replace(\"-\", \"\");\n int rutAux = Integer.parseInt(rut.substring(0, rut.length() - 1));\n char dv = rut.charAt(rut.length() - 1);\n int m = 0, s = 1;\n for (; rutAux != 0; rutAux /= 10) {\n s = (s + rutAux % 10 * (9 - m++ % 6)) % 11;\n }\n if (dv == (char) (s != 0 ? s + 47 : 75)) {\n validacion = true;\n recorrerUsuarios(rut);\n }\n } catch (java.lang.NumberFormatException e) {\n } catch (Exception e) {\n }\n if (validacion==false){\n Toast.makeText(getApplicationContext(),\"Rut no valido\",Toast.LENGTH_LONG).show();\n }\n }", "public boolean checkVaild() throws IOException;" ]
[ "0.68880504", "0.6712616", "0.6712616", "0.6687217", "0.6654941", "0.64992774", "0.6419269", "0.6418627", "0.6399831", "0.6222465", "0.62218374", "0.61667156", "0.61602014", "0.61470634", "0.61470634", "0.6144496", "0.6132341", "0.6116774", "0.60979235", "0.6028006", "0.60007703", "0.5972031", "0.5972031", "0.59558827", "0.5944218", "0.59039766", "0.59015113", "0.589296", "0.58818567", "0.58405036", "0.58360523", "0.5834235", "0.5830766", "0.5830766", "0.5821214", "0.58124536", "0.5809948", "0.580592", "0.58008814", "0.5800707", "0.57931226", "0.5775835", "0.57724357", "0.57579553", "0.57455343", "0.5731507", "0.5725518", "0.57248867", "0.5709953", "0.5709637", "0.5709257", "0.57008034", "0.56895494", "0.56860846", "0.5684774", "0.56825405", "0.56818485", "0.5679958", "0.56740844", "0.56733835", "0.5669772", "0.5669772", "0.5666017", "0.5665341", "0.5635272", "0.5634565", "0.56344247", "0.5634217", "0.56296563", "0.56279635", "0.56274605", "0.5627216", "0.56170356", "0.5605746", "0.56051964", "0.5585646", "0.55815506", "0.55815506", "0.55815506", "0.5578731", "0.5576297", "0.55748016", "0.5567232", "0.55553573", "0.5547839", "0.5535656", "0.55325216", "0.5530258", "0.55294126", "0.5528471", "0.5528429", "0.5527199", "0.55229676", "0.55214334", "0.55202985", "0.5493345", "0.5492805", "0.54926485", "0.54922414", "0.5491677" ]
0.711638
0
Verifica se o parametro eh um inteiro negativo. Se for, lanca um erro com a mensagem passada.
public void verificaInteiroNegativo(int parametro, String mensagem) { if (parametro < 0) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaInteiroMaiorQueZero(int parametro, String mensagem) {\n if (parametro <= 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "private void checkPositive(long number, String paramName) {\r\n if (number <= 0) {\r\n throw new IllegalArgumentException(\"The parameter '\" + paramName\r\n + \"' should not be less than or equal to 0.\");\r\n }\r\n }", "protected static void assertArgumentNotZeroInteger(String name, int value) {\n if (value == 0) {\n String msg = \"The argument '\" + name + \"' should be plus or minus value: \" + value;\n throw new IllegalArgumentException(msg);\n }\n }", "public void verificaNulo(Object parametro, String mensagem) {\n if (parametro == null) {\n throw new NullPointerException(this.msgGeral + mensagem);\n }\n }", "@Test\n\tpublic void testGetIncorrectParam() {\n\t\tfinal String owner = \"1\";\n\t\tResponse response = piiController.getPii(null, owner);\n\t\t\n\t\tverifyZeroInteractions(mPiiService);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\t\n\t\tassertEquals(400, response.getStatus());\n\t\tassertNull(response.getEntity());\n\t}", "private boolean isTokenValorNegativo(TokenVO token) {\n\t\tif (sintaticoHelper.isPalavraReservadaConstIntegerSemErro(token.getPalavraReservada()) ||\n\t\t\t\tsintaticoHelper.isPalavraReservadaConstDoubleSemErro(token.getPalavraReservada())) {\n\t\t\treturn PalavraReservadaHelper.isSubtrair(token.getValor().substring(0,1));\n\t\t}\n\t\treturn false;\n\t}", "public void verificaStringVazia(String parametro, String mensagem) {\n if (parametro.trim().isEmpty()) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void testGetTrackStatusForNegative() throws Exception {\r\n try {\r\n target.getTrackStatus(-10);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}", "private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "void showAlertForInvalidNumber();", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}", "private boolean isResultadoDadoValido(int resultadoDado) throws Exception {\n if ((resultadoDado > 6) || (resultadoDado < 1)) {\n throw new Exception(\"Invalid die result\");\n }\n return true;\n }", "@Test\n\tvoid testNegativeInteger() {\n\t\tint result = calculator.negativeInteger(-4,-3);\n\t\tassertEquals(-1,result);\n\t}", "public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }", "@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}", "public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }", "public static int checkInput() {\r\n\t\tint num = 0;\r\n\t\tboolean error = true; // check for error\r\n\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\t// input has to be an integer and not negative number\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0)\r\n\t\t\t\t\tthrow new InputMismatchException();\r\n\t\t\t\terror = false;\r\n\r\n\t\t\t} catch (InputMismatchException e) {\r\n\r\n\t\t\t\tSystem.out.print(\"Wrong input, try again...: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t\t// loop continue while there is an error\r\n\t\t} while (error);\r\n\r\n\t\treturn num;\r\n\t}", "private void errorCheck(String nonterminal, int number) {\r\n if (nonterminal == null || !isNonTerminal(nonterminal) || number < 0) {\r\n throw new IllegalArgumentException();\r\n }\r\n }", "private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}", "private void checkAttoAmministrativoNonAbbinato() {\n\t\tAllegatoAtto aa = allegatoAttoDad.findAllegatoAttoByAttoAmministrativo(allegatoAtto.getAttoAmministrativo());\n\t\tif(aa!=null){\n\t\t\tres.setAllegatoAtto(aa);\n\t\t\tthrow new BusinessException(ErroreFin.ATTO_GIA_ABBINATO.getErrore(\"\"));\n\t\t}\n\t}", "@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "private void checkValue(Variable toBeVariable) throws MethodCallWithNonexistentParameter {\n if (!toBeVariable.hasValue()) {\n throw new MethodCallWithNonexistentParameter();\n }\n }", "public static int validInt(String message){\n boolean success = false;\n int value = -1;\n do {\n try {\n value = (int)readNumber(message, \"int\");\n success = true;\n } catch (InputMismatchException e){\n System.out.println(\"Debe introducir un valor numérico... \");\n }\n } while(!success);\n return value;\n }", "public void checkInput(TextField number) {\r\n\t\ttry {\r\n\t\t\tlong num = Long.parseLong(number.getText());\r\n\t\t\tif (num < 0) \t\t\t\t\t// ako je negativan broj, pretvorit cemo ga u pozitivan\r\n\t\t\t\tnum = Math.abs(num);\r\n\t\t\tif (isValid(num)) \r\n\t\t\t\tscene2();\r\n\t\t}\r\n\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\talert(\"Wrong input, try again!\");\r\n\t\t}\r\n\t}", "public static void isValid(int i) throws IllegalArgumentException {\n\t//nothing to do here\n }", "public boolean steamFailure() {\n double steam = this.steamMessage.getDoubleParameter();\n if (steam < 0) {\n return true;\n }\n if (steam > this.configuration.getMaximualSteamRate()) {\n return true;\n }\n return false;\n }", "public static int inputCheckI() {\r\n\t\tint unos = 0;\t// pocetna vrijednost\r\n\t\tboolean inputCheck = true;\t//kontrolna promjenljiva\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tunos = input.nextInt();\t//ucitavanje unosa i provjera da li je negativan broj\r\n\t\t\t\tif (unos <= 0) {\r\n\t\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\t//ako jeste ispisi poruku\r\n\t\t\t\t\tinputCheck = true;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\telse inputCheck = false;\t//ako je sve ok, kontrolna promjenljiva false, vrati unos\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch (InputMismatchException ex) {\t//u slucaju pogresnog unosa\r\n\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (inputCheck);\r\n\t\treturn unos;\r\n\t}", "public void testGetMessage_InvalidObj() {\r\n try {\r\n validator.getMessage(new Byte(\"1\"));\r\n fail(\"testGetMessage_InvalidObj is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occurs in testGetMessage_InvalidObj.\");\r\n }\r\n }", "public static int validInt(String message, int minValue, int maxValue){\n boolean success = false;\n int value = -1;\n do {\n try {\n value = (int)readNumber(message, \"int\");\n if (inRange(value, minValue, maxValue))\n success = true;\n else\n System.out.println(\"Debe introducir un numero entre \" + \n minValue + \" y \" + maxValue + \"... \");\n } catch (InputMismatchException e){\n System.out.println(\"Debe introducir un valor numérico... \");\n }\n } while(!success);\n return value;\n }", "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testArgumentsNotHaveAValue() {\n System.out.println(\"Arguments do not have n\");\n assertThat(Arguments.valueOf(\"n\"), is(nullValue()));\n }", "public void illegalDataFieldsCheck(int intSID, String strName, String strTitle) throws IllegalArgumentException{\r\n String exceptionMessage = \"\";\r\n if (strName.equals(\"\")) {\r\n exceptionMessage += \"Name Can't Be Blank \\n\";\r\n }\r\n\r\n if (strTitle.equals(\"\")) {\r\n exceptionMessage += \"Title Can't Be Blank \\n\";\r\n }\r\n\r\n if (intSID == 0) {\r\n exceptionMessage += \"SID Can't Be 0 \\n\";\r\n }\r\n\r\n if (!exceptionMessage.equals(\"\")) {\r\n throw new IllegalArgumentException(exceptionMessage);\r\n }\r\n }", "public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tpercentInputValidator.validate(name, value);\n\t\t} catch (ParameterException e) {\n\t\t\tresult = e.getMessage();\n\t\t}\n\t\tLOG.debug(\"result:\" + result);\n\t\tAssert.assertTrue(!result.equals(referenceResult));\n\t}", "private static void check(boolean bedingung, String msg) throws IllegalArgumentException\n {\n if (!bedingung)\n throw new IllegalArgumentException(msg);\n }", "private void checkAnnoRateo() {\n\t\tif(req.getRateo().getAnno()>=primaNota.getBilancio().getAnno()){\n\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"L'anno del Rateo deve essere minore dell'anno della prima nota di partenza.\"));\n\t\t}\n\t}", "public void validate() throws ParameterValuesException {\n\t\tif (txtTenTaiSan.getText().isEmpty())\n\t\t\tthrow new ParameterValuesException(\"Bạn cần nhập tên tài sản\", null);\n\t}", "public static int validaEntradaOrdem() {\r\n\t\tint entrada = 0;\r\n\t\tboolean erro = false;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\terro = false;\r\n\t\t\t\tentrada = Leitura.lerInt();\r\n\t\t\t\tif (entrada > 2 || entrada < 0) {\r\n\t\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\t\terro = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException excecao) {\r\n\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\terro = true;\r\n\t\t\t}\r\n\r\n\t\t} while (erro);\r\n\t\treturn entrada;\r\n\t}", "private void validateInputParameters(){\n\n }", "@Test\n public void parse_invalidValues_failure() {\n assertParseFailure(parser, \"1 2 3\", String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n String.format(MESSAGE_TOO_MANY_ARGUMENTS,\n VendorCommand.COMMAND_WORD, 1, SwitchVendorCommand.MESSAGE_USAGE)));\n\n // Index passed is not a non-zero integer\n assertParseFailure(parser, \"1.4\", String.format(MESSAGE_INVALID_INDEX, \"Vendor Index\"));\n }", "@Order(2)\n\t\t@Test\n\t\tpublic void getInvalidMessage() throws IOException, ParseException {\n\t\t\tboolean response = Requests.sendGETBoolReturn(Requests.MESSAGE_URL, INVALID_MESSAGE_ID);\n\t\t\t\n\t\t\t//expect that response == false :: Request should not return a 200\n\t\t\tassertFalse(response);\n\t\t}", "private boolean hasErroIdade(String idade) {\r\n\t\terroIdade.setText(\"\");\r\n\t\terroIdade.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroIdade.setBounds(150, 307, 250, 14);\r\n\t\terroIdade.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaInt(idade)) {\r\n\t\t\terroIdade.setText(\"Deve conter apenas numeros\");\r\n\t\t\treturn true;\r\n\t\t} else if (!Validacao.validaIdade(idade)) {\r\n\t\t\terroIdade.setText(\"Nao pode ser maior que 150\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroIdade.setText(\"Idade Valida!\");\r\n\t\t\terroIdade.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private int getValidInteger(String msg) {\n\t\twhile (!scan.hasNextInt() || (choice = scan.nextInt()) < 1) {\n\t\t\tSystem.out\n\t\t\t\t\t.print(\"Error ---> Enter Positive Integer Value:\\n\" + msg);\n\t\t\tscan.next();\n\t\t}\n\n\t\treturn choice;\n\t}", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean validateData() {\r\n TASKAggInfo agg = null;\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n\r\n if (getArgument1() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 1 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getArgument2() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 2 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getOperand() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Filter value must be of type integer\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "boolean isFail();", "private void assertNullHandling(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLMessageArgument)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((Object)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLSymbol)null));\r\n\t}", "public static boolean isNumberNegative(Object val) throws BaseException\n{\n\tif(val instanceof Number && NumberUtil.toDouble(val) < 0 )\n\t{\n\t return true;\n\t}\n\treturn false;\n}", "public boolean isException(Class paramClass) {\n/* 162 */ if (paramClass == null) {\n/* 163 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 168 */ return (isCheckedException(paramClass) && !isRemoteException(paramClass) && isValue(paramClass));\n/* */ }", "@Test\n public void testIsNotValidDecimal() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidDecimal(-1);\n assertEquals(false, result);\n }", "private void checkInput(String input)throws Exception{\n\n if (input.getBytes(\"UTF-8\").length > 255){\n throw new IOException(\"Message too long\");\n\n }\n try {\n if (Integer.parseInt(input) < 0 || Integer.parseInt(input) > 65535) {\n throw new IOException(\"Port not valid\");\n }\n }catch (NumberFormatException e){\n //nothing should happen\n }\n }", "@Test\r\n\tpublic void testTransferAmountNegative() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(-100.0);\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "public void checkParameters() {\n }", "public void testGetInvoiceStatusByDescriptionNull() throws Exception {\n try {\n invoiceSessionBean.getInvoiceStatus(null);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public boolean isInvalid() {\n\t\treturn Double.isNaN(x) || Double.isNaN(y) || Double.isNaN(z);\n\t}", "@Test\n public void smartIdInvalidFormat() throws Exception {\n String errorMessage = authenticateWithSmartIdInvalidInputPollError(\"12akl2\", 2000);\n assertEquals(\"Isikukood on ebakorrektses formaadis.Intsidendi number:\", errorMessage);\n }", "private boolean isInteger(String value){\n try{\n Integer.parseInt(value);\n }catch(NumberFormatException exc)\n {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не верно указано затраченное время!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Введите целое число затраченного времени!\\nЗатраченное время не может превышать 2147483647 (245000 лет)!\");\n alert.showAndWait();\n return false;\n }\n return true;\n }", "public boolean isError(int i);", "public static boolean isEntero(String valor) {\n boolean valido = false;\n\n try {\n int cantidad = Integer.parseInt(valor);\n if (cantidad > 0) {\n valido = true;\n }\n } catch (NumberFormatException e) {\n System.out.println(\"No es un caracter entero\");\n }\n\n return valido;\n }", "public void testInvalidNumber() {\n\t\t// Arrange\n\t\tString exceptionNumb = null;\n\t\tPhoneNumberDTO dto = new PhoneNumberDTO(INVALID_NUMBER);\n\t\tGetLastMadeCommunicationService service\n\t\t\t= new GetLastMadeCommunicationService(dto);\n\t\t\n\t\t// Act\n\t\ttry {\n\t\t\tservice.execute();\n\t\t\tfail(\"Should have thrown PhoneNumberNotValid\");\n\t\t} catch(PhoneNumberNotValid pnnv) {\n\t\t\texceptionNumb = pnnv.getNumber();\n\t\t}\n\t\t\n\t\t// Assert\n\t\tassertEquals(\"The number in the exception should be \"\n\t\t\t\t+ INVALID_NUMBER + \" but it was \" + exceptionNumb,\n\t\t\t\tINVALID_NUMBER, exceptionNumb);\n\t}", "@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}", "public boolean erreurStandard1() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (>= 0).']\")));\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}", "@Override\r\n public boolean validarSucursalIdNoNulo(Integer sucursalId) throws ServiceException {\n if (sucursalId == null) {\r\n throw new ServiceException(\"consultorio.service.error.1202\", locale);\r\n }\r\n return true;\r\n }", "private boolean isAmountValid(String amount) {\n return Integer.parseInt(amount) > 0;\n }", "void validateValue(long val) {\n\n if ((min != null && val < min) || (max != null && val > max)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Value, \");\n sb.append(val);\n sb.append(\", is outside of the allowed range\");\n throw new IllegalArgumentException(sb.toString());\n }\n }", "public static void illegalArgument(Object errorMessage) {\n throw new IllegalArgumentException(\"\" + errorMessage);\n }", "private void checkSendOption(SendOptions options) {\n if(options.getFrom() == null || !Utils.isAddress(options.getFrom())) {\n throw new IllegalArgumentException(\"Invalid 'from' parameter : \" + options.getFrom());\n }\n\n if(options.getGas() == null || !Utils.isNumber(options.getGas())) {\n throw new IllegalArgumentException(\"Invalid 'gas' parameter : \" + options.getGas());\n }\n\n if(options.getValue() == null || !Utils.isNumber(options.getValue())) {\n throw new IllegalArgumentException(\"Invalid 'value' parameter : \" + options.getValue());\n }\n }", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindMinesNegative2() {\r\n\t\tauthenticate(\"viewer1\");\r\n\r\n\t\tbrotherhoodService.findMines();\r\n\r\n\t\tunauthenticate();\r\n\t}", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "public DataDiFineTirocinioNonValidaException(String messaggio) {\r\n super(messaggio);\r\n }", "@Test\n public void intInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.INT, new TextNode(\"-13\"));\n assertNull(retVal);\n }", "static void checkOptionId(final long id, final String paramName) {\r\n if ((id <= 0) && (id != -1)) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0, or it should be -1.\");\r\n }\r\n }", "public boolean erreurStandard2() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (0 ~ 59).']\")));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}", "@Test\n public void test098() throws Throwable {\n NumberInput numberInput0 = new NumberInput((Component) null, \"\", \"m\", \"m\");\n // Undeclared exception!\n try {\n Component component0 = numberInput0.param((CharSequence) \"m\", (CharSequence) \"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void setCantAnulacion(java.lang.Integer cantAnulacion) {\r\n this.cantAnulacion = cantAnulacion;\r\n }", "@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of request.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getStatus())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of status.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getLangcode())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of lang code.\");\n\t\t}\n\t}", "@Test(expected=IllegalArgumentException.class)\n public void validNotNullTestWhenInputIsNull(){\n Validator.validateNotNull(null);\n //THEN exception thrown\n }", "public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }", "@Given(\"^invalid fields and making a POST request to account_ID_preferences then it should return a (\\\\d+) and a body invalid error$\")\n\tpublic void invalid_fields_and_making_a_POST_request_to_account_ID_preferences_then_it_should_return_a_and_a_body_invalid_error(int arg1) throws Throwable {\n\t\tPostPref.Post_account_id_preferences_InvalidFieldsProvided();\n\t}", "void shouldThrowForBadServerValue() {\n }", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "public static void validateInput(Scanner in) {\n\t\twhile (!in.hasNextInt()) {\n\t\t\tSystem.out.println(\"That's not an integer!\");\n\t\t\tin.next();\n\t\t\tSystem.out.print(\"Please try again: \");\n\t\t}\n\t}", "public void testCanCreateInvoice() throws Exception {\n try {\n invoiceSessionBean.canCreateInvoice(-1);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "@Test\n\tpublic void CT04UC01CadastrarLivro_com_titulo_invalido() {\n\t\ttry {\n\t\t\tlivro.setTitulo(\"\");\n\t\t\tfail(\"deveria lançar uma exceção\");\n\t\t} catch (RuntimeException e) {\n\t\t\tassertEquals(\"Titulo invalido\", e.getMessage());\n\t\t}\n\t}", "public Integer getIsInvalid() {\n return isInvalid;\n }", "@Test\n void testFailure_illegalStatus() {\n assertThrows(\n IllegalArgumentException.class,\n () ->\n runCommandForced(\n \"--client=NewRegistrar\",\n \"--registrar_request=true\",\n \"--reason=Test\",\n \"--domain_name=example.tld\",\n \"--apply=clientRenewProhibited\"));\n }", "public static void checkArgument(boolean b) {\n if (!b) {\n throw new IllegalArgumentException();\n }\n }", "public static void isPositive(int userInput) {\n\t\tif (userInput <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter a positive number. Please try again:\");\n\t\t}\n\t}", "public void check(int time)\n {\n if(time < 0)\n {\n throw new IllegalArgumentException();\n }\n }", "private void validateSendAmount() {\n try {\n if (new BigDecimal(sanitizeNoCommas(sendNanoAmount))\n .compareTo(new BigDecimal(sanitizeNoCommas(NumberUtil.getRawAsLongerUsableString(accountBalance.toString())))) > 0) {\n RxBus.get().post(new SendInvalidAmount());\n }\n } catch (NumberFormatException e) {\n ExceptionHandler.handle(e);\n }\n }", "public static int verif(String cadena) {\r\n Scanner l = new Scanner(System.in);\r\n int m1 = -1;\r\n do {\r\n try {\r\n System.out.println(cadena);\r\n m1 = l.nextInt();\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"Valor no valido, ingrese un valor nuimerico\");\r\n }\r\n l.nextLine();\r\n } while (m1 < 0);\r\n\r\n return m1;\r\n }", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindMinesNegative1() {\r\n\t\tauthenticate(\"admin\");\r\n\r\n\t\tbrotherhoodService.findMines();\r\n\r\n\t\tunauthenticate();\r\n\t}", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }" ]
[ "0.69462395", "0.61316", "0.6088088", "0.5960555", "0.5952524", "0.5934911", "0.59276414", "0.5853924", "0.56770766", "0.56514746", "0.5631914", "0.552959", "0.5529408", "0.5485018", "0.5435773", "0.54228467", "0.53876024", "0.53817266", "0.53740877", "0.5369953", "0.53675044", "0.5363003", "0.53608567", "0.53451437", "0.53371906", "0.532783", "0.53241986", "0.53220695", "0.53182715", "0.53127414", "0.53052795", "0.53009963", "0.52987105", "0.52946", "0.5281358", "0.52801436", "0.5278307", "0.5261072", "0.52558655", "0.5254689", "0.5247194", "0.52451867", "0.5241128", "0.52387446", "0.52285635", "0.5228274", "0.52227706", "0.5218411", "0.5216103", "0.52151495", "0.5204586", "0.52024627", "0.5201142", "0.51981246", "0.51974434", "0.51914096", "0.51853055", "0.5183901", "0.5181846", "0.5181813", "0.5171895", "0.5170499", "0.5150252", "0.514808", "0.51453805", "0.51403004", "0.51401496", "0.51215124", "0.5121476", "0.5120905", "0.5120697", "0.511867", "0.5109011", "0.5105979", "0.50976336", "0.5090652", "0.50892794", "0.50862634", "0.5082764", "0.508021", "0.50792325", "0.5077505", "0.5077368", "0.50769275", "0.50750875", "0.5074337", "0.50668716", "0.5063245", "0.505908", "0.5054689", "0.50535536", "0.5052294", "0.5049296", "0.50477356", "0.50465834", "0.50434655", "0.5036226", "0.5025264", "0.50239813", "0.5022713" ]
0.79988897
0
Verifica se o inteiro passado eh maior que zero. Se for, lanca um erro com a mensagem passada.
public void verificaInteiroMaiorQueZero(int parametro, String mensagem) { if (parametro <= 0) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaInteiroNegativo(int parametro, String mensagem) {\n if (parametro < 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "public static int validaEntradaOrdem() {\r\n\t\tint entrada = 0;\r\n\t\tboolean erro = false;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\terro = false;\r\n\t\t\t\tentrada = Leitura.lerInt();\r\n\t\t\t\tif (entrada > 2 || entrada < 0) {\r\n\t\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\t\terro = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException excecao) {\r\n\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\terro = true;\r\n\t\t\t}\r\n\r\n\t\t} while (erro);\r\n\t\treturn entrada;\r\n\t}", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}", "public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "protected static void assertArgumentNotZeroInteger(String name, int value) {\n if (value == 0) {\n String msg = \"The argument '\" + name + \"' should be plus or minus value: \" + value;\n throw new IllegalArgumentException(msg);\n }\n }", "public static int checkInput() {\r\n\t\tint num = 0;\r\n\t\tboolean error = true; // check for error\r\n\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\t// input has to be an integer and not negative number\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0)\r\n\t\t\t\t\tthrow new InputMismatchException();\r\n\t\t\t\terror = false;\r\n\r\n\t\t\t} catch (InputMismatchException e) {\r\n\r\n\t\t\t\tSystem.out.print(\"Wrong input, try again...: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t\t// loop continue while there is an error\r\n\t\t} while (error);\r\n\r\n\t\treturn num;\r\n\t}", "private void checkPositive(long number, String paramName) {\r\n if (number <= 0) {\r\n throw new IllegalArgumentException(\"The parameter '\" + paramName\r\n + \"' should not be less than or equal to 0.\");\r\n }\r\n }", "@Test\r\n\tpublic void testTransferAmountZero() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(0.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "void showAlertForInvalidNumber();", "public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }", "public static int validInt(String message){\n boolean success = false;\n int value = -1;\n do {\n try {\n value = (int)readNumber(message, \"int\");\n success = true;\n } catch (InputMismatchException e){\n System.out.println(\"Debe introducir un valor numérico... \");\n }\n } while(!success);\n return value;\n }", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\t\t\t// unos \r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, probajte ponovo\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t\treturn num;\r\n\t}", "public static Integer checkInt(int value, String message) {\n return Optional.of(value).filter(n -> n > 0).orElseThrow(() -> new IllegalArgumentException(String.format(\"'%s=%d' must be greater than 0\", message, value)));\n }", "public static int inputCheckI() {\r\n\t\tint unos = 0;\t// pocetna vrijednost\r\n\t\tboolean inputCheck = true;\t//kontrolna promjenljiva\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tunos = input.nextInt();\t//ucitavanje unosa i provjera da li je negativan broj\r\n\t\t\t\tif (unos <= 0) {\r\n\t\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\t//ako jeste ispisi poruku\r\n\t\t\t\t\tinputCheck = true;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\telse inputCheck = false;\t//ako je sve ok, kontrolna promjenljiva false, vrati unos\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch (InputMismatchException ex) {\t//u slucaju pogresnog unosa\r\n\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (inputCheck);\r\n\t\treturn unos;\r\n\t}", "private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }", "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "private void validateSendAmount() {\n try {\n if (new BigDecimal(sanitizeNoCommas(sendNanoAmount))\n .compareTo(new BigDecimal(sanitizeNoCommas(NumberUtil.getRawAsLongerUsableString(accountBalance.toString())))) > 0) {\n RxBus.get().post(new SendInvalidAmount());\n }\n } catch (NumberFormatException e) {\n ExceptionHandler.handle(e);\n }\n }", "private boolean isResultadoDadoValido(int resultadoDado) throws Exception {\n if ((resultadoDado > 6) || (resultadoDado < 1)) {\n throw new Exception(\"Invalid die result\");\n }\n return true;\n }", "public boolean erreurStandard1() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (>= 0).']\")));\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}", "private int getValidInteger(String msg) {\n\t\twhile (!scan.hasNextInt() || (choice = scan.nextInt()) < 1) {\n\t\t\tSystem.out\n\t\t\t\t\t.print(\"Error ---> Enter Positive Integer Value:\\n\" + msg);\n\t\t\tscan.next();\n\t\t}\n\n\t\treturn choice;\n\t}", "public int pedirNIF(){\n int NIF = 0;\n boolean validado = false;\n do{\n System.out.println(\"Introduce la NIF:\");\n try {\n NIF = Integer.parseInt(lector.nextLine());\n validado = true;\n\n if(NIF <= 0){\n validado = false;\n System.out.println(\"El NIF no puede ser un numero negativo\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Por favor, introduce un numero.\");\n }\n\n }while(!validado);\n return NIF;\n }", "@Test\r\n\tpublic void testTransferAmountNegative() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(-100.0);\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "private void checkInput(String input)throws Exception{\n\n if (input.getBytes(\"UTF-8\").length > 255){\n throw new IOException(\"Message too long\");\n\n }\n try {\n if (Integer.parseInt(input) < 0 || Integer.parseInt(input) > 65535) {\n throw new IOException(\"Port not valid\");\n }\n }catch (NumberFormatException e){\n //nothing should happen\n }\n }", "@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }", "@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}", "private static Long userInputInt(String message) {\n\t\tLong result = 0L;\n\t\tboolean answer = false;\n\t\twhile (!answer) {\n\t\t\tSystem.out.println(message);\n\t\t\ttry {\n\t\t\t\tresult = scanner.nextLong();\n\t\t\t\tif (result >= 0) {\n\t\t\t\t\tanswer = true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Please could you indicate a positive number.\");\n\t\t\t\t}\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.err.println(\"Your answer is not a correct number, please try again.\");\n\t\t\t} finally {\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static int validInt(String message, int minValue, int maxValue){\n boolean success = false;\n int value = -1;\n do {\n try {\n value = (int)readNumber(message, \"int\");\n if (inRange(value, minValue, maxValue))\n success = true;\n else\n System.out.println(\"Debe introducir un numero entre \" + \n minValue + \" y \" + maxValue + \"... \");\n } catch (InputMismatchException e){\n System.out.println(\"Debe introducir un valor numérico... \");\n }\n } while(!success);\n return value;\n }", "public static int verif(String cadena) {\r\n Scanner l = new Scanner(System.in);\r\n int m1 = -1;\r\n do {\r\n try {\r\n System.out.println(cadena);\r\n m1 = l.nextInt();\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"Valor no valido, ingrese un valor nuimerico\");\r\n }\r\n l.nextLine();\r\n } while (m1 < 0);\r\n\r\n return m1;\r\n }", "@Override\r\n\tpublic int contarPasajeros() {\n\t\treturn 0;\r\n\t}", "public boolean steamFailure() {\n double steam = this.steamMessage.getDoubleParameter();\n if (steam < 0) {\n return true;\n }\n if (steam > this.configuration.getMaximualSteamRate()) {\n return true;\n }\n return false;\n }", "@Test\r\n\tpublic void testIsValidPasswordNoDigit()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"GreenLeaves\"));\r\n\t\t}\r\n\t\tcatch(NoDigitException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoDigitExcepetion\",true);\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "private static int IntInput(){\n\t\tScanner input = new Scanner(System.in); \n\t\t// set the interger Value to less then the threshold minimum (-1)\n\t\tint Value = -1 ;\n\t\twhile (Value < 0){\n\t\t\tValue = input.nextInt();\n\t\t\tif (Value < 0){\n\t\t\t\tSystem.out.printf(\"The number must be greater than or equal to to 0 \\nPlease enter a different value: \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn Value;\n\t}", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testZerosException() throws IllegalArgumentException {\n\t int min=3, mid=5, max=10, bigger=Integer.MAX_VALUE, smaller=Integer.MIN_VALUE;\n\t assertEquals( 0, MaxDiTre.max(0, 0, 0) );\n\t}", "static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_requirements();\n\t}", "@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }", "public boolean checkNumber() {\n\t\treturn true;\n\t}", "public static void isPositive(int userInput) {\n\t\tif (userInput <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter a positive number. Please try again:\");\n\t\t}\n\t}", "private boolean validarNumDistanc(double value) {\n\n String msjeError;\n if (value < 0) {\n\n msjeError = \"Valor No Aceptado\";\n this.jLabelError.setText(msjeError);\n this.jLabelError.setForeground(Color.RED);\n this.jLabelError.setVisible(true);\n\n this.jLabel5.setForeground(Color.red);\n return false;\n } else {\n\n this.jLabel5.setForeground(jlabelColor);\n this.jLabelError.setVisible(false);\n return true;\n }\n }", "public boolean erreurStandard2() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (0 ~ 59).']\")));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}", "public static boolean isValidFoodAmount(Integer test) {\n return test > 0;\n }", "public static int getInt(String mensaje) throws ValorInvalidoException {\n System.out.println(mensaje);\n return getInt();\n \n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "public Boolean verifyTheValueTotalCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value total cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_total));\n\t}", "public int obtainIntSafely(int min, int max, String failMessage) {\n int num = 0;\n boolean validInput = false;\n while (!validInput) {\n try {\n num = Integer.parseInt(scanner.nextLine());\n if (min <= num && num <= max) {\n validInput = true;\n break;\n } else {\n validInput = false;\n scanner.nextLine();\n System.out.print(failMessage);\n }\n } catch (Exception e) {\n validInput = false;\n scanner.nextLine();\n System.out.print(failMessage);\n }\n }\n return num;\n }", "public void check(int time)\n {\n if(time < 0)\n {\n throw new IllegalArgumentException();\n }\n }", "private boolean isInteger(String value){\n try{\n Integer.parseInt(value);\n }catch(NumberFormatException exc)\n {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не верно указано затраченное время!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Введите целое число затраченного времени!\\nЗатраченное время не может превышать 2147483647 (245000 лет)!\");\n alert.showAndWait();\n return false;\n }\n return true;\n }", "private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}", "public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}", "@Test\n\tvoid testNegativeInteger() {\n\t\tint result = calculator.negativeInteger(-4,-3);\n\t\tassertEquals(-1,result);\n\t}", "private boolean hasErroIdade(String idade) {\r\n\t\terroIdade.setText(\"\");\r\n\t\terroIdade.setFont(new Font(\"Arial\", Font.BOLD, 12));\r\n\t\terroIdade.setBounds(150, 307, 250, 14);\r\n\t\terroIdade.setForeground(Color.RED);\r\n\r\n\t\tif (!Validacao.validaInt(idade)) {\r\n\t\t\terroIdade.setText(\"Deve conter apenas numeros\");\r\n\t\t\treturn true;\r\n\t\t} else if (!Validacao.validaIdade(idade)) {\r\n\t\t\terroIdade.setText(\"Nao pode ser maior que 150\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\terroIdade.setText(\"Idade Valida!\");\r\n\t\t\terroIdade.setForeground(Color.BLUE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic String getMessage() {\n\t\t\treturn \"zero \" + super.getMessage();\n\t\t}", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }", "private boolean isAmountValid(String amount) {\n return Integer.parseInt(amount) > 0;\n }", "@Test\r\n\tpublic void testGetNumGoalsForDivisionError() {\r\n\t\tint numGoalsDivError = -1;\r\n\t\tassertEquals(numGoalsDivError, stats.getNumGoalsForDivision(\"By Zero Division\"));\r\n\t}", "@Test\n\tpublic void testAddOutOfRange() {\n\t\tInteger result = SimpleCalc.add(40, 10);\n\t\tassertNull(\"Input value 40 is out of range [-10, 10]\", result);\n\t}", "private boolean isLogNumFieldValid() {\n String count = logFileCount.getText();\n logNumAlert.setText(\"\");\n try {\n int count_num = Integer.parseInt(count);\n if (count_num < 1) {\n logNumAlert.setText(Bundle.AutopsyOptionsPanel_logNumAlert_invalidInput_text());\n return false;\n }\n } catch (NumberFormatException e) {\n logNumAlert.setText(Bundle.AutopsyOptionsPanel_logNumAlert_invalidInput_text());\n return false;\n }\n return true; \n }", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"there is zero balance\";\n\t}", "@Override\n\tprotected boolean isImplementationValid()\n\t{\n\t\treturn (this.amount > 0);\n\t}", "@Test\n public void test098() throws Throwable {\n NumberInput numberInput0 = new NumberInput((Component) null, \"\", \"m\", \"m\");\n // Undeclared exception!\n try {\n Component component0 = numberInput0.param((CharSequence) \"m\", (CharSequence) \"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void determineIsPositiveInt() {\n System.out.println(\"Enter a number:\");\r\n Scanner s = new Scanner(System.in);\r\n int i = Integer.parseInt(s.nextLine());\r\n if (i > 0)\r\n System.out.println(\"Positive i\");\r\n else if (i == 0)\r\n System.out.println(\"i=0\");\r\n else\r\n System.out.println(\"Negative i\");\r\n }", "public boolean check(int value);", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}", "public static void checkValue(long candidate) throws ArithmeticException {\n if (candidate < MIN_INT_VALUE) {\n throw new ArithmeticException();\n }\n if (candidate > MAX_INT_VALUE) {\n throw new ArithmeticException();\n }\n }", "private boolean verifyInput() {\r\n double comp = 0;\r\n try {\r\n comp = Double.parseDouble(compensation.getText());\r\n } catch (NumberFormatException e) {\r\n showAlert(Alert.AlertType.ERROR, \"Error while trying to send reply\", \"Compensation must be a number.\");\r\n return false;\r\n }\r\n\r\n if(comp < 0 || comp > MAX_COMPENSATION) {\r\n showAlert(Alert.AlertType.ERROR, \"Error while trying to send reply\", \"Compensation must be between 0 and \" + MAX_COMPENSATION + \".\");\r\n return false;\r\n }\r\n\r\n if(reply.getText().isEmpty()) {\r\n showAlert(Alert.AlertType.ERROR, \"Error while trying to send reply\", \"Reply body empty.\");\r\n return false;\r\n }\r\n\r\n if(complaintListView.getSelectionModel().isEmpty()) {\r\n showAlert(Alert.AlertType.ERROR, \"Error while trying to send reply\", \"No complaint selected.\");\r\n return false;\r\n }\r\n\r\n if(complaintListView.getSelectionModel().getSelectedItem().getStatus() != Complaint.Status.FILED) {\r\n showAlert(Alert.AlertType.ERROR, \"Error while trying to send reply\", \"Cannot reply to an already closed complaint.\");\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "private static boolean isPositive(int ID) {\n return ID > 0;\n }", "private Integer promptPositiveInteger(String message) {\n\t\tboolean done = false;\n\t\tint result = -1;\n\t\twhile (!done) {\n\t\t\tdone = true;\n\t\t\tString s = JOptionPane.showInputDialog(\n\t\t\t\t\t_frame,\n\t\t\t\t\tmessage,\n\t\t\t\t\t_frame.getTitle(),\n\t\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (s == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(s);\n\t\t\t\tif (result < 0) {\n\t\t\t\t\tdone = false;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tdone = false;\n\t\t\t}\n\n\t\t\tif (!done) {\n\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t_frame,\n\t\t\t\t\t\t\"Invalid Input!\",\n\t\t\t\t\t\t_frame.getTitle(),\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static int inputValidation(Scanner sc) {\n int number;\n do {\n System.out.println(\"enter Postive Number: \");\n while (!sc.hasNextInt()) {\n System.out.println(\"This is not a nuber.Please Enter Positive Number: \");\n sc.next();\n }\n number = sc.nextInt();\n } while (number < 0);\n\n return number;\n }", "@Test\n public void testIntProperty() throws JMSException {\n int messageCount = responseMessage.getIntProperty(\n ServerListener.MESSAGE_COUNT);\n\n assertTrue(\"The message count should've been equal to or greater than\" +\n \" 1\", (messageCount >= 1));\n }", "public void verificaNulo(Object parametro, String mensagem) {\n if (parametro == null) {\n throw new NullPointerException(this.msgGeral + mensagem);\n }\n }", "private void validaDados(int numeroDePacientes, double gastosEmCongressos) throws Exception{\n\t\tif(numeroDePacientes >= 0) {\n\t\t\tthis.numeroDePacientes = numeroDePacientes;\n\t\t}else {\n\t\t\tthrow new Exception(\"O numero de pacientes atendidos pelo medico nao pode ser negativo.\");\n\t\t}\n\t\tif(gastosEmCongressos >= 0) {\n\t\t\tthis.gastosEmCongressos = gastosEmCongressos;\n\t\t}else {\n\t\t\tthrow new Exception(\"O total de gastos em congressos do medico nao pode ser negativo.\");\n\t\t}\n\t}", "public void checkInput(TextField number) {\r\n\t\ttry {\r\n\t\t\tlong num = Long.parseLong(number.getText());\r\n\t\t\tif (num < 0) \t\t\t\t\t// ako je negativan broj, pretvorit cemo ga u pozitivan\r\n\t\t\t\tnum = Math.abs(num);\r\n\t\t\tif (isValid(num)) \r\n\t\t\t\tscene2();\r\n\t\t}\r\n\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\talert(\"Wrong input, try again!\");\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}", "public void Verify_UnfortunatelyMessage() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Checkavailability);\r\n\t\tThread.sleep(3000);\r\n\t\tif(showRoomInfo.getText().contains(\"Unfortunately, there are no available rooms.\")||(showRoomInfo.getText().contains(\"Or try our partner hotels below.\"))||(showRoomInfo.getText().contains(\"Please try adjusting your search criteria.\")))\r\n\t\t{\r\n\t\t\t//System.out.println(\"After Closing the room/rate using House Control ,rooms are not showing in Booking Engine \");\r\n\t\t\tlogger.info(\"After Closing the room/rate using House Control ,rooms are not showing in Booking Engine \");\r\n\t\t\ttest.log(Status.PASS, \"After Closing the room/rate using House Control ,rooms are not showing in Booking Engine \");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlogger.error(\"Room/rate are not closed properly in Admin\");\r\n\t\t\ttest.log(Status.FAIL, \"Room/rate are not closed properly in Admin\");\r\n\t\t}\r\n\t}", "@Override\n public boolean valida() {\n mediatorCredito m = new mediatorCredito();\n try{\n BigInteger dit = new BigInteger(JOptionPane.showInputDialog(null,\"Digite su número de \"\n + \"tarjeta de crédito\",\"\"));\n String pag = JOptionPane.showInputDialog(null,\"Ingrese su medio de pago: (Visa, master Card\"\n + \", American Express)\",\"\");\n if(m.verificarForm(dit, pag)==false){\n JOptionPane.showMessageDialog(null,\"ups, el medio de pago o la tarjeta de crédito no es válido\"\n ,\"Error\",0);\n }\n return m.verificarForm(dit, pag);\n \n }catch(Exception e){\n JOptionPane.showMessageDialog(null,\"Acción cancelada\",\"Advertencia\",2);\n return false;\n }\n }", "public boolean isValid(int number)", "private boolean checkOdometerNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 8)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "public boolean checkNumberIsZero(int number){\n\t\tif(number==0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private boolean partIsValid(){\r\n int min = Integer.parseInt(partMin.getText());\r\n int max = Integer.parseInt(partMax.getText());\r\n int inventory = Integer.parseInt(partInv.getText());\r\n if(max < min || min >= max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Error: Change Max and Min Values\");\r\n alert.setContentText(\"Change Max value to be greater than min\");\r\n alert.showAndWait();\r\n return false;\r\n } else if(max < inventory || min > inventory){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Error: Invalid Inventory number\");\r\n alert.setContentText(\"Inventory must be less than max and more than min\");\r\n alert.showAndWait();\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Order(2)\n\t\t@Test\n\t\tpublic void getInvalidMessage() throws IOException, ParseException {\n\t\t\tboolean response = Requests.sendGETBoolReturn(Requests.MESSAGE_URL, INVALID_MESSAGE_ID);\n\t\t\t\n\t\t\t//expect that response == false :: Request should not return a 200\n\t\t\tassertFalse(response);\n\t\t}", "public final boolean isValidAmount(long amount) {\n return amount >= 0;\n }", "@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }", "public static int inputMes(){\r\n Scanner sc = new Scanner(System.in);\r\n \r\n // creamos while-loop, si el formato del numero es incorrecto la pregunta se repute\r\n while(true){\r\n System.out.print(\"Intoduce un mes en formato numerico: \");\r\n \r\n // ponems InputMismactException si el usuario no introduce el numero entero\r\n try{\r\n mes = sc.nextInt();\r\n return mes;\r\n }\r\n \r\n catch(InputMismatchException ex){\r\n System.out.println(\"Formato incorrecto!\");\r\n sc.nextLine();\r\n } \r\n }\r\n }", "public static boolean check(double arg) {\n if (!(Double.isInfinite(arg))) {\n return true;\n } else {\n System.out.println(\"Warring! You have entered a very large number!\");\n return false;\n }\n }", "protected abstract int isValidInput();", "@Test\n public void nao_deve_aceitar_tamanho_telefone_fixo_com_mais_de_9_numeros() {\n telefone.setTamanho(10);\n assertFalse(isValid(telefone, \"O tamanho do telefone não pode ser maior que 9.\", Find.class));\n }", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindMinesNegative2() {\r\n\t\tauthenticate(\"viewer1\");\r\n\r\n\t\tbrotherhoodService.findMines();\r\n\r\n\t\tunauthenticate();\r\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindMinesNegative1() {\r\n\t\tauthenticate(\"admin\");\r\n\r\n\t\tbrotherhoodService.findMines();\r\n\r\n\t\tunauthenticate();\r\n\t}", "private void checkAnnoRateo() {\n\t\tif(req.getRateo().getAnno()>=primaNota.getBilancio().getAnno()){\n\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"L'anno del Rateo deve essere minore dell'anno della prima nota di partenza.\"));\n\t\t}\n\t}", "@Order(1)\n\t\t@Test\n\t\tpublic void sendMessageInvalidFromAndTo() throws IOException, ParseException {\n\t\t\t boolean response = Requests.createMessageBoolReturn(JSONUtils.createMessageObject(INVALID_USER_ID, INVALID_USER_ID, \"Test message\"));\n\t\t\t assertFalse(response);\n\t\t\t \n\t\t\t \n\t\t}", "public void testGetTrackStatusForNegative() throws Exception {\r\n try {\r\n target.getTrackStatus(-10);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }", "boolean isZero();", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.passwordInput(\"null\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private boolean checkIsValid(BankClient client, Message message) {\n int lastDigit = message.getMessageContent() % BASE_TEN;\n int amount = message.getMessageContent() / BASE_TEN;\n if (lastDigit <= DEPOSIT_WITHDRAWAL_FLAG) {\n return amount <= client.getDepositLimit();\n } else {\n return amount <= client.getWithdrawalLimit();\n }\n }", "public LessThanZeroException() {}" ]
[ "0.6769921", "0.6393826", "0.6345837", "0.6290215", "0.5952778", "0.595081", "0.5884153", "0.5845087", "0.5813885", "0.5811954", "0.57944995", "0.57857305", "0.57644975", "0.5763043", "0.5743737", "0.5702283", "0.562739", "0.55920863", "0.5578951", "0.5558609", "0.5557244", "0.5536069", "0.5534185", "0.5533624", "0.55209285", "0.5515932", "0.55158097", "0.54973465", "0.5494126", "0.5475498", "0.5471727", "0.5455022", "0.54493016", "0.5448594", "0.54118526", "0.53940845", "0.53861904", "0.5379521", "0.53787225", "0.5376761", "0.5358647", "0.5354809", "0.5338225", "0.5333011", "0.5332586", "0.53280973", "0.53253967", "0.53167176", "0.5311431", "0.5306903", "0.5292215", "0.5290793", "0.5273476", "0.52703214", "0.5247551", "0.5242932", "0.5231459", "0.5230108", "0.52292806", "0.52207905", "0.521809", "0.5213777", "0.51950157", "0.51948345", "0.5193244", "0.51866156", "0.51835746", "0.51754457", "0.516264", "0.5143199", "0.51314014", "0.51272964", "0.5126963", "0.5120089", "0.5119956", "0.5116146", "0.5113336", "0.51063985", "0.51034194", "0.51020074", "0.5095925", "0.5089416", "0.5086556", "0.5079688", "0.507783", "0.50773567", "0.50766575", "0.50694895", "0.5063249", "0.50622666", "0.5059786", "0.5058521", "0.5053607", "0.5053272", "0.50528115", "0.504582", "0.50448734", "0.50437826", "0.50419253", "0.5039648" ]
0.7154615
0
Verifica se um mapa contem a chave passada. Se tiver, lanca um erro com a mensagem passada.
public void verificaContem(Object chave, Map<?, ?> mapa, String mensagem) { if (mapa.containsKey(chave)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaNaoContem(Object chave, Map<?, ?> mapa, String mensagem) {\n if (!mapa.containsKey(chave)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "public MapMessage validateMap(String mapInfo) {\r\n\r\n\t\t// Processing continents - Whether the continents are available in the .map file\r\n\t\tboolean isValidContinents = false;\r\n\t\tisValidContinents = processContinents(mapInfo);\r\n\t\tif (isValidContinents) {\r\n\t\t\t// Processing territories - Whether the territories are available in the .map\r\n\t\t\t// file\r\n\t\t\tboolean isValidTerritories = false;\r\n\t\t\tisValidTerritories = processTerritories(mapInfo);\r\n\t\t\tif (isValidTerritories) {\r\n\t\t\t\tboolean addAdjacentTerritories = false;\r\n\t\t\t\t// Adding adjacent territories\r\n\t\t\t\taddAdjacentTerritories = addAdjacentTerritories(mapInfo, territoriesArray);\r\n\t\t\t\tif (addAdjacentTerritories) {\r\n\t\t\t\t\t// connecting territories to continents\r\n\t\t\t\t\tboolean valid = false;\r\n\t\t\t\t\tvalid = territoriesToContinents();\r\n\t\t\t\t\tif (valid) {\r\n\t\t\t\t\t\tboolean isContinentConnected = true;\r\n\t\t\t\t\t\tfor (int i = 0; i < continentArray.size(); i++) {\r\n\t\t\t\t\t\t\tisContinentConnected = validateMap(continentArray.get(i).getTerritories(), \"CONTINENT\");\r\n\t\t\t\t\t\t\tif (!isContinentConnected) {\r\n\t\t\t\t\t\t\t\tmessage.append(\"The continent \" + continentArray.get(i).getName()\r\n\t\t\t\t\t\t\t\t\t\t+ \" is not a connected subgraph\");\r\n\t\t\t\t\t\t\t\tisContinentConnected = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (isContinentConnected) {\r\n\t\t\t\t\t\t\tboolean isMapConnected = false;\r\n\t\t\t\t\t\t\tisMapConnected = validateMap(territoriesArray, \"MAP\");\r\n\t\t\t\t\t\t\tif (isMapConnected) {\r\n\t\t\t\t\t\t\t\tisValidMap = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tisValidMap = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tisValidMap = false;\r\n\t\t\t\t}\r\n\t\t\t} else { // else of isValidTerritories\r\n\t\t\t\tisValidMap = false;\r\n\t\t\t}\r\n\t\t} else { // else of isValidContinents\r\n\t\t\tisValidMap = false;\r\n\t\t}\r\n\t\tmap.setContinents(continentArray);\r\n\t\tmap.setTerritories(territoriesArray);\r\n\t\tMapMessage mapMessage = new MapMessage(map, isValidMap, message);\r\n\r\n\t\treturn mapMessage;\r\n\t}", "public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }", "public boolean cambiarClave(String pass) {\n\t\tConnection conexion;\n\n\t\ttry {\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://localhost/keyring\", \"root\" ,\"\");\n\t\t\tStatement sql = conexion.createStatement();\n\t\t\tint resultado;\n\t\t\tString clave = getClave();\n\n\t\t\tif (clave.length() > 0) {\n\t\t\t\tresultado = sql.executeUpdate(\"UPDATE password SET Password='\" + pass + \"'\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tresultado = sql.executeUpdate(\"INSERT INTO password (Password) VALUES ('\" + pass + \"')\");\n\t\t\t}\n\n\t\t\tif (resultado > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public boolean saveMap()\n {\n // This should probably write all the data to a temporary file, then copy it over the old one at the end\n try {\n \n StringBuffer\t\tbuf = new StringBuffer();\n FileWriter\t\t\tmapWriter;\n \n if (!file.canWrite())\n {\n ErrorHandler.displayError(\"Could not write to map file. Maybe it's locked.\", ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n \n file.createNewFile();\n mapWriter = new FileWriter(file);\n \n // Write the size in x, y\n buf.append(map.getSizeX());\n buf.append(\" \");\n buf.append(map.getSizeY());\n buf.append(\"\\n\");\n \n // Write all of the data\n for (int y = 0; y < map.getSizeY(); y++)\n {\n for (int x = 0; x < map.getSizeX(); x++)\n {\n buf.append(MUXHex.terrainForId(map.getHexTerrain(x, y)));\n buf.append(map.getHexAbsoluteElevation(x, y));\n }\n \n buf.append(\"\\n\");\n }\n \n // Now write it to the file\n mapWriter.write(buf.toString());\n mapWriter.close();\n \n // Musta been okay...\n map.setChanged(false);\n \n // Change our name\n setTitle(file.getName() + sizeString());\n \n return true;\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not write data to map file:\\n\" + e, ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n }", "public String validateMap() {\n\n String returnString = \"SUCCESS\";\n if(validator.hasSingleCountryContinent(new ArrayList<>(gameMap.getContinentHashMap().values()))) {\n return \"One of the continents have only one country or less\";\n }\n if(validator.containsLoop(new ArrayList<>(gameMap.getCountryHashMap().values()))) {\n return \"One of the country is connected to itself\";\n }\n for(GameCountry country : gameMap.getCountryHashMap().values()) {\n if(!validator.hasNeighbor(country)) {\n returnString = \"ONE OR MORE COUNTRIES HAVE NO NEIGHBOURS\";\n break;\n }\n if(!validator.hasValidNumberOfNeighbors(country)) {\n returnString = \"INVALID NUMBER OF NEIGHBOURS\";\n break;\n }\n }\n if(!validator.hasValidNumberOfContinents(new ArrayList<>(gameMap.getContinentHashMap().values()))) {\n returnString = \"NUMBER OF CONTINENTS IS NOT VALID\";\n }\n if(!validator.hasValidNumberOfCountries(new ArrayList<>(gameMap.getCountryHashMap().values()))) {\n returnString = \"INVALID NUMBER OF COUNTRIES\";\n }\n graphUtilObject = this.buildGraph();\n if(!validator.isWholeMapConnected(graphUtilObject)) {\n returnString = \"THE WHOLE MAP IS NOT CONNECTED\";\n }\n for(GameContinent continent : gameMap.getContinentHashMap().values()) {\n if(!(validator.isContinentFullyLinked(continent,graphUtilObject))) {\n returnString = \"ONE OR MORE CONTINENTS ARE NOT CONNECTED WITHIN THEMSELVES\";\n }\n }\n return returnString;\n }", "private boolean wrongPositioning(int x, int y, LoadedMap map) {\n boolean ans = false;\n if(hasAbove(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))){\n ans = true;\n }else if (hasBelow(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))) {\n ans = true;\n }\n return ans;\n }", "public boolean isPass() {\n return playerMove != null && playerMove.getTypeOfChoice() == TypeOfChoiceEnum.PASS;\n }", "public boolean verifyCoordMissile(IPlayer opponentPlayer, String missileCoord) {\n\t\t\tif (goodCoordinatesForm(missileCoord) ) {\r\n\t\t\t\tCoordinates coord = new Coordinates(missileCoord);\r\n\t\t\t\tif (inMap(opponentPlayer,coord) ) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\telse { System.out.println(\"Coordinates out of map, try again it should be like A-2\");\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse { System.out.println(\"Wrong coordinates writing, try again it should be like A-2\");\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "boolean hasPass();", "boolean hasPass();", "private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }", "void willChooseGameMap() throws RemoteException;", "void pass() {\r\n if (m1 >=35 && m2>=35 && m3>=35) {\r\n System.out.println(\"pass\");\r\n } else {\r\n System.out.println(\"fail\");\r\n }\r\n }", "public boolean win(){\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n if(map[row][col].getSafe() == false && (map[row][col].getVisual().equals(square) || map[row][col].getVisual().equals(bomb))){\r\n return false;\r\n }\r\n if(map[row][col].getSafe() == true && map[row][col].getVisual().equals(flag)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static boolean checkInputTextMap(int index, int gridPaneSize, Map<Integer, Boolean> map){\n for (int i = index; i <gridPaneSize ; i = i+3) {\n if (!map.get(i))\n return false;\n }\n return true;\n }", "@Test\n public void testMapErreur() {\n System.out.println(\"mapErreur\");\n Map<String, Object> map = new HashMap<String, Object>();\n boolean condition = false;\n String nomErreur = \"error\";\n String messageErreur = \"Erreur\";\n AbstractObjetAffaire.mapErreur(map, condition, nomErreur, messageErreur);\n assertTrue(map.isEmpty());\n map = new HashMap<String, Object>();\n condition = true;\n nomErreur = \"error\";\n messageErreur = \"Erreur\";\n AbstractObjetAffaire.mapErreur(map, condition, nomErreur, messageErreur);\n assertFalse(map.isEmpty());\n }", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) {\n\t\t\tif (datosValidados())\n\t\t\t\tif (componentes.gs.componentes.JConfirmDialog.rptaConfirmDialog(this,\n\t\t\t\t\t\t\"Esta seguro que desea afectar la página?\")) {\n\t\t\t\t\tVariablesInventario.vNumPag = cmbPagina.getSelectedItem()\n\t\t\t\t\t\t\t.toString().trim();\n\t\t\t\t\tcerrarVentana(true);\n\t\t\t\t}\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n\t}", "public boolean ok ( int x, int y, int p ) {\n return( (m[x][y] & TWO[p]) == TWO[p] );\n }", "private void visitor(Map map, int row, int column) throws NotValidCellException {\n try {\n // controllo le diagonali non visitati rispetto alla mia posizione attuale\n if(!map.isEmptyCell(row, column)) { //se la cella non è vuota,\n if (row < 1 && column < 1 ) { // controlla alto sinistra della mappa\n downrightcontrol(map, row, column); //controlla basso destra rispetto alla mia posizione attuale\n } else if (row > map.numRow() - 2 && column < 1 ) { //controlla basso sinistra sulla mappa\n uprightcontrol(map, row, column); //controlla alto destra rispetto alla mia posizione attuale\n } else if (row > 0 && row <= map.numRow() - 2 && column < 1) { //controlla centrale sinistra della mappa\n uprightcontrol(map, row, column);\n downrightcontrol(map, row, column);\n } else if (row < 1 && column > map.numColumn() - 2) { //controlla alto destra della mappa\n downleftcontrol(map, row, column); //controlla basso sinistra rispetto alla mia posizione attuale\n } else if (row > map.numRow() - 2 && column > map.numColumn() - 2) { //controlla basso destra della mappa\n upleftcontrol(map, row, column); //controlla alto sinistra rispetto alla mia posizione attuale\n } else if (row > 0 && row <= map.numRow() - 2 && column > map.numColumn() - 2) { //controlla centrale destra della mappa\n upleftcontrol(map, row, column);\n downleftcontrol(map, row, column);\n } else if (row < 1 && column > 0 && column <= map.numColumn() - 2) { //controlla alto centro della mappa\n downleftcontrol(map, row, column);\n downrightcontrol(map, row, column);\n } else if (row > map.numRow() - 2 && column > 0 && column <= map.numColumn() - 2) { //controlla basso centrale della mappa\n upleftcontrol(map, row, column);\n uprightcontrol(map, row, column);\n } else if (row > 0 && row < map.numRow() - 1 && column > 0 && column < map.numColumn() - 1) { //controlla centro mappa\n upleftcontrol(map, row, column);\n uprightcontrol(map, row, column);\n downleftcontrol(map, row, column);\n downrightcontrol(map, row, column);\n }\n }\n } catch (NotValidCellException e) {\n LOGGER.log(Level.SEVERE, e.toString()+\"\\nvisitor method in class ColorDiagonalStrategy\", e);\n throw new NotValidCellException();\n }\n }", "@Override\r\n public void EditMap() throws Exception {\r\n printInvalidCommandMessage();\r\n }", "public boolean IsSafe(int rowIndex, int columIndex) {\n for (int i = 0; i < this.SIZE_OF_CHESS_BOARD; i++) {\n //this.list_cells[rowIndex][i].setBackground(Color.red);\n if (maps[rowIndex][i] == true) {\n return false;\n }\n }\n\n //check in a colums\n for (int i = 0; i < this.SIZE_OF_CHESS_BOARD; i++) {\n //this.list_cells[i][columIndex].setBackground(Color.red);\n if (maps[i][columIndex] == true) {\n return false;\n }\n }\n\n //check in a diagonal line\n for (int x = -(this.SIZE_OF_CHESS_BOARD - 1); x < this.SIZE_OF_CHESS_BOARD; x++) {\n for (int y = -(this.SIZE_OF_CHESS_BOARD - 1); y < this.SIZE_OF_CHESS_BOARD; y++) {\n int newRowIndex = x + rowIndex;\n int newColumIndex = y + columIndex;\n if (newColumIndex >= 0 && newColumIndex < this.SIZE_OF_CHESS_BOARD && newRowIndex >= 0 && newRowIndex < this.SIZE_OF_CHESS_BOARD) {\n if (newColumIndex + newRowIndex == columIndex + rowIndex || columIndex - rowIndex == newColumIndex - newRowIndex) {\n // System.out.println(newRowIndex + \",\" + newColumIndex);\n if (maps[newRowIndex][newColumIndex] == true) {\n return false;\n }\n //this.list_cells[newRowIndex][newColumIndex].setBackground(Color.red);\n }\n }\n }\n }\n return true;\n }", "private boolean checkPassAndPin() {\n if (\"\".equals(pass.getText())) {\n infoBox(\"Passphrase cannot be left blank while saving or loading a file! Please try again!\", \"WARNING!\");\n return false;\n }\n try {\n thePin = Integer.parseInt(myPin.getText());\n if (thePin > 99999 || thePin < 1000) {\n infoBox(\"PIN must be between 1000 and 99999!\", \"Uh oh:\");\n return false;\n }\n } \n catch (NumberFormatException e) {\n infoBox(\"PIN cannot be left blank while saving or loading a file! Please try again!\", \"WARNING!\");\n return false;\n }\n \n //Generate a key from the passphrase, the PIN is global and is picked up from generation()\n generateSecurePassword(pass.getText());\n return true;\n }", "public boolean isPass() \n{\n\tif (this.pass) \n\t{\n\t\treturn true;\n\t}\n\telse \n\t{\n\t\treturn false;\n\t}\n}", "private void chkKeyPressed(KeyEvent e) {\r\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\r\n cerrarVentana(false);\r\n } else if (UtilityPtoVenta.verificaVK_F11(e)) {\r\n aceptaCantidadIngresada(\"VK_F11\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n \r\n \r\n } else if (UtilityPtoVenta.verificaVK_F12(e)) {\r\n if (vIndTieneSug) {\r\n aceptaCantidadIngresada(\"VK_F12\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n }\r\n }\r\n }", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "@Override\n\tpublic boolean doVerify(ProdIterator iterator, Map<String, String> map) {\n\t\treturn false;\n\t}", "private void chkKeyPressed(KeyEvent e) {\n \n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) \n { \n FarmaVariables.vAceptar = true;\n this.setVisible(false);\n this.dispose();\n e.consume();\n //cerrarVentana(true); \n } \n \n else if (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) \n {\n if (datosValidados()) {\n try {\n ingresarCantidad();\n FarmaUtility.aceptarTransaccion();\n cerrarVentana(false);\n } catch (SQLException sql) {\n FarmaUtility.liberarTransaccion();\n log.error(\"\",sql);\n FarmaUtility.showMessage(this, \n \"Ocurrió un error al registrar la cantidad : \\n\" +\n sql.getMessage(), txtCruce);\n cerrarVentana(false);\n }\n }\n }\n }", "@Test\n public void testIsValidonValidMap() {\n boolean expResult = true;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }", "private boolean isValidMove(int pressedHole) {\n return getPlayerHole(pressedHole).getKorgools() != 0;\n }", "private boolean canCaptureEnPassant(Board board, Point pt) {\n Piece temp = board.getPieceAt(pt);\n if(temp != null)\n if (temp instanceof Pawn && temp.getColor() != this.color)\n if (((Pawn)temp).enPassantOk)\n return true;\n return false;\n }", "boolean isLegal(Square from, Square to) {\r\n Move move = mv(from, to);\r\n if (move == null) {\r\n System.out.println(\"Invalid Move\");\r\n return false;\r\n }\r\n if (to == kingPosition() || map.get(to) != EMPTY) {\r\n System.out.println(\"Invalid Move\");\r\n return false;\r\n }\r\n List<Move> legal = legalMoves(map.get(from));\r\n return legal.contains(move);\r\n }", "public boolean checkCapture(Move move, Piece board[][]) {\n\n if (board[move.getEnd_column()][move.getEnd_row()] != null) {\n if (board[move.getEnd_column()][move.getEnd_row()].getColor() == getColor()) {\n return false;\n }\n //adds the taken piece to move-object\n move.setTakenPiece(board[move.getEnd_column()][move.getEnd_row()]);\n }\n\n return true;\n }", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "@Override\r\n public void ShowMaps() throws Exception {\r\n printInvalidCommandMessage();\r\n }", "public static boolean checkUserPass(String username, String password){\n getCurrentUsers();\n if(userPasses.containsKey(username)){\n System.out.println(\"bo\");\n if (userPasses.get(username).equals(password)){\n return true;\n }\n }\n System.out.println(username +\"|\"+password);\n return false;\n }", "@Test\n public void testIsValidonContinentNotConnectedMap() {\n // Create a new continent ContinentC which is not connected\n mapModel.addContinent(\"ContinentC\", 3);\n mapModel.getGraphTerritories()\n .get(\"TerritoryA\").setContinentName(\"ContinentC\");\n mapModel.getGraphTerritories()\n .get(\"TerritoryE\").setContinentName(\"ContinentC\");\n\n boolean expResult = false;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }", "@Override\n public boolean perform(Video video)\n {\n final int offset = (video.copper.word1 & 0b111111110);\n final int adr = 0xDFF000 + offset;\n if ( offset > 0x3e && (offset >= 0x80 || video.copper.copperDanger) )\n {\n video.memory.writeWord( adr, video.copper.word2 );\n } else {\n // LOG2.warn(\"Invalid copper write to register \"+Misc.hex(adr));\n }\n return true;\n }", "Boolean checkPass(Customer customer, String pass);", "boolean isLegal(String move) {\n int[][] theStatusBoard;\n if (_playerOnMove == ORANGE) {\n theStatusBoard = _orangeStatusBoard;\n } else {\n theStatusBoard = _violetStatusBoard;\n }\n Pieces thispiece = new Pieces();\n String piecename = move.substring(0, 1);\n int col = getCoordinate(move.substring(1, 2));\n int row = getCoordinate(move.substring(2, 3));\n int ori = Integer.parseInt(move.substring(3, 4));\n int[][] initialPositions = thispiece.getInitialPositions(piecename);\n int[][] finalPositions = thispiece.processPositions(initialPositions, ori);\n int depth = finalPositions.length;\n int length = finalPositions[0].length;\n\n if (row + depth - 1 > 13 || col + length - 1 > 13) {\n System.out.println(\"Your move makes your piece out of the board, try again!\");\n return false;\n }\n\n boolean has1 = false;\n boolean no2 = true;\n\n int i, j;\n for (i = 0; i < depth; i++) {\n for (j = 0; j < length; j++) {\n if (finalPositions[i][j] == 1) {\n if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 1) {\n has1 = true;\n } else if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 2) {\n return false;\n }\n }\n }\n }\n System.out.println(\"has1: \" + has1);\n return has1;\n }", "public boolean isValid() {\n return !(mSourceMap.isEmpty() || mDestMap.isEmpty());\n }", "void pointCheck(LatLng point, boolean valid);", "private boolean validateMove(Move m, int v, Graph g, Board B) {\n\n int final_dest_R = 0, final_dest_C = 0;\n\n final_dest_R = (m.getY() + (v / B.width));\n final_dest_C = (m.getX() + (v % B.width));\n\n\n if (final_dest_R < B.height && final_dest_R >= 0\n && final_dest_C < B.width && final_dest_C >= 0) {\n\n if (!B.a.get(final_dest_R).get(final_dest_C).Reachable) {\n return false;\n }\n\n return true;\n }\n\n\n return false;\n }", "public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}", "boolean pass();", "@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private boolean passTurn() {\n\n\t\t// Return Boolean\n\t\tboolean ableToPassTurn = false;\n\n\t\tint playerOnTurn;\n\n\t\t// Get the playerID who is on turn\n\t\tplayerOnTurn = pTSM.playerOnTurn(gameID);\n\n\t\t// Check if the ID is equal to the playerID\n\t\ttry {\n\t\t\tif (playerOnTurn == this.userID && modelClass.gameIsWon(pTSM.getUsername(userID), gameID)) {\n\t\t\t\tthis.message = \"Het is niet jou beurt\";\n\t\t\t\tableToPassTurn = true;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif (playerOnTurn == this.userID) {\n\t\t\t\tableToPassTurn = true;\n\t\t\t}\n\t\t}\n\n\n\t\treturn ableToPassTurn;\n\t}", "private boolean SecuenciaValidacion() {\n String cuenta = jTextFieldUser.getText().trim();\n String contrasenia = new String(jPasswordFieldPswd.getPassword());\n\n JDialogSplash jDialogSplash = new JDialogSplash(this, ModalityType.APPLICATION_MODAL);\n jDialogSplash.setLocationRelativeTo(this);\n jDialogSplash.setVisible(true);\n\n if (cuenta.equals(id) && contrasenia.equals(pass)) {\n LOG.info(\"Logging successful\");\n return true;\n } else {\n LOG.info(\"Logging failed\");\n return false;\n }\n }", "public static void pass(String message) {\r\n\t\tExtentManager.getExtentTest().pass(message);\r\n\t}", "protected boolean checkWin(int pno) {\n\t\tint[] pos = playerPosition.get(pno);\n\t\tif (collectedGold.get(pno) >= map.getWin() && \n\t\t\t\tmap.lookAtTile(pos[0], pos[1]) == 'E') {\n\t\t\tremovePlayer(pno);\n\t\t\tSystem.out.println(\"Client \" + pno + \" has escaped!\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void pass(String message) {\r\n\t\treport(PASSED, message, null);\r\n\t}", "public static void main(String[]args){\r\n \r\n \r\n String clave=\"Jeanpool\";\r\n String pass=\"\";\r\n while(clave.equals(pass) == false){\r\n pass=JOptionPane.showInputDialog(\"Introduce la contraseña , porfavor\");\r\n if(clave.equals(pass)==false){\r\n System.out.println(\"Contraseña incorrecta\");\r\n }\r\n }\r\n System.out.println(\"Contraseña correcta. Acceso permitido\");\r\n \r\n \r\n }", "public boolean validateProblem(String[][] map, String type, String adj){\r\n return ctrlDomain.validateProblem(map, type, adj);\r\n }", "public boolean stepOn(Player player) {\n //System.out.println(\"Nem léphetsz rá a MapElementre.\");\n return false;\n }", "@Test\n public void test12() { \n Board board12 = new Board();\n board12.put(1,3,1);\n \n assertFalse(board12.checkWin());\n }", "public boolean checkWin() throws Exception {\r\n\t\treturn getOcean().checkWin();\r\n\t}", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) {\n\t\t\tif(tblListaDetallePedido.getRowCount() > 0)\n {\n if(!validaChecksTable())\n {\n FarmaUtility.showMessage(this,\"No es posible realizar la operación. Existen productos sin selección de lotes.\",tblListaDetallePedido);\n return;\n }\n if(componentes.gs.componentes.JConfirmDialog.rptaConfirmDialog(this,\"Está seguro de generar el pedido institucional?\"))\n cerrarVentana(true);\n }\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n }", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "@Override\n public boolean canExit()\n {\n final PrimaryFrame primary = Main.getPrimaryFrameInstance();\n DefaultComboBoxModel cbm = primary.getMazeInfoModel().getMazeInfoComboBoxModel();\n for (int i = 0; i < cbm.getSize(); i++)\n {\n MazeInfo mi = (MazeInfo) cbm.getElementAt(i);\n if (mi.isDirty())\n {\n int result;\n result = JOptionPane.showConfirmDialog(this,\n \"Would you like to save \\\"\" +\n mi.getName() +\n \"\\\"\",\n \"Save Maze?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (result == JOptionPane.YES_OPTION)\n mi.saveMaze();\n else if (result != JOptionPane.NO_OPTION)\n return false; // Abort exit if canceled.\n }\n }\n return true;\n }", "public static Boolean checkPass(String password) {\n // TODO: integrate with scs.ubbcluj.ro, send a dummy POST and check the response code\n return true;\n }", "public boolean checkGameOver(){\n\t\tfor(int x = 0; x < this.tile[3].length; x++){\n\t\t if(this.isFilled(3, x)){\n\t\t \tSystem.out.println(\"game over\");\n\t\t return true;\n\t\t }\n\t\t}\n\t\treturn false;\n\t}", "public boolean isValidMove(MapTile[][] scanMapTiles, String direction) {\n\tint centerIndex = (scanMap.getEdgeSize() - 1) / 2;\n\tint x = centerIndex, y = centerIndex;\n\n\tswitch (direction) {\n\tcase \"N\":\n\t\ty = y - 1;\n\t\tbreak;\n\tcase \"S\":\n\t\ty = y + 1;\n\t\tbreak;\n\tcase \"E\":\n\t\tx = x + 1;\n\t\tbreak;\n\tcase \"W\":\n\t\tx = x - 1;\n\t\tbreak;\n\t}\n\n\tif (scanMapTiles[x][y].getTerrain() == Terrain.SAND || scanMapTiles[x][y].getTerrain() == Terrain.NONE\n\t\t\t|| scanMapTiles[x][y].getHasRover() == true)\n\t\treturn false;\n\n\treturn true;\n}", "public boolean compareXMLMap(Element destinationDataElement, Map<Integer, String> map, List<Check> ck, String messageTitle, String keyName, int keyId)\n\t{\n\t\tboolean result = true;\n\t\ttry{\t\t\t\t\n\t\t\tfor (int j=0; j<ck.size(); j++) \n\t\t\t{\n\t\t\t\tCheck check = ck.get(j);\n\t\t\t\tNode destinationNode = destinationDataElement.selectSingleNode(check.DestinationPath);\n\t\t\t\tString sqlValue = map.get(j+1);\n\t\t\t\tif (destinationNode != null)\n\t\t\t\t{\n\t\t\t\t\tif (!destinationNode.getText().trim().equals(sqlValue)) \n\t\t\t\t\t{\n\t\t\t\t\t\tlogger.error(messageTitle + \"\\t\" + keyName + \":\" + map.get(keyId) + \"\\t\" + check.DestinationPath + \" Actual Value isn't equal with Expected Value: \" + destinationNode.getText().trim() + \",\" + sqlValue);\n\t\t\t\t\t\tresult = false;\n\t\t\t\t\t}\n\t\t\t\t}else if (sqlValue != null )\n\t\t\t\t{\n\t\t\t\t\tif (!sqlValue.trim().equals(\"\")) \n\t\t\t\t\t{\n\t\t\t\t\t\tlogger.error(messageTitle + \"\\t\" + keyName + \":\" + map.get(keyId) + \"\\t\" + \"CUSIP \" + map.get(4) + \"\\t\" + check.DestinationPath + \" Actual Value isn't equal with Expected Value: null, \" + sqlValue);\n\t\t\t\t\t\tresult = false;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception ex) {\t\t\t\n\t\t\tlogger.error(messageTitle + \"\\t\" + \"CUSIP \" + map.get(4) + \"\\t\" + ex.toString());\n\t\t\tresult = false;\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "public static boolean validMove(String move, Person p, Board building )\n {\n Room[][] map = building.getMap();\n move = move.toLowerCase().trim();\n switch (move) {\n case \"n\":\n if (p.getxLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()-1][p.getyLoc()].getName());\n map[p.getxLoc()-1][p.getyLoc()].enterRoom(p,building);\n return true;\n }\n else\n {\n return false;\n }\n case \"e\":\n if (p.getyLoc()< map[p.getyLoc()].length -1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc() + 1].getName());\n map[p.getxLoc()][p.getyLoc() + 1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"s\":\n if (p.getxLoc() < map.length - 1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()+1][p.getyLoc()].getName());\n map[p.getxLoc()+1][p.getyLoc()].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"w\":\n if (p.getyLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc()-1].getName());\n map[p.getxLoc()][p.getyLoc()-1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n default:\n break;\n\n }\n return true;\n }", "void issueBoardingPass();", "public void exerciseTurn(Player_Remote vs) throws Exception {\n\t\tthis.getOcean().displayOcean();\r\n\t\tdo {\r\n\t\t\tthis.getIO().println(this.getName() + \" : Enter coordinates to hit\");\r\n\t\t\tgetLocation(this.getIO());\r\n\t\t} while (!checkValid(r, c)); // Repeat till valid coordinates are\r\n\t\t\t\t\t\t\t\t\t\t// entered\r\n\t\tif (this.getOcean().markHit(r, c, vs.getOcean())) { // Mark hit on ocean\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// matrix\r\n\t\t\tif (this.checkWin()) { // Check if player won\r\n\t\t\t\tthis.getIO().println(this.getName() + \" Wins!\");\r\n\t\t\t\tthis.getIO().println(\"Game over...\");\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\tswitchTurn(); // Flag is changed only if its a miss\r\n\t}", "@Override\n public void onMouseClicked(MapMouseEvent ev) {\n \tint respuesta= JOptionPane.showConfirmDialog(null, \"¿Desea guardar este punto?\", \"Confirmar\",JOptionPane.YES_NO_OPTION);\n \tif(respuesta==0) {\n \t\tString texto=JOptionPane.showInputDialog(null, \"Nombre del lugar\");\n \t\tDirectPosition2D p = ev.getWorldPos();\n System.out.println(p.getX() + \" -- \" + p.getY());\n drawMyPoint(p.getX(), p.getY(), map, texto);\n \t}\n \telse{\n \t\tSystem.out.println(\"Punto no guardado\");\n \t}\n \n }", "boolean aTeleport(int[] coor) {\n System.out.println(\"I found a teleport point at: \" + Arrays.toString(coor));\n if(teleport.size() == 0)return false;\n\n for (int i = 0; i < teleport.size(); i++) {\n int coorX = teleport.get(i)[0];\n int coorY = teleport.get(i)[1];\n\n int[] teleporter = new int[]{coorX,coorY};\n\n if(Arrays.equals(teleporter, coor))return true;\n\n }\n\n return false;\n }", "public boolean repOk(){\n\t\t\tif(board == null || layer < 0 || position < 0)\n\t\t\t\treturn false;\n\t\t\tif(layer >= 3 || position >= board.getLayerLength(layer))\n\t\t\t\treturn false;\n\n\t\t\treturn true;\n\t\t}", "public boolean put(String passw, E dato, String categoria)\n throws IllegalArgumentException, InvalidActionException, NullPointerException, IncorrectPasswordException{\n\n if(passw == null || dato == null || categoria == null) throw new NullPointerException();\n if(!this.MasterPassw.equals(passw)) throw new IncorrectPasswordException(\"Password Errata\");\n if(!categories.containsKey(categoria)) throw new InvalidActionException(\"Categoria non presente\");\n if(dato.GetCategory() != null){\n if(categories.get(categoria).getDati().contains(dato)) throw new InvalidActionException(\"dato gia' presente\");\n }\n categories.get(categoria).addDato(dato);\n dato.setCategory(categoria);\n return true;\n }", "private boolean checkMoveOthers(Pieces piece, Coordinates from, Coordinates to) {\n\t\t\t\t\n\t\t/* \n\t\t *il pedone: \n\t\t * -può andare dritto sse davanti a se non ha pedine\n\t\t * -può andare obliquo sse in quelle posizioni ha una pedina avversaria da mangiare\n\t\t * \n\t\t */\n\t\tif (piece instanceof Pawn) {\n\t\t\tif (from.getY() == to.getY()) {\n\t\t\t\tif(chessboard.at(to) == null)\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(chessboard.at(to) == 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\t\n\t\t//il cavallo salta le pedine nel mezzo\n\t\tif (piece instanceof Knight)\n\t\t\treturn true;\n\t\t\n\t\t//Oltre non andranno il: cavallo, il re ed il pedone.\n\t\t/*\n\t\t *Calcolo le posizioni che intercorrono tra il from ed il to escluse \n\t\t *ed per ogni posizione verifico se è vuota\n\t\t *-se in almeno una posizione c'è una pedina(non importa il colore), la mossa non è valida\n\t\t *-altrimenti, la strada è spianata quindi posso effettuare lo spostamento \n\t\t */\n\t\tArrayList<Coordinates> path = piece.getPath(from, to);\n\t\tfor (Coordinates coordinate : path) {\n\t\t\tif ( chessboard.at(coordinate) != null ){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public void onClick(View v) {\n valOldPassword(edPass1);\n valNewPassword(edPass2);\n if (valOldPassword(edPass1) && valNewPassword(edPass2)){\n String antPass = edPass1.getText().toString();\n String sigPass = edPass2.getText().toString();\n //Validar que la password anterior edPass1 sea correcta.\n valPassword(antPass);\n if (valPassword(antPass)){\n //Se cambiará la password\n dialogUpdatePass(sigPass);\n }else{\n Toast.makeText(CambiarPassword.this, \"La contraseña ingresada no es correcta\", Toast.LENGTH_SHORT).show();\n }\n }else{\n Toast.makeText(CambiarPassword.this, \"Debe llenar todos los campos\", Toast.LENGTH_SHORT).show();\n }\n }", "protected void succeed()\r\n {\r\n // inform user\r\n ((OwMainAppContext) getContext()).postMessage(getContext().localize(\"plug.owdocprops.OwFieldView.saved\", \"The changes have been applied.\"));\r\n }", "private boolean validatePlayerSettings(){\n if(playerAmount > 0) return true; //TODO: entfernen\n HashSet<Integer> hash = new HashSet<>();\n\n // check if alle colors different\n if (hash.add(P1color.getSelectedIndex()) && hash.add(P2color.getSelectedIndex()) && hash.add(P3color.getSelectedIndex())\n && hash.add(P4color.getSelectedIndex()) && hash.add(P5color.getSelectedIndex()) && hash.add(P6color.getSelectedIndex())){\n\n // check if all names different\n hash.clear();\n HashSet<String> hash2 = new HashSet<>();\n if (hash2.add(P1text.getText()) && hash2.add(P2text.getText()) && hash2.add(P3text.getText())\n && hash2.add(P4text.getText()) && hash2.add(P5text.getText()) && hash2.add(P6text.getText())){\n\n // check if all names are not empty\n hash2.clear();\n if (P1text.getText() != \"\" && P2text.getText() != \"\" && P3text.getText() != \"\" && P4text.getText() != \"\"\n && P5text.getText() != \"\" && P6text.getText() != \"\"){\n\n return true;\n }\n }\n }\n return false;\n }", "private void tryARender() {\n \t\tif (Minecraft.theMinecraft.thePlayer == null)\n \t\t\treturn;\n \t\ttry {\n \t\t\tif (MinimapConfig.getInstance().isEnabled() && map.isDirty(Minecraft.theMinecraft.thePlayer.posX, Minecraft.theMinecraft.thePlayer.posZ)) {\n \t\t\t\tmapCalc();\n \t\t\t\tmap.timer = 1;\n \t\t\t}\n \t\t} catch (RuntimeException e) {\n \t\t\tthrow e;\n \t\t} finally {\n \t\t\tmap.timer++;\n \t\t}\n \t}", "public void confirmar(){\r\n if((gato[0][0]==gato[0][1])&&(gato[0][0]==gato[0][2])&&(gato[0][0]!=' ')){\r\n //si encuentra alguna victoria la variable ganador agarra el simbolo del ganador 'o' o 'x'\r\n //para confirmar quien gano\r\n ganador=gato[0][0];\r\n //es lo que tomara tirar para salir del while si hay una victoria\r\n victoria=1; \r\n \r\n }\r\n\r\n if((gato[1][0]==gato[1][1])&&(gato[1][0]==gato[1][2])&&(gato[1][0]!=' ')){\r\n ganador=gato[1][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[2][0]==gato[2][1])&&(gato[2][0]==gato[2][2])&&(gato[2][0]!=' ')){\r\n ganador=gato[2][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][0]==gato[1][0])&&(gato[0][0]==gato[2][0])&&(gato[0][0]!=' ')){\r\n ganador=gato[0][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][1]==gato[1][1])&&(gato[0][1]==gato[2][1])&&(gato[0][1]!=' ')){\r\n ganador=gato[0][1];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][2]==gato[1][2])&&(gato[0][2]==gato[2][2])&&(gato[0][2]!=' ')){\r\n ganador=gato[0][2];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][0]==gato[1][1])&&(gato[0][0]==gato[2][2])&&(gato[0][0]!=' ')){\r\n ganador=gato[0][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[2][0]==gato[1][1])&&(gato[2][0]==gato[0][2])&&(gato[2][0]!=' ')){\r\n ganador=gato[2][0];\r\n victoria=1;\r\n }\r\n }", "private void smell() {\n try {\n this.console.println(MapControl.checkSmell(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void CheckFaintedPokemon() {\n \tif(user.getTeam(user.getCurrentPokemonIndex()).getStats().getStatus()==Status.FNT){\n \t\tuser.getTeam(user.getCurrentPokemonIndex()).getInfo().setUsedInBattle(false);\n \t\tbattleMessage.add(user.getTeam(user.getCurrentPokemonIndex()).getInfo().getNickname()+\" has lost the battle. \");\n \t\tbattleOver=true;\n \t}\n \tif(opponent.getTeam(opponent.getCurrentPokemonIndex()).getStats().getStatus()==Status.FNT){\n \t\topponent.getTeam(opponent.getCurrentPokemonIndex()).getInfo().setUsedInBattle(false);\n \t\tCalculateXP(user.getTeam(),opponent.getTeam(opponent.getCurrentPokemonIndex()));\n \t\tbattleMessage.add(opponent.getTeam(opponent.getCurrentPokemonIndex()).getInfo().getNickname()+\" has lost the battle. \");\n \t\tbattleOver=true;\n \t}\n \t\n }", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "private boolean checkGPS(double latitude, double longitude, String massage) {\n if(latitude == 0.0 && longitude == 0.0)\n {\n Toast.makeText(this, massage, Toast.LENGTH_LONG).show();\n return false;\n }\n else\n {\n return true;\n }\n }", "public void reportSuccess() {\n Crashlytics.logBreadcrumb(\"MuunLockOverlay: reportSuccess\");\n\n pinInput.setSuccess();\n }", "@Override\n\tpublic boolean preSave() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkReady() {\n if (mMap == null) {\n Toast.makeText(this, \"Map not ready!\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private boolean checkMove(boolean[][] moves, Piece piece, int i, int j) {\r\n\t\tif (moves[i][j]) {\r\n\t\t\t// Moving piece \r\n\t\t\tthis.board[piece.getY()][piece.getX()] = null;\r\n\t\t\t\r\n\t\t\tPiece savePiece = this.board[i][j]; // Piece at i and j\r\n\t\t\tint saveX = piece.getX();\r\n\t\t\tint saveY = piece.getY();\r\n\t\t\t\r\n\t\t\tthis.board[i][j] = piece;\r\n\t\t\tpiece.setXY(j, i);\r\n\t\t\t\r\n\t\t\tif (savePiece != null) {\r\n\t\t\t\tkillPiece(savePiece);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean check = checkForCheck(piece.getPlayer());\r\n\t\t\t\r\n\t\t\t// return pieces to original states\r\n\t\t\tsetBack(i, j, savePiece, saveX, saveY);\r\n\t\t\tif (!check) {\r\n\t\t\t\t// There is a viable move to get out of check\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean m43012a(int error) {\n if (!C13178t.m43096a(this.f40236g) || error == -118 || error == -104 || error == -103) {\n return true;\n }\n return false;\n }", "@Test\r\n\tpublic void testPassedGo() {\r\n\t\tBoard board = new Board(validSquareLocations); // board needs to have squares for this to be tested\r\n\t\tboolean actualPassedGo;\r\n\t\tactualPassedGo = board.passedGo(validCurrentPosition, validDieValue);\r\n\t\tassertEquals(actualPassedGo, expectedPassedGo);\r\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 100) {\n if (resultCode != RESULT_OK)\n Toast.makeText(getContext(), \"GPS est déactivé\", Toast.LENGTH_LONG).show();\n else {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n setupmap();\n MapForm.setMyLocationEnabled(true);\n }\n }\n }\n }", "public boolean isPass(int playerID){\n // if there have been three passes and the user passes then the middle is turn invisible\n if(numPass == 3 && turn == playerID){\n numPass++;\n // make sure turn goes back to 0 if player is 4\n if(turn == 3){\n turn = 0;\n }\n else{\n turn++;\n }\n gameStage++;\n middleVisible = false;\n return true;\n }\n\n // if numPass is not three or 7 then they can pass normally\n else if(numPass < 7 && numPass != 3 && turn == playerID){\n numPass++;\n // case for player four switching to player 1\n if(turn == 3){\n turn = 0;\n }\n else{\n turn++;\n }\n return true;\n }\n\n // if numPass is 7 then the user cannot pass\n else if(numPass == 7 && turn == playerID){\n return false;\n }\n return false;\n }", "@Override\n\tpublic boolean login(Map<String, Object> map) {\n\t\treturn false;\n\t}", "private boolean esCoordenadaValida(Coordenada c) {\n assert c != null : \"Error: la coordenada introducida no puede ser null\";\n int fila = c.getFila();\n int columna = c.getColumna();\n\n return (fila>=0 && fila<=casillas.length-1) &&\n (columna>=0 && columna<=casillas[0].length-1);\n }", "boolean isLegal(Move move) {\n int c = move.getCol0();\n int r = move.getRow0();\n int[] vector = move.unit();\n Piece p;\n for(int i = 0; i <= vector[2]; i++) {\n p = get(c, r);\n if (p != null && p.side() != _turn) {\n return false;\n }\n }\n return true;\n\n }", "private boolean cekPassword(String password){\n return password.equals(Preferences.getRegisteredPass(getBaseContext()));\n }", "private void checkSave(CRM crm,\n\t\t\tMap<Indicator, List<IndicatorValueScore>> indicatorMap,\n\t\t\tIterable<CorporationType> crmTypes,\n\t\t\tIterable<Certificate> certificates, Communicatee communicatee,\n\t\t\tIterable<Communicatee> communicatees, Iterable<Associate> associates)\n\t\t\tthrows Exception {\n\t}", "@Override\n\tpublic boolean checkLogin(String username, String password, Map<String, User> map) {\n\t\tif(username == null || password == null || map == null) return false;\n\t\t\n\t\tUser p = map.get(username);\n\t\tif(p == null) return false;\n\t\tif(password.equals(p.getPassword()) && p.getTries() > 0) {\n\t\t\treturn true;\n\t\t}\n\t\tp.setTries(p.getTries() - 1);\n\t\tif(userdata != null) {\n\t\t\tuserdata.open();\n\t\t\tuserdata.updateUser(p);\n\t\t\tuserdata.close();\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkCollisions(int keycode) {\n \t\t\n \t\tint sX = super.getX()/Main.gridSize;\n \t\tint sY = super.getY()/Main.gridSize;\n \t\t\n \t\tif (World.currentMap().solidAtPoint(sX-1, sY) && keycode == Keyboard.KEY_A) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX+1, sY) && keycode == Keyboard.KEY_D) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY-1) && keycode == Keyboard.KEY_W) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY+1) && keycode == Keyboard.KEY_S) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}", "public void hasKey() {\n\t\tif (checkKey(Integer.parseInt(getCurrentPositionX()),Integer.parseInt(getCurrentPositionY()))) {\n\t\t\tDisplay.setKey(\"Yes\");\n\t\t\tDisplay.setMessage(\"You have found a key! Try to go through a house!\");\n\t\t}\n\t}" ]
[ "0.64621973", "0.55255455", "0.5410476", "0.53024167", "0.5278165", "0.52178997", "0.52076524", "0.51680076", "0.51613253", "0.51065236", "0.51029897", "0.509166", "0.5084108", "0.5084108", "0.507646", "0.50566643", "0.50558925", "0.5045119", "0.50291115", "0.5009194", "0.49932367", "0.49770364", "0.49605078", "0.49314213", "0.49309355", "0.49077666", "0.49072033", "0.4904244", "0.4903157", "0.48884174", "0.4886612", "0.4886378", "0.48792338", "0.4877341", "0.48641327", "0.48613343", "0.48364112", "0.48201638", "0.4814598", "0.47965664", "0.4789885", "0.4786653", "0.47752285", "0.47628704", "0.47585565", "0.47427374", "0.4738479", "0.47316378", "0.4730487", "0.47222888", "0.47147128", "0.4707371", "0.47054946", "0.46916118", "0.4683314", "0.46787685", "0.4676992", "0.46728665", "0.46728632", "0.4655876", "0.46550617", "0.4651338", "0.46462145", "0.46374542", "0.46372405", "0.46322826", "0.4627011", "0.46252054", "0.46195915", "0.46179432", "0.46170282", "0.46139082", "0.46137112", "0.4607576", "0.460535", "0.4605124", "0.46049434", "0.4604402", "0.45890236", "0.45876047", "0.45833495", "0.45829427", "0.45817515", "0.45816094", "0.45799893", "0.45746413", "0.45733824", "0.45713818", "0.45696354", "0.4564412", "0.45624197", "0.45605984", "0.4551648", "0.4547061", "0.45466742", "0.4542005", "0.4541006", "0.453637", "0.45363382", "0.4534804" ]
0.6990102
0
Verifica se nao contem a chave no mapa. Se nao tiver, lanca um erro com a mensagem passada.
public void verificaNaoContem(Object chave, Map<?, ?> mapa, String mensagem) { if (!mapa.containsKey(chave)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaContem(Object chave, Map<?, ?> mapa, String mensagem) {\n if (mapa.containsKey(chave)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }", "public boolean sePuedeMover(int ficha) {\r\n boolean ret = false;\r\n int sentido = 1;\r\n if (isTurnoRojo()) {\r\n sentido = -1;\r\n }\r\n int[] aux = encontrarPosicion(ficha);\r\n int fila = aux[0];\r\n int columna = aux[1];\r\n\r\n if (movimientos[ficha] && (tablero[fila + sentido][columna].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna - 1].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna + 1].getTipo().equals(\"Vacio\"))) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n\r\n }", "public void confirmar(){\r\n if((gato[0][0]==gato[0][1])&&(gato[0][0]==gato[0][2])&&(gato[0][0]!=' ')){\r\n //si encuentra alguna victoria la variable ganador agarra el simbolo del ganador 'o' o 'x'\r\n //para confirmar quien gano\r\n ganador=gato[0][0];\r\n //es lo que tomara tirar para salir del while si hay una victoria\r\n victoria=1; \r\n \r\n }\r\n\r\n if((gato[1][0]==gato[1][1])&&(gato[1][0]==gato[1][2])&&(gato[1][0]!=' ')){\r\n ganador=gato[1][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[2][0]==gato[2][1])&&(gato[2][0]==gato[2][2])&&(gato[2][0]!=' ')){\r\n ganador=gato[2][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][0]==gato[1][0])&&(gato[0][0]==gato[2][0])&&(gato[0][0]!=' ')){\r\n ganador=gato[0][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][1]==gato[1][1])&&(gato[0][1]==gato[2][1])&&(gato[0][1]!=' ')){\r\n ganador=gato[0][1];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][2]==gato[1][2])&&(gato[0][2]==gato[2][2])&&(gato[0][2]!=' ')){\r\n ganador=gato[0][2];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][0]==gato[1][1])&&(gato[0][0]==gato[2][2])&&(gato[0][0]!=' ')){\r\n ganador=gato[0][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[2][0]==gato[1][1])&&(gato[2][0]==gato[0][2])&&(gato[2][0]!=' ')){\r\n ganador=gato[2][0];\r\n victoria=1;\r\n }\r\n }", "private Boolean podeMover(Casa casa, Casa destino, Tabuleiro tabuleiro) {\n \n // variaveis para simplificar o codigo (Matheus)\n \n int x = destino.x;\n int y = destino.y; \n \n \n //Verifica se o destino está nas diagonais e horizontal e vertical (Matheus)\n //combinação dos movimetos do Bispo e da Torre\n \n if(casa.x == x && !this.pulouPeca(\"reta\",1, casa, destino, tabuleiro) ) {\n return true;\n }\n if(casa.y == y && !this.pulouPeca(\"reta\",2, casa, destino, tabuleiro)) {\n return true;\n }\n \n for(int i = -7; i <= 7; i++) { \n if( (casa.x + i == x && casa.y + i == y) && !this.pulouPeca(\"diagonal\",1, casa, destino, tabuleiro)){\n return true;\n }\n if( (casa.x + i == x && casa.y + (i * -1) == y) && !this.pulouPeca(\"diagonal\",2, casa, destino, tabuleiro)){\n return true;\n }\n }\n return false;\n \n \n }", "private boolean sugerencia(Palabra c){\n MaxHeap<Palabra> l = dic.opcionesSuguerencias(c);\n int d =0;\n if (!l.esVacio()) {\n Palabra n = l.elimina();\n d = JOptionPane.showConfirmDialog(null, \"---Tal vez quizo decir: \\n -\"+n.toString(), \"¿?\", JOptionPane.YES_NO_OPTION);\n if (d ==0 ) {\n c.setCadena(n);\n return false;\n }else if (d == 1) {\n return true;\n }\n }\n return false;\n }", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "private boolean mozeLiSeSpojiti() {\r\n\t\t// provjera po redovima\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 3 ; j++)\r\n\t\t\t\tif(tabela[i][j] == tabela[i][j + 1])\r\n\t\t\t\t\treturn true;\r\n\t\t// provjera po kolonama\r\n\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\tfor(int i = 0 ; i < 3 ; i++)\r\n\t\t\t\tif(tabela[i][j] == tabela[i + 1][j])\r\n\t\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "private boolean canBlackSaveItselfRightAhead(Pedina pedina) {\n boolean condizione1 = false;\n boolean condizione2 = false;\n boolean fine1 = false;\n boolean fine2 = false;\n boolean fine3 = false;\n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 1 == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 1 == arrayPedineBianche.get(i).getY()) {\n condizione1 = true;\n }\n }\n \n if(controllaSeCasellaLibera(pedina.getX() - 1, pedina.getY() - 1))\n condizione2 = true;\n \n \n if (condizione1 && condizione2) {\n if(pedina.getX() - 1 < 0 || pedina.getY() - 1 < 0)\n return false;\n else {\n if(pedina.getX() + 1 > 7 || pedina.getY() - 1 < 0)\n fine1 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine1 = true;\n }\n }\n }\n \n if(!fine1){\n if(controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() - 1)) {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n fine1 = true;\n }\n \n if(pedina instanceof Damone) {\n if(pedina.getX() - 1 < 0 || pedina.getY() + 1 > 7)\n fine2 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() - 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 2 == arrayPedineBianche.get(i).getY()) {\n fine2 = true;\n }\n }\n }\n \n if(!fine2) {\n if(controllaSeCasellaLibera(pedina.getX() - 1, pedina.getY() + 1)) {\n pedina.setXTemp(pedina.getX() - 1);\n pedina.setYTemp(pedina.getY() + 1);\n return true;\n } else\n fine2 = true;\n }\n \n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() - 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine3 = true;\n }\n }\n \n if(!fine3) {\n pedina.setXTemp(pedina.getX() - 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n return false;\n \n } else\n return false; \n } \n } else\n return false; \n }", "@Override\n public boolean canExit()\n {\n final PrimaryFrame primary = Main.getPrimaryFrameInstance();\n DefaultComboBoxModel cbm = primary.getMazeInfoModel().getMazeInfoComboBoxModel();\n for (int i = 0; i < cbm.getSize(); i++)\n {\n MazeInfo mi = (MazeInfo) cbm.getElementAt(i);\n if (mi.isDirty())\n {\n int result;\n result = JOptionPane.showConfirmDialog(this,\n \"Would you like to save \\\"\" +\n mi.getName() +\n \"\\\"\",\n \"Save Maze?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (result == JOptionPane.YES_OPTION)\n mi.saveMaze();\n else if (result != JOptionPane.NO_OPTION)\n return false; // Abort exit if canceled.\n }\n }\n return true;\n }", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) {\n\t\t\tif (datosValidados())\n\t\t\t\tif (componentes.gs.componentes.JConfirmDialog.rptaConfirmDialog(this,\n\t\t\t\t\t\t\"Esta seguro que desea afectar la página?\")) {\n\t\t\t\t\tVariablesInventario.vNumPag = cmbPagina.getSelectedItem()\n\t\t\t\t\t\t\t.toString().trim();\n\t\t\t\t\tcerrarVentana(true);\n\t\t\t\t}\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n\t}", "private boolean checkMoveOthers(Pieces piece, Coordinates from, Coordinates to) {\n\t\t\t\t\n\t\t/* \n\t\t *il pedone: \n\t\t * -può andare dritto sse davanti a se non ha pedine\n\t\t * -può andare obliquo sse in quelle posizioni ha una pedina avversaria da mangiare\n\t\t * \n\t\t */\n\t\tif (piece instanceof Pawn) {\n\t\t\tif (from.getY() == to.getY()) {\n\t\t\t\tif(chessboard.at(to) == null)\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(chessboard.at(to) == 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\t\n\t\t//il cavallo salta le pedine nel mezzo\n\t\tif (piece instanceof Knight)\n\t\t\treturn true;\n\t\t\n\t\t//Oltre non andranno il: cavallo, il re ed il pedone.\n\t\t/*\n\t\t *Calcolo le posizioni che intercorrono tra il from ed il to escluse \n\t\t *ed per ogni posizione verifico se è vuota\n\t\t *-se in almeno una posizione c'è una pedina(non importa il colore), la mossa non è valida\n\t\t *-altrimenti, la strada è spianata quindi posso effettuare lo spostamento \n\t\t */\n\t\tArrayList<Coordinates> path = piece.getPath(from, to);\n\t\tfor (Coordinates coordinate : path) {\n\t\t\tif ( chessboard.at(coordinate) != null ){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private Boolean pulouPeca(String posicao, int eixo, Casa casa, Casa destino, Tabuleiro tabuleiro) {\n \n int x = destino.x;\n int y = destino.y;\n \n if(posicao == \"reta\") {\n switch(eixo) {\n case 1:\n if(y > casa.y){ \n for(int i = casa.y + 1; i < y; i++){ \n if (tabuleiro.getCasa(casa.x, i).getPeca() instanceof Peca ) { \n return true; }\n } \n } \n if(y < casa.y){ \n for(int i = casa.y - 1; i > y; i--){ \n if (tabuleiro.getCasa(casa.x, i).getPeca() instanceof Peca ) {\n return true; }\n }\n }\n return false;\n case 2:\n if(x > casa.x){\n for(int i = casa.x + 1; i < x; i++){\n if (tabuleiro.getCasa(i, casa.y).getPeca() instanceof Peca ) {\n return true; }\n } \n }\n if(x < casa.x){\n for(int i = casa.x - 1; i > x; i--){\n \n if (tabuleiro.getCasa(i, casa.y).getPeca() instanceof Peca ) {\n return true; }\n } \n }\n return false;\n } \n \n }\n \n if(posicao == \"diagonal\") {\n \n switch(eixo) {\n case 1:\n if(x > casa.x){\n //verifica se pulou peca\n for(int j = 1; j < x - casa.x; j++){\n if(tabuleiro.getCasa(casa.x + j, casa.y + j).getPeca() instanceof Peca){\n return true;\n }\n }\n }\n if(casa.x > x){\n //verifica se pulou peca\n for(int j = 1; j < casa.x - x; j++){\n if(tabuleiro.getCasa(x + j, y + j).getPeca() instanceof Peca){\n return true;\n }\n } \n }\n return false; \n case 2:\n if(y > casa.y){\n //verifica se pulou peca\n for(int j = 1; j < y - casa.y; j++){\n if(tabuleiro.getCasa(casa.x - j, casa.y + j).getPeca() instanceof Peca){\n return true;\n }\n }\n }\n if(casa.y > y){\n //verifica se pulou peca\n for(int j = 1; j < casa.y - y; j++){\n if(tabuleiro.getCasa(casa.x + j, casa.y - j).getPeca() instanceof Peca){\n return true;\n }\n } \n }\n return false;\n }\n }\n \n return false;\n }", "private void chkKeyPressed(KeyEvent e) {\r\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\r\n cerrarVentana(false);\r\n } else if (UtilityPtoVenta.verificaVK_F11(e)) {\r\n aceptaCantidadIngresada(\"VK_F11\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n \r\n \r\n } else if (UtilityPtoVenta.verificaVK_F12(e)) {\r\n if (vIndTieneSug) {\r\n aceptaCantidadIngresada(\"VK_F12\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n }\r\n }\r\n }", "public boolean existsCollision(Ficha ficha) {\n\t\tboolean result = false;\n\t\tVector2D positionFicha = ficha.position;\n\t\tint medidaLado = GenericGame.getMedidaLado();\n\t\t\n\t\n\t\tint im = (int) (positionFicha.getX() / medidaLado);\n\t\tint jm = (int) (positionFicha.getY() / medidaLado);\n\t\t\n\t\t//System.out.println(\"existsColision\");\n\t\t//System.out.println(this);\n\t\t//System.out.println(ficha);\n\t\t//System.out.println(\"im \"+ im + \" jm \"+jm + \" posicion X \" + positionFicha.getX() + \" posicion Y \" + positionFicha.getY());\n\t\t\n\t\t\n\t\t//System.out.println(im+\" \"+jm);\n\t\n\t//\tSystem.out.println(this);\n\t\t//System.out.println(\"im \"+ im + \" jm \"+jm + \" posicion X \" + positionFicha.getX() + \" posicion Y \" + positionFicha.getY());\n\t\t\n\t\tint [][] matriz = ficha.getFicha();\n\t\t\n\t\tfor(int i=0; i< matriz.length&&!result;i++)\n\t\t{\n\t\t\tfor(int j=0; j< matriz[0].length && !result;j++)\n\t\t\t{\n\t\t\t\t//if()\n\t\t\n\t\t\t\tresult =\tmatriz[i][j]!= 0 &&matrizTablero[jm+i][im+j] != 0;\n\t\t\t}\n\t\t\t//System.out.println();\n\t\t}\n\t\t\n\t\treturn result;\n\n\t}", "private void chkKeyPressed(KeyEvent e) {\n \n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) \n { \n FarmaVariables.vAceptar = true;\n this.setVisible(false);\n this.dispose();\n e.consume();\n //cerrarVentana(true); \n } \n \n else if (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) \n {\n if (datosValidados()) {\n try {\n ingresarCantidad();\n FarmaUtility.aceptarTransaccion();\n cerrarVentana(false);\n } catch (SQLException sql) {\n FarmaUtility.liberarTransaccion();\n log.error(\"\",sql);\n FarmaUtility.showMessage(this, \n \"Ocurrió un error al registrar la cantidad : \\n\" +\n sql.getMessage(), txtCruce);\n cerrarVentana(false);\n }\n }\n }\n }", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) {\n\t\t\tif(tblListaDetallePedido.getRowCount() > 0)\n {\n if(!validaChecksTable())\n {\n FarmaUtility.showMessage(this,\"No es posible realizar la operación. Existen productos sin selección de lotes.\",tblListaDetallePedido);\n return;\n }\n if(componentes.gs.componentes.JConfirmDialog.rptaConfirmDialog(this,\"Está seguro de generar el pedido institucional?\"))\n cerrarVentana(true);\n }\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n }", "public boolean verificaFimDoJogo() {\r\n \r\n \r\n \r\n if (this.contaJogadas >= 5) {\r\n \r\n int linha;\r\n int coluna;\r\n char c1,c2,c3;\r\n \r\n // verifica em linha\r\n coluna = 0;\r\n for (linha=0; linha<3; linha++) {\r\n c1 = tabuleiro.getPeca(linha,coluna);\r\n c2 = tabuleiro.getPeca(linha,coluna+1);\r\n c3 = tabuleiro.getPeca(linha,coluna+2);\r\n \r\n if ((c1==c2) && (c1==c3) && (c1!= ' ')){\r\n this.verificaVencedor();\r\n return true;\r\n }\r\n }\r\n \r\n // verifica em coluna\r\n linha=0;\r\n for (coluna=0; coluna<3; coluna++) {\r\n c1 = tabuleiro.getPeca(linha,coluna);\r\n c2 = tabuleiro.getPeca(linha+1,coluna);\r\n c3 = tabuleiro.getPeca(linha+2,coluna);\r\n if ((c1==c2) && (c1==c3) && (c1!= ' ')){\r\n this.verificaVencedor();\r\n return true;\r\n }\r\n }\r\n \r\n \r\n // verifica em diagonal\r\n linha=0;\r\n coluna=0;\r\n c1 = tabuleiro.getPeca(linha,coluna);\r\n c2 = tabuleiro.getPeca(linha+1,coluna+1);\r\n c3 = tabuleiro.getPeca(linha+2,coluna+2);\r\n if ((c1==c2) && (c1==c3) && (c1!= ' ')){\r\n this.verificaVencedor();\r\n return true;\r\n }\r\n \r\n \r\n \r\n linha=0;\r\n coluna=0;\r\n c1 = tabuleiro.getPeca(linha,coluna+2);\r\n c2 = tabuleiro.getPeca(linha+1,coluna+1);\r\n c3 = tabuleiro.getPeca(linha+2,coluna);\r\n if ((c1==c2) && (c1==c3) && (c1!= ' ')){\r\n this.verificaVencedor();\r\n return true;\r\n }\r\n \r\n if (this.contaJogadas == 9 ){\r\n contaEmpates++;\r\n return true;\r\n }\r\n }\r\n // caso contrario...\r\n return false;\r\n }", "@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean verifica(String e){\n return(clientes.containsKey(e));\n }", "@Override\n\tpublic boolean preSave() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean checkForObviousMove(char[][] a){\r\n int rowNumber = a.length;\r\n int colNumber = a[0].length;\r\n //AI obvious to win\r\n for (int i = 0; i<rowNumber; i++){\r\n for (int j = 0; j<colNumber; j++){\r\n //check if on diagnol\r\n if (i == j && countDiag1(a, 'o')== (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n if (i+j == rowNumber-1 && countDiag2(a,'o')==(rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a row\r\n if(countRow(a[i], 'o') == (colNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a column\r\n if(countCol(a,j,'o') == (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n }\r\n }\r\n //when user obvious to win\r\n for (int i = 0; i<rowNumber; i++){\r\n for (int j = 0; j<colNumber; j++){\r\n //check if on diagnol\r\n if (i == j && countDiag1(a, 'x')== (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n if (i+j == rowNumber-1 && countDiag2(a,'x')==(rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a row\r\n if(countRow(a[i], 'x') == (colNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n //check on a column\r\n if(countCol(a,j,'x') == (rowNumber-1) && spotIsEmpty(a[i][j])){\r\n writeOnBoard(a,'o',i,j);\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "private boolean canBlackSaveItselfRightBehind(Pedina pedina) {\n boolean condizione1 = false;\n boolean condizione2 = false;\n boolean fine1 = false;\n boolean fine2 = false;\n boolean fine3 = false;\n\n for (Pedina pedinaBianca : arrayPedineBianche) {\n if (pedina.getX() - 1 == pedinaBianca.getX()\n && pedina.getY() + 1 == pedinaBianca.getY()\n && (pedinaBianca instanceof Damone))\n condizione1 = true;\n }\n \n if(pedina.getX() + 1 <= 7 && pedina.getY() - 1 >= 0 && \n controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() - 1))\n condizione2 = true;\n \n \n if (condizione1 && condizione2) {\n \n if(pedina.getX() + 1 > 7 || pedina.getY() + 1 > 7)\n fine1 = true;\n else { \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 2 == arrayPedineBianche.get(i).getY()) {\n fine1 = true;\n }\n }\n }\n \n if(!fine1) {\n if(controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() + 1)) {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() + 1);\n return true;\n } else\n fine1 = true;\n } \n \n if(pedina.getX() + 1 > 7 || pedina.getY() - 1 < 0)\n fine2 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine2 = true;\n }\n }\n }\n \n if(!fine2) {\n if(controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() - 1)) {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n fine2 = true;\n }\n \n \n if(pedina instanceof Damone){\n if(pedina.getX() - 1 < 0 || pedina.getY() - 1 < 0)\n fine3 = true;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() - 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()) {\n fine3 = true;\n }\n }\n }\n \n if(!fine3) {\n if(controllaSeCasellaLibera(pedina.getX() - 1, pedina.getY() - 1)) {\n pedina.setXTemp(pedina.getX() - 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n } else\n return false;\n } else\n return false;\n \n } else\n return false;\n \n } else \n return false;\n\n }", "public boolean incluirCarro() {\n String sql = \"INSERT INTO carro \";\n sql += \"(placa, marca, modelo, km, arcondicionado, direcaohidraulica,situacao) \";\n sql += \" VALUES(?,?,?,?,?,?,?) \";\n // conectando no banco de dados\n Connection con = Conexao.conectar();\n // \n try {\n PreparedStatement stm = con.prepareStatement(sql);\n stm.setString(1, this.placa);\n stm.setString(2, this.marca);\n stm.setString(3, this.modelo);\n stm.setInt(4, this.km);\n stm.setBoolean(5, this.arcondicionado);\n stm.setBoolean(6, this.direcaohidraulica);\n stm.setBoolean(7, this.situacao);\n stm.execute();\n } catch (SQLException ex) {\n System.out.println(\"Erro:\" + ex.getMessage());\n return false;\n }\n return true;\n }", "private void validaPosicaoDestino(Posicao orig, Posicao dest) {\n\t\tif (!tabuleiro.peca(orig).movimentoPossivel(dest)) {\n\t\t\tthrow new XadrezException(\"A peca escolhida não pode mover-se para a posicao destino\");\n\t\t}\n\t}", "private boolean canBlackMoveRight(Pedina pedina) {\n if(!controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() + 1))\n return false;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 2 == arrayPedineBianche.get(i).getY()) \n seVadoDestraVengoMangiato = true;\n }\n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() == arrayPedineBianche.get(i).getY()\n && pedina.getY() + 2 <= 7\n && controllaSeCasellaLibera(pedina.getX(), pedina.getY() + 2)) \n seVadoDestraVengoMangiato = true;\n }\n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() == arrayPedineBianche.get(i).getX()\n && pedina.getY() + 2 == arrayPedineBianche.get(i).getY()\n && pedina.getX() + 2 <= 7\n && arrayPedineBianche.get(i) instanceof Damone\n && controllaSeCasellaLibera(pedina.getX() + 2, pedina.getY()))\n seVadoDestraVengoMangiato = true;\n }\n \n if(pedina.getX() + 1 > 7 || pedina.getY() + 1 > 7)\n return false;\n else {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() + 1);\n return true;\n }\n }\n }", "private boolean wrongPositioning(int x, int y, LoadedMap map) {\n boolean ans = false;\n if(hasAbove(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))){\n ans = true;\n }else if (hasBelow(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))) {\n ans = true;\n }\n return ans;\n }", "protected boolean checkWin(int pno) {\n\t\tint[] pos = playerPosition.get(pno);\n\t\tif (collectedGold.get(pno) >= map.getWin() && \n\t\t\t\tmap.lookAtTile(pos[0], pos[1]) == 'E') {\n\t\t\tremovePlayer(pno);\n\t\t\tSystem.out.println(\"Client \" + pno + \" has escaped!\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "private boolean OK() {\r\n return in == saves[save-1];\r\n }", "private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }", "private boolean isValidMove(int pressedHole) {\n return getPlayerHole(pressedHole).getKorgools() != 0;\n }", "public void MoverPieza(CuadroPieza cuadroActual, CuadroPieza cuadroDestino) {\n try {\n if (suspenderJuego) {//Si el juego no esta suspendido\n return;\n }\n if (cuadroActual.getPieza().MoverPieza(cuadroDestino, this)) {//Si el movimiento es valido\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y].opacarPieza();//Regreso todos los cuadros a su estado inicial, para que no esten resaltados.\n }\n }\n setTurno(getTurno() * -1);//Cambio de turno.\n if (getRey(getTurno()).isInJacke(this)) {//Pregunto si el rey del turno actual, o sea al que le toca mover despues de este metodo, esta en jacke\n if (Pieza.isJugadorAhogado(getTurno(), this)) {//Si esta en jacke, pregunto si esta ahogado(Quiere decir que no tiene opcion.)\n //Si esta en jacke y esta ahogado a la vez, quiere decir que esta en jacke mate.\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!!\\nComputadora: Parece que me ganaste=(\");\n if (JOptionPane.showConfirmDialog(null, \"Computadora: Te reto a que lo vuelvas a hacer, Otra¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n JOptionPane.showMessageDialog(null, \"Computadora: Cobarde ¬¬\");\n suspenderJuego = true;\n }\n return;\n } else {\n //Si no esta ahogado, simplemente es un jacke.\n JOptionPane.showMessageDialog(null, \"Rey en Hacke \\nComputadora: Y ahora que hago¿? =(\");\n }\n } else {\n if (Pieza.isJugadorAhogado(getTurno(), this)) {\n //Si solo esta ahogado, es un empate.\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Vamos que andamos parchis, me has ahogado!!!\");\n\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n //Si han pasado 50 movimientos sin ningun cambio, tambien se considera empate.\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n }\n }\n\n if (getTurno() == turnoComputadora) {//Si le toca a la computadora, le toca jugar a ella.\n jugarMaquinaSola(getTurno());\n }\n } else {\n if (getRey(getTurno()).isInJacke(this)) {//Si el movimiento es invalido, y encima el rey esta en jacke, pues es un movimiento invalido, el rey tiene que librarse del jacke\n JOptionPane.showMessageDialog(null, \"Movimiento invalido\");\n }\n }\n } catch (Exception e) {\n System.out.print(\"Error: \" + e.getMessage());\n }\n }", "boolean hasClearkey();", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "public boolean alterarInformacoes(Prova prova) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"UPDATE prova SET codDisciplina=?, titulo=?, valorTotal=?, valorQuestoes=?, tempo=?, data=?, allowAfterDate=?, allowMultipleAttempts=? WHERE codigo=?\");\n\t\t\tps.setInt (1, prova.getCodDisciplina());\n\t\t\tps.setString (2, prova.getTitulo());\n\t\t\tps.setFloat (3, prova.getValorTotal());\n\t\t\tps.setFloat (4, prova.getValorQuestoes());\n\t\t\tps.setInt (5, prova.getTempo());\n\t\t\tps.setString (6, prova.getData()); \n\t\t\tps.setBoolean(7, prova.isAllowAfterDate()); \n\t\t\tps.setBoolean(8, prova.isAllowMultipleAttempts()); \n\t\t\tps.setInt (9, prova.getCodigo());\n\t\t\n\t\t\treturn (ps.executeUpdate() > 0) ? true : false;\n\t\t});\t\n\t}", "public boolean saveMap()\n {\n // This should probably write all the data to a temporary file, then copy it over the old one at the end\n try {\n \n StringBuffer\t\tbuf = new StringBuffer();\n FileWriter\t\t\tmapWriter;\n \n if (!file.canWrite())\n {\n ErrorHandler.displayError(\"Could not write to map file. Maybe it's locked.\", ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n \n file.createNewFile();\n mapWriter = new FileWriter(file);\n \n // Write the size in x, y\n buf.append(map.getSizeX());\n buf.append(\" \");\n buf.append(map.getSizeY());\n buf.append(\"\\n\");\n \n // Write all of the data\n for (int y = 0; y < map.getSizeY(); y++)\n {\n for (int x = 0; x < map.getSizeX(); x++)\n {\n buf.append(MUXHex.terrainForId(map.getHexTerrain(x, y)));\n buf.append(map.getHexAbsoluteElevation(x, y));\n }\n \n buf.append(\"\\n\");\n }\n \n // Now write it to the file\n mapWriter.write(buf.toString());\n mapWriter.close();\n \n // Musta been okay...\n map.setChanged(false);\n \n // Change our name\n setTitle(file.getName() + sizeString());\n \n return true;\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not write data to map file:\\n\" + e, ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n }", "private boolean checkIn(MyPair<Integer, Integer> position){\n Board copy;\n try{\n copy = new Board(getBoard());\n }\n catch(Exception e){\n System.out.println(\"AAA\");\n return true;\n }\n\n copy.removePiece(copy.kingByColour(getColour()));\n copy.addPiece(new King(getColour(), copy, position));\n if(copy.check() == getColour())\n return true;\n return false;\n }", "public boolean checkCasillaVacia(Casilla pos)\r\n\t{\r\n\t\tboolean comp = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcomp = (superficie[pos.getFila()][pos.getCol()] == null);\r\n\t\t}catch(ArrayIndexOutOfBoundsException e){comp = false;}\r\n\t\treturn comp;\r\n\t}", "private boolean esCoordenadaValida(Coordenada c) {\n assert c != null : \"Error: la coordenada introducida no puede ser null\";\n int fila = c.getFila();\n int columna = c.getColumna();\n\n return (fila>=0 && fila<=casillas.length-1) &&\n (columna>=0 && columna<=casillas[0].length-1);\n }", "boolean hasContKey();", "public boolean contem(String chave);", "private boolean canBlackMoveLeft(Pedina pedina) {\n if(!controllaSeCasellaLibera(pedina.getX() + 1, pedina.getY() - 1))\n return false;\n else {\n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY())\n seVadoSinistraVengoMangiato = true;\n }\n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() + 2 == arrayPedineBianche.get(i).getX()\n && pedina.getY() == arrayPedineBianche.get(i).getY()\n && pedina.getY() - 2 >= 0\n && controllaSeCasellaLibera(pedina.getX(), pedina.getY() - 2))\n seVadoSinistraVengoMangiato = true;\n }\n \n for (int i = 0; i < arrayPedineBianche.size(); i++) {\n if (pedina.getX() == arrayPedineBianche.get(i).getX()\n && pedina.getY() - 2 == arrayPedineBianche.get(i).getY()\n && pedina.getX() + 2 <= 7\n && arrayPedineBianche.get(i) instanceof Damone\n && controllaSeCasellaLibera(pedina.getX() + 2, pedina.getY())) \n seVadoSinistraVengoMangiato = true;\n }\n \n if(pedina.getX() + 1 > 7 || pedina.getY() - 1 < 0)\n return false;\n else {\n pedina.setXTemp(pedina.getX() + 1);\n pedina.setYTemp(pedina.getY() - 1);\n return true;\n }\n }\n }", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "private void caiu(Bola bola, Paddle paddle) {\n\t\tint continuar;\n\t\tbola.bolaInicio();\n\t\tpaddle.paddleInicio();\n\t\tmove = false;\n\t\tvida--;\n\t\tif (vida == 0) {\n\t\t\tcontinuar = JOptionPane.showConfirmDialog(null, \"Deseja jogar novamente?\", \"Game Over\",\n\t\t\t\t\tJOptionPane.YES_NO_OPTION);\n\t\t\tif (continuar == 0) {\n\t\t\t\treiniciar();\n\t\t\t} else {\n\t\t\t\tSystem.exit(0);\n\t\t\t} // fecha else interno\n\t\t} // fecha if para continuar\n\n\t}", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "public boolean NoEnPantalla() {\n\t\treturn x + xmapa + anchura < 0 ||\n\t\t\t\tx + xmapa - anchura > PanelJuego.ANCHURA ||\n\t\t\t\ty + ymapa + altura < 0 ||\n\t\t\t\ty + ymapa - altura > PanelJuego.ALTURA;\n\t}", "public boolean IsSafe(int rowIndex, int columIndex) {\n for (int i = 0; i < this.SIZE_OF_CHESS_BOARD; i++) {\n //this.list_cells[rowIndex][i].setBackground(Color.red);\n if (maps[rowIndex][i] == true) {\n return false;\n }\n }\n\n //check in a colums\n for (int i = 0; i < this.SIZE_OF_CHESS_BOARD; i++) {\n //this.list_cells[i][columIndex].setBackground(Color.red);\n if (maps[i][columIndex] == true) {\n return false;\n }\n }\n\n //check in a diagonal line\n for (int x = -(this.SIZE_OF_CHESS_BOARD - 1); x < this.SIZE_OF_CHESS_BOARD; x++) {\n for (int y = -(this.SIZE_OF_CHESS_BOARD - 1); y < this.SIZE_OF_CHESS_BOARD; y++) {\n int newRowIndex = x + rowIndex;\n int newColumIndex = y + columIndex;\n if (newColumIndex >= 0 && newColumIndex < this.SIZE_OF_CHESS_BOARD && newRowIndex >= 0 && newRowIndex < this.SIZE_OF_CHESS_BOARD) {\n if (newColumIndex + newRowIndex == columIndex + rowIndex || columIndex - rowIndex == newColumIndex - newRowIndex) {\n // System.out.println(newRowIndex + \",\" + newColumIndex);\n if (maps[newRowIndex][newColumIndex] == true) {\n return false;\n }\n //this.list_cells[newRowIndex][newColumIndex].setBackground(Color.red);\n }\n }\n }\n }\n return true;\n }", "public void cadenaEsAceptada() {\n\t\tfor (int i = 0; i < conjuntoF.size(); i++) {\n\t\t\tif (estadoActual.equals(conjuntoF.get(i))) {\n\t\t\t\tSystem.out.println(\"Cadena aceptada!\");\n\t\t\t\tbreak;\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"Cadena no aceptada\");\n\t\t}\n\t}", "private boolean testeCheck(Cor cor) {\n\t\tPosicao reiPosicao = rei(cor).getPosicaoXadrez().paraPosicao();\n\t\t// Lista de pecas do oponente\n\t\tList<Peca> pecasOponente = pecasTabuleiro.stream()\n\t\t\t\t.filter(x -> ((PecaXadrez)x).getCor() == oponente(cor))\n\t\t\t\t.collect(Collectors.toList());\n\t\t// para cada peca do oponente verifica seus possiveis movimentos\n\t\tfor (Peca p : pecasOponente) {\n\t\t\tboolean[][] mat = p.movimentosPossiveis();\n\t\t\t//Se for essa posicao for verdadeiro (possivel movimento do oponente)\n\t\t\tif (mat[reiPosicao.getLin()][reiPosicao.getCol()]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testCheckPlaceVerticaleMembreDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"A8\", g, 5, false);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxMembreInvalide);\n }\n }", "private boolean verificarCamposVacios() {\n \n boolean bandera = false; // false = campos no vacios\n \n if(this.jTextFieldDigiteCodigo.getText().equals(\"\") || this.jTextFieldDigiteCodigo.getText().equals(\"Digite Código\"))\n {\n mostrarError(jLabelErrorDigiteCodigo, \"Rellenar este campo\",jTextFieldDigiteCodigo);\n bandera=true;\n }\n return bandera;\n }", "@Test\n public void testIsValidonContinentNotConnectedMap() {\n // Create a new continent ContinentC which is not connected\n mapModel.addContinent(\"ContinentC\", 3);\n mapModel.getGraphTerritories()\n .get(\"TerritoryA\").setContinentName(\"ContinentC\");\n mapModel.getGraphTerritories()\n .get(\"TerritoryE\").setContinentName(\"ContinentC\");\n\n boolean expResult = false;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }", "public static boolean validPos(String moveTo)\n\t{\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(posMap[rows][cols].equals(moveTo))\n\t\t\t\t{\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean win(){\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n if(map[row][col].getSafe() == false && (map[row][col].getVisual().equals(square) || map[row][col].getVisual().equals(bomb))){\r\n return false;\r\n }\r\n if(map[row][col].getSafe() == true && map[row][col].getVisual().equals(flag)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public boolean HayObstaculo(int avenida, int calle);", "public boolean verifyCoordMissile(IPlayer opponentPlayer, String missileCoord) {\n\t\t\tif (goodCoordinatesForm(missileCoord) ) {\r\n\t\t\t\tCoordinates coord = new Coordinates(missileCoord);\r\n\t\t\t\tif (inMap(opponentPlayer,coord) ) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\telse { System.out.println(\"Coordinates out of map, try again it should be like A-2\");\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse { System.out.println(\"Wrong coordinates writing, try again it should be like A-2\");\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "public boolean checkGameOver(){\n\t\tfor(int x = 0; x < this.tile[3].length; x++){\n\t\t if(this.isFilled(3, x)){\n\t\t \tSystem.out.println(\"game over\");\n\t\t return true;\n\t\t }\n\t\t}\n\t\treturn false;\n\t}", "private void visitor(Map map, int row, int column) throws NotValidCellException {\n try {\n // controllo le diagonali non visitati rispetto alla mia posizione attuale\n if(!map.isEmptyCell(row, column)) { //se la cella non è vuota,\n if (row < 1 && column < 1 ) { // controlla alto sinistra della mappa\n downrightcontrol(map, row, column); //controlla basso destra rispetto alla mia posizione attuale\n } else if (row > map.numRow() - 2 && column < 1 ) { //controlla basso sinistra sulla mappa\n uprightcontrol(map, row, column); //controlla alto destra rispetto alla mia posizione attuale\n } else if (row > 0 && row <= map.numRow() - 2 && column < 1) { //controlla centrale sinistra della mappa\n uprightcontrol(map, row, column);\n downrightcontrol(map, row, column);\n } else if (row < 1 && column > map.numColumn() - 2) { //controlla alto destra della mappa\n downleftcontrol(map, row, column); //controlla basso sinistra rispetto alla mia posizione attuale\n } else if (row > map.numRow() - 2 && column > map.numColumn() - 2) { //controlla basso destra della mappa\n upleftcontrol(map, row, column); //controlla alto sinistra rispetto alla mia posizione attuale\n } else if (row > 0 && row <= map.numRow() - 2 && column > map.numColumn() - 2) { //controlla centrale destra della mappa\n upleftcontrol(map, row, column);\n downleftcontrol(map, row, column);\n } else if (row < 1 && column > 0 && column <= map.numColumn() - 2) { //controlla alto centro della mappa\n downleftcontrol(map, row, column);\n downrightcontrol(map, row, column);\n } else if (row > map.numRow() - 2 && column > 0 && column <= map.numColumn() - 2) { //controlla basso centrale della mappa\n upleftcontrol(map, row, column);\n uprightcontrol(map, row, column);\n } else if (row > 0 && row < map.numRow() - 1 && column > 0 && column < map.numColumn() - 1) { //controlla centro mappa\n upleftcontrol(map, row, column);\n uprightcontrol(map, row, column);\n downleftcontrol(map, row, column);\n downrightcontrol(map, row, column);\n }\n }\n } catch (NotValidCellException e) {\n LOGGER.log(Level.SEVERE, e.toString()+\"\\nvisitor method in class ColorDiagonalStrategy\", e);\n throw new NotValidCellException();\n }\n }", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (UtilityPtoVenta.verificaVK_F1(e)) // Reservado para ayuda\n\t\t{\n\t\t} else if (UtilityPtoVenta.verificaVK_F11(e)) {\n \n boolean valor=true;\n if (datosValidados()){\n //JCORTEZ 14.03.09 solo para tipo ticket no se podra modificar la cola de impresion con una que ya exista\n if (VariablesImpresoras.vTipoComp.trim().equalsIgnoreCase(ConstantsPtoVenta.TIP_COMP_TICKET)){\n if(!validaRuta()){\n FarmaUtility.showMessage(this,\"No se puede asignar una ruta de impresion que ya existe.\",txtColaImpresion);\n valor=false;\n }\n }\n if(valor)\n if (JConfirmDialog.rptaConfirmDialog(this,\"¿Está seguro que desea grabar los datos ?\")) {\n try {\n if (existenDatos) {\n actualizarImpresora();\n } else {\n insertarImpresora();\n actualizaNumeracionImpresoras();\n }\n\n FarmaUtility.aceptarTransaccion();\n FarmaUtility.showMessage(this,\"La operación se realizó correctamente\",txtDescImpresora);\n\n } catch (SQLException ex) {\n FarmaUtility.liberarTransaccion();\n FarmaUtility.showMessage(this,\"Error al grabar datos de la impresora: \\n\"+ ex.getMessage(), txtDescImpresora);\n log.error(\"\",ex);\n\n }\n cerrarVentana(true);\n }\n }\n\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n\n\t}", "private void uprightcontrol(Map map, int row, int column) throws NotValidCellException {\n try {\n //se i dadi sono di colore uguale salva i dadi che non sono già salvati nell'arraylist\n if (map.getCell(row, column).getDice().getColor().equalsColor(map.getCell(row - 1, column + 1).getDice().getColor())) {\n if(!temp.contains(map.getCell(row, column).getDice()))\n temp.add(map.getCell(row, column).getDice());\n if(!temp.contains(map.getCell(row - 1, column + 1).getDice())) {\n temp.add(map.getCell(row - 1, column + 1).getDice());\n visitor(map, row - 1, column + 1);\n }\n }\n } catch (NullPointerException e) {\n // va bene così\n }\n }", "boolean isLegal(Square from, Square to) {\r\n Move move = mv(from, to);\r\n if (move == null) {\r\n System.out.println(\"Invalid Move\");\r\n return false;\r\n }\r\n if (to == kingPosition() || map.get(to) != EMPTY) {\r\n System.out.println(\"Invalid Move\");\r\n return false;\r\n }\r\n List<Move> legal = legalMoves(map.get(from));\r\n return legal.contains(move);\r\n }", "private boolean canDamoneBlackSaveOtherLeftBehind(Damone damone) {\n boolean trovataPedinaNeraDaProteggere = false;\n boolean trovataPedinaBiancaAttaccante = false;\n\n //verifico che la casella x+1 e y+1 sia libera\n if(!controllaSeCasellaLibera(damone.getX() - 1, damone.getY() - 1))\n return false;\n\n //verifico che nella casella x+2 e y+2 ci sia una pedina nera da proteggere\n //e che non vengo mangiato\n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 2) == pedinaBianca.getX()\n && (damone.getY() - 2) == pedinaBianca.getY()) \n return false;\n else if(damone.getX() == pedinaBianca.getX()\n && damone.getY() - 2 == pedinaBianca.getY()\n && damone.getX() - 2 >= 0\n && controllaSeCasellaLibera(damone.getX() - 2, damone.getY()))\n return false;\n else if(pedinaBianca instanceof Damone\n && damone.getX() - 2 == pedinaBianca.getX()\n && damone.getY() == pedinaBianca.getY()\n && damone.getY() - 2 >= 0\n && controllaSeCasellaLibera(damone.getX(), damone.getY() - 2))\n return false;\n }\n\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 2) == pedinaNera.getX()\n && (damone.getY() - 2) == pedinaNera.getY()) {\n trovataPedinaNeraDaProteggere = true;\n }\n }\n\n //verifico che nella casella x+3 e y+3 ci sia una pedina bianca che possa mangiare la pedina nera compagna\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 3) == pedinaNera.getX()\n && (damone.getY() - 3) == pedinaNera.getY()) {\n return false;\n }\n }\n \n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 3) == pedinaBianca.getX()\n && (damone.getY() - 3) == pedinaBianca.getY()) {\n trovataPedinaBiancaAttaccante = true;\n }\n }\n\n if (trovataPedinaNeraDaProteggere && trovataPedinaBiancaAttaccante) {\n if(damone.getX() - 1 < 0 || damone.getY() - 1 < 0)\n return false;\n else {\n damone.setXTemp(damone.getX() - 1);\n damone.setYTemp(damone.getY() - 1);\n return true;\n }\n } else \n return false;\n }", "public static boolean isEmpate(char[][] vectM) {\n for (int i = 0; i < vectM.length; i++) {\n for (int j = 0; j < vectM[i].length; j++) {\n if (!isPosicaoPreenchida(i, j, vectM)) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean checkWin() throws Exception {\r\n\t\treturn getOcean().checkWin();\r\n\t}", "boolean isValidMove(int col);", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "@Override\n public Boolean mover(Casa destino, Tabuleiro tabuleiro) {\n \n if(this.verificaDestino(this, destino)) {\n \n if(this.podeMover(this.casa, destino, tabuleiro)){\n \n this.casa.removerPeca();\n destino.colocarPeca(this);\n this.casa = destino;\n \n return true;\n \n }\n return false;\n }\n \n return false;\n }", "private boolean isGameOverAutomatico() {\n\t\tif(this.getEquipesAtivas().size() == 1)\n\t\t\treturn true;\n\t\t\n\t\tboolean temCosmo = false;\n\t\tfor(Equipe equipe : this.getEquipesAtivas()){\n\t\t\tif(equipe.getCosmo() > 0){\n\t\t\t\ttemCosmo = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn !temCosmo;\n\t}", "boolean isLegal(String move) {\n int[][] theStatusBoard;\n if (_playerOnMove == ORANGE) {\n theStatusBoard = _orangeStatusBoard;\n } else {\n theStatusBoard = _violetStatusBoard;\n }\n Pieces thispiece = new Pieces();\n String piecename = move.substring(0, 1);\n int col = getCoordinate(move.substring(1, 2));\n int row = getCoordinate(move.substring(2, 3));\n int ori = Integer.parseInt(move.substring(3, 4));\n int[][] initialPositions = thispiece.getInitialPositions(piecename);\n int[][] finalPositions = thispiece.processPositions(initialPositions, ori);\n int depth = finalPositions.length;\n int length = finalPositions[0].length;\n\n if (row + depth - 1 > 13 || col + length - 1 > 13) {\n System.out.println(\"Your move makes your piece out of the board, try again!\");\n return false;\n }\n\n boolean has1 = false;\n boolean no2 = true;\n\n int i, j;\n for (i = 0; i < depth; i++) {\n for (j = 0; j < length; j++) {\n if (finalPositions[i][j] == 1) {\n if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 1) {\n has1 = true;\n } else if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 2) {\n return false;\n }\n }\n }\n }\n System.out.println(\"has1: \" + has1);\n return has1;\n }", "private boolean didCloseOffNewSpace(Point p, Moves m) {\n if (m == Moves.LEFT) {\n if (isEmpty(p.x - 1, p.y) &&\n (isEmpty(p.x - 1, p.y - 1) || !isEmpty(p.x, p.y - 1)) &&\n (isEmpty(p.x - 1, p.y + 1) || !isEmpty(p.x, p.y + 1))) {\n return false;\n }\n } else if (m == Moves.RIGHT) {\n if (isEmpty(p.x + 1, p.y) &&\n (isEmpty(p.x + 1, p.y - 1) || !isEmpty(p.x, p.y - 1)) &&\n (isEmpty(p.x + 1, p.y + 1) || !isEmpty(p.x, p.y + 1))) {\n return false;\n }\n } else if (m == Moves.UP) {\n if (isEmpty(p.x, p.y + 1) &&\n (isEmpty(p.x - 1, p.y + 1) || !isEmpty(p.x - 1, p.y)) &&\n (isEmpty(p.x + 1, p.y + 1) || !isEmpty(p.x + 1, p.y))) {\n return false;\n }\n } else if (m == Moves.DOWN) {\n if (isEmpty(p.x, p.y - 1) &&\n (isEmpty(p.x - 1, p.y - 1) || !isEmpty(p.x - 1, p.y)) &&\n (isEmpty(p.x + 1, p.y - 1) || !isEmpty(p.x + 1, p.y))) {\n return false;\n }\n }\n return true;\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "public boolean isGameOver(int x, int y, int z){\n Coords position = new Coords(x,y,z);\n if(!position.isCorrect) return false;\n for(int i=-1; i<2; i++)\n for(int j=-1; j<2; j++)\n for(int k=-1; k<2; k++){\n if(i==0 && j==0 && k==0) continue;\n Coords c2 = new Coords(position.getX()+i,position.getY()+j,position.getZ()+k);\n Coords c3 = new Coords(position.getX()+2*i,position.getY()+2*j,position.getZ()+2*k);\n Coords c4 = new Coords(position.getX()+3*i,position.getY()+3*j,position.getZ()+3*k);\n if(c2.isCorrect && c3.isCorrect && c4.isCorrect){\n if(board[position.getX()][position.getY()][position.getZ()]==\n board[c2.getX()][c2.getY()][c2.getZ()]&&board[c2.getX()][c2.getY()][c2.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]&&board[c4.getX()][c4.getY()][c4.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]) return true;}\n c4 = new Coords(position.getX()-i,position.getY()-j,position.getZ()-k);\n if(c2.isCorrect && c3.isCorrect && c4.isCorrect){\n if(board[position.getX()][position.getY()][position.getZ()]==\n board[c2.getX()][c2.getY()][c2.getZ()]&&board[c2.getX()][c2.getY()][c2.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]&&board[c4.getX()][c4.getY()][c4.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]) return true;}\n }\n return false;\n }", "public boolean iliskMasaEkleme(int masa_no, int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"insert into ilisk_masa (kullanici_no, masa_no) values (\" + kullanici_no + \", \" + masa_no + \")\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n ps.close();\r\n \r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == vistaCarrera.btnGuardar) { \n //primero compara si estan vacios los campos de texto\n if (!vistaCarrera.txtId.getText().equals(\"\") && !vistaCarrera.txtNombre.equals(\"\") && \n !vistaCarrera.txtFacultad.equals(\"\")) {\n carrera.setIdCarrera(vistaCarrera.txtId.getText());\n carrera.setNombreCarrera(vistaCarrera.txtNombre.getText());\n carrera.setFacultad(vistaCarrera.txtFacultad.getText());\n //De ser valida la accion, se guarda el objeto y se muestra el mensaje\n if (conC.registrar(carrera)) {\n JOptionPane.showMessageDialog(null, \"Carrera agregada correctamente\");\n limpiar();\n } //De lo contrario se muestra el mensaje de error\n else {\n JOptionPane.showMessageDialog(null, \"No se ha agregado la carrera\");\n limpiar();\n }\n }\n else{\n //mandara un mensaje al usuario si los campos estan vacios\n vistaCarrera.labelMsg.setText(\"No se aceptan campos vacíos\");\n }\n } \n }", "private boolean canDamoneBlackSaveOtherRightBehind(Damone damone) {\n boolean trovataPedinaNeraDaProteggere = false;\n boolean trovataPedinaBiancaAttaccante = false;\n\n //verifico che la casella x+1 e y+1 sia libera\n if(!controllaSeCasellaLibera(damone.getX() - 1, damone.getY() + 1))\n return false;\n\n //verifico che nella casella x-2 e y+2 ci sia una pedina nera da proteggere\n //e che non vengo mangiato\n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 2) == pedinaBianca.getX()\n && (damone.getY() + 2) == pedinaBianca.getY())\n return false;\n else if(damone.getX() == pedinaBianca.getX()\n && damone.getY() + 2 == pedinaBianca.getY()\n && damone.getX() - 2 >= 0\n && controllaSeCasellaLibera(damone.getX() - 2, damone.getY()))\n return false;\n else if(pedinaBianca instanceof Damone\n && damone.getX() - 2 == pedinaBianca.getX()\n && damone.getY() == pedinaBianca.getY()\n && damone.getY() + 2 <= 7\n && controllaSeCasellaLibera(damone.getX(), damone.getY() + 2))\n return false; \n }\n\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 2) == pedinaNera.getX()\n && (damone.getY() + 2) == pedinaNera.getY()) {\n trovataPedinaNeraDaProteggere = true;\n }\n }\n\n //verifico che nella casella x+3 e y+3 ci sia una pedina bianca che possa mangiare la pedina nera compagna\n for (Pedina pedinaNera : arrayPedineNere) {\n if ((damone.getX() - 3) == pedinaNera.getX()\n && (damone.getY() + 3) == pedinaNera.getY()) {\n return false;\n }\n }\n \n for (Pedina pedinaBianca : arrayPedineBianche) {\n if ((damone.getX() - 3) == pedinaBianca.getX()\n && (damone.getY() + 3) == pedinaBianca.getY()) {\n trovataPedinaBiancaAttaccante = true;\n }\n }\n\n if (trovataPedinaNeraDaProteggere && trovataPedinaBiancaAttaccante) {\n if(damone.getX() - 1 < 0 || damone.getY() + 1 > 7)\n return false;\n else {\n damone.setXTemp(damone.getX() - 1);\n damone.setYTemp(damone.getY() + 1);\n return true;\n }\n } else \n return false;\n }", "public boolean textVacio(JTextField txtDNI, JPasswordField pwsPass, JTextField txtNom,\n JTextField txtApe, JTextField txtTele, JTextField txtCorreo, JComboBox cbx, JLabel lblMensaje) {\n\n try {\n\n boolean veri = txtDNI.getText().trim().isEmpty() || pwsPass.getText().trim().isEmpty() || txtNom.getText().trim().isEmpty()\n || txtApe.getText().trim().isEmpty() || txtTele.getText().trim().isEmpty() || txtCorreo.getText().trim().isEmpty()\n || cbx.getSelectedIndex() == 0;\n\n if (veri == true) {\n lblMensaje.setText(\"TODOS LOS CAMPOS SON NECESARIOS\".toUpperCase());\n return true;\n } else {\n lblMensaje.setText(\"\".toUpperCase());\n return false;\n }\n } catch (Exception e) {\n System.err.println(\"Erro bro :(\");\n }\n return true;\n }", "public boolean checkMove(int move)\n\t{\n\t\tif (columns[move] < 6)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "@Test\n public void test12() { \n Board board12 = new Board();\n board12.put(1,3,1);\n \n assertFalse(board12.checkWin());\n }", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void hasKey() {\n\t\tif (checkKey(Integer.parseInt(getCurrentPositionX()),Integer.parseInt(getCurrentPositionY()))) {\n\t\t\tDisplay.setKey(\"Yes\");\n\t\t\tDisplay.setMessage(\"You have found a key! Try to go through a house!\");\n\t\t}\n\t}", "public boolean poistaMatkaNimella(String nimi, String kansio) {\n int pois = -1;\n for (int i = 0; i < matkat.size(); i++) {\n if (nimi.equals(matkat.get(i).getMatkanNimi())) {\n pois = i;\n }\n }\n\n if (pois != -1) {\n matkat.remove(pois);\n File poistettava = new File(kansio + \"/\" + nimi + \".txt\");\n boolean ok = poistettava.delete();\n return true;\n }\n\n return false;\n }", "public boolean validarSenha(){ //boleano\n boolean retorno = false; //variavel boleana ja recebendo false\n\n int senhaA, senhaB;\n\n senhaA = Integer.parseInt(editSenhaA.getText().toString());\n senhaB = Integer.parseInt(editSenhaB.getText().toString());\n\n retorno = (senhaA == senhaB);\n\n\n return retorno; //reorna o proprio retorno\n }", "public boolean alterar(GrauParentesco grauParentesco) throws Exception;", "private boolean hasPossibleMove()\n {\n for(int i=0; i<FieldSize; ++i)\n {\n for(int j=1; j<FieldSize; ++j)\n {\n if(field[i][j] == field[i][j-1])\n return true;\n }\n }\n for(int j=0; j<FieldSize; ++j)\n {\n for(int i=1; i<FieldSize; ++i)\n {\n if(field[i][j] == field[i-1][j])\n return true;\n }\n }\n return false;\n }", "private boolean checkMoveBase(Pieces piece, Coordinates from, Coordinates to) {\n\t\t//seleziono una posizione senza pedina\n\t\tif ( piece == null )\n\t\t\treturn false;\n\n\t\t//se la posizione tu non è contenuta nelle soluzioni valide della pedina from\n\t\tif ( !piece.validPositions(from).contains(to) )\n\t\t\treturn false;\n\n\t\t//se la posizione di destinazione contiene una pedina dello stesso colore\n\t\treturn !( chessboard.at(to) != null && chessboard.at(to).getColour().equals(piece.getColour()));\n\t}", "public static boolean checkInputTextMap(int index, int gridPaneSize, Map<Integer, Boolean> map){\n for (int i = index; i <gridPaneSize ; i = i+3) {\n if (!map.get(i))\n return false;\n }\n return true;\n }", "private boolean fail(Piece piece) {\n\n // To store the moving over\n int localColumnPos = columnPos - piece.getShift();\n\n // If the piece will go outside the bounds of the board, return false\n if (piece.getMatrix().length + rowPos > board.length ||\n piece.getMatrix()[0].length + localColumnPos > board[0].length || localColumnPos < 0) return true;\n\n // Check for no true true collisions\n for (int i = 0; i < piece.getMatrix().length; i++) {\n for (int j = 0; j < piece.getMatrix()[0].length; j++) {\n // If there is a true + true anywhere, do not add piece\n if (piece.getMatrix()[i][j] && board[i + rowPos][j + localColumnPos]) return true;\n }\n }\n return false;\n }", "private boolean checkFinalPuzzle() throws Exception {\n for(int i = 0; i < puzzle.getColumns(); ++i) {\n var clues = puzzle.getColumnClue(i);\n var solver_col = searchBoard.getFilledGroups(i, TraversalType.COLUMN);\n if(clues.size() != solver_col.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_col.get(j))) {\n return false;\n }\n }\n }\n for(int i = 0; i < puzzle.getRows(); ++i) {\n var clues = puzzle.getRowClue(i);\n var solver_row = searchBoard.getFilledGroups(i, TraversalType.ROW);\n if(clues.size() != solver_row.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_row.get(j))) {\n return false;\n }\n }\n }\n return true;\n }", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "private boolean saveCGuias() {\r\n //Se asigna el valor del tipo de procedimiento que viene de ser ejecutado,\r\n // 1 si es una NUEVA guia\r\n // 2 si es una guia MODIFICADA\r\n int proceso = tipoOperacion; \r\n\r\n //Ejecuta los procesos predeterminados para el guardado de la guia\r\n setCurrentOperation();\r\n //Se asignan los valores del objeto \r\n boolean result = false;\r\n log_CGuias log_cguias = new log_CGuias();\r\n\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n log_cguias.setNumguia(tb_guias.getItems().get(i).getGuias()); \r\n log_cguias.setFeccaja(Date.valueOf(dt_relacion.getValue()));\r\n\r\n result = \r\n Ln.getInstance().save_log_CGuias_caja(log_cguias, proceso, i, ScreenName);\r\n }\r\n\r\n //Si el Resultado es correcto\r\n if(result){\r\n //Se Notifica al usuario\r\n tf_nroguia.setText(Datos.getNumRela());\r\n Gui.getInstance().showMessage(\"La \" + ScreenName + \" se ha Guardado Correctamente!\", \"I\");\r\n return true;\r\n } \r\n return true;\r\n }", "public void revisaColisionMapa() {\n\t\tactualCol = (int)x / tamTile;\n\t\tactualRen = (int)y / tamTile;\n\t\t\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\t\t\n\t\txtemp = x;\n\t\tytemp = y;\n\t\t\n\t\tcalcularEsquinas(x, ydest);\n\t\tif(dy < 0) {\n\t\t\tif(arribaIzq || arribaDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = actualRen * tamTile + claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\tif(dy > 0) {\n\t\t\tif(abajoIzq || abajoDer) {\n\t\t\t\tdy = 0;\n\t\t\t\tcayendo = false;\n\t\t\t\tytemp = (actualRen + 1) * tamTile - claltura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcalcularEsquinas(xdest, y);\n\t\tif(dx < 0) {\n\t\t\tif(arribaIzq || abajoIzq) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = actualCol * tamTile + clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif(dx > 0) {\n\t\t\tif(arribaDer || abajoDer) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (actualCol + 1) * tamTile - clanchura / 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!cayendo) {\n\t\t\tcalcularEsquinas(x, ydest + 1);\n\t\t\tif(!abajoIzq && !abajoDer) {\n\t\t\t\tcayendo = true;\n\t\t\t}\n\t\t}\n\t}", "@Test\r\n public void callingMovePossibleWhenTryingToTakeAnOpponentPieceWith2MarkersOnShouldReturnFalse() {\n player1.movePiece(12, 11, board);\r\n player1.movePiece(12, 11, board);\r\n\r\n player2.movesLeft.moves.add(2);\r\n\r\n // Then\r\n assertFalse(player2.isMovePossible(13, 11, board));\r\n }", "@Test\n public void moreThanOneCheckerOnToLocation() {\n\n assertTrue(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.R1, Location.R3));\n game.nextTurn();\n // to der gerne skulle vaere lovlige og stemme med terningerne\n assertTrue(game.move(Location.R6, Location.R5));\n assertTrue(game.move(Location.R8, Location.R6));\n game.nextTurn();\n assertTrue(game.move(Location.R2, Location.R5));\n assertTrue(game.move(Location.R3, Location.R7));\n game.nextTurn();\n // der staar nu to sorte paa R4\n assertFalse(game.move(Location.R6, Location.R3));\n }", "public boolean semConflitos(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(matriz[i][j] != 0){\n if(!verificaQuadrante(i,j) || !verificaLinhaEColuna(i, j)){\n return false;\n } \n }\n }\n }\n\n return true;\n }" ]
[ "0.72908217", "0.57202166", "0.5605954", "0.5539856", "0.5503956", "0.53997177", "0.53141236", "0.5311781", "0.5300107", "0.52756745", "0.52735406", "0.5264744", "0.5256259", "0.5251697", "0.52513427", "0.5236532", "0.52092034", "0.5196929", "0.5178811", "0.517862", "0.51642764", "0.51623625", "0.51511776", "0.5127442", "0.51049674", "0.5103637", "0.5101432", "0.510073", "0.509387", "0.50906456", "0.50903106", "0.5084786", "0.5079768", "0.5074183", "0.50734746", "0.50670516", "0.5066598", "0.5059981", "0.504373", "0.504301", "0.5042335", "0.5028358", "0.50195724", "0.5016375", "0.50142735", "0.5006671", "0.49945617", "0.4982143", "0.49699688", "0.49650687", "0.4959015", "0.49533886", "0.4950606", "0.4934703", "0.49273372", "0.49251297", "0.49204296", "0.49163142", "0.48986748", "0.48985282", "0.48907754", "0.48895246", "0.48818842", "0.48796117", "0.48774147", "0.48677868", "0.48651892", "0.48596466", "0.48561588", "0.48494035", "0.4846344", "0.48442462", "0.4843946", "0.4823401", "0.4821843", "0.48163286", "0.48120242", "0.48109308", "0.48016164", "0.4799206", "0.47978392", "0.47882885", "0.4784927", "0.4781092", "0.47801158", "0.4775702", "0.47725025", "0.47594318", "0.47575673", "0.4755355", "0.47528127", "0.47508365", "0.47491682", "0.47483075", "0.47466904", "0.47433946", "0.47406954", "0.47404552", "0.47376117", "0.4735856" ]
0.7004799
1
Verifica se um objeto nao existe num Set. Se nao existir, lanca um erro com a mensagem passada.
public void verificaContem(Object obj, Set<?> set, String mensagem) { if (set.contains(obj)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaNaoContem(Object obj, Set<?> set, String mensagem) {\n if (!set.contains(obj)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public int sizeOfSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).size;\n \t}\n \t\n // If here, no such such data object; throw exception.\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj );\n }", "@Override\r\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\n\t}", "@Test\n\tpublic void testFind_Value_Positive() throws Exception {\n\t\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t\t assertTrue(setarray.isMember(4) );\t \n\t}", "@Test\n public void AfterAddingDuplicatetheSizeShouldBeOne() throws MySetException {\n set.add(1);\n assertThat(set.size(), is(1));\n }", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "DattySet getSet(String name, Properties properties, SetExistsAction action);", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public void verificarExistenciaIPTU(String numeroIptu, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.IPTU, numeroIptu));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.IPTU, numeroIptu));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}", "boolean hasExists();", "@Test\n\tpublic void testFind_Value_Negative() throws Exception {\n\t\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t\t assertFalse(setarray.isMember(8) );\t \n\t}", "@Override\n\tpublic boolean existe(String cpf) throws CampoObrigatorioException,\n\t\t\tClienteNaoEncontradoException, CPFInvalidoException, SQLException {\n\t\tfor(ClienteFisico c : set){\n\t\t\tif(cpf.equals(c.getCpf())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n public boolean isExist(Object o) {\n return true;\n }", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "public boolean exists( Integer idConge ) ;", "public static boolean existe(Object o){\n\t\tboolean existe = !naoExiste(o);\n\t\treturn existe;\n\t}", "public boolean numberExists(String number) throws SQLException {\r\n\t\tint entryCount = 0;\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Auf der Datenbank wird abgefragt, wie viele Datensätze diese\r\n\t\t// Kontonummer haben. Der Wert kann 0 oder 1 sein.\r\n\t\tString sql = \"SELECT count(*) FROM account WHERE number = '\" + number + \"'\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tif (resultSet.next()) {\r\n\t\t\tentryCount = resultSet.getInt(1);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\tif (entryCount == 0) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean isSetTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPE$32) != 0;\r\n }\r\n }", "public void verificarExistenciaCELPE(String numeroCelp, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.NUMERO_CELPE, numeroCelp));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.NUMERO_CELPE, numeroCelp));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}", "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "@Test\n public void testCheckExists()\n throws SQLException, ClassNotFoundException, InstantiationException,\n IllegalAccessException\n {\n int existingQuizId = 2;\n int unexistingQuizId = 945273;\n try {\n QuizModel.checkExists(existingQuizId);\n }\n catch (NoQuizFoundException e) {\n fail(\"A quiz should have been found.\");\n }\n try {\n QuizModel.checkExists(unexistingQuizId);\n fail(\"NO quiz should have been found.\");\n }\n catch (NoQuizFoundException e) {\n \n }\n }", "public boolean isSetCoResultadoExameFundoOlho() {\n return EncodingUtils.testBit(__isset_bitfield, __CORESULTADOEXAMEFUNDOOLHO_ISSET_ID);\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 boolean isSetNumUnique() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMUNIQUE_ISSET_ID);\n\t}", "boolean getExists();", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "public boolean inSameSet( T obj1, T obj2 )\n {\n // Find the root of each object; if either is not contained, the root\n // value will be null, and we throw an exception.\n Node root1 = getRoot(nodes.get(obj1));\n Node root2 = getRoot(nodes.get(obj2));\n if ( root1 == null && root2 == null )\n throw new NoSuchElementException( \"Sets do not contain either object: \" + obj1 + \", \" + obj2 );\n if ( root1 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj1 );\n if ( root2 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj2 );\n // If here, then have non-null root for each input; check if same Node.\n return root1 == root2;\n }", "public boolean isSetUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(UNIQUENAME$10) != 0;\r\n }\r\n }", "public boolean exists()\n\t{\n\n\t\treturn true;\n\t}", "public boolean isExistant(Noeud noeud)\t{\r\n \treturn noeud != null && noeuds.containsValue(noeud);\r\n }", "public boolean isSetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(EMBL$10) != 0;\r\n }\r\n }", "@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}", "public int existeCuenta(int numCuenta){\n //mostrarCuentas();\n int j=-1;\n for(int i=0;i<it;i++){\n \n if(cuentas[i].getNroCuenta()==numCuenta){\n \n j=i;\n }\n }\n return j;\n }", "public int IsExistNomComptePers(String nomGroupe) throws SQLException{\n\t\t\tString req =\"Select count(*) from Groupe where NomGroupe= ?\";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tps.setString(1,nomGroupe);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\treturn rs.getInt(1);\t\n\t\t\t\n\t\t}", "boolean exists(Curso curso) throws BusinessException;", "boolean hasSharedSet();", "public boolean isSetQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(QUANTITY$10) != 0;\n }\n }", "boolean exists();", "boolean exists();", "public abstract boolean exists();", "public boolean getExists();", "public boolean isExist(Serializable id);", "@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}", "public boolean isSetErrors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ERRORS$4) != 0;\r\n }\r\n }", "public boolean exist() {\n\t\treturn false;\n\t}", "private boolean isIndexExist(int index) {\n return index >= 0 && index < size();\n }", "public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n\t\t{\n\t\t\tind = indexOf(set.elementIdAt(i));\n\t\t\ti++;\n\t\t}\n\t\tif (-1==ind) return false;\n\t\telse return true;\n\t}", "public boolean check_hash() {\n HashSet<E> realSet = new HashSet(this);\n return realSet.size() == this.size();\n }", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "public boolean isSetId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ID$6) != 0;\n }\n }", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "boolean hasSetProperty();", "public boolean isExist(int conId) throws AppException;", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "public boolean isSetWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WASNOTGIVEN$4) != 0;\n }\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "boolean isCustomiseSet();", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "public boolean isSetObjId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJID_ISSET_ID);\r\n }", "@Override\r\n\tpublic int size() {\n\t\treturn set.size();\r\n\t}", "public boolean exists( Conge conge ) ;", "public boolean isSetExceptionId() {\n return EncodingUtils.testBit(__isset_bitfield, __EXCEPTIONID_ISSET_ID);\n }", "public int isDuplicate(Member m) {\r\n\t\tfor(int i=0; i<ms.size();i++) {\r\n\t\t\tif(ms.get(i).getNumber().equals(m.getNumber())) {return i;}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public static boolean exists(){\n \t\treturn everbie != null;\n \t}", "protected void checkIsSet(Object data, String error)\r\n\t\t\tthrows InsufficientArticleDataException {\r\n\t\t\r\n\t\tif (data == null) {\r\n\t\t\tthrow new InsufficientArticleDataException(error);\r\n\t\t}\r\n\t}", "public SymbolNotFoundInSetException(String stringReprOfNotFoundSymbol, SymbolSet<?> set) {\n\t\tsuper(\"Symbol '\" + stringReprOfNotFoundSymbol + \"' in not found in \" + set);\n\n\t\tthis.stringReprOfNotFoundSymbol = stringReprOfNotFoundSymbol;\n\t\tthis.set = set;\n\t}", "public static <T extends Comparable<T>> boolean testSet(ISet<T> set, String name,\n T[] data, T _invalid) {\n for (int i = 0; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n boolean contains = set.contains(_invalid);\n boolean removed = set.remove(_invalid);\n if (contains || removed) {\n System.err.println(name+\" invalidity check. contains=\" + contains + \" removed=\" + removed);\n Utils.handleError(_invalid,set);\n return false;\n }\n\n int size = set.size();\n for (int i = 0; i < size; i++) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != data.length-(i+1))) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n // Add half, remove a quarter, add three-quarters, remove all\n int quarter = data.length/4;\n int half = data.length/2;\n for (int i = 0; i < half; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = (half-1); i >= quarter; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = quarter; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = data.length-1; i >= 0; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if ((!removed || set.contains(item))) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n if (set.size() != 0) {\n System.err.println(name+\" YIKES!! a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n \n return true;\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testCreateSetFromNull() {\n\t\t\ttestingSet = new IntegerSet(null); \r\n\t\t}", "public abstract boolean exists() throws AccessException;", "public boolean contains(int key) {\n \tfor(int k:set){\n \tif(k==key){\n \t\treturn true;\n \t}\n }\n\t\treturn false;\n }", "void checkNotFound(Integer id);", "Boolean findExistsCampania(GestionPrecioID id) ;", "@Override\r\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\r\n\t}", "boolean hasN();", "boolean hasN();", "public T getSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).data;\n \t}\n // If here, no such data object; throw exception.\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj );\n }", "@Test\r\n\tpublic void testMultset() {\n\t\tMultiset<Integer> multiSet = HashMultiset.create();\r\n\t\tmultiSet.add(10);\r\n\t\tmultiSet.add(30);\r\n\t\tmultiSet.add(30);\r\n\t\tmultiSet.add(40);\r\n\r\n\t\tassertEquals(2, multiSet.count(30));\r\n\t\tassertEquals(4, multiSet.size());\r\n\t}", "@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }", "private static boolean duplicateSetName(String setName){\n boolean duplicate = false;\n for (Set set : SetManager.getInstance().getSets()) {\n if (set.getName() != null) {\n if (set.getName().equals(setName)) {\n duplicate = true;\n }\n }\n }\n return duplicate;\n }", "@Override\n public int size() {\n return theSet.size();\n }", "public boolean existeix_Par(String paraula) {\n \tfor (String p : this.M.keySet()) {\n \t\tHashMap<String, Integer> doc = this.M.get(p);\n \t\tif (doc.containsKey(paraula)) return true;\n \t}\n \treturn false;\n }", "public boolean isSetFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMNUMBER$2) != 0;\n }\n }", "public boolean isNumberSet(int number) {\n int[] pos = boardMapper.get(number);\n String c = boardArray[pos[0]][pos[1]];\n return c.equalsIgnoreCase(\"X\") || c.equalsIgnoreCase(\"O\");\n }", "public boolean isSetSoggettoEmittente()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(SOGGETTOEMITTENTE$10) != 0;\r\n }\r\n }", "@Test\n\tpublic void addSameValueTwice() {\n\t\tXSet xset = new XSet(3);\n\t\txset.add(1);\n\t\txset.add(1);\n\t\tassertTrue(xset.getSize() == 1);\n\t}", "@Override\n\tpublic void exist() {\n\t\t\n\t}", "@Test(expected = NoBetsMadeException.class)\n public void betsSetIsNullOrEmpty() throws NoBetsMadeException {\n Set<Bet> bets=null;\n //test when set is null\n gameRule.determineWinner(1,bets);\n //test when set is empty\n bets=new HashSet<Bet>();\n gameRule.determineWinner(1,bets);\n }", "public boolean existe(Producto producto);", "boolean exists(Integer key);", "public boolean existe(int data) {\n NodoRelacion aux = this.first;\n while (aux != null) {\n if (aux.getID_actor() == data) {\n return true;\n }\n aux = aux.getPnext();\n\n }\n return false;\n }", "public boolean isSetCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CODE$6) != 0;\n }\n }", "@Override\r\n\tpublic <S extends Employee> boolean exists(Example<S> arg0) {\n\t\treturn false;\r\n\t}", "public int size() {\n\t\treturn set.size();\n\t}", "public boolean contains(Integer num){\n\t\treturn containsRec(num, root);\n\t}", "public abstract boolean doesExist();", "public boolean ValidarTemaSeguido(String Id_Usuario, int Id_Tema){\n try{\r\n Statement smtm = _cn.createStatement();\r\n String query = \"CALL ValidarTemaSeguido('\"+Id_Usuario+\"','\"+Id_Tema+\"')\";\r\n \r\n ResultSet res = smtm.executeQuery(query);\r\n \r\n while(res.next()){\r\n int count = res.getInt(\"rowcount\");\r\n return count == 1;\r\n }\r\n }\r\n catch(SQLException e){\r\n return false;\r\n }\r\n return false;\r\n }", "public boolean isExists() {\n\t\treturn exists();\n\t}" ]
[ "0.6083511", "0.5993349", "0.5725305", "0.5653197", "0.5624254", "0.55827403", "0.5503247", "0.5502513", "0.54844815", "0.54819334", "0.54775596", "0.5457455", "0.539219", "0.5320676", "0.53172344", "0.5298731", "0.5240982", "0.519531", "0.5188959", "0.518781", "0.5182286", "0.5181491", "0.5179521", "0.5174844", "0.51543725", "0.51479477", "0.51456565", "0.5126795", "0.5114931", "0.51011735", "0.5095863", "0.5094021", "0.50936794", "0.5091347", "0.5088785", "0.50566196", "0.5050124", "0.50474185", "0.5040034", "0.5040034", "0.50315875", "0.50225586", "0.501838", "0.5015319", "0.50116974", "0.5009846", "0.5007142", "0.49997535", "0.49852", "0.49823326", "0.49656874", "0.49656874", "0.49628323", "0.49568075", "0.4954367", "0.49538362", "0.495067", "0.49460563", "0.4933069", "0.49318683", "0.49308512", "0.4928923", "0.49192852", "0.49191248", "0.49170265", "0.49062225", "0.49047846", "0.48942608", "0.48890924", "0.48854125", "0.48835906", "0.48790687", "0.48774853", "0.4866209", "0.48569238", "0.48480153", "0.48442638", "0.48442638", "0.48442608", "0.48432967", "0.48338464", "0.4830607", "0.48266453", "0.48204556", "0.4810645", "0.4808259", "0.4804132", "0.47976676", "0.4797039", "0.47950032", "0.47910723", "0.4789807", "0.47897235", "0.47878465", "0.47845688", "0.478124", "0.4777803", "0.47765133", "0.4775479", "0.47713888" ]
0.6174912
0
Verifica se um objeto existe num Set. Se existir, lanca um erro com a mensagem passada.
public void verificaNaoContem(Object obj, Set<?> set, String mensagem) { if (!set.contains(obj)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaContem(Object obj, Set<?> set, String mensagem) {\n if (set.contains(obj)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public int sizeOfSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).size;\n \t}\n \t\n // If here, no such such data object; throw exception.\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj );\n }", "@Override\r\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\r\n\t}", "@Test\n public void AfterAddingDuplicatetheSizeShouldBeOne() throws MySetException {\n set.add(1);\n assertThat(set.size(), is(1));\n }", "@Test\n\tpublic void testFind_Value_Positive() throws Exception {\n\t\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t\t assertTrue(setarray.isMember(4) );\t \n\t}", "@Override\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\n\t}", "public void verificarExistenciaIPTU(String numeroIptu, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.IPTU, numeroIptu));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.IPTU, numeroIptu));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}", "DattySet getSet(String name, Properties properties, SetExistsAction action);", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testFind_Value_Negative() throws Exception {\n\t\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t\t assertFalse(setarray.isMember(8) );\t \n\t}", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "boolean hasExists();", "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 }", "@Override\n\tpublic boolean existe(String cpf) throws CampoObrigatorioException,\n\t\t\tClienteNaoEncontradoException, CPFInvalidoException, SQLException {\n\t\tfor(ClienteFisico c : set){\n\t\t\tif(cpf.equals(c.getCpf())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isSetNumUnique() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMUNIQUE_ISSET_ID);\n\t}", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "public boolean isSetTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPE$32) != 0;\r\n }\r\n }", "public void verificarExistenciaCELPE(String numeroCelp, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.NUMERO_CELPE, numeroCelp));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.NUMERO_CELPE, numeroCelp));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}", "public boolean exists( Integer idConge ) ;", "@Override\n public boolean isExist(Object o) {\n return true;\n }", "public boolean isSetCoResultadoExameFundoOlho() {\n return EncodingUtils.testBit(__isset_bitfield, __CORESULTADOEXAMEFUNDOOLHO_ISSET_ID);\n }", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "public boolean isSetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(EMBL$10) != 0;\r\n }\r\n }", "public boolean numberExists(String number) throws SQLException {\r\n\t\tint entryCount = 0;\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Auf der Datenbank wird abgefragt, wie viele Datensätze diese\r\n\t\t// Kontonummer haben. Der Wert kann 0 oder 1 sein.\r\n\t\tString sql = \"SELECT count(*) FROM account WHERE number = '\" + number + \"'\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tif (resultSet.next()) {\r\n\t\t\tentryCount = resultSet.getInt(1);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\tif (entryCount == 0) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean isSetExceptionId() {\n return EncodingUtils.testBit(__isset_bitfield, __EXCEPTIONID_ISSET_ID);\n }", "public static boolean existe(Object o){\n\t\tboolean existe = !naoExiste(o);\n\t\treturn existe;\n\t}", "public boolean isSetErrors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ERRORS$4) != 0;\r\n }\r\n }", "public int IsExistNomComptePers(String nomGroupe) throws SQLException{\n\t\t\tString req =\"Select count(*) from Groupe where NomGroupe= ?\";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tps.setString(1,nomGroupe);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\treturn rs.getInt(1);\t\n\t\t\t\n\t\t}", "@Test\n public void testCheckExists()\n throws SQLException, ClassNotFoundException, InstantiationException,\n IllegalAccessException\n {\n int existingQuizId = 2;\n int unexistingQuizId = 945273;\n try {\n QuizModel.checkExists(existingQuizId);\n }\n catch (NoQuizFoundException e) {\n fail(\"A quiz should have been found.\");\n }\n try {\n QuizModel.checkExists(unexistingQuizId);\n fail(\"NO quiz should have been found.\");\n }\n catch (NoQuizFoundException e) {\n \n }\n }", "public boolean isSetQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(QUANTITY$10) != 0;\n }\n }", "public boolean isSetUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(UNIQUENAME$10) != 0;\r\n }\r\n }", "boolean isCustomiseSet();", "boolean getExists();", "public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n\t\t{\n\t\t\tind = indexOf(set.elementIdAt(i));\n\t\t\ti++;\n\t\t}\n\t\tif (-1==ind) return false;\n\t\telse return true;\n\t}", "public boolean exists()\n\t{\n\n\t\treturn true;\n\t}", "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "public boolean isNumberSet(int number) {\n int[] pos = boardMapper.get(number);\n String c = boardArray[pos[0]][pos[1]];\n return c.equalsIgnoreCase(\"X\") || c.equalsIgnoreCase(\"O\");\n }", "boolean hasSharedSet();", "public SymbolNotFoundInSetException(String stringReprOfNotFoundSymbol, SymbolSet<?> set) {\n\t\tsuper(\"Symbol '\" + stringReprOfNotFoundSymbol + \"' in not found in \" + set);\n\n\t\tthis.stringReprOfNotFoundSymbol = stringReprOfNotFoundSymbol;\n\t\tthis.set = set;\n\t}", "boolean hasSetProperty();", "@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "public boolean isSetId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ID$6) != 0;\n }\n }", "public boolean inSameSet( T obj1, T obj2 )\n {\n // Find the root of each object; if either is not contained, the root\n // value will be null, and we throw an exception.\n Node root1 = getRoot(nodes.get(obj1));\n Node root2 = getRoot(nodes.get(obj2));\n if ( root1 == null && root2 == null )\n throw new NoSuchElementException( \"Sets do not contain either object: \" + obj1 + \", \" + obj2 );\n if ( root1 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj1 );\n if ( root2 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj2 );\n // If here, then have non-null root for each input; check if same Node.\n return root1 == root2;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}", "public int existeCuenta(int numCuenta){\n //mostrarCuentas();\n int j=-1;\n for(int i=0;i<it;i++){\n \n if(cuentas[i].getNroCuenta()==numCuenta){\n \n j=i;\n }\n }\n return j;\n }", "public boolean isSetObjId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJID_ISSET_ID);\r\n }", "public boolean isExistant(Noeud noeud)\t{\r\n \treturn noeud != null && noeuds.containsValue(noeud);\r\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testCreateSetFromNull() {\n\t\t\ttestingSet = new IntegerSet(null); \r\n\t\t}", "public boolean isSetWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WASNOTGIVEN$4) != 0;\n }\n }", "public boolean isExist(Serializable id);", "private boolean isIndexExist(int index) {\n return index >= 0 && index < size();\n }", "public boolean getExists();", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}", "public static <T extends Comparable<T>> boolean testSet(ISet<T> set, String name,\n T[] data, T _invalid) {\n for (int i = 0; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n boolean contains = set.contains(_invalid);\n boolean removed = set.remove(_invalid);\n if (contains || removed) {\n System.err.println(name+\" invalidity check. contains=\" + contains + \" removed=\" + removed);\n Utils.handleError(_invalid,set);\n return false;\n }\n\n int size = set.size();\n for (int i = 0; i < size; i++) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != data.length-(i+1))) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n // Add half, remove a quarter, add three-quarters, remove all\n int quarter = data.length/4;\n int half = data.length/2;\n for (int i = 0; i < half; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = (half-1); i >= quarter; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = quarter; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = data.length-1; i >= 0; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if ((!removed || set.contains(item))) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n if (set.size() != 0) {\n System.err.println(name+\" YIKES!! a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n \n return true;\n }", "public boolean exist() {\n\t\treturn false;\n\t}", "public boolean isSetFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMNUMBER$2) != 0;\n }\n }", "boolean exists();", "boolean exists();", "public boolean check_hash() {\n HashSet<E> realSet = new HashSet(this);\n return realSet.size() == this.size();\n }", "@Override\r\n\tpublic int size() {\n\t\treturn set.size();\r\n\t}", "public boolean isSetCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CODE$6) != 0;\n }\n }", "protected void checkIsSet(Object data, String error)\r\n\t\t\tthrows InsufficientArticleDataException {\r\n\t\t\r\n\t\tif (data == null) {\r\n\t\t\tthrow new InsufficientArticleDataException(error);\r\n\t\t}\r\n\t}", "public MenuInexistantException(int num)\n {\n super(\"Un menu à \"+num+\" plats n'est pas disponible dans ce restaurant.\");\n numeroMenu = num;\n }", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "public boolean contains(int key) {\n \tfor(int k:set){\n \tif(k==key){\n \t\treturn true;\n \t}\n }\n\t\treturn false;\n }", "public abstract boolean exists();", "public boolean isSetIdVehiculo() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __IDVEHICULO_ISSET_ID);\r\n }", "boolean exists(Curso curso) throws BusinessException;", "public boolean contains(Integer num){\n\t\treturn containsRec(num, root);\n\t}", "@Test\r\n\tpublic void testMultset() {\n\t\tMultiset<Integer> multiSet = HashMultiset.create();\r\n\t\tmultiSet.add(10);\r\n\t\tmultiSet.add(30);\r\n\t\tmultiSet.add(30);\r\n\t\tmultiSet.add(40);\r\n\r\n\t\tassertEquals(2, multiSet.count(30));\r\n\t\tassertEquals(4, multiSet.size());\r\n\t}", "Boolean findExistsCampania(GestionPrecioID id) ;", "private static boolean duplicateSetName(String setName){\n boolean duplicate = false;\n for (Set set : SetManager.getInstance().getSets()) {\n if (set.getName() != null) {\n if (set.getName().equals(setName)) {\n duplicate = true;\n }\n }\n }\n return duplicate;\n }", "public boolean isSetSequenceNo() {\n return EncodingUtils.testBit(__isset_bitfield, __SEQUENCENO_ISSET_ID);\n }", "public T getSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).data;\n \t}\n // If here, no such data object; throw exception.\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj );\n }", "public boolean isExist(int conId) throws AppException;", "public boolean isSetSoggettoEmittente()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(SOGGETTOEMITTENTE$10) != 0;\r\n }\r\n }", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "public static boolean exists(){\n \t\treturn everbie != null;\n \t}", "public boolean isSetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GI$22) != 0;\r\n }\r\n }", "public boolean isSetSize() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SIZE_ISSET_ID);\n }", "public boolean exists( Conge conge ) ;", "@Override\n public int size() {\n return theSet.size();\n }", "public int isDuplicate(Member m) {\r\n\t\tfor(int i=0; i<ms.size();i++) {\r\n\t\t\tif(ms.get(i).getNumber().equals(m.getNumber())) {return i;}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "@Test(expected = NoBetsMadeException.class)\n public void betsSetIsNullOrEmpty() throws NoBetsMadeException {\n Set<Bet> bets=null;\n //test when set is null\n gameRule.determineWinner(1,bets);\n //test when set is empty\n bets=new HashSet<Bet>();\n gameRule.determineWinner(1,bets);\n }", "public boolean isPresent(T t) {\n\t\treturn multiSet.containsKey(t);\n\t}", "@Test \r\n\t\tpublic void testIsEmpty() {\n\t\ttestingSet= new IntegerSet();\r\n\t\tassertTrue(testingSet.isEmpty()); // empty list = true \r\n\t\tassertFalse(!testingSet.isEmpty());// !empty list = false\r\n\t\t}", "public int size() {\n\t\treturn set.size();\n\t}", "@Test\n public void testSetTypeOccupiedSquare()\n {\n try\n {\n Square s = new Square();\n\n s.setTile(Tile.T);\n s.setType(Square.squareType.DB_WORD);\n\n fail(\"An occupied square should not have a special type.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"A Square cannot have a tile on it and have a special type.\", ex.getMessage());\n }\n }", "@Test\n\tpublic void testSet_Out_Range() {\n\t\t try {\n\t\t\t SET setarray= new SET( new int[]{-1,1002});\n\t\t }\n\t\t catch (Exception e) {\n\t\t\t assertEquals(\"Value out of range\", e.getMessage());\n\t\t }\n\t}", "public int size(){\n return set.length;\n }", "public boolean isSetCoResultadoTesteOlhinho() {\n return EncodingUtils.testBit(__isset_bitfield, __CORESULTADOTESTEOLHINHO_ISSET_ID);\n }", "@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }", "public boolean find(int value) {\n return set.contains(value);\n }", "public int size() {\r\n\t\treturn set.size();\r\n\t}", "public boolean ValidarTemaSeguido(String Id_Usuario, int Id_Tema){\n try{\r\n Statement smtm = _cn.createStatement();\r\n String query = \"CALL ValidarTemaSeguido('\"+Id_Usuario+\"','\"+Id_Tema+\"')\";\r\n \r\n ResultSet res = smtm.executeQuery(query);\r\n \r\n while(res.next()){\r\n int count = res.getInt(\"rowcount\");\r\n return count == 1;\r\n }\r\n }\r\n catch(SQLException e){\r\n return false;\r\n }\r\n return false;\r\n }", "void checkNotFound(Integer id);" ]
[ "0.62260437", "0.5962493", "0.57247853", "0.5698628", "0.5676222", "0.5653869", "0.5611903", "0.55399734", "0.55200005", "0.5507013", "0.5425139", "0.53772724", "0.53328276", "0.53161716", "0.53145003", "0.53137", "0.52765274", "0.5266046", "0.52535975", "0.5243466", "0.52429986", "0.51768434", "0.5175363", "0.5157801", "0.5134326", "0.511504", "0.51051545", "0.5103676", "0.50973266", "0.50879335", "0.50844634", "0.5082664", "0.5069359", "0.5051288", "0.50433487", "0.50431854", "0.5037525", "0.50375074", "0.50352603", "0.5032433", "0.5026683", "0.5025921", "0.5019092", "0.49968347", "0.49934483", "0.49907476", "0.49870673", "0.49830934", "0.4978804", "0.49677563", "0.4965973", "0.49640706", "0.495685", "0.49547604", "0.4952278", "0.49522012", "0.49423835", "0.49421412", "0.49421394", "0.4933722", "0.4933722", "0.4924406", "0.49136308", "0.48998454", "0.48987013", "0.48985654", "0.48940912", "0.48940912", "0.48914456", "0.4889386", "0.4889082", "0.48869058", "0.48751417", "0.48720658", "0.48527998", "0.4851659", "0.4844744", "0.48444796", "0.4843882", "0.48322263", "0.48320806", "0.48246434", "0.4823887", "0.48231992", "0.48179027", "0.48169714", "0.48157662", "0.48154032", "0.48150364", "0.4801421", "0.47937855", "0.4792407", "0.47923476", "0.47868153", "0.4785586", "0.4785189", "0.4783987", "0.47831246", "0.4778019", "0.47774512" ]
0.61339056
1
polos objekpolos = new polos(); System.out.println(objekpolos.dataString);
public static void main(String[] args) { Siswa objek1 = new Siswa("roby", "A2.1900158","TI"); Siswa objek2 = new Siswa("otong","A2.00001","SI"); objek1.nama="fuad"; objek2.nama="mh ihsan"; System.out.println(objek1.nama); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDataCandidatura(){\n return dataCandidatura;\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public String toString() {\r\n\treturn data;\r\n }", "public String getData() {\n\treturn data;\n }", "public String toString(){\n return data+\" \"; \n }", "public void mostrarDatos() {\r\n System.out.println(\"El nombre del cliente es: \" + this.getNombre());\r\n System.out.println(\"El primer apellido es: \" + this.getPrimerApellido());\r\n System.out.println(\"El segundo apellido es: \" + this.getSegundoApellido());\r\n System.out.println(\"La edad es: \" + this.getEdad());\r\n }", "public String getData()\n {\n return data;\n }", "public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public String toString() {\n\treturn createString(data);\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public String toString() {\n\t\treturn data.toString();\n }", "public String balar() {\r\n return this.SONIDO;\r\n }", "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "String getDataNascimento();", "String getData();", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "public String getData()\n\t{\n\t\treturn data;\n\t}", "public StringData1() {\n }", "Objet getObjetAlloue();", "@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}", "public String toString(){\r\n\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "public String data() {\n return this.data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "public Object getData() \n {\n return data;\n }", "public String obtenerDetalles(){\r\n return \"Nombre: \" + this.nombre + \", sueldo = \" + this.sueldo;\r\n }", "public String getData() {\r\n return this.data;\r\n }", "public java.lang.String getData() {\r\n return data;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "public StringData() {\n\n }", "@Override\r\n public String toString() {\r\n return \"Nodo: \" + this.dato.toString();\r\n }", "public String toString() {\n return \"\" + data;\n }", "java.lang.String getData();", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String getresposta(){\n return this.respostas;\n }", "public String getnome()\n {\n return this.nome;\n }", "public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\n }", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "String objectRead();", "@Override\n public String toString() {\n return \" \" + this.data;\n }", "public Object leggiDati(){\n\t\ttry{\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tdati = ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t\tSystem.out.println(\"File \" + file + \" letto\");\n\t\t} catch(Exception e){\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.out.println(\"File \" + file + \" non trovato\");\n\t\t\treturn null;\n\t\t}\n\t\treturn dati;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\r\n\t\treturn data;\r\n\t}", "Object getData();", "Object getData();", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "public String toString(){\r\n return this.deskripsi;\r\n }", "public String getRazaN(){\n return razaP1.nombre1();\n }", "@Override\n public String toString() {\n return getDescricao();\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public String toString() {\n return this.data.toString();\n }", "public String ToString(){\r\n String Result;\r\n return Result = \"Arco: \"+this.id+\" Dato: \"+String.valueOf(this.Dato)+\" Peso: \"+String.valueOf(this.p)+\" Extremo Inicial: \"+this.Vi.id+\" Extremo Final: \"+this.Vf.id;\r\n }", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public String getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public String toString()\r\n {\r\n final String TAB = \"\\n\\t\";\r\n \r\n String retValue = \"\";\r\n \r\n retValue = \"JogadorVO ( \"\r\n + super.toString() + TAB\r\n + \"mestre = \" + this.mestre + TAB\r\n + \"nome = \" + this.nome + TAB\r\n + \"conn = \" + this.conn + TAB\r\n + \" )\";\r\n \r\n return retValue;\r\n }", "public void dataView(String nom, String apell1, String apell2, String dni,\n String num, String inttype){\n\n System.out.println(\"Datos personales\");\n System.out.println(\"\");\n System.out.println(\"Nombre: \"+nom);\n System.out.println(\"Primer Apellido: \"+apell1);\n System.out.println(\"Segundo Apellido: \"+apell2);\n System.out.println(\"Dni: \"+dni);\n System.out.println(\"Numero de cuenta: \"+num);\n System.out.println(\"Tipo de interes: \"+inttype);\n System.out.println(\"\");\n}", "public String getRetorno(){\n return retorno;\n }", "public String toString(){\n return \"Salir carcel\";\n }", "public String getData() {\n\t\treturn this.data;\n\t}", "public T getDato() {\n\t\treturn dato;\n\t}", "@Test\n\tpublic void testaToString() {\n\t\tcontato = new Contato(\"Jardely\", \"Maris\", \"984653722\");\n\t\tassertEquals(contato.toString(), \"Jardely Maris - 984653722\");\n\t}", "public telefono(){\n this.telefono =\"00000000\";\n this.saldo = 0.0;\n this.marca= \"Sin Marca\";\n }", "@Override\r\n public String toString() {\r\n// ritorna una stringa\r\n return \"pollo\";\r\n }", "public String getBaseDatos() {\n return baseDatos;\n }", "@Test\n public void testToString() {\n System.out.println(\"toString\");\n String expResult = \"DetalleAhorro{codigo=1, fechaPago=Tue Jan 01 00:10:00 COT 2019, interes=0.07, saldo=600.0}\";\n String result = detalleAhorro.toString();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public Object getData(){\n\t\treturn this.data;\n\t}", "public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }", "public Pengenalan(){ //Constructor (Nama harus sama dengan Class)\n System.out.println(\"\\nConstructor : \");\n System.out.println(\"Dibutuhkan untuk pemanggilan saat diimport oleh Class lain atau Class sendiri\");\n methode();\n int men = menthos();\n System.out.println(\"Nilai yang didapat dari method menthos : \"+men);\n }", "public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }", "@Override\r\n public String toString() {\n return tipodocumento;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"string dari class Main\";\n\t}", "public Object getData();", "@Override\n\tpublic String toString() {\n\t\treturn \"CODIGO: \" +codigo+ \" NOME: \"+nome+\" DIA: \"+dataInicio+\" HORA:\"+horaInicio+\" LOCAL:\"+local;\n\t}", "public String getDescricao();", "public String toString(){ \r\n return \"Nome: \" + this.nome + \"\\nEmail: \" + this.email +\r\n \"\\nEndereço: \" + this.endereco + \"\\nId: \" + this.id + \"\\n\"; \r\n }", "@Override\n public String toString() {\n return nome + placa;\n }", "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "public String toString()\n {\n\t return \"[\" + data + \"]\";\n }", "public String toString(){\n return this.Tea;\n }", "public String getnombre(){\n return nombre;\n }", "public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(this.getClass().getName());\r\n sb.append(\"(\");\r\n sb.append(\"soggetti=\").append(soggetti);\r\n sb.append(\", \").append(\"dataPrestitoFrom=\").append(dataPrestitoFrom);\r\n sb.append(\", \").append(\"dataPrestitoTo=\").append(dataPrestitoTo);\r\n sb.append(\", \").append(\"scadenzaPrestitoFrom=\").append(scadenzaPrestitoFrom);\r\n sb.append(\", \").append(\"scadenzaPrestitoTo=\").append(scadenzaPrestitoTo);\r\n sb.append(\")\");\r\n return sb.toString();\r\n }", "@Override\r\n public String toString() {\r\n return \"Datos de Jugador: \"\r\n + \"\\n\" + \"Alias : \" + this.getAlias()\r\n + \"\\n\" + \"Nombre: \" + this.getNombre()\r\n + \"\\n\" + \"Edad : \" + this.getEdad()\r\n + \"\\n\" + \"Partidas Ganadas: \" + this.getPartidasGanadasToString()\r\n + \"\\n\" + \"Partidas Perdidas: \" + this.getPartidasPerdidasToString()\r\n + \"\\n\" + \"Partidas Empatadas: \" + this.getPartidasEmpatadasToString();\r\n }", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "public String getNombre(){\n return nombre;\n }", "@Override\r\n public String toString() {\r\n return \"Poligono{\" + '}';\r\n }", "@Override\n public String getData()\n {\n return null;\n }", "@Override\n public String toString() {\n return \"Pato{\" + \"patas=\" + patas + \", volar=\" + volar + '}';\n }", "public String toString() {\n\t\treturn tipo + \" : \" + descripcion;\n\t}", "public String getNombre(){\n\treturn this.nombre;\n }" ]
[ "0.6842167", "0.6812194", "0.6802741", "0.6648115", "0.66316324", "0.6541359", "0.6520244", "0.6446612", "0.6436401", "0.6427678", "0.6406123", "0.63920987", "0.6391996", "0.636234", "0.6354876", "0.6345929", "0.6345677", "0.6325662", "0.63200927", "0.63098437", "0.6309317", "0.629988", "0.6288791", "0.6280752", "0.6280752", "0.6280752", "0.6280752", "0.62702674", "0.6251565", "0.62480193", "0.624106", "0.6234299", "0.62231386", "0.6215822", "0.6213803", "0.62138", "0.6206423", "0.6201364", "0.6201364", "0.61883813", "0.61883813", "0.6183262", "0.6180541", "0.6178323", "0.616562", "0.6134902", "0.6126567", "0.6122637", "0.6122178", "0.61189944", "0.61189944", "0.61189944", "0.61189944", "0.61130077", "0.61085343", "0.61085343", "0.6103607", "0.60909516", "0.6086303", "0.6066163", "0.60542244", "0.605378", "0.60530746", "0.60503256", "0.60502714", "0.6035171", "0.6031369", "0.60261923", "0.6023407", "0.6010537", "0.6004143", "0.6003386", "0.596846", "0.59682053", "0.5966341", "0.5962613", "0.59621465", "0.59581745", "0.59564745", "0.5956254", "0.59551877", "0.59504485", "0.5933948", "0.5925219", "0.59242964", "0.59225553", "0.5916904", "0.590443", "0.589992", "0.58994144", "0.5893309", "0.589308", "0.58904016", "0.58870983", "0.58852875", "0.588466", "0.5878112", "0.5870431", "0.586607", "0.5852552" ]
0.62389445
31
Creates new form Test_GUI
public Test_GUI() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "public GUIForm() { \n initComponents();\n }", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}", "public CreateAccount_GUI() {\n initComponents();\n }", "private static void createAndShowUI(){\n JFrame frame = new JFrame(\"TargetTest\");\n TargetTest test = new TargetTest();\n frame.setLayout(new FlowLayout());\n frame.getContentPane().add(test.getMainPanel());\n //frame.getContentPane().add(test.getControlsPanel());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.pack();\n\n frame.setLocationRelativeTo(null);\n\n frame.setVisible(true);\n}", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "FORM createFORM();", "public exerciseAddGUI() {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public TestGUI() {\n initComponents();\n this.test = new Test(); \n super.setTitle(\"User Test\"); \n this.jButton1.setEnabled(false); \n this.jButton2.setEnabled(false); \n this.jButton3.setEnabled(false); \n this.jLabel3.setVisible(false);\n // this.jPanel1.add( new TFQPanel()); \n // this.jPanel1.repaint(); \n }", "public MainForm() {\n initComponents();\n \n }", "private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }", "private static void createAndShowGUI() {\n DragDropFiles test = new DragDropFiles();\n test.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n //Display the window.\n test.pack();\n test.setVisible(true);\n }", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public mainUI() {\n initComponents();\n }", "public GUI_IntroDatos() {\n initComponents();\n }", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "public static void createGUI() {\n\t\tSimpleGUI gui = new SimpleGUI();\n\t\tgui.setVisible(true);\n\t}", "public Frm_Test() {\n initComponents();\n }", "public User_gui() {\n initComponents();\n }", "private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }", "public RummyUI(){\n \n //Call method initComponents\n initComponents();\n \n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "public test() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public GUI() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "public CreateGUI() throws IOException{\r\n\t\tthis.setFocusable(false);\r\n\t\tthis.setTitle(\"Dance Dance Revolution - 201B Edition\");\r\n\t\tthis.setSize(800, 600);\t\t \t\r\n\t\tthis.setLocation(100, 100); \t\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setResizable(false);\r\n\t\tcp = getContentPane();\r\n\t\tcp.setBackground(Color.black);\r\n\t\tarrowlistener = new ArrowListener();\r\n\t\tscore = new Score();\r\n\t\tcombo = new ComboImage();\r\n\t}", "public MainGUI() {\n initComponents();\n caja = new CajaGUI();\n estadisticas = new EstadisticasGUI();\n caja.disableAll();\n tab.add(\"Caja\", caja);\n tab.add(\"Estadísticas\", estadisticas);\n tab.setToolTipTextAt(0, \"Manejo de la Caja Diaria\");\n tab.setToolTipTextAt(1, \"Estadisticas de ventas y productos\");\n menuAdmin = new JMenu(\"Administrador\");\n menuUsuario = new JMenuItem();\n this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icono.png\")).getImage());\n this.setTitle(\"Sistema de Gestión de Quiniela\");\n\n }", "public Project_Create() {\n initComponents();\n }", "public MyGUI() {\n \t super(\"Mastermind\");\n \t guiManager = new GUIManager();\n createMenuComponents();\n createMastermindComponents(this,2);\n \n }", "private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private GUI()\n {\n makeGUI();\n }", "public GUI() {\n initComponents();\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "private void initComponents() {\r\n\r\n\t\tjPanel1 = new javax.swing.JPanel();\r\n\t\tlblCreateHeroName = new javax.swing.JLabel();\r\n\t\ttxtCreateName = new javax.swing.JTextField();\r\n\t\tbtnCreateHero = new javax.swing.JButton();\r\n\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\r\n\t\tjPanel1.setBackground(new java.awt.Color(51, 51, 0));\r\n\t\tjPanel1.setLayout(null);\r\n\r\n\t\tlblCreateHeroName.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n\t\tlblCreateHeroName.setForeground(new java.awt.Color(153, 153, 0));\r\n\t\tlblCreateHeroName.setText(\"Name:\");\r\n\t\tjPanel1.add(lblCreateHeroName);\r\n\t\tlblCreateHeroName.setBounds(170, 40, 60, 15);\r\n\r\n\t\ttxtCreateName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtCreateName.setText(\"Todor\");\r\n\t\tjPanel1.add(txtCreateName);\r\n\t\ttxtCreateName.setBounds(50, 90, 290, 30);\r\n\r\n\t\tbtnCreateHero.setText(\"DO IT\");\r\n\t\tbtnCreateHero.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(final java.awt.event.ActionEvent evt) {\r\n\t\t\t\tbtnCreateHeroActionPerformed();\r\n\t\t\t}\r\n\t\t});\r\n\t\tjPanel1.add(btnCreateHero);\r\n\t\tbtnCreateHero.setBounds(160, 140, 70, 23);\r\n\r\n\t\tfinal javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n\t\tgetContentPane().setLayout(layout);\r\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));\r\n\t\tlayout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE));\r\n\r\n\t\tpack();\r\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "public form() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "public CreateAccountGUI() throws Exception{\n\r\n\t\tsuper();\r\n\r\n\t\tsetTitle(\"Create an account\");\r\n\t\tsetSize(600, 400);\r\n\t\tsetBackground(Color.CYAN);\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetLocationRelativeTo(null);\r\n\r\n\t\tString[] labels = {\"Username: \", \"First Name: \", \"Surname: \",\r\n \"Mobile Number: \", \"Date Of Birth: \", \"City: \",\n \"Profile Pic (e.g. pic.png): \"};\n\t\tint input = labels.length;\n\n ArrayList<JTextField> fields = new ArrayList<JTextField>();\n\n\t\tJPanel create = new JPanel(new SpringLayout());\r\n\t\tfor (int i = 0; i < input; i++) {\r\n\t\t\tJLabel para = new JLabel(labels[i], JLabel.TRAILING);\r\n\t\t\tcreate.add(para);\r\n\t\t\tJTextField form = new JTextField(10);\n fields.add(form);\n\t\t\tpara.setLabelFor(form);\r\n\t\t\tcreate.add(form);\r\n\t\t\tsuper.add(create);\r\n\t\t}\r\n\t\tJButton fin = new JButton(\"Create\");\r\n\t\tfin.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent sendMessage){\n try\n {\n String username = fields.get(0).getText();\n String firstname = fields.get(1).getText();\n String surname = fields.get(2).getText();\n String mobnum = fields.get(3).getText();\n String dob = fields.get(4).getText();\n String city = fields.get(5).getText();\n String imgpath = fields.get(6).getText();\n Account acc = new Account(username, firstname, surname,\n mobnum, dob, city, 0, null, imgpath);\n ReadWriteAccount rwa = new ReadWriteAccount(\"data.db\");\n rwa.write(acc);\n get_main().set_home(acc);\n dispose();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n\t\t\t}\r\n\t\t});\r\n\t\tsuper.add(fin, BorderLayout.SOUTH);\r\n\t\tCreateAccountGUI.makeForm(create,\r\n\t\t\t\tinput, 2,\r\n\t\t\t\t6, 6,\r\n\t\t\t\t20, 20);\n\n setVisible(true);\n\r\n\t}", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }", "public InicioTeste() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public Gui() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}", "public ClientGUI() {\n initComponents();\n }", "public ClientGUI() {\n initComponents();\n }", "public GUI() {\n }", "public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}", "public Add_Lecture_Form() {\n initComponents();\n \n this.setVisible(true);\n this.pack();\n this.setLocationRelativeTo(null);\n }", "public void createAndShowGUI() {\n frame= new JFrame(\"TabAdmin\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLocation(200,50);\n //Create and set up the content pane.\n \n addComponentToPane(frame.getContentPane());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n //create admin to operate \n \n }", "public NewJFrame1() {\n initComponents();\n }", "protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }", "private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "void add(String prompt, UIFormTest test);", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "public NewJFrame() {\n initComponents();\n \n }", "public UI() {\n initComponents();\n }", "public NewFrame() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public NewJFrame() {\n Connect();\n initComponents();\n }", "public ClienteGUI() {\n initComponents();\n }", "public createclass() {\n initComponents();\n this.setLocationRelativeTo(null);\n getdata();\n }", "public CaptureGUI() {\n initComponents();\n }", "private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}", "public AcudienteGUI() {\n initComponents();\n }", "public gui() {\n initComponents();\n }", "public gui() {\n initComponents();\n }", "private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\", \"EditorPane\", \"TitledBorder\", \"Menu\", \"TextArea\",\n \"OptionPane\", \"MenuBar\", \"ToolBar\", \"ToggleButton\", \"ToolTip\",\n \"ProgressBar\", \"TableHeader\", \"Panel\", \"List\", \"ColorChooser\",\n \"PasswordField\", \"TextField\", \"Table\", \"Label\", \"Viewport\",\n \"RadioButtonMenuItem\", \"RadioButton\", \"DesktopPane\", \"InternalFrame\"\n };\n for (String item : names) {\n UIManager.put(item + \".font\", f);\n }\n //Create and set up the window.\n JFrame frame = new JFrame(\"AutoCapturePackagesTool\");\n\n String src = \"/optimizationprogram/GUICode/u5.png\";\n Image image = null;\n try {\n image = ImageIO.read(new CaptureGUI().getClass().getResource(src));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n frame.setIconImage(image);\n //frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,\n Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);\n frame.getContentPane().add(new CaptureGUI());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public GUI() {\n\t\tinitComponents();\n\t}", "public TorneoForm() {\n initComponents();\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "public FormInserir() {\n initComponents();\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "public ExecutantGui() {\n initComponents();\n }", "private static void createAndShowGUI() {\n\t\tJFrame frame = new JFrame(\"ComboBox2\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);;\n\t\t\n\t\t//create and set up the content pane\n\t\tJComponent content = new ComboboxDemo2();\n\t\tcontent.setOpaque(true);\n\t\tframe.setContentPane(content);\n\t\t\n\t\t//display the window\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public GUI_Edit_Tour(){\n init();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }" ]
[ "0.707545", "0.7031111", "0.6953872", "0.6942052", "0.6873817", "0.685949", "0.6829192", "0.6789587", "0.6744508", "0.6743821", "0.6726552", "0.66457105", "0.66380066", "0.6634901", "0.66272366", "0.66178536", "0.66178536", "0.66178536", "0.6611468", "0.66060513", "0.6605498", "0.65951467", "0.6591962", "0.6575574", "0.65724415", "0.6562351", "0.6544938", "0.6544727", "0.6544116", "0.65188444", "0.6517785", "0.6517785", "0.6517181", "0.651357", "0.6495349", "0.64948463", "0.6490628", "0.64886487", "0.6479555", "0.6458887", "0.6450326", "0.644285", "0.6440097", "0.6430786", "0.64200914", "0.6419023", "0.64049864", "0.64041674", "0.64041674", "0.64041674", "0.64041674", "0.64041674", "0.64041674", "0.64041674", "0.63927734", "0.63915634", "0.63847756", "0.6382673", "0.6378556", "0.6375494", "0.6373404", "0.6369766", "0.6365374", "0.63643587", "0.6359204", "0.6359204", "0.63573647", "0.63552284", "0.6353905", "0.6348414", "0.6340479", "0.6337315", "0.6335417", "0.63344795", "0.6333691", "0.63331425", "0.6330746", "0.632871", "0.6324451", "0.6324445", "0.63226634", "0.631858", "0.6315178", "0.6314198", "0.63076425", "0.6305798", "0.6305798", "0.6304948", "0.63029677", "0.6300353", "0.6296943", "0.62965065", "0.62956625", "0.62916046", "0.6291205", "0.628561", "0.62849015", "0.6284335", "0.6280907", "0.6277694" ]
0.7612381
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Sepsis)) { return false; } Sepsis other = (Sepsis) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
Transform images in the source directory applying transform files from a specific directory.
public boolean exec( final String source_dir, final String target_dir, final String transf_dir) { // Get source file listing final String exts = ".tif.jpg.png.gif.tiff.jpeg.bmp.pgm"; final String[] src_names = new File(source_dir).list(new FilenameFilter() { public boolean accept(File dir, String name) { int idot = name.lastIndexOf('.'); if (-1 == idot) return false; return exts.contains(name.substring(idot).toLowerCase()); } }); Arrays.sort(src_names); // Get transform file listing final String ext_xml = ".xml"; final String[] transf_names = new File(transf_dir).list(new FilenameFilter() { public boolean accept(File dir, String name) { int idot = name.lastIndexOf('.'); if (-1 == idot) return false; return ext_xml.contains(name.substring(idot).toLowerCase()); } }); Arrays.sort(transf_names); // Check the number of input (source) files and transforms. if(transf_names.length != src_names.length) { IJ.error("The number of source and transform files must be equal!"); return false; } // Read transforms CoordinateTransform[] transform = new CoordinateTransform[transf_names.length]; for(int i = 0; i < transf_names.length; i ++) { transform[i] = readCoordinateTransform(transf_dir + transf_names[i]); if(transform[i] == null) { IJ.error("Error when reading transform from file: " + transf_dir + transf_names[i]); return false; } } // Apply transforms // Create transformed images IJ.showStatus("Calculating transformed images..."); if(Register_Virtual_Stack_MT.createResults(source_dir, src_names, target_dir, null, transform, interpolate) == false) { IJ.log("Error when creating transformed images"); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean exec(\n\t\t\tfinal String source_dir, \n\t\t\tfinal String target_dir, \n\t\t\tfinal String transf_dir,\n\t\t\tfinal boolean interpolate) \n\t{\n\t\t// Get source file listing\n\t\tfinal String exts = \".tif.jpg.png.gif.tiff.jpeg.bmp.pgm\";\n\t\tfinal String[] src_names = new File(source_dir).list(new FilenameFilter() \n\t\t{\n\t\t\tpublic boolean accept(File dir, String name) \n\t\t\t{\n\t\t\t\tint idot = name.lastIndexOf('.');\n\t\t\t\tif (-1 == idot) return false;\n\t\t\t\treturn exts.contains(name.substring(idot).toLowerCase());\n\t\t\t}\n\t\t});\n\t\tArrays.sort(src_names);\n\t\t\n\t\t// Get transform file listing\n\t\tfinal String ext_xml = \".xml\";\n\t\tfinal String[] transf_names = new File(transf_dir).list(new FilenameFilter() \n\t\t{\n\t\t\tpublic boolean accept(File dir, String name) \n\t\t\t{\n\t\t\t\tint idot = name.lastIndexOf('.');\n\t\t\t\tif (-1 == idot) return false;\n\t\t\t\treturn ext_xml.contains(name.substring(idot).toLowerCase());\n\t\t\t}\n\t\t});\n\t\tArrays.sort(transf_names);\n\t\t\n\t\t// Check the number of input (source) files and transforms.\n\t\tif(transf_names.length != src_names.length)\n\t\t{\n\t\t\tIJ.error(\"The number of source and transform files must be equal!\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Read transforms\n\t\tCoordinateTransform[] transform = new CoordinateTransform[transf_names.length];\n\t\tfor(int i = 0; i < transf_names.length; i ++)\n\t\t{\n\t\t\ttransform[i] = readCoordTransform(transf_dir + transf_names[i]);\n\t\t\tif(transform[i] == null)\n\t\t\t{\n\t\t\t\tIJ.error(\"Error when reading transform from file: \" + transf_dir + transf_names[i]);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Apply transforms\n\t\t\t\n\t\t// Create transformed images\n\t\tIJ.showStatus(\"Calculating transformed images...\");\n\t\tif(Register_Virtual_Stack_MT.createResults(source_dir, src_names, target_dir, null, transform, interpolate) == false)\n\t\t{\n\t\t\tIJ.log(\"Error when creating transformed images\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\treturn true;\n\t}", "private static void loadImagesInDirectory(String dir){\n\t\tFile file = new File(Files.localize(\"images\\\\\"+dir));\n\t\tassert file.isDirectory();\n\t\n\t\tFile[] files = file.listFiles();\n\t\tfor(File f : files){\n\t\t\tif(isImageFile(f)){\n\t\t\t\tString name = dir+\"\\\\\"+f.getName();\n\t\t\t\tint i = name.lastIndexOf('.');\n\t\t\t\tassert i != -1;\n\t\t\t\tname = name.substring(0, i).replaceAll(\"\\\\\\\\\", \"/\");\n\t\t\t\t//Image image = load(f,true);\n\t\t\t\tImageIcon image;\n\t\t\t\tFile f2 = new File(f.getAbsolutePath()+\".anim\");\n\t\t\t\tif(f2.exists()){\n\t\t\t\t\timage = evaluateAnimFile(dir,f2,load(f,true));\n\t\t\t\t}else{\n\t\t\t\t\timage = new ImageIcon(f.getAbsolutePath());\n\t\t\t\t}\n\t\t\t\tdebug(\"Loaded image \"+name+\" as \"+f.getAbsolutePath());\n\t\t\t\timages.put(name, image);\n\t\t\t}else if(f.isDirectory()){\n\t\t\t\tloadImagesInDirectory(dir+\"\\\\\"+f.getName());\n\t\t\t}\n\t\t}\n\t}", "String transcribeFilesInDirectory(String directoryPath);", "@Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (!this.sourceDirectory.equals(dir)) {\n this.currentTargetDirectory = this.currentTargetDirectory.getParent();\n }\n return FileVisitResult.CONTINUE;\n }", "private void fillAllImagesUnderDirectory(File directory) throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n\n for (File file : fileArray) {\n // if the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n allImagesUnderDirectory\n .add(centralController.getImageFileController().getImageFile(imageFile));\n } else if (imagesInDirectory.contains(imageFile)) {\n allImagesUnderDirectory.add(imagesInDirectory.get(imagesInDirectory.indexOf(imageFile)));\n } else {\n allImagesUnderDirectory.add(imageFile);\n }\n } else if (file.isDirectory()) {\n fillAllImagesUnderDirectory(file);\n }\n }\n }", "public static void main(String[] args) {\n try {\n File dataFolder = new File(\"data\");\n for (File imageFile : dataFolder.listFiles()) {\n BufferedImage bufferedImage = ImageIO.read(imageFile);\n ImageProcessor.instance.processImage(bufferedImage, imageFile.getName());\n }\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public abstract BufferedImage transform();", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "private void fillImagesInDirectory() throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n for (File file : fileArray) {\n // the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n imagesInDirectory.add(centralController.getImageFileController().getImageFile(imageFile));\n } else {\n imagesInDirectory.add(imageFile);\n }\n }\n }\n }", "public static void processDirectory(File directory) {\n FlatFileProcessor processor = new FlatFileProcessor(directory);\n processor.processDirectory();\n }", "void moveFileToDirectoryWithConvertedFiles(String pathToFile);", "public javaxt.io.Image transform(javaxt.io.Image src_img, double[] src_bbox, int[] dst_size, double[] dst_bbox){\n if (this._no_transformation_needed(new int[]{src_img.getWidth(), src_img.getHeight()}, src_bbox, dst_size, dst_bbox)){\n //System.out.println(\"_no_transformation_needed\");\n return src_img;\n }\n else if (equals(this.src_srs, this.dst_srs)){\n //System.out.println(\"_transform_simple\"); \n return this._transform_simple(src_img, src_bbox, dst_size, dst_bbox);\n }\n else\n return this._transform(src_img, src_bbox, dst_size, dst_bbox);\n }", "public void runLighten() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 5.3f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void inferPathsFromSourceDir(File sourceDir,\n Properties props) {\n String pidFiles = \"\";\n String xsltFiles = \"\";\n for (File file : sourceDir.listFiles()) {\n if (file.getName().endsWith(\".xslt\")\n || file.getName().endsWith(\".xsl\")) {\n String path = file.getPath();\n int i = path.lastIndexOf(\".\");\n String pathPrefix = path.substring(0, i);\n File pidFile = getPidFile(pathPrefix);\n if (pidFile != null) {\n if (xsltFiles.length() > 0) {\n xsltFiles += \" \";\n }\n xsltFiles += path;\n if (pidFiles.length() > 0) {\n pidFiles += \" \";\n }\n pidFiles += pidFile.getPath();\n }\n }\n }\n props.setProperty(\"xsltFiles\", xsltFiles);\n props.setProperty(\"pidFiles\", pidFiles);\n }", "static void bulkConvert(File folder, File destination)\n {\n if (folder == null)\n throw new IllegalArgumentException(\"folder cannot be null\");\n if (!folder.isDirectory())\n throw new IllegalArgumentException(\"folder is not a directory\");\n\n for (File f : folder.listFiles()) {\n if (f.isDirectory()) {\n bulkConvert(f, destination);\n continue;\n }\n\n String extension = f.getName().split(\"\\\\.\")[1];\n\n if (extension.toUpperCase().equals(\"DLIS\"))\n readFromDLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LIS\"))\n readFromLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LAS\"))\n readFromLAS(f, destination.getPath());\n }\n }", "public void selectAndConvert() {\n // Used to select multiple files\n DirectoryResource dr = new DirectoryResource();\n // For each file in the selected files\n for (File f : dr.selectedFiles()) {\n ImageResource inputImg = new ImageResource(f);\n // Converting image in the input file to gray image\n ImageResource outputImg = makeInversion(inputImg);\n // Used to get the name of the file selected\n String inputImgFileName = inputImg.getFileName();\n String outputImgFileName = \"inverted-\" + inputImgFileName;\n // Creating file name to the outputImg with the help of absolute path of the inputImgFileName\n outputImg.setFileName(\"src/java_assignments/coursera1/image_inversion/\"+outputImgFileName);\n outputImg.draw();\n outputImg.save();\n }\n }", "private BufferedImage[] loadImages(String directory, BufferedImage[] img) throws Exception {\n\t\tFile dir = new File(directory);\n\t\tFile[] files = dir.listFiles();\n\t\tArrays.sort(files, (s, t) -> s.getName().compareTo(t.getName()));\n\t\t\n\t\timg = new BufferedImage[files.length];\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\timg[i] = ImageIO.read(files[i]);\n\t\t}\n\t\treturn img;\n\t}", "@Test (groups = { \"endpoints\" })\n\t\tpublic static void testTransform() throws Exception {\n\t\t\t\n\t\t\tSystem.out.println(\"\\n**** In QASandboxTransformTest/testTransform module ****\\n\");\n\t\t\t\n\t\t\t// Load the files from the designated directory\t\t\t\t\n//\t\t\tFile startDir = new File(Constants.transformFileStartDir);\n\t\t\tFile startDir = new File(Constants.transformFileStartDir + \"/spaGeneralConferenceHTML\");\t\t// Replace the line above with this one to test with less documents\n\t\t\t\tSystem.out.println(\"Loading files to test...\");\t\t\t\n\t\t\tList<File> filesToTransform = new ArrayList<>();\t\t\t\n\t\t\tQAFileUtils.loadTestFiles(filesToTransform, startDir);\t\t\t\n\t\t\t\tAssert.assertNotEquals(filesToTransform.size(),0,\"No files found in the passed folder\");\n\t\t\t\tSystem.out.println(filesToTransform.size() + \" files found\");\t\t\t\t\n\n\t\t\t// Transform all of the files\t\t\t\t\n\t\t\tfor (File file : filesToTransform) {\n\t\t\t\t\tSystem.out.println(\"\\nTransforming file: \" + file.getPath()); // was getAbsolutePath\n\t\t\t\tQATransformationResult result = QASandboxTransformService.transformFile(file);\t// 1. Transform each file\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(result.wasSuccessful() ? \"Transform result shows successful\" : \"ERROR: Transform result shows failure\" );\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\tSystem.out.println(\"\\n**** EXIT QASandboxTransformTest/testTransform module ****\\n\");\t\t\t\n\t\t\t\n\t\t}", "public static void main(String[] args)\r\n\t{\r\n\t\tString inputFolder = rootFolder + \"\\\\LED Peg\";\r\n\t\tString outputFolder = rootFolder + \"\\\\LEDPeg_output\";\r\n\t\t\t\t\r\n\t\tFile folder = new File(inputFolder);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\r\n\t\tEntropy2017Targeting imageProcessor = new Entropy2017Targeting(null, null);\r\n\t\timageProcessor.processingForPeg = true;\r\n\t\t\r\n\t\tfor(File f : listOfFiles)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"File: \" + f.getPath());\r\n\t\t\t\r\n\t\t\tMat ourImage = Imgcodecs.imread(f.getPath());\r\n\t\t\timageProcessor.processImage(ourImage);\r\n\t\t\tImgcodecs.imwrite(outputFolder + \"\\\\\"+ f.getName()+\".png\", ourImage);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Completed file.\");\r\n\t\t}\r\n\t\tSystem.out.println(\"Processed all images.\");\r\n\t}", "public void transform(double[] src, double[] dst){\n\tfor (int i = 0; i < dst.length; i++) {\n\t dst[i] = 0;\n\t for (int j = 0; j < src.length; j++)\n\t\tdst[i] += array[i][j] * src[j]; \n\t}\n }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n for (int i = 1; i<10; i++){\n String image= \"src/main/java/BallImage\";\n image = image + i + \".jpg\";\n Mat input = Imgcodecs.imread(image);\n Mat output = algorithm(input);\n String output_fname = \"Output Image \" + i + \".jpg\";\n Imgcodecs.imwrite(output_fname, output);\n }\n System.out.println(\"Done\");\n }", "public void transform(Node source, String outputFileName) throws Exception {\n FileOutputStream outFS = new FileOutputStream(outputFileName);\n Result result = new StreamResult(outFS);\n myTransformer.transform(new DOMSource(source), result);\n outFS.close();\n }", "public void treatAllPhotos() throws IllegalArgumentException {\n for(Long currentID : idsToTest){\n String pathToPhoto = \"photo\\\\\" + currentID.toString();\n File currentPhotosFile = new File(pathToPhoto);\n\n if(currentPhotosFile.exists() && currentPhotosFile.isDirectory()){\n\n File[] listFiles = currentPhotosFile.listFiles();\n\n for(File file : listFiles){\n if (!file.getName().endsWith(\".pgm\")) { //search how to convert all image to .pgm\n throw new IllegalArgumentException(\"The file of the student \" + currentID + \" contains other files than '.pgm'.\");\n }\n else{\n Mat photoToTreat = Imgcodecs.imread(pathToPhoto + \"\\\\\" + file.getName(), Imgcodecs.IMREAD_GRAYSCALE);\n Mat treatedPhoto = recoApp.imageTreatment(photoToTreat);\n if(treatedPhoto != null){\n Imgcodecs.imwrite(pathToPhoto + \"\\\\\" + file.getName(), treatedPhoto);\n }\n }\n }\n }\n else{\n throw new IllegalArgumentException(\"The file of the student \" + currentID + \" do not exist or is not a directory.\");\n }\n }\n }", "public void populateCachedImages(File dir)\n {\n if (dir.exists())\n {\n File[] files = dir.listFiles();\n for (int i = 0; i < files.length; i++)\n {\n File file = files[i];\n if (!file.isDirectory())\n {\n //Record all filenames from the cache so we know which photos to retrieve from database\n cachedFileNames.add(file.getName());\n imageList.add(file);\n }\n }\n }\n }", "private void migrate (String name)\t{\n\t\ttry{\n\t\t\tFile f1 = new File( sourceDir + name);\n\t\t\t\n\t\t\tif (!f1.exists())\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tFile f2 = new File(targetDir +name);\n\t\t\t\n\t\t InputStream in = new FileInputStream(f1);\n\t\t \n\t\t OutputStream out = new FileOutputStream(f2);\n\n\t\t byte[] buf = new byte[1024];\n\t\t int len;\n\t\t while ((len = in.read(buf)) > 0){\n\t\t out.write(buf, 0, len);\n\t\t }\n\t\t in.close();\n\t\t out.close();\n\t\t System.out.println(\"File copied.\");\n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t System.out.println(ex.getMessage() + \" in the specified directory.\");\n\t\t System.exit(0);\n\t\t }\n\t\t catch(IOException e){\n\t\t System.out.println(e.getMessage()); \n\t\t }\n\t}", "abstract public void setImageResourcesDir(String path);", "public static void loadFilesFromClasspath(final String dirFile)\n\t{\n\n\t\t// You can uncomment this for local \n\t\t// but DO NOT CHECK IT IN UNCOMMENTED\n\t\t//\t if(\"true\".equals(\"true\")){\n\t\t//\t\t\tloadFilesFromClasspathLocalEnv(dirFile);\n\t\t//\t\t\treturn; \n\t\t//\t\t}\n\t\ttry\n\t\t{\n\t\t\tlogger.info(\"loading files from \" + dirFile);\n\t\t\tfinal PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(classLoader);\n\t\t\tfinal Resource[] resources = resolver.getResources(dirFile + \"/**/*.xsl\");\n\t\t\tif (resources == null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tResource resource;\n\t\t\tfor (int i = 0; i < resources.length; i++)\n\t\t\t{\n\t\t\t\tresource = resources[i];\n\t\t\t\tlogger.info(\"found a file to load: \" + resource.getFilename());\n\n\t\t\t\tfinal URL url = resource.getURL();\n\t\t\t\tif (ResourceUtils.isJarURL(url))\n\t\t\t\t{\n\t\t\t\t\tfinal InputStream inputStream = resource.getInputStream();\n\t\t\t\t\tcreateTransformer(inputStream, resource.getDescription());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tInputStream inputStream = classLoader.getResourceAsStream(resource.getFilename());\n\t\t\t\t\tif (inputStream == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tinputStream = resource.getInputStream();\n\t\t\t\t\t}\n\t\t\t\t\tcreateTransformer(inputStream, resource.getDescription(), resource);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (final Exception e)\n\t\t{\n\t\t\tlogger.warn(\"Unable to load files from \" + dirFile + \" :reason: \", e);\n\t\t}\n\n\t}", "protected void transform()\n\t{\n\t\tFileSummary summary = getFileSummary();\n\t\tFileCloser.close(summary.getFile());\n\n\t\tsuper.transform();\n\t}", "private javaxt.io.Image _transform_simple(javaxt.io.Image src_img, \n double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double[] src_quad = new double[]{0, 0, src_img.getWidth(), src_img.getHeight()};\n SRS.transf to_src_px =SRS.make_lin_transf(src_bbox, src_quad);\n\n //minx, miny = to_src_px((dst_bbox[0], dst_bbox[3]));\n double[] min = to_src_px.transf(dst_bbox[0], dst_bbox[3]);\n double minx = min[0];\n double miny = min[1];\n\n //maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1]));\n double[] max = to_src_px.transf(dst_bbox[2], dst_bbox[1]);\n double maxx = max[0];\n double maxy = max[1];\n\n double src_res = (src_bbox[0]-src_bbox[2])/src_img.getWidth();\n double dst_res = (dst_bbox[0]-dst_bbox[2])/dst_size[0];\n\n double tenth_px_res = Math.abs(dst_res/(dst_size[0]*10));\n javaxt.io.Image img = new javaxt.io.Image(src_img.getBufferedImage());\n if (Math.abs(src_res-dst_res) < tenth_px_res){\n img.crop(cint(minx), cint(miny), dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(minx)+dst_size[0], cint(miny)+dst_size[1]);\n return img; //src_img;\n }\n else{\n img.crop(cint(minx), cint(miny), cint(maxx)-cint(minx), cint(maxy)-cint(miny));\n img.resize(dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(maxx), cint(maxy));\n //src_img.resize(dst_size[0], dst_size[1]);\n return img; //src_img;\n }\n //ImageSource(result, size=dst_size, transparent=src_img.transparent)\n }", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "List<List<Pixel>> transform(Image img, String operation);", "public static void main(String[] args) throws IOException {\n\t\tFile dir = new File(\"C:\\\\Users\\\\user\\\\Desktop\\\\1000_web_htm_archive\\\\1000_web_htm_archive\\\\\");\r\n\t\tFile[] filelist = dir.listFiles();\r\n\t\r\n\t\tfor (int i = 0; i < filelist.length; i++) {\r\n\t\t\tif (filelist[i].isFile()) {\r\n\t\t\t\tconvert(filelist[i].getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Converted 1000 Html files to text files and stored them in a folder Files_Converted\");\r\n\t}", "public void transformResources (WarPlayer player) {\n int index = player.getStrategy().inputHowMnayResourcesToTransform();\n if ( player.getResources().size() == 0) {\n System.out.println(\"\\n\\n No resource to convert !\\n\");\n }\n else if (index == 0) {\n player.transformNeededResources(player.getFood());\n System.out.println(\"\\n\\n Needed resources transformed !\\n\");\n } else if (index == 1) {\n player.transformAllResources();\n System.out.println(\"\\n\\n All resources transformed !\\n\");\n }\n }", "private javaxt.io.Image _transform(javaxt.io.Image src_img, double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n //Use GeoTools to reproject src_img to the output projection.\n try{\n\n //Compute geodetic w/h in degrees (used to specify the Envelope2D)\n double x1 = x(src_bbox[0]);\n double x2 = x(src_bbox[2]);\n double w = 0;\n if (x1>x2) w = x1-x2;\n else w = x2-x1;\n //System.out.println(x1 + \" to \" + x2 + \" = \" + (w));\n\n double y1 = y(src_bbox[1]);\n double y2 = y(src_bbox[3]);\n double h = 0;\n if (y1>y2) h = y1-y2;\n else h = y2-y1;\n //System.out.println(y1 + \" to \" + y2 + \" = \" + (h));\n\n\n System.out.println(src_bbox[0] + \", \" + src_bbox[1] + \", \" + src_bbox[2] + \", \" + src_bbox[3]);\n System.out.println(dst_bbox[0] + \", \" + dst_bbox[1] + \", \" + dst_bbox[2] + \", \" + dst_bbox[3]);\n \n Envelope2D envelope =\n new Envelope2D(this.src_srs.crs, src_bbox[0], src_bbox[1], w, h);\n\n GridCoverage2D gc2d =\n new GridCoverageFactory().create(\"BMImage\", src_img.getBufferedImage(), envelope);\n\n GridCoverage2D gc2dProj =\n (GridCoverage2D)Operations.DEFAULT.resample(gc2d, this.dst_srs.crs);\n\n //TODO: Crop Output?\n /* \n final AbstractProcessor processor = new DefaultProcessor(null);\n final ParameterValueGroup param = processor.getOperation(\"CoverageCrop\").getParameters();\n \n final GeneralEnvelope crop = new GeneralEnvelope( ... ); //<--Define new extents\n param.parameter(\"Source\").setValue( gc2dProj );\n param.parameter(\"Envelope\").setValue( crop );\n\n gc2dProj = (GridCoverage2D) processor.doOperation(param); \n */\n\n src_img = new javaxt.io.Image(gc2dProj.getRenderedImage());\n src_img.resize(dst_size[0], dst_size[1], false);\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n\n /*\n //Start port of original python code...\n src_bbox = this.src_srs.align_bbox(src_bbox);\n dst_bbox = this.dst_srs.align_bbox(dst_bbox);\n int[] src_size = new int[]{src_img.getWidth(), src_img.getHeight()}; //src_img.size\n double[] src_quad = new double[]{0, 0, src_size[0], src_size[1]};\n double[] dst_quad = new double[]{0, 0, dst_size[0], dst_size[1]};\n \n SRS.transf to_src_px = SRS.make_lin_transf(src_bbox, src_quad);\n SRS.transf to_dst_w = SRS.make_lin_transf(dst_quad, dst_bbox);\n\n //This segment still needs to be ported to java\n meshes = []; \n def dst_quad_to_src(quad):\n src_quad = []\n for dst_px in [(quad[0], quad[1]), (quad[0], quad[3]),\n (quad[2], quad[3]), (quad[2], quad[1])]:\n dst_w = to_dst_w(dst_px)\n src_w = self.dst_srs.transform_to(self.src_srs, dst_w)\n src_px = to_src_px(src_w)\n src_quad.extend(src_px)\n return quad, src_quad\n */\n\n /*\n int mesh_div = this.mesh_div;\n while (mesh_div > 1 && ((dst_size[0] / mesh_div) < 10 || (dst_size[1] / mesh_div) < 10))\n mesh_div -= 1;\n for (int[] quad : griddify(dst_quad, mesh_div))\n meshes.append(dst_quad_to_src(quad));\n result = src_img.as_image().transform(dst_size, Image.MESH, meshes,\n image_filter[self.resampling])\n */\n return src_img;\n }", "@Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n if (!this.sourceDirectory.equals(dir)) {\n // Create this directory in the target and make it our current target.\n Path newDirectory = this.currentTargetDirectory.resolve(dir.getFileName());\n boolean didCreate = newDirectory.toFile().mkdir();\n Assert.assertTrue(didCreate);\n logger.output(\"Created directory: \" + newDirectory);\n this.currentTargetDirectory = newDirectory;\n }\n return FileVisitResult.CONTINUE;\n }", "public static void main(String[] args) {\n String startDir = \"E:/DEKSTOP/Projets/photosortTest\";\n\n //We list what is in this folder :\n\n System.out.println(\"\\n\\n\\nListing of files recursively : \\n\");\n\n printListFilesRecursive(startDir);\n\n //Then we create 2 directories\n createDirectory(startDir, \"css_files\");\n createDirectory(startDir, \"js_files\");\n\n //Then we select all the js file and move it to /js_file, same for css files\n List<String> list_js = new ArrayList<>();\n List<String> list_css = new ArrayList<>();\n\n listFilesRecursiveByExtension(startDir,\"js\",list_js);\n listFilesRecursiveByExtension(startDir,\"css\",list_css);\n\n for (String item_js : list_js){\n copyFile(item_js,startDir+\"/js_files\",new File(item_js).getName());\n }\n\n\n for (String item_css : list_css){\n copyFile(item_css,startDir+\"/css_files\",new File(item_css).getName());\n }\n System.out.println(\"Listing of file dummy : \\n\");\n //array in which we will store the names of files and directories\n\n printDummyListFiles(startDir);\n\n\n\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n }", "private void loadImages(BufferedImage[] images, String direction) {\n for (int i = 0; i < images.length; i++) {\n String fileName = direction + (i + 1);\n images[i] = GameManager.getResources().getMonsterImages().get(\n fileName);\n }\n\n }", "private static void processFontDirectory(File dir, ArrayList fonts) {\n if (!dir.exists()) {\n return;\n }\n if (processed.contains(dir)) {\n return;\n }\n processed.add(dir);\n\n File[] sources = dir.listFiles();\n if (sources == null) {\n return;\n }\n\n for (int j = 0; j < sources.length; j++) {\n File source = sources[j];\n\n if (source.getName().equals(\".\")) {\n continue;\n }\n if (source.getName().equals(\"slick/src/test\")) {\n continue;\n }\n if (source.isDirectory()) {\n processFontDirectory(source, fonts);\n continue;\n }\n if (source.getName().toLowerCase().endsWith(\".ttf\")) {\n try {\n if (statusListener != null) {\n statusListener.updateStatus(\"Processing \" + source.getName());\n }\n FontData data = new FontData(new FileInputStream(source), 1);\n fonts.add(data);\n\n String famName = data.getFamilyName();\n if (!families.contains(famName)) {\n families.add(famName);\n }\n\n boolean bo = data.getJavaFont().isBold();\n boolean it = data.getJavaFont().isItalic();\n\n if ((bo) && (it)) {\n bolditalic.put(famName, data);\n } else if (bo) {\n bold.put(famName, data);\n } else if (it) {\n italic.put(famName, data);\n } else {\n plain.put(famName, data);\n }\n } catch (Exception e) {\n if (DEBUG) {\n System.err.println(\"Unable to process: \" + source.getAbsolutePath() + \" (\" + e.getClass() +\n \": \" + e.getMessage() + \")\");\n }\n if (statusListener != null) {\n statusListener.updateStatus(\"Unable to process: \" + source.getName());\n }\n }\n }\n }\n }", "private void moveToFinal(String imageName, String sourceDirectory,\n\t\t\t\tString destinationDirectory) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry {\n\n\t\t\t\tFile afile = new File(sourceDirectory + imageName);\n\t\t\t\tFile bfile = new File(destinationDirectory + imageName);\n\t\t\t\tif (afile.renameTo(bfile)) {\n\t\t\t\t\tSystem.out.println(\"File is moved successful!\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"File is failed to move!\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "public static void processDirectory(String directory) {\n processDirectory(new File(directory));\n }", "private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";\n\n\t\t// Load background\n\t\tbackground = createImage(img_file_base + \"Underwater\" + ext);\n\t}", "void handle(String filePath, Status status) throws IOException, TransformException;", "public static void main(String[] args) throws IOException {\n BmpFile c = new ImageReader().read();\n \n BmpFileTransformer t = new BmpFileTransformer();\n c = t.transform(c);\n \n new ImageInHtmlWriter().create(c);\n BmpFileWriter w = new BmpFileWriter();\n w.write(c);\n }", "public void extractResources(final Collection<Resource> files, final File destinationDir) throws IOException {\n for (String file : CONTROL_RESOURCES) {\n final String path = String.format(\"/control/%s\", file);\n final URL resource = DropwizardMojo.class.getResource(path);\n if (resource != null) {\n final ByteSource source = Resources.asByteSource(resource);\n final File target = new File(destinationDir, path);\n extractResource(source, target, true);\n }\n }\n\n // Extract/filter passed in files\n for (Resource resource : files) {\n final String path = String.format(\"/files/%s\", resource.getTarget());\n final ByteSource source = resource.getSource();\n final File target = new File(destinationDir, path);\n extractResource(source, target, resource.isFilter());\n }\n }", "private static void buildDir (File dir) \n\t\tthrows Exception\n\t{\n\t\tFile[] contents = dir.listFiles();\n\t\tfor (int i = 0; i < contents.length; i++) {\n\t\t\tFile file = contents[i];\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tbuildDir(file);\n\t\t\t} else if (file.getName().endsWith(\".xml\")) {\n\t\t\t\tbuildFile(file);\n\t\t\t}\n\t\t}\n\t}", "void loadImages(final ImageSourcePublisher publisher);", "public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String[] args) {\n if (args.length < 3) {\n System.err.println(\"Insufficient command line arguments.\");\n }\n final String srcDir = args[0];\n final String assetDir = args[1];\n final String resourceDir = args[2];\n\n for (String dir : args) {\n if (!isDirectory(dir)) {\n System.err.println(\"\\\"\" + dir + \"\\\" does not exists or is not a directory.\");\n }\n }\n\n final CsvConverter converter = new CsvConverter(srcDir, assetDir, resourceDir);\n if (converter.generateAssets()) {\n System.out.println(\"Ranges processed:\");\n System.out.println(converter.getRecordCount());\n converter.generateResources();\n }\n }", "public void ImageTransform(){\n imageView.clearAnimation();\n Picasso.get()\n .load(url)\n .resize(150, 150)\n .centerCrop()\n .into(imageView);\n }", "public void getSourceJavaFilesForOneRepository(File dir, FilenameFilter searchSuffix, ArrayList<File> al) {\n\n\t\tFile[] files = dir.listFiles();\t\t\n\t\tfor(File f : files) {\n\t\t\tString lowercaseName = f.getName().toLowerCase();\n\t\t\tif(lowercaseName.indexOf(\"test\")!=-1)\n\t\t\t{\n\t\t\t\t/* we do not consider test files in our study */\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t if(f.isDirectory()){\n\t\t\t\t /* iterate over every directory */\n\t\t\t\t getSourceJavaFilesForOneRepository(f, searchSuffix, al);\t\t\n\t\t\t } else {\n\t\t\t\t /* returns the desired java files */\n\t\t\t\t if(searchSuffix.accept(dir, f.getName())){\n\t\t\t\t\t al.add(f);\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tPath resolve = target.resolve(source.relativize(dir));\n\t\t\t\tFile resolve_file = resolve.toFile();\n\n\t\t\t\tif (resolve_file.exists() == false) {\n\t\t\t\t\tFiles.createDirectory(resolve);\n\t\t\t\t} else {\n\t\t\t\t\t// delete old data in sub-directories\n\t\t\t\t\t// without deleting the directory\n\t\t\t\t\tArrays.asList(resolve_file.listFiles()).forEach(File::delete);\n\t\t\t\t}\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}", "private static void moveFiles(String src, String dest, int Num) // \n\t{\n\t File directoryPath = new File(src);\n\t \n\t // Creating filter for directories files, to select files only\n\t FileFilter fileFilter = new FileFilter(){\n\t public boolean accept(File dir) \n\t { \n\t if (dir.isFile()) \n\t {\n\t return true;\n\t } \n\t else \n\t {\n\t return false;\n\t }\n\t }\n\t }; \n\t \n\t // Get list of files in the source folder\n\t File[] list = directoryPath.listFiles(fileFilter);\n\t \n\t int i = 0;\n\t \n\t // Move Num file to destination folder\n\t while ((i < Num) && (i < list.length))\n\t {\n\t \tString srcFileName = src + \"/\" + list[i].getName();\n\t \tString destFileName = dest + \"/\" + list[i].getName();\n\t \tmoveFile(srcFileName, destFileName);\n\t \ti++;\t \t\n\t } \n\t}", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "protected void gatherSources(Collection<String> templateNames,\n File sourceDir, boolean recurse)\n throws IOException {\n gatherSources(templateNames, sourceDir, null, recurse);\n }", "private static void applyTransformations(DataFrame dataFrame) {\n // apply all transformations of every column\n for (GenericColumn column : dataFrame.getColumns()) {\n try {\n for (Transformer transformer : column.getTransformers()) {\n dataFrame.transformColumn(column, transformer);\n }\n } catch (Exception e) {\n throw AnchorTabularBuilderException.transformationException(column, e);\n }\n }\n }", "public void addObserversToImageFiles(Observer observer) {\n for (ImageFile imageFile : allImagesUnderDirectory) {\n imageFile.addObserver(observer);\n }\n }", "void processContentFiles(final File directoryToProcess, final String configId) {\r\n File[] files = directoryToProcess.listFiles();\r\n for (int fileIndex = 0; fileIndex < files.length; fileIndex++) {\r\n if (!(files[fileIndex].getName().equals(Constants.CONFIGURATION_FILE_NAME) || files[fileIndex]\r\n .getName().startsWith(\"successful_\"))) {\r\n try {\r\n storeContentToInfrastructure(directoryToProcess, configId, files, fileIndex);\r\n }\r\n catch (DepositorException e) {\r\n // FIXME give a message\r\n LOG.error(e.getMessage(), e);\r\n addToFailedConfigurations(configId);\r\n }\r\n }\r\n }\r\n }", "private void addSystemDirFilesToImage() throws IOException {\n File sourceSystemDir = new File(builderContext.sourceTbOptionsDir, \"system.v2\");\n if (!isValidCSMSource(sourceSystemDir)) {\n // Fall back to the system default, ~/Amplio/ACM/system.v2\n sourceSystemDir = new File(AmplioHome.getAppSoftwareDir(), \"system.v2\");\n }\n\n File targetSystemDir = new File(imageDir, \"system\");\n\n // The csm_data.txt file. Control file for the TB.\n File csmData = new File(sourceSystemDir, \"csm_data.txt\");\n FileUtils.copyFileToDirectory(csmData, targetSystemDir);\n\n // Optionally, the source for csm_data.txt file. \n File controlDefFile = new File(sourceSystemDir, \"control_def.txt\");\n if (controlDefFile.exists()) {\n FileUtils.copyFileToDirectory(controlDefFile, targetSystemDir);\n }\n\n // If UF is hidden in the deployment, copy the appropriate 'uf.der' file to 'system/'\n if (deploymentInfo.isUfHidden()) {\n UfKeyHelper ufKeyHelper = new UfKeyHelper(builderContext.project);\n byte[] publicKey = ufKeyHelper.getPublicKeyFor(builderContext.deploymentNo);\n File derFile = new File(targetSystemDir, \"uf.der\");\n try (FileOutputStream fos = new FileOutputStream(derFile);\n DataOutputStream dos = new DataOutputStream(fos)){\n dos.write(publicKey);\n }\n }\n }", "@Override\n protected void internalTransform(String arg0, Map arg1) {\n for (SootClass c : Scene.v().getApplicationClasses()) {\n //if (c.getName().startsWith(\"com\"))//TODO\n // if(c.getName().start)\n try {\n transform(c);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }\n }", "private void convertFile() throws Exception {\n\t\t// Inform the user that we're working\n\t\tmainframe.isLoading();\n\t\toutputMessage = \"Starting conversion...\";\n\n\t\t// ---------- Setting the output\n\t\t// *** Creating the dir\n\n\t\t// if the outputfiletextfield is empty, output file folder is same as input file's\n\t\tif(mainframe.getOutputTextfieldText().trim().equals(\"\")) {\n\t\t\tString[] temporarypath = null;\n\t\t\ttemporarypath = curFile.getAbsolutePath().split(\".xml\");\n\t\t\tdir = temporarypath[0];\n\n\t\t\toutputMessage += '\\n' + \"No output filled, same directory as input will be used\";\n\t\t}\n\t\telse{\n\t\t\ttry {\n\t\t\t\tFile f = new File(mainframe.getOutputTextfieldText());\n\n\t\t\t\t// if the selected is a directory\n\t\t\t\tif(f.isDirectory())\n\t\t\t\t{\n\t\t\t\t\t// split the file name\n\t\t\t\t\tString[] temporarypath = curFile.getName().split(\".xml\");\n\n\t\t\t\t\tdir = f.getAbsolutePath() + File.separator + temporarypath[0];\n \n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"sif\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".sif\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"csv\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".csv\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthrow new Exception(\"Invalid output : directory, SIF file or CSV file expected\");\n\t\t\t\t}\n\t\t\t} catch (NullPointerException nullExp){\n\t\t\t\toutputMessage += '\\n' + \"No output fuilled, same directory as input will be used\";\n\t\t\t}\n\t\t}\n\n\n\n\t\t// *** Setting the targets\n\t\tsetTargetSIFpath(dir.concat(\".sif\"));\n\t\tsetTargetCSVpath(dir.concat(\".csv\"));\n\t\t// set the target node type NA path\n\t\tsetTargetNODE_TYPEpath(dir.concat(\".NODE_TYPE.NA\"));\n\t\t// set the UNIPROT NA path\n\t\tsetTargetUNIPROTpath(dir.concat(\".UNIPROT.NA\"));\n\t\t// set the MODIFICATIONS NA path\n\t\tsetTargetMODIFICATIONSpath(dir.concat(\".MODIFICATIONS.NA\"));\n\t\t// set the PREFERRED_SYMBOL NA path\n\t\tsetTargetPREFERRED_SYMBOLpath(dir.concat(\".PREFERRED_SYMBOL.NA\"));\n\t\t// set the PREFERRED_SYMBOL_EXT NA path\n\t\tsetTargetPREFERRED_SYMBOL_EXTpath(dir.concat(\".PREFERRED_SYMBOL_EXT.NA\"));\n\t\t// set the PID NA path\n\t\tsetTargetPIDpath(dir.concat(\".PID.NA\"));\n\t\t// set the ID_PREF NA path\n\t\tsetTargetID_PREFpath(dir.concat(\".ID_PREF.NA\"));\n\t\t// set the IDCytoUniProtFile path\n\t\tsetTargetIDCytoUniProtFilepath(dir.concat(\".IDCytoToUniProt.NA\"));\n\t\t// set the UniqueUniProtFile path\n\t\tsetTargetUniqueUniProtFilepath(dir.concat(\".UNIQUEUNIPROT.NA\"));\n\t\t// set the UniProt to GeneID map file path\n\t\tsetTargetUniProtToGeneIDMapFilepath(dir.concat(\".UPToGeneIDMap.NA\"));\n\t\t// set the GeneID to Affymetrix map file path\n\t\tsetTargetGeneIDtoAffymetrixMapFilepath(dir.concat(\".GeneIDToAffyMap.NA\"));\n\n\t\t// For the user\n\t\toutputMessage += '\\n' + \"Target for conversion : \" + dir;\n\t\tmainframe.setTextToOutputText(dir);\n\n\t\t// ----------------- Converting\n\t\tif(inputfilepath.endsWith(\"xml\"))\n\t\t{\n\t\t\tNodeManagerImpl manager = NodeManagerImpl.getInstance();\n\t\t\tFileReader reader = PidFileReader.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\treader.read(inputfilepath);\n\t\t\t}\n\t\t\tcatch (NoValidManagerSetException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\t\t\tcatch (FileParsingException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\n\t\t\tFileWriter writer = SifFileWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\tif (mainframe.isExpandChecked())\n\t\t\t\t{\n\t\t\t\t\twriter = SifFileExpandMolWriter.getInstance();\n\t\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\t\tFileWriter nWriter = NodeTypeAttributeForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tnWriter.write(getTargetNODE_TYPEpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter uWriter = UniprotIdForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tuWriter.write(getTargetUNIPROTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter modiWriter = ModificationsWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmodiWriter.write(getTargetMODIFICATIONSpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pWriter = PreferredSymbolForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOLpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tpWriter = ExtPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOL_EXTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pidWriter = PidForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpidWriter.write(getTargetPIDpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter prefIdWriter = IdWithPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tprefIdWriter.write(getTargetID_PREFpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Parsing NA to CSV\n\t\t\ttry {\n\t\t\t\tparserTask = new ParserTask(getTargetCSVpath(),getTargetPIDpath(), getTargetNODE_TYPEpath(), getTargetUNIPROTpath(), getTargetMODIFICATIONSpath(),\n\t\t\t\t\t\tgetTargetPREFERRED_SYMBOLpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetID_PREFpath());\n\n\t\t\t\tFile SIFFile = new File(getTargetSIFpath());\n\t\t\t\tMyTaskObserver myTaskObserver = new MyTaskObserver(mainframe, tm, ldt, parserTask);\n\n\t\t\t\titr = ldn.createTaskIterator(SIFFile);\n\t\t\t\titr.append(parserTask);\n\t\t\t\ttm.execute(itr, myTaskObserver);\n\t\t\t} catch (Exception exp) {\n\t\t\t\tthrow new Exception(\"Problem when trying to parse the NA files or loading the graph : \\n\" + exp.toString());\n\t\t\t}\n\n\t\t}\n\t\telse // not an xml\n\t\t{\n\t\t\tthrow new Exception(\"Invalid input : .xml expected\");\n\t\t}\n \n\t}", "@Override\n public byte[] generate(@Nonnull final Collection<File> images) {\n final File redChannel = getFileForChannel(images, channelMap().red());\n final File greenChannel = getFileForChannel(images, channelMap().green());\n final File blueChannel = getFileForChannel(images, channelMap().blue());\n\n final Stopwatch stopwatch = Stopwatch.createStarted();\n final File mergedChannelsFile = gdalInvoker.mergeChannels(redChannel, greenChannel, blueChannel);\n LOG.info(\"intermediate file successfully generated in {} ms: {}\",\n stopwatch.elapsed(TimeUnit.MILLISECONDS), mergedChannelsFile.getAbsolutePath());\n\n stopwatch.reset();\n final File jpgFile = gdalInvoker.generateImage(mergedChannelsFile);\n LOG.info(\"jpg file successfully generated in {} ms: {}\",\n stopwatch.elapsed(TimeUnit.MILLISECONDS), jpgFile.getAbsolutePath());\n\n final byte[] bytes = toBytes(jpgFile);\n\n FileUtils.deleteQuietly(mergedChannelsFile);\n FileUtils.deleteQuietly(jpgFile);\n\n return bytes;\n }", "@Override\n\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\tSystem.out.println(dir.toAbsolutePath());\n\t\tPath RelativizedPath = SourceRoot.relativize(dir);\n\t\tSystem.out.println(RelativizedPath.toAbsolutePath());\n\t\tPath ResolvedPath = TargetRoot.resolve(RelativizedPath);\n\t\tSystem.out.println(ResolvedPath.toAbsolutePath());\n\t\t\n\t\ttry {\n\t\t\tFiles.copy(dir,ResolvedPath,StandardCopyOption.REPLACE_EXISTING);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn FileVisitResult.SKIP_SUBTREE;\n\t\t}\n\t\t\n\t\t\n\t\t\ttry {\n\t\t\t\tFiles.deleteIfExists(dir);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\treturn FileVisitResult.CONTINUE;\n\t}", "public static void zipFiles(List<String> srcFiles, String directoryPath) throws FileNotFoundException, IOException {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd-MM-yyyy-HHmmss\");\r\n LocalDateTime now = LocalDateTime.now();\r\n String d = dtf.format(now);\r\n FileOutputStream fos = new FileOutputStream(directoryPath + \"\\\\\" + \"backupRexs\" + d + \".zip\");\r\n ZipOutputStream zipOut = new ZipOutputStream(fos);\r\n for (String srcFile : srcFiles) {\r\n File fileToZip = new File(srcFile);\r\n FileInputStream fis = new FileInputStream(fileToZip);\r\n ZipEntry zipEntry = new ZipEntry(fileToZip.getName());\r\n zipOut.putNextEntry(zipEntry);\r\n\r\n byte[] bytes = new byte[1024];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zipOut.write(bytes, 0, length);\r\n }\r\n fis.close();\r\n fileToZip.delete();\r\n }\r\n zipOut.close();\r\n fos.close();\r\n }", "public void processDirectory(String dirName, DraftStatus minimalDraftStatus)\n throws IOException, ParseException {\n File dir = new File(outputDir + dirName);\n if (!dir.exists()) {\n dir.mkdirs();\n }\n SupplementalDataInfo sdi = SupplementalDataInfo.getInstance(CldrUtility.DEFAULT_SUPPLEMENTAL_DIRECTORY);\n Factory cldrFactory = Factory.make(\n cldrCommonDir + dirName + \"/\", \".*\");\n Set<String> files = cldrFactory.getAvailable();\n for (String filename : files) {\n if (LdmlConvertRules.IGNORE_FILE_SET.contains(filename)) {\n continue;\n }\n if (!filename.matches(match)) {\n continue;\n }\n\n System.out.println(\"Processing file \" + dirName + \"/\" + filename);\n String pathPrefix;\n CLDRFile file = cldrFactory.make(filename, resolve && dirName.equals(MAIN), minimalDraftStatus);\n\n sectionItems.clear();\n if (dirName.equals(MAIN)) {\n pathPrefix = \"/cldr/\" + dirName + \"/\" + filename.replaceAll(\"_\", \"-\") + \"/\";\n } else {\n pathPrefix = \"/cldr/\" + dirName + \"/\";\n }\n mapPathsToSections(file, pathPrefix, sdi);\n\n String outputDirname;\n if (dirName.equals(MAIN)) {\n outputDirname = outputDir + dirName + File.separator + filename.replaceAll(\"_\", \"-\");\n } else {\n outputDirname = outputDir + dirName;\n }\n convertCldrItems(outputDirname, pathPrefix);\n }\n }", "private void processBulk()\n {\n File inDir = new File(m_inDir);\n String [] fileList = inDir.list();\n \n for (int j=0; j<fileList.length; j++)\n {\n String file = fileList[j];\n if (file.endsWith(\".xml\"))\n {\n m_inFile = m_inDir + \"/\" + file;\n m_localeStr = Utilities.extractLocaleFromFilename(file);\n processSingle();\n }\n }\n }", "private static void replaceAssetsReferencesInDirImpl(Path dir, Path rootDir, Map<String, String> assetSubstitutes,\n Properties generatorSettings) throws IOException {\n // Replace references\n try (var htmlFiles = Files.newDirectoryStream(dir, FileFilters.htmlFilter)) {\n for (Path htmlFile : htmlFiles) {\n Document doc = Jsoup.parse(htmlFile.toFile(), \"UTF-8\");\n URI docURI = URI.create(rootDir.relativize(dir).resolve(htmlFile.getFileName()).toString());\n\n LOG.debug(String.format(\"Replacing asset references in '%s'\", htmlFile));\n replaceAssetsReferencesInDoc(doc, docURI, assetSubstitutes, generatorSettings);\n\n Files.write(htmlFile, doc.outerHtml().getBytes());\n }\n }\n\n // Replace refs in sub directories\n try (var subDirs = FileFilters.subDirStream(dir)) {\n for (var subDir : subDirs) {\n replaceAssetsReferencesInDirImpl(subDir, rootDir, assetSubstitutes, generatorSettings);\n }\n }\n }", "protected Seq<Fi> loadImages(Xml root, Fi tmxFile){\n Seq<Fi> images = new Seq<>();\n\n for(Xml imageLayer : root.getChildrenByName(\"imagelayer\")){\n Xml image = imageLayer.getChildByName(\"image\");\n String source = image.getAttribute(\"source\", null);\n\n if(source != null){\n Fi handle = getRelativeFileHandle(tmxFile, source);\n\n if(!images.contains(handle, false)){\n images.add(handle);\n }\n }\n }\n\n return images;\n }", "@Override\n \t\t\t\tpublic File getTransformerDirectory() {\n \t\t\t\t\treturn null;\n \t\t\t\t}", "public static void main(String arg[]) {\n\t\ttry {\n\t\t\tSource transformSource = new StreamSource(arg[0]);\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance(\"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl\", null);\n\t\t\tTransformer transformer = tf.newTransformer(transformSource);\n\t\t\tStreamSource inputSource = new StreamSource(arg[1]);\n\t\t\tStreamResult outputResult = new StreamResult(new File(arg[2]));\n\t\t\ttransformer.transform(inputSource,outputResult);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t}\n\t}", "public ArrayList<ImageFile> getAllImagesUnderDirectory() throws IOException {\n return allImagesUnderDirectory;\n }", "public void setDir(File dir) {\n _sourceDir = dir;\n }", "public void convert() throws Exception {\r\n\t\tString svg_URI_input = Paths.get(\"library.svg\").toUri().toURL().toString();\r\n\t\tTranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);\r\n\t\tthis.setNewImage(generate(20));// Define the name of the file\r\n\t\ttry (OutputStream png_ostream = new FileOutputStream(newImage)) {\r\n\t\t\tTranscoderOutput output_png_image = new TranscoderOutput(png_ostream);\r\n\r\n\t\t\tPNGTranscoder my_converter = new PNGTranscoder();\r\n\t\t\tmy_converter.transcode(input_svg_image, output_png_image);\r\n\r\n\t\t\tpng_ostream.flush();\r\n\t\t\tpng_ostream.close();\r\n\t\t}\r\n\r\n\t}", "public static void searchForImageReferences(File rootDir, FilenameFilter fileFilter) {\n \t\tfor (File file : rootDir.listFiles()) {\n \t\t\tif (file.isDirectory()) {\n \t\t\t\tsearchForImageReferences(file, fileFilter);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\tif (fileFilter.accept(rootDir, file.getName())) {\n \t\t\t\t\tif (MapTool.getFrame() != null) {\n \t\t\t\t\t\tMapTool.getFrame().setStatusMessage(\"Caching image reference: \" + file.getName());\n \t\t\t\t\t}\n \t\t\t\t\trememberLocalImageReference(file);\n \t\t\t\t}\n \t\t\t} catch (IOException ioe) {\n \t\t\t\tioe.printStackTrace();\n \t\t\t}\n \t\t}\n \t\t// Done\n \t\tif (MapTool.getFrame() != null) {\n \t\t\tMapTool.getFrame().setStatusMessage(\"\");\n \t\t}\n \t}", "private void loadImages() {\n\t\ttry {\n\t\t\timage = ImageIO.read(Pillar.class.getResource(\"/Items/Pillar.png\"));\n\t\t\tscaledImage = image;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed to read Pillar image file: \" + e.getMessage());\n\t\t}\n\t}", "@Override\n protected void process() {\n final List<File> srtFiles = new FileFinder().collect(new File(Constants.FILEFIXER_ROOT_DIR), Constants.SRT_EXTENSION);\n\n // process each file, making a backup first if it is enabled\n for (final File srtFile : srtFiles) {\n System.out.println(\"Processing subtitle file :: \" + srtFile.getName());\n\n if (Constants.MAKE_BACKUPS) {\n backupFile(srtFile);\n }\n\n fix(srtFile);\n }\n }", "public static void runFolders(File srcDir, String strSkinFolderName, String _relativePath,\n String folderContentType) {\n\n String relativePath = _relativePath;\n\n File[] list = srcDir.listFiles();\n\n for (int i = 0; i < list.length; i++) {\n File fileItem = list[i];\n if (fileItem.isDirectory()) {\n String prevRelativePath = new String(relativePath);\n relativePath += \"/\" + fileItem.getName();\n runFolders(fileItem, strSkinFolderName, relativePath, folderContentType);\n relativePath = prevRelativePath;\n } else {\n try {\n if (log4j.isDebugEnabled())\n log4j.debug(list[i] + \" Parent: \" + fileItem.getParent() + \" getName() \"\n + fileItem.getName() + \" canonical: \" + fileItem.getCanonicalPath());\n if (folderContentType == \"RTL\") {\n count++;\n modifySkin(list[i]);\n } else if (folderContentType == \"LTR\") {\n count++;\n }\n } catch (Exception e) {\n log4j.error(\"IOException: \" + e);\n }\n }\n }\n }", "abstract void addNewSourceDirectory(final File targetDirectory);", "private static void runTests() {\r\n\t\tfor (int i = 0; i < testFiles.length; i++) {\r\n\t\t\tConverter file = new Converter(testFiles[i]);\r\n\t\t\tfile.convert();\r\n\t\t\tSystem.out.println(\"---------\");\r\n\t\t}\r\n\t}", "public void initializeImages() {\n\n File dir = new File(\"Images\");\n if (!dir.exists()) {\n boolean success = dir.mkdir();\n System.out.println(\"Images directory created!\");\n }\n }", "public static void convert_png_to_jpg(String sourceDir, String destinationDir) throws IOException {\n\t\tBufferedImage bufferedImage;\n\t\tFile sourceFile = new File(sourceDir);\n\n\t\ttry {\n\n\t\t\t// read image file\n\t\t\tbufferedImage = ImageIO.read(new File(sourceDir));\n\n\t\t\t// create a blank, RGB, same width and height, and a white background\n\t\t\tBufferedImage newBufferedImage = new BufferedImage(bufferedImage.getWidth(), bufferedImage.getHeight(),\n\t\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\t\t\tnewBufferedImage.createGraphics().drawImage(bufferedImage, 0, 0, Color.WHITE, null);\n\t\t\tString fileName = sourceFile.getName().replace(\".png\", \"\");\n\t\t\tFile outputfile = new File(destinationDir + \"/\" + fileName + \".jpg\");\n\n\t\t\t// write to jpeg file\n\t\t\tImageIO.write(newBufferedImage, \"jpg\", outputfile);\n\n\t\t\t// System.out.println(\"Done\");\n\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "public static void main(String[] args) {\n\n File file = new File(\"./src/cat.txt\");\n System.out.println(file.exists());\n System.out.println(file.getName());\n System.out.println(file.getAbsolutePath());\n System.out.println(file.isDirectory());\n System.out.println(file.isFile());\n System.out.println(file.length());\n System.out.println(file.renameTo(new File(\"cat.txt\")));\n\n File folder = new File(\"./cat.txt\");\n boolean mkdir = folder.mkdir();\n\n File folderInFolder = new File(\"./folder/unAltFolder\");\n folderInFolder.mkdirs();\n\n System.out.println(file.getParent());\n File srcFile = new File(\"./src/main\");\n File[] filesFromSrc = srcFile.listFiles();\n\n for (File fileSrc : filesFromSrc) {\n System.out.println(fileSrc);\n }\n\n }", "public void transform() {\n\t\tthis.targetRootBlock = copy(this.sourceRootBlock);\n\n\t\tList<BlockImpl> blocks = allSubobjectsOfKind(targetRootBlock,\n\t\t\t\tBlockImpl.class);\n\t\tList<Block> emptyBlocks = new LinkedList<Block>();\n\t\tfor (Block block : blocks) {\n\t\t\tif (block.getModelElement().size() == 0) {\n\t\t\t\temptyBlocks.add(block);\n\t\t\t}\n\t\t}\n\n\t\tfor (Block block : emptyBlocks) {\n\t\t\tcreateSquare(block);\n\t\t\tEcoreUtil.delete(block);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Completed Transformation\");\n\t\t}\n\t}", "public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }", "public Builder setImagesByTransform(\n int index, com.yahoo.xpathproto.TransformTestProtos.ContentImage value) {\n if (imagesByTransformBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureImagesByTransformIsMutable();\n imagesByTransform_.set(index, value);\n onChanged();\n } else {\n imagesByTransformBuilder_.setMessage(index, value);\n }\n return this;\n }", "private ArrayList<char[]> subdirectoriesToFiles(String inputDir, ArrayList<char[]> fullFileList) throws IOException {\n\t\tArrayList<char[]> currentList =\n\t\t\t\tnew ArrayList<char[]>(Arrays.asList(new File(inputDir).listFiles()));\n\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\t\n\t\t\telse if (file.isDirectory())\n\t\t\t\tsubdirectoriesToFiles(file.getPath(), fullFileList);\n\t\t\t\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "public Object transform(Object object) {\n for (int i = 0; i < iTransformers.length; i++) {\n object = iTransformers[i].transform(object);\n }\n return object;\n }", "public Object transform(Object object) {\r\n for (int i = 0; i < iTransformers.length; i++) {\r\n object = iTransformers[i].transform(object);\r\n }\r\n return object;\r\n }", "public void transform() {\r\n\r\n\t\tint x, y, i;\r\n\t\tComplex[] row = new Complex[width];\r\n\t\tfor (x = 0; x < width; ++x)\r\n\t\t\trow[x] = new Complex();\r\n\t\tComplex[] column = new Complex[height];\r\n\t\tfor (y = 0; y < height; ++y)\r\n\t\t\tcolumn[y] = new Complex();\r\n\r\n\t\tint direction;\r\n\t\tif (spectral)\r\n\t\t\tdirection = -1; // inverse transform\r\n\t\telse\r\n\t\t\tdirection = 1; // forward transform\r\n\r\n\t\t// Perform FFT on each row\r\n\r\n\t\tfor (y = 0; y < height; ++y) {\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\trow[x].re = data[i].re;\r\n\t\t\t\trow[x].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(row, width);\r\n\t\t\tfft(row, width, log2w, direction);\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\tdata[i].re = row[x].re;\r\n\t\t\t\tdata[i].im = row[x].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Perform FFT on each column\r\n\r\n\t\tfor (x = 0; x < width; ++x) {\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tcolumn[y].re = data[i].re;\r\n\t\t\t\tcolumn[y].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(column, height);\r\n\t\t\tfft(column, height, log2h, direction);\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tdata[i].re = column[y].re;\r\n\t\t\t\tdata[i].im = column[y].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (spectral)\r\n\t\t\tspectral = false;\r\n\t\telse\r\n\t\t\tspectral = true;\r\n\r\n\t}", "protected abstract void setupImages(Context context);", "private static void processJar(Path destinationPath) throws IOException {\n\n if (destinationPath == null) {\n throw new IOException(\"Cobigen folder path not found!\");\n }\n\n File cobigenTemplatesPath = CobiGenPaths.getTemplatesFolderPath().toFile();\n\n Path sourcesJarPath = TemplatesJarUtil.getJarFile(true, cobigenTemplatesPath).toPath();\n Path classesJarPath = TemplatesJarUtil.getJarFile(false, cobigenTemplatesPath).toPath();\n\n LOG.debug(\"Processing jar file @ {}\", sourcesJarPath);\n\n // extract sources jar to target directory\n extractArchive(sourcesJarPath, destinationPath);\n\n // create src/main/java directory\n Files.createDirectory(destinationPath.resolve(\"src/main/java\"));\n\n // move com folder to src/main/java/com\n Files.move(destinationPath.resolve(\"com\"), destinationPath.resolve(\"src/main/java/com\"),\n StandardCopyOption.REPLACE_EXISTING);\n\n // create src/main/resources directory\n Files.createDirectory(destinationPath.resolve(\"src/main/resources\"));\n\n // move META-INF folder to src/main/resources\n Files.move(destinationPath.resolve(\"META-INF\"), destinationPath.resolve(\"src/main/resources/META-INF\"),\n StandardCopyOption.REPLACE_EXISTING);\n\n // delete MANIFEST.MF\n Files.deleteIfExists(destinationPath.resolve(\"src/main/resources/META-INF/MANIFEST.MF\"));\n\n URI zipFile = URI.create(\"jar:file:\" + classesJarPath.toUri().getPath());\n\n // extract classes jar pom.xml\n try (FileSystem fs = FileSystemUtil.getOrCreateFileSystem(zipFile)) {\n Files.copy(fs.getPath(\"pom.xml\"), destinationPath.resolve(\"pom.xml\"), StandardCopyOption.REPLACE_EXISTING);\n }\n\n }", "public static void compile(final File source, final String destinationFolder) throws IOException, ParsingException {\n try (InputStream input = new FileInputStream(source);\n OutputStream output = new FileOutputStream(getDestinationFileName(source, destinationFolder).toFile())) {\n compile(input, output);\n }\n }", "public void source(String path) throws Exception;", "public static void transform(final String xmlSource, final String xslFilePath, final boolean doCacheXsl,\r\n final Writer out) {\r\n transform(xmlSource, xslFilePath, 0L, doCacheXsl, out);\r\n }", "@Override\r\n\tpublic void makeTransform() {\n\r\n\t\tImgproc.GaussianBlur(src, dst, new Size(size, size),\r\n\t\t\t\tTransConstants.GAUSSIAN_SIGMA);\r\n\r\n\t}", "public Builder addAllImagesByTransform(\n java.lang.Iterable<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImage> values) {\n if (imagesByTransformBuilder_ == null) {\n ensureImagesByTransformIsMutable();\n super.addAll(values, imagesByTransform_);\n onChanged();\n } else {\n imagesByTransformBuilder_.addAllMessages(values);\n }\n return this;\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tString dir=\"D:\\\\123\";\n\t\tString toDir=\"D:\\\\22222\";\n\t\t//\t\tFile dir = new File(\"D:/VRV/images/\");\n//\t\tList<File> files = getAllFile(dir);\n//\t\tfor(File file:files){\n//\t\t\tSystem.out.println(file);\n//\t\t}\n\t\tImgC( dir, toDir);\n//\t\tList<String > l = new ArrayList<String>();\n//\t\tl.add(\"123123\");\n//\t\tl.add(\"123123\");\n//\t\tl.add(\"123123\");\n//\t\tJSONArray ja = (JSONArray)JSON.toJSON(l);\n//\t\tSystem.out.println(ja);\n\t}", "public synchronized final void process() throws FilterException {\n if (this.result == null)\n throw new FilterException(i18n.getString(\"outputNotSet\"));\n if (this.source == null)\n throw new FilterException(i18n.getString(\"inputNotSet\"));\n\n try {\n // Starts the input interpretation (transformation)\n this.transformer.transform(this.source, this.result);\n } catch (TransformerException e) {\n throw new FilterException(e);\n } finally {\n this.source = null;\n this.result = null;\n }\n }", "@Override\n\tpublic void run() {\n\t\tif (!mainDir.isDirectory()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// inserisco il nome della cartella principale.\n\t\tproduceDirPath(mainDir.getName());\n\t\t\n\t\t// navigo ricorsivamente.\n\t\twalkDir(mainDir);\n\t}", "private static void processFile(String directoryPath) {\n File[] lstFiles = Utility.getFiles(directoryPath);\n Arrays.sort(lstFiles);\n if (lstFiles.length == 0)\n System.out.println(\"Error loading the directory\");\n else {\n System.out.println(\"Uncompressed Index Version 1 started...\");\n long startTime = System.currentTimeMillis();\n iProcessor = new UncompressedLemmaProcessor(lstFiles);\n iProcessor.execute();\n iProcessor.writeFile();\n long endTime = System.currentTimeMillis();\n System.out.println(\"Uncompressed Index Version 1 completed...\");\n System.out.println(\"Time taken to complete Uncompressed Version 1 is \" + (endTime - startTime) + \" ms\");\n\n System.out.println(\"Uncompressed Index Version 2 started...\");\n startTime = System.currentTimeMillis();\n iProcessor = new UncompressedStemProcessor(lstFiles);\n iProcessor.execute();\n iProcessor.writeFile();\n endTime = System.currentTimeMillis();\n System.out.println(\"Uncompressed Index Version 2 completed...\");\n System.out.println(\"Time taken to complete Uncompressed Version 2 is \" + (endTime - startTime) + \" ms\");\n\n System.out.println(\"Compressed Index Version 1 started...\");\n startTime = System.currentTimeMillis();\n iProcessor = new CompressedLemmaProcessor();\n iProcessor.execute();\n iProcessor.writeFile();\n endTime = System.currentTimeMillis();\n System.out.println(\"Compressed Index Version 1 completed...\");\n System.out.println(\"Time taken to complete Compressed Version 1 is \" + (endTime - startTime) + \" ms\");\n\n System.out.println(\"Compressed Index Version 2 started...\");\n startTime = System.currentTimeMillis();\n iProcessor = new CompressedStemProcessor();\n iProcessor.execute();\n iProcessor.writeFile();\n endTime = System.currentTimeMillis();\n System.out.println(\"Compressed Index Version 2 completed...\");\n System.out.println(\"Time taken to complete Compressed Version 2 is \" + (endTime - startTime) + \" ms\");\n\n printInformation();\n }\n }", "public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}" ]
[ "0.5830635", "0.5817454", "0.5450687", "0.54119754", "0.5375225", "0.53667825", "0.5323804", "0.5307083", "0.5303102", "0.5294894", "0.52732307", "0.5246289", "0.5195791", "0.51512533", "0.51466745", "0.51404214", "0.5119098", "0.5112208", "0.5059302", "0.50146836", "0.49550235", "0.49381086", "0.49369037", "0.48970854", "0.48893082", "0.47971168", "0.4787708", "0.47819543", "0.47640824", "0.47439426", "0.47435278", "0.47310495", "0.47045326", "0.4702278", "0.46939975", "0.46925324", "0.46835613", "0.46811876", "0.46795803", "0.4676135", "0.46731508", "0.4670314", "0.4668097", "0.4664433", "0.46586746", "0.46307784", "0.46288604", "0.4616842", "0.46115923", "0.4607277", "0.46059674", "0.45999762", "0.45964596", "0.4585149", "0.45515397", "0.45468143", "0.45461622", "0.45382294", "0.45361254", "0.45315343", "0.45188972", "0.4514954", "0.45124534", "0.45071146", "0.45007682", "0.44999984", "0.44981056", "0.44817173", "0.44775087", "0.44700214", "0.4467269", "0.4466632", "0.44594187", "0.44584855", "0.44514114", "0.44497138", "0.44485325", "0.44448382", "0.44398543", "0.44364244", "0.44298643", "0.44291753", "0.44279116", "0.44218406", "0.44190443", "0.44176272", "0.44126287", "0.44098228", "0.44076276", "0.4405647", "0.44040367", "0.43950734", "0.4390991", "0.43837273", "0.4383516", "0.437919", "0.43764946", "0.43752748", "0.43713388", "0.43698445" ]
0.6060715
0
Read coordinate transform from file (generated in Register_Virtual_Stack)
public CoordinateTransform readCoordinateTransform(String filename) { final CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>(); try { final FileReader fr = new FileReader(filename); final BufferedReader br = new BufferedReader(fr); String line = null; while ((line = br.readLine()) != null) { int index = -1; if( (index = line.indexOf("class=")) != -1) { // skip "class" index+= 5; // read coordinate transform class name final int index2 = line.indexOf("\"", index+2); final String ct_class = line.substring(index+2, index2); final CoordinateTransform ct = (CoordinateTransform) Class.forName(ct_class).newInstance(); // read coordinate transform info final int index3 = line.indexOf("=", index2+1); final int index4 = line.indexOf("\"", index3+2); final String data = line.substring(index3+2, index4); ct.init(data); ctl.add(ct); } } br.close(); } catch (FileNotFoundException e) { IJ.error("File not found exception" + e); } catch (IOException e) { IJ.error("IOException exception" + e); } catch (NumberFormatException e) { IJ.error("Number format exception" + e); } catch (InstantiationException e) { IJ.error("Instantiation exception" + e); } catch (IllegalAccessException e) { IJ.error("Illegal access exception" + e); } catch (ClassNotFoundException e) { IJ.error("Class not found exception" + e); } return ctl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static CoordinateTransform readCoordTransform(String filename) \n\t{\n\t\tfinal CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>();\n\t\ttry \n\t\t{\n\t\t\tfinal FileReader fr = new FileReader(filename);\n\t\t\tfinal BufferedReader br = new BufferedReader(fr);\n\t\t\tString line = null;\n\t\t\twhile ((line = br.readLine()) != null) \n\t\t\t{\n\t\t\t\tint index = -1;\n\t\t\t\tif( (index = line.indexOf(\"class=\")) != -1)\n\t\t\t\t{\n\t\t\t\t\t// skip \"class\"\n\t\t\t\t\tindex+= 5;\n\t\t\t\t\t// read coordinate transform class name\n\t\t\t\t\tfinal int index2 = line.indexOf(\"\\\"\", index+2); \n\t\t\t\t\tfinal String ct_class = line.substring(index+2, index2);\n\t\t\t\t\tfinal CoordinateTransform ct = (CoordinateTransform) Class.forName(ct_class).newInstance();\n\t\t\t\t\t// read coordinate transform info\n\t\t\t\t\tfinal int index3 = line.indexOf(\"=\", index2+1);\n\t\t\t\t\tfinal int index4 = line.indexOf(\"\\\"\", index3+2); \n\t\t\t\t\tfinal String data = line.substring(index3+2, index4);\n\t\t\t\t\tct.init(data);\n\t\t\t\t\tctl.add(ct);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tIJ.error(\"File not found exception\" + e);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tIJ.error(\"IOException exception\" + e);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\tIJ.error(\"Number format exception\" + e);\n\t\t\t\n\t\t} catch (InstantiationException e) {\n\t\t\tIJ.error(\"Instantiation exception\" + e);\n\t\t\t\n\t\t} catch (IllegalAccessException e) {\n\t\t\tIJ.error(\"Illegal access exception\" + e);\n\t\t\t\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tIJ.error(\"Class not found exception\" + e);\n\t\t\t\n\t\t}\n\t\treturn ctl;\n\t}", "@Override\n\tprotected void readImpl()\n\t{\n\t\t_x = readD();\n\t\t_y = readD();\n\t\t_z = readD();\n\t\t_heading = readD();\n\t}", "@Override\n public void readTilePositions(BufferedRandomAccessFile braf) throws IOException {\n row0 = braf.leReadInt();\n col0 = braf.leReadInt();\n nRows = braf.leReadInt();\n nCols = braf.leReadInt();\n this.row1 = row0 + nRows - 1;\n this.col1 = col0 + nCols - 1;\n if (nCols == 0) {\n offsets = null;\n // no position records follow in file.\n } else {\n offsets = new long[nRows][];\n for (int i = 0; i < nRows; i++) {\n offsets[i] = new long[nCols];\n }\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n offsets[i][j] = braf.leReadLong();\n }\n }\n }\n }", "public void readAll() throws FileNotFoundException{ \n b = new BinaryIn(this.filename);\n this.x = b.readShort();\n this.y = b.readShort();\n \n int count = (x * y) / (8 * 8);\n this.blocks = new double[count][8][8][3];\n \n Node juuri = readTree();\n readDataToBlocks(juuri);\n }", "public static void load(File file) throws IOException {\n while (LogicManager.isUpdating()) {} // wait until current update has finished\n\n LogicManager.setPaused(true);\n\n // clear current scene\n GridManager.clearScene();\n\n // open input stream\n ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));\n\n try {\n // load viewport data\n Point viewport = (Point) in.readObject();\n int scaling = (Integer) in.readObject();\n Window.getCurrentInstance()\n .getGameDisplay()\n .setViewport(viewport);\n Window.getCurrentInstance()\n .getGameDisplay()\n .setScaling(scaling);\n SwingUtilities.invokeLater(() -> {\n Window.getCurrentInstance()\n .getGameDisplay()\n .revalidate();\n Window.getCurrentInstance()\n .getGameDisplay()\n .repaint();\n });\n\n // load point data\n Point[] data;\n data = (Point[]) in.readObject();\n GridManager.loadScene(data);\n } catch (ClassNotFoundException e) {\n in.close();\n throw new IOException(\"File contains illegal data\");\n }\n in.close();\n }", "public Vector loadAffyGCOSExpressionFile(File f) throws IOException {\r\n \tthis.setTMEVDataType();\r\n final int preSpotRows = this.sflp.getXRow()+1;\r\n final int preExperimentColumns = this.sflp.getXColumn();\r\n int numLines = this.getCountOfLines(f);\r\n int spotCount = numLines - preSpotRows;\r\n\r\n if (spotCount <= 0) {\r\n JOptionPane.showMessageDialog(superLoader.getFrame(), \"There is no spot data available.\", \"TDMS Load Error\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n \r\n int[] rows = new int[] {0, 1, 0};\r\n int[] columns = new int[] {0, 1, 0};\r\n //String value,pvalue;\r\n String detection;\r\n\r\n float cy3, cy5;\r\n\r\n String[] moreFields = new String[1];\r\n String[] extraFields=null;\r\n final int rColumns = 1;\r\n final int rRows = spotCount;\r\n \r\n ISlideData slideDataArray[]=null;\r\n AffySlideDataElement sde=null;\r\n FloatSlideData slideData=null;\r\n \r\n BufferedReader reader = new BufferedReader(new FileReader(f));\r\n StringSplitter ss = new StringSplitter((char)0x09);\r\n String currentLine;\r\n int counter, row, column,experimentCount=0;\r\n counter = 0;\r\n row = column = 1;\r\n this.setFilesCount(1);\r\n this.setRemain(1);\r\n this.setFilesProgress(0);\r\n this.setLinesCount(numLines);\r\n this.setFileProgress(0);\r\n float[] intensities = new float[2];\r\n \r\n while ((currentLine = reader.readLine()) != null) {\r\n if (stop) {\r\n return null;\r\n }\r\n// fix empty tabbs appending to the end of line by wwang\r\n while(currentLine.endsWith(\"\\t\")){\r\n \tcurrentLine=currentLine.substring(0,currentLine.length()-1);\r\n }\r\n ss.init(currentLine);\r\n \r\n if (counter == 0) { // parse header\r\n \t\r\n \tif(sflp.onlyIntensityRadioButton.isSelected()) \r\n \t\texperimentCount = ss.countTokens()- preExperimentColumns;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/2;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/3;\r\n \t\r\n \t\r\n \tslideDataArray = new ISlideData[experimentCount];\r\n \tSampleAnnotation sampAnn=new SampleAnnotation();\r\n \tslideDataArray[0] = new SlideData(rRows, rColumns, sampAnn);//Added by Sarita to include SampleAnnotation model.\r\n \r\n slideDataArray[0].setSlideFileName(f.getPath());\r\n for (int i=1; i<experimentCount; i++) {\r\n \tsampAnn=new SampleAnnotation();\r\n \tslideDataArray[i] = new FloatSlideData(slideDataArray[0].getSlideMetaData(),spotCount, sampAnn);//Added by Sarita \r\n \tslideDataArray[i].setSlideFileName(f.getPath());\r\n \t//System.out.println(\"slideDataArray[i].slide file name: \"+ f.getPath());\r\n }\r\n if(sflp.onlyIntensityRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[1];\r\n \t//extraFields = new String[1];\r\n \tfieldNames[0]=\"AffyID\";\r\n \tslideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[2];\r\n \textraFields = new String[1];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else{\r\n \tString [] fieldNames = new String[3];\r\n \textraFields = new String[2];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n fieldNames[2]=\"P-value\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n \r\n }\r\n ss.nextToken();//parse the blank on header\r\n for (int i=0; i<experimentCount; i++) {\r\n \tString val=ss.nextToken();\r\n\t\t\t\t\tslideDataArray[i].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\tslideDataArray[i].getSampleAnnotation().setAnnotation(\"Default Slide Name\", val);\r\n\t\t\t\t\tslideDataArray[i].setSlideDataName(val);\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.mav.getData().setSampleAnnotationLoaded(true);\r\n\t\t\t \t \r\n if(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection\r\n ss.nextToken();//parse the pvalue\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection \r\n } \r\n }\r\n \r\n } else if (counter >= preSpotRows) { // data rows\r\n \trows[0] = rows[2] = row;\r\n \tcolumns[0] = columns[2] = column;\r\n \tif (column == rColumns) {\r\n \t\tcolumn = 1;\r\n \t\trow++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t} else {\r\n \t\tcolumn++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t}\r\n\r\n \t//affy ID\r\n \tmoreFields[0] = ss.nextToken();\r\n \r\n \t\r\n \t\r\n String cloneName = moreFields[0];\r\n if(_tempAnno.size()!=0) {\r\n \t \r\n \t \t \r\n \t if(((MevAnnotation)_tempAnno.get(cloneName))!=null) {\r\n \t\t MevAnnotation mevAnno = (MevAnnotation)_tempAnno.get(cloneName);\r\n\r\n \t\t sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields, mevAnno);\r\n \t }else {\r\n \t /**\r\n \t * Sarita: clone ID explicitly set here because if the data file\r\n \t * has a probe (for eg. Affy house keeping probes) for which Resourcerer\r\n \t * does not have annotation, MeV would still work fine. NA will be\r\n \t * appended for the rest of the fields. \r\n \t * \r\n \t * \r\n \t */\r\n \t\tMevAnnotation mevAnno = new MevAnnotation();\r\n \t\tmevAnno.setCloneID(cloneName);\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields, mevAnno);\r\n \t \t\t \r\n }\r\n }\r\n /* Added by Sarita\r\n * Checks if annotation was loaded and accordingly use\r\n * the appropriate constructor.\r\n * \r\n * \r\n */\r\n \r\n else {\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields);\r\n }\r\n \r\n \t\r\n \t//sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields);\r\n\r\n \tslideDataArray[0].addSlideDataElement(sde);\r\n \tint i=0;\r\n\r\n \tfor ( i=0; i<slideDataArray.length; i++) { \r\n \t\ttry {\t\r\n\r\n \t\t\t// Intensity\r\n \t\t\tintensities[0] = 1.0f;\r\n \t\t\tintensities[1] = ss.nextFloatToken(0.0f);\r\n \t\t\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t\textraFields[1]=ss.nextToken();//p-value\r\n \t\t\t\t\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t}\r\n\r\n \t\t} catch (Exception e) {\r\n \t\t\t\r\n \t\t\tintensities[1] = Float.NaN;\r\n \t\t}\r\n \t\tif(i==0){\r\n \t\t\t\r\n \t\t\tslideDataArray[i].setIntensities(counter - preSpotRows, intensities[0], intensities[1]);\r\n \t\t\t//sde.setExtraFields(extraFields);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t\tsde.setPvalue(new Float(extraFields[1]).floatValue());\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t}\r\n \t\t}else{\r\n \t\t\tif(i==1){\r\n \t\t\t\tmeta = slideDataArray[0].getSlideMetaData(); \t\r\n \t\t\t}\r\n \t\t\tslideDataArray[i].setIntensities(counter-preSpotRows,intensities[0],intensities[1]);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setPvalue(counter-preSpotRows,new Float(extraFields[1]).floatValue());\r\n \t\t\t}\r\n \t\t\tif(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n } else {\r\n //we have additional sample annoation\r\n \r\n \tfor (int i = 0; i < preExperimentColumns - 1; i++) {\r\n\t\t\t\t\tss.nextToken();\r\n\t\t\t\t}\r\n\t\t\t\tString key = ss.nextToken();\r\n\r\n\t\t\t\tfor (int j = 0; j < slideDataArray.length; j++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(slideDataArray[j].getSampleAnnotation()!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString val=ss.nextToken();\r\n\t\t\t\t\t\tslideDataArray[j].getSampleAnnotation().setAnnotation(key, val);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tSampleAnnotation sampAnn=new SampleAnnotation();\r\n\t\t\t\t\t\t\tsampAnn.setAnnotation(key, ss.nextToken());\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotation(sampAnn);\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \t}\r\n \t\r\n this.setFileProgress(counter);\r\n \tcounter++;\r\n \t//System.out.print(counter);\r\n \t}\r\n reader.close();\r\n \r\n \r\n Vector data = new Vector(slideDataArray.length);\r\n \r\n for(int j = 0; j < slideDataArray.length; j++)\r\n \tdata.add(slideDataArray[j]);\r\n \r\n this.setFilesProgress(1);\r\n return data;\r\n }", "@Test\n public void loadFromFileWithWrongGizmoCoordinates() throws Exception {\n fileInOut.setFilePath(\"src/wrongCoordinates\");\n fileInOut.loadFromFile();\n }", "public void readFromFile() {\n\n\t}", "public void readObjectDescription(String fileName) {\n Scanner in;\n try {\n in = new Scanner(new File(fileName));\n // Read the number of vertices\n numCtrlPoints = in.nextInt();\n controlPoints = new Point[numCtrlPoints];\n \n // Read the vertices\n for (int i = 0; i < numCtrlPoints; i++) {\n // Read a vertex\n int x = in.nextInt();\n int y = in.nextInt();\n //vertexArray[i] = new Point(x, y);\n controlPoints[i] = new Point(x, y);\n }\n } catch (FileNotFoundException e) {\n System.out.println(e);\n }\n\n }", "Points(String filepath){\n readPointsFile(filepath); //dengan file points.txt\n }", "public void my_readFromParcel(Parcel in) {\n x = in.readFloat();\n y = in.readFloat();\n }", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "public void readIn(String fileName) throws FileNotFoundException {\n\t\tScanner scanner = new Scanner(new FileInputStream(fileName));\n\t\ttry {\n\t\t\tscanner.nextLine(); // Skip line 1 (header)\n\t\t\tscanner.nextLine(); // Skip line 2 (header)\n\t\t\twhile (scanner.hasNextLine()){\n\t\t\t\tprocess(scanner.nextLine());\n\t\t\t}\n\t\t\tCollections.sort(allCoords); //Sort allCoords by z-value\n\t\t}\n\t\tfinally{\n\t\t\tscanner.close();\n\t\t}\n\t}", "public static List<Coordinate> readCoordinates (File file) throws IOException {\n\t\tString str = \"\";\n\t\tStringBuilder fileContents = new StringBuilder((int)file.length());\n\t\tScanner scanner = null;\n\n\t\tList<Double> lonTab = new ArrayList<Double>();\n\t\tList<Double> latTab = new ArrayList<Double>();\n\t\tList<Coordinate> listFinal = new ArrayList<Coordinate>();\n\n\n\t\tint compt = 0;\n\n\t\ttry {\n\t\t\tscanner = new Scanner((Readable) new BufferedReader(new FileReader(file)));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString lineSeparator = System.getProperty(\"line.separator\");\n\n\t\ttry {\n\t\t\twhile(scanner.hasNextLine()) { \n\t\t\t\tfileContents.append(scanner.nextLine() + lineSeparator);\n\t\t\t}\n\t\t\tstr = fileContents.toString();\n\t\t} finally {\n\t\t\tscanner.close();\n\t\t}\n\n\t\tstr = str.replaceAll(\"\\\\s\\\\[\\\\s\", \"\");\n\t\tstr = str.replaceAll(\"\\\\s\\\\]\\\\,\",\"\\r\");\n\t\tstr = str.replaceAll(\"\\\\s\\\\]\",\"\");\n\t\tstr = str.replaceAll(\"\\\\,\\\\s\",\"\\r\");\n\n\t\tString[] fullTab = str.split(\"\\r\");\n\n\n\t\tfor (int i = 0; i<fullTab.length; ++i) {\n\t\t\tif (compt%2 == 0)\n\t\t\t\tlonTab.add(new Double(fullTab[compt]));\n\t\t\telse\n\t\t\t\tlatTab.add(new Double(fullTab[compt]));\n\t\t\t++compt;\n\t\t}\n\n\n\t\tfor(int i = 0; i < lonTab.size(); i++)\n\t\t\tlistFinal.add(new Coordinate(latTab.get(i),lonTab.get(i)));\n\n\t\treturn listFinal;\n\t}", "public void loadEPILine(File file)\r\n\t{\r\n\t\tString name=file.getName();\r\n\t\tint [][] result=null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tScanner scanner=new Scanner(file);\r\n\t\t\tint size=scanner.nextInt();\r\n\t\t\tint width=scanner.nextInt();\t\t\t\r\n\t\t\tresult=new int[size][width];\r\n\t\t\tscanner.useDelimiter(\",\");\r\n\t\t\tString temp;\r\n\t\t\tfor(int i=0;i<size;i++)\r\n\t\t\t\tfor(int j=0;j<width;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=scanner.next();\r\n\t\t\t\t\tresult[i][j]=Integer.parseInt(temp.trim());\r\n\t\t\t\t}\r\n\t\t\tscanner.close();\t\r\n\t\t} catch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t_pixels=result;\r\n\t\t\r\n\t\t//That's why I needed to get rid of \"_\" in directory name\r\n\t\tname=name.substring(0,name.lastIndexOf(\".\"));\r\n\t\tString[] split=name.split(\"_\");\r\n\t\t_line=Integer.parseInt(split[1])+1;\r\n\t\t_position=Position.valueOf(split[2]);\r\n\t\t\r\n\t}", "private void ReadFile (String filename)\n\t{\n\t\ttry\n\t\t{\n\t\t\tScanner input = new Scanner(new FileReader(filename));\n\t\t\tScanner line = new Scanner(input.nextLine());\n\t\t\twhile (input.hasNextLine() || line.hasNext())\n\t\t\t{\n\t\t\t\tPolygon polygon = new Polygon ();\n\t\t\t\twhile (line.hasNextDouble())\n\t\t\t\t{\n\t\t\t\t\tdouble tmpX = line.nextDouble(),\n\t\t\t\t\t\t\ttmpY = line.nextDouble(),\n\t\t\t\t\t\t\ttmpZ = line.nextDouble();\n\t\t\t\t\tpolygon.add(new Vec4(tmpX, tmpY, tmpZ));\n\t\t\t\t}\n\t\t\t\tif (input.hasNextLine())\n\t\t\t\t{\n\t\t\t\t\tline = new Scanner(input.nextLine());\n\t\t\t\t}\n\t\t\t\tobject.add(polygon);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\tline.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void load(final String filePath) {\n\t\tsuper.load(filePath);\n\t\ttry {\n\t\t\tfinal JCL_facade jcl = JCL_FacadeImpl.getInstance();\n\t\t\tfinal Object2DoubleMap<String> distances = new Object2DoubleOpenHashMap<>();\n\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filePath));\n\t\t\tString str = null;\n\n\t\t\tList<String> inputLimpos = new LinkedList<>();\n\n\t\t\tdouble lower = 0;\n\n\t\t\t// ler o arquivo\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tif (!str.trim().equals(\"EOF\")) {\n\t\t\t\t\tString[] inputDetalhes = str.split(\" \");\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tfor (final String frag : inputDetalhes) {\n\t\t\t\t\t\tif (!frag.equals(\"\")) {\n\t\t\t\t\t\t\tsb.append(frag + \":\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tinputLimpos.add(sb.toString());\n\t\t\t\t\tsb = null;\n\t\t\t\t\tinputDetalhes = null;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tin.close();\n\t\t\tin = null;\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tfinal ObjectSet<String> vertices = (ObjectSet<String>) jcl.getValue(\"vertices\").getCorrectResult();\n\n\t\t\tdouble lowest = Double.MAX_VALUE;\n\t\t\t/*\n\t\t\t * transitar todo projeto para DOUBLE tirar todos floats para que aceite o\n\t\t\t * permutation\n\t\t\t */\n\t\t\t// montando distancias\n\t\t\tfor (final String umaEntrada : inputLimpos) {\n\t\t\t\tString[] umaEntradaDetalhe = umaEntrada.split(\":\");\n\t\t\t\tdouble menorD = Double.MAX_VALUE;\n\t\t\t\tdouble maiorD = Double.MIN_VALUE;\n\t\t\t\tvertices.add(\"$\" + umaEntradaDetalhe[0] + \"$\");\n\t\t\t\tfor (final String outraEntrada : inputLimpos) {\n\t\t\t\t\tString[] outraEntradaDetalhe = outraEntrada.split(\":\");\n\t\t\t\t\tif (!umaEntradaDetalhe[0].equals(outraEntradaDetalhe[0])) {\n\t\t\t\t\t\tfinal double dx = (Double.parseDouble(outraEntradaDetalhe[1])\n\t\t\t\t\t\t\t\t- Double.parseDouble(umaEntradaDetalhe[1]));\n\t\t\t\t\t\tfinal double dy = (Double.parseDouble(outraEntradaDetalhe[2])\n\t\t\t\t\t\t\t\t- Double.parseDouble(umaEntradaDetalhe[2]));\n\n\t\t\t\t\t\tfinal double d = Math.hypot(dx, dy);\n\n\t\t\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$\" + outraEntradaDetalhe[0] + \"$\", d);\n\n\t\t\t\t\t\tif (d < menorD) {\n\t\t\t\t\t\t\tmenorD = d;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (d > maiorD) {\n\t\t\t\t\t\t\tmaiorD = d;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\toutraEntradaDetalhe = null;\n\t\t\t\t}\n\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$shorterD$\", menorD);\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$longerD$\", maiorD);\n\n\t\t\t\tlower += menorD;\n\t\t\t\tif (lowest > menorD) {\n\t\t\t\t\tlowest = menorD;\n\t\t\t\t}\n\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$X$\", Float.parseFloat(umaEntradaDetalhe[1]));\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$Y$\", Float.parseFloat(umaEntradaDetalhe[2]));\n\t\t\t\tumaEntradaDetalhe = null;\n\t\t\t}\n\n\t\t\tlower += lowest;\n\n\t\t\tinputLimpos.clear();\n\t\t\tinputLimpos = null;\n\n\t\t\tjcl.instantiateGlobalVar(\"numOfVertices\", vertices.size());\n\n\t\t\tjcl.setValueUnlocking(\"vertices\", vertices);\n\n\t\t\tjcl.setValueUnlocking(\"lower\", lower);\n\n\t\t\tJcldataAccess.instantiateVarInJCL(\"distances\", distances);\n\n\t\t\tSystem.out.println(vertices.toString());\n\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public XYMatrix(File file) throws IOException {\n MatrixFile = file;\n read(file);\n //System.out.println(outputString);\n lines = new StringTokenizer(outputString,\"\\n\");\n if(lines.countTokens() > 0) {\n readTitles();\n readMatrix();\n } else {\n throw new IOException(\"Error in reading Matrix\\n\");\n }\n }", "public void loadGzipedSchematic(File f) throws IOException {\nDataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(f)));\nloadUncompressedSchematic(in);\nin.close();\n}", "private void readObject(ObjectInputStream _stream)\n/* 435: */ throws IOException, ClassNotFoundException\n/* 436: */ {\n/* 437:508 */ _stream.defaultReadObject();\n/* 438:509 */ this._origin_VA.restoreOwner(this);\n/* 439:510 */ //finishReadObject_xjal(_stream, TileGIS.class);\n/* 440: */ }", "public static void readFile( String file ) throws Exception\r\n\t{\r\n\t\tString format;\r\n\t\tint width, height, maxPixel;\r\n\t\t\r\n\t\tScanner get = new Scanner( new FileReader( file ) );\r\n\t\t\r\n\t\tformat = get.next();\r\n\t\twidth = get.nextInt();\r\n\t\theight = get.nextInt();\r\n\t\tmaxPixel = get.nextInt();\r\n\t\t\r\n\t\tif ( ( width != WIDTH ) || ( height != HEIGHT ) || ( maxPixel != MAX_PIXEL ) )\r\n\t\t{\r\n\t\t\tSystem.out.println( \"Error in file format. Exiting...\" );\r\n\t\t\tSystem.exit( 1 );\r\n\t\t}\r\n\t\t\t\r\n\t\tif ( format.equals(\"P2\") )\r\n\t\t{\r\n\t\t\tfor ( int i = 0; i < WIDTH; i++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int j = 0; j < HEIGHT; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\torig_pixels[i][j] = get.nextByte( );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ( format.equals( \"P5\" ) )\r\n\t\t{\r\n\t\t\tget.close();\r\n\t\t\t\r\n\t\t\tDataInputStream input = new DataInputStream( new FileInputStream( file ) );\r\n\r\n\t\t\tfor ( int i = 0; i < 15; i++ )\r\n\t\t\t\tinput.readUnsignedByte();\r\n\t\t\t\r\n\t\t\tfor ( int i = 0; i < WIDTH; i++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int j = 0; j < HEIGHT; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\torig_pixels[i][j] = input.readUnsignedByte();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tinput.close();\r\n\t\t}\r\n\t\t\r\n\t}", "public static Model loadModel(File f)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\n\t\t\tModel m = new Model(f.getPath());\n\t\t\tMaterial cur = null;\n\t\t\tList<Material> mats = new ArrayList<Material>();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Indicates a vertex\n\t\t\t\tif (line.startsWith(\"v \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.verts.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a vertex normal\n\t\t\t\telse if (line.startsWith(\"vn \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.norms.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a texture coordinate\n\t\t\t\telse if (line.startsWith(\"vt \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tm.textureCoords.add(new Vector2f(x, y));\n\t\t\t\t} \n\t\t\t\t//Indicates a face\n\t\t\t\telse if (line.startsWith(\"f \")) \n\t\t\t\t{\n\t\t\t\t\t//If face is triangulated\n\t\t\t\t\tif(line.split(\" \").length == 4)\n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tVector3f vertexIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[0]));\n\n\n\t\t\t\t\t\t//Instantiate as null for scope reasons\n\t\t\t\t\t\tVector3f textureIndices = null;\n\n\t\t\t\t\t\tif(!line.split(\" \")[1].split(\"/\")[1].equals(\"\")&&!(line.split(\" \")[1].split(\"/\")[1].equals(null)))\n\t\t\t\t\t\t\ttextureIndices = new Vector3f(\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[1]));\n\n\t\t\t\t\t\tVector3f normalIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[2]));\n\n\t\t\t\t\t\tFace mf = new Face();\n\n\t\t\t\t\t\t//Instantiate all the arrays\n\t\t\t\t\t\tmf.normals = new Vector3f[3];\n\t\t\t\t\t\tmf.points = new Vector3f[3];\n\n\t\t\t\t\t\t//// SETUP NORMALS ////\n\t\t\t\t\t\tVector3f n1 = m.norms.get((int)normalIndices.x - 1);\n\t\t\t\t\t\tmf.normals[0] = n1;\n\t\t\t\t\t\tVector3f n2 = m.norms.get((int)normalIndices.y - 1);\n\t\t\t\t\t\tmf.normals[1] = n2;\n\t\t\t\t\t\tVector3f n3 = m.norms.get((int)normalIndices.z - 1);\n\t\t\t\t\t\tmf.normals[2] = n3;\n\n\t\t\t\t\t\t//// SETUP VERTICIES ////\n\t\t\t\t\t\tVector3f v1 = m.verts.get((int)vertexIndices.x - 1);\n\t\t\t\t\t\tmf.points[0] = v1;\n\t\t\t\t\t\tVector3f v2 = m.verts.get((int)vertexIndices.y - 1);\n\t\t\t\t\t\tmf.points[1] = v2;\n\t\t\t\t\t\tVector3f v3 = m.verts.get((int)vertexIndices.z - 1);\n\t\t\t\t\t\tmf.points[2] = v3;\n\n\t\t\t\t\t\t//// SETUP TEXTURE COORDS ////\n\t\t\t\t\t\tif(textureIndices!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.textureCoords = new Vector2f[3];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat x1 = m.textureCoords.get((int)textureIndices.x - 1).x;\n\t\t\t\t\t\t\tfloat y1 = 1 - m.textureCoords.get((int)textureIndices.x - 1).y;\n\t\t\t\t\t\t\tVector2f t1 = new Vector2f(x1, y1);\n\t\t\t\t\t\t\tmf.textureCoords[0] = t1;\n\t\t\t\t\t\t\tfloat x2 = m.textureCoords.get((int)textureIndices.y - 1).x;\n\t\t\t\t\t\t\tfloat y2 = 1 - m.textureCoords.get((int)textureIndices.y - 1).y;\n\t\t\t\t\t\t\tVector2f t2 = new Vector2f(x2, y2);\n\t\t\t\t\t\t\tmf.textureCoords[1] = t2;\n\t\t\t\t\t\t\tfloat x3 = m.textureCoords.get((int)textureIndices.z - 1).x;\n\t\t\t\t\t\t\tfloat y3 = 1 - m.textureCoords.get((int)textureIndices.z - 1).y;\n\t\t\t\t\t\t\tVector2f t3 = new Vector2f(x3, y3);\n\t\t\t\t\t\t\tmf.textureCoords[2] = t3;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Set the face's material to the current material\n\t\t\t\t\t\tif(cur != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.material = cur;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Tell face to set up AABB\n\t\t\t\t\t\tmf.setUpAABB();\n\n\t\t\t\t\t\tm.faces.add(mf);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Indicates a reference to an exterior .mtl file\n\t\t\t\telse if(line.startsWith(\"mtllib \"))\n\t\t\t\t{\n\t\t\t\t\t//The file being referenced by mtllib call\n\t\t\t\t\tFile lib = new File(f.getParentFile()+File.separator+line.split(\" \")[1]);\n\n\t\t\t\t\t//Parse it and add all generated Materials to the mats list\n\t\t\t\t\tmats.addAll(parseMTL(lib, m));\n\t\t\t\t}\n\t\t\t\t//Telling us to use a material\n\t\t\t\telse if(line.startsWith(\"usemtl \"))\n\t\t\t\t{\n\t\t\t\t\tString name = line.split(\" \")[1];\n\n\t\t\t\t\tif(mats!=null)\n\t\t\t\t\t\t//Find material with correct name and use it\n\t\t\t\t\t\tfor(Material material : mats)\n\t\t\t\t\t\t\tif(material.name.equals(name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcur = material;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\t//Tell model to set up AABB\n\t\t\tm.setUpAABB();\n\t\t\t\n\t\t\t//Remove the first element, because...\n\t\t\tm.faces.remove(0);\n\n\t\t\treturn m;\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\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\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\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\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}", "void readGraphFromFile();", "public Grid decode (File file) throws IOException\n {\n String currentLine;\n int width = 0, height = 0;\n Grid _grid = null;\n\n try (BufferedReader br = new BufferedReader(new FileReader(file)))\n {\n // skip all the lines that we are not using\n while ((currentLine = br.readLine()) != null) {\n if (currentLine.startsWith(\"#\")) { continue; }\n if (currentLine.startsWith(\"x = \"))\n {\n for (String s : currentLine.split(\",\"))\n {\n if (s.contains(\"x = \"))\n {\n width = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else if (s.contains(\"y = \"))\n {\n height = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else\n {\n break;\n }\n }\n break;\n }\n }\n _grid = new Grid(height, width, false);\n\n int currentY = 0;\n int currentX = 0;\n int startX = 0;\n int i = 0;\n\n String kNumber = \"\"; // The number of times block should be repeated.\n String board = \"\";\n\n // convert the board to a long string\n while ((currentLine = br.readLine()) != null)\n {\n board += currentLine;\n }\n\n for (char c : board.toCharArray())\n {\n if (c == DEAD)\n {\n currentX += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == LIVE)\n {\n int count = (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n for (int j = 0; j < count; j++)\n {\n if (currentY < height && currentX < width)\n {\n _grid.setCell(true, currentX, currentY);\n }\n currentX++;\n }\n kNumber = \"\";\n }\n else if (c == EOL)\n {\n currentX = startX;\n currentY += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == EOF)\n {\n break;\n }\n else\n {\n kNumber += Integer.parseInt(board.substring(i, i + 1));\n }\n i++;\n }\n\n }\n return _grid;\n }", "public void read(JMEImporter e) throws IOException {\n super.read(e);\n InputCapsule capsule = e.getCapsule(this);\n symCount = capsule.readInt(\"symCount\", 1);\n symAxis = (Vector3f)capsule.readSavable(\"symAxis\", new Vector3f(0,1,0));\n coloredVertices = capsule.readBoolean(\"coloredVertices\", false);\n\n //TODO: check whether this is needed, MIGHT cause endless recursion\n lineGeo1 = (Line) capsule.readSavable(\"lineGeo1\", null);\n lineGeo2 = (Line) capsule.readSavable(\"lineGeo2\", null);\n\n \n// line1Data = capsule.readFloatBuffer(\"line1Data\", null);\n// line2Data = capsule.readFloatBuffer(\"line2Data\", null);\n// color1Data = capsule.readFloatBuffer(\"color1Data\", null);\n// color2Data = capsule.readFloatBuffer(\"color2Data\", null);\n }", "private void posRead() throws IOException {\n\t\tFile file = new File(fullFileName());\n\t\tString line;\n\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\tStringBuffer fileText = new StringBuffer();\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\twhile (st.hasMoreTokens()) {\n \t\tString tokenAndPos = st.nextToken();\n \t\tint slashIndex = tokenAndPos.lastIndexOf('/');\n \t\tif (slashIndex <= 0) throw new IOException(\"invalid data\");\n \t\tString token = tokenAndPos.substring(0,slashIndex);\n \t\tString pos = tokenAndPos.substring(1+slashIndex).intern();\n \t\tint start = this.length();\n \t\tthis.append(token);\n \t\tif (st.hasMoreTokens())\n \t\t\tthis.append(\" \");\n \t\telse\n \t\t\tthis.append(\" \\n\");\n \t\tint end = this.length();\n \t\tSpan span = new Span(start,end);\n \t\tthis.annotate(\"token\", span, new FeatureSet());\n \t\tthis.annotate(\"constit\", span, new FeatureSet(\"cat\", pos));\n \t}\n\t\t}\n\t}", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "@Override\n public int read(int[] coordinates) {\n\n coordinates[0] = (int) x.get();\n coordinates[1] = (int) y.get();\n\n return 1;\n }", "public static PVector[] readFromFile(String filename) {\n ArrayList<PVector> ledPositionsList= new ArrayList<PVector> ();\n //try to read data from file\n try {\n File file = new File(filename);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] pieces = line.split(\"\\t\");\n if (pieces.length>3) {\n ledPositionsList.add(new PVector( (Float.parseFloat(pieces[1])/4.0f), Float.parseFloat(pieces[2])/4.0f, Float.parseFloat(pieces[3])/4.0f)); //initialize Leds x,y,z,r,g,b\n }\n }\n scanner.close();\n } \n catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n //convert to vanilla Java Array\n PVector[] ledPositions= new PVector[ledPositionsList.size()];\n for (int i=0; i<ledPositionsList.size(); i++) {\n ledPositions[i]=ledPositionsList.get(i);\n }\n return ledPositions;\n }", "public Mesh load(String filename)\r\n\t{\r\n\t\tMesh mesh = new Mesh(); mesh.addFileMetaData(filename);\r\n \r\n\t\t//Open file and read in vertices/faces\r\n\t\tScanner sc;\r\n\t\tString line;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tBufferedReader ins = new BufferedReader(new FileReader(filename));\r\n\t\t\tins.readLine(); //ID; always \"nff\"\r\n\t\t\tins.readLine(); //Version\r\n\t\t\t\r\n\t\t\t//We need to move through the header to find the start of the first object\r\n\t\t\t//This will be the first line that contains text that does not start with\r\n\t\t\t//\"viewpos\" or \"viewdir\" (optional features) or \"//\" (comment)\r\n\t\t\twhile(true){\r\n\t\t\t\tline = ins.readLine();\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\r\n\t\t\t\tif(sc.hasNext() == true){\r\n\t\t\t\t\tString token = sc.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif((\"viewpos\".equalsIgnoreCase(token) == false) && \r\n\t\t\t\t\t\t\t(\"viewdir\".equalsIgnoreCase(token) == false) &&\r\n\t\t\t\t\t\t\t(\"//\".equals(token.substring(0, 2)) == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsc.close();\r\n\t\t\t\r\n\t\t\t//The rest of the file is filled up with objects\r\n\t\t\twhile(true){\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\tString name = sc.next();\r\n\t\t\t\tsc.close();\r\n\t\t\t\t\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\r\n\t\t\t\tVector<Point> vertices = new Vector<Point>();\r\n\t\t\t\tVector<Face> faces = new Vector<Face>();\r\n\t\t\t\t\r\n\t\t\t\tint vertexCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have vertexCount lines next with 3 floats per line\r\n\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextFloat() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfloat x = sc.nextFloat();\r\n\t\t\t\t\t\tfloat y = sc.nextFloat();\r\n\t\t\t\t\t\tfloat z = sc.nextFloat();\r\n\t\t\t\t\t\tvertices.add(new Point(x, y, z));\r\n\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsc.close();\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\tint polygonCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have polygonCount lines defining the faces\r\n\t\t\t\t//The first int on each line gives the number of\r\n\t\t\t\t//vertices making up that particular face\r\n\t\t\t\t//Then the indexes of those vertices are listed\r\n\t\t\t\twhile(polygonCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextInt() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tvertexCount = sc.nextInt();\r\n\t\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\t\t\tal.add(sc.nextInt());\r\n\t\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfaces.add(new Face(al));\r\n\t\t\t\t\t\tpolygonCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmesh.addData(vertices, faces, -1, name);\r\n\t\t\t\t\r\n\t\t\t\t//The last thing we need to do is read up to and including\r\n\t\t\t\t//the next object's name or until we reach the end of the file\r\n\t\t\t\t\r\n\t\t\t\twhile((line = ins.readLine()) != null){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//The next non-blank line that doesn't start with \"//\" is the start of the next object\r\n\t\t\t\t\tif((sc.hasNext() == true) && (sc.next().substring(0, 2).equals(\"//\") == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t\tif(line == null){ //EOF\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null; \r\n\t\t}\r\n\t\t\r\n\t\tmesh.initialize();\r\n \r\n\t\treturn mesh;\r\n\t}", "@Override\n\tpublic void readImpl()\n\t{\n\t\t_degree = readD();\n\t\t_side = readD();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void read_from_buffer(DataInputStream in) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = in.readFloat();\r\n }\r\n this.distanz = in.readFloat();\r\n// byte[] b = new byte[27];\r\n// in.read(b, 0, 27);\r\n// this.setPlaceId(new String(b));\r\n this.setPlaceId(in.readInt());\r\n this.location[0] = in.readDouble();\r\n this.location[1] = in.readDouble();\r\n }", "private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public static void readFileBronze(String filename) throws FileNotFoundException{\n try {\n //Scanners and readers and everything??\n File text = new File(filename);\n Scanner inf = new Scanner(text);\n BufferedReader brTest = new BufferedReader(new FileReader(filename));\n String firstLine = brTest.readLine();\n String[] firstLineArray = new String[4];\n firstLineArray = firstLine.split(\" \");\n\n //Determines rows, cols, elevation, number of instructions.\n r = Integer.parseInt(firstLineArray[0]);\n c = Integer.parseInt(firstLineArray[1]);\n e = Integer.parseInt(firstLineArray[2]);\n n = Integer.parseInt(firstLineArray[3]);\n\n //Initializes map.\n map = new int[r][c];\n inf.nextLine();\n for (int i = 0; i < r; i++){\n for (int j = 0; j < c; j++) {\n map[i][j] = inf.nextInt();\n }\n }\n //System.out.println(inf.nextLine());\n //System.out.println(inf.nextLine());\n\n //Instructions.\n\n instructions = new int[n][3];\n for (int i = 0; i < n; i++){\n inf.nextLine();\n for (int j = 0; j < 3; j++){\n instructions[i][j] = inf.nextInt();\n }\n }\n //Exceptions.\n } catch (FileNotFoundException ex){\n System.out.println(\"Yikes\");\n } catch (IOException ex){\n System.out.println(\"Yikes\");\n }\n }", "abstract void readSMF(File file) throws InvalidMidiDataException, IOException;", "@Override\n protected void readConstructorParams( DataInput in ) throws\n\t\t\t\t\t\t\tIOException {\n vertexCount = in.readInt();\n vertexFormat = in.readInt();\n texCoordSetCount = in.readInt();\n texCoordSetMap = new int[in.readInt()];\n for(int i=0; i<texCoordSetMap.length; i++)\n texCoordSetMap[i] = in.readInt();\n\n super.readConstructorParams( in );\n }", "public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }", "public void readFileToTransitionMapSmooth(String fileName){\n\t\ttry {\n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(fileName),\"ISO-8859-1\"));\n\t\t\tString line=null;\n\t\t\t//each time we read a line, count its words\n\t\t\twhile((line=reader.readLine())!=null){\n\t\t\t\tparseLineAndCountTransitions(line);\n\t\t\t}\n\t\t\t//close the buffered reader\n\t\t\treader.close();\n\t\t\tupdateTransitionMapSmooth();\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public void loadElevationData(String filename) throws IOException {\n\tScanner scanner = new Scanner(new File(filename));\n\tnRows = scanner.nextInt();\n\tnColumns = scanner.nextInt();\n\televation = new double[nRows][nColumns];\n\tnormal = new double[nRows][nColumns][3];\n\tString line = scanner.nextLine();\n\tfor (int r = 0; r < nRows; r++)\n\t for (int c = 0; c < nColumns; c++)\n\t\televation[r][c] = scanner.nextDouble();\n\t// Calculate normal vectors\n\tfor (int row = 0; row < nRows-1; row++)\n\t for (int col = 0; col < nColumns-1; col++) {\n\t\tdouble v1x = 1;\n\t\tdouble v1y = elevation[row+1][col+1] - elevation[row][col];\n\t\tdouble v1z = 1;\n\t\tdouble v2x = 1;\n\t\tdouble v2y = elevation[row][col+1] - elevation[row+1][col];\n\t\tdouble v2z = -1;\n\t\tnormal[row][col][0] = -(v1z * v2y - v1y * v2z);\n\t\tnormal[row][col][1] = -(v1x * v2z - v1z * v2x);\n\t\tnormal[row][col][2] = -(v1y * v2x - v1x * v2y);\n\t }\n }", "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}", "public void readFileToTransitionMap(String fileName){\n\t\ttry {\n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(fileName),\"ISO-8859-1\"));\n\t\t\tString line=null;\n\t\t\t//each time we read a line, count its words\n\t\t\twhile((line=reader.readLine())!=null){\n\t\t\t\tparseLineAndCountTransitions(line);\n\t\t\t}\n\t\t\t//close the buffered reader\n\t\t\treader.close();\n\t\t\tupdateTransitionMap();\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static Object readObjectFromFile(File file)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 109 */ ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new GZIPInputStream(new FileInputStream(file))));\n/* 110 */ Object o = ois.readObject();\n/* 111 */ ois.close();\n/* 112 */ return o;\n/* */ }", "private Point[] readTestFile(String filename) {\n In in = new In(filename);\n int N = in.readInt();\n Point[] points = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n return points;\n }", "void nikon_e900_load_raw()\n{\n int offset=0, irow, row, col;\n\n for (irow=0; irow < height; irow++) {\n row = irow * 2 % height;\n if (row == 1)\n offset = - (-offset & -4096);\n CTOJ.fseek (ifp, offset, CTOJ.SEEK_SET);\n offset += raw_width;\n getbits(-1);\n for (col=0; col < width; col++)\n BAYER(row,col, (short)getbits(10));\n }\n}", "public int read(String filename) {\n System.out.println(\"==== Processing data ====\");\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Read and interpret all the lines.\n int count = 0;\n String line = null;\n while (true) {\n try {\n line = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n line = line.trim();\n String[] splitedLine = line.split(\"[,\\\\s]+\");\n if (splitedLine.length != 3) {\n continue;\n }\n String instructionType = splitedLine[0];\n MemRef.MemRefType refType =null;\n if (instructionType.equals(\"I\")) {\n refType = MemRef.MemRefType.INSTR_FETCH;\n } else if (instructionType.equals(\"S\")) {\n refType = MemRef.MemRefType.STORE;\n } else if (instructionType.equals(\"L\")) {\n refType = MemRef.MemRefType.FETCH;\n } else if (instructionType.equals(\"M\")) {\n refType = MemRef.MemRefType.UPDATE;\n } else {\n continue;\n }\n if (refType == null) {\n continue;\n }\n\n Long address = Long.parseLong(splitedLine[1], 16);\n int size = Integer.parseInt(splitedLine[2]);\n MemRef r = new MemRef(refType, address, size);\n count ++;\n runMemoryReference(r);\n }\n return count;\n }", "public static void main(String[] args) {\n In in = new In(\"input48.txt\");\r\n int n = in.readInt();\r\n Point[] points = new Point[n];\r\n for (int i = 0; i < n; i++) {\r\n int x = in.readInt();\r\n int y = in.readInt();\r\n points[i] = new Point(x, y);\r\n }\r\n\r\n FastCollinearPoints collinear = new FastCollinearPoints(points);\r\n for (int i = 0; i < collinear.numberOfSegments(); i++) {\r\n System.out.println(collinear.segments()[i].toString());\r\n }\r\n }", "void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }", "private static void loadGridPoints() throws IOException {\n\n\t\tString filename = \"Grid Point file Path\";\n\t\tCSVReader reader = new CSVReader(new FileReader(filename));\n\t\treader.readNext();\n\t\tString[] nextLine;\n\n\t\tint id;\n\t\tdouble x, y;\n\t\ttree = new STRtree();\n\t\tpoints = new HashMap<Integer, double[]>();\n\t\tEnvelope itemEnv;\n\t\twhile ((nextLine = reader.readNext()) != null) {\n\n\t\t\tid = Integer.valueOf(nextLine[0]);\n\t\t\tx = Double.valueOf(nextLine[1]);\n\t\t\ty = Double.valueOf(nextLine[2]);\n\t\t\tdouble[] point = { x, y };\n\t\t\tpoints.put(id, point);\n\t\t\titemEnv = new Envelope(x, x, y, y);\n\t\t\ttree.insert(itemEnv, id);\n\t\t}\n\t\treader.close();\n\t}", "private CoordinateImpl(int rank, int file) {\n this.rank = rank;\n this.file = file;\n }", "public void readFile(String filename) throws IOException {\n BufferedReader buffer = new BufferedReader(new FileReader(filename));\n\n String line;\n int row = 0;\n isFirstLine = true;\n\n while ((line = buffer.readLine()) != null) {\n String[] vals = line.trim().split(\"\\\\s+\");\n int length = vals.length;\n \n if(isFirstLine) {\n \tfor(int col = 0; col < 2; col++) {\n \t\tif(col == 0)\n \t\t\trowSize = Integer.parseInt(vals[col]);\n \t\telse\n \t\t\tcolSize = Integer.parseInt(vals[col]);\n \t}\n \tskiMap = new int[rowSize][colSize];\n \tisFirstLine = false;\n }\n else {\n \tfor (int col = 0; col < length; col++) {\n \tskiMap[row][col] = Integer.parseInt(vals[col]);\n }\n \t row++;\n }\n }\n \n if(buffer != null)\n \tbuffer.close();\n }", "godot.wire.Wire.Transform getTransformValue();", "public void readCurve(File file)\n throws IOException\n {\n InputStream ifile = new FileInputStream(file);\n //read first bytes to detect format\n byte[] buffer = new byte[256];\n int zBytes = ifile.read(buffer);\n ifile.close();\n String firstLine = new String(buffer,0, zBytes);\n readCurveCsvHeadline(file);\n //timeLastSave = System.currentTimeMillis();\n \n }", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readFromFile() {\n FileInputStream fis = null;\n try {\n //reaad object\n fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n TravelAgent travelAgent = (TravelAgent)ois.readObject();\n travelGUI.setTravelAgent(travelAgent);\n ois.close();\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }", "static int readPointF(LittleEndianInputStream leis, Point2D point) {\n double x = leis.readFloat();\n double y = leis.readFloat();\n point.setLocation(x,y);\n return 2*LittleEndianConsts.INT_SIZE;\n }", "@Override\n public void read(DataInput in) throws IOException {\n int cordinatesSize = in.readInt();\n\n ByteArrayInputStream bi = new ByteArrayInputStream(b.toByteArray());\n ObjectInputStream o = new ObjectInputStream(bi);\n\n for(Coordinate coordinate : cordinates){\n try {\n coordinate = (Coordinate)o.readObject();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public void readFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\t// read the headlines\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumVertices = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumPaths = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\ttmax = Double.parseDouble(lineElements[1]);\n\t\t\n//\t\tSystem.out.println(numVertices + \", \" + numPaths + \", \" + tmax);\n\n\t\t/* read benefits1 */\n\t\tint index = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tdouble x = Double.parseDouble(lineElements[0]);\n\t\t\tdouble y = Double.parseDouble(lineElements[1]);\n\t\t\tList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 2; i < lineElements.length; i++) {\n\t\t\t\tdouble score = Double.parseDouble(lineElements[i]);\n\t\t\t\tscores.add(new Double(score));\n\t\t\t}\n\t\t\tPOI POI = new POI(index, x, y, scores);\n\t\t\t//POI.printMe();\n\t\t\t\n\t\t\tvertices.add(POI);\n\t\t\tindex ++;\n\t\t}\n\t\t\n\t\t// create the arcs and the graph\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\tfor (int j = 0; j < vertices.size(); j++) {\n\t\t\t\tArc arc = new Arc(vertices.get(i), vertices.get(j));\n\t\t\t\tarcs.add(arc);\n\t\t\t\tgraph.put(new Tuple2<POI, POI>(vertices.get(i), vertices.get(j)), arc);\n\t\t\t}\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "private void loadExpressionDataInBinaryFormat(String fileName, LoadLabels ll) throws IOException, ClassNotFoundException {\n this.fileName = fileName;\r\n File fileBinary = new File(fileName + \".dat\");\r\n BufferedInputStream in = null;\r\n int nrRowsThisBinaryFile = -1;\r\n int nrColsThisBinaryFile = -1;\r\n in = new BufferedInputStream(new FileInputStream(fileBinary));\r\n byte[] bytes = new byte[4];\r\n in.read(bytes, 0, 4);\r\n nrRowsThisBinaryFile = byteArrayToInt(bytes);\r\n in.read(bytes, 0, 4);\r\n nrColsThisBinaryFile = byteArrayToInt(bytes);\r\n \r\n if (rowsToInclude == null && colsToInclude == null) {\r\n //We want to load all the data:\r\n nrRows = nrRowsThisBinaryFile;\r\n nrCols = nrColsThisBinaryFile;\r\n rawData = new double[nrRows][nrCols];\r\n \r\n //Now load the row and column identifiers from files\r\n switch (ll) {\r\n case LOAD_BOTH:\r\n loadRowObjects(fileName);\r\n loadColumnObjects(fileName);\r\n break;\r\n case LOAD_ROWS:\r\n loadRowObjects(fileName);\r\n break;\r\n case LOAD_COLUMNS:\r\n loadColumnObjects(fileName);\r\n break;\r\n }\r\n \r\n byte[] buffer = new byte[nrCols * 8];\r\n long bits = 0;\r\n for (int row = 0; row < nrRows; row++) {\r\n in.read(buffer, 0, nrCols * 8);\r\n int bufferLoc = 0;\r\n for (int col = 0; col < nrCols; col++) {\r\n bits = (long) (0xff & buffer[bufferLoc + 7])\r\n | (long) (0xff & buffer[bufferLoc + 6]) << 8\r\n | (long) (0xff & buffer[bufferLoc + 5]) << 16\r\n | (long) (0xff & buffer[bufferLoc + 4]) << 24\r\n | (long) (0xff & buffer[bufferLoc + 3]) << 32\r\n | (long) (0xff & buffer[bufferLoc + 2]) << 40\r\n | (long) (0xff & buffer[bufferLoc + 1]) << 48\r\n | (long) (buffer[bufferLoc]) << 56;\r\n \r\n rawData[row][col] = Double.longBitsToDouble(bits);\r\n bufferLoc += 8;\r\n }\r\n }\r\n in.close();\r\n } else {\r\n \r\n //We want to confine the set of probes and samples to a subset. Deal with this in a different way.\r\n int[] rowSubsetIndex = loadRowObjects(fileName, nrRowsThisBinaryFile);\r\n int[] colSubsetIndex = loadColumnObjects(fileName, nrColsThisBinaryFile);\r\n \r\n //Now load the binary data:\r\n rawData = new double[nrRows][nrCols];\r\n byte[] buffer = new byte[nrColsThisBinaryFile * 8];\r\n long bits = 0;\r\n for (int row = 0; row < nrRowsThisBinaryFile; row++) {\r\n in.read(buffer, 0, nrColsThisBinaryFile * 8);\r\n int bufferLoc = 0;\r\n for (int col = 0; col < nrColsThisBinaryFile; col++) {\r\n bits = (long) (0xff & buffer[bufferLoc + 7])\r\n | (long) (0xff & buffer[bufferLoc + 6]) << 8\r\n | (long) (0xff & buffer[bufferLoc + 5]) << 16\r\n | (long) (0xff & buffer[bufferLoc + 4]) << 24\r\n | (long) (0xff & buffer[bufferLoc + 3]) << 32\r\n | (long) (0xff & buffer[bufferLoc + 2]) << 40\r\n | (long) (0xff & buffer[bufferLoc + 1]) << 48\r\n | (long) (buffer[bufferLoc]) << 56;\r\n \r\n int rowI = rowSubsetIndex[row];\r\n int colI = colSubsetIndex[col];\r\n if (rowI != -1 && colI != -1) {\r\n rawData[rowI][colI] = Double.longBitsToDouble(bits);\r\n }\r\n bufferLoc += 8;\r\n }\r\n }\r\n in.close();\r\n }\r\n recalculateHashMaps();\r\n LOGGER.log(Level.INFO, \"Binary file ''{0}'' has been loaded, nrRows: {1} nrCols: {2}\", new Object[]{fileName, nrRows, nrCols});\r\n }", "void readData(String fileName, boolean [] data, String wName){\n\t\tworld = new File(wName);\n\t\tDataProcessing dp = new DataProcessing(fileName, data);\n\t\tdp.findHotspots();\n\n\t\ttempVals = dp.hotspots;\n\t\t\t\n\t\t\t// create randomly permuted list of indices for traversal \n\t\t\tgenPermute(); \n\t\t\t\n\t\t\t// generate greyscale tempVals field image\n\t\t\tderiveImage();\n\n\t}", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "void readMap()\n {\n try {\n FileReader\t\tmapFile = new FileReader(file);\n StringBuffer\tbuf = new StringBuffer();\n int\t\t\t\tread;\n boolean\t\t\tdone = false;\n \n while (!done)\n {\n read = mapFile.read();\n if (read == -1)\n done = true;\n else\n buf.append((char) read);\n }\n \n mapFile.close();\n \n parseMap(buf.toString());\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not read the map file data.\", ErrorHandler.ERR_OPEN_FAIL);\n }\n }", "public void load() {\n structure = SpigotUtils.structBetweenTwoLocations(pos1, pos2, material);\n }", "public static ArrayList<Point> read_from_file(String file){\n Locale.setDefault(new Locale(\"en\", \"US\"));\n\n ArrayList<Point> points = new ArrayList<>();\n\n try {\n //java.io.File myObj = new java.io.File(\"test_points_2.txt\");\n //java.io.File myObj = new java.io.File(\"points.txt\");\n java.io.File myObj = new java.io.File(file);\n Scanner myReader = new Scanner(myObj);\n int N = myReader.nextInt();\n\n //System.out.println(N);\n for (int i = 0; i < N; i++) {\n double x = myReader.nextDouble();\n double y = myReader.nextDouble();\n points.add(new Point(x, y));\n //System.out.println(\"x: \" + x + \" y: \" + y);\n }\n\n myReader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n return null;\n }\n return points;\n }", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "public void loadMatrixIO() {\n qMatrixFile = new FileIO(\"qMatrix.txt\");\n sMatrixFile = new FileIO(\"sMatrix.txt\");\n\n }", "godot.wire.Wire.Transform2D getTransform2DValue();", "private ArrayList<Float> readFile(byte[] data) {\n int pStart = 0;\n ArrayList<Float> points = new ArrayList<Float>();\n\n for (int pEnd = 0; pEnd < data.length; pEnd++) {\n if (data[pEnd] == '\\n' || pEnd == (data.length - 1)) {\n String line = new String(data, pStart, pEnd - pStart);\n if (line.startsWith(\"ncols\")) {\n ncols = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"nrows\")) {\n nrows = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"xllcorner\")) {\n xll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"yllcorner\")) {\n yll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"cellsize\")) {\n cellsize = Float.parseFloat(line.substring(8).trim());\n } else if (line.startsWith(\"NODATA_value\")) {\n nodata = Float.parseFloat(line.substring(12).trim());\n } else {\n // Assume data\n line = line.trim();\n String[] parts = line.split(\"\\\\s+\");\n for (String part : parts) {\n points.add(Float.parseFloat(part.trim()));\n }\n }\n pStart = pEnd + 1;\n }\n }\n return points;\n }", "public static void load(Context context) throws IOException {\n // read the file\n String raw = File.readFile(\"vaccine.txt\", context);\n\n // clear the map and load contents of file into the map\n map.clear();\n for (String line : raw.split(\"\\n\")) {\n if (line.equals(\"\")) {\n continue;\n }\n String[] data = line.split(\",\");\n if (data[0].equals(\"\") || data.length != 3) {\n continue;\n }\n map.put(data[0], Boolean.getBoolean(data[1]));\n dateMap.put(data[0], data[2]);\n }\n }", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "TraceList read(File file) throws IOException;", "public ObjModel(File file) throws FileNotFoundException {\r\n\r\n\t\tvertices = new ArrayList<>();\r\n\t\ttextureCoordinates = new ArrayList<>();\r\n\t\tfaces = new ArrayList<>();\r\n\r\n\t\tScanner scanner = new Scanner(file);\r\n\r\n\t\twhile (scanner.hasNextLine()) {\r\n\t\t\tString[] line = scanner.nextLine().split(\" \");\r\n\t\t\tif (line[0].equals(\"v\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\tfloat z = Float.parseFloat(line[3]);\r\n\t\t\t\tvertices.add(new Vector3f(x, y, z));\r\n\t\t\t} else if (line[0].equals(\"vt\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\ttextureCoordinates.add(new Vector3f(x, y));\r\n\t\t\t} else if (line[0].equals(\"f\")) {\r\n\t\t\t\tFace face = new Face();\r\n\t\t\t\tfor (int i = 1; i < line.length; i++) {\r\n\t\t\t\t\tString[] sections = line[i].split(\"/\");\r\n\t\t\t\t\tif (sections.length >= 1) {\r\n\t\t\t\t\t\tint vertex = Integer.parseInt(sections[0]);\r\n\t\t\t\t\t\tface.addVertex(vertex);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (sections.length >= 2) {\r\n\t\t\t\t\t\tint textureCoordinate = Integer.parseInt(sections[1]);\r\n\t\t\t\t\t\tface.addTextureCoordinate(textureCoordinate);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfaces.add(face);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tscanner.close();\r\n\t}", "public void cargaDatasetEnMatrices() {\n int i, caux, row, column;\n String linea0 = null;\n String numero;\n char c;\n boolean notnumber; \n try {\n try (BufferedReader entrada = new BufferedReader(new FileReader(fich))) {\n //Recoge el numero de elementos del dataset\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n i = 0;\n while (linea0.charAt(i) != ':') {\n i++;\n }\n notnumber = false;\n numero = \"\";\n i++;\n while (!notnumber) {\n if (i == linea0.length()) {\n notnumber = true;\n } else {\n c = linea0.charAt(i);\n if ((c != ' ') && (c != '\\n') && (c != '\\t')) {\n numero += c;\n }\n i++;\n }\n }\n if (i == linea0.length()) {\n n = Integer.parseInt(numero);\n } else {\n n = 0;\n }\n vx = new double[n];\n vy = new double[n];\n //Relleno los vectores vx y vy\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n for (row = 0; row < n; row++) {\n for (column = 0; column <= 2; column++) {\n notnumber = false;\n numero = \"\";\n while (!notnumber) {\n caux = entrada.read();\n c = (char) caux;\n if ((c == ' ') || (c == '\\n') || (c == '\\t')) {\n if (numero.length() != 0) {\n if (column == 1) {\n vx[row] = Double.parseDouble(numero);\n } else if (column == 2) {\n vy[row] = Double.parseDouble(numero);\n }\n notnumber = true;\n }\n } else {\n numero += c;\n }\n }\n }\n }\n }\n } catch (IOException ex) {\n }\n }", "TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);", "public Decoder(String filename) throws FileNotFoundException { \n this.i = 0;\n this.position = 0;\n this.px = 0;\n this.py = 0;\n this.alkuposition = 0;\n this.j = 0;\n this.filename = filename;\n }", "public void LoadMaze(File file) {\r\n try {\r\n ObjectInputStream in = new ObjectInputStream(new FileInputStream(file));\r\n Maze m = (Maze) in.readObject();\r\n PlayerPositionRow = (int) in.readObject();\r\n PlayerPositionCol = (int) in.readObject();\r\n maze = new Maze(m.Struct);\r\n maze.setStartPotision( new Position(PlayerPositionRow, PlayerPositionCol));\r\n maze.setGoalPosition(new Position(m.getGoalPosition().getRowIndex(), m.getGoalPosition().getColIndex()));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n setChanged();\r\n notifyObservers(\"load\");\r\n }", "@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "static int readPointR(LittleEndianInputStream leis, Point2D point) {\n int[] p = { 0 };\n int size = readEmfPlusInteger(leis, p);\n double x = p[0];\n size += readEmfPlusInteger(leis, p);\n double y = p[0];\n point.setLocation(x,y);\n return size;\n }", "private void readInter() throws FileNotFoundException {\n\t\t\r\n\t\tFile file = new File(\"input.txt\");\r\n\r\n\t\tScanner input = new Scanner(file);\r\n\r\n\t\twhile (input.hasNext()) {\r\n\r\n\t\t\tint x = input.nextInt();\r\n\t\t\tint y = input.nextInt();\r\n\t\t\t\r\n\t\t\tintervals.add(new Point(x, y));\r\n\t\t}\r\n\t\t\r\n\t\t//Close 'input.txt'\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "protected void evaluate(String filePath) throws FormatException {\n\n try {\n int latSlash = filePath.lastIndexOf(\"/\");\n if (latSlash > 1) {\n if (DEBUG) {\n Debug.output(\"Have lat index of \" + latSlash);\n }\n String lonSearch = filePath.substring(0, latSlash);\n\n if (DEBUG) {\n Debug.output(\"Searching for lon index in \" + lonSearch);\n }\n int lonSlash = lonSearch.lastIndexOf(\"/\");\n if (lonSlash > 1) {\n filename = filePath.substring(latSlash + 1);\n String latString = filename.toUpperCase();\n\n if (DEBUG) {\n Debug.output(\"have lat \" + latString);\n }\n\n int dotIndex = latString.indexOf(\".\");\n if (dotIndex > 0) {\n\n lat = Double.parseDouble(latString.substring(1,\n dotIndex));\n if (latString.charAt(0) == 'S') {\n lat *= -1;\n }\n\n subDirs = filePath.substring(lonSlash + 1, latSlash);\n String dd = filePath.substring(0, lonSlash + 1);\n if (dd.length() > 0) {\n dtedDir = dd;\n }\n\n String lonString = subDirs.toUpperCase();\n\n if (DEBUG) {\n Debug.output(\"have lon \" + lonString);\n }\n\n lon = Double.parseDouble(lonString.substring(1));\n if (lonString.charAt(0) == 'W') {\n lon *= -1;\n }\n\n level = (int) Integer.parseInt(filePath.substring(filePath.length() - 1));\n if (DEBUG) {\n Debug.output(\"have level \" + level);\n }\n return;\n }\n }\n }\n } catch (NumberFormatException nfe) {\n\n }\n\n throw new FormatException(\"StandardDTEDNameTranslator couldn't convert \"\n + filePath + \" to valid parameters\");\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void readFromFile() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(pathName);\n\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagToImg = (Map<String, HashSet<String>>) input.readObject();\n\n\t\t\tinput.close();\n\t\t\tfile.close();\n\t\t} catch (EOFException e) {\n\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t} catch (InvalidClassException e) {\n\t\t\tSystem.out.println(\"file doesnt match the type\");\n\t\t}\n\t}", "private static Trajectory readFile(String name) {\n\t\ttry {\n\t\t\tFile file = new File(cacheDirectory + name);\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tTrajectory t = (Trajectory) ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t\treturn t;\n\t\t}\n\t\tcatch (Exception e) { return null; }\n\t}", "@Test\n public void readFile() throws IOException {\n ModelInfo modelInfo = ModelReader.create().load();\n\n }", "private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }", "public void load(File tFile) throws FileNotFoundException, IOException {\n BufferedReader reader = new BufferedReader(new FileReader(tFile));\n String line;\n\n\n while ((line = reader.readLine()) != null) {\n line = line.replaceAll(\"\\\\s+\", \" \");\n String[] elements = line.split(\" \");\n\n CSID desc = new CSID();\n // normalised lines are easier to compare as it is well defined, which point will be the 1st\n desc.axis1 = (ExtLine2D) ExtLine2D.normaliseLine(new ExtLine2D(Double.parseDouble(elements[0]),\n Double.parseDouble(elements[1]),\n Double.parseDouble(elements[2]),\n Double.parseDouble(elements[3])));\n desc.axis2 = (ExtLine2D) ExtLine2D.normaliseLine(new ExtLine2D(Double.parseDouble(elements[4]),\n Double.parseDouble(elements[5]),\n Double.parseDouble(elements[6]),\n Double.parseDouble(elements[7])));\n desc.isCS = elements[8].equals(\"Y\");\n\n this.csDescriptors.add(desc);\n }\n }", "public void load(String inFN) throws FileNotFoundException\n {\n String check = \" \";\n \tfile = new Scanner(new FileReader(inFN));\n \n \t// Rip apart the string and find the number of cities\n \t// Save it to a misc string named fileInfo\n \twhile (!check.equals(\"NODE_COORD_SECTION\"))\n {\n \tcheck = file.next();\n \t// Get the number of cities from the file\n \tif (check.equals(\"DIMENSION\"))\n \t{\n \t\t// Removes the character ':'\n \t\tcheck = file.next();\n \t\tfileInfo = fileInfo + check + \" \";\n \t\t\n \t\t// Extracts the number of cities\n \t\tcityNumber = file.nextInt();\n \t\tfileInfo = fileInfo + cityNumber + \" \";\n \t}\n \t\n \t// Dumps the fileinfo into one string\n \tfileInfo = fileInfo + check + \" \";\n }\n\n \t// Now that we have the number of cities, use it to\n \t// initialize an array\n \tcity = new City[cityNumber];\n \t\n \t// Loads the city data from the file into the city array\n \tfor (int i = 0; i < cityNumber; i++)\n {\n \t\tfile.nextInt();\n \tcity[i] = new City(i, file.nextDouble(), file.nextDouble());\n \t}\n }", "public void readFile();", "public NexusReaderDistances(String filePath) throws IOException, NexusFormatException {\n\n BufferedReader bufferedReader = null;\n FileReader fileReader = null;\n try {\n fileReader = new FileReader(filePath);\n bufferedReader = new BufferedReader(fileReader);\n\n int state = 0; //0=start of file, 1=after #NEXUS. 2=inside block\n boolean commentMode = false;\n TreeMap<Integer, String> blockLines = null;\n String blockName = null;\n Matcher beginBlockMatcher = Pattern.compile(\"^(?i)BEGIN ([A-Z]+);\").matcher(\"\");\n String line = bufferedReader.readLine();\n int lineNumber = 0;\n while (line != null) {\n lineNumber++;\n line = line.trim();\n //end multiline comments\n if (commentMode) {\n int endIndex = line.indexOf(\"]\");\n if (endIndex == -1) {\n line = bufferedReader.readLine();\n continue;\n } else {\n line = line.substring(endIndex);\n commentMode = false;\n }\n }\n //remove one line comments\n line = line.replaceAll(\"\\\\[.*]\", \"\");\n //remove multi line comments\n int startIndex = line.indexOf(\"[\");\n if (startIndex != -1) {\n line = line.substring(0, startIndex);\n commentMode = true;\n }\n //skip emtpy lines\n if (line.isEmpty()) {\n line = bufferedReader.readLine();\n continue;\n }\n\n //===read lines===\n switch (state) { //0=start of file, 1=after #NEXUS. 2=inside block\n case 0:\n if (!line.equalsIgnoreCase(\"#NEXUS\")) {\n throw new NexusFormatException(\"File must start with #NEXUS. Line: \" + lineNumber);\n } else {\n state++;\n }\n break;\n case 1:\n beginBlockMatcher.reset(line);\n if (beginBlockMatcher.matches()) {\n blockLines = new TreeMap<Integer, String>();\n blockName = beginBlockMatcher.group(1);\n state++;\n } else {\n throw new NexusFormatException(\"Error parsing BEGIN statement. Line \" + lineNumber);\n }\n break;\n case 2:\n if (line.equalsIgnoreCase(\"END;\")) {\n makeBlock(blockName, blockLines);\n state--;\n } else {\n blockLines.put(lineNumber, line);\n }\n break;\n default:\n throw new RuntimeException(\"NexusReader reached illegal state: \" + state);\n }\n\n line = bufferedReader.readLine();\n }\n if (state == 2) {\n throw new NexusFormatException(\"Didn't close block at end of file.\");\n }\n if (state == 0) {\n throw new NexusFormatException(\"File seems empty.\");\n }\n\n bufferedReader.close();\n\n } catch (IOException e) {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n throw e;\n } catch (NexusFormatException e) {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n throw e;\n }\n }", "public void loadMaze(){\n try {\n byte savedMazeBytes[] = null;\n InputStream in = new MyDecompressorInputStream(new FileInputStream(\"savedMaze.maze\"));\n savedMazeBytes = new byte[1000012];\n in.read(savedMazeBytes);\n in.close();\n this.maze=new Maze(savedMazeBytes);\n isMazeGenerated=true;\n setChanged();\n notifyObservers();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public float[][] read( Envelope bbox )\n throws IOException {\n\n float[][] data = null;\n switch ( type ) {\n case BYTE:\n data = readByte( bbox );\n break;\n case SMALLINT:\n data = readSmallInt( bbox );\n break;\n case INT:\n data = readInt( bbox );\n break;\n case FLOAT:\n data = readFloat( bbox );\n break;\n case DOUBLE:\n data = readDouble( bbox );\n break;\n default:\n throw new IOException( \"not supported file format!\" );\n }\n\n return data;\n }", "public abstract Object unMarshal(File pobjFile);", "private void initMapData() {\n\n\t\ttry {\n\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\t\n\t\t\tfor (int row = 0; row < height; row++) {\n\t\t\t\t\n\t\t\t\t// read a line\n\t\t\t\tString line = br.readLine();\n\t\t\t\t\n\t\t\t\t// if length of this line is different from width, then throw\n\t\t\t\tif (line.length() != width)\n\t\t\t\t\tthrow new InvalidLevelFormatException();\n\t\t\t\t\n\t\t\t\t// split all single characters of this string into array\n\t\t\t\tchar[] elements = line.toCharArray();\n\t\t\t\t\n\t\t\t\t// save these single characters into mapData array\n\t\t\t\tfor (int col = 0; col < width; col++) {\n\t\t\t\t\tmapElementStringArray[row][col] = String.valueOf(elements[col]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "final public void fieldFromSrc(){\n List<String> lines = readSrc();\n size = Integer.parseInt(lines.get(0));\n Tile[] tiles = new Tile[size*size];\n int count = 0;\n Tile t;\n \n char[][] fieldChars = new char[size][size];\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n try{\n fieldChars[X][Y] = lines.get(Y+1).charAt(X);\n }catch(StringIndexOutOfBoundsException e){\n System.out.println(e);\n }\n }\n }\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n Coordinaat C = new Coordinaat(X,Y); \n switch(fieldChars[X][Y]){\n case 'M' : \n t = new Muur(C); \n break;\n case 'V' :\n t = new Veld(C);\n break;\n case 'E' :\n t = new EindVeld(C);\n break;\n default :\n t = new Tile(C);\n break;\n }\n tiles[count] = t;\n count++;\n }\n }\n \n fillField(tiles,size);\n createMoveAbles(lines.subList(size+2, lines.size()));\n }", "public Vector<Point> loadPoints(File f) throws IOException {\n\t\tSystem.err.println(\"Loading points\");\n\t\tVector<Point> pts = new Vector<Point>();\n\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\tString line;\n\t\twhile((line = br.readLine()) != null) {\n\t\t\tString [] curr = line.split(\"\\\\s+\");\n\t\t\tString coord = curr[0];\n\t\t\tif(!line.startsWith(\"#\")){\n\t\t\t\tif(curr.length>=3 && curr[2].contains(\":\")){coord = curr[2];}\n\t\t\t\tif(coord.contains(\":\")) {\n\t\t\t\t\tString [] currB = coord.split(\":\");\n\t\t\t\t\tString chrom = currB[0].replaceAll(\"chr\", \"\");\n\t\t\t\t\tchar strand = '?';\n\t\t\t\t\tif(currB.length==3)\n\t\t\t\t\t\tstrand = currB[2].charAt(0);\n\t\t\t\t\tPoint pt = null;\n\t\t\t\t\tint location=-1;\n\t\t\t\t\tif(currB[1].contains(\"-\")){\n\t\t\t\t\t\tString [] currC = currB[1].split(\"-\");\n\t\t\t\t\t\tint start = new Integer(currC[0]);\n\t\t\t\t\t\tint stop = new Integer(currC[1]);\n\t\t\t\t\t\tlocation = (start+stop)/2;\n\t\t\t\t\t\tif(strand=='-' && (stop-start)%2==1)\n\t\t\t\t\t\t\tlocation+=1;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlocation = new Integer(currB[1]);\n\t\t\t\t\t}\n\t\t\t\t\tif(strand!='?')\n\t\t\t\t\t\tpt = new StrandedPoint(genome, chrom, location, strand);\n\t\t\t\t\telse\n\t\t\t\t\t\tpt = new Point(genome, chrom, location);\n\t\t\t\t\n\t\t\t\t\tpts.add(pt);\n\t\t\t\t} else { \n\t\t\t\t\tSystem.err.println(String.format(\"Couldn't find point in line \\\"%s\\\"\", line));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tbr.close();\n\t\tSystem.err.println(pts.size()+\" points loaded\");\n\t\treturn pts;\n\t}", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;" ]
[ "0.69474775", "0.62777257", "0.5760549", "0.55225414", "0.54703885", "0.54644614", "0.5461362", "0.5454338", "0.5454123", "0.5445342", "0.54090935", "0.54085845", "0.5398845", "0.5355612", "0.53327346", "0.5313973", "0.52953756", "0.5261212", "0.52530473", "0.52332026", "0.5230213", "0.52268857", "0.5219044", "0.52025217", "0.5199947", "0.5195188", "0.5190976", "0.51764685", "0.5163895", "0.51617026", "0.5147836", "0.51464766", "0.5129863", "0.51203865", "0.5118672", "0.5118242", "0.5107806", "0.51064974", "0.5091233", "0.50775963", "0.50405824", "0.5035953", "0.5027216", "0.50218755", "0.5019568", "0.5014736", "0.5000949", "0.49972957", "0.49836436", "0.4978472", "0.4974512", "0.4959488", "0.49516928", "0.49385634", "0.49347317", "0.4930627", "0.49304226", "0.49182904", "0.4910694", "0.4889146", "0.48778096", "0.4875432", "0.48746544", "0.4870607", "0.4870607", "0.48627993", "0.48507923", "0.48380715", "0.4829881", "0.48286977", "0.48218825", "0.48168012", "0.48144206", "0.48133022", "0.48127198", "0.48112312", "0.48098066", "0.48068467", "0.48068175", "0.4805461", "0.48049003", "0.4790232", "0.4786962", "0.47827464", "0.47822556", "0.47779983", "0.47620568", "0.4756646", "0.47529885", "0.47524455", "0.47481325", "0.47392264", "0.47264835", "0.47245845", "0.4724542", "0.47242436", "0.47165382", "0.47076336", "0.47008035", "0.46960205" ]
0.6690353
1
Transform images in the source directory applying transform files from a specific directory.
public static boolean exec( final String source_dir, final String target_dir, final String transf_dir, final boolean interpolate) { // Get source file listing final String exts = ".tif.jpg.png.gif.tiff.jpeg.bmp.pgm"; final String[] src_names = new File(source_dir).list(new FilenameFilter() { public boolean accept(File dir, String name) { int idot = name.lastIndexOf('.'); if (-1 == idot) return false; return exts.contains(name.substring(idot).toLowerCase()); } }); Arrays.sort(src_names); // Get transform file listing final String ext_xml = ".xml"; final String[] transf_names = new File(transf_dir).list(new FilenameFilter() { public boolean accept(File dir, String name) { int idot = name.lastIndexOf('.'); if (-1 == idot) return false; return ext_xml.contains(name.substring(idot).toLowerCase()); } }); Arrays.sort(transf_names); // Check the number of input (source) files and transforms. if(transf_names.length != src_names.length) { IJ.error("The number of source and transform files must be equal!"); return false; } // Read transforms CoordinateTransform[] transform = new CoordinateTransform[transf_names.length]; for(int i = 0; i < transf_names.length; i ++) { transform[i] = readCoordTransform(transf_dir + transf_names[i]); if(transform[i] == null) { IJ.error("Error when reading transform from file: " + transf_dir + transf_names[i]); return false; } } // Apply transforms // Create transformed images IJ.showStatus("Calculating transformed images..."); if(Register_Virtual_Stack_MT.createResults(source_dir, src_names, target_dir, null, transform, interpolate) == false) { IJ.log("Error when creating transformed images"); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean exec(\n\t\t\tfinal String source_dir, \n\t\t\tfinal String target_dir, \n\t\t\tfinal String transf_dir) \n\t{\n\t\t// Get source file listing\n\t\tfinal String exts = \".tif.jpg.png.gif.tiff.jpeg.bmp.pgm\";\n\t\tfinal String[] src_names = new File(source_dir).list(new FilenameFilter() \n\t\t{\n\t\t\tpublic boolean accept(File dir, String name) \n\t\t\t{\n\t\t\t\tint idot = name.lastIndexOf('.');\n\t\t\t\tif (-1 == idot) return false;\n\t\t\t\treturn exts.contains(name.substring(idot).toLowerCase());\n\t\t\t}\n\t\t});\n\t\tArrays.sort(src_names);\n\t\t\n\t\t// Get transform file listing\n\t\tfinal String ext_xml = \".xml\";\n\t\tfinal String[] transf_names = new File(transf_dir).list(new FilenameFilter() \n\t\t{\n\t\t\tpublic boolean accept(File dir, String name) \n\t\t\t{\n\t\t\t\tint idot = name.lastIndexOf('.');\n\t\t\t\tif (-1 == idot) return false;\n\t\t\t\treturn ext_xml.contains(name.substring(idot).toLowerCase());\n\t\t\t}\n\t\t});\n\t\tArrays.sort(transf_names);\n\t\t\n\t\t// Check the number of input (source) files and transforms.\n\t\tif(transf_names.length != src_names.length)\n\t\t{\n\t\t\tIJ.error(\"The number of source and transform files must be equal!\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Read transforms\n\t\tCoordinateTransform[] transform = new CoordinateTransform[transf_names.length];\n\t\tfor(int i = 0; i < transf_names.length; i ++)\n\t\t{\n\t\t\ttransform[i] = readCoordinateTransform(transf_dir + transf_names[i]);\n\t\t\tif(transform[i] == null)\n\t\t\t{\n\t\t\t\tIJ.error(\"Error when reading transform from file: \" + transf_dir + transf_names[i]);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Apply transforms\n\t\t\t\n\t\t// Create transformed images\n\t\tIJ.showStatus(\"Calculating transformed images...\");\n\t\tif(Register_Virtual_Stack_MT.createResults(source_dir, src_names, target_dir, null, transform, interpolate) == false)\n\t\t{\n\t\t\tIJ.log(\"Error when creating transformed images\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\treturn true;\n\t}", "private static void loadImagesInDirectory(String dir){\n\t\tFile file = new File(Files.localize(\"images\\\\\"+dir));\n\t\tassert file.isDirectory();\n\t\n\t\tFile[] files = file.listFiles();\n\t\tfor(File f : files){\n\t\t\tif(isImageFile(f)){\n\t\t\t\tString name = dir+\"\\\\\"+f.getName();\n\t\t\t\tint i = name.lastIndexOf('.');\n\t\t\t\tassert i != -1;\n\t\t\t\tname = name.substring(0, i).replaceAll(\"\\\\\\\\\", \"/\");\n\t\t\t\t//Image image = load(f,true);\n\t\t\t\tImageIcon image;\n\t\t\t\tFile f2 = new File(f.getAbsolutePath()+\".anim\");\n\t\t\t\tif(f2.exists()){\n\t\t\t\t\timage = evaluateAnimFile(dir,f2,load(f,true));\n\t\t\t\t}else{\n\t\t\t\t\timage = new ImageIcon(f.getAbsolutePath());\n\t\t\t\t}\n\t\t\t\tdebug(\"Loaded image \"+name+\" as \"+f.getAbsolutePath());\n\t\t\t\timages.put(name, image);\n\t\t\t}else if(f.isDirectory()){\n\t\t\t\tloadImagesInDirectory(dir+\"\\\\\"+f.getName());\n\t\t\t}\n\t\t}\n\t}", "String transcribeFilesInDirectory(String directoryPath);", "@Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (!this.sourceDirectory.equals(dir)) {\n this.currentTargetDirectory = this.currentTargetDirectory.getParent();\n }\n return FileVisitResult.CONTINUE;\n }", "private void fillAllImagesUnderDirectory(File directory) throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n\n for (File file : fileArray) {\n // if the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n allImagesUnderDirectory\n .add(centralController.getImageFileController().getImageFile(imageFile));\n } else if (imagesInDirectory.contains(imageFile)) {\n allImagesUnderDirectory.add(imagesInDirectory.get(imagesInDirectory.indexOf(imageFile)));\n } else {\n allImagesUnderDirectory.add(imageFile);\n }\n } else if (file.isDirectory()) {\n fillAllImagesUnderDirectory(file);\n }\n }\n }", "public static void main(String[] args) {\n try {\n File dataFolder = new File(\"data\");\n for (File imageFile : dataFolder.listFiles()) {\n BufferedImage bufferedImage = ImageIO.read(imageFile);\n ImageProcessor.instance.processImage(bufferedImage, imageFile.getName());\n }\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public abstract BufferedImage transform();", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "private void fillImagesInDirectory() throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n for (File file : fileArray) {\n // the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n imagesInDirectory.add(centralController.getImageFileController().getImageFile(imageFile));\n } else {\n imagesInDirectory.add(imageFile);\n }\n }\n }\n }", "public static void processDirectory(File directory) {\n FlatFileProcessor processor = new FlatFileProcessor(directory);\n processor.processDirectory();\n }", "void moveFileToDirectoryWithConvertedFiles(String pathToFile);", "public javaxt.io.Image transform(javaxt.io.Image src_img, double[] src_bbox, int[] dst_size, double[] dst_bbox){\n if (this._no_transformation_needed(new int[]{src_img.getWidth(), src_img.getHeight()}, src_bbox, dst_size, dst_bbox)){\n //System.out.println(\"_no_transformation_needed\");\n return src_img;\n }\n else if (equals(this.src_srs, this.dst_srs)){\n //System.out.println(\"_transform_simple\"); \n return this._transform_simple(src_img, src_bbox, dst_size, dst_bbox);\n }\n else\n return this._transform(src_img, src_bbox, dst_size, dst_bbox);\n }", "public void runLighten() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 5.3f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void inferPathsFromSourceDir(File sourceDir,\n Properties props) {\n String pidFiles = \"\";\n String xsltFiles = \"\";\n for (File file : sourceDir.listFiles()) {\n if (file.getName().endsWith(\".xslt\")\n || file.getName().endsWith(\".xsl\")) {\n String path = file.getPath();\n int i = path.lastIndexOf(\".\");\n String pathPrefix = path.substring(0, i);\n File pidFile = getPidFile(pathPrefix);\n if (pidFile != null) {\n if (xsltFiles.length() > 0) {\n xsltFiles += \" \";\n }\n xsltFiles += path;\n if (pidFiles.length() > 0) {\n pidFiles += \" \";\n }\n pidFiles += pidFile.getPath();\n }\n }\n }\n props.setProperty(\"xsltFiles\", xsltFiles);\n props.setProperty(\"pidFiles\", pidFiles);\n }", "static void bulkConvert(File folder, File destination)\n {\n if (folder == null)\n throw new IllegalArgumentException(\"folder cannot be null\");\n if (!folder.isDirectory())\n throw new IllegalArgumentException(\"folder is not a directory\");\n\n for (File f : folder.listFiles()) {\n if (f.isDirectory()) {\n bulkConvert(f, destination);\n continue;\n }\n\n String extension = f.getName().split(\"\\\\.\")[1];\n\n if (extension.toUpperCase().equals(\"DLIS\"))\n readFromDLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LIS\"))\n readFromLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LAS\"))\n readFromLAS(f, destination.getPath());\n }\n }", "public void selectAndConvert() {\n // Used to select multiple files\n DirectoryResource dr = new DirectoryResource();\n // For each file in the selected files\n for (File f : dr.selectedFiles()) {\n ImageResource inputImg = new ImageResource(f);\n // Converting image in the input file to gray image\n ImageResource outputImg = makeInversion(inputImg);\n // Used to get the name of the file selected\n String inputImgFileName = inputImg.getFileName();\n String outputImgFileName = \"inverted-\" + inputImgFileName;\n // Creating file name to the outputImg with the help of absolute path of the inputImgFileName\n outputImg.setFileName(\"src/java_assignments/coursera1/image_inversion/\"+outputImgFileName);\n outputImg.draw();\n outputImg.save();\n }\n }", "private BufferedImage[] loadImages(String directory, BufferedImage[] img) throws Exception {\n\t\tFile dir = new File(directory);\n\t\tFile[] files = dir.listFiles();\n\t\tArrays.sort(files, (s, t) -> s.getName().compareTo(t.getName()));\n\t\t\n\t\timg = new BufferedImage[files.length];\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\timg[i] = ImageIO.read(files[i]);\n\t\t}\n\t\treturn img;\n\t}", "@Test (groups = { \"endpoints\" })\n\t\tpublic static void testTransform() throws Exception {\n\t\t\t\n\t\t\tSystem.out.println(\"\\n**** In QASandboxTransformTest/testTransform module ****\\n\");\n\t\t\t\n\t\t\t// Load the files from the designated directory\t\t\t\t\n//\t\t\tFile startDir = new File(Constants.transformFileStartDir);\n\t\t\tFile startDir = new File(Constants.transformFileStartDir + \"/spaGeneralConferenceHTML\");\t\t// Replace the line above with this one to test with less documents\n\t\t\t\tSystem.out.println(\"Loading files to test...\");\t\t\t\n\t\t\tList<File> filesToTransform = new ArrayList<>();\t\t\t\n\t\t\tQAFileUtils.loadTestFiles(filesToTransform, startDir);\t\t\t\n\t\t\t\tAssert.assertNotEquals(filesToTransform.size(),0,\"No files found in the passed folder\");\n\t\t\t\tSystem.out.println(filesToTransform.size() + \" files found\");\t\t\t\t\n\n\t\t\t// Transform all of the files\t\t\t\t\n\t\t\tfor (File file : filesToTransform) {\n\t\t\t\t\tSystem.out.println(\"\\nTransforming file: \" + file.getPath()); // was getAbsolutePath\n\t\t\t\tQATransformationResult result = QASandboxTransformService.transformFile(file);\t// 1. Transform each file\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(result.wasSuccessful() ? \"Transform result shows successful\" : \"ERROR: Transform result shows failure\" );\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\tSystem.out.println(\"\\n**** EXIT QASandboxTransformTest/testTransform module ****\\n\");\t\t\t\n\t\t\t\n\t\t}", "public static void main(String[] args)\r\n\t{\r\n\t\tString inputFolder = rootFolder + \"\\\\LED Peg\";\r\n\t\tString outputFolder = rootFolder + \"\\\\LEDPeg_output\";\r\n\t\t\t\t\r\n\t\tFile folder = new File(inputFolder);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\r\n\t\tEntropy2017Targeting imageProcessor = new Entropy2017Targeting(null, null);\r\n\t\timageProcessor.processingForPeg = true;\r\n\t\t\r\n\t\tfor(File f : listOfFiles)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"File: \" + f.getPath());\r\n\t\t\t\r\n\t\t\tMat ourImage = Imgcodecs.imread(f.getPath());\r\n\t\t\timageProcessor.processImage(ourImage);\r\n\t\t\tImgcodecs.imwrite(outputFolder + \"\\\\\"+ f.getName()+\".png\", ourImage);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Completed file.\");\r\n\t\t}\r\n\t\tSystem.out.println(\"Processed all images.\");\r\n\t}", "public void transform(double[] src, double[] dst){\n\tfor (int i = 0; i < dst.length; i++) {\n\t dst[i] = 0;\n\t for (int j = 0; j < src.length; j++)\n\t\tdst[i] += array[i][j] * src[j]; \n\t}\n }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n for (int i = 1; i<10; i++){\n String image= \"src/main/java/BallImage\";\n image = image + i + \".jpg\";\n Mat input = Imgcodecs.imread(image);\n Mat output = algorithm(input);\n String output_fname = \"Output Image \" + i + \".jpg\";\n Imgcodecs.imwrite(output_fname, output);\n }\n System.out.println(\"Done\");\n }", "public void transform(Node source, String outputFileName) throws Exception {\n FileOutputStream outFS = new FileOutputStream(outputFileName);\n Result result = new StreamResult(outFS);\n myTransformer.transform(new DOMSource(source), result);\n outFS.close();\n }", "public void treatAllPhotos() throws IllegalArgumentException {\n for(Long currentID : idsToTest){\n String pathToPhoto = \"photo\\\\\" + currentID.toString();\n File currentPhotosFile = new File(pathToPhoto);\n\n if(currentPhotosFile.exists() && currentPhotosFile.isDirectory()){\n\n File[] listFiles = currentPhotosFile.listFiles();\n\n for(File file : listFiles){\n if (!file.getName().endsWith(\".pgm\")) { //search how to convert all image to .pgm\n throw new IllegalArgumentException(\"The file of the student \" + currentID + \" contains other files than '.pgm'.\");\n }\n else{\n Mat photoToTreat = Imgcodecs.imread(pathToPhoto + \"\\\\\" + file.getName(), Imgcodecs.IMREAD_GRAYSCALE);\n Mat treatedPhoto = recoApp.imageTreatment(photoToTreat);\n if(treatedPhoto != null){\n Imgcodecs.imwrite(pathToPhoto + \"\\\\\" + file.getName(), treatedPhoto);\n }\n }\n }\n }\n else{\n throw new IllegalArgumentException(\"The file of the student \" + currentID + \" do not exist or is not a directory.\");\n }\n }\n }", "public void populateCachedImages(File dir)\n {\n if (dir.exists())\n {\n File[] files = dir.listFiles();\n for (int i = 0; i < files.length; i++)\n {\n File file = files[i];\n if (!file.isDirectory())\n {\n //Record all filenames from the cache so we know which photos to retrieve from database\n cachedFileNames.add(file.getName());\n imageList.add(file);\n }\n }\n }\n }", "private void migrate (String name)\t{\n\t\ttry{\n\t\t\tFile f1 = new File( sourceDir + name);\n\t\t\t\n\t\t\tif (!f1.exists())\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tFile f2 = new File(targetDir +name);\n\t\t\t\n\t\t InputStream in = new FileInputStream(f1);\n\t\t \n\t\t OutputStream out = new FileOutputStream(f2);\n\n\t\t byte[] buf = new byte[1024];\n\t\t int len;\n\t\t while ((len = in.read(buf)) > 0){\n\t\t out.write(buf, 0, len);\n\t\t }\n\t\t in.close();\n\t\t out.close();\n\t\t System.out.println(\"File copied.\");\n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t System.out.println(ex.getMessage() + \" in the specified directory.\");\n\t\t System.exit(0);\n\t\t }\n\t\t catch(IOException e){\n\t\t System.out.println(e.getMessage()); \n\t\t }\n\t}", "abstract public void setImageResourcesDir(String path);", "public static void loadFilesFromClasspath(final String dirFile)\n\t{\n\n\t\t// You can uncomment this for local \n\t\t// but DO NOT CHECK IT IN UNCOMMENTED\n\t\t//\t if(\"true\".equals(\"true\")){\n\t\t//\t\t\tloadFilesFromClasspathLocalEnv(dirFile);\n\t\t//\t\t\treturn; \n\t\t//\t\t}\n\t\ttry\n\t\t{\n\t\t\tlogger.info(\"loading files from \" + dirFile);\n\t\t\tfinal PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(classLoader);\n\t\t\tfinal Resource[] resources = resolver.getResources(dirFile + \"/**/*.xsl\");\n\t\t\tif (resources == null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tResource resource;\n\t\t\tfor (int i = 0; i < resources.length; i++)\n\t\t\t{\n\t\t\t\tresource = resources[i];\n\t\t\t\tlogger.info(\"found a file to load: \" + resource.getFilename());\n\n\t\t\t\tfinal URL url = resource.getURL();\n\t\t\t\tif (ResourceUtils.isJarURL(url))\n\t\t\t\t{\n\t\t\t\t\tfinal InputStream inputStream = resource.getInputStream();\n\t\t\t\t\tcreateTransformer(inputStream, resource.getDescription());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tInputStream inputStream = classLoader.getResourceAsStream(resource.getFilename());\n\t\t\t\t\tif (inputStream == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tinputStream = resource.getInputStream();\n\t\t\t\t\t}\n\t\t\t\t\tcreateTransformer(inputStream, resource.getDescription(), resource);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (final Exception e)\n\t\t{\n\t\t\tlogger.warn(\"Unable to load files from \" + dirFile + \" :reason: \", e);\n\t\t}\n\n\t}", "protected void transform()\n\t{\n\t\tFileSummary summary = getFileSummary();\n\t\tFileCloser.close(summary.getFile());\n\n\t\tsuper.transform();\n\t}", "private javaxt.io.Image _transform_simple(javaxt.io.Image src_img, \n double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double[] src_quad = new double[]{0, 0, src_img.getWidth(), src_img.getHeight()};\n SRS.transf to_src_px =SRS.make_lin_transf(src_bbox, src_quad);\n\n //minx, miny = to_src_px((dst_bbox[0], dst_bbox[3]));\n double[] min = to_src_px.transf(dst_bbox[0], dst_bbox[3]);\n double minx = min[0];\n double miny = min[1];\n\n //maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1]));\n double[] max = to_src_px.transf(dst_bbox[2], dst_bbox[1]);\n double maxx = max[0];\n double maxy = max[1];\n\n double src_res = (src_bbox[0]-src_bbox[2])/src_img.getWidth();\n double dst_res = (dst_bbox[0]-dst_bbox[2])/dst_size[0];\n\n double tenth_px_res = Math.abs(dst_res/(dst_size[0]*10));\n javaxt.io.Image img = new javaxt.io.Image(src_img.getBufferedImage());\n if (Math.abs(src_res-dst_res) < tenth_px_res){\n img.crop(cint(minx), cint(miny), dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(minx)+dst_size[0], cint(miny)+dst_size[1]);\n return img; //src_img;\n }\n else{\n img.crop(cint(minx), cint(miny), cint(maxx)-cint(minx), cint(maxy)-cint(miny));\n img.resize(dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(maxx), cint(maxy));\n //src_img.resize(dst_size[0], dst_size[1]);\n return img; //src_img;\n }\n //ImageSource(result, size=dst_size, transparent=src_img.transparent)\n }", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "List<List<Pixel>> transform(Image img, String operation);", "public static void main(String[] args) throws IOException {\n\t\tFile dir = new File(\"C:\\\\Users\\\\user\\\\Desktop\\\\1000_web_htm_archive\\\\1000_web_htm_archive\\\\\");\r\n\t\tFile[] filelist = dir.listFiles();\r\n\t\r\n\t\tfor (int i = 0; i < filelist.length; i++) {\r\n\t\t\tif (filelist[i].isFile()) {\r\n\t\t\t\tconvert(filelist[i].getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Converted 1000 Html files to text files and stored them in a folder Files_Converted\");\r\n\t}", "public void transformResources (WarPlayer player) {\n int index = player.getStrategy().inputHowMnayResourcesToTransform();\n if ( player.getResources().size() == 0) {\n System.out.println(\"\\n\\n No resource to convert !\\n\");\n }\n else if (index == 0) {\n player.transformNeededResources(player.getFood());\n System.out.println(\"\\n\\n Needed resources transformed !\\n\");\n } else if (index == 1) {\n player.transformAllResources();\n System.out.println(\"\\n\\n All resources transformed !\\n\");\n }\n }", "private javaxt.io.Image _transform(javaxt.io.Image src_img, double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n //Use GeoTools to reproject src_img to the output projection.\n try{\n\n //Compute geodetic w/h in degrees (used to specify the Envelope2D)\n double x1 = x(src_bbox[0]);\n double x2 = x(src_bbox[2]);\n double w = 0;\n if (x1>x2) w = x1-x2;\n else w = x2-x1;\n //System.out.println(x1 + \" to \" + x2 + \" = \" + (w));\n\n double y1 = y(src_bbox[1]);\n double y2 = y(src_bbox[3]);\n double h = 0;\n if (y1>y2) h = y1-y2;\n else h = y2-y1;\n //System.out.println(y1 + \" to \" + y2 + \" = \" + (h));\n\n\n System.out.println(src_bbox[0] + \", \" + src_bbox[1] + \", \" + src_bbox[2] + \", \" + src_bbox[3]);\n System.out.println(dst_bbox[0] + \", \" + dst_bbox[1] + \", \" + dst_bbox[2] + \", \" + dst_bbox[3]);\n \n Envelope2D envelope =\n new Envelope2D(this.src_srs.crs, src_bbox[0], src_bbox[1], w, h);\n\n GridCoverage2D gc2d =\n new GridCoverageFactory().create(\"BMImage\", src_img.getBufferedImage(), envelope);\n\n GridCoverage2D gc2dProj =\n (GridCoverage2D)Operations.DEFAULT.resample(gc2d, this.dst_srs.crs);\n\n //TODO: Crop Output?\n /* \n final AbstractProcessor processor = new DefaultProcessor(null);\n final ParameterValueGroup param = processor.getOperation(\"CoverageCrop\").getParameters();\n \n final GeneralEnvelope crop = new GeneralEnvelope( ... ); //<--Define new extents\n param.parameter(\"Source\").setValue( gc2dProj );\n param.parameter(\"Envelope\").setValue( crop );\n\n gc2dProj = (GridCoverage2D) processor.doOperation(param); \n */\n\n src_img = new javaxt.io.Image(gc2dProj.getRenderedImage());\n src_img.resize(dst_size[0], dst_size[1], false);\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n\n /*\n //Start port of original python code...\n src_bbox = this.src_srs.align_bbox(src_bbox);\n dst_bbox = this.dst_srs.align_bbox(dst_bbox);\n int[] src_size = new int[]{src_img.getWidth(), src_img.getHeight()}; //src_img.size\n double[] src_quad = new double[]{0, 0, src_size[0], src_size[1]};\n double[] dst_quad = new double[]{0, 0, dst_size[0], dst_size[1]};\n \n SRS.transf to_src_px = SRS.make_lin_transf(src_bbox, src_quad);\n SRS.transf to_dst_w = SRS.make_lin_transf(dst_quad, dst_bbox);\n\n //This segment still needs to be ported to java\n meshes = []; \n def dst_quad_to_src(quad):\n src_quad = []\n for dst_px in [(quad[0], quad[1]), (quad[0], quad[3]),\n (quad[2], quad[3]), (quad[2], quad[1])]:\n dst_w = to_dst_w(dst_px)\n src_w = self.dst_srs.transform_to(self.src_srs, dst_w)\n src_px = to_src_px(src_w)\n src_quad.extend(src_px)\n return quad, src_quad\n */\n\n /*\n int mesh_div = this.mesh_div;\n while (mesh_div > 1 && ((dst_size[0] / mesh_div) < 10 || (dst_size[1] / mesh_div) < 10))\n mesh_div -= 1;\n for (int[] quad : griddify(dst_quad, mesh_div))\n meshes.append(dst_quad_to_src(quad));\n result = src_img.as_image().transform(dst_size, Image.MESH, meshes,\n image_filter[self.resampling])\n */\n return src_img;\n }", "@Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n if (!this.sourceDirectory.equals(dir)) {\n // Create this directory in the target and make it our current target.\n Path newDirectory = this.currentTargetDirectory.resolve(dir.getFileName());\n boolean didCreate = newDirectory.toFile().mkdir();\n Assert.assertTrue(didCreate);\n logger.output(\"Created directory: \" + newDirectory);\n this.currentTargetDirectory = newDirectory;\n }\n return FileVisitResult.CONTINUE;\n }", "public static void main(String[] args) {\n String startDir = \"E:/DEKSTOP/Projets/photosortTest\";\n\n //We list what is in this folder :\n\n System.out.println(\"\\n\\n\\nListing of files recursively : \\n\");\n\n printListFilesRecursive(startDir);\n\n //Then we create 2 directories\n createDirectory(startDir, \"css_files\");\n createDirectory(startDir, \"js_files\");\n\n //Then we select all the js file and move it to /js_file, same for css files\n List<String> list_js = new ArrayList<>();\n List<String> list_css = new ArrayList<>();\n\n listFilesRecursiveByExtension(startDir,\"js\",list_js);\n listFilesRecursiveByExtension(startDir,\"css\",list_css);\n\n for (String item_js : list_js){\n copyFile(item_js,startDir+\"/js_files\",new File(item_js).getName());\n }\n\n\n for (String item_css : list_css){\n copyFile(item_css,startDir+\"/css_files\",new File(item_css).getName());\n }\n System.out.println(\"Listing of file dummy : \\n\");\n //array in which we will store the names of files and directories\n\n printDummyListFiles(startDir);\n\n\n\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n }", "private void loadImages(BufferedImage[] images, String direction) {\n for (int i = 0; i < images.length; i++) {\n String fileName = direction + (i + 1);\n images[i] = GameManager.getResources().getMonsterImages().get(\n fileName);\n }\n\n }", "private static void processFontDirectory(File dir, ArrayList fonts) {\n if (!dir.exists()) {\n return;\n }\n if (processed.contains(dir)) {\n return;\n }\n processed.add(dir);\n\n File[] sources = dir.listFiles();\n if (sources == null) {\n return;\n }\n\n for (int j = 0; j < sources.length; j++) {\n File source = sources[j];\n\n if (source.getName().equals(\".\")) {\n continue;\n }\n if (source.getName().equals(\"slick/src/test\")) {\n continue;\n }\n if (source.isDirectory()) {\n processFontDirectory(source, fonts);\n continue;\n }\n if (source.getName().toLowerCase().endsWith(\".ttf\")) {\n try {\n if (statusListener != null) {\n statusListener.updateStatus(\"Processing \" + source.getName());\n }\n FontData data = new FontData(new FileInputStream(source), 1);\n fonts.add(data);\n\n String famName = data.getFamilyName();\n if (!families.contains(famName)) {\n families.add(famName);\n }\n\n boolean bo = data.getJavaFont().isBold();\n boolean it = data.getJavaFont().isItalic();\n\n if ((bo) && (it)) {\n bolditalic.put(famName, data);\n } else if (bo) {\n bold.put(famName, data);\n } else if (it) {\n italic.put(famName, data);\n } else {\n plain.put(famName, data);\n }\n } catch (Exception e) {\n if (DEBUG) {\n System.err.println(\"Unable to process: \" + source.getAbsolutePath() + \" (\" + e.getClass() +\n \": \" + e.getMessage() + \")\");\n }\n if (statusListener != null) {\n statusListener.updateStatus(\"Unable to process: \" + source.getName());\n }\n }\n }\n }\n }", "private void moveToFinal(String imageName, String sourceDirectory,\n\t\t\t\tString destinationDirectory) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry {\n\n\t\t\t\tFile afile = new File(sourceDirectory + imageName);\n\t\t\t\tFile bfile = new File(destinationDirectory + imageName);\n\t\t\t\tif (afile.renameTo(bfile)) {\n\t\t\t\t\tSystem.out.println(\"File is moved successful!\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"File is failed to move!\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "public static void processDirectory(String directory) {\n processDirectory(new File(directory));\n }", "private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";\n\n\t\t// Load background\n\t\tbackground = createImage(img_file_base + \"Underwater\" + ext);\n\t}", "void handle(String filePath, Status status) throws IOException, TransformException;", "public static void main(String[] args) throws IOException {\n BmpFile c = new ImageReader().read();\n \n BmpFileTransformer t = new BmpFileTransformer();\n c = t.transform(c);\n \n new ImageInHtmlWriter().create(c);\n BmpFileWriter w = new BmpFileWriter();\n w.write(c);\n }", "public void extractResources(final Collection<Resource> files, final File destinationDir) throws IOException {\n for (String file : CONTROL_RESOURCES) {\n final String path = String.format(\"/control/%s\", file);\n final URL resource = DropwizardMojo.class.getResource(path);\n if (resource != null) {\n final ByteSource source = Resources.asByteSource(resource);\n final File target = new File(destinationDir, path);\n extractResource(source, target, true);\n }\n }\n\n // Extract/filter passed in files\n for (Resource resource : files) {\n final String path = String.format(\"/files/%s\", resource.getTarget());\n final ByteSource source = resource.getSource();\n final File target = new File(destinationDir, path);\n extractResource(source, target, resource.isFilter());\n }\n }", "private static void buildDir (File dir) \n\t\tthrows Exception\n\t{\n\t\tFile[] contents = dir.listFiles();\n\t\tfor (int i = 0; i < contents.length; i++) {\n\t\t\tFile file = contents[i];\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tbuildDir(file);\n\t\t\t} else if (file.getName().endsWith(\".xml\")) {\n\t\t\t\tbuildFile(file);\n\t\t\t}\n\t\t}\n\t}", "void loadImages(final ImageSourcePublisher publisher);", "public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String[] args) {\n if (args.length < 3) {\n System.err.println(\"Insufficient command line arguments.\");\n }\n final String srcDir = args[0];\n final String assetDir = args[1];\n final String resourceDir = args[2];\n\n for (String dir : args) {\n if (!isDirectory(dir)) {\n System.err.println(\"\\\"\" + dir + \"\\\" does not exists or is not a directory.\");\n }\n }\n\n final CsvConverter converter = new CsvConverter(srcDir, assetDir, resourceDir);\n if (converter.generateAssets()) {\n System.out.println(\"Ranges processed:\");\n System.out.println(converter.getRecordCount());\n converter.generateResources();\n }\n }", "public void ImageTransform(){\n imageView.clearAnimation();\n Picasso.get()\n .load(url)\n .resize(150, 150)\n .centerCrop()\n .into(imageView);\n }", "public void getSourceJavaFilesForOneRepository(File dir, FilenameFilter searchSuffix, ArrayList<File> al) {\n\n\t\tFile[] files = dir.listFiles();\t\t\n\t\tfor(File f : files) {\n\t\t\tString lowercaseName = f.getName().toLowerCase();\n\t\t\tif(lowercaseName.indexOf(\"test\")!=-1)\n\t\t\t{\n\t\t\t\t/* we do not consider test files in our study */\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t if(f.isDirectory()){\n\t\t\t\t /* iterate over every directory */\n\t\t\t\t getSourceJavaFilesForOneRepository(f, searchSuffix, al);\t\t\n\t\t\t } else {\n\t\t\t\t /* returns the desired java files */\n\t\t\t\t if(searchSuffix.accept(dir, f.getName())){\n\t\t\t\t\t al.add(f);\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tPath resolve = target.resolve(source.relativize(dir));\n\t\t\t\tFile resolve_file = resolve.toFile();\n\n\t\t\t\tif (resolve_file.exists() == false) {\n\t\t\t\t\tFiles.createDirectory(resolve);\n\t\t\t\t} else {\n\t\t\t\t\t// delete old data in sub-directories\n\t\t\t\t\t// without deleting the directory\n\t\t\t\t\tArrays.asList(resolve_file.listFiles()).forEach(File::delete);\n\t\t\t\t}\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}", "private static void moveFiles(String src, String dest, int Num) // \n\t{\n\t File directoryPath = new File(src);\n\t \n\t // Creating filter for directories files, to select files only\n\t FileFilter fileFilter = new FileFilter(){\n\t public boolean accept(File dir) \n\t { \n\t if (dir.isFile()) \n\t {\n\t return true;\n\t } \n\t else \n\t {\n\t return false;\n\t }\n\t }\n\t }; \n\t \n\t // Get list of files in the source folder\n\t File[] list = directoryPath.listFiles(fileFilter);\n\t \n\t int i = 0;\n\t \n\t // Move Num file to destination folder\n\t while ((i < Num) && (i < list.length))\n\t {\n\t \tString srcFileName = src + \"/\" + list[i].getName();\n\t \tString destFileName = dest + \"/\" + list[i].getName();\n\t \tmoveFile(srcFileName, destFileName);\n\t \ti++;\t \t\n\t } \n\t}", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "protected void gatherSources(Collection<String> templateNames,\n File sourceDir, boolean recurse)\n throws IOException {\n gatherSources(templateNames, sourceDir, null, recurse);\n }", "private static void applyTransformations(DataFrame dataFrame) {\n // apply all transformations of every column\n for (GenericColumn column : dataFrame.getColumns()) {\n try {\n for (Transformer transformer : column.getTransformers()) {\n dataFrame.transformColumn(column, transformer);\n }\n } catch (Exception e) {\n throw AnchorTabularBuilderException.transformationException(column, e);\n }\n }\n }", "public void addObserversToImageFiles(Observer observer) {\n for (ImageFile imageFile : allImagesUnderDirectory) {\n imageFile.addObserver(observer);\n }\n }", "void processContentFiles(final File directoryToProcess, final String configId) {\r\n File[] files = directoryToProcess.listFiles();\r\n for (int fileIndex = 0; fileIndex < files.length; fileIndex++) {\r\n if (!(files[fileIndex].getName().equals(Constants.CONFIGURATION_FILE_NAME) || files[fileIndex]\r\n .getName().startsWith(\"successful_\"))) {\r\n try {\r\n storeContentToInfrastructure(directoryToProcess, configId, files, fileIndex);\r\n }\r\n catch (DepositorException e) {\r\n // FIXME give a message\r\n LOG.error(e.getMessage(), e);\r\n addToFailedConfigurations(configId);\r\n }\r\n }\r\n }\r\n }", "private void addSystemDirFilesToImage() throws IOException {\n File sourceSystemDir = new File(builderContext.sourceTbOptionsDir, \"system.v2\");\n if (!isValidCSMSource(sourceSystemDir)) {\n // Fall back to the system default, ~/Amplio/ACM/system.v2\n sourceSystemDir = new File(AmplioHome.getAppSoftwareDir(), \"system.v2\");\n }\n\n File targetSystemDir = new File(imageDir, \"system\");\n\n // The csm_data.txt file. Control file for the TB.\n File csmData = new File(sourceSystemDir, \"csm_data.txt\");\n FileUtils.copyFileToDirectory(csmData, targetSystemDir);\n\n // Optionally, the source for csm_data.txt file. \n File controlDefFile = new File(sourceSystemDir, \"control_def.txt\");\n if (controlDefFile.exists()) {\n FileUtils.copyFileToDirectory(controlDefFile, targetSystemDir);\n }\n\n // If UF is hidden in the deployment, copy the appropriate 'uf.der' file to 'system/'\n if (deploymentInfo.isUfHidden()) {\n UfKeyHelper ufKeyHelper = new UfKeyHelper(builderContext.project);\n byte[] publicKey = ufKeyHelper.getPublicKeyFor(builderContext.deploymentNo);\n File derFile = new File(targetSystemDir, \"uf.der\");\n try (FileOutputStream fos = new FileOutputStream(derFile);\n DataOutputStream dos = new DataOutputStream(fos)){\n dos.write(publicKey);\n }\n }\n }", "@Override\n protected void internalTransform(String arg0, Map arg1) {\n for (SootClass c : Scene.v().getApplicationClasses()) {\n //if (c.getName().startsWith(\"com\"))//TODO\n // if(c.getName().start)\n try {\n transform(c);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }\n }", "private void convertFile() throws Exception {\n\t\t// Inform the user that we're working\n\t\tmainframe.isLoading();\n\t\toutputMessage = \"Starting conversion...\";\n\n\t\t// ---------- Setting the output\n\t\t// *** Creating the dir\n\n\t\t// if the outputfiletextfield is empty, output file folder is same as input file's\n\t\tif(mainframe.getOutputTextfieldText().trim().equals(\"\")) {\n\t\t\tString[] temporarypath = null;\n\t\t\ttemporarypath = curFile.getAbsolutePath().split(\".xml\");\n\t\t\tdir = temporarypath[0];\n\n\t\t\toutputMessage += '\\n' + \"No output filled, same directory as input will be used\";\n\t\t}\n\t\telse{\n\t\t\ttry {\n\t\t\t\tFile f = new File(mainframe.getOutputTextfieldText());\n\n\t\t\t\t// if the selected is a directory\n\t\t\t\tif(f.isDirectory())\n\t\t\t\t{\n\t\t\t\t\t// split the file name\n\t\t\t\t\tString[] temporarypath = curFile.getName().split(\".xml\");\n\n\t\t\t\t\tdir = f.getAbsolutePath() + File.separator + temporarypath[0];\n \n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"sif\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".sif\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"csv\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".csv\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthrow new Exception(\"Invalid output : directory, SIF file or CSV file expected\");\n\t\t\t\t}\n\t\t\t} catch (NullPointerException nullExp){\n\t\t\t\toutputMessage += '\\n' + \"No output fuilled, same directory as input will be used\";\n\t\t\t}\n\t\t}\n\n\n\n\t\t// *** Setting the targets\n\t\tsetTargetSIFpath(dir.concat(\".sif\"));\n\t\tsetTargetCSVpath(dir.concat(\".csv\"));\n\t\t// set the target node type NA path\n\t\tsetTargetNODE_TYPEpath(dir.concat(\".NODE_TYPE.NA\"));\n\t\t// set the UNIPROT NA path\n\t\tsetTargetUNIPROTpath(dir.concat(\".UNIPROT.NA\"));\n\t\t// set the MODIFICATIONS NA path\n\t\tsetTargetMODIFICATIONSpath(dir.concat(\".MODIFICATIONS.NA\"));\n\t\t// set the PREFERRED_SYMBOL NA path\n\t\tsetTargetPREFERRED_SYMBOLpath(dir.concat(\".PREFERRED_SYMBOL.NA\"));\n\t\t// set the PREFERRED_SYMBOL_EXT NA path\n\t\tsetTargetPREFERRED_SYMBOL_EXTpath(dir.concat(\".PREFERRED_SYMBOL_EXT.NA\"));\n\t\t// set the PID NA path\n\t\tsetTargetPIDpath(dir.concat(\".PID.NA\"));\n\t\t// set the ID_PREF NA path\n\t\tsetTargetID_PREFpath(dir.concat(\".ID_PREF.NA\"));\n\t\t// set the IDCytoUniProtFile path\n\t\tsetTargetIDCytoUniProtFilepath(dir.concat(\".IDCytoToUniProt.NA\"));\n\t\t// set the UniqueUniProtFile path\n\t\tsetTargetUniqueUniProtFilepath(dir.concat(\".UNIQUEUNIPROT.NA\"));\n\t\t// set the UniProt to GeneID map file path\n\t\tsetTargetUniProtToGeneIDMapFilepath(dir.concat(\".UPToGeneIDMap.NA\"));\n\t\t// set the GeneID to Affymetrix map file path\n\t\tsetTargetGeneIDtoAffymetrixMapFilepath(dir.concat(\".GeneIDToAffyMap.NA\"));\n\n\t\t// For the user\n\t\toutputMessage += '\\n' + \"Target for conversion : \" + dir;\n\t\tmainframe.setTextToOutputText(dir);\n\n\t\t// ----------------- Converting\n\t\tif(inputfilepath.endsWith(\"xml\"))\n\t\t{\n\t\t\tNodeManagerImpl manager = NodeManagerImpl.getInstance();\n\t\t\tFileReader reader = PidFileReader.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\treader.read(inputfilepath);\n\t\t\t}\n\t\t\tcatch (NoValidManagerSetException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\t\t\tcatch (FileParsingException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\n\t\t\tFileWriter writer = SifFileWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\tif (mainframe.isExpandChecked())\n\t\t\t\t{\n\t\t\t\t\twriter = SifFileExpandMolWriter.getInstance();\n\t\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\t\tFileWriter nWriter = NodeTypeAttributeForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tnWriter.write(getTargetNODE_TYPEpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter uWriter = UniprotIdForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tuWriter.write(getTargetUNIPROTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter modiWriter = ModificationsWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmodiWriter.write(getTargetMODIFICATIONSpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pWriter = PreferredSymbolForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOLpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tpWriter = ExtPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOL_EXTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pidWriter = PidForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpidWriter.write(getTargetPIDpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter prefIdWriter = IdWithPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tprefIdWriter.write(getTargetID_PREFpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Parsing NA to CSV\n\t\t\ttry {\n\t\t\t\tparserTask = new ParserTask(getTargetCSVpath(),getTargetPIDpath(), getTargetNODE_TYPEpath(), getTargetUNIPROTpath(), getTargetMODIFICATIONSpath(),\n\t\t\t\t\t\tgetTargetPREFERRED_SYMBOLpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetID_PREFpath());\n\n\t\t\t\tFile SIFFile = new File(getTargetSIFpath());\n\t\t\t\tMyTaskObserver myTaskObserver = new MyTaskObserver(mainframe, tm, ldt, parserTask);\n\n\t\t\t\titr = ldn.createTaskIterator(SIFFile);\n\t\t\t\titr.append(parserTask);\n\t\t\t\ttm.execute(itr, myTaskObserver);\n\t\t\t} catch (Exception exp) {\n\t\t\t\tthrow new Exception(\"Problem when trying to parse the NA files or loading the graph : \\n\" + exp.toString());\n\t\t\t}\n\n\t\t}\n\t\telse // not an xml\n\t\t{\n\t\t\tthrow new Exception(\"Invalid input : .xml expected\");\n\t\t}\n \n\t}", "@Override\n public byte[] generate(@Nonnull final Collection<File> images) {\n final File redChannel = getFileForChannel(images, channelMap().red());\n final File greenChannel = getFileForChannel(images, channelMap().green());\n final File blueChannel = getFileForChannel(images, channelMap().blue());\n\n final Stopwatch stopwatch = Stopwatch.createStarted();\n final File mergedChannelsFile = gdalInvoker.mergeChannels(redChannel, greenChannel, blueChannel);\n LOG.info(\"intermediate file successfully generated in {} ms: {}\",\n stopwatch.elapsed(TimeUnit.MILLISECONDS), mergedChannelsFile.getAbsolutePath());\n\n stopwatch.reset();\n final File jpgFile = gdalInvoker.generateImage(mergedChannelsFile);\n LOG.info(\"jpg file successfully generated in {} ms: {}\",\n stopwatch.elapsed(TimeUnit.MILLISECONDS), jpgFile.getAbsolutePath());\n\n final byte[] bytes = toBytes(jpgFile);\n\n FileUtils.deleteQuietly(mergedChannelsFile);\n FileUtils.deleteQuietly(jpgFile);\n\n return bytes;\n }", "@Override\n\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\tSystem.out.println(dir.toAbsolutePath());\n\t\tPath RelativizedPath = SourceRoot.relativize(dir);\n\t\tSystem.out.println(RelativizedPath.toAbsolutePath());\n\t\tPath ResolvedPath = TargetRoot.resolve(RelativizedPath);\n\t\tSystem.out.println(ResolvedPath.toAbsolutePath());\n\t\t\n\t\ttry {\n\t\t\tFiles.copy(dir,ResolvedPath,StandardCopyOption.REPLACE_EXISTING);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn FileVisitResult.SKIP_SUBTREE;\n\t\t}\n\t\t\n\t\t\n\t\t\ttry {\n\t\t\t\tFiles.deleteIfExists(dir);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\treturn FileVisitResult.CONTINUE;\n\t}", "public static void zipFiles(List<String> srcFiles, String directoryPath) throws FileNotFoundException, IOException {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd-MM-yyyy-HHmmss\");\r\n LocalDateTime now = LocalDateTime.now();\r\n String d = dtf.format(now);\r\n FileOutputStream fos = new FileOutputStream(directoryPath + \"\\\\\" + \"backupRexs\" + d + \".zip\");\r\n ZipOutputStream zipOut = new ZipOutputStream(fos);\r\n for (String srcFile : srcFiles) {\r\n File fileToZip = new File(srcFile);\r\n FileInputStream fis = new FileInputStream(fileToZip);\r\n ZipEntry zipEntry = new ZipEntry(fileToZip.getName());\r\n zipOut.putNextEntry(zipEntry);\r\n\r\n byte[] bytes = new byte[1024];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zipOut.write(bytes, 0, length);\r\n }\r\n fis.close();\r\n fileToZip.delete();\r\n }\r\n zipOut.close();\r\n fos.close();\r\n }", "public void processDirectory(String dirName, DraftStatus minimalDraftStatus)\n throws IOException, ParseException {\n File dir = new File(outputDir + dirName);\n if (!dir.exists()) {\n dir.mkdirs();\n }\n SupplementalDataInfo sdi = SupplementalDataInfo.getInstance(CldrUtility.DEFAULT_SUPPLEMENTAL_DIRECTORY);\n Factory cldrFactory = Factory.make(\n cldrCommonDir + dirName + \"/\", \".*\");\n Set<String> files = cldrFactory.getAvailable();\n for (String filename : files) {\n if (LdmlConvertRules.IGNORE_FILE_SET.contains(filename)) {\n continue;\n }\n if (!filename.matches(match)) {\n continue;\n }\n\n System.out.println(\"Processing file \" + dirName + \"/\" + filename);\n String pathPrefix;\n CLDRFile file = cldrFactory.make(filename, resolve && dirName.equals(MAIN), minimalDraftStatus);\n\n sectionItems.clear();\n if (dirName.equals(MAIN)) {\n pathPrefix = \"/cldr/\" + dirName + \"/\" + filename.replaceAll(\"_\", \"-\") + \"/\";\n } else {\n pathPrefix = \"/cldr/\" + dirName + \"/\";\n }\n mapPathsToSections(file, pathPrefix, sdi);\n\n String outputDirname;\n if (dirName.equals(MAIN)) {\n outputDirname = outputDir + dirName + File.separator + filename.replaceAll(\"_\", \"-\");\n } else {\n outputDirname = outputDir + dirName;\n }\n convertCldrItems(outputDirname, pathPrefix);\n }\n }", "private void processBulk()\n {\n File inDir = new File(m_inDir);\n String [] fileList = inDir.list();\n \n for (int j=0; j<fileList.length; j++)\n {\n String file = fileList[j];\n if (file.endsWith(\".xml\"))\n {\n m_inFile = m_inDir + \"/\" + file;\n m_localeStr = Utilities.extractLocaleFromFilename(file);\n processSingle();\n }\n }\n }", "private static void replaceAssetsReferencesInDirImpl(Path dir, Path rootDir, Map<String, String> assetSubstitutes,\n Properties generatorSettings) throws IOException {\n // Replace references\n try (var htmlFiles = Files.newDirectoryStream(dir, FileFilters.htmlFilter)) {\n for (Path htmlFile : htmlFiles) {\n Document doc = Jsoup.parse(htmlFile.toFile(), \"UTF-8\");\n URI docURI = URI.create(rootDir.relativize(dir).resolve(htmlFile.getFileName()).toString());\n\n LOG.debug(String.format(\"Replacing asset references in '%s'\", htmlFile));\n replaceAssetsReferencesInDoc(doc, docURI, assetSubstitutes, generatorSettings);\n\n Files.write(htmlFile, doc.outerHtml().getBytes());\n }\n }\n\n // Replace refs in sub directories\n try (var subDirs = FileFilters.subDirStream(dir)) {\n for (var subDir : subDirs) {\n replaceAssetsReferencesInDirImpl(subDir, rootDir, assetSubstitutes, generatorSettings);\n }\n }\n }", "protected Seq<Fi> loadImages(Xml root, Fi tmxFile){\n Seq<Fi> images = new Seq<>();\n\n for(Xml imageLayer : root.getChildrenByName(\"imagelayer\")){\n Xml image = imageLayer.getChildByName(\"image\");\n String source = image.getAttribute(\"source\", null);\n\n if(source != null){\n Fi handle = getRelativeFileHandle(tmxFile, source);\n\n if(!images.contains(handle, false)){\n images.add(handle);\n }\n }\n }\n\n return images;\n }", "@Override\n \t\t\t\tpublic File getTransformerDirectory() {\n \t\t\t\t\treturn null;\n \t\t\t\t}", "public static void main(String arg[]) {\n\t\ttry {\n\t\t\tSource transformSource = new StreamSource(arg[0]);\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance(\"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl\", null);\n\t\t\tTransformer transformer = tf.newTransformer(transformSource);\n\t\t\tStreamSource inputSource = new StreamSource(arg[1]);\n\t\t\tStreamResult outputResult = new StreamResult(new File(arg[2]));\n\t\t\ttransformer.transform(inputSource,outputResult);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t}\n\t}", "public ArrayList<ImageFile> getAllImagesUnderDirectory() throws IOException {\n return allImagesUnderDirectory;\n }", "public void setDir(File dir) {\n _sourceDir = dir;\n }", "public void convert() throws Exception {\r\n\t\tString svg_URI_input = Paths.get(\"library.svg\").toUri().toURL().toString();\r\n\t\tTranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);\r\n\t\tthis.setNewImage(generate(20));// Define the name of the file\r\n\t\ttry (OutputStream png_ostream = new FileOutputStream(newImage)) {\r\n\t\t\tTranscoderOutput output_png_image = new TranscoderOutput(png_ostream);\r\n\r\n\t\t\tPNGTranscoder my_converter = new PNGTranscoder();\r\n\t\t\tmy_converter.transcode(input_svg_image, output_png_image);\r\n\r\n\t\t\tpng_ostream.flush();\r\n\t\t\tpng_ostream.close();\r\n\t\t}\r\n\r\n\t}", "public static void searchForImageReferences(File rootDir, FilenameFilter fileFilter) {\n \t\tfor (File file : rootDir.listFiles()) {\n \t\t\tif (file.isDirectory()) {\n \t\t\t\tsearchForImageReferences(file, fileFilter);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\tif (fileFilter.accept(rootDir, file.getName())) {\n \t\t\t\t\tif (MapTool.getFrame() != null) {\n \t\t\t\t\t\tMapTool.getFrame().setStatusMessage(\"Caching image reference: \" + file.getName());\n \t\t\t\t\t}\n \t\t\t\t\trememberLocalImageReference(file);\n \t\t\t\t}\n \t\t\t} catch (IOException ioe) {\n \t\t\t\tioe.printStackTrace();\n \t\t\t}\n \t\t}\n \t\t// Done\n \t\tif (MapTool.getFrame() != null) {\n \t\t\tMapTool.getFrame().setStatusMessage(\"\");\n \t\t}\n \t}", "private void loadImages() {\n\t\ttry {\n\t\t\timage = ImageIO.read(Pillar.class.getResource(\"/Items/Pillar.png\"));\n\t\t\tscaledImage = image;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed to read Pillar image file: \" + e.getMessage());\n\t\t}\n\t}", "@Override\n protected void process() {\n final List<File> srtFiles = new FileFinder().collect(new File(Constants.FILEFIXER_ROOT_DIR), Constants.SRT_EXTENSION);\n\n // process each file, making a backup first if it is enabled\n for (final File srtFile : srtFiles) {\n System.out.println(\"Processing subtitle file :: \" + srtFile.getName());\n\n if (Constants.MAKE_BACKUPS) {\n backupFile(srtFile);\n }\n\n fix(srtFile);\n }\n }", "public static void runFolders(File srcDir, String strSkinFolderName, String _relativePath,\n String folderContentType) {\n\n String relativePath = _relativePath;\n\n File[] list = srcDir.listFiles();\n\n for (int i = 0; i < list.length; i++) {\n File fileItem = list[i];\n if (fileItem.isDirectory()) {\n String prevRelativePath = new String(relativePath);\n relativePath += \"/\" + fileItem.getName();\n runFolders(fileItem, strSkinFolderName, relativePath, folderContentType);\n relativePath = prevRelativePath;\n } else {\n try {\n if (log4j.isDebugEnabled())\n log4j.debug(list[i] + \" Parent: \" + fileItem.getParent() + \" getName() \"\n + fileItem.getName() + \" canonical: \" + fileItem.getCanonicalPath());\n if (folderContentType == \"RTL\") {\n count++;\n modifySkin(list[i]);\n } else if (folderContentType == \"LTR\") {\n count++;\n }\n } catch (Exception e) {\n log4j.error(\"IOException: \" + e);\n }\n }\n }\n }", "abstract void addNewSourceDirectory(final File targetDirectory);", "private static void runTests() {\r\n\t\tfor (int i = 0; i < testFiles.length; i++) {\r\n\t\t\tConverter file = new Converter(testFiles[i]);\r\n\t\t\tfile.convert();\r\n\t\t\tSystem.out.println(\"---------\");\r\n\t\t}\r\n\t}", "public void initializeImages() {\n\n File dir = new File(\"Images\");\n if (!dir.exists()) {\n boolean success = dir.mkdir();\n System.out.println(\"Images directory created!\");\n }\n }", "public static void convert_png_to_jpg(String sourceDir, String destinationDir) throws IOException {\n\t\tBufferedImage bufferedImage;\n\t\tFile sourceFile = new File(sourceDir);\n\n\t\ttry {\n\n\t\t\t// read image file\n\t\t\tbufferedImage = ImageIO.read(new File(sourceDir));\n\n\t\t\t// create a blank, RGB, same width and height, and a white background\n\t\t\tBufferedImage newBufferedImage = new BufferedImage(bufferedImage.getWidth(), bufferedImage.getHeight(),\n\t\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\t\t\tnewBufferedImage.createGraphics().drawImage(bufferedImage, 0, 0, Color.WHITE, null);\n\t\t\tString fileName = sourceFile.getName().replace(\".png\", \"\");\n\t\t\tFile outputfile = new File(destinationDir + \"/\" + fileName + \".jpg\");\n\n\t\t\t// write to jpeg file\n\t\t\tImageIO.write(newBufferedImage, \"jpg\", outputfile);\n\n\t\t\t// System.out.println(\"Done\");\n\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "public static void main(String[] args) {\n\n File file = new File(\"./src/cat.txt\");\n System.out.println(file.exists());\n System.out.println(file.getName());\n System.out.println(file.getAbsolutePath());\n System.out.println(file.isDirectory());\n System.out.println(file.isFile());\n System.out.println(file.length());\n System.out.println(file.renameTo(new File(\"cat.txt\")));\n\n File folder = new File(\"./cat.txt\");\n boolean mkdir = folder.mkdir();\n\n File folderInFolder = new File(\"./folder/unAltFolder\");\n folderInFolder.mkdirs();\n\n System.out.println(file.getParent());\n File srcFile = new File(\"./src/main\");\n File[] filesFromSrc = srcFile.listFiles();\n\n for (File fileSrc : filesFromSrc) {\n System.out.println(fileSrc);\n }\n\n }", "public void transform() {\n\t\tthis.targetRootBlock = copy(this.sourceRootBlock);\n\n\t\tList<BlockImpl> blocks = allSubobjectsOfKind(targetRootBlock,\n\t\t\t\tBlockImpl.class);\n\t\tList<Block> emptyBlocks = new LinkedList<Block>();\n\t\tfor (Block block : blocks) {\n\t\t\tif (block.getModelElement().size() == 0) {\n\t\t\t\temptyBlocks.add(block);\n\t\t\t}\n\t\t}\n\n\t\tfor (Block block : emptyBlocks) {\n\t\t\tcreateSquare(block);\n\t\t\tEcoreUtil.delete(block);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Completed Transformation\");\n\t\t}\n\t}", "public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }", "public Builder setImagesByTransform(\n int index, com.yahoo.xpathproto.TransformTestProtos.ContentImage value) {\n if (imagesByTransformBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureImagesByTransformIsMutable();\n imagesByTransform_.set(index, value);\n onChanged();\n } else {\n imagesByTransformBuilder_.setMessage(index, value);\n }\n return this;\n }", "private ArrayList<char[]> subdirectoriesToFiles(String inputDir, ArrayList<char[]> fullFileList) throws IOException {\n\t\tArrayList<char[]> currentList =\n\t\t\t\tnew ArrayList<char[]>(Arrays.asList(new File(inputDir).listFiles()));\n\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\t\n\t\t\telse if (file.isDirectory())\n\t\t\t\tsubdirectoriesToFiles(file.getPath(), fullFileList);\n\t\t\t\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "public Object transform(Object object) {\n for (int i = 0; i < iTransformers.length; i++) {\n object = iTransformers[i].transform(object);\n }\n return object;\n }", "public Object transform(Object object) {\r\n for (int i = 0; i < iTransformers.length; i++) {\r\n object = iTransformers[i].transform(object);\r\n }\r\n return object;\r\n }", "public void transform() {\r\n\r\n\t\tint x, y, i;\r\n\t\tComplex[] row = new Complex[width];\r\n\t\tfor (x = 0; x < width; ++x)\r\n\t\t\trow[x] = new Complex();\r\n\t\tComplex[] column = new Complex[height];\r\n\t\tfor (y = 0; y < height; ++y)\r\n\t\t\tcolumn[y] = new Complex();\r\n\r\n\t\tint direction;\r\n\t\tif (spectral)\r\n\t\t\tdirection = -1; // inverse transform\r\n\t\telse\r\n\t\t\tdirection = 1; // forward transform\r\n\r\n\t\t// Perform FFT on each row\r\n\r\n\t\tfor (y = 0; y < height; ++y) {\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\trow[x].re = data[i].re;\r\n\t\t\t\trow[x].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(row, width);\r\n\t\t\tfft(row, width, log2w, direction);\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\tdata[i].re = row[x].re;\r\n\t\t\t\tdata[i].im = row[x].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Perform FFT on each column\r\n\r\n\t\tfor (x = 0; x < width; ++x) {\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tcolumn[y].re = data[i].re;\r\n\t\t\t\tcolumn[y].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(column, height);\r\n\t\t\tfft(column, height, log2h, direction);\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tdata[i].re = column[y].re;\r\n\t\t\t\tdata[i].im = column[y].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (spectral)\r\n\t\t\tspectral = false;\r\n\t\telse\r\n\t\t\tspectral = true;\r\n\r\n\t}", "protected abstract void setupImages(Context context);", "private static void processJar(Path destinationPath) throws IOException {\n\n if (destinationPath == null) {\n throw new IOException(\"Cobigen folder path not found!\");\n }\n\n File cobigenTemplatesPath = CobiGenPaths.getTemplatesFolderPath().toFile();\n\n Path sourcesJarPath = TemplatesJarUtil.getJarFile(true, cobigenTemplatesPath).toPath();\n Path classesJarPath = TemplatesJarUtil.getJarFile(false, cobigenTemplatesPath).toPath();\n\n LOG.debug(\"Processing jar file @ {}\", sourcesJarPath);\n\n // extract sources jar to target directory\n extractArchive(sourcesJarPath, destinationPath);\n\n // create src/main/java directory\n Files.createDirectory(destinationPath.resolve(\"src/main/java\"));\n\n // move com folder to src/main/java/com\n Files.move(destinationPath.resolve(\"com\"), destinationPath.resolve(\"src/main/java/com\"),\n StandardCopyOption.REPLACE_EXISTING);\n\n // create src/main/resources directory\n Files.createDirectory(destinationPath.resolve(\"src/main/resources\"));\n\n // move META-INF folder to src/main/resources\n Files.move(destinationPath.resolve(\"META-INF\"), destinationPath.resolve(\"src/main/resources/META-INF\"),\n StandardCopyOption.REPLACE_EXISTING);\n\n // delete MANIFEST.MF\n Files.deleteIfExists(destinationPath.resolve(\"src/main/resources/META-INF/MANIFEST.MF\"));\n\n URI zipFile = URI.create(\"jar:file:\" + classesJarPath.toUri().getPath());\n\n // extract classes jar pom.xml\n try (FileSystem fs = FileSystemUtil.getOrCreateFileSystem(zipFile)) {\n Files.copy(fs.getPath(\"pom.xml\"), destinationPath.resolve(\"pom.xml\"), StandardCopyOption.REPLACE_EXISTING);\n }\n\n }", "public static void compile(final File source, final String destinationFolder) throws IOException, ParsingException {\n try (InputStream input = new FileInputStream(source);\n OutputStream output = new FileOutputStream(getDestinationFileName(source, destinationFolder).toFile())) {\n compile(input, output);\n }\n }", "public void source(String path) throws Exception;", "public static void transform(final String xmlSource, final String xslFilePath, final boolean doCacheXsl,\r\n final Writer out) {\r\n transform(xmlSource, xslFilePath, 0L, doCacheXsl, out);\r\n }", "@Override\r\n\tpublic void makeTransform() {\n\r\n\t\tImgproc.GaussianBlur(src, dst, new Size(size, size),\r\n\t\t\t\tTransConstants.GAUSSIAN_SIGMA);\r\n\r\n\t}", "public Builder addAllImagesByTransform(\n java.lang.Iterable<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImage> values) {\n if (imagesByTransformBuilder_ == null) {\n ensureImagesByTransformIsMutable();\n super.addAll(values, imagesByTransform_);\n onChanged();\n } else {\n imagesByTransformBuilder_.addAllMessages(values);\n }\n return this;\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tString dir=\"D:\\\\123\";\n\t\tString toDir=\"D:\\\\22222\";\n\t\t//\t\tFile dir = new File(\"D:/VRV/images/\");\n//\t\tList<File> files = getAllFile(dir);\n//\t\tfor(File file:files){\n//\t\t\tSystem.out.println(file);\n//\t\t}\n\t\tImgC( dir, toDir);\n//\t\tList<String > l = new ArrayList<String>();\n//\t\tl.add(\"123123\");\n//\t\tl.add(\"123123\");\n//\t\tl.add(\"123123\");\n//\t\tJSONArray ja = (JSONArray)JSON.toJSON(l);\n//\t\tSystem.out.println(ja);\n\t}", "public synchronized final void process() throws FilterException {\n if (this.result == null)\n throw new FilterException(i18n.getString(\"outputNotSet\"));\n if (this.source == null)\n throw new FilterException(i18n.getString(\"inputNotSet\"));\n\n try {\n // Starts the input interpretation (transformation)\n this.transformer.transform(this.source, this.result);\n } catch (TransformerException e) {\n throw new FilterException(e);\n } finally {\n this.source = null;\n this.result = null;\n }\n }", "@Override\n\tpublic void run() {\n\t\tif (!mainDir.isDirectory()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// inserisco il nome della cartella principale.\n\t\tproduceDirPath(mainDir.getName());\n\t\t\n\t\t// navigo ricorsivamente.\n\t\twalkDir(mainDir);\n\t}", "private static void processFile(String directoryPath) {\n File[] lstFiles = Utility.getFiles(directoryPath);\n Arrays.sort(lstFiles);\n if (lstFiles.length == 0)\n System.out.println(\"Error loading the directory\");\n else {\n System.out.println(\"Uncompressed Index Version 1 started...\");\n long startTime = System.currentTimeMillis();\n iProcessor = new UncompressedLemmaProcessor(lstFiles);\n iProcessor.execute();\n iProcessor.writeFile();\n long endTime = System.currentTimeMillis();\n System.out.println(\"Uncompressed Index Version 1 completed...\");\n System.out.println(\"Time taken to complete Uncompressed Version 1 is \" + (endTime - startTime) + \" ms\");\n\n System.out.println(\"Uncompressed Index Version 2 started...\");\n startTime = System.currentTimeMillis();\n iProcessor = new UncompressedStemProcessor(lstFiles);\n iProcessor.execute();\n iProcessor.writeFile();\n endTime = System.currentTimeMillis();\n System.out.println(\"Uncompressed Index Version 2 completed...\");\n System.out.println(\"Time taken to complete Uncompressed Version 2 is \" + (endTime - startTime) + \" ms\");\n\n System.out.println(\"Compressed Index Version 1 started...\");\n startTime = System.currentTimeMillis();\n iProcessor = new CompressedLemmaProcessor();\n iProcessor.execute();\n iProcessor.writeFile();\n endTime = System.currentTimeMillis();\n System.out.println(\"Compressed Index Version 1 completed...\");\n System.out.println(\"Time taken to complete Compressed Version 1 is \" + (endTime - startTime) + \" ms\");\n\n System.out.println(\"Compressed Index Version 2 started...\");\n startTime = System.currentTimeMillis();\n iProcessor = new CompressedStemProcessor();\n iProcessor.execute();\n iProcessor.writeFile();\n endTime = System.currentTimeMillis();\n System.out.println(\"Compressed Index Version 2 completed...\");\n System.out.println(\"Time taken to complete Compressed Version 2 is \" + (endTime - startTime) + \" ms\");\n\n printInformation();\n }\n }", "public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}" ]
[ "0.6060715", "0.5817454", "0.5450687", "0.54119754", "0.5375225", "0.53667825", "0.5323804", "0.5307083", "0.5303102", "0.5294894", "0.52732307", "0.5246289", "0.5195791", "0.51512533", "0.51466745", "0.51404214", "0.5119098", "0.5112208", "0.5059302", "0.50146836", "0.49550235", "0.49381086", "0.49369037", "0.48970854", "0.48893082", "0.47971168", "0.4787708", "0.47819543", "0.47640824", "0.47439426", "0.47435278", "0.47310495", "0.47045326", "0.4702278", "0.46939975", "0.46925324", "0.46835613", "0.46811876", "0.46795803", "0.4676135", "0.46731508", "0.4670314", "0.4668097", "0.4664433", "0.46586746", "0.46307784", "0.46288604", "0.4616842", "0.46115923", "0.4607277", "0.46059674", "0.45999762", "0.45964596", "0.4585149", "0.45515397", "0.45468143", "0.45461622", "0.45382294", "0.45361254", "0.45315343", "0.45188972", "0.4514954", "0.45124534", "0.45071146", "0.45007682", "0.44999984", "0.44981056", "0.44817173", "0.44775087", "0.44700214", "0.4467269", "0.4466632", "0.44594187", "0.44584855", "0.44514114", "0.44497138", "0.44485325", "0.44448382", "0.44398543", "0.44364244", "0.44298643", "0.44291753", "0.44279116", "0.44218406", "0.44190443", "0.44176272", "0.44126287", "0.44098228", "0.44076276", "0.4405647", "0.44040367", "0.43950734", "0.4390991", "0.43837273", "0.4383516", "0.437919", "0.43764946", "0.43752748", "0.43713388", "0.43698445" ]
0.5830635
1
Read coordinate transform from file (generated in Register_Virtual_Stack)
static CoordinateTransform readCoordTransform(String filename) { final CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>(); try { final FileReader fr = new FileReader(filename); final BufferedReader br = new BufferedReader(fr); String line = null; while ((line = br.readLine()) != null) { int index = -1; if( (index = line.indexOf("class=")) != -1) { // skip "class" index+= 5; // read coordinate transform class name final int index2 = line.indexOf("\"", index+2); final String ct_class = line.substring(index+2, index2); final CoordinateTransform ct = (CoordinateTransform) Class.forName(ct_class).newInstance(); // read coordinate transform info final int index3 = line.indexOf("=", index2+1); final int index4 = line.indexOf("\"", index3+2); final String data = line.substring(index3+2, index4); ct.init(data); ctl.add(ct); } } br.close(); } catch (FileNotFoundException e) { IJ.error("File not found exception" + e); } catch (IOException e) { IJ.error("IOException exception" + e); } catch (NumberFormatException e) { IJ.error("Number format exception" + e); } catch (InstantiationException e) { IJ.error("Instantiation exception" + e); } catch (IllegalAccessException e) { IJ.error("Illegal access exception" + e); } catch (ClassNotFoundException e) { IJ.error("Class not found exception" + e); } return ctl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CoordinateTransform readCoordinateTransform(String filename) \n\t{\n\t\tfinal CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>();\n\t\ttry \n\t\t{\n\t\t\tfinal FileReader fr = new FileReader(filename);\n\t\t\tfinal BufferedReader br = new BufferedReader(fr);\n\t\t\tString line = null;\n\t\t\twhile ((line = br.readLine()) != null) \n\t\t\t{\n\t\t\t\tint index = -1;\n\t\t\t\tif( (index = line.indexOf(\"class=\")) != -1)\n\t\t\t\t{\n\t\t\t\t\t// skip \"class\"\n\t\t\t\t\tindex+= 5;\n\t\t\t\t\t// read coordinate transform class name\n\t\t\t\t\tfinal int index2 = line.indexOf(\"\\\"\", index+2); \n\t\t\t\t\tfinal String ct_class = line.substring(index+2, index2);\n\t\t\t\t\tfinal CoordinateTransform ct = (CoordinateTransform) Class.forName(ct_class).newInstance();\n\t\t\t\t\t// read coordinate transform info\n\t\t\t\t\tfinal int index3 = line.indexOf(\"=\", index2+1);\n\t\t\t\t\tfinal int index4 = line.indexOf(\"\\\"\", index3+2); \n\t\t\t\t\tfinal String data = line.substring(index3+2, index4);\n\t\t\t\t\tct.init(data);\n\t\t\t\t\tctl.add(ct);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tIJ.error(\"File not found exception\" + e);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tIJ.error(\"IOException exception\" + e);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\tIJ.error(\"Number format exception\" + e);\n\t\t\t\n\t\t} catch (InstantiationException e) {\n\t\t\tIJ.error(\"Instantiation exception\" + e);\n\t\t\t\n\t\t} catch (IllegalAccessException e) {\n\t\t\tIJ.error(\"Illegal access exception\" + e);\n\t\t\t\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tIJ.error(\"Class not found exception\" + e);\n\t\t\t\n\t\t}\n\t\treturn ctl;\n\t}", "@Override\n\tprotected void readImpl()\n\t{\n\t\t_x = readD();\n\t\t_y = readD();\n\t\t_z = readD();\n\t\t_heading = readD();\n\t}", "@Override\n public void readTilePositions(BufferedRandomAccessFile braf) throws IOException {\n row0 = braf.leReadInt();\n col0 = braf.leReadInt();\n nRows = braf.leReadInt();\n nCols = braf.leReadInt();\n this.row1 = row0 + nRows - 1;\n this.col1 = col0 + nCols - 1;\n if (nCols == 0) {\n offsets = null;\n // no position records follow in file.\n } else {\n offsets = new long[nRows][];\n for (int i = 0; i < nRows; i++) {\n offsets[i] = new long[nCols];\n }\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n offsets[i][j] = braf.leReadLong();\n }\n }\n }\n }", "public void readAll() throws FileNotFoundException{ \n b = new BinaryIn(this.filename);\n this.x = b.readShort();\n this.y = b.readShort();\n \n int count = (x * y) / (8 * 8);\n this.blocks = new double[count][8][8][3];\n \n Node juuri = readTree();\n readDataToBlocks(juuri);\n }", "public static void load(File file) throws IOException {\n while (LogicManager.isUpdating()) {} // wait until current update has finished\n\n LogicManager.setPaused(true);\n\n // clear current scene\n GridManager.clearScene();\n\n // open input stream\n ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));\n\n try {\n // load viewport data\n Point viewport = (Point) in.readObject();\n int scaling = (Integer) in.readObject();\n Window.getCurrentInstance()\n .getGameDisplay()\n .setViewport(viewport);\n Window.getCurrentInstance()\n .getGameDisplay()\n .setScaling(scaling);\n SwingUtilities.invokeLater(() -> {\n Window.getCurrentInstance()\n .getGameDisplay()\n .revalidate();\n Window.getCurrentInstance()\n .getGameDisplay()\n .repaint();\n });\n\n // load point data\n Point[] data;\n data = (Point[]) in.readObject();\n GridManager.loadScene(data);\n } catch (ClassNotFoundException e) {\n in.close();\n throw new IOException(\"File contains illegal data\");\n }\n in.close();\n }", "public Vector loadAffyGCOSExpressionFile(File f) throws IOException {\r\n \tthis.setTMEVDataType();\r\n final int preSpotRows = this.sflp.getXRow()+1;\r\n final int preExperimentColumns = this.sflp.getXColumn();\r\n int numLines = this.getCountOfLines(f);\r\n int spotCount = numLines - preSpotRows;\r\n\r\n if (spotCount <= 0) {\r\n JOptionPane.showMessageDialog(superLoader.getFrame(), \"There is no spot data available.\", \"TDMS Load Error\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n \r\n int[] rows = new int[] {0, 1, 0};\r\n int[] columns = new int[] {0, 1, 0};\r\n //String value,pvalue;\r\n String detection;\r\n\r\n float cy3, cy5;\r\n\r\n String[] moreFields = new String[1];\r\n String[] extraFields=null;\r\n final int rColumns = 1;\r\n final int rRows = spotCount;\r\n \r\n ISlideData slideDataArray[]=null;\r\n AffySlideDataElement sde=null;\r\n FloatSlideData slideData=null;\r\n \r\n BufferedReader reader = new BufferedReader(new FileReader(f));\r\n StringSplitter ss = new StringSplitter((char)0x09);\r\n String currentLine;\r\n int counter, row, column,experimentCount=0;\r\n counter = 0;\r\n row = column = 1;\r\n this.setFilesCount(1);\r\n this.setRemain(1);\r\n this.setFilesProgress(0);\r\n this.setLinesCount(numLines);\r\n this.setFileProgress(0);\r\n float[] intensities = new float[2];\r\n \r\n while ((currentLine = reader.readLine()) != null) {\r\n if (stop) {\r\n return null;\r\n }\r\n// fix empty tabbs appending to the end of line by wwang\r\n while(currentLine.endsWith(\"\\t\")){\r\n \tcurrentLine=currentLine.substring(0,currentLine.length()-1);\r\n }\r\n ss.init(currentLine);\r\n \r\n if (counter == 0) { // parse header\r\n \t\r\n \tif(sflp.onlyIntensityRadioButton.isSelected()) \r\n \t\texperimentCount = ss.countTokens()- preExperimentColumns;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/2;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/3;\r\n \t\r\n \t\r\n \tslideDataArray = new ISlideData[experimentCount];\r\n \tSampleAnnotation sampAnn=new SampleAnnotation();\r\n \tslideDataArray[0] = new SlideData(rRows, rColumns, sampAnn);//Added by Sarita to include SampleAnnotation model.\r\n \r\n slideDataArray[0].setSlideFileName(f.getPath());\r\n for (int i=1; i<experimentCount; i++) {\r\n \tsampAnn=new SampleAnnotation();\r\n \tslideDataArray[i] = new FloatSlideData(slideDataArray[0].getSlideMetaData(),spotCount, sampAnn);//Added by Sarita \r\n \tslideDataArray[i].setSlideFileName(f.getPath());\r\n \t//System.out.println(\"slideDataArray[i].slide file name: \"+ f.getPath());\r\n }\r\n if(sflp.onlyIntensityRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[1];\r\n \t//extraFields = new String[1];\r\n \tfieldNames[0]=\"AffyID\";\r\n \tslideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[2];\r\n \textraFields = new String[1];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else{\r\n \tString [] fieldNames = new String[3];\r\n \textraFields = new String[2];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n fieldNames[2]=\"P-value\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n \r\n }\r\n ss.nextToken();//parse the blank on header\r\n for (int i=0; i<experimentCount; i++) {\r\n \tString val=ss.nextToken();\r\n\t\t\t\t\tslideDataArray[i].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\tslideDataArray[i].getSampleAnnotation().setAnnotation(\"Default Slide Name\", val);\r\n\t\t\t\t\tslideDataArray[i].setSlideDataName(val);\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.mav.getData().setSampleAnnotationLoaded(true);\r\n\t\t\t \t \r\n if(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection\r\n ss.nextToken();//parse the pvalue\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection \r\n } \r\n }\r\n \r\n } else if (counter >= preSpotRows) { // data rows\r\n \trows[0] = rows[2] = row;\r\n \tcolumns[0] = columns[2] = column;\r\n \tif (column == rColumns) {\r\n \t\tcolumn = 1;\r\n \t\trow++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t} else {\r\n \t\tcolumn++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t}\r\n\r\n \t//affy ID\r\n \tmoreFields[0] = ss.nextToken();\r\n \r\n \t\r\n \t\r\n String cloneName = moreFields[0];\r\n if(_tempAnno.size()!=0) {\r\n \t \r\n \t \t \r\n \t if(((MevAnnotation)_tempAnno.get(cloneName))!=null) {\r\n \t\t MevAnnotation mevAnno = (MevAnnotation)_tempAnno.get(cloneName);\r\n\r\n \t\t sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields, mevAnno);\r\n \t }else {\r\n \t /**\r\n \t * Sarita: clone ID explicitly set here because if the data file\r\n \t * has a probe (for eg. Affy house keeping probes) for which Resourcerer\r\n \t * does not have annotation, MeV would still work fine. NA will be\r\n \t * appended for the rest of the fields. \r\n \t * \r\n \t * \r\n \t */\r\n \t\tMevAnnotation mevAnno = new MevAnnotation();\r\n \t\tmevAnno.setCloneID(cloneName);\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields, mevAnno);\r\n \t \t\t \r\n }\r\n }\r\n /* Added by Sarita\r\n * Checks if annotation was loaded and accordingly use\r\n * the appropriate constructor.\r\n * \r\n * \r\n */\r\n \r\n else {\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields);\r\n }\r\n \r\n \t\r\n \t//sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields);\r\n\r\n \tslideDataArray[0].addSlideDataElement(sde);\r\n \tint i=0;\r\n\r\n \tfor ( i=0; i<slideDataArray.length; i++) { \r\n \t\ttry {\t\r\n\r\n \t\t\t// Intensity\r\n \t\t\tintensities[0] = 1.0f;\r\n \t\t\tintensities[1] = ss.nextFloatToken(0.0f);\r\n \t\t\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t\textraFields[1]=ss.nextToken();//p-value\r\n \t\t\t\t\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t}\r\n\r\n \t\t} catch (Exception e) {\r\n \t\t\t\r\n \t\t\tintensities[1] = Float.NaN;\r\n \t\t}\r\n \t\tif(i==0){\r\n \t\t\t\r\n \t\t\tslideDataArray[i].setIntensities(counter - preSpotRows, intensities[0], intensities[1]);\r\n \t\t\t//sde.setExtraFields(extraFields);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t\tsde.setPvalue(new Float(extraFields[1]).floatValue());\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t}\r\n \t\t}else{\r\n \t\t\tif(i==1){\r\n \t\t\t\tmeta = slideDataArray[0].getSlideMetaData(); \t\r\n \t\t\t}\r\n \t\t\tslideDataArray[i].setIntensities(counter-preSpotRows,intensities[0],intensities[1]);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setPvalue(counter-preSpotRows,new Float(extraFields[1]).floatValue());\r\n \t\t\t}\r\n \t\t\tif(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n } else {\r\n //we have additional sample annoation\r\n \r\n \tfor (int i = 0; i < preExperimentColumns - 1; i++) {\r\n\t\t\t\t\tss.nextToken();\r\n\t\t\t\t}\r\n\t\t\t\tString key = ss.nextToken();\r\n\r\n\t\t\t\tfor (int j = 0; j < slideDataArray.length; j++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(slideDataArray[j].getSampleAnnotation()!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString val=ss.nextToken();\r\n\t\t\t\t\t\tslideDataArray[j].getSampleAnnotation().setAnnotation(key, val);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tSampleAnnotation sampAnn=new SampleAnnotation();\r\n\t\t\t\t\t\t\tsampAnn.setAnnotation(key, ss.nextToken());\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotation(sampAnn);\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \t}\r\n \t\r\n this.setFileProgress(counter);\r\n \tcounter++;\r\n \t//System.out.print(counter);\r\n \t}\r\n reader.close();\r\n \r\n \r\n Vector data = new Vector(slideDataArray.length);\r\n \r\n for(int j = 0; j < slideDataArray.length; j++)\r\n \tdata.add(slideDataArray[j]);\r\n \r\n this.setFilesProgress(1);\r\n return data;\r\n }", "@Test\n public void loadFromFileWithWrongGizmoCoordinates() throws Exception {\n fileInOut.setFilePath(\"src/wrongCoordinates\");\n fileInOut.loadFromFile();\n }", "public void readFromFile() {\n\n\t}", "public void readObjectDescription(String fileName) {\n Scanner in;\n try {\n in = new Scanner(new File(fileName));\n // Read the number of vertices\n numCtrlPoints = in.nextInt();\n controlPoints = new Point[numCtrlPoints];\n \n // Read the vertices\n for (int i = 0; i < numCtrlPoints; i++) {\n // Read a vertex\n int x = in.nextInt();\n int y = in.nextInt();\n //vertexArray[i] = new Point(x, y);\n controlPoints[i] = new Point(x, y);\n }\n } catch (FileNotFoundException e) {\n System.out.println(e);\n }\n\n }", "Points(String filepath){\n readPointsFile(filepath); //dengan file points.txt\n }", "public void my_readFromParcel(Parcel in) {\n x = in.readFloat();\n y = in.readFloat();\n }", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "public void readIn(String fileName) throws FileNotFoundException {\n\t\tScanner scanner = new Scanner(new FileInputStream(fileName));\n\t\ttry {\n\t\t\tscanner.nextLine(); // Skip line 1 (header)\n\t\t\tscanner.nextLine(); // Skip line 2 (header)\n\t\t\twhile (scanner.hasNextLine()){\n\t\t\t\tprocess(scanner.nextLine());\n\t\t\t}\n\t\t\tCollections.sort(allCoords); //Sort allCoords by z-value\n\t\t}\n\t\tfinally{\n\t\t\tscanner.close();\n\t\t}\n\t}", "public static List<Coordinate> readCoordinates (File file) throws IOException {\n\t\tString str = \"\";\n\t\tStringBuilder fileContents = new StringBuilder((int)file.length());\n\t\tScanner scanner = null;\n\n\t\tList<Double> lonTab = new ArrayList<Double>();\n\t\tList<Double> latTab = new ArrayList<Double>();\n\t\tList<Coordinate> listFinal = new ArrayList<Coordinate>();\n\n\n\t\tint compt = 0;\n\n\t\ttry {\n\t\t\tscanner = new Scanner((Readable) new BufferedReader(new FileReader(file)));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString lineSeparator = System.getProperty(\"line.separator\");\n\n\t\ttry {\n\t\t\twhile(scanner.hasNextLine()) { \n\t\t\t\tfileContents.append(scanner.nextLine() + lineSeparator);\n\t\t\t}\n\t\t\tstr = fileContents.toString();\n\t\t} finally {\n\t\t\tscanner.close();\n\t\t}\n\n\t\tstr = str.replaceAll(\"\\\\s\\\\[\\\\s\", \"\");\n\t\tstr = str.replaceAll(\"\\\\s\\\\]\\\\,\",\"\\r\");\n\t\tstr = str.replaceAll(\"\\\\s\\\\]\",\"\");\n\t\tstr = str.replaceAll(\"\\\\,\\\\s\",\"\\r\");\n\n\t\tString[] fullTab = str.split(\"\\r\");\n\n\n\t\tfor (int i = 0; i<fullTab.length; ++i) {\n\t\t\tif (compt%2 == 0)\n\t\t\t\tlonTab.add(new Double(fullTab[compt]));\n\t\t\telse\n\t\t\t\tlatTab.add(new Double(fullTab[compt]));\n\t\t\t++compt;\n\t\t}\n\n\n\t\tfor(int i = 0; i < lonTab.size(); i++)\n\t\t\tlistFinal.add(new Coordinate(latTab.get(i),lonTab.get(i)));\n\n\t\treturn listFinal;\n\t}", "public void loadEPILine(File file)\r\n\t{\r\n\t\tString name=file.getName();\r\n\t\tint [][] result=null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tScanner scanner=new Scanner(file);\r\n\t\t\tint size=scanner.nextInt();\r\n\t\t\tint width=scanner.nextInt();\t\t\t\r\n\t\t\tresult=new int[size][width];\r\n\t\t\tscanner.useDelimiter(\",\");\r\n\t\t\tString temp;\r\n\t\t\tfor(int i=0;i<size;i++)\r\n\t\t\t\tfor(int j=0;j<width;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=scanner.next();\r\n\t\t\t\t\tresult[i][j]=Integer.parseInt(temp.trim());\r\n\t\t\t\t}\r\n\t\t\tscanner.close();\t\r\n\t\t} catch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t_pixels=result;\r\n\t\t\r\n\t\t//That's why I needed to get rid of \"_\" in directory name\r\n\t\tname=name.substring(0,name.lastIndexOf(\".\"));\r\n\t\tString[] split=name.split(\"_\");\r\n\t\t_line=Integer.parseInt(split[1])+1;\r\n\t\t_position=Position.valueOf(split[2]);\r\n\t\t\r\n\t}", "private void ReadFile (String filename)\n\t{\n\t\ttry\n\t\t{\n\t\t\tScanner input = new Scanner(new FileReader(filename));\n\t\t\tScanner line = new Scanner(input.nextLine());\n\t\t\twhile (input.hasNextLine() || line.hasNext())\n\t\t\t{\n\t\t\t\tPolygon polygon = new Polygon ();\n\t\t\t\twhile (line.hasNextDouble())\n\t\t\t\t{\n\t\t\t\t\tdouble tmpX = line.nextDouble(),\n\t\t\t\t\t\t\ttmpY = line.nextDouble(),\n\t\t\t\t\t\t\ttmpZ = line.nextDouble();\n\t\t\t\t\tpolygon.add(new Vec4(tmpX, tmpY, tmpZ));\n\t\t\t\t}\n\t\t\t\tif (input.hasNextLine())\n\t\t\t\t{\n\t\t\t\t\tline = new Scanner(input.nextLine());\n\t\t\t\t}\n\t\t\t\tobject.add(polygon);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\tline.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void load(final String filePath) {\n\t\tsuper.load(filePath);\n\t\ttry {\n\t\t\tfinal JCL_facade jcl = JCL_FacadeImpl.getInstance();\n\t\t\tfinal Object2DoubleMap<String> distances = new Object2DoubleOpenHashMap<>();\n\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filePath));\n\t\t\tString str = null;\n\n\t\t\tList<String> inputLimpos = new LinkedList<>();\n\n\t\t\tdouble lower = 0;\n\n\t\t\t// ler o arquivo\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tif (!str.trim().equals(\"EOF\")) {\n\t\t\t\t\tString[] inputDetalhes = str.split(\" \");\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tfor (final String frag : inputDetalhes) {\n\t\t\t\t\t\tif (!frag.equals(\"\")) {\n\t\t\t\t\t\t\tsb.append(frag + \":\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tinputLimpos.add(sb.toString());\n\t\t\t\t\tsb = null;\n\t\t\t\t\tinputDetalhes = null;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tin.close();\n\t\t\tin = null;\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tfinal ObjectSet<String> vertices = (ObjectSet<String>) jcl.getValue(\"vertices\").getCorrectResult();\n\n\t\t\tdouble lowest = Double.MAX_VALUE;\n\t\t\t/*\n\t\t\t * transitar todo projeto para DOUBLE tirar todos floats para que aceite o\n\t\t\t * permutation\n\t\t\t */\n\t\t\t// montando distancias\n\t\t\tfor (final String umaEntrada : inputLimpos) {\n\t\t\t\tString[] umaEntradaDetalhe = umaEntrada.split(\":\");\n\t\t\t\tdouble menorD = Double.MAX_VALUE;\n\t\t\t\tdouble maiorD = Double.MIN_VALUE;\n\t\t\t\tvertices.add(\"$\" + umaEntradaDetalhe[0] + \"$\");\n\t\t\t\tfor (final String outraEntrada : inputLimpos) {\n\t\t\t\t\tString[] outraEntradaDetalhe = outraEntrada.split(\":\");\n\t\t\t\t\tif (!umaEntradaDetalhe[0].equals(outraEntradaDetalhe[0])) {\n\t\t\t\t\t\tfinal double dx = (Double.parseDouble(outraEntradaDetalhe[1])\n\t\t\t\t\t\t\t\t- Double.parseDouble(umaEntradaDetalhe[1]));\n\t\t\t\t\t\tfinal double dy = (Double.parseDouble(outraEntradaDetalhe[2])\n\t\t\t\t\t\t\t\t- Double.parseDouble(umaEntradaDetalhe[2]));\n\n\t\t\t\t\t\tfinal double d = Math.hypot(dx, dy);\n\n\t\t\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$\" + outraEntradaDetalhe[0] + \"$\", d);\n\n\t\t\t\t\t\tif (d < menorD) {\n\t\t\t\t\t\t\tmenorD = d;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (d > maiorD) {\n\t\t\t\t\t\t\tmaiorD = d;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\toutraEntradaDetalhe = null;\n\t\t\t\t}\n\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$shorterD$\", menorD);\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$longerD$\", maiorD);\n\n\t\t\t\tlower += menorD;\n\t\t\t\tif (lowest > menorD) {\n\t\t\t\t\tlowest = menorD;\n\t\t\t\t}\n\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$X$\", Float.parseFloat(umaEntradaDetalhe[1]));\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$Y$\", Float.parseFloat(umaEntradaDetalhe[2]));\n\t\t\t\tumaEntradaDetalhe = null;\n\t\t\t}\n\n\t\t\tlower += lowest;\n\n\t\t\tinputLimpos.clear();\n\t\t\tinputLimpos = null;\n\n\t\t\tjcl.instantiateGlobalVar(\"numOfVertices\", vertices.size());\n\n\t\t\tjcl.setValueUnlocking(\"vertices\", vertices);\n\n\t\t\tjcl.setValueUnlocking(\"lower\", lower);\n\n\t\t\tJcldataAccess.instantiateVarInJCL(\"distances\", distances);\n\n\t\t\tSystem.out.println(vertices.toString());\n\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public XYMatrix(File file) throws IOException {\n MatrixFile = file;\n read(file);\n //System.out.println(outputString);\n lines = new StringTokenizer(outputString,\"\\n\");\n if(lines.countTokens() > 0) {\n readTitles();\n readMatrix();\n } else {\n throw new IOException(\"Error in reading Matrix\\n\");\n }\n }", "public void loadGzipedSchematic(File f) throws IOException {\nDataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(f)));\nloadUncompressedSchematic(in);\nin.close();\n}", "private void readObject(ObjectInputStream _stream)\n/* 435: */ throws IOException, ClassNotFoundException\n/* 436: */ {\n/* 437:508 */ _stream.defaultReadObject();\n/* 438:509 */ this._origin_VA.restoreOwner(this);\n/* 439:510 */ //finishReadObject_xjal(_stream, TileGIS.class);\n/* 440: */ }", "public static void readFile( String file ) throws Exception\r\n\t{\r\n\t\tString format;\r\n\t\tint width, height, maxPixel;\r\n\t\t\r\n\t\tScanner get = new Scanner( new FileReader( file ) );\r\n\t\t\r\n\t\tformat = get.next();\r\n\t\twidth = get.nextInt();\r\n\t\theight = get.nextInt();\r\n\t\tmaxPixel = get.nextInt();\r\n\t\t\r\n\t\tif ( ( width != WIDTH ) || ( height != HEIGHT ) || ( maxPixel != MAX_PIXEL ) )\r\n\t\t{\r\n\t\t\tSystem.out.println( \"Error in file format. Exiting...\" );\r\n\t\t\tSystem.exit( 1 );\r\n\t\t}\r\n\t\t\t\r\n\t\tif ( format.equals(\"P2\") )\r\n\t\t{\r\n\t\t\tfor ( int i = 0; i < WIDTH; i++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int j = 0; j < HEIGHT; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\torig_pixels[i][j] = get.nextByte( );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ( format.equals( \"P5\" ) )\r\n\t\t{\r\n\t\t\tget.close();\r\n\t\t\t\r\n\t\t\tDataInputStream input = new DataInputStream( new FileInputStream( file ) );\r\n\r\n\t\t\tfor ( int i = 0; i < 15; i++ )\r\n\t\t\t\tinput.readUnsignedByte();\r\n\t\t\t\r\n\t\t\tfor ( int i = 0; i < WIDTH; i++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int j = 0; j < HEIGHT; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\torig_pixels[i][j] = input.readUnsignedByte();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tinput.close();\r\n\t\t}\r\n\t\t\r\n\t}", "public static Model loadModel(File f)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\n\t\t\tModel m = new Model(f.getPath());\n\t\t\tMaterial cur = null;\n\t\t\tList<Material> mats = new ArrayList<Material>();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Indicates a vertex\n\t\t\t\tif (line.startsWith(\"v \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.verts.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a vertex normal\n\t\t\t\telse if (line.startsWith(\"vn \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.norms.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a texture coordinate\n\t\t\t\telse if (line.startsWith(\"vt \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tm.textureCoords.add(new Vector2f(x, y));\n\t\t\t\t} \n\t\t\t\t//Indicates a face\n\t\t\t\telse if (line.startsWith(\"f \")) \n\t\t\t\t{\n\t\t\t\t\t//If face is triangulated\n\t\t\t\t\tif(line.split(\" \").length == 4)\n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tVector3f vertexIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[0]));\n\n\n\t\t\t\t\t\t//Instantiate as null for scope reasons\n\t\t\t\t\t\tVector3f textureIndices = null;\n\n\t\t\t\t\t\tif(!line.split(\" \")[1].split(\"/\")[1].equals(\"\")&&!(line.split(\" \")[1].split(\"/\")[1].equals(null)))\n\t\t\t\t\t\t\ttextureIndices = new Vector3f(\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[1]));\n\n\t\t\t\t\t\tVector3f normalIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[2]));\n\n\t\t\t\t\t\tFace mf = new Face();\n\n\t\t\t\t\t\t//Instantiate all the arrays\n\t\t\t\t\t\tmf.normals = new Vector3f[3];\n\t\t\t\t\t\tmf.points = new Vector3f[3];\n\n\t\t\t\t\t\t//// SETUP NORMALS ////\n\t\t\t\t\t\tVector3f n1 = m.norms.get((int)normalIndices.x - 1);\n\t\t\t\t\t\tmf.normals[0] = n1;\n\t\t\t\t\t\tVector3f n2 = m.norms.get((int)normalIndices.y - 1);\n\t\t\t\t\t\tmf.normals[1] = n2;\n\t\t\t\t\t\tVector3f n3 = m.norms.get((int)normalIndices.z - 1);\n\t\t\t\t\t\tmf.normals[2] = n3;\n\n\t\t\t\t\t\t//// SETUP VERTICIES ////\n\t\t\t\t\t\tVector3f v1 = m.verts.get((int)vertexIndices.x - 1);\n\t\t\t\t\t\tmf.points[0] = v1;\n\t\t\t\t\t\tVector3f v2 = m.verts.get((int)vertexIndices.y - 1);\n\t\t\t\t\t\tmf.points[1] = v2;\n\t\t\t\t\t\tVector3f v3 = m.verts.get((int)vertexIndices.z - 1);\n\t\t\t\t\t\tmf.points[2] = v3;\n\n\t\t\t\t\t\t//// SETUP TEXTURE COORDS ////\n\t\t\t\t\t\tif(textureIndices!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.textureCoords = new Vector2f[3];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat x1 = m.textureCoords.get((int)textureIndices.x - 1).x;\n\t\t\t\t\t\t\tfloat y1 = 1 - m.textureCoords.get((int)textureIndices.x - 1).y;\n\t\t\t\t\t\t\tVector2f t1 = new Vector2f(x1, y1);\n\t\t\t\t\t\t\tmf.textureCoords[0] = t1;\n\t\t\t\t\t\t\tfloat x2 = m.textureCoords.get((int)textureIndices.y - 1).x;\n\t\t\t\t\t\t\tfloat y2 = 1 - m.textureCoords.get((int)textureIndices.y - 1).y;\n\t\t\t\t\t\t\tVector2f t2 = new Vector2f(x2, y2);\n\t\t\t\t\t\t\tmf.textureCoords[1] = t2;\n\t\t\t\t\t\t\tfloat x3 = m.textureCoords.get((int)textureIndices.z - 1).x;\n\t\t\t\t\t\t\tfloat y3 = 1 - m.textureCoords.get((int)textureIndices.z - 1).y;\n\t\t\t\t\t\t\tVector2f t3 = new Vector2f(x3, y3);\n\t\t\t\t\t\t\tmf.textureCoords[2] = t3;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Set the face's material to the current material\n\t\t\t\t\t\tif(cur != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.material = cur;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Tell face to set up AABB\n\t\t\t\t\t\tmf.setUpAABB();\n\n\t\t\t\t\t\tm.faces.add(mf);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Indicates a reference to an exterior .mtl file\n\t\t\t\telse if(line.startsWith(\"mtllib \"))\n\t\t\t\t{\n\t\t\t\t\t//The file being referenced by mtllib call\n\t\t\t\t\tFile lib = new File(f.getParentFile()+File.separator+line.split(\" \")[1]);\n\n\t\t\t\t\t//Parse it and add all generated Materials to the mats list\n\t\t\t\t\tmats.addAll(parseMTL(lib, m));\n\t\t\t\t}\n\t\t\t\t//Telling us to use a material\n\t\t\t\telse if(line.startsWith(\"usemtl \"))\n\t\t\t\t{\n\t\t\t\t\tString name = line.split(\" \")[1];\n\n\t\t\t\t\tif(mats!=null)\n\t\t\t\t\t\t//Find material with correct name and use it\n\t\t\t\t\t\tfor(Material material : mats)\n\t\t\t\t\t\t\tif(material.name.equals(name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcur = material;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\t//Tell model to set up AABB\n\t\t\tm.setUpAABB();\n\t\t\t\n\t\t\t//Remove the first element, because...\n\t\t\tm.faces.remove(0);\n\n\t\t\treturn m;\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\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\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\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\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}", "void readGraphFromFile();", "public Grid decode (File file) throws IOException\n {\n String currentLine;\n int width = 0, height = 0;\n Grid _grid = null;\n\n try (BufferedReader br = new BufferedReader(new FileReader(file)))\n {\n // skip all the lines that we are not using\n while ((currentLine = br.readLine()) != null) {\n if (currentLine.startsWith(\"#\")) { continue; }\n if (currentLine.startsWith(\"x = \"))\n {\n for (String s : currentLine.split(\",\"))\n {\n if (s.contains(\"x = \"))\n {\n width = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else if (s.contains(\"y = \"))\n {\n height = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else\n {\n break;\n }\n }\n break;\n }\n }\n _grid = new Grid(height, width, false);\n\n int currentY = 0;\n int currentX = 0;\n int startX = 0;\n int i = 0;\n\n String kNumber = \"\"; // The number of times block should be repeated.\n String board = \"\";\n\n // convert the board to a long string\n while ((currentLine = br.readLine()) != null)\n {\n board += currentLine;\n }\n\n for (char c : board.toCharArray())\n {\n if (c == DEAD)\n {\n currentX += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == LIVE)\n {\n int count = (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n for (int j = 0; j < count; j++)\n {\n if (currentY < height && currentX < width)\n {\n _grid.setCell(true, currentX, currentY);\n }\n currentX++;\n }\n kNumber = \"\";\n }\n else if (c == EOL)\n {\n currentX = startX;\n currentY += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == EOF)\n {\n break;\n }\n else\n {\n kNumber += Integer.parseInt(board.substring(i, i + 1));\n }\n i++;\n }\n\n }\n return _grid;\n }", "public void read(JMEImporter e) throws IOException {\n super.read(e);\n InputCapsule capsule = e.getCapsule(this);\n symCount = capsule.readInt(\"symCount\", 1);\n symAxis = (Vector3f)capsule.readSavable(\"symAxis\", new Vector3f(0,1,0));\n coloredVertices = capsule.readBoolean(\"coloredVertices\", false);\n\n //TODO: check whether this is needed, MIGHT cause endless recursion\n lineGeo1 = (Line) capsule.readSavable(\"lineGeo1\", null);\n lineGeo2 = (Line) capsule.readSavable(\"lineGeo2\", null);\n\n \n// line1Data = capsule.readFloatBuffer(\"line1Data\", null);\n// line2Data = capsule.readFloatBuffer(\"line2Data\", null);\n// color1Data = capsule.readFloatBuffer(\"color1Data\", null);\n// color2Data = capsule.readFloatBuffer(\"color2Data\", null);\n }", "private void posRead() throws IOException {\n\t\tFile file = new File(fullFileName());\n\t\tString line;\n\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\tStringBuffer fileText = new StringBuffer();\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\twhile (st.hasMoreTokens()) {\n \t\tString tokenAndPos = st.nextToken();\n \t\tint slashIndex = tokenAndPos.lastIndexOf('/');\n \t\tif (slashIndex <= 0) throw new IOException(\"invalid data\");\n \t\tString token = tokenAndPos.substring(0,slashIndex);\n \t\tString pos = tokenAndPos.substring(1+slashIndex).intern();\n \t\tint start = this.length();\n \t\tthis.append(token);\n \t\tif (st.hasMoreTokens())\n \t\t\tthis.append(\" \");\n \t\telse\n \t\t\tthis.append(\" \\n\");\n \t\tint end = this.length();\n \t\tSpan span = new Span(start,end);\n \t\tthis.annotate(\"token\", span, new FeatureSet());\n \t\tthis.annotate(\"constit\", span, new FeatureSet(\"cat\", pos));\n \t}\n\t\t}\n\t}", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "@Override\n public int read(int[] coordinates) {\n\n coordinates[0] = (int) x.get();\n coordinates[1] = (int) y.get();\n\n return 1;\n }", "public static PVector[] readFromFile(String filename) {\n ArrayList<PVector> ledPositionsList= new ArrayList<PVector> ();\n //try to read data from file\n try {\n File file = new File(filename);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] pieces = line.split(\"\\t\");\n if (pieces.length>3) {\n ledPositionsList.add(new PVector( (Float.parseFloat(pieces[1])/4.0f), Float.parseFloat(pieces[2])/4.0f, Float.parseFloat(pieces[3])/4.0f)); //initialize Leds x,y,z,r,g,b\n }\n }\n scanner.close();\n } \n catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n //convert to vanilla Java Array\n PVector[] ledPositions= new PVector[ledPositionsList.size()];\n for (int i=0; i<ledPositionsList.size(); i++) {\n ledPositions[i]=ledPositionsList.get(i);\n }\n return ledPositions;\n }", "public Mesh load(String filename)\r\n\t{\r\n\t\tMesh mesh = new Mesh(); mesh.addFileMetaData(filename);\r\n \r\n\t\t//Open file and read in vertices/faces\r\n\t\tScanner sc;\r\n\t\tString line;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tBufferedReader ins = new BufferedReader(new FileReader(filename));\r\n\t\t\tins.readLine(); //ID; always \"nff\"\r\n\t\t\tins.readLine(); //Version\r\n\t\t\t\r\n\t\t\t//We need to move through the header to find the start of the first object\r\n\t\t\t//This will be the first line that contains text that does not start with\r\n\t\t\t//\"viewpos\" or \"viewdir\" (optional features) or \"//\" (comment)\r\n\t\t\twhile(true){\r\n\t\t\t\tline = ins.readLine();\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\r\n\t\t\t\tif(sc.hasNext() == true){\r\n\t\t\t\t\tString token = sc.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif((\"viewpos\".equalsIgnoreCase(token) == false) && \r\n\t\t\t\t\t\t\t(\"viewdir\".equalsIgnoreCase(token) == false) &&\r\n\t\t\t\t\t\t\t(\"//\".equals(token.substring(0, 2)) == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsc.close();\r\n\t\t\t\r\n\t\t\t//The rest of the file is filled up with objects\r\n\t\t\twhile(true){\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\tString name = sc.next();\r\n\t\t\t\tsc.close();\r\n\t\t\t\t\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\r\n\t\t\t\tVector<Point> vertices = new Vector<Point>();\r\n\t\t\t\tVector<Face> faces = new Vector<Face>();\r\n\t\t\t\t\r\n\t\t\t\tint vertexCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have vertexCount lines next with 3 floats per line\r\n\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextFloat() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfloat x = sc.nextFloat();\r\n\t\t\t\t\t\tfloat y = sc.nextFloat();\r\n\t\t\t\t\t\tfloat z = sc.nextFloat();\r\n\t\t\t\t\t\tvertices.add(new Point(x, y, z));\r\n\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsc.close();\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\tint polygonCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have polygonCount lines defining the faces\r\n\t\t\t\t//The first int on each line gives the number of\r\n\t\t\t\t//vertices making up that particular face\r\n\t\t\t\t//Then the indexes of those vertices are listed\r\n\t\t\t\twhile(polygonCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextInt() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tvertexCount = sc.nextInt();\r\n\t\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\t\t\tal.add(sc.nextInt());\r\n\t\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfaces.add(new Face(al));\r\n\t\t\t\t\t\tpolygonCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmesh.addData(vertices, faces, -1, name);\r\n\t\t\t\t\r\n\t\t\t\t//The last thing we need to do is read up to and including\r\n\t\t\t\t//the next object's name or until we reach the end of the file\r\n\t\t\t\t\r\n\t\t\t\twhile((line = ins.readLine()) != null){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//The next non-blank line that doesn't start with \"//\" is the start of the next object\r\n\t\t\t\t\tif((sc.hasNext() == true) && (sc.next().substring(0, 2).equals(\"//\") == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t\tif(line == null){ //EOF\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null; \r\n\t\t}\r\n\t\t\r\n\t\tmesh.initialize();\r\n \r\n\t\treturn mesh;\r\n\t}", "@Override\n\tpublic void readImpl()\n\t{\n\t\t_degree = readD();\n\t\t_side = readD();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void read_from_buffer(DataInputStream in) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = in.readFloat();\r\n }\r\n this.distanz = in.readFloat();\r\n// byte[] b = new byte[27];\r\n// in.read(b, 0, 27);\r\n// this.setPlaceId(new String(b));\r\n this.setPlaceId(in.readInt());\r\n this.location[0] = in.readDouble();\r\n this.location[1] = in.readDouble();\r\n }", "private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public static void readFileBronze(String filename) throws FileNotFoundException{\n try {\n //Scanners and readers and everything??\n File text = new File(filename);\n Scanner inf = new Scanner(text);\n BufferedReader brTest = new BufferedReader(new FileReader(filename));\n String firstLine = brTest.readLine();\n String[] firstLineArray = new String[4];\n firstLineArray = firstLine.split(\" \");\n\n //Determines rows, cols, elevation, number of instructions.\n r = Integer.parseInt(firstLineArray[0]);\n c = Integer.parseInt(firstLineArray[1]);\n e = Integer.parseInt(firstLineArray[2]);\n n = Integer.parseInt(firstLineArray[3]);\n\n //Initializes map.\n map = new int[r][c];\n inf.nextLine();\n for (int i = 0; i < r; i++){\n for (int j = 0; j < c; j++) {\n map[i][j] = inf.nextInt();\n }\n }\n //System.out.println(inf.nextLine());\n //System.out.println(inf.nextLine());\n\n //Instructions.\n\n instructions = new int[n][3];\n for (int i = 0; i < n; i++){\n inf.nextLine();\n for (int j = 0; j < 3; j++){\n instructions[i][j] = inf.nextInt();\n }\n }\n //Exceptions.\n } catch (FileNotFoundException ex){\n System.out.println(\"Yikes\");\n } catch (IOException ex){\n System.out.println(\"Yikes\");\n }\n }", "abstract void readSMF(File file) throws InvalidMidiDataException, IOException;", "@Override\n protected void readConstructorParams( DataInput in ) throws\n\t\t\t\t\t\t\tIOException {\n vertexCount = in.readInt();\n vertexFormat = in.readInt();\n texCoordSetCount = in.readInt();\n texCoordSetMap = new int[in.readInt()];\n for(int i=0; i<texCoordSetMap.length; i++)\n texCoordSetMap[i] = in.readInt();\n\n super.readConstructorParams( in );\n }", "public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }", "public void readFileToTransitionMapSmooth(String fileName){\n\t\ttry {\n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(fileName),\"ISO-8859-1\"));\n\t\t\tString line=null;\n\t\t\t//each time we read a line, count its words\n\t\t\twhile((line=reader.readLine())!=null){\n\t\t\t\tparseLineAndCountTransitions(line);\n\t\t\t}\n\t\t\t//close the buffered reader\n\t\t\treader.close();\n\t\t\tupdateTransitionMapSmooth();\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public void loadElevationData(String filename) throws IOException {\n\tScanner scanner = new Scanner(new File(filename));\n\tnRows = scanner.nextInt();\n\tnColumns = scanner.nextInt();\n\televation = new double[nRows][nColumns];\n\tnormal = new double[nRows][nColumns][3];\n\tString line = scanner.nextLine();\n\tfor (int r = 0; r < nRows; r++)\n\t for (int c = 0; c < nColumns; c++)\n\t\televation[r][c] = scanner.nextDouble();\n\t// Calculate normal vectors\n\tfor (int row = 0; row < nRows-1; row++)\n\t for (int col = 0; col < nColumns-1; col++) {\n\t\tdouble v1x = 1;\n\t\tdouble v1y = elevation[row+1][col+1] - elevation[row][col];\n\t\tdouble v1z = 1;\n\t\tdouble v2x = 1;\n\t\tdouble v2y = elevation[row][col+1] - elevation[row+1][col];\n\t\tdouble v2z = -1;\n\t\tnormal[row][col][0] = -(v1z * v2y - v1y * v2z);\n\t\tnormal[row][col][1] = -(v1x * v2z - v1z * v2x);\n\t\tnormal[row][col][2] = -(v1y * v2x - v1x * v2y);\n\t }\n }", "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}", "public void readFileToTransitionMap(String fileName){\n\t\ttry {\n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(fileName),\"ISO-8859-1\"));\n\t\t\tString line=null;\n\t\t\t//each time we read a line, count its words\n\t\t\twhile((line=reader.readLine())!=null){\n\t\t\t\tparseLineAndCountTransitions(line);\n\t\t\t}\n\t\t\t//close the buffered reader\n\t\t\treader.close();\n\t\t\tupdateTransitionMap();\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static Object readObjectFromFile(File file)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 109 */ ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new GZIPInputStream(new FileInputStream(file))));\n/* 110 */ Object o = ois.readObject();\n/* 111 */ ois.close();\n/* 112 */ return o;\n/* */ }", "private Point[] readTestFile(String filename) {\n In in = new In(filename);\n int N = in.readInt();\n Point[] points = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n return points;\n }", "void nikon_e900_load_raw()\n{\n int offset=0, irow, row, col;\n\n for (irow=0; irow < height; irow++) {\n row = irow * 2 % height;\n if (row == 1)\n offset = - (-offset & -4096);\n CTOJ.fseek (ifp, offset, CTOJ.SEEK_SET);\n offset += raw_width;\n getbits(-1);\n for (col=0; col < width; col++)\n BAYER(row,col, (short)getbits(10));\n }\n}", "public int read(String filename) {\n System.out.println(\"==== Processing data ====\");\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Read and interpret all the lines.\n int count = 0;\n String line = null;\n while (true) {\n try {\n line = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n line = line.trim();\n String[] splitedLine = line.split(\"[,\\\\s]+\");\n if (splitedLine.length != 3) {\n continue;\n }\n String instructionType = splitedLine[0];\n MemRef.MemRefType refType =null;\n if (instructionType.equals(\"I\")) {\n refType = MemRef.MemRefType.INSTR_FETCH;\n } else if (instructionType.equals(\"S\")) {\n refType = MemRef.MemRefType.STORE;\n } else if (instructionType.equals(\"L\")) {\n refType = MemRef.MemRefType.FETCH;\n } else if (instructionType.equals(\"M\")) {\n refType = MemRef.MemRefType.UPDATE;\n } else {\n continue;\n }\n if (refType == null) {\n continue;\n }\n\n Long address = Long.parseLong(splitedLine[1], 16);\n int size = Integer.parseInt(splitedLine[2]);\n MemRef r = new MemRef(refType, address, size);\n count ++;\n runMemoryReference(r);\n }\n return count;\n }", "public static void main(String[] args) {\n In in = new In(\"input48.txt\");\r\n int n = in.readInt();\r\n Point[] points = new Point[n];\r\n for (int i = 0; i < n; i++) {\r\n int x = in.readInt();\r\n int y = in.readInt();\r\n points[i] = new Point(x, y);\r\n }\r\n\r\n FastCollinearPoints collinear = new FastCollinearPoints(points);\r\n for (int i = 0; i < collinear.numberOfSegments(); i++) {\r\n System.out.println(collinear.segments()[i].toString());\r\n }\r\n }", "void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }", "private static void loadGridPoints() throws IOException {\n\n\t\tString filename = \"Grid Point file Path\";\n\t\tCSVReader reader = new CSVReader(new FileReader(filename));\n\t\treader.readNext();\n\t\tString[] nextLine;\n\n\t\tint id;\n\t\tdouble x, y;\n\t\ttree = new STRtree();\n\t\tpoints = new HashMap<Integer, double[]>();\n\t\tEnvelope itemEnv;\n\t\twhile ((nextLine = reader.readNext()) != null) {\n\n\t\t\tid = Integer.valueOf(nextLine[0]);\n\t\t\tx = Double.valueOf(nextLine[1]);\n\t\t\ty = Double.valueOf(nextLine[2]);\n\t\t\tdouble[] point = { x, y };\n\t\t\tpoints.put(id, point);\n\t\t\titemEnv = new Envelope(x, x, y, y);\n\t\t\ttree.insert(itemEnv, id);\n\t\t}\n\t\treader.close();\n\t}", "private CoordinateImpl(int rank, int file) {\n this.rank = rank;\n this.file = file;\n }", "public void readFile(String filename) throws IOException {\n BufferedReader buffer = new BufferedReader(new FileReader(filename));\n\n String line;\n int row = 0;\n isFirstLine = true;\n\n while ((line = buffer.readLine()) != null) {\n String[] vals = line.trim().split(\"\\\\s+\");\n int length = vals.length;\n \n if(isFirstLine) {\n \tfor(int col = 0; col < 2; col++) {\n \t\tif(col == 0)\n \t\t\trowSize = Integer.parseInt(vals[col]);\n \t\telse\n \t\t\tcolSize = Integer.parseInt(vals[col]);\n \t}\n \tskiMap = new int[rowSize][colSize];\n \tisFirstLine = false;\n }\n else {\n \tfor (int col = 0; col < length; col++) {\n \tskiMap[row][col] = Integer.parseInt(vals[col]);\n }\n \t row++;\n }\n }\n \n if(buffer != null)\n \tbuffer.close();\n }", "godot.wire.Wire.Transform getTransformValue();", "public void readCurve(File file)\n throws IOException\n {\n InputStream ifile = new FileInputStream(file);\n //read first bytes to detect format\n byte[] buffer = new byte[256];\n int zBytes = ifile.read(buffer);\n ifile.close();\n String firstLine = new String(buffer,0, zBytes);\n readCurveCsvHeadline(file);\n //timeLastSave = System.currentTimeMillis();\n \n }", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readFromFile() {\n FileInputStream fis = null;\n try {\n //reaad object\n fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n TravelAgent travelAgent = (TravelAgent)ois.readObject();\n travelGUI.setTravelAgent(travelAgent);\n ois.close();\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }", "static int readPointF(LittleEndianInputStream leis, Point2D point) {\n double x = leis.readFloat();\n double y = leis.readFloat();\n point.setLocation(x,y);\n return 2*LittleEndianConsts.INT_SIZE;\n }", "@Override\n public void read(DataInput in) throws IOException {\n int cordinatesSize = in.readInt();\n\n ByteArrayInputStream bi = new ByteArrayInputStream(b.toByteArray());\n ObjectInputStream o = new ObjectInputStream(bi);\n\n for(Coordinate coordinate : cordinates){\n try {\n coordinate = (Coordinate)o.readObject();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public void readFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\t// read the headlines\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumVertices = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumPaths = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\ttmax = Double.parseDouble(lineElements[1]);\n\t\t\n//\t\tSystem.out.println(numVertices + \", \" + numPaths + \", \" + tmax);\n\n\t\t/* read benefits1 */\n\t\tint index = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tdouble x = Double.parseDouble(lineElements[0]);\n\t\t\tdouble y = Double.parseDouble(lineElements[1]);\n\t\t\tList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 2; i < lineElements.length; i++) {\n\t\t\t\tdouble score = Double.parseDouble(lineElements[i]);\n\t\t\t\tscores.add(new Double(score));\n\t\t\t}\n\t\t\tPOI POI = new POI(index, x, y, scores);\n\t\t\t//POI.printMe();\n\t\t\t\n\t\t\tvertices.add(POI);\n\t\t\tindex ++;\n\t\t}\n\t\t\n\t\t// create the arcs and the graph\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\tfor (int j = 0; j < vertices.size(); j++) {\n\t\t\t\tArc arc = new Arc(vertices.get(i), vertices.get(j));\n\t\t\t\tarcs.add(arc);\n\t\t\t\tgraph.put(new Tuple2<POI, POI>(vertices.get(i), vertices.get(j)), arc);\n\t\t\t}\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "private void loadExpressionDataInBinaryFormat(String fileName, LoadLabels ll) throws IOException, ClassNotFoundException {\n this.fileName = fileName;\r\n File fileBinary = new File(fileName + \".dat\");\r\n BufferedInputStream in = null;\r\n int nrRowsThisBinaryFile = -1;\r\n int nrColsThisBinaryFile = -1;\r\n in = new BufferedInputStream(new FileInputStream(fileBinary));\r\n byte[] bytes = new byte[4];\r\n in.read(bytes, 0, 4);\r\n nrRowsThisBinaryFile = byteArrayToInt(bytes);\r\n in.read(bytes, 0, 4);\r\n nrColsThisBinaryFile = byteArrayToInt(bytes);\r\n \r\n if (rowsToInclude == null && colsToInclude == null) {\r\n //We want to load all the data:\r\n nrRows = nrRowsThisBinaryFile;\r\n nrCols = nrColsThisBinaryFile;\r\n rawData = new double[nrRows][nrCols];\r\n \r\n //Now load the row and column identifiers from files\r\n switch (ll) {\r\n case LOAD_BOTH:\r\n loadRowObjects(fileName);\r\n loadColumnObjects(fileName);\r\n break;\r\n case LOAD_ROWS:\r\n loadRowObjects(fileName);\r\n break;\r\n case LOAD_COLUMNS:\r\n loadColumnObjects(fileName);\r\n break;\r\n }\r\n \r\n byte[] buffer = new byte[nrCols * 8];\r\n long bits = 0;\r\n for (int row = 0; row < nrRows; row++) {\r\n in.read(buffer, 0, nrCols * 8);\r\n int bufferLoc = 0;\r\n for (int col = 0; col < nrCols; col++) {\r\n bits = (long) (0xff & buffer[bufferLoc + 7])\r\n | (long) (0xff & buffer[bufferLoc + 6]) << 8\r\n | (long) (0xff & buffer[bufferLoc + 5]) << 16\r\n | (long) (0xff & buffer[bufferLoc + 4]) << 24\r\n | (long) (0xff & buffer[bufferLoc + 3]) << 32\r\n | (long) (0xff & buffer[bufferLoc + 2]) << 40\r\n | (long) (0xff & buffer[bufferLoc + 1]) << 48\r\n | (long) (buffer[bufferLoc]) << 56;\r\n \r\n rawData[row][col] = Double.longBitsToDouble(bits);\r\n bufferLoc += 8;\r\n }\r\n }\r\n in.close();\r\n } else {\r\n \r\n //We want to confine the set of probes and samples to a subset. Deal with this in a different way.\r\n int[] rowSubsetIndex = loadRowObjects(fileName, nrRowsThisBinaryFile);\r\n int[] colSubsetIndex = loadColumnObjects(fileName, nrColsThisBinaryFile);\r\n \r\n //Now load the binary data:\r\n rawData = new double[nrRows][nrCols];\r\n byte[] buffer = new byte[nrColsThisBinaryFile * 8];\r\n long bits = 0;\r\n for (int row = 0; row < nrRowsThisBinaryFile; row++) {\r\n in.read(buffer, 0, nrColsThisBinaryFile * 8);\r\n int bufferLoc = 0;\r\n for (int col = 0; col < nrColsThisBinaryFile; col++) {\r\n bits = (long) (0xff & buffer[bufferLoc + 7])\r\n | (long) (0xff & buffer[bufferLoc + 6]) << 8\r\n | (long) (0xff & buffer[bufferLoc + 5]) << 16\r\n | (long) (0xff & buffer[bufferLoc + 4]) << 24\r\n | (long) (0xff & buffer[bufferLoc + 3]) << 32\r\n | (long) (0xff & buffer[bufferLoc + 2]) << 40\r\n | (long) (0xff & buffer[bufferLoc + 1]) << 48\r\n | (long) (buffer[bufferLoc]) << 56;\r\n \r\n int rowI = rowSubsetIndex[row];\r\n int colI = colSubsetIndex[col];\r\n if (rowI != -1 && colI != -1) {\r\n rawData[rowI][colI] = Double.longBitsToDouble(bits);\r\n }\r\n bufferLoc += 8;\r\n }\r\n }\r\n in.close();\r\n }\r\n recalculateHashMaps();\r\n LOGGER.log(Level.INFO, \"Binary file ''{0}'' has been loaded, nrRows: {1} nrCols: {2}\", new Object[]{fileName, nrRows, nrCols});\r\n }", "void readData(String fileName, boolean [] data, String wName){\n\t\tworld = new File(wName);\n\t\tDataProcessing dp = new DataProcessing(fileName, data);\n\t\tdp.findHotspots();\n\n\t\ttempVals = dp.hotspots;\n\t\t\t\n\t\t\t// create randomly permuted list of indices for traversal \n\t\t\tgenPermute(); \n\t\t\t\n\t\t\t// generate greyscale tempVals field image\n\t\t\tderiveImage();\n\n\t}", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "void readMap()\n {\n try {\n FileReader\t\tmapFile = new FileReader(file);\n StringBuffer\tbuf = new StringBuffer();\n int\t\t\t\tread;\n boolean\t\t\tdone = false;\n \n while (!done)\n {\n read = mapFile.read();\n if (read == -1)\n done = true;\n else\n buf.append((char) read);\n }\n \n mapFile.close();\n \n parseMap(buf.toString());\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not read the map file data.\", ErrorHandler.ERR_OPEN_FAIL);\n }\n }", "public void load() {\n structure = SpigotUtils.structBetweenTwoLocations(pos1, pos2, material);\n }", "public static ArrayList<Point> read_from_file(String file){\n Locale.setDefault(new Locale(\"en\", \"US\"));\n\n ArrayList<Point> points = new ArrayList<>();\n\n try {\n //java.io.File myObj = new java.io.File(\"test_points_2.txt\");\n //java.io.File myObj = new java.io.File(\"points.txt\");\n java.io.File myObj = new java.io.File(file);\n Scanner myReader = new Scanner(myObj);\n int N = myReader.nextInt();\n\n //System.out.println(N);\n for (int i = 0; i < N; i++) {\n double x = myReader.nextDouble();\n double y = myReader.nextDouble();\n points.add(new Point(x, y));\n //System.out.println(\"x: \" + x + \" y: \" + y);\n }\n\n myReader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n return null;\n }\n return points;\n }", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "public void loadMatrixIO() {\n qMatrixFile = new FileIO(\"qMatrix.txt\");\n sMatrixFile = new FileIO(\"sMatrix.txt\");\n\n }", "godot.wire.Wire.Transform2D getTransform2DValue();", "private ArrayList<Float> readFile(byte[] data) {\n int pStart = 0;\n ArrayList<Float> points = new ArrayList<Float>();\n\n for (int pEnd = 0; pEnd < data.length; pEnd++) {\n if (data[pEnd] == '\\n' || pEnd == (data.length - 1)) {\n String line = new String(data, pStart, pEnd - pStart);\n if (line.startsWith(\"ncols\")) {\n ncols = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"nrows\")) {\n nrows = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"xllcorner\")) {\n xll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"yllcorner\")) {\n yll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"cellsize\")) {\n cellsize = Float.parseFloat(line.substring(8).trim());\n } else if (line.startsWith(\"NODATA_value\")) {\n nodata = Float.parseFloat(line.substring(12).trim());\n } else {\n // Assume data\n line = line.trim();\n String[] parts = line.split(\"\\\\s+\");\n for (String part : parts) {\n points.add(Float.parseFloat(part.trim()));\n }\n }\n pStart = pEnd + 1;\n }\n }\n return points;\n }", "public static void load(Context context) throws IOException {\n // read the file\n String raw = File.readFile(\"vaccine.txt\", context);\n\n // clear the map and load contents of file into the map\n map.clear();\n for (String line : raw.split(\"\\n\")) {\n if (line.equals(\"\")) {\n continue;\n }\n String[] data = line.split(\",\");\n if (data[0].equals(\"\") || data.length != 3) {\n continue;\n }\n map.put(data[0], Boolean.getBoolean(data[1]));\n dateMap.put(data[0], data[2]);\n }\n }", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "TraceList read(File file) throws IOException;", "public ObjModel(File file) throws FileNotFoundException {\r\n\r\n\t\tvertices = new ArrayList<>();\r\n\t\ttextureCoordinates = new ArrayList<>();\r\n\t\tfaces = new ArrayList<>();\r\n\r\n\t\tScanner scanner = new Scanner(file);\r\n\r\n\t\twhile (scanner.hasNextLine()) {\r\n\t\t\tString[] line = scanner.nextLine().split(\" \");\r\n\t\t\tif (line[0].equals(\"v\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\tfloat z = Float.parseFloat(line[3]);\r\n\t\t\t\tvertices.add(new Vector3f(x, y, z));\r\n\t\t\t} else if (line[0].equals(\"vt\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\ttextureCoordinates.add(new Vector3f(x, y));\r\n\t\t\t} else if (line[0].equals(\"f\")) {\r\n\t\t\t\tFace face = new Face();\r\n\t\t\t\tfor (int i = 1; i < line.length; i++) {\r\n\t\t\t\t\tString[] sections = line[i].split(\"/\");\r\n\t\t\t\t\tif (sections.length >= 1) {\r\n\t\t\t\t\t\tint vertex = Integer.parseInt(sections[0]);\r\n\t\t\t\t\t\tface.addVertex(vertex);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (sections.length >= 2) {\r\n\t\t\t\t\t\tint textureCoordinate = Integer.parseInt(sections[1]);\r\n\t\t\t\t\t\tface.addTextureCoordinate(textureCoordinate);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfaces.add(face);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tscanner.close();\r\n\t}", "public void cargaDatasetEnMatrices() {\n int i, caux, row, column;\n String linea0 = null;\n String numero;\n char c;\n boolean notnumber; \n try {\n try (BufferedReader entrada = new BufferedReader(new FileReader(fich))) {\n //Recoge el numero de elementos del dataset\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n i = 0;\n while (linea0.charAt(i) != ':') {\n i++;\n }\n notnumber = false;\n numero = \"\";\n i++;\n while (!notnumber) {\n if (i == linea0.length()) {\n notnumber = true;\n } else {\n c = linea0.charAt(i);\n if ((c != ' ') && (c != '\\n') && (c != '\\t')) {\n numero += c;\n }\n i++;\n }\n }\n if (i == linea0.length()) {\n n = Integer.parseInt(numero);\n } else {\n n = 0;\n }\n vx = new double[n];\n vy = new double[n];\n //Relleno los vectores vx y vy\n linea0 = entrada.readLine();\n linea0 = entrada.readLine();\n for (row = 0; row < n; row++) {\n for (column = 0; column <= 2; column++) {\n notnumber = false;\n numero = \"\";\n while (!notnumber) {\n caux = entrada.read();\n c = (char) caux;\n if ((c == ' ') || (c == '\\n') || (c == '\\t')) {\n if (numero.length() != 0) {\n if (column == 1) {\n vx[row] = Double.parseDouble(numero);\n } else if (column == 2) {\n vy[row] = Double.parseDouble(numero);\n }\n notnumber = true;\n }\n } else {\n numero += c;\n }\n }\n }\n }\n }\n } catch (IOException ex) {\n }\n }", "TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);", "public Decoder(String filename) throws FileNotFoundException { \n this.i = 0;\n this.position = 0;\n this.px = 0;\n this.py = 0;\n this.alkuposition = 0;\n this.j = 0;\n this.filename = filename;\n }", "public void LoadMaze(File file) {\r\n try {\r\n ObjectInputStream in = new ObjectInputStream(new FileInputStream(file));\r\n Maze m = (Maze) in.readObject();\r\n PlayerPositionRow = (int) in.readObject();\r\n PlayerPositionCol = (int) in.readObject();\r\n maze = new Maze(m.Struct);\r\n maze.setStartPotision( new Position(PlayerPositionRow, PlayerPositionCol));\r\n maze.setGoalPosition(new Position(m.getGoalPosition().getRowIndex(), m.getGoalPosition().getColIndex()));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n setChanged();\r\n notifyObservers(\"load\");\r\n }", "@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "static int readPointR(LittleEndianInputStream leis, Point2D point) {\n int[] p = { 0 };\n int size = readEmfPlusInteger(leis, p);\n double x = p[0];\n size += readEmfPlusInteger(leis, p);\n double y = p[0];\n point.setLocation(x,y);\n return size;\n }", "private void readInter() throws FileNotFoundException {\n\t\t\r\n\t\tFile file = new File(\"input.txt\");\r\n\r\n\t\tScanner input = new Scanner(file);\r\n\r\n\t\twhile (input.hasNext()) {\r\n\r\n\t\t\tint x = input.nextInt();\r\n\t\t\tint y = input.nextInt();\r\n\t\t\t\r\n\t\t\tintervals.add(new Point(x, y));\r\n\t\t}\r\n\t\t\r\n\t\t//Close 'input.txt'\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "protected void evaluate(String filePath) throws FormatException {\n\n try {\n int latSlash = filePath.lastIndexOf(\"/\");\n if (latSlash > 1) {\n if (DEBUG) {\n Debug.output(\"Have lat index of \" + latSlash);\n }\n String lonSearch = filePath.substring(0, latSlash);\n\n if (DEBUG) {\n Debug.output(\"Searching for lon index in \" + lonSearch);\n }\n int lonSlash = lonSearch.lastIndexOf(\"/\");\n if (lonSlash > 1) {\n filename = filePath.substring(latSlash + 1);\n String latString = filename.toUpperCase();\n\n if (DEBUG) {\n Debug.output(\"have lat \" + latString);\n }\n\n int dotIndex = latString.indexOf(\".\");\n if (dotIndex > 0) {\n\n lat = Double.parseDouble(latString.substring(1,\n dotIndex));\n if (latString.charAt(0) == 'S') {\n lat *= -1;\n }\n\n subDirs = filePath.substring(lonSlash + 1, latSlash);\n String dd = filePath.substring(0, lonSlash + 1);\n if (dd.length() > 0) {\n dtedDir = dd;\n }\n\n String lonString = subDirs.toUpperCase();\n\n if (DEBUG) {\n Debug.output(\"have lon \" + lonString);\n }\n\n lon = Double.parseDouble(lonString.substring(1));\n if (lonString.charAt(0) == 'W') {\n lon *= -1;\n }\n\n level = (int) Integer.parseInt(filePath.substring(filePath.length() - 1));\n if (DEBUG) {\n Debug.output(\"have level \" + level);\n }\n return;\n }\n }\n }\n } catch (NumberFormatException nfe) {\n\n }\n\n throw new FormatException(\"StandardDTEDNameTranslator couldn't convert \"\n + filePath + \" to valid parameters\");\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void readFromFile() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(pathName);\n\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagToImg = (Map<String, HashSet<String>>) input.readObject();\n\n\t\t\tinput.close();\n\t\t\tfile.close();\n\t\t} catch (EOFException e) {\n\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t} catch (InvalidClassException e) {\n\t\t\tSystem.out.println(\"file doesnt match the type\");\n\t\t}\n\t}", "private static Trajectory readFile(String name) {\n\t\ttry {\n\t\t\tFile file = new File(cacheDirectory + name);\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tTrajectory t = (Trajectory) ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t\treturn t;\n\t\t}\n\t\tcatch (Exception e) { return null; }\n\t}", "@Test\n public void readFile() throws IOException {\n ModelInfo modelInfo = ModelReader.create().load();\n\n }", "private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }", "public void load(File tFile) throws FileNotFoundException, IOException {\n BufferedReader reader = new BufferedReader(new FileReader(tFile));\n String line;\n\n\n while ((line = reader.readLine()) != null) {\n line = line.replaceAll(\"\\\\s+\", \" \");\n String[] elements = line.split(\" \");\n\n CSID desc = new CSID();\n // normalised lines are easier to compare as it is well defined, which point will be the 1st\n desc.axis1 = (ExtLine2D) ExtLine2D.normaliseLine(new ExtLine2D(Double.parseDouble(elements[0]),\n Double.parseDouble(elements[1]),\n Double.parseDouble(elements[2]),\n Double.parseDouble(elements[3])));\n desc.axis2 = (ExtLine2D) ExtLine2D.normaliseLine(new ExtLine2D(Double.parseDouble(elements[4]),\n Double.parseDouble(elements[5]),\n Double.parseDouble(elements[6]),\n Double.parseDouble(elements[7])));\n desc.isCS = elements[8].equals(\"Y\");\n\n this.csDescriptors.add(desc);\n }\n }", "public void load(String inFN) throws FileNotFoundException\n {\n String check = \" \";\n \tfile = new Scanner(new FileReader(inFN));\n \n \t// Rip apart the string and find the number of cities\n \t// Save it to a misc string named fileInfo\n \twhile (!check.equals(\"NODE_COORD_SECTION\"))\n {\n \tcheck = file.next();\n \t// Get the number of cities from the file\n \tif (check.equals(\"DIMENSION\"))\n \t{\n \t\t// Removes the character ':'\n \t\tcheck = file.next();\n \t\tfileInfo = fileInfo + check + \" \";\n \t\t\n \t\t// Extracts the number of cities\n \t\tcityNumber = file.nextInt();\n \t\tfileInfo = fileInfo + cityNumber + \" \";\n \t}\n \t\n \t// Dumps the fileinfo into one string\n \tfileInfo = fileInfo + check + \" \";\n }\n\n \t// Now that we have the number of cities, use it to\n \t// initialize an array\n \tcity = new City[cityNumber];\n \t\n \t// Loads the city data from the file into the city array\n \tfor (int i = 0; i < cityNumber; i++)\n {\n \t\tfile.nextInt();\n \tcity[i] = new City(i, file.nextDouble(), file.nextDouble());\n \t}\n }", "public void readFile();", "public NexusReaderDistances(String filePath) throws IOException, NexusFormatException {\n\n BufferedReader bufferedReader = null;\n FileReader fileReader = null;\n try {\n fileReader = new FileReader(filePath);\n bufferedReader = new BufferedReader(fileReader);\n\n int state = 0; //0=start of file, 1=after #NEXUS. 2=inside block\n boolean commentMode = false;\n TreeMap<Integer, String> blockLines = null;\n String blockName = null;\n Matcher beginBlockMatcher = Pattern.compile(\"^(?i)BEGIN ([A-Z]+);\").matcher(\"\");\n String line = bufferedReader.readLine();\n int lineNumber = 0;\n while (line != null) {\n lineNumber++;\n line = line.trim();\n //end multiline comments\n if (commentMode) {\n int endIndex = line.indexOf(\"]\");\n if (endIndex == -1) {\n line = bufferedReader.readLine();\n continue;\n } else {\n line = line.substring(endIndex);\n commentMode = false;\n }\n }\n //remove one line comments\n line = line.replaceAll(\"\\\\[.*]\", \"\");\n //remove multi line comments\n int startIndex = line.indexOf(\"[\");\n if (startIndex != -1) {\n line = line.substring(0, startIndex);\n commentMode = true;\n }\n //skip emtpy lines\n if (line.isEmpty()) {\n line = bufferedReader.readLine();\n continue;\n }\n\n //===read lines===\n switch (state) { //0=start of file, 1=after #NEXUS. 2=inside block\n case 0:\n if (!line.equalsIgnoreCase(\"#NEXUS\")) {\n throw new NexusFormatException(\"File must start with #NEXUS. Line: \" + lineNumber);\n } else {\n state++;\n }\n break;\n case 1:\n beginBlockMatcher.reset(line);\n if (beginBlockMatcher.matches()) {\n blockLines = new TreeMap<Integer, String>();\n blockName = beginBlockMatcher.group(1);\n state++;\n } else {\n throw new NexusFormatException(\"Error parsing BEGIN statement. Line \" + lineNumber);\n }\n break;\n case 2:\n if (line.equalsIgnoreCase(\"END;\")) {\n makeBlock(blockName, blockLines);\n state--;\n } else {\n blockLines.put(lineNumber, line);\n }\n break;\n default:\n throw new RuntimeException(\"NexusReader reached illegal state: \" + state);\n }\n\n line = bufferedReader.readLine();\n }\n if (state == 2) {\n throw new NexusFormatException(\"Didn't close block at end of file.\");\n }\n if (state == 0) {\n throw new NexusFormatException(\"File seems empty.\");\n }\n\n bufferedReader.close();\n\n } catch (IOException e) {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n throw e;\n } catch (NexusFormatException e) {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n throw e;\n }\n }", "public void loadMaze(){\n try {\n byte savedMazeBytes[] = null;\n InputStream in = new MyDecompressorInputStream(new FileInputStream(\"savedMaze.maze\"));\n savedMazeBytes = new byte[1000012];\n in.read(savedMazeBytes);\n in.close();\n this.maze=new Maze(savedMazeBytes);\n isMazeGenerated=true;\n setChanged();\n notifyObservers();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public float[][] read( Envelope bbox )\n throws IOException {\n\n float[][] data = null;\n switch ( type ) {\n case BYTE:\n data = readByte( bbox );\n break;\n case SMALLINT:\n data = readSmallInt( bbox );\n break;\n case INT:\n data = readInt( bbox );\n break;\n case FLOAT:\n data = readFloat( bbox );\n break;\n case DOUBLE:\n data = readDouble( bbox );\n break;\n default:\n throw new IOException( \"not supported file format!\" );\n }\n\n return data;\n }", "public abstract Object unMarshal(File pobjFile);", "private void initMapData() {\n\n\t\ttry {\n\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\t\n\t\t\tfor (int row = 0; row < height; row++) {\n\t\t\t\t\n\t\t\t\t// read a line\n\t\t\t\tString line = br.readLine();\n\t\t\t\t\n\t\t\t\t// if length of this line is different from width, then throw\n\t\t\t\tif (line.length() != width)\n\t\t\t\t\tthrow new InvalidLevelFormatException();\n\t\t\t\t\n\t\t\t\t// split all single characters of this string into array\n\t\t\t\tchar[] elements = line.toCharArray();\n\t\t\t\t\n\t\t\t\t// save these single characters into mapData array\n\t\t\t\tfor (int col = 0; col < width; col++) {\n\t\t\t\t\tmapElementStringArray[row][col] = String.valueOf(elements[col]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "final public void fieldFromSrc(){\n List<String> lines = readSrc();\n size = Integer.parseInt(lines.get(0));\n Tile[] tiles = new Tile[size*size];\n int count = 0;\n Tile t;\n \n char[][] fieldChars = new char[size][size];\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n try{\n fieldChars[X][Y] = lines.get(Y+1).charAt(X);\n }catch(StringIndexOutOfBoundsException e){\n System.out.println(e);\n }\n }\n }\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n Coordinaat C = new Coordinaat(X,Y); \n switch(fieldChars[X][Y]){\n case 'M' : \n t = new Muur(C); \n break;\n case 'V' :\n t = new Veld(C);\n break;\n case 'E' :\n t = new EindVeld(C);\n break;\n default :\n t = new Tile(C);\n break;\n }\n tiles[count] = t;\n count++;\n }\n }\n \n fillField(tiles,size);\n createMoveAbles(lines.subList(size+2, lines.size()));\n }", "public Vector<Point> loadPoints(File f) throws IOException {\n\t\tSystem.err.println(\"Loading points\");\n\t\tVector<Point> pts = new Vector<Point>();\n\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\tString line;\n\t\twhile((line = br.readLine()) != null) {\n\t\t\tString [] curr = line.split(\"\\\\s+\");\n\t\t\tString coord = curr[0];\n\t\t\tif(!line.startsWith(\"#\")){\n\t\t\t\tif(curr.length>=3 && curr[2].contains(\":\")){coord = curr[2];}\n\t\t\t\tif(coord.contains(\":\")) {\n\t\t\t\t\tString [] currB = coord.split(\":\");\n\t\t\t\t\tString chrom = currB[0].replaceAll(\"chr\", \"\");\n\t\t\t\t\tchar strand = '?';\n\t\t\t\t\tif(currB.length==3)\n\t\t\t\t\t\tstrand = currB[2].charAt(0);\n\t\t\t\t\tPoint pt = null;\n\t\t\t\t\tint location=-1;\n\t\t\t\t\tif(currB[1].contains(\"-\")){\n\t\t\t\t\t\tString [] currC = currB[1].split(\"-\");\n\t\t\t\t\t\tint start = new Integer(currC[0]);\n\t\t\t\t\t\tint stop = new Integer(currC[1]);\n\t\t\t\t\t\tlocation = (start+stop)/2;\n\t\t\t\t\t\tif(strand=='-' && (stop-start)%2==1)\n\t\t\t\t\t\t\tlocation+=1;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlocation = new Integer(currB[1]);\n\t\t\t\t\t}\n\t\t\t\t\tif(strand!='?')\n\t\t\t\t\t\tpt = new StrandedPoint(genome, chrom, location, strand);\n\t\t\t\t\telse\n\t\t\t\t\t\tpt = new Point(genome, chrom, location);\n\t\t\t\t\n\t\t\t\t\tpts.add(pt);\n\t\t\t\t} else { \n\t\t\t\t\tSystem.err.println(String.format(\"Couldn't find point in line \\\"%s\\\"\", line));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tbr.close();\n\t\tSystem.err.println(pts.size()+\" points loaded\");\n\t\treturn pts;\n\t}", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;" ]
[ "0.6690353", "0.62777257", "0.5760549", "0.55225414", "0.54703885", "0.54644614", "0.5461362", "0.5454338", "0.5454123", "0.5445342", "0.54090935", "0.54085845", "0.5398845", "0.5355612", "0.53327346", "0.5313973", "0.52953756", "0.5261212", "0.52530473", "0.52332026", "0.5230213", "0.52268857", "0.5219044", "0.52025217", "0.5199947", "0.5195188", "0.5190976", "0.51764685", "0.5163895", "0.51617026", "0.5147836", "0.51464766", "0.5129863", "0.51203865", "0.5118672", "0.5118242", "0.5107806", "0.51064974", "0.5091233", "0.50775963", "0.50405824", "0.5035953", "0.5027216", "0.50218755", "0.5019568", "0.5014736", "0.5000949", "0.49972957", "0.49836436", "0.4978472", "0.4974512", "0.4959488", "0.49516928", "0.49385634", "0.49347317", "0.4930627", "0.49304226", "0.49182904", "0.4910694", "0.4889146", "0.48778096", "0.4875432", "0.48746544", "0.4870607", "0.4870607", "0.48627993", "0.48507923", "0.48380715", "0.4829881", "0.48286977", "0.48218825", "0.48168012", "0.48144206", "0.48133022", "0.48127198", "0.48112312", "0.48098066", "0.48068467", "0.48068175", "0.4805461", "0.48049003", "0.4790232", "0.4786962", "0.47827464", "0.47822556", "0.47779983", "0.47620568", "0.4756646", "0.47529885", "0.47524455", "0.47481325", "0.47392264", "0.47264835", "0.47245845", "0.4724542", "0.47242436", "0.47165382", "0.47076336", "0.47008035", "0.46960205" ]
0.69474775
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_teacher_homepage, container, false); enableBackArrow(false); buttonLogOut = view.findViewById(R.id.ButtonLogout); buttonTeacherResult = view.findViewById(R.id.ButtonTeacherResult); buttonCreateTest = view.findViewById(R.id.ButtonTeacherTestCreate); buttonTests = view.findViewById(R.id.ButtonTeacherTest); buttonTests.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { MainActivity.mFragmentManager.beginTransaction() .replace(R.id.fragmentContainer, new TeacherTestsListFragment(),null) .commit(); } }); logout(); results(); createTest(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Interface que permite desarrollar la logica del proyecto. Permite conectarse con los datos almacenados en algun repositorio para su modificacion, visualizacion o busqueda
public interface ITripulanteService { /** * Metodo que permite guardar un tripulante en el gestor de Base de datos * * @param tripulante objeto de tipo tripulante que se desea guardar */ public void guardarTripulante(Tripulante tripulante); /** * Metodo que permite guardar un Tripulante encontrado, recibe un objeto de tipo * tripulante * * @param tripulante objeto de tipo tripulante, a guardar */ public void guardarTripulanteEncontrado(Tripulante tripulante); /** * Metodo que permite listar los Tripulantes almacenados * * @return la lista de Tripulantes encontrados */ public List<Tripulante> obtenerTripulantes(); /** * Metodo que permite listar todos los Tripulantes almacenados * * @return la lista de Tripulantes encontrados */ public List<Tripulante> buscarTodosTripulantes(); /** * Metodo para hacer una busqueda de Tripulante por su id ingresado por parametro * * @param id de Tripulante a buscar * @return Tripulante encontrado */ public Optional<Tripulante> obtenerUnTripulante(Long id); /** * Metodo para hacer una eliminacion de un Tripulante almacenado en la Base de * datos * * @param id de Tripulante a eliminar */ public void eliminarTripulante(Long id); /** * Metodo que implementara la eliminacion de los tripulantes almacenados en la * Base de datos, no recibe parametros */ public void borrarTodosTripulantes(); /** * Metodo para hacer una busqueda de un tripulante por su atributo de tipo * String y nombre documento * * @param documento atributo por el que se buscara * @return El tripulante encontrado * @throws Exception si hay algun error */ public Tripulante buscarTripulante(String documento) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProcesoEDURegistroCalificacionEjecutivaDAO extends DAO {\n\n\n\t/** \n\t * Devuelve una lista de registros de cabeceras de cursos dictados\n\t * @param historicoCursoDictado\n\t * \t\t\tobjeto HistoricoCursoDictado poblado\n\t */\n\tpublic List getHistoricoCursoDictado(HistoricoCursoDictado historicoCursoDictado);\n\n\t/** \n\t * Devuelve una lista de registros de detalle de capacitadas\n\t * @param historicoCapacitadasDetalle\n\t * \t\t\tobjeto HistoricoCapacitadasDetalle poblado\n\t */\n\tpublic List getHistoricoCapacitadasDetalle(HistoricoCapacitadasDetalle historicoCapacitadasDetalle);\n\t\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora\n\t * @param historicoCapacitadasDetalle\n\t * \t\t\tobjeto HistoricoCapacitadasDetalle poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateEvaluacionInstructoraCapacitadas(HistoricoCapacitadasDetalle historicoCapacitadasDetalle, Usuario usuario);\n\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora\n\t * @param historicoCursoDictadoDetalle\n\t * \t\t\tobjeto HistoricoCursoDictadoDetalle poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateDetalleDictadoCalificacionEjecutiva(HistoricoCursoDictadoDetalle historicoCursoDictadoDetalle, Usuario usuario);\n\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora en el Resumen de Dictado\n\t * @param historicoCursoDictado\n\t * \t\t\tobjeto HistoricoCursoDictado poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateDictadoCalificacionEjecutiva(HistoricoCursoDictado historicoCursoDictado, Usuario usuario);\n\n}", "private void limpiarDatos() {\n\t\t\n\t}", "public FiltroCreditoARealizarHistorico() {\r\n\t}", "public TelaFuncionario_TelaMenu_GerenciarHistorico() {\n initComponents();\n try {\n listaUsuario = fc.listarTodos();\n } catch (SQLException ex) {\n Logger.getLogger(TelaFuncionario_TelaMenu_GerenciarCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n btSelecionar.setEnabled(false);\n btHabilitar.setEnabled(false);\n }", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "@Override\n\tvoid desligar() {\n\t\tsuper.desligar();\n\t\tSystem.out.println(\"Automovel desligando\");\n\t}", "public void almacenar( Proyecto proyecto) {\n\n }", "public synchronized void fecharRepositorio(){\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif( diretorioEmMemoria != null){\r\n\t\t\t\tdiretorioEmMemoria.close();\r\n\t\t\t\tdiretorioEmMemoria = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( diretorioEmDisco != null){\r\n\t\t\t\tdiretorioEmDisco.close();\r\n\t\t\t\tdiretorioEmDisco = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public interface IArticuloLeyMercadoGestor {\n\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado CODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @param userId\n\t * @throws SICException\n\t */\n\tvoid codificarArticuloLeyMercado(Integer codigoCompania, String codigoArticulo, String userId) throws SICException;\n\t\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado DESCODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @param userId\n\t * @param codigoCausal\n\t * @param valorCausal\n\t * @throws SICException\n\t */\n\tvoid descodificarArticuloLeyMercado(Integer codigoCompania, String codigoArticulo, String userId, Integer codigoCausal, String valorCausal) throws SICException;\n\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado REACTIVADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @param userId\n\t * @throws SICException\n\t */\n\tvoid reactivarArticuloLeyMercado(Integer codigoCompania, String codigoArticulo, String userId) throws SICException;\n\t\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado CODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param articuloLeyMercadoDTO entidad que representa la informacion de Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado del articulo\n\t * @throws SICException\n\t */\n\tvoid codificarArticuloLeyMercado(ArticuloLeyMercadoDTO articuloLeyMercadoDTO) throws SICException;\t\n\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado DESCODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param articuloLeyMercadoDTO entidad que representa la informacion de Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado del articulo\n\t * @throws SICException\n\t */\n\tvoid descodificarArticuloLeyMercado(ArticuloLeyMercadoDTO articuloLeyMercadoDTO) throws SICException;\n\t\n\t/**\n\t * Metodo que permite obtener la informacion actual de Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado del articulo\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @return\n\t * @throws SICException\n\t */\n\tArticuloLeyMercadoDTO obtenerArticuloLeyMercado(Integer codigoCompania, String codigoArticulo) throws SICException;\n\n\t/**\n\t * Metodo que permite obtener la informacion historica de estados del articulo segun la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param first\n\t * @param pageSize\n\t * @param sortField\n\t * @param filters\n\t * @return\n\t * @throws SICException\n\t */\n\tList<ArticuloBitacoraLeyMercadoDTO> obtenerHistoricoLeyMercado(int first, int pageSize, String sortField, Map<String, String> filters) throws SICException;\n\t\n\t/**\n\t * Metodo que permite obtener el total de la informacion historica de estados del articulo segun la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @return\n\t * @throws SICException\n\t */\n\tLong obtenerTotalHistoricoLeyMercado(Integer codigoCompania, String codigoArticulo) throws SICException;\n}", "public GestioneDomandeD() {\n this.daoDomande = null;\n this.daoPunteggi = null;\n this.daoDipendenti = null;\n this.gestionePunteggiD = null;\n this.gestioneLog = null;\n this.gestioneBadge = null;\n }", "public void aplicarDescuento();", "public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }", "public AddebitoFissoLogica(Modulo modulo) {\n /* rimanda al costruttore della superclasse */\n super(modulo);\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\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\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "public interface PersistenciaSoausentismosInterface {\n /**\n * Método encargado de insertar un Soausentismo en la base de datos.\n * @param soausentismos Soausentismo que se quiere crear.\n */\n public void crear(EntityManager em, Soausentismos soausentismos);\n /**\n * Método encargado de modificar un Soausentismo de la base de datos.\n * Este método recibe la información del parámetro para hacer un 'merge' con la \n * información de la base de datos.\n * @param soausentismos Soausentismo con los cambios que se van a realizar.\n */\n public void editar(EntityManager em, Soausentismos soausentismos);\n /**\n * Método encargado de eliminar de la base de datos el Soausentismo que entra por parámetro.\n * @param soausentismos Soausentismo que se quiere eliminar.\n */\n public void borrar(EntityManager em, Soausentismos soausentismos);\n /**\n * Método encargado de buscar los Soausentismos (EntityManager em, ausentismos) asociados a un empleado específico.\n * @param secuenciaEmpleado Secuencia del empleado para el cual se quieren saber los Soausentismos.\n * @return Retorna una lista de Soausentismos.\n */\n public List<Soausentismos> ausentismosEmpleado (EntityManager em, BigInteger secuenciaEmpleado);\n /**\n * Método encargado de generar un String en formato NUMERO_CERTIFICADO: FECHA_INICIO_AUSENTISMO -> FECHA_FIN_AUSENTISMO\n * con la información del ausentismo cuya secuencia coincide con la del parámetro.\n * @param secuenciaProrroga Secuencia del Ausentismo.\n * @return Retorna un String con el formato descrito y la información del Ausentismo especificado.\n */\n public String prorrogaMostrar(EntityManager em, BigInteger secuenciaProrroga);\n /**\n * Método encargado de buscar los Soausentismos para una lista de valores en la columna prorroga\n * de la tabla Soausentismos. Los Soausentismos que conforman esta lista de valores dependen del\n * empleado, de la causa del ausentismo y del ausentismo asociado a la prorroga.\n * (EntityManager em, Prorroga: ausentismo asociado a un ausentismo específico).\n * @param secuenciaEmpleado Secuencia del empleado\n * @param secuenciaCausa Secuencia de la causa del ausentismo.\n * @param secuenciaAusentismo Secuencia del ausentismo asociado a la prorroga.\n * @return Retorna una lista de los Soausentismos que cumplen con las condiciones anteriores.\n */\n public List<Soausentismos> prorrogas(EntityManager em, BigInteger secuenciaEmpleado, BigInteger secuenciaCausa, BigInteger secuenciaAusentismo);\n \n}", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Verifica que no existeixi un tipus amb el mateix nom\n * @param tipoAct\n * @return int\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Inserta un tipus d'activitat en la base de dades\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa els tipus d'activitats que esten actius\n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa tots els tipus d'activitats \n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Seleccionar el tipo de actividad d'una actividad\n * @param activity\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;\n\n /**\n * Guarda la sessió del tipus d'activitat\n * @param tipoAct\n * @param pagina\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract void guardarSession(TipoActividad tipoAct, String pagina) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que engloba les funcións per editar un tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callEditar(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que permet editar el Tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String editarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n}", "@Override\r\n\tpublic void dibujar(Entorno unEntorno, Casilla casilla) {\n\t\t\r\n\t}", "public interface ICampaniaDAO {\n\t/**\n\t * Crear la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid crearCampania(GestionPrecioDTO campania);\n\t\n\t\n\t/**\n\t * Actualizar la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, UserDto user);\n\t\n\t/** Metodo actualizarCampania, utilizado para actualizar una campania\n\t * @author srodriguez\n\t * 27/2/2015\n\t * @param campania\n\t * @param user\n\t * @return void\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, String user);\n\t\n\t/**\n\t * Buscar la campania por el c&oacute;digo de referencia\n\t * de Loyalty\n\t * @param codigoCampaniaReferencia C&oacute;digo de Loyalty\n\t * @return\n\t */\n\tGestionPrecioDTO findCampania(String codigoCampaniaReferencia);\n /**\n * Verifica si una campania existe dado su clave primaria como\n * par&aacute;metro de b&uacute;squeda\n * @param id\n * @returnS\n */\n Boolean findExistsCampania(GestionPrecioID id) ;\n /**\n * Obtener todas las campanias existentes en el repositorio\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasPendientes() ;\n /**\n * Buscar un listado de campanias dado una plantilla de b&uacute;squeda y el\n * estado de cobro\n * @param gestionPrecio Plantilla de b&uacute;squeda\n * @param estadoCobro Estado de cobro. Ej: PENDIENTE, CONFIGURADA, COBRADA, EN CURSO, etc.\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);\n \n /**\n * @author cbarahona\n * @param campania\n */\n void actualizarCampaniaLoyalty (GestionPrecioDTO campania);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasPendientesLazy (Integer firstResult, Integer pageSize, Boolean countAgain);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasFiltrosLazy (GestionPrecioDTO gestionPrecio, String estadoCobro,Integer firstResult, Integer pageSize, Boolean countAgain);\n \n GestionPrecioDTO findCampania(final String codigoReferencia, final Integer codigoCompania) throws SICException;\n \n void actualizarCampania(GestionPrecioDTO campania) throws SICException;\n \n /**\n * Metodo que valida si una campaña tiene participantes\n * @param codigoReferencia\n * @return\n * @throws SICException\n */\n Boolean tieneParticipantesCampania(String codigoReferencia) throws SICException;\n}", "public interface ProgramaTVDAO {\n\t/**\n\t * Crea una nueva monitorización\n\t * @param titulo Título del programa\n\t * @param episodeCode Código del Episodio (ej. T01E03)\n\t * @param fechaInicio Fecha y hora de Inicio\n\t * @param fechaFin Fecha y hora de Fin\n\t * @param hashtag Hashtag que se monitorizará\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV crearMonitorizacion(String titulo, String episodeCode, Date fechaInicio, Date fechaFin, String hashtag);\n\n\t/**\n\t * Monitorización por clave primaria\n\t * @param primaryKey Clave primaria\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV programaPorId(Long primaryKey);\n\t\n\t/**\n\t * Todas las monitorizaciones que llevan el mismo hashtag\n\t * @param hashtag Hashtag\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> ProgramasPorHashtag(String hashtag);\n\t\n\t/**\n\t * Lista de monitorizaciones del mismo programa\n\t * @param titulo Título del programa\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> programasPorTitulo(String titulo);\n\t\n\t /**\n\t * Todas las monitorizaciones\n\t * @return Lists de todos los objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> todosLosProgramas();\n\t\n\t/**\n\t * Top 5 programas más vistos\n\t * @return Array ordenado de los 5 programas más vistos\n\t */\n\tpublic ProgramaTV[] programasTop5();\n\n\t/**\n\t * Actualiza monitorizacion\n\t * @param prog Objeto ProgramaTV\n\t */\n\tpublic void updateProgramaTV(ProgramaTV prog);\n\n\n\t/**\n\t * Borra una monitorización\n\t * @param prog Clave primaria de la monitorización\n\t */\n\tpublic void deleteProgramaTV(Long prog);\n\t\n\t/**\n\t * Borra todos los programas\n\t */\n\tpublic void deleteAll();\n\t\n\n\t\n\n\t}", "@Override\r\n\tpublic ArrayList<TransferUsuario> buscarDesarroladorDescuento(int descuento) {\n Transaction transaccion= TransactionManager.getInstance().nuevaTransaccion();\r\n transaccion.start();\r\n\t\t\r\n //Obtenemos el DAO\r\n \r\n Query query = factoriaQuery.getInstance().getQuery(Eventos.QUERY_DESARROLLADOR);\t\t \r\n ArrayList<TransferUsuario> ret= (ArrayList<TransferUsuario>) query.execute(descuento);\r\n \r\n TransactionManager.getInstance().eliminarTransaccion();\r\n \r\n return ret;\r\n\t}", "private void cargarDatos()\n {\n // Pantalla carga\n showProgress(true, mView, mProgressView, getContext());\n Comando login = new LoginComando(KPantallas.PANTALLA_PERFIL);\n String email = UtilUI.getEmail(getContext());\n String password = UtilUI.getPassword(getContext());\n login.ejecutar(email,password);\n }", "public void Ordenamiento() {\n\n\t}", "@Override\n public void conectarReloj() {\n proxyDisplay = new ObserverProxy();\n despliegueGrafico = new RelojDigitalGrafico(cronometro);\n cronometro.addObserver(proxyDisplay);\n cronometro.addObserver(despliegueGrafico);\n }", "public String dissociaAuditors(){\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tDatiUtente user = (DatiUtente) request.getSession().getAttribute(\"DatiUtente\");\n\t\t\n\t\tlong idUtente=getModel().getIdAuditors();\n\t\tlong idAccesso=user.getIdSessione();\n\t\t\n\t\tAuAssUtenteSessione ass = auditService.getAssociazioneAuditors(idAccesso, idUtente);\n\t\tass.setIdSessione(idAccesso);\n\t\tass.setIdUtente(idUtente);\n\t\tass.setDataFine(new Date());\n\t\tAuAssUtenteSessione managed=(AuAssUtenteSessione)auditService.salva(ass);\n\t\t\n\t\t//auditService.dissociaAuditors(idAccesso, idUtente);\n\t\t\n\t\treturn SUCCESS;\n\t}", "@Override\n\tpublic void initMostrar_datos(Object historia_clinica) {\n\t\tif (opciones_via_ingreso.equals(Opciones_via_ingreso.MOSTRAR)) {\n\t\t\tFormularioUtil.deshabilitarComponentes(groupboxEditar, true,\n\t\t\t\t\tnew String[] { \"northEditar\" });\n\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t.setLabel(\"Mostrando Historia de Urgencia\");\n\t\t} else {\n\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t.setLabel(\"Modificando Historia de Urgencia\");\n\t\t}\n\t}", "public void deletarConsumoHistoricoRETIRAR(Integer idImovel, int amFaturamento) throws ErroRepositorioException;", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "public interface DeployLogService {\n\n\t/**\n\t * write a RecordElement2 to DeployLogService2\n\t * \n\t * @param r\n\t * @throws OdenException\n\t */\n\tpublic void record(RecordElement2 r) throws OdenException;\n\n\t/**\n\t * search the record which are matched with every specified arguments.\n\t * \n\t * @param txid\n\t * @param host\n\t * @param agent\n\t * @param path\n\t * @param startdate\n\t * @param enddate\n\t * @param failonly\n\t * @return\n\t * @throws OdenException\n\t */\n\t// public List<RecordElement2> search(String txid, String host, String agent, String path,\n\t// String startdate, String enddate, boolean failonly) throws OdenException;\n\n\tpublic List<MiniRecordElement> search(String startdate, String enddate,\n\t\t\tString user, boolean failonly) throws OdenException;\n\n\tpublic RecordElement2 search(String txid, String user, String agent,\n\t\t\tString path, boolean failonly) throws OdenException;\n\n\t/**\n\t * get all date which having records.\n\t * \n\t * @return\n\t */\n\tpublic List<String> recordedDateList();\n}", "public UnidadDAO() {\n this.setCon(cs.getConection());\n \n }", "public void ReportarUnDiario(){\n f.registrarReporteDiario(new ReporteDiario(descripcionReporteDiario,prob));\n }", "public static void main(String[] args) {\n IAcessoDatos datos = new ImplementacionMySql();\n //datos.listar();\n imprimir(datos);\n \n datos = new ImplementacionOracle();\n //datos.listar();\n imprimir(datos);\n }", "public void setGestioneLog(GestioneLog gestioneLog) {\n this.gestioneLog = gestioneLog;\n }", "private void cargarCatalogo() throws DAOException {\n\t\t List<Usuario> usuariosBD = adaptadorUsuario.recuperarTodosUsuarios();\n\t\t for (Usuario u: usuariosBD) \n\t\t\t usuarios.put(u.getTelefono(), u);\n\t}", "public DescritoresDAO() {\n\t\t\n\t}", "public void darDeAltaProducto(Producto producto) throws SQLException {\n\t\tDataProducto dp = new DataProducto();\n\t\tdp.updateBajaLogica(producto);\n\t}", "public void CargarDatosUsuario(String nickname, String mail, String nombre, String pass, DataDireccion direccion, String apellido, Date fechaNacimiento, String rutaImagen);", "public void desconectar() {\n\t\ttry {\n\t\t\tconexao.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tconectar();\n\t\tthis.controlelogin = new ControleLogin();\n\t\tthis.controlfuncionario = new ControlFuncionario();\n\t\tthis.cadastroReqExame = new CadastroReqExame();\n\t\tthis.pdfControl = new ControlPdf();\n\t\tthis.controlPaciente = new ControlPaciente();\n\t\tthis.controlRegistro = new ControlResultadoExame();\n\t\tthis.cadastroDisp = new CadastroDisponibilidade();\n\t\tthis.cadastroConsulta = new CadastroConsulta();\n\t\tconexao = null;\n\t}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;", "public void zerarSistema() {\r\n\t\tarquivo.clear();\r\n\t\tcriaRepositorio();\r\n\t}", "protected void accionUsuario() {\n\t\t\r\n\t}", "public CadastroGerentes(RepositorioGerentes repo) {\r\n this.repositorio = repo;\r\n }", "public Log vaciar() {\n cadenas.clear();\n return this;\n }", "public void limpiarDatos() {\r\n FormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\r\n tbxNro_identificacion.setValue(\"\");\r\n tbxNro_identificacion.setDisabled(false);\r\n deshabilitarCampos(true);\r\n\r\n }", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public Logradouro(int id, String tipo, String descricao) {\n\t\tsuper(id, descricao);\n\t\tthis.tipo = tipo;\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}", "public interface ProcesoMAEClasificacionClientesDAO extends DAO {\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacion(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion LOVE de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacionLove(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de datos de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeActualizarDatosClientes(Map criteria);\n\n\t/**Proceso q se encarga de ejecutar las validaciones de MAE\n\t * @param criteria\n\t */\n\tpublic void executeValidacionClientes(Map criteria);\n\n\t/**\n\t * Proceso que realiza la Inactivación de conultoras registradas \n\t * despues de dos capañasde creadas en el maestro\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeInactivarConsultora2campanas(Map criteria);\n}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void fechar() {\n\n try {\n geraLog.criaLog(codigoUsuario, \"Principal\", \"Fez Logoff do Sistema\");\n } catch (IOException ex) {\n Logger.getLogger(JfLogin.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n this.dispose();\n\n }", "public TelaExcluirUsuario() {\n initComponents();\n }", "public interface DAOLibro {\n\t\n\t/**\n\t * Este metodo permite agregar un libro a la libreria\n\t * \n\t * @param libro el libro a agregar\n\t * @return true si se creo exitosamente, false sino\n\t */\n\tpublic boolean crea(Libro libro);\n\t\n\t/**\n\t * Este metodo busca un libro a partir de su nombre\n\t * \n\t * @param nombre el nombre del libro a buscar\n\t * @return una referencia al libro o null si no se encontro\n\t */\n\tpublic Libro recupera(String nombre);\n\t\n\t/**\n\t * Actualiza libro\n\t * \n\t * @param libro\n\t * @return true si se actualizo correctamente, false si no\n\t */\n\tpublic boolean actualiza(Libro libro);\n\n\t/**\n\t * Retira un libro de la libreria\n\t * \n\t * @param libro el libro a retirar\n\t * @return true si se retiro exitosamente, false sino\n\t */\n\tpublic boolean borra(Libro libro);\n\t\n\t/**\n\t * Regresa la lista de todos los libros\n\t * \n\t * @return un ArrayList con todos los libros de la libreria\n\t */\n\tpublic ArrayList<Libro> recuperaTodos();\n\n\n}", "public interface LogService {\r\n\r\n\t/** \r\n\t * saveLog:保存错误日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param info \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveExceptionLog(ExceptionLog info);\r\n\t\r\n\t/** \r\n\t * listLogInfo:根据条件获取错误日志信息. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param param\r\n\t * @return \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tList<ExceptionLog> listLogInfo(Map<String,Object> param);\r\n\t\r\n\t\r\n\t/** \r\n\t * removeLogInfo:根据时间删除之前日志信息. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param endTime \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid removeLogInfo(String endTime);\r\n\r\n\t/** \r\n\t * saveOpenInfoLog:保存开放接口日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param log \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveOpenInfoLog(OpenInfLog log);\r\n\r\n\t/** \r\n\t * saveLogInfo:保存自定义接口日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param log \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveLogInfo(LogInfo logInfo);\r\n}", "public interface InterfaceSistemaDeControle {\r\n\t\r\n\t/** Este método adiciona um pedido.\r\n\t * \r\n\t * @param p Recebe um objeto do tipo Pedido.\r\n\t */\r\n\t\r\n\tpublic void adicionaPedido (Pedido p);\r\n\t\r\n\t/** Este método pesquisa pedidos utilizando o código do produto.\r\n\t * \r\n\t * @param codProduto Recebe um objeto do tipo String que representa o código do produto.\r\n\t * @return Este método retorna uma Lista do tipo Pedido contendo todos os produtos que têm o código \r\n\t * igual ao passado no parametro.\r\n\t */\r\n\t\r\n\tpublic List<Pedido> pesquisaIncluindoProduto (String codProduto);\r\n\t\r\n\t/** Este método remove um pedido.\r\n\t * \r\n\t * @param numPedido Este método do tipo long recebe o número do pedido que será removido.\r\n\t */\r\n\tpublic void removePedido (long numPedido);\r\n\t\r\n}", "public void desafecterPersonnes(Activite a, List<Personne> lp,GenericDao<Personne> pers_dao);", "private void controladorHome(Controlador controlador){\n \tthis.contLogout = controlador.getLogout();\n inicioUser.setControlLogout(contLogout);\n inicioAdmin.setControlLogout(contLogout);\n adminUsuarios.setControlLogout(contLogout);\n adminConfig.setControlLogout(contLogout);\n \t\n this.contToInicio = controlador.getToInicio();\n displayCollective.setControlToInicio(contToInicio);\n displayProject.setControlToInicio(contToInicio);\n informes.setControlToInicio(contToInicio);\n notif.setControlToInicio(contToInicio);\n nuevoColectivo.setControlToInicio(contToInicio);\n nuevoProyecto.setControlToInicio(contToInicio);\n perfil.setControlToInicio(contToInicio);\n\n this.contToPerfil = controlador.getToPerfil();\n inicioUser.setControlToPefil(contToPerfil);\n displayCollective.setControlToPefil(contToPerfil);\n displayProject.setControlToPefil(contToPerfil);\n informes.setControlToPefil(contToPerfil);\n notif.setControlToPefil(contToPerfil);\n nuevoColectivo.setControlToPefil(contToPerfil);\n nuevoProyecto.setControlToPefil(contToPerfil);\n\n this.contNotif = controlador.getNotif();\n inicioUser.setControlToNotif(contNotif);\n displayCollective.setControlToNotif(contNotif);\n displayProject.setControlToNotif(contNotif);\n informes.setControlToNotif(contNotif);\n notif.setControlToPefil(contToPerfil);\n nuevoColectivo.setControlToNotif(contNotif);\n nuevoProyecto.setControlToNotif(contNotif);\n perfil.setControlToNotif(contNotif);\n inicioAdmin.setControlToNotif(contNotif);\n adminUsuarios.setControlToNotif(contNotif);\n adminConfig.setControlToNotif(contNotif);\n }", "public DAOImpl(String baseDatos, String usuario, String clave){\n this.baseDatos = baseDatos;\n this.usuario = usuario;\n this.clave = clave;\n }", "private void inicializarUsuarios(){\n usuarios = new ArrayList<Usuario>();\n Administrador admin=new Administrador();\n admin.setCodigo(1);\n admin.setApellidos(\"Alcaide Gomez\");\n admin.setNombre(\"Juan Carlos\");\n admin.setDni(\"31000518Z\");\n admin.setPassword(\"admin\");\n admin.setCorreo(\"algojuca@alu.uma.es\");\n admin.setDireccion(\"Sebastian Garrido 54\");\n admin.setNacimiento(new Date(1991, 12, 29));\n admin.setNacionalidad(\"España\");\n admin.setCentro(\"Centro\");\n admin.setSexo(\"Varon\");\n admin.setDespacho(\"301\");\n usuarios.add(admin);\n \n JefeServicio js=new JefeServicio();\n js.setCodigo(2);\n js.setApellidos(\"Gutierrez Cazorla\");\n js.setNombre(\"Ruben\");\n js.setDni(\"75895329k\");\n js.setPassword(\"admin\");\n js.setCorreo(\"algojuca@alu.uma.es\");\n js.setDireccion(\"Sebastian Garrido 54\");\n js.setNacimiento(new Date(1991, 12, 29));\n js.setNacionalidad(\"España\");\n js.setCentro(\"Centro\");\n js.setSexo(\"Varon\");\n js.setDespacho(\"301\");\n \n usuarios.add(js);\n \n \n Ciudadano c =new Ciudadano();\n c.setCodigo(3);\n c.setApellidos(\"Moreno\");\n c.setNombre(\"Maria\");\n c.setDni(\"123\");\n c.setPassword(\"123\");\n c.setCorreo(\"magonmo92@alu.uma.es\");\n c.setDireccion(\"Sebastian Garrido 54\");\n c.setNacimiento(new Date(1992, 01, 12));\n c.setCentro(\"Teatinos\");\n c.setNacionalidad(\"España\");\n c.setSexo(\"Mujer\");\n c.setTelefono(\"999\");\n usuarios.add(c);\n \n //--Administrativos--\n Administrativo a =new Administrativo();\n a.setCodigo(4);\n a.setApellidos(\"Fernández\");\n a.setNombre(\"Salva\");\n a.setDni(\"1234\");\n a.setPassword(\"1234\");\n a.setCorreo(\"safcf@alu.uma.es\");\n a.setDireccion(\"Sebastian Garrido 54\");\n a.setNacimiento(new Date(1991, 9, 29));\n a.setNacionalidad(\"España\");\n a.setSexo(\"Hombre\");\n a.setCentro(\"Centro\");\n usuarios.add(a);\n \n Tecnico tec=new Tecnico();\n tec.setCodigo(5);\n tec.setApellidos(\"Alcaide Gomez\");\n tec.setNombre(\"Juan Carlos\");\n tec.setDni(\"tecnico\");\n tec.setPassword(\"tecnico\");\n tec.setCorreo(\"algojuca@alu.uma.es\");\n tec.setDireccion(\"Sebastian Garrido 54\");\n tec.setNacimiento(new Date(1991, 12, 29));\n tec.setNacionalidad(\"España\");\n tec.setCentro(\"Centro\");\n tec.setSexo(\"Varon\");\n tec.setDespacho(\"301\");\n tec.setTelefono(\"664671040\");\n tec.setEspecialidad(\"Maltrato\");\n tec.setTfijo(957375546);\n \n usuarios.add(tec);\n \n }", "public void limpiarDatos()throws Exception{\n\t\tFormularioUtil.limpiarComponentes(groupboxEditar,idsExcluyentes);\n\t}", "@Override\n\tpublic void devolucao(Livros livro) {\n\t\t\n\t}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO asignarOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO asignarOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"asignarOrdenServicio\");\r\n ExpedienteGSMDTO retorno=expedienteDTO;\r\n try{\r\n //cambiarEstado expediente \r\n \tExpedienteGSMDTO expedCambioEstado=cambiarEstadoProceso(expedienteDTO.getIdExpediente(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getEstadoProceso().getIdEstadoProceso(),null,usuarioDTO);\r\n LOG.info(\"expedCambioEstado:\"+expedCambioEstado);\r\n //update expediente\r\n PghExpediente registroDAO = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registroDAO.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getTramite()!=null){\r\n registroDAO.setIdTramite(new PghTramite(expedienteDTO.getTramite().getIdTramite()));\r\n }else if(expedienteDTO.getProceso()!=null){\r\n registroDAO.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n }\r\n if(expedienteDTO.getObligacionTipo()!=null){\r\n registroDAO.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n }\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registroDAO.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }\r\n registroDAO.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n crud.update(registroDAO);\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(expedienteDTO.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty() || listPersonalDest.get(0).getIdPersonal()==null){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstado:\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(registroDAO);\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en asignarOrdenServicio\",e);\r\n ExpedienteException ex = new ExpedienteException(e.getMessage(), e);\r\n throw ex;\r\n }\r\n return retorno;\r\n }", "@Override\n\n public void run(String... strings) throws Exception {\n \n Usuario u= new Usuario(1521L, \"Viridiana Hernandez\",\"ndzmviridiana@hotmail.com\");\n \n //la guardamos\n \n // repoUsu.save(u);\n \n //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR\n \n Direccion d = new Direccion(new Usuario(1521L),\"Calle 13\", 55120, \"Ecatepec\");\n //repoDir.save(d);\n \n \n //AQUI HAREMOS EL JOIN\n \n \n Direccion d2= repoDir.findOne(2L);\n System.out.println(\"Correo:\"+d2.getU().getEmail()+ \" municipio \"+d2.getMunicipio());\n \n \n \n \n \n \n //repoMensa.save (new Mensajito(\"Primero\",\"Mi primera vez con hibernate\"))\n /*\n Mensajito m= repoMensa.findOne(1);\n System.out.println(m.getTitulo());\n \n \n \n // repoMensa.save(new Mensajito(\"17 de octubre\",\"No temblo\"));\n System.out.println(\"vamos a uscar todos\");\n \n for (Mensajito mensa:repoMensa.findAll()){\n System.out.println(mensa);\n \n }\n \n //para buscar por id FINDONE\n System.out.println(\"vamos a buscar por id\");\n System.out.println(repoMensa.findOne(1));\n \n \n // Actualizar \n repoMensa.save(new Mensajito(1,\"nuevo titulo\",\"nuevo cuerpo\"));\n System.out.println(repoMensa.findOne(1));\n*/\n }", "@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO generarExpedienteOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO generarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"generarExpedienteOrdenServicio\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try{\r\n expedienteDTO.setEstado(Constantes.ESTADO_ACTIVO);\r\n PghExpediente pghExpediente = ExpedienteGSMBuilder.toExpedienteDomain(expedienteDTO);\r\n pghExpediente.setFechaEstadoProceso(new Date());\r\n pghExpediente.setDatosAuditoria(usuarioDTO);\r\n crud.create(pghExpediente);\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(pghExpediente);\r\n \r\n //reg historicoEstado\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_EXPEDIENTE).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(pghExpediente.getIdExpediente(), null, pghExpediente.getIdEstadoProceso().getIdEstadoProceso(), pghExpediente.getIdPersonal().getIdPersonal(), pghExpediente.getIdPersonal().getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO);\r\n LOG.info(\"historicoEstado-->\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(retorno.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n //personalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null)).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n //personalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa())).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty()){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en generarExpedienteOrdenServicio\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }", "public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "public Aplicacion(String nomAdmin, String contrasena, Integer numMinApoyos) {\r\n\t\t\r\n\t\tif(nomAdmin.isEmpty()|| Objects.isNull(nomAdmin) ) {\r\n\t\t\tthrow new IllegalArgumentException(\"Debes de introducir los datos validos\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.nombreAdmin = nomAdmin;\r\n\t\tthis.contraseñaAdmin = contrasena; \r\n\t\tthis.numMinApoyos = numMinApoyos;\r\n\t\tthis.modoAdmin = false;\r\n\t\t\r\n\t\tthis.proyectos = new HashSet<Proyecto>();\r\n\t\tthis.proponentes = new HashSet<Proponente>();\r\n\t\tthis.lastProjectUniqueID = 0;\r\n\t\t\r\n\t\t//Cargamos los distritos\r\n\t\tdistritosPermitidos = new HashSet<String>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(distritosPath));\r\n\t String d;\r\n\t while((d = br.readLine()) != null){\r\n\t \t this.distritosPermitidos.add(d);\t //Leer la siguiente línea\r\n\t }\r\n\t\t}catch (FileNotFoundException e) {\r\n\t System.out.println(\"Error: Fichero no encontrado\");\r\n\t System.out.println(e.getMessage());\r\n\t \r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\t\r\n\t}", "public interface Idao {\r\n\r\n\tpublic void seconnecter(String login, String mdp);\r\n\r\n\tpublic void creerClient(Client c);\r\n\tpublic void lireClient(Client c);\r\n\tpublic void modifierClient(Client c);\r\n\tpublic void supprimerClient(Client c);\r\n\t\r\n\tpublic void creerConseiller(Conseiller c);\r\n\tpublic Conseiller lireConseiller(int id);\r\n\tpublic void modifierConseiller(int id, String nom, String prenom, String login, String mdp, String email);\r\n\tpublic void supprimerConseiller(Conseiller c);\r\n\tpublic void attribuerAgence(Agence a, Employe e);\r\n\tpublic void ajouterEmploye(Employe e, Agence a);\r\n\tpublic void attribuerGerant(Gerant g, Conseiller c);\r\n\tpublic void ajouterConseiller(Conseiller c, Gerant g);\r\n\t\r\n\tpublic void creerCompte(Compte c);\r\n\tpublic CompteCourant lireCompteCourant(int idCompte);\r\n\tpublic CompteCourant lireCompteCourant(long numCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(int idCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(long numCompte);\r\n\tpublic void modifierCompteCourant(long numCompte, double solde, int decouvert);\r\n\tpublic void modifierCompteEpargne(long numCompte, double solde, float tauxEpargne);\r\n\tpublic void supprimerCompte(long numCompte);\r\n\tpublic void faireVirement(Compte c);\r\n\tpublic void simuler();\r\n\tpublic void placerArgent(float montant, Compte c);\r\n\tpublic void attribuerClient(Client cl, Compte c);\r\n\tpublic void ajouterCompte(Compte c, Client cl);\r\n\tpublic void attibuerConseiller(Conseiller c, Client cl);\r\n\tpublic void ajouterClient(Client cl, Conseiller c);\r\n\r\n\tpublic void auditer();\r\n\r\n}", "public interface ILivroDAO {\n\n int save(Livro livro);\n\n int update(Livro livro);\n\n int remove(Long id);\n\n List<Livro> findAll();\n}", "private void remplirUtiliseData() {\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "private DatosDeSesion() throws ExcepcionArchivoDePropiedadesNoEncontrado {\r\n this.poolDeConexiones = new PoolDeConexiones();\r\n }", "private DAOLogger() {\n\t}", "public void mostrarMenuLectura(TomarLectura tomarLectura, Lectura lecturaActual);", "public void limpiarDatos() throws Exception {\n\t\tFormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\n\t}", "public void limpiarDatos() throws Exception {\n\t\tFormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\n\t}", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}", "public synchronized void zeraArtigo() throws HelpDeskException {\n\t\tArtigoDAO.getInstance().removeAll();\n\t}", "public ControladorUsuario(UsuarioDAO usuarioDAO) {\n\n this.usuarioDAO = usuarioDAO;\n \n }", "public PresuTipoProyectoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new PresuTipoProyecto();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoObject=new Object();\r\n\t\t\tthis.presutipoproyectosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.presutipoproyectoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public interface DAOAvaliadorInterface extends DAOGenericoInterface{\n \n /**\n * Método para listar os avaliadores cadastrados no sistema.\n * @return \n */\n public List<AvaliadorDB> listar();\n \n /**\n * Método para inserir um avaliador no sistema.\n * @param avaliador \n */\n public void inserir(AvaliadorDB avaliador);\n \n /**\n * Método para alterar um avaliador cadastrado no sistema.\n * @param avaliador \n */\n public void alterar(AvaliadorDB avaliador);\n \n}", "public void desplegarInformacion() { //\n\n System.out.println(nombre);\n System.out.println(apellido);\n\n }", "public ConstrutorDeLeilao para(String produto) {\n\t\t\r\n\t\t this.leilao = new Leilao(produto);\r\n\t\treturn this;\r\n\t}", "public DetalleLiquidacionDAO() {\n this.setCon(cs.getConection());\n }", "public void refrescarForeignKeysDescripcionesTablaAmortiDetalle() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.refrescarForeignKeysDescripcionesTablaAmortiDetalle(this.tablaamortidetalleLogic.getTablaAmortiDetalles());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.refrescarForeignKeysDescripcionesTablaAmortiDetalle(this.tablaamortidetalles);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Ejercicio.class));\r\n\t\tclasses.add(new Classe(Periodo.class));\r\n\t\tclasses.add(new Classe(Tasa.class));\r\n\t\tclasses.add(new Classe(Factura.class));\r\n\t\tclasses.add(new Classe(TipoIntervalo.class));\r\n\t\tclasses.add(new Classe(Anio.class));\r\n\t\tclasses.add(new Classe(Mes.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//tablaamortidetalleLogic.setTablaAmortiDetalles(this.tablaamortidetalles);\r\n\t\t\ttablaamortidetalleLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "@Override\n public void deletar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n em.remove(em.merge(paciente));\n em.getTransaction().commit();\n em.close();\n factory.close();\n }", "public ISegPermisoDAO getSegPermisoDAO() {\r\n return new SegPermisoDAO();\r\n }", "@Override\n\tpublic void emprestimo(Livros livro, Usuarios usuario) {\n\t\t\n\t}", "@Override\n public void loggedOut() {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }", "private static void registrarAuditoriaDetallesPresuTipoProyecto(Connexion connexion,PresuTipoProyecto presutipoproyecto)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getid_empresa().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getcodigo().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getnombre().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "public PanelAdministrarMarcas() {\n initComponents();\n cargarTabla();\n }", "public interface PersistenceFinalTaskDao {\n\t\n\t/**\n\t * Persiste el total de operaciones en la tabla\n\t * de reporte final\n\t */\n\tpublic void persisteMontoOperaciones(BigDecimal montoTotal, String idProceso);\n\n\t/**\n\t * \n\t * obtiene la sumatoria de los montos de todas las\n\t * operaciones correspondienes a la carga de \n\t * un archivo de operaciones\n\t * \n\t */\n\tpublic BigDecimal conteoTotalDeOperaciones(String idProceso, String schema);\n\n\t/**\n\t * \n\t * Metodo para obtener el numero de errores\n\t * contenidos en un proceso @idProceso\n\t * \n\t * @param idProceso\n\t * @param schema\n\t * @return numero de errores correspontienes al proceso\n\t */\n\tpublic int numeroDeRegistrosCargadosConError(String idProceso, String schema);\n\n\t/**\n\t * Recibe sentencias sql para persistir,\n\t * el metodo itera la lista de sentencias\n\t * regresa el numero de registros insertados\n\t * el cual deberia ser igual al numero de sentencias recibidas\n\t * entro de la lista\n\t *\n\t * @param listQuriesToPersistence\n\t * @return\n\t */\n\tpublic int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);\n\t\n\t/**\n\t * Metodo que contiene el llamado a base de datos para hacer \n\t * el select inser de los registros que no fueron marcados\n\t * como update y tampoco fueron rechazados.\n\t * \n\t * @param queryInserSelect\n\t * @param idProceso\n\t * @return numero de registros afectados\n\t * @throws Exception \n\t */\n\tpublic int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;\n\t\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public void reiniciar() {\n // TODO implement here\n }" ]
[ "0.60207605", "0.57216245", "0.5705187", "0.56639785", "0.5637443", "0.562992", "0.5629703", "0.5615566", "0.5611755", "0.5555431", "0.55513024", "0.5531215", "0.55255055", "0.5474183", "0.5473961", "0.54683226", "0.54401225", "0.5422502", "0.5410081", "0.54019874", "0.54019487", "0.54005086", "0.53787607", "0.53763974", "0.53709674", "0.53626955", "0.535363", "0.5351986", "0.53432804", "0.5334721", "0.53335613", "0.53217614", "0.53083736", "0.5292935", "0.5291841", "0.5289886", "0.5287661", "0.52782106", "0.524747", "0.523852", "0.523127", "0.52259487", "0.52248466", "0.5213449", "0.5211045", "0.5209327", "0.51943624", "0.5193569", "0.5190257", "0.51809776", "0.51743996", "0.5172419", "0.5172168", "0.5172168", "0.51639897", "0.5155012", "0.51486117", "0.5146141", "0.5141098", "0.5140797", "0.51404685", "0.5134685", "0.5125612", "0.511899", "0.51186955", "0.5117971", "0.51129043", "0.51078445", "0.5107585", "0.51058775", "0.509512", "0.5090098", "0.5086669", "0.50820404", "0.508203", "0.50784147", "0.5077743", "0.5071864", "0.50717396", "0.50689685", "0.50661016", "0.50661016", "0.50653577", "0.5059638", "0.50497526", "0.50475574", "0.5045911", "0.50430614", "0.5041709", "0.5039839", "0.5035984", "0.5031693", "0.5031672", "0.50310576", "0.503078", "0.5029929", "0.5029159", "0.50251806", "0.5022071", "0.5021645", "0.5019128" ]
0.0
-1
Metodo que permite guardar un tripulante en el gestor de Base de datos
public void guardarTripulante(Tripulante tripulante);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardarTripulanteEncontrado(Tripulante tripulante);", "void saveTrip(Trip parTrip);", "@Override\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante) {\r\n\t\tlistadoAuxiliar.add(tripulante);\r\n\t}", "public void insert(final Trip t) throws SQLException {\n long v;\n if(t.hasVehicle()) {\n v = t.getVehicle();\n if(v > vehicle) {\n vehicle = v + 1;\n }\n } else {\n v = vehicle++;\n }\n stmt.setLong(1, t.getPickupTime());\n stmt.setLong(2, v);\n stmt.setLong(3, t.getDropoffTime());\n stmt.setDouble(4, t.getPickupLat());\n stmt.setDouble(5, t.getPickupLon());\n stmt.setDouble(6, t.getDropoffLat());\n stmt.setDouble(7, t.getDropoffLon());\n stmt.executeUpdate();\n }", "public boolean saveTrip(Trip trip) {\n\n\t\tif(trip.getName().equals(\"\") || trip.getLocation().equals(\"\") || trip.getTravelDate().equals(\"\")\n\t\t\t\t|| trip.getTravelTime().equals(\"\") || trip.getMeetSpot().equals(\"\") ||\n\t\t\t\ttrip.getPersons() == null) {\n\t\t\tToast.makeText(getBaseContext(), \"All fields are mandatory\", Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tLog.d(\"Saving Trip\", trip.toString());\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.putExtra(\"TripData\", trip);\n\t\t\tsetResult(RESULT_OK, intent);\n\n\t\t\tTripDatabaseHelper databaseHelper = new TripDatabaseHelper(getBaseContext());\n\t\t\tdatabaseHelper.insertTrip(trip);\n\t\t\tdatabaseHelper.insertParticipants(trip, trip.getTripID());\n\t\t\t//Log.d(\"Trip created with id: \", Long.toString(tripID));\n\t\t\tfinish();\n\t\t}\n\n\t\treturn true;\n\t}", "public void endTrip()\r\n {\r\n if (detourTrip == null)\r\n {\r\n // we are in a normal trip\r\n trip = null;\r\n }\r\n else\r\n {\r\n // we are in a detour trip\r\n detourTrip = null;\r\n }\r\n }", "private void save(JTour jTour){\n if(jTour.save()>0){\n for(JPlace jPlace : jTour.getPlaces()){\n if(jPlace.save() > 0){\n //u principu bi trebala biti samo jedna lokacija u placu\n jPlace.getLocations().get(0).save();\n }\n }\n }\n\n }", "Flight saveFlight(Flight flight);", "public Flight save(Flight flight);", "public interface ITripulanteService {\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un tripulante en el gestor de Base de datos\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante que se desea guardar\r\n\t */\r\n\tpublic void guardarTripulante(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un Tripulante encontrado, recibe un objeto de tipo\r\n\t * tripulante\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante, a guardar\r\n\t */\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite listar los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> obtenerTripulantes();\r\n\r\n\t/**\r\n\t * Metodo que permite listar todos los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> buscarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de Tripulante por su id ingresado por parametro\r\n\t * \r\n\t * @param id de Tripulante a buscar\r\n\t * @return Tripulante encontrado\r\n\t */\r\n\tpublic Optional<Tripulante> obtenerUnTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo para hacer una eliminacion de un Tripulante almacenado en la Base de\r\n\t * datos\r\n\t * \r\n\t * @param id de Tripulante a eliminar\r\n\t */\r\n\tpublic void eliminarTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo que implementara la eliminacion de los tripulantes almacenados en la\r\n\t * Base de datos, no recibe parametros\r\n\t */\r\n\tpublic void borrarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de un tripulante por su atributo de tipo\r\n\t * String y nombre documento\r\n\t * \r\n\t * @param documento atributo por el que se buscara\r\n\t * @return El tripulante encontrado\r\n\t * @throws Exception si hay algun error\r\n\t */\r\n\tpublic Tripulante buscarTripulante(String documento) throws Exception;\r\n\r\n}", "public void finishDiary() {\n DiaryElement stay;\n if (this.activities.size() == 1) {\n stay = this.activities.get(0);\n stay.start_min = 0;\n stay.end_min = ONE_DAY;\n stay.purpose = 0;\n stay.purposeDetailed = 0;\n stay.purposeDescription = \"At home\";\n stay.home = true;\n stay.stay = true;\n //this.addDiaryElement(stay);\n } else {\n\n //check if the last trip was going home!\n DiaryElement pre = this.activities.get(this.activities.size() - 1);\n if (!pre.home) {// && !pre.isRoundTrip()){\n numOfDiariesNotEndingAtHome++;\n//\t\t\t\t\tif(purposeNonHomeEndTrip.get(pre.purpose)==null){\n//\t\t\t\t\t\tpurposeNonHomeEndTrip.put(pre.purpose,1);\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tpurposeNonHomeEndTrip.put(pre.purpose,purposeNonHomeEndTrip.get(pre.purpose)+1);\n//\t\t\t\t\t}\n //System.out.println(\"Purp: \"+pre.purpose+\"/\"+pre.purposeDetailed+\" Dest: \"+pre.tripDestination);\n //oops fit it: Insert a stay (5min) and a trip back home\n DiaryElement auxStay = new DiaryElement();\n auxStay.start_min = pre.end_min;\n auxStay.end_min = auxStay.start_min + 5;\n auxStay.purpose = pre.purpose;\n auxStay.purposeDetailed = pre.purposeDetailed;\n auxStay.purposeDescription = pre.purposeDescription;\n auxStay.home = false;\n auxStay.stay = true;\n this.addDiaryElement(auxStay);\n // now insert a trip home.\n //Only problem: how long should it be?\n //Assumption: look back for the last trip from home and take this time!\n pre = new DiaryElement(); //this will be the preceeding trip for the rest of the code!\n pre.start_min = auxStay.end_min;\n //now look for the duration of the last trip from home\n int duration = 5; //safety value\n for (int i = this.activities.size() - 2; i >= 0; --i) {\n DiaryElement lastStayHome = this.activities.get(i);\n if (lastStayHome.home && lastStayHome.stay) {\n duration = this.activities.get(i + 1).getDurtation();\n break;\n }\n }\n\n\n pre.end_min = pre.start_min + duration;\n pre.purpose = 8;\n pre.purposeDetailed = 3307;\n pre.purposeDescription = \" Automatic trip back home\";\n pre.home = true;\n pre.stay = false;\n this.addDiaryElement(pre);\n\n }\n\n stay = new DiaryElement();\n\n stay.start_min = pre.end_min;\n stay.end_min = Math.max(ONE_DAY, pre.end_min + 1);\n stay.purpose = pre.home ? 0 : pre.purpose;\n stay.purposeDetailed = pre.home ? 0 : pre.purposeDetailed;\n stay.purposeDescription = \"At home\";\n stay.home = true;\n stay.stay = true;\n this.addDiaryElement(stay);\n\n //Collections.sort(this.activities);\n\n //now update the tournumbers\n pre = this.activities.get(0);\n int actTourNumber;\n DiaryElement act = null;\n List<Integer> toursWithWork = new LinkedList<>();\n //first home stays are always tour 0 trips are 1...\n actTourNumber = 1; // start with the first tour\n for (int i = 1; i < this.activities.size(); ++i) {\n act = this.activities.get(i);\n if (act.stay) { //a stay allways gets the tournumber of its last trip\n if (act.home) act.tourNumber = 0;\n else act.tourNumber = pre.tourNumber;\n } else {\n act.tourNumber = actTourNumber; //update the tour number\n }\n\n if (act.purpose == 1 || act.purpose == 2) {\n toursWithWork.add(actTourNumber);\n }\n if (!act.stay && act.home) // a tour ending at home: all succeding trips are a new tour\n {\n actTourNumber++;\n }\n pre = act;\n }\n //now fix all trips within a workchain\n if (toursWithWork.size() > 0) {\n for (int i = 1; i < this.activities.size() - 1; ++i) {\n act = this.activities.get(i);\n if (!(act.home && act.stay) && toursWithWork.contains(act.tourNumber)) {\n act.workchain = true;\n }\n }\n }\n\n //now fix 0-min stays:\n this.totalTravelTime = 0;\n int addTime;\n for (int i = 1; i < this.activities.size(); ++i) {\n act = this.activities.get(i);\n pre = this.activities.get(i - 1);\n //fix starts at midnight\n if (act.start_min == 0) {\n pre.end_min = act.start_min = 1;\n }\n addTime = 1 - act.getDurtation();\n if (act.getDurtation() <= 0) {\n act.end_min += addTime;\n for (int j = i + 1; j < this.activities.size(); ++j) {\n this.activities.get(j).start_min += addTime;\n this.activities.get(j).end_min += addTime;\n }\n }\n if (!act.stay) {\n this.totalTravelTime += act.getDurtation();\n }\n }\n for (int i = 1; i < this.activities.size(); ++i) {\n act = this.activities.get(i);\n pre = this.activities.get(i - 1);\n if (act.start_min == pre.start_min) System.out.println(\"argh!\");\n }\n\n }\n\n\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }", "Destination save(Destination destination);", "public void guardarDireccionAlcabalaHstorico(RaDireccionAlcabalaHistorico raDireccionAlcabalaHistorico)throws Exception;", "public static void pushRouteToDatabase() {\n Database database = Database.getInstance();\n long distance = calculateTotalDistance(LocationService.getLocationPoints());\n long time = stopStart.getStopTime() - stopStart.getStartTime();\n database.addToDailyDistance(distance);\n database.addToDailyTime(time);\n }", "public void setTrip(Integer trip) {\n this.trip = trip;\n }", "@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "private Obs findTrips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY, int dist_th,\n\t\t\tint time_th) {\n\t\t/**\n\t\t * Marks array contain index of the towers that represent the starting\n\t\t * observation of a new trip.\n\t\t */\n\t\tboolean[] marks = new boolean[tstamps.length];\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\t/**\n\t\t * add 0 as the start of the first tower in this seq.\n\t\t */\n\t\t// int mIndex = 0;\n\t\t// marks[mIndex++] = 0;\n\n\t\tint current = 0;\n\t\tfor (int i = 1; i < tstamps.length; i++) {\n\t\t\ttry {\n\t\t\t\tString tstamp = tstamps[i];\n\n\t\t\t\t/**\n\t\t\t\t * if the time exceeds timing threshold, then check the distance\n\t\t\t\t * between towers. If this distance less than the distance\n\t\t\t\t * threshold, then previous tower is the end of the current\n\t\t\t\t * trip.\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tDate sTime = formatter.parse(tstamps[current]);\n\t\t\t\tDate eTime = formatter.parse(tstamp);\n\t\t\t\tcal.setTime(sTime);\n\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tcal.setTime(eTime);\n\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tint diff = (ehour - hour) * HOUR + (eminute - minute);\n\t\t\t\t/**\n\t\t\t\t * check time difference with time threshold whatever the\n\t\t\t\t * distance between the starting tower\n\t\t\t\t */\n\t\t\t\tif (diff > time_th) {\n\t\t\t\t\t/**\n\t\t\t\t\t * Check distance, if it distance less than distance\n\t\t\t\t\t * threshold mark the current tower as the start of a new\n\t\t\t\t\t * trip.\n\t\t\t\t\t */\n\t\t\t\t\tVertex sTower = towersXY.get(Integer.parseInt(towers[i - 1]));\n\t\t\t\t\tVertex tower = towersXY.get(Integer.parseInt(towers[i]));\n\n\t\t\t\t\tif (eculidean(sTower.getX(), tower.getX(), sTower.getY(), tower.getY()) < dist_th) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Update the trip sequences\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmarks[i] = true;\n\t\t\t\t\t\tcurrent = i;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * construct observations and time stamps\n\t\t */\n\t\tString time = \"\";\n\t\tString obs = \"\";\n\t\t// time += tstamps[0];\n\t\t// obs += towers[0];\n\t\tfor (int i = 0; i < marks.length; i++) {\n\t\t\tif (marks[i]) {\n\n\t\t\t\ttime += RLM + tstamps[i];\n\t\t\t\tobs += RLM + towers[i];\n\t\t\t} else {\n\t\t\t\t// if (towers[i].equals(towers[i - 1])) {\n\t\t\t\t// System.out.println(towers[i] + \"\\t=\\t\" + towers[i - 1]);\n\t\t\t\t// continue;\n\t\t\t\t// }\n\t\t\t\t/**\n\t\t\t\t * Add comma separators\n\t\t\t\t */\n\t\t\t\tif (!time.isEmpty()) {\n\t\t\t\t\ttime += CLM;\n\t\t\t\t\tobs += CLM;\n\t\t\t\t}\n\t\t\t\ttime += tstamps[i];\n\t\t\t\tobs += towers[i];\n\t\t\t}\n\n\t\t}\n\t\treturn new Obs(obs, time);\n\t}", "int insertSelective(Tour record);", "private boolean writeLocationObjectToDB(JacocDBLocation toAdd)\n {\n\tSQLiteDatabase db = this.getWritableDatabase();\n\n\tContentValues values = new ContentValues();\n\tvalues.put(this.LOCATION_NAME, toAdd.getLocationName());\n\tvalues.put(this.NE_REAL_LAT, toAdd.getRealLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_REAL_LNG, toAdd.getRealLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_REAL_LAT, toAdd.getRealLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_REAL_LNG, toAdd.getRealLocation().getSouthWest().getLng());\n\tvalues.put(this.NE_MAP_LAT, toAdd.getMapLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_MAP_LNG, toAdd.getMapLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_MAP_LAT, toAdd.getMapLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_MAP_LNG, toAdd.getMapLocation().getSouthWest().getLng());\n\tvalues.put(this.HIGH_SPEC, toAdd.getHighSpectrumRange());\n\tvalues.put(this.LOW_SPEC, toAdd.getLowSpectrumRange());\n\n\tdb.insert(TABLE_NAME, null, values);\n\tdb.close(); // Closing database connection\n\n\treturn true;\n }", "public int saveTripUser(final TripUserTO trip_user) {\n\t\ttry {\n\t\t\tfinal int id = trip_user.getId();\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tthis.jdbcTemplate.update(new PreparedStatementCreator() {\n\t\t\t\tpublic PreparedStatement createPreparedStatement(\n\t\t\t\t\t\tConnection connection) throws SQLException {\n\t\t\t\t\tPreparedStatement pst = null;\n\t\t\t\t\tif (id > 0) {\n\t\t\t\t\t\tpst = connection\n\t\t\t\t\t\t\t\t.prepareStatement(\n\t\t\t\t\t\t\t\t\t\t\"update carbon_trip_user set user_id=?, trip_id=?, last_updated_date=?, st_from_lat=?, st_from_long=?, end_from_lat=?, end_from_long=?,\"\n\t\t\t\t\t\t\t\t\t\t+ \"km_travel=?,carbon_saving=?,pay_for_ride=?\"\n\t\t\t\t\t\t\t\t\t\t+ \" WHERE id=?\",\n\t\t\t\t\t\t\t\t\t\tnew String[] { \"id\" });\n\t\t\t\t\t\tpst.setInt(11, id);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpst = connection\n\t\t\t\t\t\t\t\t.prepareStatement(\n\t\t\t\t\t\t\t\t\t\t\"INSERT INTO carbon_trip_user(user_id, trip_id, last_updated_date, st_from_lat, st_from_long, end_from_lat, end_from_long,km_travel,carbon_saving,pay_for_ride\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ \") VALUES(?,?,?,?,?,?,?,?,?,?)\",\n\t\t\t\t\t\t\t\t\t\tnew String[] { \"id\" });\n\t\t\t\t\t}\n\t\t\t\t\tpst.setInt(1, trip_user.getUserId());\n\t\t\t\t\tpst.setInt(2, trip_user.getTripId());\t\n\t\t\t\t\tpst.setString(3, Utils.uiToDB(trip_user.getLastUpdatedDate()));\n\t\t\t\t\tpst.setString(4, trip_user.getStFromLat());\n\t\t\t\t\tpst.setString(5, trip_user.getStFromLong());\n\t\t\t\t\tpst.setString(6, trip_user.getEndToLat());\n\t\t\t\t\tpst.setString(7, trip_user.getEndToLong());\n\t\t\t\t\tpst.setString(8, trip_user.getKmTravel());\n\t\t\t\t\tpst.setString(9, trip_user.getCarbonSaving());\n\t\t\t\t\tpst.setInt(10, trip_user.getPayForRide());\n\t\t\t\t\treturn pst;\n\t\t\t\t}\n\t\t\t}, keyHolder);\n\t\t\t\n\t\t\tif(keyHolder.getKey() != null){\n\t\t\t\treturn keyHolder.getKey().intValue();\n\t\t\t} else if(id>0){\n\t\t\t\treturn id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in TripDAO:getting saveTrip\", e);\n\t\t}\n\t\treturn 0;\n\t}", "public BookedActivity getNewlyAddSavedTrip();", "boolean splitAndInsert(T t, Pair<String,LeafNode> ln){\n\n int splitTimes=0;\n\n Interval[] intervals = ln.second().getIntervals();\n assert intervals.length==leafNodeCapacity;\n Interval[] leftIntervals = new Interval[leafNodeCapacity];\n Interval[] rightIntervals = new Interval[leafNodeCapacity];\n Interval[] tempIntervals = null;\n\n int leftIntervalNumber=0;\n int rightIntervalNumber=0;\n TriangleShape lnTriangle = ln.second().triangle;\n String lnString=ln.first();\n TriangleShape leftTriangle=null;\n TriangleShape rightTriangle=null;\n String leftString=null;\n String rightString =null;\n\n while(leftIntervalNumber==0 || rightIntervalNumber==0){\n\n if(splitTimes==10000) {\n System.out.println(\"splitTimes=\"+splitTimes);\n System.out.println(\"you should increase the parameter leafNodeCapaity value!!!\");\n assert false;\n }\n else\n splitTimes++;\n\n leftTriangle=lnTriangle.leftTriangle();\n leftIntervalNumber=0;\n rightIntervalNumber=0;\n\n for(Interval i: intervals){\n if(Geom2DSuits.contains(leftTriangle,i.getLowerBound(),i.getUpperBound())){\n leftIntervals[leftIntervalNumber]=i;\n leftIntervalNumber++;\n }\n else{\n rightIntervals[rightIntervalNumber]=i;\n rightIntervalNumber++;\n }\n }\n\n if(leftIntervalNumber==0){//all located at left side\n rightTriangle = lnTriangle.rightTriangle();\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(leftString);\n lnTriangle = rightTriangle;\n lnString=rightString;\n\n tempIntervals=intervals;\n intervals=rightIntervals;\n rightIntervals=tempIntervals;\n }\n else if(rightIntervalNumber==0){//all located at right side\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(rightString);\n lnTriangle = leftTriangle;\n lnString=leftString;\n\n tempIntervals=intervals;\n intervals=leftIntervals;\n leftIntervals=tempIntervals;\n }\n else { //spit successfully\n\n leftString=lnString+\"0\";\n LeafNode leftNode = new LeafNode();\n leftNode.intervals=leftIntervals;\n leftNode.size=leftIntervalNumber;\n leftNode.triangle=leftTriangle;\n\n rightString = lnString+\"1\";\n LeafNode rightNode = new LeafNode();\n rightTriangle = lnTriangle.rightTriangle();\n rightNode.triangle=rightTriangle;\n rightNode.size=rightIntervalNumber;\n rightNode.intervals=rightIntervals;\n\n if(leftNode.insert(t)!=1){\n rightNode.insert(t);\n }\n\n Identifier lnPage =leafInfos.remove(ln.first());\n writeNode(leftNode,lnPage);\n Identifier rightPage = CommonSuits.createIdentifier(-1L);\n writeNode(rightNode,rightPage);\n\n leafInfos.put(leftString,lnPage);\n leafInfos.put(rightString,rightPage);\n return true;\n }\n }\n return false;\n }", "Long addTravel(Travel travel);", "int insert(Tour record);", "private void saveReceNave(Integer idVehi, Long idRecoNave, Double lat, Double lont, Long epoch) {\n\t\tclient.saveReceNave(idVehi, idRecoNave, lat, lont, epoch);\n\t}", "int insertSelective(Destinations record);", "public Trip() {}", "public void eliminarTripulante(Long id);", "public long insertTrip(Trip theTrip) {\n long rowID = 0;\n\n if (theTrip != null) {\n ContentValues dbData = fillContentValues(theTrip);\n\n // Open database for writing\n if (this.openWritableDB() == OPEN_SUCCESS) {\n // Insert the data into the database\n try {\n rowID = db.insertOrThrow(TRIP_TABLE, null, dbData);\n } catch (SQLException e) {\n // Log the exception\n }\n }\n\n // Close the connection\n this.closeConnection();\n }\n\n return rowID;\n }", "public void storeRegularDayTripStationScheduleWithRS();", "public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }", "private void saveMove(){\n\t\tpreviousTile=monster.currentTile;\r\n\t}", "int insert(Tourst record);", "private void UploadtoServerSavedLocaiton() {\n\t\tCursor c = database.rawQuery(\"SELECT * from locations \", null);\r\n\t\tString mName = null, mPolygon = null;\r\n\t\tbyte[] blob;\r\n\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tmName = c.getString(c.getColumnIndex(\"name\"));\r\n\t\t\t\t\tblob = c.getBlob(c.getColumnIndex(\"polygon\"));\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmPolygon = new String(blob, \"UTF-8\");\r\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tUploadSavedLocationtoServer(mName, mPolygon);\r\n\t\t\t\t} while (c.moveToNext());\r\n\t\t\t}\r\n\t\t\tif (mResponse.contains(\"Success\")) {\r\n\t\t\t\t// Success alert\r\n\t\t\t\tmaTitle = \"Success\";\r\n\t\t\t\tmaMessage = \"Field added successfully\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t\tuploadarraylist = new ArrayList<String>();\r\n\t\t\t\tmyList = new ArrayList<LatLng>();\r\n\t\t\t\tdatabase.execSQL(\"delete from locations\");\r\n\t\t\t\tSystem.err.println(\"database empty\");\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// Failure Alert\r\n\t\t\t\tmaTitle = \"Failure\";\r\n\t\t\t\tmaMessage = \"Error in adding field\\nTry again\";\r\n\t\t\t\tShowAlert(maTitle, maMessage);\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.close();\r\n\r\n\t}", "public long insertjourneydata(String User, String Mode, double StartLat, double StartLong , String Interimlocation, double EndLat, double EndLong, double Maxspeed, long Duration, double Distance , long StartTime, long EndTime )\n {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_USER, User);\n initialValues.put(KEY_MODE, Mode);\n initialValues.put(KEY_STARTLAT, StartLat);\n initialValues.put(KEY_STARTLONG, StartLong);\n initialValues.put(KEY_INTERIMLOCATION, Interimlocation);\n initialValues.put(KEY_ENDLAT, EndLat);\n initialValues.put(KEY_ENDLONG, EndLong);\n initialValues.put(KEY_MAXSPEED, Maxspeed);\n initialValues.put(KEY_DURATION, Duration);\n initialValues.put(KEY_DISTANCE, Distance);\n initialValues.put(KEY_STARTTIME, StartTime);\n initialValues.put(KEY_ENDTIME, EndTime);\n\n\n return db.insert(DATABASE_TABLE2, null, initialValues);\n }", "public Trip createTrip() {\n\n\t\t//Trip trip = new Trip();\n\n\t\tEditText name = (EditText) findViewById(R.id.trip_name);\n\t\tString trip_name = name.getText().toString();\n\t\ttrip.setName(trip_name);\n\n\t\tEditText location = (EditText) findViewById(R.id.location);\n\t\tString trip_location = location.getText().toString();\n\t\ttrip.setLocation(trip_location);\n\n\t\tEditText date = (EditText) findViewById(R.id.date);\n\t\tString trip_date = date.getText().toString();\n\t\ttrip.setTravelDate(trip_date);\n\n\t\tEditText time = (EditText) findViewById(R.id.time);\n\t\tString trip_time = time.getText().toString();\n\t\ttrip.setTravelTime(trip_time);\n\n\t\tEditText meeting_spot = (EditText) findViewById(R.id.meeting_spot);\n\t\tString meet_spot = meeting_spot.getText().toString();\n\t\ttrip.setMeetSpot(meet_spot);\n\n\t\t/*EditText participants = (EditText) findViewById(R.id.participants);\n\t\tString trip_participants = participants.getText().toString();\n\t\tString[] friendsArray;\n\t\tint numOfParticipants = 0;\n\t\tArrayList<Person> friends = new ArrayList<Person>();\n\t\tif(trip_participants.equals(\"\")) {\n\t\t\tfriends = null;\n\t\t} else {\n\t\t\tfriendsArray = trip_participants.split(\",\");\n\t\t\tint arrayLength = friendsArray.length;\n\t\t\tfor(int i=0; i<arrayLength; i++) {\n\t\t\t\tPerson person = new Person(friendsArray[i].trim());\n\t\t\t\tfriends.add(person);\n\t\t\t\tnumOfParticipants++;\n\t\t\t}\n\t\t}*/\n\n\t\t/*Trip trip = new Trip(trip_name, 1001, numOfParticipants, trip_location, trip_time, trip_date,\n\t\t\t\tfriends, meet_spot);*/\n\n\t\ttrip.setPersons(persons);\n\t\treturn trip;\n\t}", "Lancamento persistir(Lancamento lancamento);", "protected void onRestoreInstanceState(Bundle savedInstanceState) {\n Log.e(TAG, \"++ RESTORING!!! ++\");\n super.onRestoreInstanceState(savedInstanceState);\n ArrayList<String> tempDestNames = savedInstanceState.getStringArrayList(\"dName\");\n double[] tempDestLongs = savedInstanceState.getDoubleArray(\"dLong\");\n double[] tempDestLats = savedInstanceState.getDoubleArray(\"dLat\");\n ArrayList<String> tempDestAddr = savedInstanceState.getStringArrayList(\"dAddr\");\n\n orderedDestinations.clear();\n for(int i=0; i<tempDestNames.size(); i++){\n Destination tempDest = new Destination(tempDestNames.get(i),tempDestLongs[i],tempDestLats[i]);\n tempDest.address = tempDestAddr.get(i);\n orderedDestinations.add(tempDest);\n }\n\n polylineEncodedString = savedInstanceState.getString(\"poly\");\n buildTable();\n }", "public T trip() {\n return trip;\n }", "@Transactional\n DataRistorante insert(DataRistorante risto);", "int insert(Destinations record);", "@Override\n public boolean insertar(T dato){\n //Si el arbol se encuentra vacio\n if (esVacio()) {\n super.setRaiz(new NodoBin<T>(dato));\n return (true);\n } \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n // Si el dato es menor a la raiz\n if (cmp < 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setIzq(super.getRaiz().getIzq());\n n.setDer(super.getRaiz());\n super.getRaiz().setIzq(null);\n super.setRaiz(n);\n return (true);\n }\n // Si el dato es mayor a la raiz\n else if (cmp > 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setDer(super.getRaiz().getDer());\n n.setIzq(super.getRaiz());\n super.getRaiz().setDer(null);\n super.setRaiz(n);\n return (true);\n }\n return (false);\n }", "public boolean getSAVETRIP() {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getBoolean(\"SAVETRIP\", false);\n\t}", "public boolean addBikeData(BikeData bd, int tripId){\n int CHARGING_LEVEL_0 = 0;\n \tint bikeId = bd.getBikeId();\n \ttry(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(INSERT_DATA)){\n \n ps.setInt(1, bikeId);\n ps.setTimestamp(2, bd.getSqlDateTime());\n ps.setDouble(3,bd.getLatitude());\n ps.setDouble(4, bd.getLongitude());\n \n if(bd.getChargingLvl() > 0){\n ps.setDouble(5, bd.getChargingLvl());\n }else{\n ps.setDouble(5, CHARGING_LEVEL_0);\n }\n if(tripId == 0){\n ps.setNull(6, INTEGER); \n }else{\n ps.setInt(6, tripId);\n }\n System.out.println(\"SETTING TRIP ID\" + tripId + \"BIKE ID : \" + bikeId);\n ps.executeUpdate();\n return true;\n \n }catch(Exception e) {\n System.out.println(\"Exception at addBikeData \" + e);\n }\n return false;\n }", "void saveCurrentStation();", "public void backTrack (){\n LinkedList<Integer> v = new LinkedList<> (); //Lista de vecinos.\n boolean mover = false;\n int r = 0;\n while (!mover && v.size () < 4){\n r = rnd.nextInt (4);\n\t\t//Hay un vecino disponible.\n\t\t//Nos podemos mover.\n if (vecinoDisponible (r))\n\t\t mover = true;\n if (!v.contains (r))\n v.add (r);\n\t }\n\t if (mover){\n\t\t//Nos movemos a la siguiente dirección.\n\t\ttumbaMuros (r);\n\t\tmoverLaberinto (r);\n\t }else if (!p.empty ()){\n\t\t//Nos movemos a la celda previa\n\t\t//pues no hay vecnos a los que movernos\n\t\tCelda a = p.pop ();\n\t\tt.posY = a.celdaY;\n\t\tt.posX = a.celdaX; \n\t }\n \n terminado = p.isEmpty();\n\t}", "@Override\n\t\tpublic void finishIteration() {\n\t\t\trailroad.save();\n\t\t\tSystem.out.println(\"SAVING!\");\n\t\t\tsuper.finishIteration();\n\t\t}", "@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == Activity.RESULT_OK) {\n try {\n if(requestCode == CREATE_WAYPOINT_REQUEST) {\n Bundle extras = data.getExtras();\n String descText = data.getStringExtra(\"DESC_TEXT\");\n String[] images = data.getStringArrayExtra(\"IMAGES_LIST\");\n\n Waypoint waypoint = new Waypoint(currentRoute.getId());\n waypoint.setDescription(descText);\n waypoint.setPhoto(images);\n waypoint.setTimestamp(System.currentTimeMillis());\n waypoint.setLat(this.lat);\n waypoint.setLng(this.lng);\n /*\n GPS CODE - OR getLastKnownPosition()\n */\n\n\n DatabaseHandler bhhandle = new DatabaseHandler(this.getApplicationContext());\n bhhandle.addWaypoint(waypoint);\n\n\n //Toast.makeText(this.getApplicationContext(),descText,1000);\n //STORE IN DATABASE\n //SEND TO SERVER\n //SUMMON CTHULHU\n } else if (requestCode == CREATE_WALK_REQUEST) {\n\t /*Handle the new route*/\n\t Bundle extras = data.getExtras();\n\t\n\t String shortDes = data.getStringExtra(\"SHORT_STRING\");\n\t String longDes = data.getStringExtra(\"LONG_STRING\");\n\t String title = data.getStringExtra(\"TITLE_STRING\");\n\t\n\t this.currentRoute = new Route(title,shortDes,longDes);\n\t\n\t DatabaseHandler db = new DatabaseHandler(this.getApplicationContext());\n\t currentRoute.setId(db.addRoute(currentRoute));\n\t TextView label = (TextView) findViewById(R.id.txtTourRunning);\n\t label.setText(\"Current Tour: \" + currentRoute.getTitle());\n\t\n\t if(currentRoute.getId() <= 0) {\n\t Toast.makeText(MainActivity.this,\"Database Write Failure\", Toast.LENGTH_LONG).show();\n } else {\n \t\n \t}\n \t}\n \t} catch (NullPointerException e) {\n Toast.makeText(MainActivity.this, \"Something bad happened\", Toast.LENGTH_LONG).show();\n }\n }\n }", "public void saveRoute() {\n\t\t/** if internet then store this in the database */\n\t\tif (Internet.isNetworkAvailable(LoginActivity.getAppContext())) {\n\t\t\tHTIDatabaseConnection lHtiDbConnection = HTIDatabaseConnection\n\t\t\t\t\t.getInstance();\n\t\t\tif (lHtiDbConnection.getRoute(this.mRouteId) == null) {\n\t\t\t\tString errors = lHtiDbConnection.addRoute(this);\n\t\t\t\tif (errors != null) {\n\t\t\t\t\tLog.w(LogTag.WRITEDB,\n\t\t\t\t\t\t\t\"Errors during add route in the database : \\n\"\n\t\t\t\t\t\t\t\t\t+ errors);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLog.w(LogTag.WRITEDB, \"The route with the id (\" + this.mRouteId\n\t\t\t\t\t\t+ \") already exist in the database.\");\n\t\t\t}\n\t\t}\n\t\t/** else store this in a JSON file (FILENAMEROUTE) */\n\t\telse {\n\t\t\tJsonManager.addRoutesInJson(MainActivity.FILENAMEROUTE, this,\n\t\t\t\t\tLoginActivity.getAppContext());\n\t\t}\n\t}", "int insertSelective(Tourst record);", "private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }", "public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}", "@Override\n\tpublic void writeToParcel(Parcel pDest, int pFlags) {\n\t\tmRoutePointsTemp = new ArrayList<WaypointMAP>();\n\t\tfor (BasicDBObject lDbObject : mRoutePoints) {\n\t\t\tmRoutePointsTemp.add(new WaypointMAP(Double.parseDouble(lDbObject\n\t\t\t\t\t.get(\"waypointLat\").toString()), Double\n\t\t\t\t\t.parseDouble(lDbObject.get(\"waypointLng\").toString())));\n\t\t}\n\t\t/** WriteToParcel */\n\t\tpDest.writeInt(this.mRouteId);\n\t\t// dest.writeFloat(this.routeKm);\n\t\tpDest.writeList(this.mRoutePointsTemp);\n\t}", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "public Integer getTrip() {\n return trip;\n }", "public static Task<String> addTrip(Map<String, Object> data) {\n // add the trip to the database\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .add(data)\n .continueWith(new Continuation<DocumentReference, String>() {\n @Override\n public String then(@NonNull Task<DocumentReference> task) {\n DocumentReference doc = task.getResult();\n if (doc != null) return doc.getId();\n else return \"\";\n }\n });\n }", "private void writeGPSDataToDB(String lat, String lon, String alt) {\n databaseHandler.setValueInExpInfo(lat, \"receiver_latitude\", experimentNumber);\n databaseHandler.setValueInExpInfo(lon, \"receiver_longitude\", experimentNumber);\n databaseHandler.setValueInExpInfo(alt, \"receiver_altitude\", experimentNumber);\n }", "private void move(boolean aller, Road[][] BoarderRoad){\n \n int q=(int)((hour*60+minute)/5)-1;//je pense que le int prend l'arrondi et pas la partie entière\n Iterator iter= this.allInhabDeparture.get(q).iterator();\n while (iter.hasNext()){\n Inhabitant curin = (Inhabitant)iter.next();\n this.onTheRoadAgain.add(curin);\n curin.testChemin(aller);\n }\n Iterator it = this.onTheRoadAgain.iterator();\n while (it.hasNext()) {\n Inhabitant curin = (Inhabitant)it.next();\n if(curin.MovingPath(boardRoad.BoardRoad)==true){\n onTheRoadAgain.remove(curin);\n }\n \n\n }\n }", "public void borrarTodosTripulantes();", "@Override\n\tpublic void guardar() {\n\t\t\n\t}", "public static void guardarEstudianteBD(Estudiante estudiante) {\r\n //metimos este metodo dentro de la base de datos \r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n //ingresamos la direccion donde se encuntra la base de datos \r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.println(\"Conexion establecida!\");\r\n Statement sentencia = (Statement) conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"insert into estudiante values(\"\r\n + \"'\" + estudiante.getNro_de_ID()\r\n + \"','\" + estudiante.getNombres()\r\n + \"','\" + estudiante.getApellidos()\r\n + \"','\" + estudiante.getLaboratorio()\r\n + \"','\" + estudiante.getCarrera()\r\n + \"','\" + estudiante.getModulo()\r\n + \"','\" + estudiante.getMateria()\r\n + \"','\" + estudiante.getFecha()\r\n + \"','\" + estudiante.getHora_Ingreso()\r\n + \"','\" + estudiante.getHora_Salida()\r\n + \"')\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n\r\n } catch (Exception ex) {\r\n System.out.println(\"Error en la conexion\" + ex);\r\n }\r\n }", "public void guardarTransferenteAlcabala(RaTransferenteAlcabala raTransferenteAlcabala)throws Exception;", "void reorganizeTriples(ProgressListener listener);", "public void addTrip(Trip trip) {\n\n\t\tsessionFactory.getCurrentSession().save(trip);\n\n\t}", "public void Sauvegarder(Partie p) {\n if (SaveNum > 0 && SaveNum < 10) {\n //System.out.println(\"index ok\");\n try {\n if (erase) {\n slot[SaveNum - 1].delete();\n }\n //System.out.println(\"Try start\");\n //File f = new File(i + \".\" + p.getJoueur1().getNom() + \"-vs-\" + p.getJoueur2().getNom() + \".ser\");\n SaveName = (SaveNum - 1 + \"-\" + SaveName + \".ser\");\n File fichier = new File(SavePath + SaveName);\n FileOutputStream fos = new FileOutputStream(fichier);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //System.out.println(\"ok\");\n oos.writeObject(p);\n //System.out.println(\"ok\");\n oos.close();\n //slot[i] = fichier;\n SaveName = \"Sauvegarde\";\n //System.out.println(\"Save Done\" + SaveNum);\n SaveNum = 20;\n } catch (IOException | NullPointerException e) {\n System.out.println(\"Erreur lors de la sauvegarde du fichier\");\n }\n }\n }", "private void saveNewFlat() {\n// validateData();\n try {\n// Property parseableProperty = new Property();\n// newFlat.setAddressLine1(createdProperty.getAddrline1());\n\n newFlat.setAddressLine1(actvProperty.getText().toString().trim());\n\n// for(Property prt : propertyList){\n// if(prt.getAddrline1().matches(newFlat.getAddressLine1())){\n// newFlat.setPostcode(prt.getPostcode());\n// parseableProperty = prt;\n// }\n// }\n\n newFlat.setPostcode(createdProperty.getPostcode());\n\n newFlat.setNotes(etFlatNotes.getText().toString());\n\n newFlat.setFlatNum(\"Flat \" + etFlatNum.getText().toString());\n\n if (addTenant) {\n// newFlat.setTenant(flatTenant.getText().toString());\n newFlat.setTenant(addedTenant.getTenantKey());\n\n Firebase changeTenant = tenantRef.child(addedTenant.getTenantKey());\n Map<String, Object> tenantMap = new HashMap<>();\n tenantMap.put(\"property\", (newFlat.getAddressLine1() + \" - \" + newFlat.getFlatNum()));\n tenantMap.put(\"currentTenant\", true);\n tenantMap.put(\"tenantKey\", null);\n changeTenant.updateChildren(tenantMap);\n\n// String fullName;\n// for (Tenant tnt : tenantList) {\n// if (!tnt.getMiddlename().matches(\"\")) {\n// fullName = tnt.getForename() + \" \" + tnt.getMiddlename() + \" \" + tnt.getSurname();\n// } else {\n// fullName = tnt.getForename() + \" \" + tnt.getSurname();\n// }\n//\n// if (fullName.matches(flatTenant.getText().toString().trim())) {\n// changeTenant = tenantRef.child(tnt.getTenantKey());\n//\n// Map<String, Object> tenantMap = new HashMap<>();\n// tenantMap.put(\"property\", (newFlat.getAddressLine1() + \" - \" + newFlat.getFlatNum()));\n// tenantMap.put(\"currentTenant\", true);\n// tenantMap.put(\"tenantKey\", null);\n// changeTenant.updateChildren(tenantMap);\n// break;\n// }\n// }\n\n\n }\n\n Firebase newFlatRef = new Firebase(getString(R.string.flats_location));\n newFlatRef.push().setValue(newFlat);\n\n // Inform user of success\n new AlertDialog.Builder(this)\n .setTitle(\"Success\")\n .setMessage(newFlat.getFlatNum() + \" has been added to \" + newFlat.getAddressLine1())\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n startActivity(new Intent(CreateFlat.this, PropertyDetails.class).putExtra(\"parceable_property\", createdProperty));\n finish();\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n\n } catch (Exception e) {\n Toast.makeText(CreateFlat.this, \"Something went wrong. Flat NOT created.\", Toast.LENGTH_SHORT).show();\n }\n\n\n }", "void unsaveCurrentStation();", "public void insertarcola(){\n Cola_banco nuevo=new Cola_banco();// se declara nuestro metodo que contendra la cola\r\n System.out.println(\"ingrese el nombre que contendra la cola: \");// se pide el mensaje desde el teclado\r\n nuevo.nombre=teclado.next();// se ingresa nuestro datos por consola yse almacena en la variable nombre\r\n if (primero==null){// se usa una condicional para indicar si primer dato ingresado es igual al null\r\n primero=nuevo;// se indica que el primer dato ingresado pasa a ser nuestro dato\r\n primero.siguiente=null;// se indica que el el dato ingresado vaya al apuntador siguente y que guarde al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo en la cabeza de nuestro cola\r\n }else{// se usa la condicon sino se cumple la primera\r\n ultimo.siguiente=nuevo;//se indica que ultimo dato ingresado apunte hacia siguente si es que hay un nuevo dato ingresado y que vaya aser el nuevo dato de la cola\r\n nuevo.siguiente=null;// se indica que el nuevo dato ingresado vaya y apunete hacia siguente y quees igual al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo dato\r\n }\r\n System.out.println(\"\\n dato ingresado correctamente\");// se imprime enl mensaje que el dato ha sido ingresado correctamente\r\n}", "int insert(PathologyInfo record);", "public Triplet add(Triplet t) throws DAOException;", "public void saveAll(Population p) {\r\n\t\tfor(int index=0;index<p.populationSize();index++) {\r\n\t\t\t tours[index]=p.getTour(index);\r\n\t\t}\r\n\t\t\r\n\t }", "public int saveRideDetail(String source,String destination,String timestamp,String userid,String type,String schedule,String sourcell,String destinationll,String genderpre)\n {\n int i=0;\n try\n {\n Connection con=getConnection();\n Double ts=Double.parseDouble(timestamp);\n PreparedStatement displaySta = con.prepareStatement(\"insert into ridedata(timestamp,source,destination,userid,type,schedule,sourcell,destinationll,pref,done)values(?,?,?,?,?,?,?,?,?,?)\");\n displaySta.setString(1, timestamp );\n displaySta.setString(2, source );\n displaySta.setString(3, destination );\n displaySta.setString(4, userid );\n displaySta.setString(5, type );\n displaySta.setString(6, schedule );\n displaySta.setString(7, sourcell );\n displaySta.setString(8, destinationll );\n displaySta.setString(9,genderpre);\n displaySta.setString(10,\"No\");\n i=displaySta.executeUpdate();\n displaySta.close();\n con.close();\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n }\n \n \n return i;\n }", "@Override\n\tpublic BaseResponse createTrip(Trip trip) {\n\t\tBaseResponse res = new BaseResponse();\n\t\ttry {\n\t\t\t/*List<Trip> list = namedParameterJdbcTemplate.query(sql,\n\t\t\t\t\tgetSqlParameterByModel(new Trip(trip.getTripName())), new TripMapper());\n\t\t\tif (list.size() > 0) {\n\t\t\t\tres.setMesssageCode(\"002\");\n\t\t\t\tres.setMessage(\"Trip name already exist!\");\n\t\t\t} else {*/\n\t\t\t\tinsertTrip(trip);\n\t\t\t\tres.setMesssageCode(\"000\");\n\t\t\t\tres.setMessage(\"Successful !\");\n\n\t\t\t//}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in create trip => \" + e.getMessage());\n\t\t\tres.setMesssageCode(\"003\");\n\t\t\tres.setMessage(e.getMessage());\n\t\t}\n\n\t\treturn res;\n\n\t}", "public ArrayList<Integer> path2Dest(int s, int t, int k, int method){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] d = new double[intersection];\n int[] parent = new int[intersection];\n\n for (int i = 0; i <intersection ; i++) {\n d[i] = INFINITY;\n parent[i] = -1;\n }\n d[s] = 0;\n\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,d[i]);\n }\n while(!minHeap.isEmpty()){\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n double newKey =0;\n double currentKey=0;\n if(method==1) { //method 1\n newKey = d[extractedVertex] + edge.weight;\n currentKey = d[destination];\n }\n else{ //method 2\n newKey = d[extractedVertex] + edge.weight + coor[destination].distTo(coor[t])-coor[extractedVertex].distTo(coor[t]);\n currentKey = d[destination];\n }\n if(currentKey>=newKey){\n if(currentKey==newKey){ //if equal need to compare the value of key\n if(extractedVertex<parent[destination]){\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n else {\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n }\n }\n }\n //trace back the path using parent properties\n ArrayList<Integer> path = new ArrayList<>();\n if(parent[t]!=-1){\n path.add(t);\n while(parent[t]!= s) {\n path.add(0,parent[t]);\n t = parent[t];\n }\n path.add(0,s);\n }\n else\n path = null;\n return path;\n }", "public static void registrarOperacionPrestamo(Usuario autor, long idPrestamo, Operacion operacion) throws DaoException {\r\n String msg = null;\r\n Prestamo prestamo = PrestamoDao.findPrestamoById(idPrestamo, null);\r\n Conexion con = null;\r\n try {\r\n HashMap<String, String> infoPrestamo;\r\n HashMap<String, Object> infoOperacion = new HashMap<String, Object>();\r\n infoOperacion.put(\"ID\", Consultas.darNumFilas(Operacion.NOMBRE_TABLA)+1);\r\n infoOperacion.put(\"FECHA\", Consultas.getCurrentDate());\r\n infoOperacion.put(\"TIPO\", operacion.getTipo());\r\n infoOperacion.put(\"ID_AUTOR\", autor.getId());\r\n\r\n \r\n con=new Conexion();\r\n switch (operacion.getTipo()) {\r\n case Operacion.PAGAR_CUOTA:\r\n PrestamoDao.registrarPagoCuota(prestamo,con);\r\n infoOperacion.put(\"MONTO\", prestamo.getValorCuota());\r\n infoOperacion.put(\"DESTINO\", \"0\");\r\n infoOperacion.put(\"METODO\", operacion.getMetodo());\r\n infoOperacion.put(\"ID_PRESTAMO\", prestamo.getId()); \r\n \r\n break;\r\n case Operacion.PAGAR_CUOTA_EXTRAORDINARIA:\r\n \r\n //solo gasta lo necesario par apagar el prestamo\r\n if (operacion.getMonto()>prestamo.getCantidadRestante())\r\n {\r\n throw new DaoException(\"La cuota supera lo que debe\");\r\n }\r\n \r\n infoOperacion.put(\"MONTO\", operacion.getMonto());\r\n infoOperacion.put(\"DESTINO\",\"0\" );\r\n infoOperacion.put(\"METODO\", operacion.getMetodo());\r\n infoOperacion.put(\"ID_PRESTAMO\", prestamo.getId()); \r\n PrestamoDao.registrarPagoCuotaExtraordinaria(prestamo,operacion,con);\r\n break;\r\n case Operacion.CERRAR:\r\n if (prestamo.getCantidadRestante() != 0) {\r\n throw new DaoException( \"El prestamo no se ha pagado completamente\");\r\n } else {\r\n \r\n Consultas.insertar(null, infoOperacion, Operacion.infoColumnas, Operacion.NOMBRE_TABLA);\r\n String sentenciaCerrar = \"UPDATE PRESTAMOS SET ESTADO='CERRADO' WHERE ID=\" + prestamo.getId();\r\n con.getConexion().prepareStatement(sentenciaCerrar).executeUpdate();\r\n \r\n }\r\n \r\n }\r\n \r\n Consultas.insertar(con, infoOperacion, Operacion.infoColumnas, Operacion.NOMBRE_TABLA);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(OperacionDao.class.getName()).log(Level.SEVERE, null, ex); \r\n con.rollback();\r\n throw new DaoException();\r\n }\r\n\r\n \r\n }", "private void saveLocation()\n {\n willLocationBeSaved = !willLocationBeSaved;\n }", "public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "public void guardarDestruccion() {\n try {\n produccion.setIdMarca(opcionMarca);\n produccion.setIdPlantaProd(opcionPlanta);\n produccion.setIdPaisOrigen(opcionOrigen);\n produccion.setIdTipoRetro(opcionTipo);\n produccion.setFechProduccion(new Date());\n produccion.setDescPaisOrigen(desperdiciosHelper.getNombrePais());\n\n if (!habilitarBtnValidarProd()) {\n if (produccion != null) {\n produccion = produccionService.guardaDestruccion(produccion);\n super.msgInfo(MSGEXITOVALIDAPROD);\n desperdiciosHelper.setDeshabilitaBtnValidarProd(true);\n desperdiciosHelper.setDeshabilitaCargaArchivo(false);\n } else {\n super.msgError(MSGERRORVALIDARPROD);\n }\n }\n } catch (ProduccionServiceException e) {\n LOGGER.error(\"ERROR: Al guardar los datos de produccion\" + e.getMessage(), e);\n }\n }", "private void saveData() {\n }", "protected ArrayList<Integer> bepaalTrioSpelers(Groep groep) {\r\n ArrayList<Integer> trio = new ArrayList<>();\r\n if (groep.getSpelers().size() == 3) {\r\n \t// 3 spelers, dus maak gelijk trio\r\n trio.add(groep.getSpelers().get(0).getId());\r\n trio.add(groep.getSpelers().get(1).getId());\r\n trio.add(groep.getSpelers().get(2).getId());\r\n return trio;\r\n }\r\n int spelerID = 0;\r\n try {\r\n spelerID = IJCController.c().getBeginpuntTrio(groep.getSpelers().size());\r\n }\r\n catch (Exception e) {\r\n \tlogger.log(Level.WARNING, \"Problem with spelersID. No int.\");\r\n }\r\n int minDelta = 1;\r\n int plusDelta = 1;\r\n int ignore = 0;\r\n boolean doorzoeken = true;\r\n while (doorzoeken) {\r\n Speler s1 = groep.getSpelerByID(spelerID);\r\n Speler s2 = groep.getSpelerByID(spelerID - minDelta);\r\n Speler s3 = groep.getSpelerByID(spelerID + plusDelta);\r\n if (isGoedTrio(s1, s2, s3, ignore)) {\r\n trio.add(s1.getId());\r\n trio.add(s2.getId());\r\n trio.add(s3.getId());\r\n return trio;\r\n } else {\r\n if ((s2 == null) || (s3 == null)) {\r\n if (ignore > 4) {\r\n doorzoeken = false;\r\n }\r\n ignore += 1;\r\n minDelta = 1;\r\n plusDelta = 1;\r\n } else {\r\n if (minDelta > plusDelta) {\r\n plusDelta++;\r\n } else {\r\n minDelta++;\r\n }\r\n }\r\n }\r\n }\r\n return trio;\r\n }", "public abstract void leerPersistencia();", "@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }", "int insertSelective(Shipping record);", "public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n StringBuilder stringBuilder;\n PreparedStatement preparedStatement;\n MaplePet a2;\n if (!a2.a) {\n return;\n }\n try {\n druidPooledConnection2 = DBConPool.getInstance().getDataSource().getConnection();\n try {\n preparedStatement = druidPooledConnection2.prepareStatement(ConcurrentEnumMap.ALLATORIxDEMO(\";\\t*\\u0018:\\u001cN)\\u000b-\\u001dy=\\u001c:y\\u00008\\u0003<NdNfBy\\u0002<\\u0018<\\u0002ySyQuN:\\u00026\\u001d<\\u0000<\\u001d*NdNfBy\\b,\\u00025\\u0000<\\u001d*NdNfBy\\u001d<\\r6\\u0000=\\u001dySyQuN?\\u00028\\t*NdNfBy\\u000b!\\r5\\u001b=\\u000b=NdNfNuN*\\u001e<\\u000b=NdNfBy\\f,\\b?\\u001d2\\u00075\\u00020\\nySyQuN:\\u000f7>0\\r2;)NdNfBy\\u001d2\\u00075\\u00020\\nySyQy9\\u0011+\\u000b+y\\u001e<\\u001a0\\nySyQ\"));\n try {\n int n2;\n PreparedStatement preparedStatement2 = preparedStatement;\n PreparedStatement preparedStatement3 = preparedStatement;\n preparedStatement.setString(1, a2.h);\n preparedStatement3.setByte(2, a2.e);\n preparedStatement3.setShort(3, a2.B);\n preparedStatement2.setByte(4, a2.H);\n preparedStatement2.setInt(5, a2.J);\n preparedStatement.setShort(6, a2.k);\n stringBuilder = new StringBuilder();\n int n3 = n2 = 0;\n while (n3 < a2.d.length) {\n stringBuilder.append(a2.d[n2]);\n stringBuilder.append(KoreanDateUtil.ALLATORIxDEMO(\"V\"));\n n3 = ++n2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable2;\n if (preparedStatement != null) {\n try {\n preparedStatement.close();\n throwable2 = throwable;\n throw throwable2;\n }\n catch (Throwable throwable3) {\n throwable.addSuppressed(throwable3);\n }\n }\n throwable2 = throwable;\n throw throwable2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable4;\n if (druidPooledConnection2 != null) {\n try {\n druidPooledConnection2.close();\n throwable4 = throwable;\n throw throwable4;\n }\n catch (Throwable throwable5) {\n throwable.addSuppressed(throwable5);\n }\n }\n throwable4 = throwable;\n throw throwable4;\n }\n }\n catch (SQLException sQLException) {\n FilePrinter.printError(ConcurrentEnumMap.ALLATORIxDEMO(\"\\u0014\\u000f)\\u0002<><\\u001aw\\u001a!\\u001a\"), sQLException, KoreanDateUtil.ALLATORIxDEMO(\"e\\u001b`\\u001fB\\u0015R\\u0018\"));\n return;\n }\n {\n String string = stringBuilder.toString();\n PreparedStatement preparedStatement4 = preparedStatement;\n PreparedStatement preparedStatement5 = preparedStatement;\n PreparedStatement preparedStatement6 = preparedStatement;\n String string2 = string;\n preparedStatement6.setString(7, string2.substring(0, string2.length() - 1));\n preparedStatement6.setInt(8, a2.ALLATORIxDEMO);\n preparedStatement5.setInt(9, a2.I);\n preparedStatement5.setShort(10, a2.K);\n preparedStatement4.setInt(11, a2.M);\n preparedStatement4.setInt(12, a2.D);\n preparedStatement4.executeUpdate();\n a2.a = false;\n if (preparedStatement == null) break block17;\n druidPooledConnection = druidPooledConnection2;\n }\n preparedStatement.close();\n break block18;\n }\n druidPooledConnection = druidPooledConnection2;\n }\n if (druidPooledConnection == null) return;\n druidPooledConnection2.close();\n }", "private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}", "public void _taskworkGuardar(){\n\t\tboolean si_a_todo=false;\n\t\tboolean no_a_todo=false;\n\t\tboolean omitir_errores=false;\n\t\tboolean omitir_errores_formacion=false;\n\t\t\n\t\tthis.lenght=this.getSelected();\n\t\tcurrent=0;\n\t\t\n\t\tif (frame.getJTable()!=null){\n\t\t\tint i=0; \n\t\t\twhile (i<frame.getJTable().getRowCount() & !canceled){\n\t\t\t\tboolean b=false;\n\t\t\t\tString idarticulo=\"\";\n\t\t\t\tString idarticulo2=\"\";\n\t\t\t\ttry {\n\t\t\t\t\tb=(Boolean) frame.getJTable().getValueAt(i,0);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString q=\"\";\n\t\t\t\t\n\t\t\t\tif (b){\n\t\t\t\t\testado=\"Guardando \"+idarticulo;\n\t\t\t\t\tcurrent++;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tidarticulo=(String)frame.getJTable().getValueAt(i,1);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tidarticulo2=(String)frame.getJTable().getValueAt(i,3);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tboolean check=(idarticulo.compareTo(\"\")!=0 & idarticulo2.compareTo(\"\")!=0);\n\t\t\t\t\tif (check){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (data.exist_equivalencia(idarticulo, idarticulo2)){\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tq=data.getInsert(idarticulo, idarticulo2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tthis.errors++;\n\t\t\t\t\t\tif (!omitir_errores_formacion){\n\t\t\t\t\t\t\tint n=this._preguntar_si_omite_error_en_formacion_de_alias(idarticulo);\n\t\t\t\t\t\t\tif (n==1){\n\t\t\t\t\t\t\t\tomitir_errores_formacion=true;\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (q.compareTo(\"\")!=0){\n\t\t\t\t\tboolean check=(idarticulo.compareTo(\"\")!=0 & idarticulo2.compareTo(\"\")!=0);\n\t\t\t\t\tif (check){\n\t\t\t\t\t\tif (q.compareTo(\"\")!=0){\n\t\t\t\t\t\t\tdata.clearBatch();\n\t\t\t\t\t\t\tdata.addBatch(q);\n\t\t\t\t\t\t\tboolean error=data.executeBatch();\n\t\t\t\t\t\t\tif (error){\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!omitir_errores_formacion){\n\t\t\t\t\t\t\t\tint n=this._preguntar_si_omite_error_en_formacion_de_alias(idarticulo);\n\t\t\t\t\t\t\t\tif (n==1){\n\t\t\t\t\t\t\t\t\tomitir_errores_formacion=true;\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\t\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\t\n\t\t}\n\t\tif (this.getSelected()>0){\n\t\t\t\tif (!canceled){\n\t\t\t\t\tthis._aviso_operacion_completa(\"Guardar\");\t\n\t\t\t\t}else{\n\t\t\t\t\tthis._aviso_operacion_cancelada(\"Guardar\");\n\t\t\t\t}\n\t\t}else {\n\t\t\t\tthis._aviso_requiere_seleccion();\t\n\t\t}\t\n\t\tdone = true;\n\t\t\n\t\t\n\t}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public Trip(Parcel p) \n\t{\n\t\tp.readTypedList(friends, Person.CREATOR);\n\t\ttripId = p.readLong();\n\t\tserverRefId = p.readLong();\n\t\ttripName = p.readString();\n\t\tdestinationName = p.readString();\n\t\tcreator = p.readString();\n\t\tdate = new Date(p.readLong());\n\t}", "@Test\n void insertWithTripSuccess() {\n String newUserFirst = \"Dave\";\n String newUserLast = \"Bowman\";\n String newUserEmail = \"dbowman@yahoo.com\";\n String newUserUname = \"dbowman1\";\n String newUserPassword = \"Supersecret2!\";\n String tripCityLoc = \"MILWWI\";\n int tripCount = 6;\n String tripRating = \"5\";\n String tripComment = \"Definitely worth a second look\";\n Date today = new Date();\n User newUser = new User(newUserFirst, newUserLast, newUserEmail, newUserUname, newUserPassword, today);\n //Usertrip newUserTrip = new Usertrip(newUser, tripCityLoc, tripCount, tripRating, tripComment, today);\n //newUser.addTrip(newUserTrip);\n //int id = dao.insert(newUser);\n //assertNotEquals(0, id);\n //User insertedUser = (User) dao.getById(id);\n //assertNotNull(insertedUser);\n //assertEquals(\"dbowman1\", insertedUser.getUserName());\n //assertEquals(1, insertedUser.getUsertrips().size());\n\n }", "int insert(TCar record);", "@Override\n\tpublic void insert(UserFlight userFlight) {\n\t\t\n\t}", "public void undo(){\n if(!isFreeDraw) { //in waypoint mode delete the last point\n int size = mMapInterface.getPathFrame().size();\n if (size >= 1) {\n isPathReady=false;\n mMapInterface.getPathFrame().remove(size - 1);\n pointsCounter--;\n googleMap.clear();\n drawLine();\n }\n }\n else{ //in continu mode delete all path\n deletePath();\n drawFree();\n }\n }", "public void insertar(int rafaga, int tiempo) {\n\t\tif (rafaga <= 0 || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.id = String.valueOf((char) this.caracter);\n\t\tthis.caracter++;\n\t\tnuevo.rafaga = rafaga;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.ColaProviene = this.NombreCola;\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += rafaga;\n\t\tthis.Ordenamiento();\n\t}", "public void guardar() {\n String msj = \"\";\n int idpagoanulado = daoPagoCuotaAnulado.nuevoID();\n Date SYSDATE = new Date();\n java.sql.Timestamp fechaPagoCuotaAnuladoSQL = new java.sql.Timestamp(SYSDATE.getTime());\n String observacion = txtObservacion.getText();\n int idmotivo = Integer.parseInt(txtCodigoMotivo.getText());\n int idusuario = appLogin.IDUSUARIO;\n int idpago =Integer.parseInt(txtNumeroPago.getText());\n Date fechapago = daoCotizacion.parseFecha(txtFechaPago.getText());\n java.sql.Date fechapagoSQL = new java.sql.Date(fechapago.getTime());\n double mPago = montoPago;\n String numerocomprobante = txtComprobante.getText();\n String numerorecibo = txtRecibo.getText();\n //VALIDACIONES\n if (idmotivo == 0) {\n msj += \"CODIGO DEL MOTIVO DE ANULACION ESTA VACIO.\\n\";\n }\n if (idpago == 0) {\n msj += \"NO HA SELECCIONADO NINGUN PAGO PARA LA ANULACIÓN.\\n\";\n }\n if (msj.isEmpty()) {\n cpca.setIdpagoanulado(idpagoanulado);\n cpca.setFechahoranulado(fechaPagoCuotaAnuladoSQL);\n cpca.setObservacion(observacion);\n cpca.setIdmotivo(idmotivo);\n cpca.setIdusuario(idusuario);\n cpca.setIdpago(idpago);\n cpca.setFechapago(fechapagoSQL);\n cpca.setMonto(mPago);\n cpca.setNumerocomprobante(numerocomprobante);\n cpca.setNumerorecibo(numerorecibo);\n daoPagoCuotaAnulado.agregar(cpca);\n } else {\n JOptionPane.showMessageDialog(null, msj, \"ERRORES\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n public void writeWaypoint(Waypoint waypoint) {\n }" ]
[ "0.71914756", "0.6649861", "0.61716825", "0.5725365", "0.5663216", "0.5531901", "0.539107", "0.5320714", "0.5281335", "0.52239645", "0.5176644", "0.51603645", "0.5148185", "0.51187176", "0.5114581", "0.5077629", "0.5044767", "0.5020581", "0.50177974", "0.5014596", "0.5014546", "0.498322", "0.49756962", "0.4969559", "0.4960847", "0.4948313", "0.49208546", "0.49027893", "0.49003792", "0.48824796", "0.4877034", "0.48764214", "0.48704728", "0.48695457", "0.48669264", "0.48644853", "0.48512942", "0.4850886", "0.48486185", "0.4845792", "0.48444164", "0.48255262", "0.482384", "0.48237002", "0.48011184", "0.47984606", "0.47894558", "0.47840637", "0.4778363", "0.4775323", "0.47722015", "0.47653845", "0.47652695", "0.47494373", "0.47406554", "0.47353318", "0.47230113", "0.471005", "0.4707756", "0.47020197", "0.46998245", "0.46866298", "0.46723905", "0.4658004", "0.46551976", "0.4650997", "0.46504542", "0.4646591", "0.46410292", "0.46340922", "0.46230674", "0.46167114", "0.46164018", "0.46090347", "0.46073234", "0.4601999", "0.45990893", "0.45984295", "0.45964998", "0.4588885", "0.45874146", "0.45864353", "0.4584272", "0.45825616", "0.45811647", "0.45752725", "0.45737106", "0.45731944", "0.45723712", "0.45715973", "0.4571446", "0.45672646", "0.45648724", "0.45620316", "0.4560965", "0.45583087", "0.45558497", "0.45553106", "0.4551253", "0.45511013" ]
0.7376014
0
Metodo que permite guardar un Tripulante encontrado, recibe un objeto de tipo tripulante
public void guardarTripulanteEncontrado(Tripulante tripulante);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardarTripulante(Tripulante tripulante);", "void saveTrip(Trip parTrip);", "@Override\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante) {\r\n\t\tlistadoAuxiliar.add(tripulante);\r\n\t}", "public interface ITripulanteService {\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un tripulante en el gestor de Base de datos\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante que se desea guardar\r\n\t */\r\n\tpublic void guardarTripulante(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un Tripulante encontrado, recibe un objeto de tipo\r\n\t * tripulante\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante, a guardar\r\n\t */\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite listar los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> obtenerTripulantes();\r\n\r\n\t/**\r\n\t * Metodo que permite listar todos los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> buscarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de Tripulante por su id ingresado por parametro\r\n\t * \r\n\t * @param id de Tripulante a buscar\r\n\t * @return Tripulante encontrado\r\n\t */\r\n\tpublic Optional<Tripulante> obtenerUnTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo para hacer una eliminacion de un Tripulante almacenado en la Base de\r\n\t * datos\r\n\t * \r\n\t * @param id de Tripulante a eliminar\r\n\t */\r\n\tpublic void eliminarTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo que implementara la eliminacion de los tripulantes almacenados en la\r\n\t * Base de datos, no recibe parametros\r\n\t */\r\n\tpublic void borrarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de un tripulante por su atributo de tipo\r\n\t * String y nombre documento\r\n\t * \r\n\t * @param documento atributo por el que se buscara\r\n\t * @return El tripulante encontrado\r\n\t * @throws Exception si hay algun error\r\n\t */\r\n\tpublic Tripulante buscarTripulante(String documento) throws Exception;\r\n\r\n}", "public boolean saveTrip(Trip trip) {\n\n\t\tif(trip.getName().equals(\"\") || trip.getLocation().equals(\"\") || trip.getTravelDate().equals(\"\")\n\t\t\t\t|| trip.getTravelTime().equals(\"\") || trip.getMeetSpot().equals(\"\") ||\n\t\t\t\ttrip.getPersons() == null) {\n\t\t\tToast.makeText(getBaseContext(), \"All fields are mandatory\", Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tLog.d(\"Saving Trip\", trip.toString());\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.putExtra(\"TripData\", trip);\n\t\t\tsetResult(RESULT_OK, intent);\n\n\t\t\tTripDatabaseHelper databaseHelper = new TripDatabaseHelper(getBaseContext());\n\t\t\tdatabaseHelper.insertTrip(trip);\n\t\t\tdatabaseHelper.insertParticipants(trip, trip.getTripID());\n\t\t\t//Log.d(\"Trip created with id: \", Long.toString(tripID));\n\t\t\tfinish();\n\t\t}\n\n\t\treturn true;\n\t}", "Lancamento persistir(Lancamento lancamento);", "public Tripulante buscarTripulante(String documento) throws Exception;", "@Override\n\tpublic Paciente registrar(Paciente t) {\n\t\treturn dao.save(t);\n\t}", "public void GuardarSerologia(RecepcionSero obj)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(obj);\n }", "Destination save(Destination destination);", "private void save(JTour jTour){\n if(jTour.save()>0){\n for(JPlace jPlace : jTour.getPlaces()){\n if(jPlace.save() > 0){\n //u principu bi trebala biti samo jedna lokacija u placu\n jPlace.getLocations().get(0).save();\n }\n }\n }\n\n }", "public Flight save(Flight flight);", "public Triplet add(Triplet t) throws DAOException;", "public NodoA desconectar(NodoA t){\n if(t != cabeza){\n t.getLigaDer().setLigaIzq(t.getLigaIzq());\n System.out.println(\"Direccion:\"+t+\" izquierdo:\"+t.getLigaIzq()+\" derecho:\"+t.getLigaDer());\n t.getLigaIzq().setLigaDer(t.getLigaDer());\n return t;\n }\n return null;\n }", "public void guardar(Empleado e){\r\n \r\n //Para serializar el primer paso es generar el archivo fisico donde\r\n //estara nuestro objto de tipo usuario\r\n\r\n File file=new File(\"Empleados.yo\");\r\n \r\n //Despues lo abrimos para escribir sobre el \r\n if(file.exists()){\r\n empleado=buscarTodos();\r\n }\r\n try{\r\n FileOutputStream fos=new FileOutputStream(file);\r\n \r\n //Luego serializamos\r\n ObjectOutputStream oos=new ObjectOutputStream(fos);\r\n \r\n //Guardamos nuestro usuario\r\n empleado.add(e);\r\n oos.writeObject(empleado);\r\n \r\n //Ponemos un mensaje\r\n System.out.println(\"Objeto guardado con exito\");\r\n \r\n }catch (Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public PerfilTO guardarOActualizar(PerfilTO perfil);", "int insertSelective(Tipologia record);", "Flight saveFlight(Flight flight);", "int insertSelective(Tour record);", "@Override\n\tpublic ExamenDTO registrar(ExamenDTO t) {\n\t\tExamen examen = dao.save(Mapper.getEntityFromDTO(t));\n\t\treturn Mapper.getDTOFromEntity(examen);\n\t}", "public static void insertar(plantilla p,String nombre){\n\t\ttry {\r\n \tObjectInputStream entrada=new ObjectInputStream(new FileInputStream(nombre+\".lorito\"));\r\n patronesPlantillas obj1=(patronesPlantillas)entrada.readObject();\r\n obj1.mostrarPatronesPlantillas();\r\n System.out.println(\"-----------------------------\");\r\n entrada.close();\r\n \r\n\t\tobj1.insertarPlantilla(p);\r\n \r\n \r\n ObjectOutputStream salida=new ObjectOutputStream(new FileOutputStream(obj1.nombre()+\".lorito\"));\r\n // salida.writeObject(\"guardar este string y un objeto\\n\");\r\n salida.writeObject(obj1);\r\n salida.close();\r\n \r\n entrada=new ObjectInputStream(new FileInputStream(nombre+\".lorito\"));\r\n // String str=(String)entrada.readObject();\r\n obj1=(patronesPlantillas)entrada.readObject();\r\n obj1.mostrarPatronesPlantillas();\r\n System.out.println(\"-----------------------------\");\r\n entrada.close(); \r\n \r\n }catch (Exception e) { }\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t}", "public RutaPk insert(Ruta dto) throws RutaDaoException;", "public Etudiant insert(Etudiant obj) {\n\t\treturn null;\n\t}", "int insertSelective(Movimiento record);", "public TipoPk insert(Tipo dto) throws TipoDaoException;", "public Integer solo_guardarPaPersona(PaPersona paPersona) throws Exception;", "T save(T obj);", "int insert(Tipologia record);", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public static boolean solicitudGuardar(Partida partida) {\n DaoGenerico preguntaMDAO = new DaoGenerico();\n String objeto = convertirGson(partida);\n return preguntaMDAO.guardar(objeto, tabla);\n }", "static void pontipo(String t){\r\n\t\tStruct s=new Struct(t,0);\r\n\t\tStruct auxt=buscaT(s);\r\n\t\t/*He encontrado el tipo q tengo q insertar*/\r\n\t\tif(aux==null){\r\n\t\t\t//Parse.SemError(1);\r\n\t\t\tSystem.out.println(\"ERROR TIPO NO ENCONTRADO!!\");\r\n\t\t}else{\r\n\t\t\tObj aux2=aux;\r\n\t\t\twhile (aux2 != null){\r\n\t\t\t\taux2.type=auxt;\r\n\t\t\t\taux2=aux2.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n void insertWithTripSuccess() {\n String newUserFirst = \"Dave\";\n String newUserLast = \"Bowman\";\n String newUserEmail = \"dbowman@yahoo.com\";\n String newUserUname = \"dbowman1\";\n String newUserPassword = \"Supersecret2!\";\n String tripCityLoc = \"MILWWI\";\n int tripCount = 6;\n String tripRating = \"5\";\n String tripComment = \"Definitely worth a second look\";\n Date today = new Date();\n User newUser = new User(newUserFirst, newUserLast, newUserEmail, newUserUname, newUserPassword, today);\n //Usertrip newUserTrip = new Usertrip(newUser, tripCityLoc, tripCount, tripRating, tripComment, today);\n //newUser.addTrip(newUserTrip);\n //int id = dao.insert(newUser);\n //assertNotEquals(0, id);\n //User insertedUser = (User) dao.getById(id);\n //assertNotNull(insertedUser);\n //assertEquals(\"dbowman1\", insertedUser.getUserName());\n //assertEquals(1, insertedUser.getUsertrips().size());\n\n }", "public void guardarTransferenteAlcabala(RaTransferenteAlcabala raTransferenteAlcabala)throws Exception;", "int insert(Tour record);", "T save(T t);", "@Override\n public boolean inserir(Pessoa p) {\n try {\n pessoa.getPessoas().add(p);\n serializar(arquivo2Serializado, pessoa);\n } catch (Exception ex) {\n Logger.getLogger(PessoaDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return true;\n }", "@Override\n\tpublic Paciente modificar(Paciente t) {\n\t\treturn dao.save(t);\n\t}", "public void guardar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //guardamos el Dia\n session.persist(dia);\n \n tx.commit();\n }\n catch (Exception e) {\n //Se regresa a un estado consistente \n if (tx!=null){ \n tx.rollback();\n }\n e.printStackTrace(); \n } finally {\n //cerramos simpre la sesion\n session.close();\n }\n }", "int insertSelective(Tourst record);", "public TripDTO findTripById(Long id);", "@Override\r\n\tpublic Usuario insert(Usuario t) {\n\t\treturn null;\r\n\t}", "public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }", "public BookedActivity getNewlyAddSavedTrip();", "@Override\n\tpublic ObraRecursoPersonaDTO insertObraRecursoPersona(\n\t\t\tObraRecursoPersonaDTO dto) {\n\t\treturn null;\n\t}", "public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "public Trip findOneToEdit(final int tripId) {\n\t\tTrip trip;\n\t\tTrip tripEdit;\n\t\tManager manager;\n\t\t//Trip a editar\n\t\ttrip = this.tripRepository.findOne(tripId);\n\t\t//Para que un manager edite un trip NO puede tener publicationDate\n\t\t//salta si tiene fecha\n\t\tAssert.isNull(trip.getPublicationDate());\n\t\t//Comprobamos que sea de ese Manager\n\t\tmanager = this.managerService.findByPrincipal();\n\t\tAssert.isTrue(manager.getTrips().contains(trip));\n\t\t//Lo editamos\n\t\ttripEdit = this.tripRepository.save(trip);\n\t\treturn tripEdit;\n\t}", "@Override\n\tpublic void eliminar(Object T) {\n\t\tSeccion seccionE= (Seccion)T;\n\t\tif(seccionE!=null){\n\t\t\ttry{\n\t\t\tString insertTableSQL = \"update seccion set estatus=?\" +\"where codigo=? and estatus='A'\";\n\t\t\tPreparedStatement preparedStatement = conexion.prepareStatement(insertTableSQL);\n\t\t\tpreparedStatement.setString(1, \"I\");\n\t\t\tpreparedStatement.setString(2, seccionE.getCodigo());\n\t\t\tpreparedStatement.executeUpdate();\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"No se elimino el registro\");\n\t\t}\n\t\tSystem.out.println(\"Eliminacion exitosa\");\n\t}\n\n\t}", "@Override\n\tpublic void adicionar(T obj) throws ExcecaoDeListaCheia, ExcecaoDeParticipanteJaExistente {\n\t\tif (tamanho < capacidade) {\n\t\t\tfor (int i = 0; i < tamanho; i++) {\n\t\t\t\tif (obj.toString().equals(elementosDaLista[i].toString())) {\n\t\t\t\t\tthrow new ExcecaoDeParticipanteJaExistente();\n\t\t\t\t}\n\t\t\t}\n\t\t\telementosDaLista[tamanho] = obj;\n\t\t\ttamanho++;\n\t\t} else {\n\t\t\tthrow new ExcecaoDeListaCheia();\n\t\t}\n\t}", "int insertSelective(TCar record);", "int insert(Tourst record);", "public void crear(Tarea t) {\n t.saveIt();\n }", "public void eliminarTripulante(Long id);", "public String save() {\r\n\t\ttry {\r\n\r\n\t\t\tif (obs != null && !obs.trim().isEmpty()) {\r\n\t\t\t\tconcurso.setObservacionReserva(obs);\r\n\t\t\t\tconcursoHome.setInstance(concurso);\r\n\t\t\t\tString res = concursoHome.update();\r\n\t\t\t}\r\n\r\n\t\t\tfor (PlantaCargoDetDTO dto : listaPlantaCargoDto) {\r\n\r\n\t\t\t\tif (dto.getReservar()) {\r\n\t\t\t\t\tEstadoDet est = buscarEstado(\"en reserva\");\r\n\t\t\t\t\tif (!existeEnDetalle(dto.getPlantaCargoDet(), est)) {\r\n\t\t\t\t\t\t// buscar\r\n\r\n\t\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\t\tp.setActivo(true);\r\n\t\t\t\t\t\tp.setFechaAlta(new Date());\r\n\t\t\t\t\t\tp.setUsuAlta(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\tp.setNroOrden(2);\r\n\t\t\t\t\t\tp.setPlantaCargoDet(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\t\tif (est != null)\r\n\t\t\t\t\t\t\tp.setEstadoDet(est);\r\n\t\t\t\t\t\tp.setConcurso(concursoHome.getInstance());\r\n\t\t\t\t\t\tem.persist(p);\r\n\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(est.getEstadoCab());\r\n\t\t\t\t\t\tplanta.setEstadoDet(est);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Incidencia 1079 */\r\n\t\t\t\trefreshListaPuestoReservados();\r\n\t\t\t\t/**/\r\n\t\t\t\tEstadoCab estadoCab = obtenerEstadosCabecera(\"VACANTE\");\r\n\t\t\t\tif (esta(dto.getPlantaCargoDet())) {\r\n\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\tp = recuperarConcurso(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\tif (!dto.getReservar()) {\r\n\t\t\t\t\t\tif (p.getConcursoPuestoAgr() != null) {\r\n\t\t\t\t\t\t\tstatusMessages.clear();\r\n\t\t\t\t\t\t\tstatusMessages.add(Severity.ERROR,\r\n\t\t\t\t\t\t\t\t\t\"El puesto pertenece a un grupo\");\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * p.setActivo(true); p.setNroOrden(1);\r\n\t\t\t\t\t\t * p.setFechaMod(new Date());\r\n\t\t\t\t\t\t * p.setUsuMod(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\t * EstadoDet est = buscarEstado(\"libre\");\r\n\t\t\t\t\t\t * p.setEstadoDet(est); em.merge(p);\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(estadoCab);\r\n\t\t\t\t\t\tplanta.setEstadoDet(null);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\t\t\t\t\t\tif (!concurso\r\n\t\t\t\t\t\t\t\t.getDatosEspecificosTipoConc()\r\n\t\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\r\n\t\t\t\t\t\t\t\t\t\tCONCURSO_INTERNO_INTERINSTITUCIONAL)\r\n\t\t\t\t\t\t\t\t&& planta.getPermanente())\r\n\t\t\t\t\t\t\treponerCategoriasController.reponerCategorias(p,\r\n\t\t\t\t\t\t\t\t\t\"PUESTO\", \"CONCURSO\");\r\n\t\t\t\t\t\tem.remove(p);\r\n\t\t\t\t\t\t// listaPlantaCargoDto.remove(dto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tobs = null;\r\n\t\t\tem.flush();\r\n\t\t\tllenarListado1();\r\n\t\t\tstatusMessages.clear();\r\n\t\t\tstatusMessages.add(Severity.INFO, SeamResourceBundle.getBundle()\r\n\t\t\t\t\t.getString(\"GENERICO_MSG\"));\r\n\t\t\treturn \"persisted\";\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Test\r\n\t public void addANonExistingRouteFather(){\r\n\t\t RouteFather test = routeFatherDAO.create(new RouteFather(\"rutatest\", \"desctest\", \"asdfas\",\"2012-02-02\", this.rafter));\r\n\t\t Assert.assertNotNull(\"it should returns not null\", test);\r\n\t\t routeFatherDAO.delete(test);\r\n\t\t \r\n\t }", "@Override\n \n // override do metudo put\n public Pacote put(String key, Pacote value) {\n \n \n Pacote pt = null;\n \n try {\n conn = Connect.connect();\n \n //String com a querie -> inserir um Pacote na BD\n PreparedStatement stm = conn.prepareStatement(\"INSERT INTO Pacote (nomePacote,preco,visivel)\\n\" +\n \"VALUES (?, ?,TRUE)\\n\" +\n \"ON DUPLICATE KEY UPDATE nomePacote=VALUES(nomePacote), preco=VALUES(preco), visivel=VALUES(visivel);\", Statement.RETURN_GENERATED_KEYS);\n \n //Parse dos dados Cliente argumento (value)\n stm.setString(1, value.getNome());\n stm.setDouble(2, value.getPreco());\n \n // executa a querie\n stm.executeUpdate();\n \n this.addComponentes(pt);\n \n ResultSet rs = stm.getGeneratedKeys();\n if(rs.next()) {\n String newNome = rs.getString(\"nome\");\n if (!newNome.equals(value.getNome()))\n throw new PutPacoteFailureException(\"Put Pacote failure - falha na inserção de um Pacote na base de dados\");\n }\n \n pt = value;\n } catch (SQLException | PutPacoteFailureException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return pt;\n }", "@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n\t@Transactional //los que no impliquen listados solo seran de tipo transactional\n\tpublic boolean grabar(Autoridad autoridad) {\n\t\tAutoridad objAutoridad = dAutoridad.save(autoridad);\n\t\tif (objAutoridad == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "@Override\r\n\tpublic boolean delete(Station obj) {\n\t\treturn false;\r\n\t}", "public Optional<Tripulante> obtenerUnTripulante(Long id);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Trip)) {\n return false;\n }\n Trip other = (Trip) object;\n if ((this.idTRIP == null && other.idTRIP != null) || (this.idTRIP != null && !this.idTRIP.equals(other.idTRIP))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic Factura save(Factura t) {\n\t\treturn facturaRepository.save(t);\n\t}", "public void guarda(DTOAcreditacionGafetes acreGafete) throws Exception ;", "int insertSelective(Depart record);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Trips)) {\n return false;\n }\n Trips other = (Trips) object;\n if ((this.tripId == null && other.tripId != null) || (this.tripId != null && !this.tripId.equals(other.tripId))) {\n return false;\n }\n return true;\n }", "public static void guardarEstudianteBD(Estudiante estudiante) {\r\n //metimos este metodo dentro de la base de datos \r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n //ingresamos la direccion donde se encuntra la base de datos \r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.println(\"Conexion establecida!\");\r\n Statement sentencia = (Statement) conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"insert into estudiante values(\"\r\n + \"'\" + estudiante.getNro_de_ID()\r\n + \"','\" + estudiante.getNombres()\r\n + \"','\" + estudiante.getApellidos()\r\n + \"','\" + estudiante.getLaboratorio()\r\n + \"','\" + estudiante.getCarrera()\r\n + \"','\" + estudiante.getModulo()\r\n + \"','\" + estudiante.getMateria()\r\n + \"','\" + estudiante.getFecha()\r\n + \"','\" + estudiante.getHora_Ingreso()\r\n + \"','\" + estudiante.getHora_Salida()\r\n + \"')\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n\r\n } catch (Exception ex) {\r\n System.out.println(\"Error en la conexion\" + ex);\r\n }\r\n }", "public void guardarDireccionAlcabalaHstorico(RaDireccionAlcabalaHistorico raDireccionAlcabalaHistorico)throws Exception;", "public void saveRoute() {\n\t\t/** if internet then store this in the database */\n\t\tif (Internet.isNetworkAvailable(LoginActivity.getAppContext())) {\n\t\t\tHTIDatabaseConnection lHtiDbConnection = HTIDatabaseConnection\n\t\t\t\t\t.getInstance();\n\t\t\tif (lHtiDbConnection.getRoute(this.mRouteId) == null) {\n\t\t\t\tString errors = lHtiDbConnection.addRoute(this);\n\t\t\t\tif (errors != null) {\n\t\t\t\t\tLog.w(LogTag.WRITEDB,\n\t\t\t\t\t\t\t\"Errors during add route in the database : \\n\"\n\t\t\t\t\t\t\t\t\t+ errors);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLog.w(LogTag.WRITEDB, \"The route with the id (\" + this.mRouteId\n\t\t\t\t\t\t+ \") already exist in the database.\");\n\t\t\t}\n\t\t}\n\t\t/** else store this in a JSON file (FILENAMEROUTE) */\n\t\telse {\n\t\t\tJsonManager.addRoutesInJson(MainActivity.FILENAMEROUTE, this,\n\t\t\t\t\tLoginActivity.getAppContext());\n\t\t}\n\t}", "@Override\n public ScontrinoDtoIll trovaEan(String ean, Scontrino sc) {\n Prodotto p = anagraficaProdottiRepository.findByEan(ean);\n if (p == null) {\n //se non è stato trovato alcun prodotto recupero il dto e\n //spedisco un messaggio di errore\n return new ScontrinoDtoIll(null, null, \"prodotto non trovato\");\n }\n //se invece è stato trovato un prodotto devo associarlo alla\n //riga scontrino che è a sua volta associata ad uno scontrino\n // quindi recupero lo scontrino ...\n if (sc != null) {\n sc = scontrinoRepository.findById(sc.getId()).get();\n //return new ScontrinoDtoIll(null, null, \"prodotto trovato\");\n }\n // se non esiste lo scontrino lo creo ...\n if (sc == null) {\n sc = new Scontrino();\n sc = scontrinoRepository.save(sc);\n }\n\n // creo la riga e la salvo ...\n RigaScontrino r = new RigaScontrino();\n r = rigaRepository.save(r);\n r.setProdotto(p);\n r.setScontrino(sc);\n r = rigaRepository.save(r);\n\n // aggiungo la riga allo scontrino\n sc.getRigheScontrino().add(r);\n sc = scontrinoRepository.save(sc);\n\n // creo il DTO con i dati da ritornare al client\n ScontrinoDtoIll risp = new ScontrinoDtoIll();\n Set<RigaScontrino> righe = sc.getRigheScontrino();\n List<RigaScontrinoClientDto> righeDto = new ArrayList<>();\n // trasformo le righe originali dello scontrino in righe del DTO\n righe.forEach(rr\n -> righeDto.add(\n new RigaScontrinoClientDto(\n rr.getId(),\n rr.getScontrino().getId(),\n p.getId(),\n rr.getProdotto().getDescrizione(),\n rr.getProdotto().getPrezzo())));\n\n risp.setRigheScontrino(righeDto);\n risp.setScontrino(sc);\n risp.setMessaggio(\"scontrino pronto!\");\n\n return risp;\n }", "public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }", "int insertSelective(ParUsuarios record);", "@Override\n\tpublic <S extends Pedido> S save(S arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void save(T obj) throws Exception {\n\t\t\n\t}", "Hotel saveHotel(Hotel hotel);", "@Override\r\n\tpublic void save(T elemento) {\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic T saveOrUpdate(T t)\n\t\t\tthrows UnknownHostException {\n\t\tJongo jongo = null;\n\t\tjongo = getConnection();\n\t\tMongoCollection mongoList = jongo.getCollection((((Class<T>)DAO.class).getName()));\n\t\tmongoList.save(t);\n\t\treturn t;\n\t}", "void save(Athletes athletes);", "@Override\r\n\tpublic Ngo save(Ngo obj) {\n\t\treturn null;\r\n\t}", "public void insertar(int rafaga, int tiempo) {\n\t\tif (rafaga <= 0 || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.id = String.valueOf((char) this.caracter);\n\t\tthis.caracter++;\n\t\tnuevo.rafaga = rafaga;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.ColaProviene = this.NombreCola;\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += rafaga;\n\t\tthis.Ordenamiento();\n\t}", "@Override\n\tpublic void save(toActeur personne) throws Exception {\n\t\tSession session = connect();\n\t\t\n\t\tsession.save(personne);\n\t\tclose(session);\n\t}", "public TipologiaStrutturaPk insert(TipologiaStruttura dto) throws TipologiaStrutturaDaoException;", "public void guardar(Modelo modelo) throws SipsaExcepcion;", "private static void grabarYllerPaciente() {\r\n\t\tPaciente paciente = new Paciente(\"Juan\", \"Garcia\", \"65\", \"casa\", \"2\", \"1998\");\r\n\t\tPaciente pacienteDos = new Paciente(\"MArta\", \"Garcia\", \"65\", \"casa\", \"3\", \"1998\");\r\n\t\tPaciente pacienteTres = new Paciente(\"MAria\", \"Garcia\", \"65\", \"casa\", \"4\", \"1998\");\r\n\t\tString ruta = paciente.getIdUnico();\r\n\t\tString rutaDos = pacienteDos.getIdUnico();\r\n\t\tString rutaTres = pacienteTres.getIdUnico();\r\n\t\tDTO<Paciente> dtoPacienteDos = new DTO<>(\"src/Almacen/\" + rutaDos + \".dat\");\r\n\t\tDTO<Paciente> dtoPaciente = new DTO<>(\"src/Almacen/\" + ruta + \".dat\");\r\n\t\tDTO<Paciente> dtoPacienteTres = new DTO<>(\"src/Almacen/\" + rutaTres + \".dat\");\r\n\t\tif (dtoPaciente.grabar(paciente) == true) {\r\n\r\n\t\t\tSystem.out.println(paciente.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteDos.grabar(pacienteDos) == true) {\r\n\r\n\t\t\tSystem.out.println(pacienteDos.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteTres.grabar(pacienteTres) == true) {\r\n\t\t\tSystem.out.println(pacienteTres.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tPaciente pacienteLeer = dtoPaciente.leer();\r\n\t\tSystem.out.println(pacienteLeer);\r\n\t\tSystem.out.println(pacienteLeer.getNombre());\r\n\t}", "void save(Teacher teacher);", "@Override\n public void realmTransaction(MainModelImp res) {\n realm.executeTransaction(realmT -> {\n RealmResults<MainModelImp> current = getRealmResults(res.getLocation().getLatitude(), res.getLocation().getLongitude());\n current.deleteAllFromRealm();\n MainModelImp cache = realmT.createObject(MainModelImp.class);\n cache.setLat(res.getLocation().getLatitude());\n cache.setLon(res.getLocation().getLongitude());\n for (Nearby_restaurant nearby : res.getNearby_restaurants()) {\n cache.getNearby_restaurants().add(nearby);\n }\n });\n\n }", "int updTravelById(Travel record) throws TravelNotFoundException;", "public NaveDTO guardarInfoSatelite(Nivel3DTO nivel3DTO, String nombreSatelite){\n logger.debug(\"MensajeService::guardarInfoSatelite()\");\n if(listaNave == null){\n listaNave = new ArrayList<>();\n }\n NaveDTO nave = validarListaSatelites(nombreSatelite,nivel3DTO);\n if( nave == null ){\n nave = new NaveDTO();\n nave.setName(nombreSatelite);\n nave.setDistance(nivel3DTO.getDistance());\n nave.setMessage(nivel3DTO.getMessage());\n listaNave.add(nave);\n }\n return nave;\n }", "@Override\r\n public boolean guardarCliente(Cliente cliente) {\n boolean respuesta = true;\r\n Session sesion = HibernateUtil.getSessionFactory().openSession();\r\n Transaction transaccion = sesion.beginTransaction();\r\n //Rgistrar en la base de datos la cliente\r\n try {\r\n sesion.save(cliente);\r\n transaccion.commit();\r\n } catch (Exception e) {\r\n System.out.println(\"ERROR DE GUARDAR::\" + e);\r\n respuesta = false;\r\n }\r\n sesion.close();\r\n return respuesta;\r\n }", "int insertSelective(Prueba record);", "T save(T object);", "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "public String guardar()\r\n/* 69: */ {\r\n/* 70: */ try\r\n/* 71: */ {\r\n/* 72: 85 */ this.motivoLlamadoAtencion.setIdOrganizacion(AppUtil.getOrganizacion().getIdOrganizacion());\r\n/* 73: 86 */ this.motivoLlamadoAtencion.setIdSucursal(AppUtil.getSucursal().getIdSucursal());\r\n/* 74: 87 */ this.servicioMotivoLlamadoAtencion.guardar(this.motivoLlamadoAtencion);\r\n/* 75: 88 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_guardar\"));\r\n/* 76: 89 */ setEditado(false);\r\n/* 77: 90 */ limpiar();\r\n/* 78: */ }\r\n/* 79: */ catch (Exception e)\r\n/* 80: */ {\r\n/* 81: 92 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_guardar\"));\r\n/* 82: 93 */ LOG.error(\"ERROR AL GUARDAR DATOS\", e);\r\n/* 83: */ }\r\n/* 84: 95 */ return \"\";\r\n/* 85: */ }", "void saveOrder(RouteDTO routeDTO, OrderDTO orderDTO);", "public Trip findOneToCancelManager(final int tripId) {\n\t\tthis.managerService.checkPrincipal();\n\t\tCollection<Trip> allTrips;\n\t\tTrip trip;\n\t\tTrip tripEdit;\n\t\tManager manager;\n\t\t//Trip a editar\n\t\ttrip = this.tripRepository.findOne(tripId);\n\t\t//Para que un manager cancele un trip NO puede haber empezado\n\t\tallTrips = new ArrayList<>(this.tripRepository.findAllTripsNotPublished());\n\t\tAssert.isTrue(allTrips.contains(trip));\n\t\t//Comprobamos que sea de ese Manager\n\t\tmanager = this.managerService.findByPrincipal();\n\t\tAssert.isTrue(manager.getTrips().contains(trip));\n\t\ttripEdit = this.tripRepository.save(trip);\n\t\tif (trip.isCancelled())\n\t\t\tAssert.notNull(trip.getReasonWhy());\n\t\treturn tripEdit;\n\t}", "void persiste(UsuarioDetalle usuarioDetalle);", "public void guardar(ArrayList<T> lista, String nombre) {\n try {\n fos = new FileOutputStream(nombre);\n oos = new ObjectOutputStream(fos);\n oos.writeObject(new ArrayList<>(lista));\n oos.close();\n fos.close();\n } catch (FileNotFoundException e) {\n System.err.println(\"ERROR: \" + e.getLocalizedMessage());\n } catch (IOException e) {\n System.err.println(\"ERROR: \" + e.getLocalizedMessage());\n }\n }", "@Override\n\tpublic void save(Religiao obj) throws Exception {\n\t\t\n\t}", "int insert(TCar record);", "public void endTrip()\r\n {\r\n if (detourTrip == null)\r\n {\r\n // we are in a normal trip\r\n trip = null;\r\n }\r\n else\r\n {\r\n // we are in a detour trip\r\n detourTrip = null;\r\n }\r\n }" ]
[ "0.7698121", "0.6616273", "0.6505458", "0.5873485", "0.5814439", "0.5538269", "0.55361736", "0.5512748", "0.54657567", "0.5351962", "0.5331325", "0.532518", "0.5214438", "0.5204211", "0.5178474", "0.51429754", "0.51307875", "0.5127594", "0.51162255", "0.5084953", "0.5083504", "0.50690305", "0.50595057", "0.50556827", "0.5053827", "0.50478154", "0.5043956", "0.50332683", "0.50273407", "0.5027201", "0.50271297", "0.50263596", "0.502399", "0.5021984", "0.5018406", "0.501663", "0.50095093", "0.5004289", "0.50015295", "0.4997049", "0.49897614", "0.4985074", "0.49830723", "0.49818203", "0.49799353", "0.49791288", "0.4975221", "0.49729553", "0.49693388", "0.4954273", "0.49432778", "0.49426338", "0.4940488", "0.4927549", "0.4917383", "0.49117738", "0.49083206", "0.48992094", "0.4892398", "0.48913738", "0.4890736", "0.4886328", "0.4880909", "0.48717606", "0.4871472", "0.48591292", "0.48563814", "0.48549217", "0.4853834", "0.48508322", "0.48477125", "0.484658", "0.48456335", "0.48443305", "0.48401245", "0.48391536", "0.48384917", "0.48335728", "0.48320746", "0.48307595", "0.48289204", "0.48269638", "0.48240072", "0.4823574", "0.48210055", "0.4820371", "0.4818875", "0.48180476", "0.48176563", "0.48166066", "0.4814422", "0.48097512", "0.48030895", "0.48025212", "0.4800818", "0.47987142", "0.47978193", "0.4792504", "0.4790869", "0.4788193" ]
0.742144
1
Metodo que permite listar los Tripulantes almacenados
public List<Tripulante> obtenerTripulantes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Tripulante> buscarTodosTripulantes();", "@GET\n\t@Path(\"/tipos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoAutoDTO> listarTipos(){\n\t\tSystem.out.println(\"ini: listarTipos()\");\n\t\t\n\t\tTipoAutoService tipoService = new TipoAutoService();\n\t\tArrayList<TipoAutoDTO> lista = tipoService.ListadoTipoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarTipos()\");\n\t\t\n\t\treturn lista;\n\t}", "public List getTrabajadores();", "@GET\n\t@Path(\"/tipost\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoTransmisionDTO> listarTiposT(){\n\t\tSystem.out.println(\"ini: listarTiposT()\");\n\t\t\n\t\tTipoTransmisionService tipotService = new TipoTransmisionService();\n\t\tArrayList<TipoTransmisionDTO> lista = tipotService.ListadoTipoTransmision();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarTiposT()\");\n\t\t\n\t\treturn lista;\n\t}", "public ArrayList<DataRestaurante> listarRestaurantes();", "@Override\n\tpublic List<Trip> searchAllTrips() {\n\t\tString hql = \"FROM Trip\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}", "List<Travel> getAllTravel();", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public ArrayList<Trip> getAllTrips() {\n ArrayList<Trip> tripList = new ArrayList<>();\n\n // Open the database for reading\n openReadableDB();\n\n // Query the database for all rows and columns in the Trip table\n Cursor cursor = db.query(TRIP_TABLE, null, null,\n null, null, null, null);\n while (cursor.moveToNext() == true) {\n // Convert Cursor to Trip\n Trip theTrip = cursorToTrip(cursor);\n\n // Add the Trip object to the list\n tripList.add(theTrip);\n }\n\n closeCursor(cursor);\n closeConnection();\n return tripList;\n }", "public abstract String viewTrips(List<Trip> tripList);", "List<Pacote> buscarPorTransporte(Transporte transporte);", "@Override\n\tpublic List<Servicio> listarServicioTQ() {\n\t\tservicioDao = new ServicioDaoImpl();\n\t\treturn servicioDao.listarServicioTQ();\n\t}", "public List<Permiso> obtenerTodosActivos();", "public List<Trip> getTripsByUser(User byUser) throws UserNotLoggedInException {\n\t\t// recup du \"LoggedUser\"\n\t\tUser loggedUser = getSession().getLoggedUser();\n\t\tif (loggedUser == null) {\n\t\t\tthrow new UserNotLoggedInException();\n\t\t}\n\n\t\t// détermine si \"isFriend\"\n\t\t// vrai si un des friends du byUser est le loggedUser\n\t\tboolean isFriend = false;\n\t\tfor (User friend : byUser.getFriends()) {\n\t\t\tif (friend.equals(loggedUser)) {\n\t\t\t\tisFriend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// si isFriend, on appel le DAO pour trouver les trips du byUser\n\t\tList<Trip> tripList = new ArrayList<Trip>();\n\t\tif (isFriend) {\n tripList = findTripsByUser(byUser);\n }\n\t\treturn tripList;\n\t}", "List<Persona> obtenerTodasLasPersona();", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList <Persistence.Tache> getdoneeeee(){\n\t\tdone=sug.gettoutelestaches().stream().filter(e->e.getEtatdeTache().name().equals(EtatdeTache.done.name())).collect(Collectors.toList());\n\n\t\treturn (ArrayList<Persistence.Tache>) done;\n\t}", "private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }", "public static List<Endereco> listar() {\n\t\t\tConnection conexao = ConectaPostgreSQL.geraConexao();\n\t\t\t// variavel lista de ass\n\t\t\tList<Endereco> acessos = new ArrayList<Endereco>();\n\t\t\t// executa o SQL no banco de endereco\n\t\t\tStatement consulta = null;\n\t\t\t// contém os endereco consultado da tabela\n\t\t\tResultSet resultado = null;\n\t\t\t// objeto as\n\t\t\t// Endereco as = null;\n\t\t\t// consulta SQL\n\t\t\tString sql = \"select distinct * from Endereco\";\n\t\t\ttry {\n\t\t\t\t// consulta => objeto que executa o SQL no banco de endereco\n\t\t\t\tconsulta = conexao.createStatement();\n\t\t\t\t// resultado => objeto que contém os endereco consultado da tabela\n\t\t\t\t// Endereco\n\t\t\t\tresultado = consulta.executeQuery(sql);\n\t\t\t\t// Lê cada as\n\n\t\t\t\twhile (resultado.next()) {\n\t\t\t\t\tEndereco endereco = new Endereco();\n\t\t\t\t\tendereco.setBairro(resultado.getString(\"bairro\"));\n\t\t\t\t\tendereco.setCep(resultado.getString(\"cep\"));\n\t\t\t\t\tendereco.setCidade(resultado.getString(\"cidade\"));\n\t\t\t\t\tendereco.setEstado(resultado.getString(\"estado\"));\n\t\t\t\t\tendereco.setNumero(resultado.getInt(\"numero\"));\n\t\t\t\t\tendereco.setRua(resultado.getString(\"rua\"));\n\t\t\t\t\t// insere o as na lista\n\t\t\t\t\tacessos.add(endereco);\n\n\t\t\t\t}\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new RuntimeException(\"Erro ao buscar um acesso a serviços: \" + e);\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tconsulta.close();\n\t\t\t\t\tresultado.close();\n\t\t\t\t\tconexao.close();\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\tthrow new RuntimeException(\"Erro ao fechar a conexao \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// retorna lista de ass\n\t\t\treturn acessos;\n\t\t}", "public Collection<Transferencia> traerTodasLasTransferencias() {\n Collection<Transferencia> resultado = null;\n try {\n controlTransferencia = new ControlTransferencia();\n bitacora.info(\"Registro Transferencia Iniciado correctamente\");\n resultado = controlTransferencia.traerTodasLasTransferencias();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro Transferencia por \" + ex.getMessage());\n }\n return resultado;\n }", "@Override\r\n\tpublic List<Turista> conMasPuntos() {\n\t\treturn (List<Turista>) turistaDAO.conMasPuntos();\r\n\t}", "List<Receta> getAllWithUSer();", "public ArrayList<DataCliente> listarClientes();", "public void borrarTodosTripulantes();", "@Override\r\n\tpublic List<ReservaBean> traeTodos() throws Exception {\n\t\treturn null;\r\n\t}", "List<IManifestEntry> getTrips();", "public ArrayList<DataUsuario> listarUsaurios();", "public ArrayList<DataRestaurante> listarRestaurantes(String patron) throws Exception;", "public List<Talla> obtenTallas() throws Exception {\r\n IntAdmInventario inv = new FacAdmInventario();\r\n\r\n return inv.obtenListaTallas();\r\n }", "public List<GrauParentesco> getListTodos();", "public ArrayList<Libro> recuperaTodos();", "public List<PerfilTO> buscarTodos();", "@Override\n\tpublic List<CLIENTE> listarTodos() {\n\t\t\n\t\tString sql = \"SELECT * FROM CLIENTE\";\n\t\t\n\t\tList<CLIENTE> listaCliente = new ArrayList<CLIENTE>();\n\t\t\n\t\tConnection conexao;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconexao = JdbcUtil.getConexao();\n\t\t\t\n\t\t\tPreparedStatement ps = conexao.prepareStatement(sql);\n\t\t\t\n\t\t\tResultSet res = ps.executeQuery();\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\t\n\t\t\t\tcliente = new CLIENTE();\n\t\t\t\tcliente.setNomeCliente(res.getString(\"NOME_CLIENTE\"));\n\t\t\t\t\n\t\t\t\tlistaCliente.add(cliente);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tps.close();\n\t\t\tconexao.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn listaCliente;\n\t}", "List<Entidade> listarTodos();", "public List<Vendedor> listarVendedor();", "public List<Comentario> buscaPorTopico(Topico t);", "public static ArrayList<Trip> getTripList(Context context){\n\n SharedPreferences sharedPreferences = context.getSharedPreferences(context.getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n Gson gson = new Gson();\n String tripArray = sharedPreferences.getString(context.getString(R.string.trips_array), \"[]\");\n\n ArrayList<Trip> allTrips = gson.fromJson(tripArray, new TypeToken<ArrayList<Trip>>(){}.getType());\n if(allTrips.size() > 0){\n return allTrips;\n } else return null;\n\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Empresa> listarTodos() {\n\t\tList<Empresa> lista = new ArrayList<Empresa>();\n\t\t\n\t\ttry {\n\t\t\tlista = empresaDAO.listarTodosDesc();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn lista;\n\t}", "public List<ReceitaDTO> listarReceitas() {\n return receitaOpenHelper.listar();\n }", "private void getTravelItems() {\n String[] columns = Columns.getTravelColumnNames();\n Cursor travelCursor = database.query(TABLE_NAME, columns, null, null, null, null, Columns.KEY_TRAVEL_ID.getColumnName());\n travelCursor.moveToFirst();\n while (!travelCursor.isAfterLast()) {\n cursorToTravel(travelCursor);\n travelCursor.moveToNext();\n }\n travelCursor.close();\n }", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TarefaEntity> TodasTarefas(){\n\t\t\n\t\treturn this.entityManager.createQuery(\"SELECT t FROM TarefaEntity t ORDER BY t.nome\").getResultList();\n\t}", "public void listar() {\n\t\t\n\t}", "public List getChamado(String servico) {\r\n Solicitacoes e = chamadoHandler(servico);\r\n\r\n List<ChamadoEnderecos> consultas = new ArrayList<>();\r\n String sql = \"SELECT DISTINCT\\n\"\r\n + \"\tpid.cod_pid,\\n\"\r\n + \" pid.nome_estabelecimento,\\n\"\r\n + \" endereco.descricao,\\n\"\r\n + \" endereco.numero,\\n\"\r\n + \" endereco.bairro,\\n\"\r\n + \" endereco.complemento,\\n\"\r\n + \" municipio.nome_municipio,\\n\"\r\n + \" municipio.uf,\\n\"\r\n + \" municipio.cod_IBGE,\\n\"\r\n + \" solicitacoes.id_solicitacao\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \"FROM \\n\"\r\n + \"\tpid \\n\"\r\n + \" INNER JOIN contato on \t(pid.cod_pid = contato.PID_cod_pid)\\n\"\r\n + \" INNER JOIN endereco on \t(pid.cod_pid = endereco.PID_cod_pid)\\n\"\r\n + \" INNER JOIN telefone on \t(contato.id_contato = telefone.Contato_id_contato)\\n\"\r\n + \" INNER JOIN municipio on \t(endereco.Municipio_cod_IBGE = municipio.cod_IBGE)\\n\"\r\n + \" INNER JOIN solicitacoes on (pid.cod_pid= solicitacoes.PID_cod_pid)\\n\"\r\n + \" INNER JOIN servico on\t(solicitacoes.Servico_id_servico=servico.id_servico)\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \" WHERE solicitacoes.em_chamado= 3 and servico.id_servico=\" + servico + \";\";\r\n\r\n stmt = null;\r\n rs = null;\r\n \r\n try {\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n while (rs.next()) {\r\n consultas.add(new ChamadoEnderecos(rs.getString(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getString(4),\r\n rs.getString(5),\r\n rs.getString(6),\r\n rs.getString(7),\r\n rs.getString(8),\r\n rs.getString(9),\r\n rs.getString(10)\r\n ));\r\n\r\n }\r\n\r\n } catch (SQLException | ArrayIndexOutOfBoundsException ex) {\r\n Logger.getLogger(SimpleQueries.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return consultas;\r\n }", "public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }", "private ArrayList<Tarea> getTareas(Date desde, Date hasta) {\n BDConsulter consulter = new BDConsulter(DATABASE_URL, DATABASE_USER, DATABASE_PASS);//genero la clase, que se conecta a la base postgresql\n consulter.connect();//establezco la conexion\n\n //Si no hay ningun integrante seleccionado, selecciono todos\n List<String> integrantesSeleccionados = jListIntegrantes.getSelectedValuesList();\n DefaultListModel<String> model = (DefaultListModel<String>) jListIntegrantes.getModel();\n List<String> integrantes = new ArrayList<String>();\n if (integrantesSeleccionados.size() == 0) {\n for (int i = 0; i < model.getSize(); i++) {\n System.out.println((model.getElementAt(i)));\n integrantes.add(model.getElementAt(i));\n }\n integrantesSeleccionados = integrantes;\n }\n\n ArrayList<Tarea> tareas = new ArrayList<>();\n for (String s : integrantesSeleccionados) {\n tareas.addAll(consulter.getTareas(desde, hasta, (String) jComboBoxProyecto.getSelectedItem(), (String) jComboBoxGrupos.getSelectedItem(), s));//obtengo las tareas creadas entre un rango de fecha dado\n }\n consulter.disconnect();//termino la conexion con la base//termino la conexion con la base\n return tareas;\n }", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"gerente11@gerente.com\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"gerente11@gerente.com\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"gerente11@gerente.com\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }", "public ArrayList<Viaje> listar(){\n\t\tArrayList<Viaje> lista=new ArrayList<Viaje>();\n\t\t\n\t\tString sql=\"select * from viaje\";\n\t\t\n\t\ttry(Connection con=DB.getConexion();\n\t\t\tStatement stm=con.createStatement();){\n\t\t\t\tResultSet rs=stm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tViaje v=new Viaje(rs.getInt(\"id\"),rs.getString(\"destino\"),rs.getInt(\"duracion\"),rs.getFloat(\"precio\"));\n\t\t\t\tlista.add(v);\n\t\t\t}\n\t\t\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tsqle.printStackTrace();\n\t\t}\n\t\treturn lista;\n\t}", "@Override\n public List<Pessoa> todas() {\n this.conexao = Conexao.abrirConexao();\n List<Pessoa> pessoas = new ArrayList<>();\n try {\n String consulta = \"SELECT * FROM pessoa;\";\n PreparedStatement statement = conexao.prepareStatement(consulta);\n ResultSet resut = statement.executeQuery();\n while (resut.next()) {\n pessoas.add(criarPessoa(resut));\n }\n } catch (SQLException ex) {\n Logger.getLogger(PessoasJDBC.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n Conexao.fecharConexao(conexao);\n }\n if (pessoas.size() > 0) {\n return Collections.unmodifiableList(pessoas);\n } else {\n return Collections.EMPTY_LIST;\n }\n\n }", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "List<Transport> getTransports();", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "List<TipoHuella> listarTipoHuellas();", "public java.util.List getWaypoints();", "public List<Tipousr> findAllTipos(){\n\t\t List<Tipousr> listado;\n\t\t Query q;\n\t\t em.getTransaction().begin();\n\t\t q=em.createQuery(\"SELECT u FROM Tipousr u ORDER BY u.idTipousr\");\n\t\t listado= q.getResultList();\n\t\t em.getTransaction().commit();\n\t\t return listado;\n\t\t \n\t\t}", "public ArrayList<String> mostraResultats(){\n ArrayList<String> tauleta = new ArrayList<>();\n for (int j=0; j<res.getClients().size(); j++) {\n for (int k=0; k<res.getClients().get(j).getAssigs().size(); k++) {\n String aux = \"\";\n for (int i = 0; i < res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().size(); i++) {\n aux += res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().get(i).getNom() + \"\\t\";\n }\n aux += \" -> \" + res.getClients().get(j).getAssigs().get(k).getConsequent().getNom();\n tauleta.add(aux);\n }\n }\n return tauleta;\n }", "public ArrayList<String> mostraLlistaAtribs(){\n ArrayList<String> tauleta = new ArrayList<>();\n System.out.print(\"num atribs: \"+list.getNomLlista()+\"\\n\");\n String aux = list.getAtribs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "@GET\n\t@Path(\"/lstautos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<AutoDTO> listarLstAutos(){\n\t\tSystem.out.println(\"ini: listarLstAutos()\");\n\t\t\n\t\tAutoService autoService = new AutoService();\n\t\tArrayList<AutoDTO> lista = autoService.ListadoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarLstAutos()\");\n\t\t\n\t\treturn lista;\n\t}", "public ArrayList<String> mostraRegles(){\n ArrayList<String> tauleta = new ArrayList<>();\n String aux = reg.getAssignacions().get(0).getAntecedents().getRangs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public List<GoleadoresDTO> listarTodo(int idTorneo,Connection conexion) throws MiExcepcion {\n ArrayList<GoleadoresDTO> listarGoleadores = new ArrayList();\n\n try {\n String query = \"SELECT DISTINCT usuarios.primerNombre, \" +\n\" usuarios.primerApellido, tablagoleadores.numeroGoles, tablagoleadores.idEquipo, \"+ \n\" tablagoleadores.idTorneo,tablagoleadores.idJugador, \" +\n\" equipo.nombre \" +\n\" FROM tablagoleadores \" +\n\" INNER JOIN jugadoresporequipo \" +\n\" ON tablagoleadores.idJugador = jugadoresporequipo.codigoJugador \" +\n\" INNER JOIN usuarios \" +\n\" ON jugadoresporequipo.codigoJugador = usuarios.idUsuario \" +\n\" INNER JOIN equiposdeltorneo \" +\n\" ON tablagoleadores.idEquipo = equiposdeltorneo.equipoCodigo \" +\n\" INNER JOIN equipo \" +\n\" ON equiposdeltorneo.equipoCodigo = equipo.codigo \" +\n\" INNER JOIN torneo \" +\n\" ON tablagoleadores.idTorneo = torneo.idTorneo \" +\n\" WHERE tablagoleadores.idTorneo = ? \" +\n\" AND equiposdeltorneo.torneoIdTorneo=? \" +\n\" ORDER BY numeroGoles DESC\";\n statement = conexion.prepareStatement(query);\n statement.setInt(1, idTorneo);\n statement.setInt(2, idTorneo);\n rs = statement.executeQuery();\n //mientras que halla registros cree un nuevo dto y pasele la info\n while (rs.next()) {\n //crea un nuevo dto\n GoleadoresDTO gol = new GoleadoresDTO();\n UsuariosDTO usu = new UsuariosDTO();\n EquipoDTO equipo = new EquipoDTO();\n //le pasamos los datos que se encuentren\n gol.setNumeroGoles(rs.getInt(\"numeroGoles\"));\n gol.setIdEquipo(rs.getInt(\"idEquipo\"));\n gol.setIdTorneo(rs.getInt(\"idTorneo\"));\n gol.setIdJugador(rs.getLong(\"idJugador\"));\n usu.setPrimerNombre(rs.getString(\"primerNombre\"));\n usu.setPrimerApellido(rs.getString(\"primerApellido\"));\n gol.setUsu(usu);//paso el usuario al objeto \n equipo.setNombre(rs.getString(\"nombre\"));\n gol.setEquipo(equipo);\n //agregamos el objeto dto al arreglo\n listarGoleadores.add(gol);\n\n }\n } catch (SQLException sqlexception) {\n throw new MiExcepcion(\"Error listando goles\", sqlexception);\n\n } \n// finally {\n// try{\n// if (statement != null) {\n// statement.close(); \n// }\n// }catch (SQLException sqlexception) {\n// throw new MiExcepcion(\"Error listando goles\", sqlexception);\n//\n// }\n// }\n //devolvemos el arreglo\n return listarGoleadores;\n\n }", "public static List<Tweet> listedesderniertwitte(int idcompte)\n\t\t{\t\n\t\t\t\n\t\t\t\n\t\t\tList<Tweet> maliste= new ArrayList<Tweet>();\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\t\n\t\t Connection maConnexion =DAO.getConnection();\n\t\t PreparedStatement st = maConnexion.prepareStatement(\"SELECT Tweet_Id FROM T_Tweet WHERE compte_id = (Select Followers_id from T_Followers where compte_id=?);\"); \n\t\t st.setInt(1, idcompte);\n\t\t \n\t\t ResultSet rs = st.executeQuery();\n\t\t \n\t\t \n\t\t while(rs.next())\n\t\t {\n\t\t \t\n\t\t \t\n\t\t \t int id=rs.getInt(1);\n\t\t \t Tweet monTweet= DAOTweet.tweetbyid(id);\n\t\t \t maliste.add(monTweet);\n\t\t \t\n\t\t \t \n\t\t \t \t \n\t\t }\n\t\t maConnexion.close();\n\t\t return maliste;\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\treturn maliste;\n\n\t\t\t\n\t\t\n\t\t}", "public ArrayList<LoteriaDto> listarLoterias() {\n\n ArrayList<LoteriaDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,nombre,dia,hora,minuto,ruta FROM loteria\";\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n LoteriaDto dto = new LoteriaDto();\n dto.setCodigo(rs.getInt(1));\n dto.setNombre(rs.getString(2));\n dto.setDia(rs.getInt(3));\n dto.setHora(rs.getInt(4));\n dto.setMinuto(rs.getInt(5));\n dto.setRuta(rs.getString(6));\n lista.add(dto);\n\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }", "private void carregarPacienteAtivoList() {\n\t\tthis.setPacienteList(new ArrayList<Paciente>());\n\t\tthis.getPacienteList().addAll(this.getPacienteDAO().getPacienteAtivoList());\n\t}", "public List<GrupoLocalResponse> buscarTodos();", "private List<SubServicoTO> parseTO(List<AgvTabSubservico> listaResultado) {\r\n\t\t\r\n\t\tArrayList<SubServicoTO> lista = new ArrayList<SubServicoTO>();\r\n\t\t\r\n\t\tfor (Iterator<AgvTabSubservico> iterator = listaResultado.iterator(); iterator.hasNext();) {\r\n\t\t\tAgvTabSubservico element = (AgvTabSubservico) iterator.next();\r\n\t\t\t\r\n\t\t\tSubServicoTO to = new SubServicoTO();\r\n\t\t\tto.setCdServicoCsi( (element.getCdServicoCsi() == null ? null : element.getCdServicoCsi().toString()));\r\n\t\t\tto.setCdSerCom(element.getCdSerCom());\r\n\t\t\tto.setCdServExe(element.getCdServExe());\r\n\t\t\tto.setCdSubservico(element.getCdSubservico());\r\n\t\t\tto.setDataAtualizacao(element.getDtAtualizacao());\r\n\t\t\tto.setDataPublicacao(element.getDtPublicacao());\r\n\t\t\tto.setDsCondExec(element.getDsCondExec());\r\n\t\t\tto.setDsFormaPgto(element.getDsFormaPgto());\r\n\t\t\tto.setDsLink(element.getDsLink());\r\n\t\t\tto.setDsPrazoAtend(element.getDsPrazoAtend());\r\n\t\t\tto.setDsPreco(element.getDsPreco());\r\n\t\t\tto.setDsSubservico(element.getDsSubservico());\r\n\t\t\tto.setFlagPublicGuia(element.getFlPublicGuia());\r\n\t\t\tto.setFlagPublicTabPrecos(element.getFlPublicTabPrecos());\r\n\r\n\t\t\tlista.add(to);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "public List<Temas> ListarTemas(){\n try{\r\n Statement smtm = _cn.createStatement();\r\n \r\n List<Temas> temas = new ArrayList<>();\r\n \r\n ResultSet result = smtm.executeQuery(\"SELECT * FROM tema ORDER BY Id;\");\r\n \r\n while(result.next()){\r\n Temas tema = new Temas();\r\n tema.setId(result.getInt(\"Id\"));\r\n tema.setNombre(result.getString(\"Nombre\"));\r\n tema.setURL_Imagen(result.getString(\"URL_Imagen\"));\r\n \r\n temas.add(tema);\r\n }\r\n \r\n return temas;\r\n \r\n }\r\n catch(Exception e){\r\n return null;\r\n }\r\n }", "@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }", "public ArrayList<Note> pedirTodasLasNotas(){\n ArrayList<Note> todasLasNotas = new ArrayList<>();\n Note nota;\n HashMap<Integer,String> misNotas = new HashMap<Integer,String>();\n ArrayList<String> tituloTratamiento = new ArrayList<String>();\n String[] campos = {\"_id\",\"titulo\",\"fecha\"};\n Cursor c = db.query(\"nota\",campos,null,null,null,null,null);\n if(c.moveToFirst()){\n\n do{\n nota = new Note();\n nota.setId(c.getInt(0));\n nota.setTitulo(c.getString(1));\n nota.setFechaFormateada(c.getString(2));\n todasLasNotas.add(nota);\n }while(c.moveToNext());\n return todasLasNotas;\n }\n\n return todasLasNotas;\n\n }", "public java.util.List<viaggi.Pacchetto> getPacchetti();", "public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "List<Oficios> buscarActivas();", "WsTodoList[] getAllTodoLists();", "public List<Tiposservicios> getTiposServicios(HashMap parametros);", "@GET\n public List<TrayectoDetail> darTrayectos() {\n \n List<TrayectoDetail> listaTrayecto = listEntity2DetailDTO(trayectoLogic.getTrayectos());\n LOGGER.log(Level.INFO, \"BookResource getBooks: output: {0}\", listaTrayecto);\n return listaTrayecto;\n }", "public List<Task> listTasks(String extra);", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void listaTemas() {\n\t\ttemas = temaEJB.listarTemas();\n\t}", "public List<TiposServiciosT> getTiposServiciosT(HashMap parametros);", "public Trips() {\n filters = new HashMap<>();\n comparator = Comparator.comparing(Trip::getTravelTime);\n trips = new ArrayList<>();\n modifiedSinceLastResult = true;\n }", "public List<Perguntas> getPerguntas(String servico) {\r\n String idSolicitacao = \"\";\r\n List<Perguntas> perguntas = new ArrayList<>();\r\n\r\n String sql = \"Select\\n\"\r\n + \" perguntas.Id_Perguntas,\\n\"\r\n + \" perguntas.pergunta,\\n\"\r\n + \" perguntas.Servico_id_servico,\\n\"\r\n + \" solicitacoes.id_solicitacao\\n\"\r\n + \"FROM \\n\"\r\n + \"\tpid \\n\"\r\n + \"\\n\"\r\n + \"INNER JOIN solicitacoes on (pid.cod_pid= solicitacoes.PID_cod_pid)\\n\"\r\n + \" INNER JOIN servico on\t(solicitacoes.Servico_id_servico=servico.id_servico)\\n\"\r\n + \" INNER JOIN perguntas on \t(servico.id_servico=perguntas.Servico_id_servico)\\n\"\r\n + \" WHERE solicitacoes.em_chamado = 3 and servico.id_servico = \" + servico + \";\";\r\n\r\n stmt = null;\r\n rs = null;\r\n\r\n try {\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n while (rs.next()) {\r\n Perguntas p = new Perguntas();\r\n\r\n p.setIdPerguntas(rs.getInt(1));\r\n p.setIdServico(rs.getInt(3));\r\n p.setPergunta(rs.getString(2));\r\n idSolicitacao = rs.getString(4);\r\n perguntas.add(p);\r\n }\r\n mudaStatus(idSolicitacao);\r\n\r\n return perguntas;\r\n\r\n } catch (SQLException | ArrayIndexOutOfBoundsException ex) {\r\n Logger.getLogger(SimpleQueries.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return perguntas;\r\n }", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getTipos() {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\tList<Tipo> Tipos;\n\t\ttry {\n\t\t\tTipos = tm.darTipos();\n\t\t} catch (Exception e) {\n\t\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(Tipos).build();\n\t}", "public List<TransporteTerrestreEntity> getTransportes() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todos los transportes.\");\n List<TransporteTerrestreEntity> transportes = persistence.findAll(); \n LOGGER.log(Level.INFO, \"Termina proceso de consultar todos los transportes\");\n return transportes; \n }", "@GetMapping(\"/list\")\n public List<Traveller> listTraveller() {\n List<Traveller> theTraveller = travelService.findAll();\n return theTraveller;\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public ArrayList <String> ListDepartamentos() throws RemoteException;", "public List<Restaurant> listRestaurantVotedToday(){\r\n\t\tList<Restaurant> restaurantList = new LinkedList<Restaurant>();\r\n\t\tList<Vote> votingList = DataDAO.getVotingList();\r\n\t\tList<Vote> voteListResult = votingList.stream().filter(l -> l.getVotingDate().equals(DateUtil.asDate(LocalDate.now()))).collect(Collectors.toList());;\r\n\t\tvoteListResult.forEach(v -> restaurantList.add(v.getRestaurant()) );\r\n\t\treturn restaurantList;\r\n\t\t\r\n\t}", "@Override\n public List listar() {\n return instalaciones.getAll();\n }", "public List<Location> listarPorAnunciante() throws SQLException {\r\n \r\n //OBJETO LISTA DE COMODOS\r\n List<Location> enderecos = new ArrayList<>(); \r\n \r\n //OBJETO DE CONEXÃO COM O BANCO\r\n Connection conn = ConnectionMVC.getConnection();\r\n \r\n //OBJETO DE INSTRUÇÃO SQL\r\n PreparedStatement pStatement = null;\r\n \r\n //OBJETO CONJUNTO DE RESULTADOS DA TABELA IMOVEL\r\n ResultSet rs = null;\r\n \r\n try {\r\n \r\n //INSTRUÇÃO SQL DE LISTAR IMÓVEIS\r\n pStatement = conn.prepareStatement(\"select * from pessoa inner join anuncio inner join imagem inner join imovel inner join location inner join comodo\");\r\n \r\n //OBJETO DE RESULTADO DA INSTRUÇÃO\r\n rs = pStatement.executeQuery();\r\n \r\n //PERCORRER OS DADOS DA INSTRUÇÃO\r\n while(rs.next()) {\r\n \r\n //OBJETO UTILIZADO PARA BUSCA\r\n Location endereco = new Location();\r\n \r\n //PARAMETROS DE LISTAGEM\r\n endereco.setCep(rs.getString(\"cep\"));\r\n endereco.setRua(rs.getString(\"rua\"));\r\n endereco.setNumero(rs.getInt(\"numero\"));\r\n endereco.setBairro(rs.getString(\"bairro\"));\r\n endereco.setCidade(rs.getString(\"cidade\"));\r\n endereco.setUf(rs.getString(\"uf\"));\r\n\r\n //OBJETO ADICIONADO A LISTA\r\n enderecos.add(endereco); \r\n }\r\n \r\n //MENSAGEM DE ERRO\r\n } catch (SQLException ErrorSql) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao listar do banco: \" +ErrorSql,\"erro\", JOptionPane.ERROR_MESSAGE);\r\n\r\n //FINALIZAR/FECHAR CONEXÃO\r\n }finally {\r\n ConnectionMVC.closeConnection(conn, pStatement, rs);\r\n } \r\n return enderecos;\r\n }", "List<Vehiculo>listar();", "public static void main(String[] args) throws Exception {\n\t\tLista<Contato> vetor = new Lista<Contato>(20);\n\t\tLinkedList<Contato> listaEncadeada = new LinkedList<Contato>();\n\n\t\tContato c1 = new Contato(\"c1\", \"111-1111\", \"c1@email.com.br\");\n\t\tContato c2 = new Contato(\"c2\", \"222-2222\", \"c2@email.com.br\");\n\t\tContato c3 = new Contato(\"c3\", \"333-3333\", \"c3@email.com.br\");\n\t\tContato c4 = new Contato(\"c4\", \"444-2344\", \"c4@email.com.br\");\n\t\tContato c5 = new Contato(\"c5\", \"555-5585\", \"c5@email.com.br\");\n\t\tContato c6 = new Contato(\"c6\", \"111-1911\", \"c6@email.com.br\");\n\t\tContato c7 = new Contato(\"c7\", \"222-2322\", \"c7@email.com.br\");\n\t\tContato c8 = new Contato(\"c8\", \"333-3333\", \"c8@email.com.br\");\n\t\tContato c9 = new Contato(\"c9\", \"454-4644\", \"c9@email.com.br\");\n\t\tContato c10 = new Contato(\"c10\", \"515-5235\", \"c10@email.com.br\");\n\t\tContato c11 = new Contato(\"c11\", \"131-1411\", \"c11@email.com.br\");\n\t\tContato c12 = new Contato(\"c12\", \"252-2672\", \"c12@email.com.br\");\n\t\tContato c13 = new Contato(\"c13\", \"313-3433\", \"c13@email.com.br\");\n\t\tContato c14 = new Contato(\"c14\", \"433-4334\", \"c14@email.com.br\");\n\t\tContato c15 = new Contato(\"c15\", \"535-5355\", \"c15@email.com.br\");\n\t\tContato c16 = new Contato(\"c16\", \"161-1516\", \"c16@email.com.br\");\n\t\tContato c17 = new Contato(\"c17\", \"272-2272\", \"c17@email.com.br\");\n\t\tContato c18 = new Contato(\"c18\", \"383-3993\", \"c18@email.com.br\");\n\t\tContato c19 = new Contato(\"c19\", \"141-4949\", \"c19@email.com.br\");\n\t\tContato c20 = new Contato(\"c20\", \"565-5565\", \"c20@email.com.br\");\n\t\tContato c21 = new Contato(\"c21\", \"616-1611\", \"c21@email.com.br\");\n\t\tContato c22 = new Contato(\"c22\", \"212-2121\", \"c22@email.com.br\");\n\t\tContato c23 = new Contato(\"c23\", \"131-1331\", \"c23@email.com.br\");\n\t\tContato c24 = new Contato(\"c24\", \"424-4444\", \"c24@email.com.br\");\n\t\tContato c25 = new Contato(\"c25\", \"565-5555\", \"c25@email.com.br\");\n\t\tContato c26 = new Contato(\"c26\", \"111-1611\", \"c26@email.com.br\");\n\t\tContato c27 = new Contato(\"c27\", \"282-1252\", \"c27@email.com.br\");\n\t\tContato c28 = new Contato(\"c28\", \"323-3433\", \"c28@email.com.br\");\n\t\tContato c29 = new Contato(\"c29\", \"544-4464\", \"c29@email.com.br\");\n\t\tContato c30 = new Contato(\"c30\", \"155-5455\", \"c30@email.com.br\");\n\n\t\ttry {\n\t\t\t// ex5\n\t\t\tvetor.adiciona(c1);\n\t\t\tvetor.adiciona(c2);\n\t\t\tvetor.adiciona(c3);\n\t\t\tvetor.adiciona(c4);\n\t\t\tvetor.adiciona(c5);\n\t\t\tvetor.adiciona(c6);\n\t\t\tvetor.adiciona(c7);\n\t\t\tvetor.adiciona(c8);\n\t\t\tvetor.adiciona(c9);\n\t\t\tvetor.adiciona(c10);\n\t\t\tvetor.adiciona(c11);\n\t\t\tvetor.adiciona(c12);\n\t\t\tvetor.adiciona(c13);\n\t\t\tvetor.adiciona(c14);\n\t\t\tvetor.adiciona(c15);\n\t\t\tvetor.adiciona(c16);\n\t\t\tvetor.adiciona(c17);\n\t\t\tvetor.adiciona(c18);\n\t\t\tvetor.adiciona(c19);\n\t\t\tvetor.adiciona(c20);\n\t\t\tvetor.adiciona(c21);\n\t\t\tvetor.adiciona(c22);\n\t\t\tvetor.adiciona(c23);\n\t\t\tvetor.adiciona(c24);\n\t\t\tvetor.adiciona(c25);\n\t\t\tvetor.adiciona(c26);\n\t\t\tvetor.adiciona(c27);\n\t\t\tvetor.adiciona(c28);\n\t\t\tvetor.adiciona(c29);\n\t\t\tvetor.adiciona(c30);\n\t\t\t// ex3\n\t\t\tvetor.removerT(\"111-1111\");\n\t\t\t//ex4-vetor.RemoverTudo();\n\t\t\t\n\t\t\tSystem.out.println(vetor);\n\t\t\t// ex1\n\t\t\tSystem.out.println(\"Confirmar se o elemento na lista existe:\" + vetor.contem(c2));\n\t\t\t// ex2\n\t\t\tSystem.out.println(\"Retornar a posicao do elemento, se retornar -1 que dizer que o elemento não existe:\"\n\t\t\t\t\t+ vetor.indicio(c2));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// ex6\n\t\tlistaEncadeada.add(c1);\n\t\tlistaEncadeada.add(c2);\n\t\tlistaEncadeada.add(c3);\n\t\tlistaEncadeada.add(c4);\n\t\tlistaEncadeada.add(c5);\n\t\tlistaEncadeada.add(c6);\n\t\tlistaEncadeada.add(c7);\n\t\tlistaEncadeada.add(c8);\n\t\tlistaEncadeada.add(c9);\n\t\tlistaEncadeada.add(c10);\n\t\tlistaEncadeada.add(c11);\n\t\tlistaEncadeada.add(c12);\n\t\tlistaEncadeada.add(c13);\n\t\tlistaEncadeada.add(c14);\n\t\tlistaEncadeada.add(c15);\n\t\tlistaEncadeada.add(c16);\n\t\tlistaEncadeada.add(c17);\n\t\tlistaEncadeada.add(c18);\n\t\tlistaEncadeada.add(c19);\n\t\tlistaEncadeada.add(c20);\n\t\tlistaEncadeada.add(c21);\n\t\tlistaEncadeada.add(c22);\n\t\tlistaEncadeada.add(c23);\n\t\tlistaEncadeada.add(c24);\n\t\tlistaEncadeada.add(c25);\n\t\tlistaEncadeada.add(c26);\n\t\tlistaEncadeada.add(c27);\n\t\tlistaEncadeada.add(c28);\n\t\tlistaEncadeada.add(c29);\n\t\tlistaEncadeada.add(c30);\n\n\t\tSystem.out.println(listaEncadeada);\n\n\t}", "public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;", "List<Plaza> consultarPlazas();", "List<Reservation> trouverlisteDeReservationAyantUneDateDenvoieDeMail();", "public List<Restaurant> restaurantList(){\r\n\t\treturn DataDAO.getRestaurantList();\r\n\t}", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "public List<Usuario> listarUsuarios(boolean Vigente){\r\n return cVista.listarUsuarios(Vigente);\r\n }", "public List<Usuario> listar() {\n return listaUse;\n }", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}" ]
[ "0.7498455", "0.6503266", "0.63824826", "0.62241715", "0.62007254", "0.6200307", "0.61905825", "0.61831415", "0.61341906", "0.6132241", "0.6110961", "0.6085274", "0.6049176", "0.60264564", "0.6005057", "0.59344995", "0.59260565", "0.5925697", "0.59164584", "0.59162706", "0.59125525", "0.5912055", "0.58967906", "0.58872074", "0.58822167", "0.5876367", "0.5863913", "0.5852972", "0.5831245", "0.5814571", "0.5810639", "0.5809368", "0.5807529", "0.5804368", "0.5802662", "0.5793623", "0.57866645", "0.5784072", "0.5774525", "0.5772783", "0.5764118", "0.5762793", "0.5740718", "0.5727042", "0.57265717", "0.5714651", "0.571346", "0.571298", "0.57117015", "0.5711556", "0.57092965", "0.5701603", "0.5699728", "0.56994504", "0.5698116", "0.5690851", "0.568171", "0.5659271", "0.5656263", "0.56418693", "0.5626111", "0.5624435", "0.5623686", "0.56072795", "0.5598351", "0.55958486", "0.559214", "0.5586362", "0.5578611", "0.55738723", "0.5572175", "0.5567337", "0.5560314", "0.5556281", "0.5552658", "0.55492115", "0.5536531", "0.55353904", "0.5534189", "0.5532871", "0.55295914", "0.5525582", "0.5524973", "0.5521087", "0.549898", "0.5496884", "0.5494965", "0.5493452", "0.5492785", "0.5489784", "0.5488966", "0.54875195", "0.5478959", "0.54787904", "0.547791", "0.54769397", "0.54768395", "0.5476372", "0.5476258", "0.54715395" ]
0.77513397
0
Metodo que permite listar todos los Tripulantes almacenados
public List<Tripulante> buscarTodosTripulantes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Tripulante> obtenerTripulantes();", "@GET\n\t@Path(\"/tipos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoAutoDTO> listarTipos(){\n\t\tSystem.out.println(\"ini: listarTipos()\");\n\t\t\n\t\tTipoAutoService tipoService = new TipoAutoService();\n\t\tArrayList<TipoAutoDTO> lista = tipoService.ListadoTipoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarTipos()\");\n\t\t\n\t\treturn lista;\n\t}", "List<Travel> getAllTravel();", "@Override\n\tpublic List<Trip> searchAllTrips() {\n\t\tString hql = \"FROM Trip\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}", "List<Persona> obtenerTodasLasPersona();", "public List getTrabajadores();", "public ArrayList<Trip> getAllTrips() {\n ArrayList<Trip> tripList = new ArrayList<>();\n\n // Open the database for reading\n openReadableDB();\n\n // Query the database for all rows and columns in the Trip table\n Cursor cursor = db.query(TRIP_TABLE, null, null,\n null, null, null, null);\n while (cursor.moveToNext() == true) {\n // Convert Cursor to Trip\n Trip theTrip = cursorToTrip(cursor);\n\n // Add the Trip object to the list\n tripList.add(theTrip);\n }\n\n closeCursor(cursor);\n closeConnection();\n return tripList;\n }", "public List<Permiso> obtenerTodosActivos();", "@GET\n\t@Path(\"/tipost\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoTransmisionDTO> listarTiposT(){\n\t\tSystem.out.println(\"ini: listarTiposT()\");\n\t\t\n\t\tTipoTransmisionService tipotService = new TipoTransmisionService();\n\t\tArrayList<TipoTransmisionDTO> lista = tipotService.ListadoTipoTransmision();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarTiposT()\");\n\t\t\n\t\treturn lista;\n\t}", "public ArrayList<DataRestaurante> listarRestaurantes();", "List<Entidade> listarTodos();", "@Override\n\tpublic List<CLIENTE> listarTodos() {\n\t\t\n\t\tString sql = \"SELECT * FROM CLIENTE\";\n\t\t\n\t\tList<CLIENTE> listaCliente = new ArrayList<CLIENTE>();\n\t\t\n\t\tConnection conexao;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconexao = JdbcUtil.getConexao();\n\t\t\t\n\t\t\tPreparedStatement ps = conexao.prepareStatement(sql);\n\t\t\t\n\t\t\tResultSet res = ps.executeQuery();\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\t\n\t\t\t\tcliente = new CLIENTE();\n\t\t\t\tcliente.setNomeCliente(res.getString(\"NOME_CLIENTE\"));\n\t\t\t\t\n\t\t\t\tlistaCliente.add(cliente);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tps.close();\n\t\t\tconexao.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn listaCliente;\n\t}", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "@Override\n\tpublic List<Servicio> listarServicioTQ() {\n\t\tservicioDao = new ServicioDaoImpl();\n\t\treturn servicioDao.listarServicioTQ();\n\t}", "public List<GrauParentesco> getListTodos();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Empresa> listarTodos() {\n\t\tList<Empresa> lista = new ArrayList<Empresa>();\n\t\t\n\t\ttry {\n\t\t\tlista = empresaDAO.listarTodosDesc();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn lista;\n\t}", "List<Pacote> buscarPorTransporte(Transporte transporte);", "@Override\r\n\tpublic List<ReservaBean> traeTodos() throws Exception {\n\t\treturn null;\r\n\t}", "public ArrayList<Libro> recuperaTodos();", "public List<PerfilTO> buscarTodos();", "public void borrarTodosTripulantes();", "@Override\r\n\tpublic List<Turista> conMasPuntos() {\n\t\treturn (List<Turista>) turistaDAO.conMasPuntos();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TarefaEntity> TodasTarefas(){\n\t\t\n\t\treturn this.entityManager.createQuery(\"SELECT t FROM TarefaEntity t ORDER BY t.nome\").getResultList();\n\t}", "public static List<Endereco> listar() {\n\t\t\tConnection conexao = ConectaPostgreSQL.geraConexao();\n\t\t\t// variavel lista de ass\n\t\t\tList<Endereco> acessos = new ArrayList<Endereco>();\n\t\t\t// executa o SQL no banco de endereco\n\t\t\tStatement consulta = null;\n\t\t\t// contém os endereco consultado da tabela\n\t\t\tResultSet resultado = null;\n\t\t\t// objeto as\n\t\t\t// Endereco as = null;\n\t\t\t// consulta SQL\n\t\t\tString sql = \"select distinct * from Endereco\";\n\t\t\ttry {\n\t\t\t\t// consulta => objeto que executa o SQL no banco de endereco\n\t\t\t\tconsulta = conexao.createStatement();\n\t\t\t\t// resultado => objeto que contém os endereco consultado da tabela\n\t\t\t\t// Endereco\n\t\t\t\tresultado = consulta.executeQuery(sql);\n\t\t\t\t// Lê cada as\n\n\t\t\t\twhile (resultado.next()) {\n\t\t\t\t\tEndereco endereco = new Endereco();\n\t\t\t\t\tendereco.setBairro(resultado.getString(\"bairro\"));\n\t\t\t\t\tendereco.setCep(resultado.getString(\"cep\"));\n\t\t\t\t\tendereco.setCidade(resultado.getString(\"cidade\"));\n\t\t\t\t\tendereco.setEstado(resultado.getString(\"estado\"));\n\t\t\t\t\tendereco.setNumero(resultado.getInt(\"numero\"));\n\t\t\t\t\tendereco.setRua(resultado.getString(\"rua\"));\n\t\t\t\t\t// insere o as na lista\n\t\t\t\t\tacessos.add(endereco);\n\n\t\t\t\t}\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new RuntimeException(\"Erro ao buscar um acesso a serviços: \" + e);\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tconsulta.close();\n\t\t\t\t\tresultado.close();\n\t\t\t\t\tconexao.close();\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\tthrow new RuntimeException(\"Erro ao fechar a conexao \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// retorna lista de ass\n\t\t\treturn acessos;\n\t\t}", "public ArrayList<DataCliente> listarClientes();", "List<Receta> getAllWithUSer();", "public Collection<Transferencia> traerTodasLasTransferencias() {\n Collection<Transferencia> resultado = null;\n try {\n controlTransferencia = new ControlTransferencia();\n bitacora.info(\"Registro Transferencia Iniciado correctamente\");\n resultado = controlTransferencia.traerTodasLasTransferencias();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro Transferencia por \" + ex.getMessage());\n }\n return resultado;\n }", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList <Persistence.Tache> getdoneeeee(){\n\t\tdone=sug.gettoutelestaches().stream().filter(e->e.getEtatdeTache().name().equals(EtatdeTache.done.name())).collect(Collectors.toList());\n\n\t\treturn (ArrayList<Persistence.Tache>) done;\n\t}", "public ArrayList<DataUsuario> listarUsaurios();", "public List<Trip> getTripsByUser(User byUser) throws UserNotLoggedInException {\n\t\t// recup du \"LoggedUser\"\n\t\tUser loggedUser = getSession().getLoggedUser();\n\t\tif (loggedUser == null) {\n\t\t\tthrow new UserNotLoggedInException();\n\t\t}\n\n\t\t// détermine si \"isFriend\"\n\t\t// vrai si un des friends du byUser est le loggedUser\n\t\tboolean isFriend = false;\n\t\tfor (User friend : byUser.getFriends()) {\n\t\t\tif (friend.equals(loggedUser)) {\n\t\t\t\tisFriend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// si isFriend, on appel le DAO pour trouver les trips du byUser\n\t\tList<Trip> tripList = new ArrayList<Trip>();\n\t\tif (isFriend) {\n tripList = findTripsByUser(byUser);\n }\n\t\treturn tripList;\n\t}", "public List<GrupoLocalResponse> buscarTodos();", "WsTodoList[] getAllTodoLists();", "public List<ReceitaDTO> listarReceitas() {\n return receitaOpenHelper.listar();\n }", "public ArrayList<DataRestaurante> listarRestaurantes(String patron) throws Exception;", "@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }", "public static ArrayList<Trip> getTripList(Context context){\n\n SharedPreferences sharedPreferences = context.getSharedPreferences(context.getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n Gson gson = new Gson();\n String tripArray = sharedPreferences.getString(context.getString(R.string.trips_array), \"[]\");\n\n ArrayList<Trip> allTrips = gson.fromJson(tripArray, new TypeToken<ArrayList<Trip>>(){}.getType());\n if(allTrips.size() > 0){\n return allTrips;\n } else return null;\n\n }", "public abstract String viewTrips(List<Trip> tripList);", "public List<Comentario> buscaPorTopico(Topico t);", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "@GET\n\t@Path(\"/lstautos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<AutoDTO> listarLstAutos(){\n\t\tSystem.out.println(\"ini: listarLstAutos()\");\n\t\t\n\t\tAutoService autoService = new AutoService();\n\t\tArrayList<AutoDTO> lista = autoService.ListadoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarLstAutos()\");\n\t\t\n\t\treturn lista;\n\t}", "private void getTravelItems() {\n String[] columns = Columns.getTravelColumnNames();\n Cursor travelCursor = database.query(TABLE_NAME, columns, null, null, null, null, Columns.KEY_TRAVEL_ID.getColumnName());\n travelCursor.moveToFirst();\n while (!travelCursor.isAfterLast()) {\n cursorToTravel(travelCursor);\n travelCursor.moveToNext();\n }\n travelCursor.close();\n }", "@Override\n public List<Pessoa> todas() {\n this.conexao = Conexao.abrirConexao();\n List<Pessoa> pessoas = new ArrayList<>();\n try {\n String consulta = \"SELECT * FROM pessoa;\";\n PreparedStatement statement = conexao.prepareStatement(consulta);\n ResultSet resut = statement.executeQuery();\n while (resut.next()) {\n pessoas.add(criarPessoa(resut));\n }\n } catch (SQLException ex) {\n Logger.getLogger(PessoasJDBC.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n Conexao.fecharConexao(conexao);\n }\n if (pessoas.size() > 0) {\n return Collections.unmodifiableList(pessoas);\n } else {\n return Collections.EMPTY_LIST;\n }\n\n }", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "public List<Vendedor> listarVendedor();", "private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }", "public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public List<Tipousr> findAllTipos(){\n\t\t List<Tipousr> listado;\n\t\t Query q;\n\t\t em.getTransaction().begin();\n\t\t q=em.createQuery(\"SELECT u FROM Tipousr u ORDER BY u.idTipousr\");\n\t\t listado= q.getResultList();\n\t\t em.getTransaction().commit();\n\t\t return listado;\n\t\t \n\t\t}", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public ArrayList<Viaje> listar(){\n\t\tArrayList<Viaje> lista=new ArrayList<Viaje>();\n\t\t\n\t\tString sql=\"select * from viaje\";\n\t\t\n\t\ttry(Connection con=DB.getConexion();\n\t\t\tStatement stm=con.createStatement();){\n\t\t\t\tResultSet rs=stm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tViaje v=new Viaje(rs.getInt(\"id\"),rs.getString(\"destino\"),rs.getInt(\"duracion\"),rs.getFloat(\"precio\"));\n\t\t\t\tlista.add(v);\n\t\t\t}\n\t\t\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tsqle.printStackTrace();\n\t\t}\n\t\treturn lista;\n\t}", "@Override\r\n\tpublic List<Conta> RecuperTodos() {\n\t\treturn null;\r\n\t}", "public List<Talla> obtenTallas() throws Exception {\r\n IntAdmInventario inv = new FacAdmInventario();\r\n\r\n return inv.obtenListaTallas();\r\n }", "public List getChamado(String servico) {\r\n Solicitacoes e = chamadoHandler(servico);\r\n\r\n List<ChamadoEnderecos> consultas = new ArrayList<>();\r\n String sql = \"SELECT DISTINCT\\n\"\r\n + \"\tpid.cod_pid,\\n\"\r\n + \" pid.nome_estabelecimento,\\n\"\r\n + \" endereco.descricao,\\n\"\r\n + \" endereco.numero,\\n\"\r\n + \" endereco.bairro,\\n\"\r\n + \" endereco.complemento,\\n\"\r\n + \" municipio.nome_municipio,\\n\"\r\n + \" municipio.uf,\\n\"\r\n + \" municipio.cod_IBGE,\\n\"\r\n + \" solicitacoes.id_solicitacao\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \"FROM \\n\"\r\n + \"\tpid \\n\"\r\n + \" INNER JOIN contato on \t(pid.cod_pid = contato.PID_cod_pid)\\n\"\r\n + \" INNER JOIN endereco on \t(pid.cod_pid = endereco.PID_cod_pid)\\n\"\r\n + \" INNER JOIN telefone on \t(contato.id_contato = telefone.Contato_id_contato)\\n\"\r\n + \" INNER JOIN municipio on \t(endereco.Municipio_cod_IBGE = municipio.cod_IBGE)\\n\"\r\n + \" INNER JOIN solicitacoes on (pid.cod_pid= solicitacoes.PID_cod_pid)\\n\"\r\n + \" INNER JOIN servico on\t(solicitacoes.Servico_id_servico=servico.id_servico)\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \" WHERE solicitacoes.em_chamado= 3 and servico.id_servico=\" + servico + \";\";\r\n\r\n stmt = null;\r\n rs = null;\r\n \r\n try {\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n while (rs.next()) {\r\n consultas.add(new ChamadoEnderecos(rs.getString(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getString(4),\r\n rs.getString(5),\r\n rs.getString(6),\r\n rs.getString(7),\r\n rs.getString(8),\r\n rs.getString(9),\r\n rs.getString(10)\r\n ));\r\n\r\n }\r\n\r\n } catch (SQLException | ArrayIndexOutOfBoundsException ex) {\r\n Logger.getLogger(SimpleQueries.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return consultas;\r\n }", "List<TipoHuella> listarTipoHuellas();", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "List<Transport> getTransports();", "private ArrayList<Tarea> getTareas(Date desde, Date hasta) {\n BDConsulter consulter = new BDConsulter(DATABASE_URL, DATABASE_USER, DATABASE_PASS);//genero la clase, que se conecta a la base postgresql\n consulter.connect();//establezco la conexion\n\n //Si no hay ningun integrante seleccionado, selecciono todos\n List<String> integrantesSeleccionados = jListIntegrantes.getSelectedValuesList();\n DefaultListModel<String> model = (DefaultListModel<String>) jListIntegrantes.getModel();\n List<String> integrantes = new ArrayList<String>();\n if (integrantesSeleccionados.size() == 0) {\n for (int i = 0; i < model.getSize(); i++) {\n System.out.println((model.getElementAt(i)));\n integrantes.add(model.getElementAt(i));\n }\n integrantesSeleccionados = integrantes;\n }\n\n ArrayList<Tarea> tareas = new ArrayList<>();\n for (String s : integrantesSeleccionados) {\n tareas.addAll(consulter.getTareas(desde, hasta, (String) jComboBoxProyecto.getSelectedItem(), (String) jComboBoxGrupos.getSelectedItem(), s));//obtengo las tareas creadas entre un rango de fecha dado\n }\n consulter.disconnect();//termino la conexion con la base//termino la conexion con la base\n return tareas;\n }", "@Override\n\tpublic List<Usuario> obtenerTodas() {\n\t\treturn lista;\n\t}", "public abstract List<Usuario> seleccionarTodos();", "public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }", "public ArrayList <String> ListDepartamentos() throws RemoteException;", "List<IManifestEntry> getTrips();", "List<Oficios> buscarActivas();", "public void listaTemas() {\n\t\ttemas = temaEJB.listarTemas();\n\t}", "public List<Task> listTasks(String extra);", "public ArrayList<Note> pedirTodasLasNotas(){\n ArrayList<Note> todasLasNotas = new ArrayList<>();\n Note nota;\n HashMap<Integer,String> misNotas = new HashMap<Integer,String>();\n ArrayList<String> tituloTratamiento = new ArrayList<String>();\n String[] campos = {\"_id\",\"titulo\",\"fecha\"};\n Cursor c = db.query(\"nota\",campos,null,null,null,null,null);\n if(c.moveToFirst()){\n\n do{\n nota = new Note();\n nota.setId(c.getInt(0));\n nota.setTitulo(c.getString(1));\n nota.setFechaFormateada(c.getString(2));\n todasLasNotas.add(nota);\n }while(c.moveToNext());\n return todasLasNotas;\n }\n\n return todasLasNotas;\n\n }", "public List<GoleadoresDTO> listarTodo(int idTorneo,Connection conexion) throws MiExcepcion {\n ArrayList<GoleadoresDTO> listarGoleadores = new ArrayList();\n\n try {\n String query = \"SELECT DISTINCT usuarios.primerNombre, \" +\n\" usuarios.primerApellido, tablagoleadores.numeroGoles, tablagoleadores.idEquipo, \"+ \n\" tablagoleadores.idTorneo,tablagoleadores.idJugador, \" +\n\" equipo.nombre \" +\n\" FROM tablagoleadores \" +\n\" INNER JOIN jugadoresporequipo \" +\n\" ON tablagoleadores.idJugador = jugadoresporequipo.codigoJugador \" +\n\" INNER JOIN usuarios \" +\n\" ON jugadoresporequipo.codigoJugador = usuarios.idUsuario \" +\n\" INNER JOIN equiposdeltorneo \" +\n\" ON tablagoleadores.idEquipo = equiposdeltorneo.equipoCodigo \" +\n\" INNER JOIN equipo \" +\n\" ON equiposdeltorneo.equipoCodigo = equipo.codigo \" +\n\" INNER JOIN torneo \" +\n\" ON tablagoleadores.idTorneo = torneo.idTorneo \" +\n\" WHERE tablagoleadores.idTorneo = ? \" +\n\" AND equiposdeltorneo.torneoIdTorneo=? \" +\n\" ORDER BY numeroGoles DESC\";\n statement = conexion.prepareStatement(query);\n statement.setInt(1, idTorneo);\n statement.setInt(2, idTorneo);\n rs = statement.executeQuery();\n //mientras que halla registros cree un nuevo dto y pasele la info\n while (rs.next()) {\n //crea un nuevo dto\n GoleadoresDTO gol = new GoleadoresDTO();\n UsuariosDTO usu = new UsuariosDTO();\n EquipoDTO equipo = new EquipoDTO();\n //le pasamos los datos que se encuentren\n gol.setNumeroGoles(rs.getInt(\"numeroGoles\"));\n gol.setIdEquipo(rs.getInt(\"idEquipo\"));\n gol.setIdTorneo(rs.getInt(\"idTorneo\"));\n gol.setIdJugador(rs.getLong(\"idJugador\"));\n usu.setPrimerNombre(rs.getString(\"primerNombre\"));\n usu.setPrimerApellido(rs.getString(\"primerApellido\"));\n gol.setUsu(usu);//paso el usuario al objeto \n equipo.setNombre(rs.getString(\"nombre\"));\n gol.setEquipo(equipo);\n //agregamos el objeto dto al arreglo\n listarGoleadores.add(gol);\n\n }\n } catch (SQLException sqlexception) {\n throw new MiExcepcion(\"Error listando goles\", sqlexception);\n\n } \n// finally {\n// try{\n// if (statement != null) {\n// statement.close(); \n// }\n// }catch (SQLException sqlexception) {\n// throw new MiExcepcion(\"Error listando goles\", sqlexception);\n//\n// }\n// }\n //devolvemos el arreglo\n return listarGoleadores;\n\n }", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "List<Vehiculo>listar();", "public ArrayList<LoteriaDto> listarLoterias() {\n\n ArrayList<LoteriaDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,nombre,dia,hora,minuto,ruta FROM loteria\";\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n LoteriaDto dto = new LoteriaDto();\n dto.setCodigo(rs.getInt(1));\n dto.setNombre(rs.getString(2));\n dto.setDia(rs.getInt(3));\n dto.setHora(rs.getInt(4));\n dto.setMinuto(rs.getInt(5));\n dto.setRuta(rs.getString(6));\n lista.add(dto);\n\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }", "public List<Usuario> listarTodos() {\n List<Usuario> r = new ArrayList<>();\n try {\n try (Connection cnx = bd.obtenerConexion(Credenciales.BASE_DATOS, Credenciales.USUARIO, Credenciales.CLAVE);\n Statement stm = cnx.createStatement();\n ResultSet rs = stm.executeQuery(CMD_LISTAR2)) {\n while (rs.next()) {\n r.add(new Usuario(\n rs.getString(\"cedula\"),\n rs.getString(\"apellido1\"),\n rs.getString(\"apellido2\"),\n rs.getString(\"nombre\")\n ));\n }\n }\n } catch (SQLException ex) {\n System.err.printf(\"Excepción: '%s'%n\",\n ex.getMessage());\n }\n return r;\n }", "public List<Temas> ListarTemas(){\n try{\r\n Statement smtm = _cn.createStatement();\r\n \r\n List<Temas> temas = new ArrayList<>();\r\n \r\n ResultSet result = smtm.executeQuery(\"SELECT * FROM tema ORDER BY Id;\");\r\n \r\n while(result.next()){\r\n Temas tema = new Temas();\r\n tema.setId(result.getInt(\"Id\"));\r\n tema.setNombre(result.getString(\"Nombre\"));\r\n tema.setURL_Imagen(result.getString(\"URL_Imagen\"));\r\n \r\n temas.add(tema);\r\n }\r\n \r\n return temas;\r\n \r\n }\r\n catch(Exception e){\r\n return null;\r\n }\r\n }", "public void listar() {\n\t\t\n\t}", "public List<Aluno> buscarTodos() {\n\t\treturn null;\n\t}", "public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"gerente11@gerente.com\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"gerente11@gerente.com\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"gerente11@gerente.com\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }", "@GET\n public List<TrayectoDetail> darTrayectos() {\n \n List<TrayectoDetail> listaTrayecto = listEntity2DetailDTO(trayectoLogic.getTrayectos());\n LOGGER.log(Level.INFO, \"BookResource getBooks: output: {0}\", listaTrayecto);\n return listaTrayecto;\n }", "public List<Vaso> todos() {\n return new ArrayList<>(vasos); // Faz uma copia da lista estatica onde quem modifica externamente nao modifica internamente. Para nao perder o encapsulamento\n }", "@Override\n\tpublic List findAll()\n\t{\n\t\treturn teataskMapper.findAll();\n\t}", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "public static List<Tweet> listedesderniertwitte(int idcompte)\n\t\t{\t\n\t\t\t\n\t\t\t\n\t\t\tList<Tweet> maliste= new ArrayList<Tweet>();\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\t\n\t\t Connection maConnexion =DAO.getConnection();\n\t\t PreparedStatement st = maConnexion.prepareStatement(\"SELECT Tweet_Id FROM T_Tweet WHERE compte_id = (Select Followers_id from T_Followers where compte_id=?);\"); \n\t\t st.setInt(1, idcompte);\n\t\t \n\t\t ResultSet rs = st.executeQuery();\n\t\t \n\t\t \n\t\t while(rs.next())\n\t\t {\n\t\t \t\n\t\t \t\n\t\t \t int id=rs.getInt(1);\n\t\t \t Tweet monTweet= DAOTweet.tweetbyid(id);\n\t\t \t maliste.add(monTweet);\n\t\t \t\n\t\t \t \n\t\t \t \t \n\t\t }\n\t\t maConnexion.close();\n\t\t return maliste;\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\treturn maliste;\n\n\t\t\t\n\t\t\n\t\t}", "public List<SistemaFazendaModel> listaTudo(){\n\t\treturn this.session.createCriteria(SistemaFazendaModel.class).list();\n\t}", "public ArrayList<String> ListDepartamentos(String faculdadeTemp) throws RemoteException;", "public List<TransporteTerrestreEntity> getTransportes() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todos los transportes.\");\n List<TransporteTerrestreEntity> transportes = persistence.findAll(); \n LOGGER.log(Level.INFO, \"Termina proceso de consultar todos los transportes\");\n return transportes; \n }", "public void marcarTodos() {\r\n\t\tfor (int i = 0; i < listaPlantaCargoDto.size(); i++) {\r\n\t\t\tPlantaCargoDetDTO p = new PlantaCargoDetDTO();\r\n\t\t\tp = listaPlantaCargoDto.get(i);\r\n\t\t\tif (!obtenerCategoria(p.getPlantaCargoDet())\r\n\t\t\t\t\t.equals(\"Sin Categoria\"))\r\n\t\t\t\tp.setReservar(true);\r\n\t\t\tlistaPlantaCargoDto.set(i, p);\r\n\t\t}\r\n\t\tcantReservados = listaPlantaCargoDto.size();\r\n\t}", "@Override\n public List listar() {\n return instalaciones.getAll();\n }", "private void carregarPacienteAtivoList() {\n\t\tthis.setPacienteList(new ArrayList<Paciente>());\n\t\tthis.getPacienteList().addAll(this.getPacienteDAO().getPacienteAtivoList());\n\t}", "private List<SubServicoTO> parseTO(List<AgvTabSubservico> listaResultado) {\r\n\t\t\r\n\t\tArrayList<SubServicoTO> lista = new ArrayList<SubServicoTO>();\r\n\t\t\r\n\t\tfor (Iterator<AgvTabSubservico> iterator = listaResultado.iterator(); iterator.hasNext();) {\r\n\t\t\tAgvTabSubservico element = (AgvTabSubservico) iterator.next();\r\n\t\t\t\r\n\t\t\tSubServicoTO to = new SubServicoTO();\r\n\t\t\tto.setCdServicoCsi( (element.getCdServicoCsi() == null ? null : element.getCdServicoCsi().toString()));\r\n\t\t\tto.setCdSerCom(element.getCdSerCom());\r\n\t\t\tto.setCdServExe(element.getCdServExe());\r\n\t\t\tto.setCdSubservico(element.getCdSubservico());\r\n\t\t\tto.setDataAtualizacao(element.getDtAtualizacao());\r\n\t\t\tto.setDataPublicacao(element.getDtPublicacao());\r\n\t\t\tto.setDsCondExec(element.getDsCondExec());\r\n\t\t\tto.setDsFormaPgto(element.getDsFormaPgto());\r\n\t\t\tto.setDsLink(element.getDsLink());\r\n\t\t\tto.setDsPrazoAtend(element.getDsPrazoAtend());\r\n\t\t\tto.setDsPreco(element.getDsPreco());\r\n\t\t\tto.setDsSubservico(element.getDsSubservico());\r\n\t\t\tto.setFlagPublicGuia(element.getFlPublicGuia());\r\n\t\t\tto.setFlagPublicTabPrecos(element.getFlPublicTabPrecos());\r\n\r\n\t\t\tlista.add(to);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "@Override\n\tpublic List<Tourneys> getAllTourneys() {\n\t\tList<Tourneys>listOfTourneys = new ArrayList<>();\n\t\tString sql = \"select * from tournaments\";\n\t\t\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(results.next()) {\n\t\t\t\tTourneys tourney = mapRowToTourneys(results);\n\t\t\t\tlistOfTourneys.add(tourney);\n\t\t\t}\t\n\t\treturn listOfTourneys;\n\t}", "@GetMapping(\"/list\")\n public List<Traveller> listTraveller() {\n List<Traveller> theTraveller = travelService.findAll();\n return theTraveller;\n }", "public List<Profesor> consultarTodos() {\n\t\treturn daoProfesor.consultarTodos();\n\t}", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "public List<Usuario> listarUsuarios(boolean Vigente){\r\n return cVista.listarUsuarios(Vigente);\r\n }", "public List<Restaurant> restaurantList(){\r\n\t\treturn DataDAO.getRestaurantList();\r\n\t}", "public void solicitarRutinasPorDia() {\n eliminarTodasRutinas();\n\n }", "TaskList getList();", "public List<Carona> getTodasAsCaronas() {\r\n\t\tList<Carona> retorno = new LinkedList<Carona>();\r\n\r\n\t\tfor (Usuario usuario : listaDeUsuarios) {\r\n\t\t\tfor (Carona caronaTemp : usuario.getCaronas()) {\r\n\t\t\t\tretorno.add(caronaTemp);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public ArrayList<Equipamento> todos() {\n return new ArrayList<>(lista.values());\n }", "private ArrayList<String[]> getTodasOS() {\n ArrayList <OrdemServico> os = new OS_Controller(this).buscarTodasOrdemServicos();\n\n ArrayList<String[]> rows = new ArrayList<>();\n ArrayList<OrdemServico> ordemServicos=new ArrayList<>();\n\n for (OrdemServico ordemServico :os){\n String id = String.valueOf(ordemServico.getId());\n String numero = ordemServico.getNumero_ordem_servico();\n String cliente = ordemServico.getCliente().getNome();\n SimpleDateFormat formato = new SimpleDateFormat(\"dd-MM-yyyy\");\n String dataEntrada = formato.format(ordemServico.getData_entrada());\n String status = ordemServico.getStatus_celular();\n String tecnico = ordemServico.getTecnico_responsavel();\n String precoFinal = ordemServico.getValor_final();\n String marca = ordemServico.getMarca();\n String modelo = ordemServico.getModelo();\n\n rows.add(new String[]{id,numero,dataEntrada, marca, modelo,cliente,status,tecnico, precoFinal});\n ordemServicos.add(ordemServico);\n }\n //String cliente = String.valueOf(os.getCliente());\n return rows;\n\n }", "List<ParqueaderoEntidad> listar();", "private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }", "List<Plaza> consultarPlazas();" ]
[ "0.78378785", "0.6632353", "0.64385253", "0.6420053", "0.6419102", "0.6414438", "0.641217", "0.6382873", "0.6361794", "0.63444805", "0.6324172", "0.63140213", "0.6306735", "0.62921447", "0.62824094", "0.62807405", "0.62668717", "0.6258803", "0.62062925", "0.6184877", "0.61796016", "0.61712146", "0.6167486", "0.6153563", "0.61286455", "0.6122845", "0.6108232", "0.6057757", "0.602231", "0.6011689", "0.600825", "0.60039693", "0.6001002", "0.59890395", "0.5988281", "0.5984684", "0.5962466", "0.59488404", "0.59486425", "0.593635", "0.5930657", "0.5919446", "0.58964163", "0.5895966", "0.5892289", "0.58914965", "0.5887322", "0.5884272", "0.58775586", "0.5873865", "0.5862341", "0.58616734", "0.58568925", "0.5853813", "0.58451694", "0.5844277", "0.583374", "0.5829314", "0.58258086", "0.5823898", "0.58081377", "0.5799748", "0.57992756", "0.57981503", "0.57862973", "0.57711804", "0.57690835", "0.57671505", "0.57610774", "0.57583445", "0.5758239", "0.5757452", "0.5755666", "0.5749621", "0.5747462", "0.5746794", "0.57448864", "0.5737757", "0.57342356", "0.5726404", "0.5724564", "0.57225776", "0.57208663", "0.5709759", "0.5702692", "0.569092", "0.56802934", "0.5671388", "0.56712264", "0.5669366", "0.5665341", "0.5663982", "0.56571", "0.5652461", "0.5650008", "0.5648927", "0.5646417", "0.5645633", "0.5640249", "0.5639637" ]
0.77711254
1
Metodo para hacer una busqueda de Tripulante por su id ingresado por parametro
public Optional<Tripulante> obtenerUnTripulante(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Tripulante> buscarTodosTripulantes();", "RespuestaRest<ParqueaderoEntidad> consultar(String id);", "public List<Tripulante> obtenerTripulantes();", "@Override\n @SuppressWarnings(\"unchecked\")\n public List<PontoTuristico> searchByID(Integer pIdPonto)\n {\n List<PontoTuristico> tLista = new ArrayList<>();\n\n try\n {\n // Obtendo a sessão hibernate\n SessionFactory tFactory = HibernateUtil.getSessionFactory();\n Session tSessao = tFactory.getCurrentSession();\n\n // Criando o critério para pesquisa\n Criteria tCriterio = tSessao.createCriteria(PontoTuristico.class)\n .add(Restrictions.idEq(pIdPonto));\n\n // Recuperando a lista via hibernate\n tLista = tCriterio.list();\n }\n catch (HibernateException tExcept)\n {\n ExceptionUtil.mostrarErro(tExcept, \"Erro no método de recuperação da lista de PontoTuristicos\");\n }\n\n // Retornando a lista de PontoTuristicos\n return tLista;\n }", "DetalleVenta buscarDetalleVentaPorId(Long id) throws Exception;", "@Override\n\t@Transactional\n\tpublic List<Cliente> getClienteByAnyWord(String nombre, Long idcliente, Long idGrupo, Long idPunto) {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<Cliente> cliente =getCurrentSession().createQuery(\"select clientes from Grupo g join g.clientes clientes where clientes.nombre like '\"+nombre+\"%\"+\"'\"+\"and g.id=\"+idGrupo+\" and clientes.activo=1\").list();\n\n\t\t\t\treturn cliente;\n\t}", "public Tripulante buscarTripulante(String documento) throws Exception;", "@GetMapping(path = {\"/{idtv}\"})\n public Tipovehiculo listarId(@PathVariable(\"idtv\")int idtv){\n return service.listarId(idtv);\n }", "public TripDTO findTripById(Long id);", "List<Pacote> buscarPorTransporte(Transporte transporte);", "long buscarAnterior(long id);", "public void leerPlanDieta(int id_paciente);", "public Treatment consultarTratamiento(int id){\n Treatment tratamiento = null;\n String[] campos = {\"_id\",\"fecha\",\"tipoTratamiento\",\"hora\"};\n String[] args = {Integer.toString(id)};\n Cursor c = db.query(\"tratamiento\",campos,\"_id=?\",args,null,null,null);\n if(c.moveToFirst()){\n\n do{\n tratamiento = new Treatment(c.getInt(0),c.getString(1),c.getString(2));\n tratamiento.setHora(c.getString(3));\n }while(c.moveToNext());\n\n }\n return tratamiento;\n }", "public ArrayList<Note> pedirTodasLasNotasPorTratamiento(int id){\n ArrayList<Note> todasLasNotas = new ArrayList<>();\n Note nota;\n HashMap<Integer,String> misNotas = new HashMap<Integer,String>();\n ArrayList<String> tituloTratamiento = new ArrayList<String>();\n String[] campos = {\"_id\",\"titulo\",\"fecha\"};\n String[] argumentos = {Integer.toString(id)};\n Cursor c = db.query(\"nota\",campos,\"examenAsociado=?\",argumentos,null,null,null);\n if(c.moveToFirst()){\n do{\n nota = new Note();\n nota.setId(c.getInt(0));\n nota.setTitulo(c.getString(1));\n nota.setFechaFormateada(c.getString(2));\n todasLasNotas.add(nota);\n }while(c.moveToNext());\n return todasLasNotas;\n }\n return null;\n }", "Reserva Obtener();", "long buscarProximo(long id);", "List<CalificacionRestauranteModel> buscarCalificacionPorRestaurante(Long idRestaurante);", "public List getChamado(String servico) {\r\n Solicitacoes e = chamadoHandler(servico);\r\n\r\n List<ChamadoEnderecos> consultas = new ArrayList<>();\r\n String sql = \"SELECT DISTINCT\\n\"\r\n + \"\tpid.cod_pid,\\n\"\r\n + \" pid.nome_estabelecimento,\\n\"\r\n + \" endereco.descricao,\\n\"\r\n + \" endereco.numero,\\n\"\r\n + \" endereco.bairro,\\n\"\r\n + \" endereco.complemento,\\n\"\r\n + \" municipio.nome_municipio,\\n\"\r\n + \" municipio.uf,\\n\"\r\n + \" municipio.cod_IBGE,\\n\"\r\n + \" solicitacoes.id_solicitacao\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \"FROM \\n\"\r\n + \"\tpid \\n\"\r\n + \" INNER JOIN contato on \t(pid.cod_pid = contato.PID_cod_pid)\\n\"\r\n + \" INNER JOIN endereco on \t(pid.cod_pid = endereco.PID_cod_pid)\\n\"\r\n + \" INNER JOIN telefone on \t(contato.id_contato = telefone.Contato_id_contato)\\n\"\r\n + \" INNER JOIN municipio on \t(endereco.Municipio_cod_IBGE = municipio.cod_IBGE)\\n\"\r\n + \" INNER JOIN solicitacoes on (pid.cod_pid= solicitacoes.PID_cod_pid)\\n\"\r\n + \" INNER JOIN servico on\t(solicitacoes.Servico_id_servico=servico.id_servico)\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \" WHERE solicitacoes.em_chamado= 3 and servico.id_servico=\" + servico + \";\";\r\n\r\n stmt = null;\r\n rs = null;\r\n \r\n try {\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n while (rs.next()) {\r\n consultas.add(new ChamadoEnderecos(rs.getString(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getString(4),\r\n rs.getString(5),\r\n rs.getString(6),\r\n rs.getString(7),\r\n rs.getString(8),\r\n rs.getString(9),\r\n rs.getString(10)\r\n ));\r\n\r\n }\r\n\r\n } catch (SQLException | ArrayIndexOutOfBoundsException ex) {\r\n Logger.getLogger(SimpleQueries.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return consultas;\r\n }", "public UsuarioDTO consultarUsuario(String idAfiliado);", "Persona buscarPersonaPorId(Long id) throws Exception;", "@Override\r\n public Assunto buscarId(int id) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto a WHERE a.id =:id\");\r\n query.setParameter(\"id\", id);\r\n \r\n List<Assunto> assunto = query.getResultList();\r\n if(assunto != null && assunto.size() > 0)\r\n return assunto.get(0);\r\n return null;\r\n }", "public List<Comentario> buscaPorTopico(Topico t);", "public UsuarioDTO consultarUsuario(String idUsuario);", "public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "public static RutaDTO consultarRutaById(int identificador){\n RutaDTO ruta = null;\n HttpClient httpClient = new DefaultHttpClient();\n HttpGet del = new HttpGet(HOST_BACKEND+\"mycityviewBE/rest/ruta/\"+identificador);\n del.setHeader(\"content-type\", CONTENT_TYPE);\n del.setHeader(\"Authorization\", getAuthorization().trim());\n try {\n HttpResponse resp = httpClient.execute(del);\n if(resp.getStatusLine().getStatusCode() == HttpStatus.SC_OK){\n String respStr = EntityUtils.toString(resp.getEntity());\n Gson gson = new GsonBuilder().create();\n ruta = gson.fromJson(respStr, RutaDTO.class);\n }\n } catch (Exception ex) {\n Log.e(\"ServicioRest\", \"Error!\", ex);\n }\n return ruta;\n }", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "@Override\n\tpublic CLIENTE pesquisar(int id_cliente) {\n\t\t\n\t\tString sql = \"SELECT * FROM CLIENTE WHERE ID_CLIENTE = ?\";\n\t\t\n\t\tConnection conexao;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconexao = JdbcUtil.getConexao();\n\t\t\t\n\t\t\tPreparedStatement ps = conexao.prepareStatement(sql);\n\t\t\t\n\t\t\tps.setInt(1, id_cliente);\n\t\t\t\n\t\t\tResultSet res = ps.executeQuery();\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\t\n\t\t\t\tcliente.setId_cliente(res.getInt(\"ID_CLIENTE\"));\n\t\t\t\tcliente.setNomeCliente(res.getString(\"NOME_CLIENTE\"));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tps.close();\n\t\t\tconexao.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cliente;\n\t}", "public Paises obtenerPaisPorID(Integer txtPais);", "public List<GoleadoresDTO> listarTodo(int idTorneo,Connection conexion) throws MiExcepcion {\n ArrayList<GoleadoresDTO> listarGoleadores = new ArrayList();\n\n try {\n String query = \"SELECT DISTINCT usuarios.primerNombre, \" +\n\" usuarios.primerApellido, tablagoleadores.numeroGoles, tablagoleadores.idEquipo, \"+ \n\" tablagoleadores.idTorneo,tablagoleadores.idJugador, \" +\n\" equipo.nombre \" +\n\" FROM tablagoleadores \" +\n\" INNER JOIN jugadoresporequipo \" +\n\" ON tablagoleadores.idJugador = jugadoresporequipo.codigoJugador \" +\n\" INNER JOIN usuarios \" +\n\" ON jugadoresporequipo.codigoJugador = usuarios.idUsuario \" +\n\" INNER JOIN equiposdeltorneo \" +\n\" ON tablagoleadores.idEquipo = equiposdeltorneo.equipoCodigo \" +\n\" INNER JOIN equipo \" +\n\" ON equiposdeltorneo.equipoCodigo = equipo.codigo \" +\n\" INNER JOIN torneo \" +\n\" ON tablagoleadores.idTorneo = torneo.idTorneo \" +\n\" WHERE tablagoleadores.idTorneo = ? \" +\n\" AND equiposdeltorneo.torneoIdTorneo=? \" +\n\" ORDER BY numeroGoles DESC\";\n statement = conexion.prepareStatement(query);\n statement.setInt(1, idTorneo);\n statement.setInt(2, idTorneo);\n rs = statement.executeQuery();\n //mientras que halla registros cree un nuevo dto y pasele la info\n while (rs.next()) {\n //crea un nuevo dto\n GoleadoresDTO gol = new GoleadoresDTO();\n UsuariosDTO usu = new UsuariosDTO();\n EquipoDTO equipo = new EquipoDTO();\n //le pasamos los datos que se encuentren\n gol.setNumeroGoles(rs.getInt(\"numeroGoles\"));\n gol.setIdEquipo(rs.getInt(\"idEquipo\"));\n gol.setIdTorneo(rs.getInt(\"idTorneo\"));\n gol.setIdJugador(rs.getLong(\"idJugador\"));\n usu.setPrimerNombre(rs.getString(\"primerNombre\"));\n usu.setPrimerApellido(rs.getString(\"primerApellido\"));\n gol.setUsu(usu);//paso el usuario al objeto \n equipo.setNombre(rs.getString(\"nombre\"));\n gol.setEquipo(equipo);\n //agregamos el objeto dto al arreglo\n listarGoleadores.add(gol);\n\n }\n } catch (SQLException sqlexception) {\n throw new MiExcepcion(\"Error listando goles\", sqlexception);\n\n } \n// finally {\n// try{\n// if (statement != null) {\n// statement.close(); \n// }\n// }catch (SQLException sqlexception) {\n// throw new MiExcepcion(\"Error listando goles\", sqlexception);\n//\n// }\n// }\n //devolvemos el arreglo\n return listarGoleadores;\n\n }", "Tourst selectByPrimaryKey(String id);", "UsuarioDetalle cargaDetalle(int id);", "@Override\n\tpublic List<Solicitud> buscarSolicitud(int id, String tarj) throws Exception {\n\t\treturn null;\n\t}", "List<Videogioco> retriveByNome(String nome);", "@Override\n public Pessoa buscar(int id) {\n try {\n for (Pessoa p : pessoa.getPessoas()){\n if(p.getCodPessoa()== id){\n return p;\n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AnimalDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public TipoUsuario(int id_tipousuario) {\n this.id_tipousuario = id_tipousuario;\n }", "List<BeanPedido> getPedidos(String idUsuario);", "public PersonaDTO consultarPersona(Long idPersona) ;", "public RecepcionSero getSerologiaById(String id)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n Query query = session.createQuery(\"from RecepcionSero s where s.id= :id \");\n query.setParameter(\"id\", id);\n return (RecepcionSero) query.uniqueResult();\n }", "@GET\n\t@Path( \"{id: \\\\d+}\" )\n\t@Produces( { MediaType.APPLICATION_JSON } )\n\tpublic Response getTipo( @PathParam( \"id\" ) Long id )\n\t{\n\t\tRotondAndesTM tm = new RotondAndesTM( getPath( ) );\n\t\ttry\n\t\t{\n\t\t\tTipo v = tm.buscarTipoPorId( id );\n\t\t\treturn Response.status( 200 ).entity( v ).build( );\t\t\t\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}", "public CategoriaArticuloServicio buscarPorId(int idCategoriaArticuloServicio)\r\n/* 29: */ {\r\n/* 30:64 */ return (CategoriaArticuloServicio)this.categoriaArticuloServicioDao.buscarPorId(Integer.valueOf(idCategoriaArticuloServicio));\r\n/* 31: */ }", "Object getDados(long id);", "public Coordenadas_Ruta(Integer id, Context context)\n {\n this.id = id;\n this.context = context;\n this.coordenadasList = new ArrayList<Coordenada>();\n this.jsonParser = new JSONParser();\n List<Coordenada> aux = CoordenadaRepo.coordenadas_ruta(context, id.longValue());\n if(RutaRepo.isValid(context, id.longValue()) != -1 && aux.size() > 0)\n {\n for(Coordenada coordenada : aux)\n {\n this.coordenadasList.add(coordenada);\n }\n internet = false;\n Log.i(\"coordenadas: \", \"obtenidas de manera local\");\n }\n else\n {\n hasInternet conexion = new hasInternet(this.context);\n try {\n internet = conexion.execute().get();\n }\n catch(Exception e)\n {\n internet = false;\n }\n }\n }", "public TipoUsuario(int id_tipousuario, String usuario) {\n this.id_tipousuario = id_tipousuario;\n this.usuario = usuario;\n }", "private void thenLaPuedoBuscarPorSuId(Long id) {\n\tIngrediente ingredienteBuscado = session().get(Ingrediente.class, id);\t\n\tassertThat(ingredienteBuscado).isNotNull();\n\t}", "public String buscarTrabajadoresPorParametros() {\r\n try {\r\n inicializarFiltros();\r\n listaTrabajadores = null;\r\n //listaTrabajadores = administrarGestionarTrabajadoresBO.consultarTrabajadoresPorParametro(filtros);\r\n return null;\r\n } catch (Exception e) {\r\n System.out.println(\"Error ControllerAdministrarTrabajadores buscarTrabajadoresPorParametros : \" + e.toString());\r\n return null;\r\n }\r\n }", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "public AnuncioDTO ObtenerAnuncioID(int id){\n AnuncioDTO anuncioDTO=null;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getById.Anuncio\"));\n ps.setInt(1, id);\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n \n TipoAnuncio tipoAnuncio = TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin = new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas = null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico))\n temas=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n anuncioDTO= new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas, destinatarios);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return anuncioDTO;\n }", "public List<TurmaDocente> listTurmas(Long id){ \n \n Session session = getSessionFactory().openSession();\n Criteria criteria = session.createCriteria(TurmaDocente.class);\n criteria.add(Restrictions.eq(\"idDocente\", id));\n //criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n List results = criteria.list();\n session.close();\n\n return results; \n }", "String selectNumeroManifiestoAeat(final Long srvcId);", "Optional<Lancamento> buscarPorId(Long id);", "public TipoDestino findByCodigo(String codigo);", "public Tipousr findbyIdTipo(Long idTipoUsr){\n\t\t\t em.getTransaction().begin();\n\t\t\t Tipousr t= em.find(Tipousr.class, idTipoUsr);\n\t\t\t em.getTransaction().commit();\n\t\t\t return t;\n\t\t }", "public void localizarDados(int idOrcamento){\n OrcamentoCursoController orcamentoCursoController = new OrcamentoCursoController();\n this.orcamentocurso = orcamentoCursoController.consultar(idOrcamento);\n if (orcamentocurso!=null){\n ClienteController clienteController = new ClienteController();\n cliente = clienteController.consultar(orcamentocurso.getCliente());\n if (cliente!=null){\n parajTextField.setText(cliente.getEmail());\n }\n }\n }", "Jugador consultarGanador();", "@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%'))\")\n public Page<VwBancos> findVwBancosSpecificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, Pageable pageable);", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}", "public void setIdPtoServicio(String idPtoServicio);", "@Override\n\tpublic List<Articoli> SelArticoliByFilter(String Filtro, String OrderBy, String Tipo)\n\t{\n\t\treturn null;\n\t}", "Turno consultarTurno();", "public Ingrediente buscar(int id) {\n\n\t\tConnection conn = null;\n\t\tResultSet resultSet = null;\n\t\tPreparedStatement stmt = null;\n\t\tconn = getConnection();\n\t\tIngrediente ingrediente = null;\n\t\ttry {\n\t\t\tstmt = conn\n\t\t\t\t\t.prepareStatement(\"SELECT * FROM INGREDIENTE WHERE IDINGREDIENTES = ?\");\n\t\t\tstmt.setInt(1, id);\n\t\t\tresultSet = stmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tingrediente = new Ingrediente();\n\t\t\t\tingrediente.setIdIngredientes(resultSet\n\t\t\t\t\t\t.getInt(\"idIngredientes\"));\n\t\t\t\tingrediente.setNome(resultSet.getString(\"nome\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tcloseConnection(conn, stmt, resultSet);\n\t\t}\n\t\treturn ingrediente;\n\t}", "public Jugador getJugadorIndice(String ID){\n\n Log.d(\"DATABASE\",\"Se consulta por un jugador\");\n\n //elemento de Retorno\n Jugador miJugador = new Jugador();\n\n //recupera DB\n SQLiteDatabase db = getReadableDatabase();\n\n //condiciones\n String columns[] = new String[]{JugadorEntry._ID, JugadorEntry.IDJUGADOR, JugadorEntry.NOMBRE};\n String selection = JugadorEntry.IDJUGADOR + \" LIKE ?\"; // WHERE id LIKE ?\n String selectionArgs[] = new String[]{ID};\n\n //ejecuta consulta\n Cursor cursor = db.query(\n JugadorEntry.TABLE_NAME, // Nombre de la tabla\n columns, // Lista de Columnas a consultar\n selection, // Columnas para la cláusula WHERE\n selectionArgs, // Valores a comparar con las columnas del WHERE\n null, // Agrupar con GROUP BY\n null, // Condición HAVING para GROUP BY\n null // Cláusula ORDER BY\n );\n\n //cursor a Ronda --- Debiese ser 1\n cursor.moveToFirst();\n miJugador.setIDJugador(cursor.getString(cursor.getColumnIndex(JugadorEntry.IDJUGADOR)));\n miJugador.setNombreJugador(cursor.getString(cursor.getColumnIndex(JugadorEntry.NOMBRE)));\n miJugador.set_ID(cursor.getString(cursor.getColumnIndex(JugadorEntry._ID)));\n cursor.close();\n\n\n return miJugador;\n }", "List<Videogioco> retriveByGenere(String genere);", "private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é a continuacao da string SQL\n pst.setString(1, txtEmpPesquisar.getText() + \"%\");\n rs = pst.executeQuery();\n // a linha abaixo usa a biblioteca rs2xml.jar p preencher a TABELA\n tblEmpresas.setModel(DbUtils.resultSetToTableModel(rs));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public Ruta[] findWhereIdTipoRutaEquals(int idTipoRuta) throws RutaDaoException;", "public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;", "private void buscar (String valor){\n try {\n int f,i;\n conn=App.ConnectionBd.Enlace(conn);\n String sql1=\"Select * from Reserva where idReserva like '%\"+valor+\"%' or tipoReserva like '%\"+valor+\"%';\";\n \n Statement st1=conn.createStatement();\n ResultSet rs1=st1.executeQuery(sql1);\n String datos[]=new String[7];\n f=datostabla.getRowCount();\n if(f>0)\n for(i=0;i<f;i++)\n datostabla.removeRow(0);\n while(rs1.next()) {\n datos[0]=(String)rs1.getString(1);\n datos[1]=(String)rs1.getString(2);\n datos[2]=(String)rs1.getString(3);\n datos[3]=(String)rs1.getString(5);\n datos[4]=(String)rs1.getString(6);\n datos[5]=(String)rs1.getString(7);\n datos[6]=(String)rs1.getString(9);\n datostabla.addRow(datos);\n }\n conn.close();\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Error al buscar datos, verifique porfavor\");\n }\n }", "public void leerPacientes (int id_nutricionista);", "public Pregunta getPregunta(int id);", "public Cliente buscarClientePorDocumento(String id) throws ExceptionService {\n Optional<Cliente> verificar = repositorio.findById(Long.parseLong(id));\n if (verificar.isPresent()) { //verificamos que traiga un resultado\n Cliente cliente = verificar.get(); //con el get obtenemos del optional el objeto en este caso de tipo cliente\n return cliente;\n } else {\n throw new ExceptionService(\"no se encontro el cliente con el documento indicado\");\n }\n }", "ConsultaDto<ProdutorVO> obterByNomeApelido(String nomeApelido, Integer idInstituicao, int pagina, int tamanhoPagina, Boolean filtrarCategoriaAtiva) throws BancoobException;", "public List<Tiposservicios> getTiposServicios(HashMap parametros);", "private void buscarCliente(String id) {\r\n\t\ttry {\r\n\t\t\tif(txtNif.getText().equals(\"\")){\r\n\t\t\t\tString mensaje = \"Por favor, introduce el nif\";\r\n\t\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"ERROR\", JOptionPane.ERROR_MESSAGE);\t\t\r\n\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.RED));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tCliente cliente = new Cliente();\r\n\t\t\t\tcliente=manager.getClienteById(id);\r\n\t\t\t\tmodel.removeAllElements();\r\n\t\t\t\tif(cliente.getNif().equals(null)) {\r\n\t\t\t\t\tString mensaje = \"No existe ese cliente\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"NO EXISTE ESE CLIENTE\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.RED));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\tmodel.addElement(cliente);\t\t\t\t\r\n\t\t\t\tcliente.toString();\r\n\t\t\t\ttxtNif.setText(\"\");\r\n\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tString mensaje = \"No existe ese cliente\";\r\n\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"ERROR\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\t\t\r\n\t}", "@Override\n\t\tpublic Cliente buscarPorId(int id) throws ExceptionUtil {\n\t\t\treturn daoCliente.buscarPorId(id);\n\t\t}", "public List<String> guiaContableByTipoNominaTerceros(String idTipoNomina) {\n String guiaContableByTipoNominaTerceros = super.getQueryDefinition(\"guiaContableByTipoNominaTerceros\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n mapValues.put(\"idTipoNomina\", idTipoNomina);\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n \n return namedTemplate.query(guiaContableByTipoNominaTerceros, namedParameters, new GuiaContableAux());\n }", "public void pagarCuentaCliente(Long idCliente,String claveMesa) throws QRocksException;", "public void buscarController() {\n\t\tSystem.out.println(\"\\n*** Consultando Registros\\nCampo de Consulta Pesquisa: \"+selectPesquisa);\n\t\tif (selectPesquisa.equals(null) || selectPesquisa.equals(\"\")){\t\t\t\n\t\t\t\n\t\t\tatualizarTela(); \t\t\t\n\t\t}\n\t\t\n\t\tif (selectPesquisa.equals(\"nome\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por Nome\\n\");\n\t\t\tString nome = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorNome(nome);\t\n\t\t\t}\n\t\t} //FECHANDO O IF SELECTPESQUISA(NOME)\n\t\t\n\t\tif (selectPesquisa.equals(\"idPaciente\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\t\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\\n*** Buscando por ID\\n\");\n\t\t\t\ttry{ // Tratamento de Erro Caso o usuario Colocar Letras no campo\n\t\t\t\t\tSystem.out.println(\"** ID PACIENTE: \"+campoPesquisa);\n\t\t\t\t\tlong idPaciente = Long.parseLong(campoPesquisa); \n\t\t\t\t\tlistaPaciente = pacienteService.buscarPorId(idPaciente);\t\t\t\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"\\n ** ID invalido\\n\"+e);\t\t\t\t\t\n\t\t\t\t\tlistaPaciente = null; // Lista vai ser vazia pois o ID foi invalido\n\t\t\t\t}\t\t\n\t\t\t} // FECHANDO O ELSE\n\t\t} //FECHANDO O IF SELECTPESQUISA(IDPROPRIETARIO)\n\t\t\n\t\tif (selectPesquisa.equals(\"cpf\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por CPF\\n\");\t\t\t\n\t\t\tString cpf = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorCpf(cpf);\t\n\t\t\t}\n\t\t\n\t\t} // Fechando IF SELECTPESQUISA(CPF)\n\t\t\n\t\n\t}", "@Override\r\n\tpublic ArrayList<Map> listarPacienteNutricionistaSelect(int id_nutricionista) {\n\t\tList<Paciente>lista=repo.buscarporNutricionista(nutrirepo.findById(id_nutricionista).get());\r\n\t\tArrayList<Map> result = new ArrayList();\r\n\t\tfor (int i = 0; i < lista.size(); i++) {\r\n\t\t\t/*\r\n\t\t\t * \"id\": 293, \"title\": \"Event 1\", \"url\": \"http://example.com\", \"class\":\r\n\t\t\t * \"event-important\", \"start\": 12039485678000, // Milliseconds \"end\":\r\n\t\t\t * 1234576967000 // Milliseconds\r\n\t\t\t */\r\n\t\t\tMap<String, Object> temp = new LinkedHashMap<String, Object>();\r\n\t\t\ttemp.put(\"id\", lista.get(i).getId_usuario());\r\n\t\t\t//temp.put(\"title\", citas.get(i).getPaciente().getNombre() + ' ' + citas.get(i).getPaciente().getApellidos());\r\n\t\t\t//temp.put(\"url\", \"/thunderfat/alimento/index\");\r\n\t\t\t// temp.put(\"class\", \"event-important\");\r\n\t\t\t//temp.put(\"start\", citas.get(i).getFecha_ini().format(DateTimeFormatter.ISO_DATE_TIME));\r\n\t\t\ttemp.put(\"text\",lista.get(i).getNombre()+\" \"+lista.get(i).getApellidos()+\" \"+lista.get(i).getDni());\r\n\t\t\tresult.add(temp);\r\n\t\t}\r\n\t\t// respuesta.put(\"success\", 1);\r\n\t\t// respuesta.put(\"result\",result);\r\n\t\tSystem.out.println(result);\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public Vector<String> CercaRelDirecta(Integer id,String tipusentitat) throws Exception {\n Vector<Entidad> ve= cg.getGrafo().getRelacion(id,tipusentitat);\r\n Vector<String> vs = new Vector<>(); //canviar a integer\r\n for (int i = 0; i <ve.size() ; i++) {\r\n vs.add(ve.get(i).getNombre());\r\n }\r\n return vs;\r\n }", "@Override\n public Venta BuscarporID(int ID) {\n DAOUsuarios dao_e = new DAOUsuarios();\n try {\n sql = \"SELECT * FROM VENTA WHERE idventa=\"+ID;\n conex=getConexion();\n pstm=conex.prepareStatement(sql);\n rsset=pstm.executeQuery();\n \n Usuario ne;\n Venta ven = null;\n \n while(rsset.next()){\n int numventa = rsset.getInt(1);\n String fechaE = rsset.getString(4);\n ne = dao_e.BuscarporID(rsset.getInt(2));\n \n List<DET_Venta> compras = Ver_DET_VENTAS(numventa);\n ven = new Venta(rsset.getString(1),rsset.getDouble(5), fechaE, ne,null,compras); \n }\n return ven;\n } catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(DAOVentas.class.getName()).log(Level.SEVERE, null, ex);\n }finally{\n try {\n conex.close();\n pstm.close();\n rsset.close();\n } catch (SQLException ex) {\n Logger.getLogger(DAOVentas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return null;\n }", "public TipoManobras buscarId(int id){\n\t\t\n\t\treturn tipoManobrasDao.buscarPorId(id);\n\t\t\n\t}", "@Query(\"SELECT entity FROM Clientes entity WHERE (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%')) AND (:negocio is null OR entity.negocio like concat('%',:negocio,'%')) AND (:sigla is null OR entity.sigla like concat('%',:sigla,'%')) AND (:status is null OR entity.status like concat('%',:status,'%'))\")\n public Page<Clientes> specificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, @Param(value=\"negocio\") java.lang.String negocio, @Param(value=\"sigla\") java.lang.String sigla, @Param(value=\"status\") java.lang.String status, Pageable pageable);", "TempletLink selectByPrimaryKey(String id);", "public void findbyid() throws Exception {\n try {\n IPi_per_intDAO pi_per_intDAO = getPi_per_intDAO();\n List<Pi_per_intT> listTemp = pi_per_intDAO.getByPK(pi_per_intT);\n\n pi_per_intT = listTemp.size() > 0 ? listTemp.get(0) : new Pi_per_intT();\n\n } catch (Exception e) {\n easyLogger.error(e.getMessage(), e);\n setMsg(ERROR, \"Falha ao realizar consulta!\");\n } finally {\n close();\n }\n }", "public List<TiposServiciosT> getTiposServiciosT(HashMap parametros);", "public List<Madeira> buscaCidadesEstado(String estado);", "public Nino(int id, int edad, Paso paso, Tobogan tobogan, Columpios columpios, Tiovivo tiovivo) {\n this.id = id; //se asignan todos los datos\n this.edad = edad;\n this.paso = paso;\n this.tobogan = tobogan;\n this.columpios = columpios;\n this.tiovivo = tiovivo;\n start(); //strat de los hilos\n }", "public Vendedor buscarVendedorPorNome(String nome);", "@Override\n\t@Transactional(readOnly = true)\n\tpublic List<Cliente> buscarId(Integer idcliente) {\n\t\treturn clienteDao.buscarId(idcliente);\n\t}", "public void buscarEntidad(){\r\n\t\tlistaEstructuraDetalle.clear();\r\n\t\tPersona persona = null;\r\n\t\tList<EstructuraDetalle> lstEstructuraDetalle = null;\r\n\t\ttry {\r\n\t\t\tstrFiltroTextoPersona = strFiltroTextoPersona.trim();\r\n\t\t\tif(intTipoPersonaC.equals(Constante.PARAM_T_TIPOPERSONA_JURIDICA)){\r\n\t\t\t\tif (intPersonaRolC.equals(Constante.PARAM_T_TIPOROL_ENTIDAD)) {\r\n\t\t\t\t\tlstEstructuraDetalle = estructuraFacade.getListaEstructuraDetalleIngresos(SESION_IDSUCURSAL,SESION_IDSUBSUCURSAL);\r\n\t\t\t\t\tif (lstEstructuraDetalle!=null && !lstEstructuraDetalle.isEmpty()) {\r\n\t\t\t\t\t\tfor (EstructuraDetalle estructuraDetalle : lstEstructuraDetalle) {\r\n\t\t\t\t\t\t\tpersona = personaFacade.getPersonaPorPK(estructuraDetalle.getEstructura().getJuridica().getIntIdPersona());\r\n\t\t\t\t\t\t\tif (persona.getStrRuc().trim().equals(\"strFiltroTextoPersona\")) {\r\n\t\t\t\t\t\t\t\testructuraDetalle.getEstructura().getJuridica().setPersona(persona);\r\n\t\t\t\t\t\t\t\tlistaEstructuraDetalle.add(estructuraDetalle);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t}\r\n\t}", "@GetMapping(value = CLIENTE + ID + BETWEEN)\r\n\tList<MedidaAntropometrica> getMedidasEntreFechasPorCliente(@PathVariable Integer id, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t @PathVariable String desde, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t @PathVariable String hasta) throws ParseException{\n\t\tCliente cli = daoCliente.findById(id).get();\r\n\t\treturn dao.findByClienteIdAndFechaAfterAndFechaBefore(cli, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t new SimpleDateFormat(\"yyyy-MM-dd\").parse(desde),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t new SimpleDateFormat(\"yyyy-MM-dd\").parse(hasta));\r\n\t}", "List<Tipologia> selectByExample(TipologiaExample example);", "DireccionDTO consultarDireccion(long idDireccion);", "private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }", "@Override\n\tpublic Cliente buscarPorId(int id) throws ExceptionUtil {\n\t\treturn daoCliente.buscarPorId(id);\n\t}", "public List<TurmaDocente> docentesPorTurma(Long idTurma){\n Session session = getSessionFactory().openSession();\n Criteria criteria = session.createCriteria(TurmaDocente.class);\n criteria.add(Restrictions.eq(\"idTurma\", idTurma));\n //criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n List results = criteria.list();\n session.close();\n\n return results; \n }", "public Reporteador buscarPorId(Integer id)\r\n/* 192: */ {\r\n/* 193:209 */ return (Reporteador)this.reporteadorDao.buscarPorId(id);\r\n/* 194: */ }", "public int consultarTipoTratamiento(String fecha){\n String[] campos = {\"_id\",\"fecha\",\"tipoTratamiento\"};\n String[] args = {fecha};\n Cursor c = db.query(\"tratamiento\",campos,\"fecha=?\",args,null,null,null);\n if(c.moveToFirst()){\n\n if (c.getString(2).equalsIgnoreCase(\"Radioterapia\")) {\n return 0;\n }\n\n }\n return 1;\n }", "public void searchTrajectId(FeatureMapLayer layer) {\n\n\t\tif (layer.getLayerId().equalsIgnoreCase(trajectType)) {\n\t\t\tFeatureCollection<SimpleFeatureType, SimpleFeature> features = getViewer()\n\t\t\t\t\t.getFeature(layer, getViewer().getContext().getSrsName(),\n\t\t\t\t\t\t\tgetViewer().getContext().getBoundingBox(), null,\n\t\t\t\t\t\t\tFilterUtils.equal(\"naam\", trajectNaam), null, 1);\n\t\t\tFeatureIterator<SimpleFeature> iterator = features.features();\n\n\t\t\ttry {\n\t\t\t\tif (features.size() == 1) {\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tSimpleFeature feature = iterator.next();\n\t\t\t\t\t\tgetMelding().setTraject(\n\t\t\t\t\t\t\t\tnew ResourceKey(\"Traject\", feature\n\t\t\t\t\t\t\t\t\t\t.getAttribute(\"id\").toString()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\titerator.close();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.648924", "0.64352614", "0.6352825", "0.6264281", "0.626238", "0.62376064", "0.6207325", "0.6143112", "0.61411446", "0.6102873", "0.6033426", "0.596112", "0.59263134", "0.58935755", "0.58770317", "0.58672583", "0.58382326", "0.579293", "0.57800484", "0.5779107", "0.5730063", "0.5714647", "0.56952566", "0.56786275", "0.5677257", "0.56684476", "0.5659248", "0.56517476", "0.5646778", "0.5646199", "0.56280226", "0.56119597", "0.5606373", "0.5605438", "0.5594943", "0.5558453", "0.55535704", "0.5552998", "0.554807", "0.55396754", "0.55395806", "0.5537102", "0.55328023", "0.55091274", "0.5496848", "0.5496346", "0.5495004", "0.54942626", "0.5494101", "0.5485843", "0.5474636", "0.54689664", "0.5465354", "0.54551905", "0.5424843", "0.5424159", "0.5420231", "0.54192203", "0.54173267", "0.5416016", "0.5408954", "0.5405083", "0.53960633", "0.53911054", "0.5390713", "0.5389009", "0.53856874", "0.53844196", "0.5381166", "0.5377893", "0.5375829", "0.5371772", "0.5368848", "0.53670186", "0.5366832", "0.5362042", "0.5361798", "0.5360994", "0.5351252", "0.5349431", "0.5344394", "0.534415", "0.53433996", "0.5342911", "0.5336739", "0.533626", "0.5336192", "0.5333273", "0.5332412", "0.53279585", "0.53220356", "0.53171587", "0.53121585", "0.53092796", "0.5306701", "0.5304083", "0.5302891", "0.5302866", "0.5298216", "0.5287398" ]
0.53702927
72
Metodo para hacer una eliminacion de un Tripulante almacenado en la Base de datos
public void eliminarTripulante(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "@Override\r\n\tpublic void remover(Tipo tipo) {\n String sql = \"delete from tipos_servicos where id = ?\";\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, tipo.getId());\r\n \r\n stmt.execute();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}", "public void borrarTodosTripulantes();", "@Transactional\n void remove(DataRistorante risto);", "@Override\n\tpublic void eliminar(Object T) {\n\t\tSeccion seccionE= (Seccion)T;\n\t\tif(seccionE!=null){\n\t\t\ttry{\n\t\t\tString insertTableSQL = \"update seccion set estatus=?\" +\"where codigo=? and estatus='A'\";\n\t\t\tPreparedStatement preparedStatement = conexion.prepareStatement(insertTableSQL);\n\t\t\tpreparedStatement.setString(1, \"I\");\n\t\t\tpreparedStatement.setString(2, seccionE.getCodigo());\n\t\t\tpreparedStatement.executeUpdate();\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"No se elimino el registro\");\n\t\t}\n\t\tSystem.out.println(\"Eliminacion exitosa\");\n\t}\n\n\t}", "public void eliminar(DetalleArmado detallearmado);", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}", "void eliminarPedidosUsuario(String idUsuario);", "void eliminar(PK id);", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "public void eliminar(Long id) throws AppException;", "public void eliminarUsuario(Long idUsuario);", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }", "@Override\n\tpublic void eliminar() {\n\n\t}", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "void eliminar(Long id);", "public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }", "@Override\n\tpublic void remover(int idServico) throws SQLException {\n\t\t\n\t}", "@Override\n public boolean eliminar(ModelCliente cliente) {\n strSql = \"DELETE CLIENTE WHERE ID_CLIENTE = \" + cliente.getIdCliente();\n \n \n try {\n //se abre una conexión hacia la BD\n conexion.open();\n //Se ejecuta la instrucción y retorna si la ejecución fue satisfactoria\n respuesta = conexion.executeSql(strSql);\n //Se cierra la conexión hacia la BD\n conexion.close();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n return false;\n } catch(Exception ex){\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n }\n return respuesta;\n }", "@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el usuario de la bd\");\n\t}", "void eliminarPedido(UUID idPedido);", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;", "@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "public void eliminarFechaTratamiento(String fecha){\n String[] fechaAborrar = {fecha};\n db.delete(\"tratamiento\",\"fecha=?\",fechaAborrar);\n }", "@Override\n\t\tpublic void eliminar() {\n\t\t\tutilitario.getTablaisFocus().eliminar();\n\t\t}", "public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public void eliminar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.remove(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "public void eliminar_datos_de_tabla(String tabla_a_eliminar){\n try {\n Class.forName(\"org.postgresql.Driver\");\n Connection conexion = DriverManager.getConnection(cc);\n Statement comando = conexion.createStatement();\n //Verificar dependiendo del tipo de tabla lleva o no comillas\n \n String sql=\"delete from \\\"\"+tabla_a_eliminar+\"\\\"\";\n \n comando.executeUpdate(sql);\n \n comando.close();\n conexion.close();\n } catch(ClassNotFoundException | SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\r\n\tpublic void deleteTipoTramite(Integer idTipoTramite) {\n\t\t\r\n\t}", "public boolean eliminarLoteria(int codigo) {\n\n String instruccion = \"delete from loteria where codigo =\" + codigo;\n boolean val = false;\n PreparedStatement pre;\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n pre = con.prepareStatement(instruccion);\n pre.execute();\n val = true;\n } catch (SQLException ex) {\n ex.printStackTrace();\n\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return val;\n }\n\n }", "public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }", "@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n pstm.setInt(++field, entitat.getCodi());\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"delete from Empleat where codi = ?\";\r\n }\r\n };\r\n UtilitatJdbcPlus.executar(con, jdbcDao);\r\n }", "public String eliminar()\r\n/* 88: */ {\r\n/* 89: */ try\r\n/* 90: */ {\r\n/* 91:101 */ this.servicioMotivoLlamadoAtencion.eliminar(this.motivoLlamadoAtencion);\r\n/* 92:102 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 93: */ }\r\n/* 94: */ catch (Exception e)\r\n/* 95: */ {\r\n/* 96:104 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 97:105 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 98: */ }\r\n/* 99:107 */ return \"\";\r\n/* 100: */ }", "@Override\n public void elimina(int id_alumno) {\n\n try {\n Alumno a = admin.alumnosTotales.get(id_alumno);\n int area = a.area;\n char grupo = a.grupo;\n\n admin.fisicoMatematicas.remove(a);\n admin.biologicasYsalud.remove(a);\n admin.cienciasSociales.remove(a);\n admin.humanidadesYartes.remove(a);\n admin.fotoLabPrensa.remove(a);\n admin.viajesyhoteleria.remove(a);\n admin.nutriologo.remove(a);\n admin.labQuimico.remove(a);\n\n Iterador<Profesor> ite = new Iterador<>(admin.profesores);\n\n while (ite.hasNext()) {\n Profesor profeActual = ite.next();\n if (profeActual.area == area & profeActual.grupo == grupo) {\n profeActual.eliminaAlumnoLista(a);\n }\n }\n \n admin.alumnosTotales.remove(id_alumno);\n \n } catch (NullPointerException e) {\n System.out.println(\"No existe el Alumno\");\n }\n \n \n\n }", "@Override\n\tpublic boolean eliminaRisposta(Long id) {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.remove(id);\n\t\tdb.commit();\n\t\t\n\t\tif(!risposte.containsKey(id))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }", "@Override\n public boolean eliminar(T dato) {\n if (esVacio())\n return (false); \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n //Si se encontro el elemento\n if (cmp==0){\n if (super.getRaiz().getIzq()==null){\n super.setRaiz(super.getRaiz().getDer());\n } \n else {\n NodoBin<T> x = super.getRaiz().getDer();\n super.setRaiz(super.getRaiz().getIzq());\n super.setRaiz(biselar(super.getRaiz(), dato));\n super.getRaiz().setDer(x);\n }\n return (true);\n }\n //El dato no fue encontrado\n return (false);\n }", "public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "@Override\n public boolean eliminar(T dato) {\n try {\n this.raiz = eliminar(this.raiz, dato);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "@Override\n public void removeFromDb() {\n }", "@Override\n\tpublic boolean eliminarPorId(Integer llave) {\n\t\treturn false;\n\t}", "public void eliminarcola(){\n Cola_banco actual=new Cola_banco();// se crea un metodo actual para indicar los datos ingresado\r\n actual=primero;//se indica que nuestro dato ingresado va a ser actual\r\n if(primero != null){// se usa una condiccion si nuestro es ingresado es diferente de null\r\n while(actual != null){//se usa el while que recorra la cola indicando que actual es diferente de null\r\n System.out.println(\"\"+actual.nombre);// se imprime un mensaje con los datos ingresado con los datos ingresado desde el teclado\r\n actual=actual.siguiente;// se indica que el dato actual pase a ser igual con el apuntador siguente\r\n }\r\n }else{// se usa la condicion sino se cumple la condicion\r\n System.out.println(\"\\n la cola se encuentra vacia\");// se indica al usuario que la cola esta vacia\r\n }\r\n }", "public void sepulsaeliminar(View view) {\n\t\tif(posicionArrayList !=-1) {\n\t\t\tarrayList.get(posicionArrayList);\n\n\t\t\tfinal DatabaseReference referenciaUseraBorrar=FirebaseDatabase.getInstance().getReference(\"users\").child(arrayList.get(posicionArrayList));\n\n\t\t\treferenciaUseraBorrar.removeValue(); //Elimina el campo del User de la BD\n\t\t\tarrayList.remove(posicionArrayList); //Elimina la posición correspondiente del ArrayList\n\t\t\tarrayAdapter.notifyDataSetChanged(); //Función que actualiza el arrayAdapter y lo dibuja de nuevo.\n\t\t\tToast.makeText(getApplicationContext(),\"Usuario Cuidador eliminado\",Toast.LENGTH_LONG).show();\n\n\t\t}else{\n\t\t\tToast.makeText(getApplicationContext(),\"No se ha seleccionado ningún elemento\",Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}", "public void supprimer(Etudiant t) {\n\t\tdao.supprimer(t);\r\n\t}", "@Override\n\tpublic boolean eliminar(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}", "public void eliminar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //eliminamos el Dia\n session.delete(dia);\n \n tx.commit();\n }\n catch (Exception e) {\n //Se regresa a un estado consistente \n if (tx!=null){ \n tx.rollback();\n }\n e.printStackTrace(); \n }\n finally {\n //cerramos siempre la sesion\n session.close();\n }\n }", "@Override\n public void eliminarElemento(Object elemento) {\n database.delete(elemento);\n }", "public static void eliminarEstudiante(String Nro_de_ID) {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion Establecida\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"delete from estudiante where Nro_de_ID = '\" + Nro_de_ID + \"'\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "public void remover(ParadaUtil paradaUtil)\r\n\t\t\t {\n\t\tiniciarTransacao();\r\n\t\ttry {\r\n\t\t\ts.delete(paradaUtil);\r\n\t\t\ttx.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\t;\r\n\t\t} finally {\r\n\t\t\ts.close();\r\n\t\t}\r\n\t}", "public boolean deletePalvelupisteet();", "public void eliminarLote(Lote lote) {\n //Utilizamos el TRY por si hay algun problema\n try {\n //Insertamos dentro de la BD el UPDATE\n jpaLote.edit(lote);\n } catch (Exception ex) {\n java.util.logging.Logger.getLogger(LoteControladoraPersistencia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n }", "public void supprimer() {\n origine.aretes_sortantes.supprimer(this);\n destination.aretes_entrantes.supprimer(this);\n origine.successeurs.supprimer(destination);\n destination.predecesseurs.supprimer(origine);\n position.supprimerElement();\n }", "public boolean eliminarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 484 */ String s = \"delete from cal_plan_metas\";\n/* 485 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* 486 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 487 */ s = s + \" codigo_meta=\" + codigoMeta;\n/* 488 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 491 */ catch (Exception e) {\n/* 492 */ e.printStackTrace();\n/* 493 */ Utilidades.writeError(\"CalPlanMetasFactory:eliminarRegistro\", e);\n/* */ \n/* 495 */ return false;\n/* */ } \n/* */ }", "public void eliminar(Maquina maquina)\r\n/* 24: */ {\r\n/* 25: 52 */ this.maquinaDao.eliminar(maquina);\r\n/* 26: */ }", "void supprimerTopo(String user, Integer topoId);", "public String eliminarDetalle()\r\n/* 340: */ {\r\n/* 341:400 */ this.cuentaContableDimensionContable = ((CuentaContableDimensionContable)this.dtCuentaContable.getRowData());\r\n/* 342:401 */ this.cuentaContableDimensionContable.setEliminado(true);\r\n/* 343:402 */ return \"\";\r\n/* 344: */ }", "@Override\n\tpublic void eliminar(Seccion seccion) {\n\t\tentity.getTransaction().begin();\n\t\tentity.remove(seccion);\n\t\tentity.getTransaction().commit();\n\t}", "public void deleteTbagendamento() {\n\n if (agendamentoLogic.removeTbagendamento(tbagendamentoSelected)) {\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento removido com sucesso.\");\n listTbagendamentos = agendamentoLogic.findAllTbagendamentoFromCurrentDay();\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falha ao remover agendamento.\");\n }\n\n }", "public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }", "int delWayBillByIdTravel(Long id_travel);", "public void eliminarUsuario(String id) throws BLException;", "private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n String sql = \"delete from empresa where id=?\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpId.getText());\n int apagado = pst.executeUpdate();\n if (apagado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa removida com sucesso!\");\n txtEmpId.setText(null);\n txtEmpNome.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "private void eliminar() {\n\n int row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n int men = JOptionPane.showConfirmDialog(null, \"Estas seguro que deceas eliminar el registro?\", \"pregunta\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\n if (men == JOptionPane.YES_OPTION) {\n try {\n cdao.eliminar(cvo);\n cvo.setId_cliente(row);\n } catch (Exception e) {\n System.out.println(\"Mensaje eliminar\" + e.getMessage());\n }\n }\n }", "public void eliminarMensaje(InfoMensaje m) throws Exception;", "public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.size(); i++) {\n if (carrosCadastrados.get(i).getId() == idCarro) {\n if (carrosCadastrados.get(i).getEstado()) {//para verificar se o querto está sendo ocupado\n System.err.println(\"O carrp está sendo utilizado por um hospede nesse momento\");\n } else {\n carrosCadastrados.remove(i);\n System.err.println(\"cadastro removido\");\n }\n }\n\n }\n } else {\n System.err.println(\"Não existem carros cadastrados\");\n }\n }", "public void eliminaEdificio() {\n this.edificio = null;\n // Fijo el tipo después de eliminar el personaje\n this.setTipo();\n }", "public abstract void borrarEstadosPropuestas();", "public void EliminarPrestamo(Integer idPrestamo) {\n this.conexion.ConectarBD();\n String consulta = \"delete from prestamos where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del delete\n this.pstm.setInt(1, idPrestamo);\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al eliminar un Prestamo.\\n\"+e.toString());\n //System.out.println(\"Error al eliminar un Libro.\");\n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n //e.printStackTrace();\n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n }", "@Override\n protected void remover(Funcionario funcionario) {\n\n }", "public RespuestaBD eliminarRegistro(int codigoFlujo, int secuencia) {\n/* 296 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 299 */ String s = \"delete from wkf_detalle where codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* 304 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 306 */ catch (Exception e) {\n/* 307 */ e.printStackTrace();\n/* 308 */ Utilidades.writeError(\"FlujoDetalleDAO:eliminarRegistro \", e);\n/* 309 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 311 */ return rta;\n/* */ }", "public void eliminar() throws RollbackException, SystemException, HeuristicRollbackException, HeuristicMixedException {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n String id = FacesUtil.getRequestParameter(\"idObj\");\n Tblobjeto o = (Tblobjeto) session.load(Tblobjeto.class, Short.parseShort(id));\n try {\n tx = (Transaction) session.beginTransaction();\n session.delete(o);\n tx.commit();\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Informacion:\", \"Registro eliminado satisfactoriamente\"));\n } catch (HibernateException e) {\n tx.rollback();\n\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Un error ha ocurrido:\", e.getCause().getMessage()));\n } finally {\n session.close();\n populateTreeTable();\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n u.populateSubMenu();\n }\n }", "public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "private void eliminar(HttpServletRequest request, HttpServletResponse response) {\n\t\n\t\ttry {\n\t\t\tString numero =request.getParameter(\"idCliente\");//leo parametro numeroHabitacion de la vista\n\t\t\t\n\t\t\t//llamo a un metodo del modelo para que elimine el editorial de la bd y consulto si se pudo eliminar\n\t\t\tif(modelo.eliminarCliente(numero) > 0) {\n\t\t\t\t\n\t\t\t\t//paso un atributo de exito si se pudo eliminar\n\t\t\t\trequest.setAttribute(\"exito\", \"Cliente eliminado exitosamente\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//paso un atributo de fracaso. \n\t\t\t\trequest.setAttribute(\"fracaso\", \"No se puede eliminar Cliente\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//redirecciono sin importar si se pudo o no eliminar\n\t\t\trequest.getRequestDispatcher(\"/clientes.do?op=listar\").forward(request, response);\n\t\t} catch (SQLException | ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t}", "public Integer DeletarTodos(){\n\n //REMOVENDO OS REGISTROS CADASTRADOS\n return databaseUtil.GetConexaoDataBase().delete(\"tb_log\",\"log_ID = log_ID\",null);\n\n }", "@Override\n\tpublic void eliminarTipoAsiento(Integer idTipoAsiento) throws Exception {\n\t\ttipoAsientoMapper.eliminarTipoAsiento(idTipoAsiento);\n\t\t\n\t}", "public void telefonoElimina(){\r\n \tlog.info(\"en eliminarTelefono()\");\t\r\n \tfor (int i = 0; i < TelefonoPersonaList.size(); i++) { \t\t\r\n \t\tlog.info(\"\"+TelefonoPersonaList.get(i).getItem()+\" ,idt \"+getIdt() +\" \"+TelefonoPersonaList.get(i).getTelefono());\r\n// \tlog.info(\"N1--->TelefonoPersonaList.get(i).getIdtelefonopersona()\"+\" --\" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\tif((TelefonoPersonaList.get(i).getIdtelefonopersona()== 0 || TelefonoPersonaList.get(i).getIdtelefonopersona()== null) && TelefonoPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> TelefonoPersonaList.get(i).getIdtelefonopersona()\" +\" \" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\t\tTelefonoPersonaSie teltemp = new TelefonoPersonaSie();\r\n\t\t\tteltemp.setIdtelefonopersona(idt);\r\n\t\t\tTelefonoPersonaList.remove(teltemp);\r\n\t\tfor (int j = i; j < TelefonoPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\t//TelefonoPersonaList.get(j).setItem(i);\r\n\t\t\tTelefonoPersonaList.set(j, TelefonoPersonaList.get(j));\r\n\t\t}break;\r\n\t\t\t}\r\n\t\telse if(TelefonoPersonaList.get(i).getIdtelefonopersona() ==(getIdt()) && TelefonoPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\t\tTelefonoPersonaSie obj = new TelefonoPersonaSie(); \r\n\t\t\t\tobj.setIdtelefonopersona(idt);\r\n\t\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\t\t\t\t\r\n\t\t\t\tTelefonoDeshabilitado.add(obj);\r\n\t\t\r\n\t\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t }", "public void deleteByComplement(int id, TripletType type) throws DAOException;", "public void deletar() {\n\t\tClienteDAO Clientedao = new ClienteDAO();\t\r\n\t\tClientedao.delete(this);\r\n\t\t\r\n\t\tnovoRegistro();\r\n\t\tnotifyObservers();\r\n\t}", "public void processEliminar() {\n }", "@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}", "@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}", "public void borrarTodo()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\tStatement st = conexion.createStatement();\r\n\t\tst.execute(\"DROP TABLE usuarios\");\r\n\t\tst.execute(\"DROP TABLE prestamos\");\r\n\t\tst.execute(\"DROP TABLE libros\");\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }", "public void eliminarGrupoLocal(GrupoLocalRequest grupoLocalRequest);", "public void borrarTodo(){\n diccionario.clear();\n }", "public void guardarTripulanteEncontrado(Tripulante tripulante);", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }", "public boolean eliminar(){\n\t\tString query = \"DELETE FROM Almacen WHERE Id_Producto = \"+this.getId();\n\t\tif(updateQuery(query)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}" ]
[ "0.7086499", "0.7048344", "0.6911951", "0.68979", "0.6886911", "0.68450195", "0.6836249", "0.6779891", "0.6759906", "0.6709471", "0.669924", "0.6692729", "0.6667812", "0.6666792", "0.6661603", "0.66607565", "0.6653685", "0.6652238", "0.6647895", "0.6628604", "0.6625969", "0.6603377", "0.65666085", "0.6550833", "0.6545479", "0.6544999", "0.6540147", "0.6534501", "0.6534501", "0.64970315", "0.64962924", "0.6466146", "0.6460902", "0.6425245", "0.64157027", "0.64097184", "0.64092237", "0.6402614", "0.6400402", "0.6362535", "0.6358238", "0.6354565", "0.63525015", "0.6350815", "0.63494503", "0.63325024", "0.63290906", "0.6321161", "0.63063014", "0.62994474", "0.62953365", "0.62862045", "0.6284456", "0.62842935", "0.62716806", "0.6264422", "0.6262059", "0.6246071", "0.6243889", "0.6237599", "0.62356234", "0.62338775", "0.62277985", "0.6227207", "0.6226475", "0.62116176", "0.6209198", "0.6196303", "0.6194325", "0.61706114", "0.61705506", "0.616787", "0.61662376", "0.6164651", "0.61630386", "0.6160386", "0.6158941", "0.61571383", "0.61552685", "0.6153505", "0.6149198", "0.61458284", "0.61454487", "0.61410123", "0.6140536", "0.613557", "0.61328137", "0.613118", "0.61237687", "0.6122866", "0.61148405", "0.61131406", "0.611087", "0.61027545", "0.6091171", "0.6085232", "0.6082107", "0.608066", "0.6077249", "0.60723954" ]
0.757305
0
Metodo que implementara la eliminacion de los tripulantes almacenados en la Base de datos, no recibe parametros
public void borrarTodosTripulantes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminarTripulante(Long id);", "@Override\n\tpublic void eliminar() {\n\n\t}", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "public void eliminar(DetalleArmado detallearmado);", "public abstract void borrarEstadosPropuestas();", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "void eliminar(Long id);", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}", "public void eliminarCajeros(int id);", "public void eliminarcola(){\n Cola_banco actual=new Cola_banco();// se crea un metodo actual para indicar los datos ingresado\r\n actual=primero;//se indica que nuestro dato ingresado va a ser actual\r\n if(primero != null){// se usa una condiccion si nuestro es ingresado es diferente de null\r\n while(actual != null){//se usa el while que recorra la cola indicando que actual es diferente de null\r\n System.out.println(\"\"+actual.nombre);// se imprime un mensaje con los datos ingresado con los datos ingresado desde el teclado\r\n actual=actual.siguiente;// se indica que el dato actual pase a ser igual con el apuntador siguente\r\n }\r\n }else{// se usa la condicion sino se cumple la condicion\r\n System.out.println(\"\\n la cola se encuentra vacia\");// se indica al usuario que la cola esta vacia\r\n }\r\n }", "public void supprimer() {\n origine.aretes_sortantes.supprimer(this);\n destination.aretes_entrantes.supprimer(this);\n origine.successeurs.supprimer(destination);\n destination.predecesseurs.supprimer(origine);\n position.supprimerElement();\n }", "public void supprimerToutesLesLignes() {\n\t\tlisteVente.clear();\r\n\t\tfireTableDataChanged();\r\n\t}", "@Override\r\n\tpublic void remover(Tipo tipo) {\n String sql = \"delete from tipos_servicos where id = ?\";\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, tipo.getId());\r\n \r\n stmt.execute();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}", "public void supprimerParcelle() {\n\t\tboolean isEmpty=false;\n\t\tint nbParcelleSup=0;\n\t\tList<String> nomParcellesNonSupprimees = new ArrayList<>();\n\t\tList<String> nomParcellesSupprimees = new ArrayList<>();\n\n\t\tfor (String emplacement : emplacementsSelectionneesFromJS.split(\"-\")) {\n\t\t\tnbParcelleSup++;\n\n\t\t\tif (!isEmpty(emplacement)){\n\t\t\t\tString[] refEmplacement= emplacement.split(\"_\");\n\t\t\t\tint numLigne = Integer.parseInt(refEmplacement[0]);\n\t\t\t\tint numColonne = Integer.parseInt(refEmplacement[1]);\n\t\t\t\tEmplacement e = obtenirEmplacement(numLigne,numColonne);\n\n\t\t\t\tif(e != null && notHaveTachePlanified(parcelle).equals(\"true\") ) {\n\t\t\t\t\t// Suppression de la parcelle \n\t\t\t\t\tthis.parcelle = e.getParcelle();\n\t\t\t\t\taffecterDateRetraitPuisMAJParcelleEnBase(parcelle);\n\t\t\t\t\tnomParcellesSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t\tSystem.out.println(\"Supprimer Parcelle OK \");\n\t\t\t\t}else {\n\t\t\t\t\tnomParcellesNonSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//Probleme de selection d'emplacement\n\t\t\t\tisEmpty=true;\n\t\t\t}\n\t\t}\n\n\t\tif(isEmpty&&nbParcelleSup==1) {\n\t\t\tmsgInfoActionGrilleJS=\"Erreur : La selection ne correspond à aucune parcelle !\";\n\t\t\tetatMsgInfoGrilleJS=\"color:red;\";\n\t\t\tSystem.out.println(\"Supprimer Parcelle KO : L'emplacement selectionnee n'est pas affecté à une parcelle \");\n\t\t}else {\n\t\t\tif(nbParcelleSup>1) {\n\t\t\t\tString listeLibelleParcellesSupprimees=\"\";\n\t\t\t\tString listeLibelleParcellesNonSupprimees=\"\";\n\n\t\t\t\tfor (String string : nomParcellesSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tfor (String string : nomParcellesNonSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesNonSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesSupprimees.length()>0) {\n\t\t\t\t\tint i = listeLibelleParcellesSupprimees.length()-2;\n\t\t\t\t\tmsgInfoActionGrilleJS=\"Les parcelles ' \"+listeLibelleParcellesSupprimees.substring(0, i)+\" ' ont bien été retirées !\";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesNonSupprimees.length()>0) {\n\t\t\t\t\tint j = listeLibelleParcellesNonSupprimees.length()-2;\n\n\t\t\t\t\tmsgInfoActionGrilleJS=\"\\n Attention : Les parcelles ' \"+listeLibelleParcellesNonSupprimees.substring(0, j)+\" ' n'ont pas pu être supprimées (Taches en cours ou emplamcement vide)!\";\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tmsgInfoActionGrilleJS=\"La parcelle '\"+parcelle.getLibelleParcelle()+\"'a bien été retirée !\";\n\t\t\t}\n\t\t\tetatMsgInfoGrilleJS=\"color:green;\";\n\t\t}\n\t\tthis.clearForm();\n\t}", "public void eliminaCuadrante(int mes, int anio, String idDepartamento) {\r\n\t\tif (!alive) return;\r\n\t\tint i = 0;\r\n\t\twhile (i<cuadrantes.size()) {\r\n\t\t\tif (cuadrantes.get(i).getIdDepartamento().equals(idDepartamento) && cuadrantes.get(i).getMes()==mes && cuadrantes.get(i).getAnio()==anio) {\r\n\t\t\t\tcuadrantes.remove(i);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\ti++;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "void supprimerTopo(String user, Integer topoId);", "public void eliminarCompraComic();", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "private void deleteSelectedWaypoints() {\r\n\t ArrayList<String> waypointsToRemove = new ArrayList<String>();\r\n\t int size = _selectedList.size();\r\n\t for (int i = _selectedList.size() - 1; i >= 0; --i) {\r\n boolean selected = _selectedList.get(i);\r\n if (selected) {\r\n waypointsToRemove.add(UltraTeleportWaypoint.getWaypoints().get(i).getWaypointName());\r\n }\r\n }\r\n\t UltraTeleportWaypoint.removeWaypoints(waypointsToRemove);\r\n\t UltraTeleportWaypoint.notufyHasChanges();\r\n\t}", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "void eliminarPedidosUsuario(String idUsuario);", "@Override\n public void elimina(int id_alumno) {\n\n try {\n Alumno a = admin.alumnosTotales.get(id_alumno);\n int area = a.area;\n char grupo = a.grupo;\n\n admin.fisicoMatematicas.remove(a);\n admin.biologicasYsalud.remove(a);\n admin.cienciasSociales.remove(a);\n admin.humanidadesYartes.remove(a);\n admin.fotoLabPrensa.remove(a);\n admin.viajesyhoteleria.remove(a);\n admin.nutriologo.remove(a);\n admin.labQuimico.remove(a);\n\n Iterador<Profesor> ite = new Iterador<>(admin.profesores);\n\n while (ite.hasNext()) {\n Profesor profeActual = ite.next();\n if (profeActual.area == area & profeActual.grupo == grupo) {\n profeActual.eliminaAlumnoLista(a);\n }\n }\n \n admin.alumnosTotales.remove(id_alumno);\n \n } catch (NullPointerException e) {\n System.out.println(\"No existe el Alumno\");\n }\n \n \n\n }", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "void eliminar(PK id);", "@Override\n\tpublic Retorno eliminarTramo(Double coordXi, Double coordYi, Double coordXf, Double coordYf) {\n\t\treturn new Retorno();\n\t}", "@Override\n public boolean eliminar(T dato) {\n try {\n this.raiz = eliminar(this.raiz, dato);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public void deleteBeneficioDeuda(Map parametros);", "@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}", "public void guardarTripulante(Tripulante tripulante);", "public void eliminar(Long id) throws AppException;", "public void descolaPosicao();", "public void deleteTour(Tour t) {\r\n\t\t int i=Arrays.asList(tours).indexOf(t);\r\n\t\t\r\n\t\t tours[i]=null;\r\n\t\t }", "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "int delWayBillByIdTravel(Long id_travel);", "public void borrarSesionesAnteriores()\r\n\t{\r\n\t\tint numerosesiones = 0;//numero de convocatorias en la BD\r\n\t\tList sesiones = null;\r\n\t\ttry\r\n {\r\n Conector conector = new Conector();\r\n conector.iniciarConexionBaseDatos();\r\n sesiones= SesionBD.listar(conector);\r\n conector.terminarConexionBaseDatos();\r\n }\r\n catch (Exception e)\r\n\t\t{\r\n \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n if(sesiones != null)\r\n {\r\n \tnumerosesiones = sesiones.size();\r\n }\r\n for (int i = 0; i < numerosesiones; i++)\r\n\t\t{\r\n \tSesion sesionaux = (Sesion)sesiones.get(i);\r\n\t\t\tint idsesion = sesionaux.getIdsesion();\r\n\t\t\tString fechasesion = sesionaux.getFechasesion();\r\n\t\t\tboolean esanterior = fechaSesionAnterior(fechasesion);\r\n\t\t\tif(esanterior == true)\r\n\t\t\t{\r\n\t\t\t\ttry \r\n\t \t\t{\r\n\t \t\t\tConector conector = new Conector();\r\n\t \t\t\tconector.iniciarConexionBaseDatos();\r\n\t \t\t\tSesionBD.eliminar(idsesion, conector);\r\n\t \t\t\tconector.terminarConexionBaseDatos();\r\n\t \t\t}\r\n\t \t\tcatch (Exception e)\r\n\t \t\t{\r\n\t \t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t \t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }", "public static void eliminarTodasLasBasesDeCalculoCptos() {\n\t\tnew Delete().from(BaseCalculoConcepto.class).execute();\n\t}", "public void delIncomingRelations();", "public void eliminarParametro() throws Exception;", "@Override\n public boolean eliminar(T dato) {\n if (esVacio())\n return (false); \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n //Si se encontro el elemento\n if (cmp==0){\n if (super.getRaiz().getIzq()==null){\n super.setRaiz(super.getRaiz().getDer());\n } \n else {\n NodoBin<T> x = super.getRaiz().getDer();\n super.setRaiz(super.getRaiz().getIzq());\n super.setRaiz(biselar(super.getRaiz(), dato));\n super.getRaiz().setDer(x);\n }\n return (true);\n }\n //El dato no fue encontrado\n return (false);\n }", "public void eliminar_datos_de_tabla(String tabla_a_eliminar){\n try {\n Class.forName(\"org.postgresql.Driver\");\n Connection conexion = DriverManager.getConnection(cc);\n Statement comando = conexion.createStatement();\n //Verificar dependiendo del tipo de tabla lleva o no comillas\n \n String sql=\"delete from \\\"\"+tabla_a_eliminar+\"\\\"\";\n \n comando.executeUpdate(sql);\n \n comando.close();\n conexion.close();\n } catch(ClassNotFoundException | SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "@Override\n\tpublic void eliminarTipoAsiento(Integer idTipoAsiento) throws Exception {\n\t\ttipoAsientoMapper.eliminarTipoAsiento(idTipoAsiento);\n\t\t\n\t}", "public boolean deletePalvelupisteet();", "public void borrarPiezasAmenazadoras(){\n this.piezasAmenazadoras.clear();\n }", "public void processEliminar() {\n }", "public void vaciar(){\r\n\t\t//Monto un iterador de vertices del grafo\r\n\t\tIterator iteradorVertices = vertices.iterator();\r\n\t\tArista aristaAux;\r\n\t\tVertice verticeAux;\r\n\t\t//obtengo todos los vertices del grafo\r\n\t\twhile (iteradorVertices.hasNext()){\r\n\t\t\tverticeAux = (Vertice) iteradorVertices.next();\r\n\t\t\t//por cada vertice obtengo sus aristas salientes\r\n\t\t\tIterator iteradorAristas = verticeAux.getAristasSalientes().iterator();\r\n\t\t\t//mientras tenga aristas salientes\r\n\t\t\twhile(iteradorAristas.hasNext()){\r\n\t\t\t\t//Elimino cada arista\r\n\t\t\t\taristaAux = (Arista)iteradorAristas.next(); \r\n\t\t\t\tverticeAux.elimiarAristaSaliente(aristaAux);\r\n\t\t\t}\r\n\t\t\t//Elimino el vertice\r\n\t\t\tthis.eliminarVertice(verticeAux);\r\n\t\t}\r\n\t}", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "public void limpiarPuntos() {\n \tpuntos.clear();\n }", "public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }", "public void eliminar(Maquina maquina)\r\n/* 24: */ {\r\n/* 25: 52 */ this.maquinaDao.eliminar(maquina);\r\n/* 26: */ }", "public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}", "public void eliminarGrupoLocal(GrupoLocalRequest grupoLocalRequest);", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "private void Drop(String[]p){\n List<DeputyTableItem> dti;\n dti = Drop1(p);\n for(DeputyTableItem item:dti){\n deputyt.deputyTable.remove(item);\n }\n }", "@Override\r\n\tpublic int elimina(int id) throws Exception {\n\t\treturn 0;\r\n\t}", "public void deleteByComplement(int id, TripletType type) throws DAOException;", "private void eliminarAux(NodoAVL<T> actual){\n NodoAVL<T> papa= actual.getPapa();\n if(actual.getHijoIzq()==null && actual.getHijoDer()==null)\n eliminaSinHijos(actual,papa); \n else{//CASO2: Nodo con un solo hijo (izq)\n NodoAVL<T> sustituto;\n if(actual.getHijoIzq()!=null && actual.getHijoDer()==null){\n sustituto= actual.getHijoIzq();\n eliminaSoloConHijoIzq(actual,papa,sustituto); \n }\n else//CASO3: Nodo con un solo hijo (der)\n if(actual.getHijoIzq()==null && actual.getHijoDer()!=null){\n sustituto= actual.getHijoDer();\n eliminaSoloConHijoDer(actual,papa, sustituto);\n }\n else //CASO4: Nodo con dos hijos\n if(actual.getHijoIzq()!=null && actual.getHijoDer()!=null)\n eliminaConDosHijos(actual);\n }\n \n }", "public void telefonoElimina(){\r\n \tlog.info(\"en eliminarTelefono()\");\t\r\n \tfor (int i = 0; i < TelefonoPersonaList.size(); i++) { \t\t\r\n \t\tlog.info(\"\"+TelefonoPersonaList.get(i).getItem()+\" ,idt \"+getIdt() +\" \"+TelefonoPersonaList.get(i).getTelefono());\r\n// \tlog.info(\"N1--->TelefonoPersonaList.get(i).getIdtelefonopersona()\"+\" --\" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\tif((TelefonoPersonaList.get(i).getIdtelefonopersona()== 0 || TelefonoPersonaList.get(i).getIdtelefonopersona()== null) && TelefonoPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> TelefonoPersonaList.get(i).getIdtelefonopersona()\" +\" \" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\t\tTelefonoPersonaSie teltemp = new TelefonoPersonaSie();\r\n\t\t\tteltemp.setIdtelefonopersona(idt);\r\n\t\t\tTelefonoPersonaList.remove(teltemp);\r\n\t\tfor (int j = i; j < TelefonoPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\t//TelefonoPersonaList.get(j).setItem(i);\r\n\t\t\tTelefonoPersonaList.set(j, TelefonoPersonaList.get(j));\r\n\t\t}break;\r\n\t\t\t}\r\n\t\telse if(TelefonoPersonaList.get(i).getIdtelefonopersona() ==(getIdt()) && TelefonoPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\t\tTelefonoPersonaSie obj = new TelefonoPersonaSie(); \r\n\t\t\t\tobj.setIdtelefonopersona(idt);\r\n\t\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\t\t\t\t\r\n\t\t\t\tTelefonoDeshabilitado.add(obj);\r\n\t\t\r\n\t\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t }", "@Override\n protected void remover(Funcionario funcionario) {\n\n }", "public void eliminarFechaTratamiento(String fecha){\n String[] fechaAborrar = {fecha};\n db.delete(\"tratamiento\",\"fecha=?\",fechaAborrar);\n }", "public static void eliminarTernero(String crotal){\n ArrayList<Ternero> terneros = bdAnimalesTerneros.getDatosObjeto(crotal);\n if(terneros.size() > 0)\n bdAnimalesTerneros.borrarDatos(terneros.get(0));\n }", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "void removeRoadside(int i);", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }", "private void removeCityFromTableEdges(ArrayList<HashMap<Integer,Integer>> table, int index){\n for(int i = 0; i < table.size(); i++){\n if(table.get(i).containsKey(index)){\n table.get(i).remove(index);\n }\n }\n\n return;\n }", "private void eliminarDisparos(int num){\n\t\t\n\t\tnumDisparos--;\n\t\tfor(int i=num;i<numDisparos;i++)\n\t\t\tdisparos[i]=disparos[i+1];\n\t\t\tdisparos[numDisparos]=null;\n\t}", "public int eliminar(int pasoSolicitado ){\n if(tipoTraductor.equals(\"Ascendente\"))\n eliminarAsc(pasoSolicitado);\n else \n eliminarDesc(pasoSolicitado);\n cadena.actualizarCadena(pasoSolicitado);\n contador=pasoSolicitado;\n return contador-1;\n }", "public void limpiar(DefaultTableModel tabla) {\n for (int i = 0; i < tabla.getRowCount(); i++) {\n tabla.removeRow(i);\n i -= 1;\n }\n }", "@Transactional\n void remove(DataRistorante risto);", "private ArrayList<Estado> tratar_repetidos(ArrayList<Estado> cerrados, ArrayList<Estado> abiertos,\r\n\t\t\tArrayList<Estado> hijos) {\r\n\r\n\t\tArrayList<Estado> aux_hijos = new ArrayList<>(); // Para evitar error de concurrencia creo una lista auxiliar de nodos hijos\r\n\t\tfor (int i = 0; i < hijos.size(); i++) {\r\n\t\t\taux_hijos.add(hijos.get(i));\r\n\t\t}\r\n\t\tswitch (trata_repe) {\r\n\t\tcase 1:\r\n\t\t\tfor (Estado h : aux_hijos) { // Recorro todos los nodos hijos\r\n\t\t\t\tif (cerrados.contains(h) || abiertos.contains(h)) // Si el hijo esta en la cola de abiertos o en cerrados\r\n\t\t\t\t\thijos.remove(h); // Lo elimino\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tfor (Estado h : aux_hijos) { // Recorro todos los nodos hijos\r\n\t\t\t\tif (abiertos.contains(h)) // Si el hijo esta en la pila de abiertos\r\n\t\t\t\t\thijos.remove(h); // Lo elimino puesto que no nos interesa ya que tendrá una profundidad mayor\r\n\t\t\t\telse if (cerrados.contains(h)) // Si el hijo esta en cerrados\r\n\t\t\t\t\tif (h.getProf() >= cerrados.get(cerrados.indexOf(h)).getProf()) // Compruebo si la profundidad es >= \r\n\t\t\t\t\t\thijos.remove(h); // Lo elimino porque solo nos interesan los de menor profundidad\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn hijos;\r\n\t}", "void excluir(List<TabelaIRRFLegadoDTO> lstTabelaIRRF) throws BancoobException;", "private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }", "public void eliminar(ListaConArreglo nodosMaquina){\n\t\tmodAdmin.eliminar( nodosMaquina);\n\t\tif(!ModAdmin.existe){\n\t\t\tSystem.err.println(\"El dominio indicado no existe en la base\");\n\t\t}\n\t\tModAdmin.existe=false;\n\t}", "@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "public void limpiarTabla(JTable tbl, DefaultTableModel plantilla) {\n for (int i = 0; i < tbl.getRowCount(); i++) {\n plantilla.removeRow(i);\n i -= 1;\n }\n }", "void desalocar(Processo processo) {\n for (int r = 0; r < size(); r++) {\n if (get(r).idProcesso == processo.getId()) {\n //TODO Marcar o bloco como livre\n get(r).espaçoUsado = 0;\n get(r).idProcesso = -1;\n }\n }\n }", "int delTravelById(Long id_travel) throws TravelNotFoundException;", "public void guardarTripulanteEncontrado(Tripulante tripulante);", "public void desligar() {\n\r\n\t}", "private void balancearElimina(Vertice<T> v){\n\t//Caso 1 RAIZ\n\tif(v.padre == null){\n\t this.raiz = v;\n\t v.color = Color.NEGRO;\n\t return;\n\t}\n\t//Vertice<T> hermano = getHermano(v);\n\t//Caso 2 HERMANO ROJO\n\tif(getHermano(v).color == Color.ROJO){\n\t v.padre.color = Color.ROJO;\n\t getHermano(v).color = Color.NEGRO;\n\t if(v.padre.izquierdo == v)\n\t\tsuper.giraIzquierda(v.padre);\n\t else\n\t\tsuper.giraDerecha(v.padre);\n\t //Actualizar V\n\t // hermano = getHermano(v);\n\t \n\t}\n\t//Caso 3 TODOS SON NEGROS\n\tif(v.padre.color == Color.NEGRO && existeNegro(getHermano(v)) && existeNegro(getHermano(v).izquierdo) && existeNegro(getHermano(v).derecho)){\n\t getHermano(v).color = Color.ROJO;\n\t //Checar color\n\t //v.color = Color.ROJO; //POR H DE HERMANO 20:00\n\t\tbalancearElimina(v.padre);\n\t\treturn;\n\t}\n\t//Caso 4 HERMANO Y SOBRINOS NEGROS Y PADRE ROJO\n\tif(existeNegro(getHermano(v)) && v.padre.color == Color.ROJO && existeNegro(getHermano(v).izquierdo)\n\t && existeNegro(getHermano(v).derecho)){\n\t v.padre.color = Color.NEGRO;\n\t getHermano(v).color = Color.ROJO;\n\t return;\n\t \n\t}\n\t//Caso 5 HERMANO NEGRO Y SOBRINOS BICOLORES\n\tif(getHermano(v).color == Color.NEGRO && (!(existeNegro(getHermano(v).izquierdo) && existeNegro(getHermano(v).derecho)))){\n\t if(v.padre.derecho == v){\n\t if(!existeNegro(getHermano(v).derecho)){\n\t\t getHermano(v).color = Color.ROJO;\n\t\t getHermano(v).derecho.color = Color.NEGRO;\n\t\t super.giraIzquierda(getHermano(v));\n\t }else{\n\t\t if(!existeNegro(getHermano(v).izquierdo)){\n\t\t getHermano(v).color = Color.ROJO;\n\t\t getHermano(v).izquierdo.color = Color.NEGRO;\t \n\t\t super.giraDerecha(getHermano(v));\n\t\t }\n\t }\n\t }\n\t}\n\t//Caso 6 SOBRINO INVERSO DE V ES ROJO\n\tif(v.padre.izquierdo == v){\n\t if(!existeNegro(getHermano(v).derecho)){\n\t\tgetHermano(v).color = v.padre.color;\n\t\t v.padre.color = Color.NEGRO;\n\t\t getHermano(v).derecho.color = Color.NEGRO;\n\t\t super.giraIzquierda(v.padre);\n\t }\n\t}else{\n\t if(!existeNegro(getHermano(v).izquierdo)){\n\t\tgetHermano(v).color = v.padre.color;\n\t\t v.padre.color = Color.NEGRO;\n\t\t getHermano(v).izquierdo.color = Color.NEGRO;\n\t\t super.giraDerecha(v.padre);\n\t }\n\t}\t\n }", "public static Task<Void> deleteTripper(String tripId, String tripperId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_TRIPPERS_COLLECTION)\n .document(tripperId)\n .delete();\n }", "public void removeEdge() {\n Graph GO = new Graph(nbOfVertex + 1);\n Value.clear();\n for (int i = 0; i < x.length; i++) {\n for (int j : x[i].getDomain()) {\n Value.add(j);\n if (MaxMatch[i] == Map.get(j)) {\n GO.addEdge(Map.get(j), i);\n } else {\n GO.addEdge(i, Map.get(j));\n }\n }\n }\n\n for (int i : V2) {\n for (int j : Value) {\n if (!V2.contains(j)) {\n GO.addEdge(i, j);\n }\n }\n }\n //System.out.println(\"GO : \");\n //System.out.println(GO);\n int[] map2Node = GO.findStrongConnectedComponent();\n //GO.printSCC();\n\n ArrayList<Integer>[] toRemove = new ArrayList[n];\n for (int i = 0; i < n; i++) {\n toRemove[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n for (int j : x[i].getDomain()) {\n ////System.out.println(i + \" \" + j);\n if (map2Node[i] != map2Node[Map.get(j)] && MaxMatch[i] != Map.get(j)) {\n toRemove[i].add(j);\n if (debug == 1) System.out.println(\"Remove arc : \" + i + \" => \" + j);\n }\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j : toRemove[i]) {\n x[i].removeValue(j);\n }\n }\n }", "@Override\n\tpublic boolean eliminar(Long id) {\n\t\treturn false;\n\t}", "@Test\n\tpublic void eliminar() {\n\t\tGestionarComicPOJO gestionarComicPOJO = new GestionarComicPOJO();\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"1\", \"Dragon Ball Yamcha\",\n\t\t\t\t\"Planeta Comic\", TematicaEnum.AVENTURAS.name(), \"Manga Shonen\", 144, new BigDecimal(2100),\n\t\t\t\t\"Dragon Garow Lee\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 20l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"2\", \"Captain America Corps 1-5 USA\",\n\t\t\t\t\"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"BIBLIOTECA MARVEL\", 128, new BigDecimal(5000),\n\t\t\t\t\"Phillippe Briones, Roger Stern\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 5l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"3\",\n\t\t\t\t\"The Spectacular Spider-Man v2 USA\", \"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"MARVEL COMICS\",\n\t\t\t\t208, new BigDecimal(6225), \"Straczynski,Deodato Jr.,Barnes,Eaton\", Boolean.TRUE, LocalDate.now(),\n\t\t\t\tEstadoEnum.INACTIVO.name(), 0l));\n\n\t\tint tamañoAnterior = gestionarComicPOJO.getListaComics().size();\n\t\tgestionarComicPOJO.eliminarComicDTO(\"1\");\n\t\tAssert.assertEquals(gestionarComicPOJO.getListaComics().size(), tamañoAnterior - 1);\n\t}", "public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }", "public void removeVehicles() {\r\n numberOfVehicles = 0;\r\n for (Lane lane : lanes) {\r\n lane.removeVehicles();\r\n }\r\n }", "private void removerPontos(final String matricula, final int pontos) {\n firebase.child(\"Alunos/\" + matricula + \"/pontuacao\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long qtdAtual = (long) dataSnapshot.getValue();\n if (qtdAtual >= pontos) {\n firebase.child(\"Alunos/\" + matricula + \"/pontuacao\").setValue(qtdAtual - pontos);\n Toast.makeText(getContext(), \"Pontuação removida com sucesso.\", Toast.LENGTH_SHORT).show();\n quantidade.setText(\"\");\n\n if (alunoEncontrado == null) {\n Log log = new Log(matricula, pontos);\n log.pontos(\"Remover\");\n } else {\n Log log = new Log(alunoEncontrado, pontos);\n log.pontos(\"Remover\");\n }\n } else {\n Toast.makeText(getContext(), \"Aluno com menor quantidade de pontos que o solicitado.\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic void eliminar(String cUsuario,ColorAuto viejos) {\n\t\tConnection conexion = null;\r\n\t\ttry {\r\n\t\t\tconexion = ConexionApp.iniConexion();\r\n\r\n\t\t\tBooleanHolder lhResultado = new BooleanHolder();\r\n\t\t\tStringHolder chTexto = new StringHolder();\r\n\t\t\tapp app = new app(conexion);\r\n\r\n\t\t\tVector vector = new Vector();\r\n\t\t\tvector.add(viejos.getLista());\r\n\r\n\t\t\tResultSet tt_Viejos = new VectorResultSet(vector);\r\n\t\t\t\t\t\t\r\n\t\t\tapp.as_ctColorAuto_Borra(cUsuario, tt_Viejos, lhResultado, chTexto);\t\t\r\n\r\n\t\t\tthis.setResultado(lhResultado.getBooleanValue());\r\n\t\t\tthis.setMensaje(chTexto.getStringValue());\t\t\t\r\n\t\t\r\n\t\t\tapp._release();\r\n\r\n\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tthis.setResultado(true);\r\n\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tConexionApp.finConexion(conexion);\r\n\r\n\t\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tthis.setResultado(true);\r\n\t\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t}", "public void removeAllDataCliente() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }" ]
[ "0.7176836", "0.6709724", "0.670932", "0.67092496", "0.65745604", "0.6483863", "0.6396537", "0.63370556", "0.62709826", "0.61857146", "0.6181278", "0.617864", "0.61673653", "0.6122176", "0.6122176", "0.6117096", "0.60791874", "0.60306436", "0.6028752", "0.60264754", "0.60126054", "0.59957504", "0.5994205", "0.5967701", "0.59615713", "0.5941892", "0.5932717", "0.5929561", "0.59266174", "0.59252393", "0.5911119", "0.58994126", "0.58718306", "0.5870163", "0.5860909", "0.5857411", "0.58486915", "0.5836416", "0.5834842", "0.5822606", "0.58160436", "0.581395", "0.5813847", "0.5796857", "0.5791941", "0.5790245", "0.5787633", "0.5781417", "0.5775417", "0.57728404", "0.57621855", "0.5756902", "0.5755486", "0.5750024", "0.5731158", "0.57283694", "0.57262504", "0.5722243", "0.571593", "0.5714728", "0.5713605", "0.56999505", "0.56997836", "0.56980467", "0.5688577", "0.5683482", "0.5680886", "0.56800735", "0.56781155", "0.5673226", "0.56684077", "0.5659231", "0.5656409", "0.56562954", "0.56494516", "0.5649274", "0.56428325", "0.56385607", "0.56385547", "0.56320775", "0.56289417", "0.56285596", "0.56271493", "0.5626336", "0.56228566", "0.5620399", "0.56150943", "0.56074107", "0.5606291", "0.55992407", "0.5597632", "0.55946773", "0.55946475", "0.5594444", "0.55892795", "0.55885935", "0.55882686", "0.55862975", "0.5582052", "0.5578675" ]
0.677626
1
Metodo para hacer una busqueda de un tripulante por su atributo de tipo String y nombre documento
public Tripulante buscarTripulante(String documento) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Videogioco> retriveByPiattaforma(String piattaforma);", "java.lang.String getFkocs();", "List<Videogioco> retriveByNome(String nome);", "com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();", "public Libro recupera(String nombre);", "GestionPrecioDTO findCampania(String codigoCampaniaReferencia);", "@Override\n\t@Transactional\n\tpublic List<Cliente> getClienteByAnyWord(String nombre, Long idcliente, Long idGrupo, Long idPunto) {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<Cliente> cliente =getCurrentSession().createQuery(\"select clientes from Grupo g join g.clientes clientes where clientes.nombre like '\"+nombre+\"%\"+\"'\"+\"and g.id=\"+idGrupo+\" and clientes.activo=1\").list();\n\n\t\t\t\treturn cliente;\n\t}", "public Tipo[] findByName(String nombre) throws TipoDaoException;", "public Tipo findByFullName(String nombre) throws TipoDaoException;", "public TipoObra(String descripcion) {\n this.descripcion = descripcion;\n\n switch (descripcion) {\n case \"REFORMA\": {\n this.id = 1;\n break;\n }\n case \"CASA\": {\n this.id = 2;\n break;\n }\n case \"EDIFICIO\": {\n this.id = 3;\n break;\n }\n case \"VIAL\": {\n this.id = 4;\n break;\n }\n default : this.id = 0;\n }\n }", "public List<Tripulante> obtenerTripulantes();", "public List<Arresto> getArresto(String dni);", "public List<Tripulante> buscarTodosTripulantes();", "List<Videogioco> retriveByGenere(String genere);", "public List<TipoRetencion> findByNombreContaining(String nombre);", "List<DocPatRelation> selectRelationPatInfoByDocId(String docId);", "@Override\r\n public String toString() {\n return tipodocumento;\r\n }", "Documento getDocumento();", "java.lang.String getField1021();", "@SuppressWarnings(\"unchecked\")\n\tpublic void searchTraject() throws IOException {\n\n\t\tif (trajectType == null) {\n\t\t\tmessages.warn(\"Gelieve eerst een route- of netwerktype te selecteren alvorens te zoeken.\");\n\t\t}\n\n\t\telse if (trajectType.contains(\"Route\") && trajectNaam == null) {\n\t\t\tmessages.warn(\"Gelieve bij het zoeken naar routes een trajectnaam te selecteren.\");\n\t\t}\n\n\t\telse {\n\t\t\tMapViewer viewer = getViewer();\n\t\t\tMapContext context = viewer.getConfiguration().getContext();\n\n\t\t\t// viewer.setShowSelectControl(false);\n\t\t\t// viewer.setShowDrawPointControl(false);\n\n\t\t\tenvelope = getEnvelopeProvincie();\n\n\t\t\tgetMelding().setProbleem(null);\n\t\t\tprobleemType = \"\";\n\n\t\t\t// Itereren over de lagen en de correcte operaties uitvoeren\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\tlayer.setFilter(null);\n\t\t\t\tlayer.setHidden(true);\n\t\t\t\tlayer.set(\"selectable\", false);\n\t\t\t\t// Provincie altijd zichtbaar\n\t\t\t\tif (layer.getLayerId().equalsIgnoreCase(\"provincie\")) {\n\t\t\t\t\tlayer.setHidden(false);\n\t\t\t\t}\n\n\t\t\t\telse if (layer.getLayerId().equalsIgnoreCase(trajectType)) {\n\t\t\t\t\t// Netwerk\n\t\t\t\t\tif (trajectType.contains(\"Segment\")) {\n\t\t\t\t\t\tsearchNetwerkLayer(layer);\n\t\t\t\t\t}\n\t\t\t\t\t// Route\n\t\t\t\t\telse {\n\t\t\t\t\t\tsearchRouteLayer(layer);\n\t\t\t\t\t\tenvelope = viewer.getContentExtent(layer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// RouteBord\n\t\t\t\telse if (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\ttrajectType + \"Bord\")) {\n\t\t\t\t\tsearchRouteBordLayer(layer);\n\t\t\t\t}\n\t\t\t\t// NetwerkBord\n\t\t\t\t// Filtering op de borden\n\t\t\t\telse if (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\ttrajectType.replace(\"Segment\", \"\") + \"Bord\")) {\n\t\t\t\t\tlayer.setHidden(false);\n\t\t\t\t\tsearchNetwerkBordLayer(layer);\n\t\t\t\t}\n\t\t\t\t// WandelKnooppunt\n\t\t\t\telse if (layer.getLayerId().contains(\"Knooppunt\")\n\t\t\t\t\t\t&& trajectType.contains(\"WandelNetwerk\")) {\n\t\t\t\t\tFeatureMapLayer mapLayer = (FeatureMapLayer) context\n\t\t\t\t\t\t\t.getLayer(\"wandelNetwerkKnooppunt\");\n\t\t\t\t\tsearchKnooppuntLayer(mapLayer);\n\t\t\t\t}\n\n\t\t\t\t// FietsKnooppunt\n\t\t\t\telse if (layer.getLayerId().contains(\"Knooppunt\")\n\t\t\t\t\t\t&& trajectType.contains(\"FietsNetwerk\")) {\n\t\t\t\t\tFeatureMapLayer mapLayer = (FeatureMapLayer) context\n\t\t\t\t\t\t\t.getLayer(\"fietsNetwerkKnooppunt\");\n\t\t\t\t\tsearchKnooppuntLayer(mapLayer);\n\t\t\t\t}\n\n\t\t\t\t// Intekenen Punt\n\t\t\t\telse if (layer.getLayerId().equalsIgnoreCase(\n\t\t\t\t\t\tGEOMETRY_LAYER_NAME)) {\n\t\t\t\t\tlayer.setHidden(true);\n\t\t\t\t\t((GeometryListFeatureMapLayer) layer)\n\t\t\t\t\t\t\t.setGeometries(Collections.EMPTY_LIST);\n\t\t\t\t} else {\n\t\t\t\t\tlayer.setHidden(true);\n\t\t\t\t\tlayer.setFilter(null);\n\t\t\t\t\tlayer.set(\"selectable\", false);\n\t\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tviewer.updateCurrentExtent(envelope);\n\t\t\tviewer.updateContext(null);\n\t\t}\n\t}", "public List<Telefono> getTelefonos(String dni);", "ConsultaDto<ProdutorVO> obterByNomeApelido(String nomeApelido, Integer idInstituicao, int pagina, int tamanhoPagina) throws BancoobException;", "public abstract Set<String> getTerms(Document doc);", "protected String createFindBy(String nume) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"SELECT \");\n\t\tsb.append(\" * \");\n\t\tsb.append(\" FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" WHERE \");\n\t\treturn sb.toString();\n\t}", "@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);", "Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);", "List<DataTerm> search(String searchTerm);", "public interface OrdineRepository extends JpaRepository<Ordine,Long> {\n\n //Ricerca ordini associati ad un determinato cliente\n @Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);\n}", "public static void main( String[] args ) {\n\n Model m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF);\n\n\n FileManager.get().readModel( m, owlFile );\n String myOntologyName = \"http://www.w3.org/2002/07/owl#\";\n String myOntologyNS = \"http://www.w3.org/2002/07/owl#\";\n////\n////\n// String rdfPrefix = \"PREFIX rdf: <\"+RDF.getURI()+\">\" ;\n// String myOntologyPrefix = \"PREFIX \"+myOntologyName+\": <\"+myOntologyNS+\">\" ;\n// String myOntologyPrefix1 = \"PREFIX \"+myOntologyName ;\n String myOntologyPrefix2 = \"prefix pizza: <http://www.w3.org/2002/07/owl#> \";\n//\n//\n//// String queryString = myOntologyPrefix + NL\n//// + rdfPrefix + NL +\n//// \"SELECT ?subject\" ;\n \n String queryString = rdfPrefix + myOntologyPrefix2 +\n// \t\t \"prefix pizza: <http://www.w3.org/2002/07/owl#> \"+ \n \t\t \"prefix rdfs: <\" + RDFS.getURI() + \"> \" +\n \t\t \"prefix owl: <\" + OWL.getURI() + \"> \" +\n// \t\t \"select ?o where {?s ?p ?o}\";\n \n//\t\t\t\t\t\t\"select ?s where {?s rdfs:label \"苹果\"@zh}\";\n \n// \"SELECT ?label WHERE { ?subject rdfs:label ?label }\" ;\n// \"SELECT DISTINCT ?predicate ?label WHERE { ?subject ?predicate ?object. ?predicate rdfs:label ?label .}\";\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"Italy\\\"@en}\" ;\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"苹果\\\"@zh}\" ;\n// \"SELECT DISTINCT ?s WHERE\" +\n// \"{?object rdfs:label \\\"水果\\\"@zh.\" +\n// \"?subject rdfs:subClassOf ?object.\" +\n// \"?subject rdfs:label ?s}\";\n //星号是转义字符,分号是转义字符\n\t\t\t\t\"SELECT DISTINCT ?e ?s WHERE {?entity a ?subject.?subject rdfs:subClassOf ?object.\"+\n \"?object rdfs:label \\\"富士苹果\\\"@zh.?entity rdfs:label ?e.?subject rdfs:label ?s}ORDER BY ?s\";\n \t\t\n\n \n \t\tcom.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \t\tQueryExecution qe = QueryExecutionFactory.create(query, m);\n \t\tcom.hp.hpl.jena.query.ResultSet results = qe.execSelect();\n\n \t\tResultSetFormatter.out(System.out, results, query);\n \t\tqe.close();\n\n// Query query = QueryFactory.create(queryString) ;\n\n query.serialize(new IndentedWriter(System.out,true)) ;\n System.out.println() ;\n\n\n\n QueryExecution qexec = QueryExecutionFactory.create(query, m) ;\n\n try {\n\n ResultSet rs = qexec.execSelect() ;\n\n\n for ( ; rs.hasNext() ; ){\n QuerySolution rb = rs.nextSolution() ;\n RDFNode y = rb.get(\"person\");\n System.out.print(\"name : \"+y+\"--- \");\n Resource z = (Resource) rb.getResource(\"person\");\n System.out.println(\"plus simplement \"+z.getLocalName());\n }\n }\n finally{\n qexec.close() ;\n }\n }", "public abstract java.lang.String getTica_id();", "java.lang.String getField1221();", "@Override\n public List<Archivo> findArchivoByDocente(String string) {\n return null;\n }", "public List<FilmeAtor> buscarFilmesAtoresPeloNomeFilmeOuNomeAtor(String nomeFilmeOuAtor) {\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery<FilmeAtor> consulta = gerenciador.createQuery(\r\n \"SELECT new dados.dto.FilmeAtor(f, a) FROM Filme f JOIN f.atores a WHERE f.nome like :nomeFilme or a.nome like :nomeAtor\",\r\n FilmeAtor.class);\r\n\r\n consulta.setParameter(\"nomeFilme\", nomeFilmeOuAtor + \"%\");\r\n consulta.setParameter(\"nomeAtor\", nomeFilmeOuAtor + \"%\");\r\n \r\n return consulta.getResultList();\r\n\r\n }", "ParqueaderoEntidad agregar(String nombre);", "public Vendedor buscarVendedorPorNome(String nome);", "ConsultaDto<ProdutorVO> obterByNomeApelido(String nomeApelido, Integer idInstituicao, int pagina, int tamanhoPagina, Boolean filtrarCategoriaAtiva) throws BancoobException;", "ConsultaDto<ProdutorVO> obterByNome(String nome, Integer idInstituicao, int pagina, int tamanhoPagina) throws BancoobException;", "List<T> buscarTodosComNomeLower();", "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "static void pontipo(String t){\r\n\t\tStruct s=new Struct(t,0);\r\n\t\tStruct auxt=buscaT(s);\r\n\t\t/*He encontrado el tipo q tengo q insertar*/\r\n\t\tif(aux==null){\r\n\t\t\t//Parse.SemError(1);\r\n\t\t\tSystem.out.println(\"ERROR TIPO NO ENCONTRADO!!\");\r\n\t\t}else{\r\n\t\t\tObj aux2=aux;\r\n\t\t\twhile (aux2 != null){\r\n\t\t\t\taux2.type=auxt;\r\n\t\t\t\taux2=aux2.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "List<DocPatRelation> selectRelationPatInfoByPatId(String patId);", "java.lang.String getField1012();", "java.lang.String getField1112();", "ConsultaDto<ProdutorVO> obterByNome(String nome, Integer idInstituicao, int pagina, int tamanhoPagina, Boolean filtrarCategoriaAtiva) throws BancoobException;", "java.lang.String getField1078();", "java.lang.String getField1168();", "java.lang.String getField1211();", "java.lang.String getField1710();", "java.lang.String getField1001();", "String findRelation(String person1, String person2);", "WordBean getWord(String word);", "public void llenDic(){\r\n ArrayList<String> wor= new ArrayList<String>();\r\n ArrayList<Association<String,String> >asociaciones= new ArrayList<Association<String,String>>();\r\n \r\n try {\r\n \r\n arch = new File (\"diccionario.txt\");\r\n fr = new FileReader (arch);\r\n br = new BufferedReader(fr);\r\n\r\n \r\n String lin;\r\n \r\n while((lin=br.readLine())!=null){\r\n wor.add(lin);\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n \r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n \r\n //Ciclo para separar y obtener la palabra en ingles y español\r\n for(int i=0; i<wor.size()-1;i++){\r\n int lugar=wor.get(i).indexOf(',');\r\n String ing=wor.get(i).substring(0,lugar);\r\n String esp=wor.get(i).substring(lugar+1,wor.get(i).length());\r\n asociaciones.add(new Association(ing, esp));\r\n }\r\n \r\n rz.setValue(asociaciones.get(0));\r\n for (int i=1; i<asociaciones.size(); i++){\r\n insertarNodo(rz, asociaciones.get(i));\r\n }\r\n }", "java.lang.String getField1231();", "public List<TripDTO> findTripsByCountry(String country);", "public void getByPropertyemployee(String textToFind){\n\t\t// ejemplo buscar por propiedad direccion\n\t\tEmployeeResult employeeResult = getJerseyClient().resource(getBaseUrl() + \"/employee/search/\"+textToFind).get(EmployeeResult.class);\n\t\tfor (EmployeeDTO c : employeeResult.getEmployees()) {\n\t\t\tSystem.out.println(\"Nombre: \"+c.getName());\n\t\t\tSystem.out.println(\"Apellido: \"+c.getSurname());\n\t\t\tSystem.out.println(\"Direccion: \"+c.getAddress());\n\t\t\tSystem.out.println(\"RUC: \"+c.getRUC());\n\t\t\tSystem.out.println(\"Telefono: \"+c.getCellphone());\n\t\t}\n\t\t\n\t}", "List<Pacote> buscarPorTransporte(Transporte transporte);", "Maycta findFirstByCuenta(String cuenta);", "java.lang.String getField1017();", "public String getInoDocname();", "public RecordSet obtenerTiposCargoPorEtapa(es.indra.sicc.util.DTOOID dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerTiposCargoPorEtapa(es.indra.sicc.util.DTOOID dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n // gPineda - V-COB006 - 30/01/2007\n //query.append(\" SELECT OID_ETAP_DEUD_TIPO_CARG AS OID, VAL_DESC descripcion \");\n query.append(\" SELECT oid_etap_deud_tipo_carg AS OID, NVL(val_desc, gen.VAL_I18N) descripcion \");\n query.append(\" FROM cob_etapa_deuda_tipo_cargo etapTipoCar, \");\n query.append(\" \t\t ccc_tipo_cargo_abono tipoCar, \");\n query.append(\" \t\t gen_i18n_sicc_pais gen \");\n query.append(\" WHERE ETDE_OID_ETAP_DEUD = \" + dtoe.getOid() );\n query.append(\" \t and etapTipoCar.TCAB_OID_TIPO_CARG_ABON = tipoCar.OID_TIPO_CARG_ABON \");\n query.append(\" \t\t and gen.VAL_OID = tipoCar.OID_TIPO_CARG_ABON \");\n query.append(\" \t\t and gen.ATTR_ENTI = 'CCC_TIPO_CARGO_ABONO' \");\n query.append(\" \t\t and gen.ATTR_NUM_ATRI = 1 \");\n query.append(\" ORDER BY descripcion \");\n \n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerTiposCargoPorEtapa(es.indra.sicc.util.DTOOID dtoe): Salida\");\n \n return rs; \n }", "private int contar(String nombre) {\n int c = 0;\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.value.Cliente().equals(nombre)) {\n c++;\n }\n }\n return c;\n }", "java.lang.String getField1997();", "java.lang.String getField1610();", "java.lang.String getField1212();", "public String getNombreCompleto();", "java.lang.String getField1210();", "public void searchTrajectId(FeatureMapLayer layer) {\n\n\t\tif (layer.getLayerId().equalsIgnoreCase(trajectType)) {\n\t\t\tFeatureCollection<SimpleFeatureType, SimpleFeature> features = getViewer()\n\t\t\t\t\t.getFeature(layer, getViewer().getContext().getSrsName(),\n\t\t\t\t\t\t\tgetViewer().getContext().getBoundingBox(), null,\n\t\t\t\t\t\t\tFilterUtils.equal(\"naam\", trajectNaam), null, 1);\n\t\t\tFeatureIterator<SimpleFeature> iterator = features.features();\n\n\t\t\ttry {\n\t\t\t\tif (features.size() == 1) {\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tSimpleFeature feature = iterator.next();\n\t\t\t\t\t\tgetMelding().setTraject(\n\t\t\t\t\t\t\t\tnew ResourceKey(\"Traject\", feature\n\t\t\t\t\t\t\t\t\t\t.getAttribute(\"id\").toString()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\titerator.close();\n\t\t\t}\n\t\t}\n\t}", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "java.lang.String getField1284();", "@In String search();", "Reserva Obtener();", "Filmes(String nome,String genero){\n\t\tthis.nome = nome;\n\t\tthis.genero = genero;\n\t}", "java.lang.String getField1082();", "java.lang.String getAdresa();", "java.lang.String getField1015();", "public static Task<QuerySnapshot> getTrippers(String tripId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_TRIPPERS_COLLECTION)\n .get();\n }", "String directsTo();", "java.lang.String getField1019();", "java.lang.String getField1333();", "private String getAdress(NodoAvl tmp){\n StringBuilder sb = new StringBuilder();\n sb.append(tmp.direcciones.graphBigList(tmp.nom+\"Add\"));\n sb.append(tmp.nom).append(\"->\").append(tmp.nom).append(\"Add0\")\n .append(\";\\n\");\n return sb.toString();\n }", "@Query(\"SELECT entity FROM Clientes entity WHERE (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%')) AND (:negocio is null OR entity.negocio like concat('%',:negocio,'%')) AND (:sigla is null OR entity.sigla like concat('%',:sigla,'%')) AND (:status is null OR entity.status like concat('%',:status,'%'))\")\n public Page<Clientes> specificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, @Param(value=\"negocio\") java.lang.String negocio, @Param(value=\"sigla\") java.lang.String sigla, @Param(value=\"status\") java.lang.String status, Pageable pageable);", "java.lang.String getField1282();", "public Receta(String diagnostico, String medicamentos, int idPaciente) {\r\n this.diagnostico = diagnostico;\r\n this.medicamentos = medicamentos;\r\n this.idPaciente = idPaciente;\r\n }", "java.lang.String getField1018();", "public List<Cliente> findByNombreCli(String nombreCli);", "public Cliente[] findWhereFolioClienteMovilEquals(String folioClienteMovil) throws ClienteDaoException;", "java.lang.String getField1000();", "private List<RobaDto> vratiArtikle(UniverzalniParametri parametri, String trazenaRec) {\n SelectConditionStep<Record7<Integer, String, String, BigDecimal, String, Integer, String>> select = kreirajSelect(\n trazenaRec, null);\n\n if (!StringUtils.isEmpty(trazenaRec)) {\n standardniUslovi(select, trazenaRec, parametri);\n }\n\n filtrirajPoParametrima(select, parametri);\n sortiranje(select, parametri);\n\n return robaDtoMapper(select.fetch());\n }", "java.lang.String getField1030();", "java.lang.String getField1006();", "java.lang.String getField1222();", "public ArrayList<ServicioDTO> consultarServicios(String columna, String informacion) throws Exception {\r\n ArrayList<ServicioDTO> dtos = new ArrayList<>();\r\n conn = Conexion.generarConexion();\r\n String sql = \"\";\r\n if (columna.equals(\"nom\")) \r\n sql = \" WHERE SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ?\";\r\n else if (columna.equals(\"cod\"))\r\n sql = \" WHERE SerCodigo = ? \";\r\n if (conn != null) {\r\n PreparedStatement stmt = conn.prepareStatement(\"SELECT SerCodigo, \"\r\n + \"SerNombre, SerCaracter, SerNotas, SerHabilitado \"\r\n + \"FROM tblservicio\" + sql);\r\n if (columna.equals(\"cod\")) {\r\n stmt.setString(1, informacion);\r\n } else if (columna.equals(\"nom\")) {\r\n stmt.setString(1, informacion);\r\n stmt.setString(2, \"%\" + informacion);\r\n stmt.setString(3, informacion + \"%\");\r\n stmt.setString(4, \"%\" + informacion + \"%\");\r\n }\r\n ResultSet rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n ServicioDTO dto = new ServicioDTO();\r\n dto.setCodigo(rs.getInt(1));\r\n dto.setNombre(rs.getString(2));\r\n dto.setCaracter(rs.getString(3));\r\n dto.setNotas(rs.getString(4));\r\n String habilitado = rs.getString(5);\r\n if(habilitado.equals(\"si\"))\r\n dto.setHabilitado(true);\r\n else\r\n dto.setHabilitado(false);\r\n dtos.add(dto);\r\n }\r\n stmt.close();\r\n rs.close();\r\n conn.close();\r\n }\r\n return dtos;\r\n }", "public VOUsuario obtenerdatosUsuario(String[] val, String[] tipo) throws RemoteException {\n VOUsuario usu = null;\n if(tipo.length==val.length)\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s;\n String texto[]=new String[11];\n\n int n, l=0;\n int campo[]=new int[tipo.length];\n boolean encontrado=false;\n for(int i=0; i<tipo.length; i++) {\n if(tipo[i].compareTo(\"id\")==0) campo[i]=0;\n if(tipo[i].compareTo(\"nombre\")==0) campo[i]=4;\n if(tipo[i].compareTo(\"apellido\")==0) campo[i]=5;\n if(tipo[i].compareTo(\"nomuser\")==0) campo[i]=1;\n if(tipo[i].compareTo(\"email\")==0) campo[i]=7;\n if(tipo[i].compareTo(\"rut\")==0) campo[i]=6;\n if(tipo[i].compareTo(\"pass\")==0) campo[i]=3;\n }\n while((s = entrada.readLine()) != null && !encontrado) {\n texto=s.split(\" \");\n int j=0;\n boolean seguir=true;\n while(j<campo.length && seguir) {\n if(texto[campo[j]].toLowerCase().compareTo(val[j].toLowerCase())!=0) {\n seguir=false;\n j++;\n } else {\n j++;\n }\n }\n if(seguir) {\n encontrado=true;\n }\n l++;\n }\n if(encontrado) {\n int area[] = new int[texto[10].split(\"-\").length];\n String ar[]=texto[10].split(\"-\");\n for(int i=0; i<area.length; i++) {\n area[i]=Integer.parseInt(ar[i]);\n }\n usu=new VOUsuario(\n texto[0],\n texto[1],\n this.quitaGuiones(texto[2]),\n texto[3],\n this.quitaGuiones(texto[4]),\n this.quitaGuiones(texto[5]),\n this.quitaGuiones(texto[6]),\n this.quitaGuiones(texto[7]),\n this.quitaGuiones(texto[8]),\n this.quitaGuiones(texto[9]),\n area);\n entrada.close();\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return usu;\n }", "java.lang.String getField1081();", "java.lang.String getField1032();", "@Override\n\tpublic String getSearchkeys() {\n\t\treturn matricule+\",\"+nom;\n\t}", "java.lang.String getField1182();", "public Etiqueta buscador(String nombreEtiqueta){\n for(int i = 0;i < listaEtiquetas.size();i++){\n if(this.listaEtiquetas.get(i).getEtiqueta().equals(nombreEtiqueta)){ //Si coincide el nombre de la etiqueta, se retorna\n return this.listaEtiquetas.get(i);\n }\n }\n return null;\n }", "public void caricaPartita(String partita) {\n\r\n }", "@GET\n\t@Path(\"consultar/{titulo}\") //ruta -> metodo que al que llama\n\t@Produces(\"application/json\") \n\tpublic String buscarTitulo(@PathParam(\"titulo\") String titulo) {\n\t\tList<Libro> lista = negocio.consultarTitulo(titulo);\n\t\tJSONArray array = new JSONArray(lista);\n\t\treturn array.toString();\n\t}" ]
[ "0.53144044", "0.5271892", "0.52176183", "0.51788616", "0.5157606", "0.51519597", "0.5124785", "0.5099058", "0.5077277", "0.50708234", "0.5059299", "0.50207484", "0.5012631", "0.49769598", "0.49718872", "0.49689057", "0.49526337", "0.492853", "0.49224606", "0.49223346", "0.49189958", "0.49027568", "0.4888598", "0.4874879", "0.4852996", "0.48516095", "0.48455575", "0.48430398", "0.48394203", "0.4828314", "0.48237133", "0.48199448", "0.48121104", "0.48110792", "0.47972113", "0.4783318", "0.4782483", "0.4765841", "0.47484794", "0.47469512", "0.47445953", "0.47364074", "0.47359532", "0.47317535", "0.47302568", "0.471885", "0.4716324", "0.47128078", "0.47081143", "0.47067684", "0.47054866", "0.4702197", "0.47019345", "0.46999082", "0.46946073", "0.46856403", "0.46854922", "0.4684867", "0.46842402", "0.46830875", "0.46762994", "0.4675037", "0.46696573", "0.46671095", "0.4663603", "0.4662245", "0.46606845", "0.4654104", "0.4652396", "0.4650901", "0.4648913", "0.46487737", "0.46468076", "0.46429312", "0.46415257", "0.46344548", "0.463321", "0.4631739", "0.46317026", "0.46314445", "0.46289474", "0.46281207", "0.46280578", "0.46238697", "0.46218988", "0.46197432", "0.46190974", "0.46175534", "0.46174073", "0.46147302", "0.46139264", "0.46106365", "0.46066946", "0.46059874", "0.46049818", "0.4604401", "0.46041757", "0.46027648", "0.46024102", "0.4600604" ]
0.69833136
0
A method to move the player left and right.
public void movement() { // If the player wants to move left ie presses 'a' key.. if (spaceInvadersGame.getKeyManager().left) { // If the player is on the left bound of the window do not move. if (xPosition <= 0) { // Move the player's xPosition left. } else { xPosition -= playerSpeed; } } else if (spaceInvadersGame.getKeyManager().right) { if (xPosition >= 500 - width) { } else { xPosition += playerSpeed; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveLeft();", "private void playerMoveRight()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() + 1);\n if (this.getCurrentX() < 11) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }", "void moveRight();", "public void moveLeft() {\n\t\t\n\t}", "private void playerMoveLeft()\n {\n \n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() - 1);\n if (this.getCurrentX() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "public void moveRight() {\n\t\t\n\t}", "public void moveRight() {\n\t\tposX += speed;\n\t}", "public void moveLeft() {\n\t\tposX -= speed;\n\t}", "public void move(Player right, Player left){\n xLoc+=xVel;\n yLoc +=yVel;\n \n //bounces off the top of the playing field\n if(yLoc<5){\n yLoc = 10-yLoc;\n yVel = -yVel;\n }\n //bounces off the bottom of the playing field\n if(yLoc>495){\n yLoc = 990-(yLoc);\n yVel = -yVel;\n }\n //bounces off the right Paddle\n if(xLoc<=right.getX()+Player.WIDTH/2 && xLoc>right.getX()-Player.WIDTH/2\n && Math.abs(yLoc-right.getY())<Player.LENGTH/2){\n xLoc=20+(20-xLoc);\n if(xLoc<20)\n xLoc = 20;\n xVel=-xVel;\n accelerate();\n }\n //bounces off the left Paddle\n if(xLoc>=left.getX()-Player.WIDTH/2 && xLoc<left.getX()+Player.WIDTH/2\n && Math.abs(yLoc-left.getY())<Player.LENGTH/2){\n xLoc=475-(xLoc-475);\n xVel=-xVel;\n accelerate();\n }\n }", "public void moveRight() {\n\t\tsetPosX(getPosX() + steps);\n\t}", "public void moveLeft(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.LEFT;\n\t\tif(animation!=ANIMATION.MOVELEFT) {\n\t\t\tanimation=ANIMATION.MOVELEFT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.LEFT;\n\t\tdirection=\"left\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=-1*spd/2;\n\t\tvelY=0;\n\t}", "void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public void moveRight()\n\t{\n\t\tmoveRight = true;\n\t}", "public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}", "private void moveLeft(){\n \n setGlobalLocation(getGlobalX() - speed, getGlobalY());\n animationSpeedLeft();\n }", "public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }", "public void moveLeft()\n\t{\n\t\tmoveLeft = true;\n\t}", "public void moveRight() {\n locX = locX + 1;\n }", "void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}", "@Test\n\tpublic final void nextPositionRightTest() {\n\t\tplayer.setRight(true);\n\t\tplayer.setMovSpeed(3.0);\n\t\tplayer.setMaxSpeed(2.0);\n\t\tplayer.getNextXPosition();\n\t\tassertEquals(player.getDx(), 2.0, 0.1);\n\t}", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveLeft() {\n\t\tsetPosX(getPosX() - steps);\n\t}", "private void turnLeft() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.NORTH;\n break;\n case WEST:\n direction = Position.Direction.SOUTH;\n break;\n case NORTH:\n direction = Position.Direction.WEST;\n break;\n case SOUTH:\n direction = Position.Direction.EAST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "public void moveLeft() {\n this.velocity = this.velocity.add(leftVelocity());\n }", "@Test\n\tpublic final void nextPositionLeftTest() {\n\t\tplayer.setLeft(true);\n\t\tplayer.setMovSpeed(3.0);\n\t\tplayer.setMaxSpeed(2.0);\n\t\tplayer.getNextXPosition();\n\t\tassertEquals(player.getDx(), -2.0, 0.1);\n\t}", "public void slideLeft() {\n turnLeft();\n move();\n turnRight();\n }", "public void moveAsteroidLeftToRight() {\t\r\n\t\tsetY(this.getY()+1);\r\n\t}", "public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }", "public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}", "public void moveRight() {\n Coordinate rightCoord = new Coordinate(getX() + 1, getY());\n handleMove(rightCoord, InteractionHandler.RIGHT);\n }", "public static void turnLeft() {\n LEFT_MOTOR.backward();\n RIGHT_MOTOR.forward();\n }", "public void moveRight(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.RIGHT;\n\t\tif(animation!=ANIMATION.MOVERIGHT) {\n\t\t\tanimation=ANIMATION.MOVERIGHT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.RIGHT;\n\t\tdirection=\"right\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=spd/2;\n\t\tvelY=0;\n\t}", "public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }", "private void moveRight(){\n if(getXFromCamera() > -10 && getXFromCamera() < 10){\n getWorld().moveCamera(speed);\n }\n setGlobalLocation(getGlobalX() + speed, getGlobalY());\n animationSpeedRight();\n }", "private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public void moveRight()\n {\n if (xPos == xBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive X because we are moving RIGHT! \n movementX = 0.5;\n movementY = 0;\n }", "public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}", "public void slideRight() {\n turnRight();\n move();\n turnLeft();\n }", "public void moveRight() {\n if (xcoor <= Game.widthOfGameBoard - movingSpeed) {\n xcoor = xcoor + movingSpeed * 2;\n }\n }", "static public boolean movePlayer(Player player, boolean right, boolean left, boolean down, boolean up) {\r\n\r\n int playerX = 0;\r\n int playerY = 0;\r\n int nX;\r\n int nY;\r\n //finding the player on the board\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if(player.getPosition() == board[i][j]) {\r\n playerX = i;\r\n playerY = j;\r\n }\r\n }\r\n }\r\n //making sure that the player stays on the board\r\n if(playerY == board[0].length-1 && right) {\r\n return false;\r\n }else if(playerY == 0 && left) {\r\n return false;\r\n }else if(playerX == 0 && up) {\r\n return false;\r\n }else if(playerX == board.length-1 && down) {\r\n return false;\r\n }else if(right) {\r\n nX = playerX;\r\n nY = playerY+1;\r\n if(board[nX][nY].west && board[playerX][playerY].east && !board[nX][nY].isOnFire){//if the tile will accept the player\r\n player.updateGetBackTiles(player.getPosition());\r\n player.setPosition(board[nX][nY]);\r\n return true;\r\n }\r\n }else if(left) {\r\n nX = playerX;\r\n nY = playerY-1;\r\n if(board[nX][nY].east && board[playerX][playerY].west && !board[nX][nY].isOnFire){\r\n player.updateGetBackTiles(player.getPosition());\r\n player.setPosition(board[nX][nY]);\r\n return true;\r\n }\r\n }else if(up) {\r\n nX = playerX-1;\r\n nY = playerY;\r\n if(board[nX][nY].south && board[playerX][playerY].north && !board[nX][nY].isOnFire){\r\n player.updateGetBackTiles(player.getPosition());\r\n player.setPosition(board[nX][nY]);\r\n return true;\r\n }\r\n }else if(down) {\r\n nX = playerX+1;\r\n nY = playerY;\r\n if(board[nX][nY].north && board[playerX][playerY].south && !board[nX][nY].isOnFire){\r\n player.updateGetBackTiles(player.getPosition());\r\n player.setPosition(board[nX][nY]);\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public void moveLeft() {\n \tif(!move.moveLeft()) {\n \t\tif(physinteractor(getX()-1,getY())) {\n \t\t\tmove.moveLeft();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }", "public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n movementY = 0;\n }", "private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public void moveRight() {\n if (!this.state.equals(\"onRightWall\")) {\n this.dir = 1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }", "public void moveLeft() {\n if (!this.state.equals(\"onLeftWall\")) {\n this.dir = -1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }", "public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "private void turnRight() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.SOUTH;\n break;\n case WEST:\n direction = Position.Direction.NORTH;\n break;\n case NORTH:\n direction = Position.Direction.EAST;\n break;\n case SOUTH:\n direction = Position.Direction.WEST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "public static void turnRight() {\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.backward();\n }", "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "private void LeftRightRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t\n\t}", "public void moveRight(){\n myRectangle.setX(myRectangle.getX() + PADDLE_SPEED);\n }", "public void moveLeft() {\n speedX -= (speedX > 0) ? acceleration * 2 : acceleration;\n if (speedX < -maxSpeed) {\n speedX = -maxSpeed;\n }\n direction = Direction.LEFT;\n }", "public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }", "public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }", "public void moveLeft(){\n myRectangle.setX(myRectangle.getX() - PADDLE_SPEED);\n }", "public void left() {\n if (x - movementSpeed > -55) {\r\n x = x - movementSpeed;\r\n }\r\n }", "public void moveRight() {\n\t\tif (x1 < 24 && x2 < 24 && x3 < 24 && x4 < 24) {\n\t\t\tclearPiece();\n\t\t\tx1 += 1;\n\t\t\tx2 += 1;\n\t\t\tx3 += 1;\n\t\t\tx4 += 1;\n\t\t\tsetPiece();\n\t\t\trepaint();\n\t\t}\n\t}", "public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}", "public void moveRight() {\n this.accelerateXR();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(74);\n this.setLoopCells(true);\n }", "public void drive(double speedLeft, double speedRight){\n \t\tsetRight(speedRight);\n \t\tsetLeft(speedLeft);\n \t}", "public void turnLeft();", "private void moveLeft(GObject bottom) {\r\n\t\tif(facingEast) {\r\n\t\t\tdouble x = player.getX();\r\n\t\t\tdouble y = player.getY();\r\n\t\t\tremove(player);\r\n\t\t\tplayer = new GImage(\"PlayerWest.png\");\r\n\t\t\tplayer.scale(.75);\r\n\t\t\tadd(player, x, y);\r\n\t\t\tfacingEast = false;\r\n\t\t}\r\n\t\tif(player.getX() > 5 && bottom != null)\r\n\t\t\tplayer.move(-PLAYER_X_MOTION, 0);\r\n\t}", "public void right () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.EAST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "private void moveUnitLeft()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }", "public void setMoveLeft(boolean TorF) {\n moveLeft = TorF;\n }", "public void moveRight() {\n this.velocity = this.velocity.add(rightVelocity());\n }", "public void right() {\n if (x + movementSpeed < 450) {\r\n x = x + movementSpeed;\r\n }\r\n }", "public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}", "public void moveRight() {\n \t\n \tif(!move.moveRight()) {\n \t\tif(physinteractor(getX()+1,getY())) {\n \t\t\tmove.moveRight();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \t//System.out.print(\"I moved right\" + getX() + getY());\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "public void moveRight() {\r\n speedX = 6;\r\n Texture r1 = changeImg (\"./graphics/characters/player/rightWalk1.png\");\r\n img = new Sprite (r1);\r\n if (centerX > startScrolling)\r\n bg.setBackX (bg.getBackX () + 6);\r\n bg.update ();\r\n }", "public void moveLeft(double dt) {\r\n double adjustedSpeed = this.mySpeed * dt;\r\n if (this.myPaddle.getUpperLeft().getX() - adjustedSpeed > 0) {\r\n myPaddle.getUpperLeft().setPosition(\r\n myPaddle.getUpperLeft().getX() - adjustedSpeed,\r\n myPaddle.getUpperLeft().getY());\r\n myPaddle.getLowerLeft().setPosition(\r\n myPaddle.getLowerLeft().getX() - adjustedSpeed,\r\n myPaddle.getLowerLeft().getY());\r\n myPaddle.getUpperRight().setPosition(\r\n myPaddle.getUpperRight().getX() - adjustedSpeed,\r\n myPaddle.getUpperRight().getY());\r\n myPaddle.getLowerRight().setPosition(\r\n myPaddle.getLowerRight().getX() - adjustedSpeed,\r\n myPaddle.getLowerRight().getY());\r\n this.thisOne.setRect(myPaddle);\r\n } else {\r\n myPaddle.getUpperLeft().setPosition(0, getUpperLeftY);\r\n myPaddle.getLowerLeft().setPosition(0, getUpperLeftY + 10);\r\n myPaddle.getUpperRight().setPosition(this.width, getUpperLeftY);\r\n myPaddle.getLowerRight().setPosition(this.width, getUpperLeftY + 10);\r\n this.thisOne.setRect(myPaddle);\r\n }\r\n }", "@Override\r\n\tpublic void setLeft(MoveLeftCommand left) {\n\r\n\t}", "private void moveShipRight()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit right\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = (currentPos + 1) % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - mapWidth + 1);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + 1);\r\n }\r\n }//end if\r\n\r\n //if secondPlayer move unit right\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = (currentPos + 1) % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - mapWidth + 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + 1);\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "public void calRightMove() {\n }", "private void move()\n\t{\n\t\tif(moveRight)\n\t\t{\n\t\t\tif(position.getX() + speedMovement <= width)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() +speedMovement+speedBoost);\n\t\t\t\tmoveRight = false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tif(moveLeft)\n\t\t{\n\t\t\tif(position.getX() - speedMovement > 0)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() -speedMovement - speedBoost + gravitationalMovement);\n\t\t\t\tmoveLeft = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * If a gravitational field is pushing the ship, set the movement accordingly\n\t\t */\n\t\tif(gravitationalMovement>0)\n\t\t{\n\t\t\tif(position.getX()+gravitationalMovement <= width)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(position.getX() + gravitationalMovement > 0)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t}", "public void moveRight()\n\t{\n\t\tx = x + STEP_SIZE;\n\t}", "public void moveRight() {\n this.position.addColumn(1);\n }", "@Override\n\tpublic void update(){\n\t\tif(right && !left)\n\t\t{\n\t\t\tif(player1.getX() < cm.getGameStateManager().getWidth() - player1.getBounds().getWidth())\n\t\t\t\tplayer1.setX(player1.getX()+8);\n\t\t}\n\t\tif(!right && left)\n\t\t{\n\t\t\tif(player1.getX() > 0)\n\t\t\t\tplayer1.setX(player1.getX()-8);\n\t\t}\n\t\t\n\t\tcheckBarrelBounds();\n\t\ttry{\n\t\t\tcheckPlayerCollision();\t\t\n\t\t\trefreshData();\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(\"no connection with server\");\n\t\t}\n\t\tplayer1.update();\n\t\tplayer2.update();\n\t\tplayerIndication.update();\n\t}", "public void turnLeft() { turn(\"LEFT\"); }", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "private void moveRight(GObject bottom) {\r\n\t\tif(!facingEast) {\r\n\t\t\tdouble x = player.getX();\r\n\t\t\tdouble y = player.getY();\r\n\t\t\tremove(player);\r\n\t\t\tplayer = new GImage(\"PlayerEast.png\");\r\n\t\t\tplayer.scale(.75);\r\n\t\t\tadd(player, x, y);\r\n\t\t\tfacingEast = true;\r\n\t\t}\r\n\t\tif(player.getX() < getWidth() - player.getWidth() - 5 && bottom != null)\r\n\t\t\tplayer.move(PLAYER_X_MOTION, 0);\r\n\t}", "public void moveRight(double dt) {\r\n double adjustedSpeed = this.mySpeed * dt;\r\n if (this.myPaddle.getUpperRight().getX() + adjustedSpeed < 800) {\r\n myPaddle.getUpperLeft().setPosition(\r\n myPaddle.getUpperLeft().getX() + adjustedSpeed,\r\n myPaddle.getUpperLeft().getY());\r\n myPaddle.getLowerLeft().setPosition(\r\n myPaddle.getLowerLeft().getX() + adjustedSpeed,\r\n myPaddle.getLowerLeft().getY());\r\n myPaddle.getUpperRight().setPosition(\r\n myPaddle.getUpperRight().getX() + adjustedSpeed,\r\n myPaddle.getUpperRight().getY());\r\n myPaddle.getLowerRight().setPosition(\r\n myPaddle.getLowerRight().getX() + adjustedSpeed,\r\n myPaddle.getLowerRight().getY());\r\n this.thisOne.setRect(myPaddle);\r\n } else {\r\n myPaddle.getUpperLeft().setPosition(800 - this.width, getUpperLeftY);\r\n myPaddle.getLowerLeft().setPosition(800 - this.width, getUpperLeftY + 10);\r\n myPaddle.getUpperRight().setPosition(800, getUpperLeftY);\r\n myPaddle.getLowerRight().setPosition(800, getUpperLeftY + 10);\r\n this.thisOne.setRect(myPaddle);\r\n }\r\n\r\n }", "public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}", "private void moveShipLeft()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n \tint currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "private void RightLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\t\n \t\t\n \t\n \t}\n \t}", "public void moveX(boolean isRight){\n if(isRight){\n this.x += velocity[0];\n } else{\n this.x -= velocity[0];\n }\n }", "private boolean moveLeft() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() - rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() - rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}", "public void moveRight()\n {\n if (!this.search_zone.isRightBorder(this.x_position))\n {\n this.x_position = (this.x_position + 1);\n }\n }", "public void move(String direction) {\n \n }", "public void moveRight() {\n speedX += (speedX < 0) ? acceleration * 2 : acceleration;\n if (speedX > maxSpeed) {\n speedX = maxSpeed;\n }\n direction = Direction.RIGHT;\n }", "public void move(boolean up, boolean down, boolean left, boolean right){\t\n\t\tif (up) {\n\t\t\tframesAccelerated++;\n\t\t\tspeed -= ACCELERATION;\n\t\t\tif (speed < MAX_SPEED)\n\t\t\t\tspeed = MAX_SPEED;\n\t\t} else {\n\t\t\tframesAccelerated = 0;\n\t\t}\n\t\tif (down) {\n\t\t\tspeed += BACKING_ACCELERATION;\n\t\t\tif (speed > MAX_BACKING_SPEED)\n\t\t\t\tspeed = MAX_BACKING_SPEED;\n\t\t}\n\t\t// Simulate turning the driving wheel by adding \"acceleration\" to\n\t\t// turning speed. We use ints for this since integer math is exact.\n\t\tif ((left && speed < 0) || (speed > 0 && right)) {\n\t\t\tturningFrame ++;\n\t\t\tif (turningFrame > FRAMES_FOR_TURNING){\n\t\t\t\tturningFrame = FRAMES_FOR_TURNING;\n\t\t\t}\n\t\t}\n\t\tif ((right && speed < 0) || (speed > 0 && left)) {\n\t\t\tturningFrame --;\n\t\t\tif (turningFrame < -FRAMES_FOR_TURNING) {\n\t\t\t\tturningFrame = -FRAMES_FOR_TURNING;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (Math.abs(turningFrame) == FRAMES_FOR_TURNING) {\n\t\t\tframesAtMaxTurning++;\n\t\t} else framesAtMaxTurning = 0;\n\t\t\n\t\t// Turn the wheels back if not turning.\n\t\tif (!left && !right) {\n\t\t\tif (turningFrame > 0) turningFrame --;\n\t\t\telse if (turningFrame < 0) turningFrame++;\n\t\t}\n\t\t\n\t\t// Slow down if not accelerating or reversing.\n\t\tif (!up && !down) {\n\t\t\tspeed *= FRICTION;\n\t\t}\n\t\t// Break\n\t\tif (speed > 0 && up) {\n\t\t\tspeed *= BACK_BREAK_FRICTION;\n\t\t} else if (speed < 0 && down) {\n\t\t\tspeed *= BREAK_FRICTION;\n\t\t}\n\t\t\n\t\t// Lower max turning speed if velocity is low.\n\t\tdouble maxTurnSpeed = vel.len2() / 0.01 * TURN_SPEED;\n\t\tif (maxTurnSpeed > TURN_SPEED)\n\t\t\tmaxTurnSpeed = TURN_SPEED;\n\t\tdouble angleChange = ((float)turningFrame / FRAMES_FOR_TURNING) * maxTurnSpeed;\n\t\t\n\t\t\n\t\t// Calculate front and back wheel positions.\n\t\tVector2 fWheel = temp;\n\t\tVector2 bWheel = temp2;\n\t\tfWheel.set((float)Math.cos(angle), (float)Math.sin(angle)).scl(WHEEL_DIST/2).add(pos);\n\t\tbWheel.set((float)Math.cos(angle), (float)Math.sin(angle)).scl(-WHEEL_DIST/2).add(pos);\n\t\t\n\t\t// Move the wheels forward in the car's direction. angleChange is added\n\t\t// to the front wheels since they are doing the turning.\n\t\tbWheel.add((float)Math.cos(angle)*speed, (float)Math.sin(angle)*speed);\n\t\tfWheel.add((float)Math.cos(angle+angleChange)*speed, (float)Math.sin(angle+angleChange)*speed);\n\t\t\n\t\tangle -= angleChange;\n\t\t\n\t\t// Scale down the velocity from previous frame.\n\t\tvel.scl(0.95f);\n\t\tif (vel.len2() > MAX_VEL) {\n\t\t\tvel.setLength2(MAX_VEL);\n\t\t}\n\t\t\n\t\t// Add this frames movement to the velocity.\n\t\tif (!locked) {\n\t\t\tvel.add(fWheel.add(bWheel).scl(0.5f).sub(pos));\n\t\t}\n\t\t\n\t\t// Add velocity to car and update position\n\t\toldPos.set(pos);\n\t\tpos.add(vel);\n\t\tcar.setPosition(pos.x, posAboveGround, pos.y);\n\t\t\n\t\ttestForWallCollision();\n\t}", "public abstract void turnLeft();", "public void move(String direction);", "private void RightRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t}\n\t}", "@Override\r\n\tpublic void setRight(MoveRightCommand right) {\n\r\n\t}", "private void moveRightLeft(int Width) {\n if (goingRight) {\n if (getX() + wolfWidth >= Width) turnAround();\n else setX(getX() + Width / 40);\n } else {\n if (getX() <= 0) turnAround();\n else setX(getX() - Width / 40);\n }\n }" ]
[ "0.752213", "0.7429651", "0.73746544", "0.73440135", "0.73134017", "0.72198313", "0.718159", "0.7161624", "0.7089616", "0.7084331", "0.7042111", "0.7019037", "0.7012901", "0.7012871", "0.69813055", "0.6973591", "0.6944132", "0.6886698", "0.68719363", "0.68614954", "0.67910546", "0.67807907", "0.6770359", "0.676534", "0.67629135", "0.6746597", "0.67413664", "0.6739059", "0.6718486", "0.6700734", "0.6690462", "0.6689626", "0.66670173", "0.66627234", "0.6655472", "0.66300076", "0.6625009", "0.66194814", "0.65973586", "0.65963995", "0.65914536", "0.6588055", "0.6581513", "0.65747166", "0.6570088", "0.65697074", "0.6562982", "0.6555819", "0.65536183", "0.6551517", "0.6535822", "0.65311235", "0.65289", "0.65284663", "0.65245473", "0.65237224", "0.6518258", "0.6500284", "0.6489052", "0.6454494", "0.6421132", "0.6411698", "0.6410459", "0.64095837", "0.6381515", "0.6378685", "0.6374411", "0.6374319", "0.6361401", "0.6355955", "0.6352533", "0.6347128", "0.63318425", "0.63265073", "0.6322205", "0.6321562", "0.6321153", "0.6313926", "0.63013977", "0.63013834", "0.63004124", "0.62982506", "0.6292397", "0.6278911", "0.627212", "0.6270168", "0.62697875", "0.6250636", "0.62487954", "0.6240897", "0.6237145", "0.62326926", "0.62227017", "0.6214697", "0.621346", "0.61990744", "0.6196579", "0.6191134", "0.6182171", "0.6176827" ]
0.6872745
18
A method to fire a bullet.
public void fire() { // A player cannot continually fire, there is a delay between each bullet. if (isAbleToFire) { audio.playMusic("Audio/Fire.wav"); if (multiBulletIsActive) { multiBulletFire(); } else if (speedBulletIsActive) { speedBulletFire(); } else if (quickFireBulletIsActive) { quickFireBulletFire(); } else { // Single fire. // Adjust bullet position to be fired from the center of the player. bulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, "Red")); } // Stop the player from being able to fire for 'ticksBetweemFire' amount. ticksToNextFire = currentTickCount + ticksBetweenFire; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }", "private void fire(GameEngine gameEngine) {\n Bullet bullet1 = gameEngine.getBulletEnemy();\n if (bullet1 == null) {\n return;\n }\n bullet1.init(this, positionX + imageWidth/2, positionY, 0);\n gameEngine.addGameObject(bullet1);\n gameEngine.playSound(1);\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "private void quickFireBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Pink\"));\n\t}", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}", "@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "private void shoot() {\n }", "private void shoot() {\n }", "public void shoot(int bulletLeft) {\n float xValue = canon.getX();\n float yValue = canon.getY();\n bullets.get(bulletLeft).setVisibility(View.VISIBLE);\n shootingMotion(bullets.get(bulletLeft), xValue, yValue);\n\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tshootBullet(arg0);\r\n\t\t\t}", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "public void fireBullet(int direction , int posX, int posY ){\n if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){\n int lowestbulletNo = 10;\n for( int i = 9; i > 0; i-- ){\n if ( bulletSpace.get(i).isEnabled() == false){\n lowestbulletNo = i;//find the first bullet in the gun barrol\n }\n }\n\n if ( lowestbulletNo < 10 ){\n bulletSpace.get(lowestbulletNo).setDirection(direction);\n bulletSpace.get(lowestbulletNo).setDistance(0);\n bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ;\n bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ;\n bulletSpace.get(lowestbulletNo).enabled(true);\n bulletSpace.get(lowestbulletNo).setRotation(direction+1);\n }\n }\n clockBullet.restart();\n }", "void shoot();", "public void fire() {\n \tAlienMissile.Slope slps[] = {AlienMissile.Slope.ShallowLeft, \n AlienMissile.Slope.Down,\n AlienMissile.Slope.ShallowRight};\n for (AlienMissile.Slope i : slps) {\n AlienMissile m = new AlienMissile(this, i);\n m.setBounce(true, health/5);\n list.add(m);\n }\n }", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "public abstract void fire();", "public abstract void fire();", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}", "public M_Bullet shoot() {\n Point leftCorner = this.getLocation();\n // get the center of the character\n int x = leftCorner.x;\n int y = leftCorner.y;\n Point dim = this.getDimensions();\n int h = dim.y;\n int w = dim.x;\n h = h / 2;\n w = w / 2;\n Point center = new Point(x + w, y + h);\n // get the velocity for the bullet\n Point vel = new Point(this.getDirection() * 3, 0);\n // set the enemy's shot cooldown to its shot interval.\n setShotCooldown(getShotInterval());\n // return the new bullet\n return new M_Bullet(center, this.getStrength(), vel, true);\n }", "@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}", "protected void handleFiring(double dt)\r\n\t{\r\n\t\t//Fire if the mouse button is pressed.\r\n\t\tif (input.getMouseButton(InputHandler.FIRE) && charge <= 0 && energy >= energyUse)\r\n\t\t{\r\n\t\t\tEntityBullet bullet = (EntityBullet)c.createEntity(w, EI.EntityBullet);\r\n\t\t\tdouble xDir = Math.cos(horizontalDir)*Math.cos(verticalDir),\r\n\t\t\t\t\tyDir = Math.sin(horizontalDir)*Math.cos(verticalDir), zDir = Math.sin(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble xDisp = shotX*Math.cos(verticalDir) - shotZ*Math.sin(verticalDir);\r\n\t\t\tdouble zDisp = shotX*Math.sin(verticalDir) + shotZ*Math.cos(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble yDisp = xDisp*Math.sin(horizontalDir) - shotY*Math.cos(horizontalDir);\r\n\t\t\txDisp = xDisp*Math.cos(horizontalDir) + shotY*Math.sin(horizontalDir);\r\n\t\t\t\r\n\t\t\t//t is to prevent bullets from spawning through walls.\r\n\t\t\t\r\n\t\t\tdouble t = w.getCollision().getBulletCollision(x, y, z, xDisp, yDisp, zDisp);\r\n\t\t\t\r\n\t\t\tif (t == 1)\r\n\t\t\t{\r\n\t\t\t\t//Create the bullet\r\n\t\t\t\tenergy -= energyUse;\r\n\t\t\t\tbullet.setPosition(x+xDisp, y+yDisp, z+zDisp);\r\n\t\t\t\tint vel = 60;\r\n\t\t\t\t\r\n\t\t\t\tbullet.setVelocity(vel*xDir, vel*yDir, vel*zDir);\r\n\t\t\t\tbullet.setDamage(1, 1);//damage, knockback\r\n\t\t\t\tbullet.setColor(0, 1, 0);\r\n\t\t\t\t\r\n\t\t\t\tbullet.setOwner(player);\r\n\t\t\t\t\r\n\t\t\t\tw.create(bullet);\r\n\t\t\t\t\r\n\t\t\t\tcharge = shotDelay;\r\n\t\t\t\t\r\n\t\t\t\t//Laser gun sound\r\n\t\t\t\tc.getSoundHandler().playSound(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Weapon recharging\r\n\t\tcharge -= dt;\r\n\t}", "private void ShootListener() {\n shoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (presenter.canShoot()) {\n shoot(presenter.getBullet());\n presenter.checkLastBullet();\n }\n\n }\n });\n }", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "public void shoot(float direction) {\n\t\tif(pause != 0) return;\n\t\tbullets.add(new Bullet(player.getPosition(),direction));\n\t\tpause = cooldown;\n\t}", "public void shoot(GraphicsContext graphicsContext) {\n TankBullet bullet = new TankBullet(new FixedCoordinates(getCoordinates().getX() + 17, getCoordinates().getY() + 100), gameEnded, graphicsContext);\n bullet.draw(graphicsContext);\n CoordinatesCache.getInstance().getEnemyBullets().add(bullet);\n }", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "private void shoot(float angle) {\n\t\tfloat arc = FIRING_ARC;\n\t\tif (weapon instanceof BanditTripleShot)\n\t\t\tarc *= 2;\n\t\t\t\n\t\tif (angle < FIRING_ARC && angle > - FIRING_ARC) {\n\t\t\t//System.out.println(\"BANDIT: shooting\");\n\t\t\tweapon.shoot();\n\t\t}\n\t}", "public void avatarShoot()\r\n\t{\r\n\t\tBullet avatarPew = avatar.shoot();\r\n\t\tif (avatarPew!= null)\r\n\t\t{\r\n\t\t\tbullets.add(avatarPew);\r\n\t\t}\r\n\t}", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "private void fire()\n {\n if (frames % 300 == 0 || frames == 0)\n {\n for(int i = 0; i <=6; i++)\n {\n FireBall fireBall = new FireBall();\n getWorld().addObject(fireBall, getX()+30, getY()); \n }\n }\n }", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Replace the next line with any behavior you would like\n\t\t\n\t}", "public void createBullet(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player != null) {\r\n Bullet bullet = new Bullet(x, y);\r\n bullet.player = name;\r\n playAudio(\"shoot\");\r\n }\r\n }", "public abstract void fire(Player holder);", "@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}", "public void shoot(Projectile p){\r\n\t\tp.facing = facing;\r\n\t\tp.x = x+(width/2)-(p.width/2);\r\n\t\tp.y = y+(height/2)-(p.height/2);\r\n\t\tp.fired = true;\r\n\t\tinAttackCooldown = true;\r\n\t}", "public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Bullet fireCannon1(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+110));\r\n\t}", "void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);", "public Bullet fireCannon0(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+225));\r\n\t}", "@Override\r\n public int fire() {\r\n if (this.getBulletsCount() == 0) {\r\n return 0;\r\n }\r\n this.setBulletsCount(this.getBulletsCount() - 10);\r\n return 10;\r\n }", "public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}", "public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}", "private void killBullet() {\r\n this.dead = true;\r\n }", "public void shootGun() {\n\t\tammo--;\n\t}", "public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }", "public void tick() {\r\n\r\n\t\tif (!targeted) {\r\n\t\t\tTarget = acquireTarget();\r\n\t\t} else if (timeSinceLastShot > firingSpeed) {\r\n\t\t\tangle = calculateAngle();\r\n\t\t\tshoot(Target);\r\n\t\t\ttimeSinceLastShot = 0;\r\n\t\t}\r\n\t\tif (Target == null || Target.isAlive() == false) {\r\n\t\t\ttargeted = false;\r\n\t\t}\r\n\r\n\t\ttimeSinceLastShot += Delta();\r\n\r\n\t\tfor (Dart dart : darts) {\r\n\t\t\tdart.tick();\r\n\t\t}\r\n\r\n\t\tdraw();\r\n\t}", "@Override\n\tpublic void collideWith(Bullet bullet) {\n\t\tbulletMoveForward(bullet);\n\t}", "public void shoot(double x, double y) {\n if (magazineCounter > 0 && !reloading) {\n magazineCounter--;\n new WeaponProjectile(new Point2D(x, y), mouseLocation(), projectileSpeed, testing);\n }\n }", "public void setBullet(Bullet bullet) {\r\n\t\tthis.bullet = bullet;\r\n\t}", "public void fireProjectile(String direction){\r\n\t\tif(name.equals(\"Robot\"))AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 5, \"laser\"));\r\n\t\telse AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 3, \"fireball\"));\r\n\t}", "public void damage(Bullet bullet)\n {\n\n\thp -= bullet.getDamage();\n\tcheckHP();\n }", "public Bullet fireCannon2(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+340));\r\n\t}", "public void onBulletHit(BulletHitEvent event) {\n RobotReference hitRobot;\n hitRobot = robots.get(event.getName());\n\n if (hitRobot.isTeammate()) {\n setTurnRight(90);\n setAhead(400);\n setChargerTarget();\n }\n }", "public void shoot(){\r\n\t\tif(numberOfArrows>0){\r\n\t\t\tnumberOfArrows--;\r\n\t\t\tPosition positionWumpus = b.getWumpus().getPosition();\r\n\t\t\tif (position.checkShoot(positionWumpus))\r\n\t\t\t\tb.getWumpus().kill();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"There are no more arrows.\");\r\n\t}", "public void fire(double power) {\n if (!shooting) {\n this.power = limit(power);\n shooting = true;\n }\n }", "public void gotHit(Bullet bullet) {\n\t\tif (bullet.getOwner() != this) {\n\t\t\tDefaultModeScoring.addHitScore(bullet.getOwner());\n\t\t\tAudioManager.startAudio(bullet.getSoundName());\n\t\t\tif (!isDead())\n\t\t\t\tAudioManager.startAudio(getSoundName());\n\t\t\tsetHp(getHp() - bullet.getDamage());\n\t\t\tif (bullet.getSpeed().x() > 0)\n\t\t\t\tgetPush().setX(getPush().x() + bullet.getPush());\n\t\t\telse\n\t\t\t\tgetPush().setX(getPush().x() - bullet.getPush());\n\t\t\tif (getHp() <= 0 && !isDead())\n\t\t\t\tdie();\n\t\t}\n\t}", "@Override\n public void attack(){\n int xBullet=0,yBullet=0;\n switch(direction){\n case 0:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()*3/4);\n break;\n case 1:\n xBullet=(int)(x+Sprite.python_left.getWidth()*3/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 2:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 3:\n xBullet=(int)(x+Sprite.python_left.getWidth()/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n }\n PythonBullet pythonBullet=new PythonBullet(xBullet,yBullet,board,Player.PLAYER_SPEED*1.5);\n pythonBullet.setDirection(direction);\n board.addBullets(pythonBullet);\n\n }", "public void placeAlienBullet() {\r\n\t\tif (alien != null) {\r\n\t\t\t// If the alien is large fires a bullet in a random direction\r\n\t\t\tif (alien.getSize() == 1 && ship != null) {\r\n\r\n\t\t\t\t// Create the alien bullet\r\n\t\t\t\tab = new AlienBullet(alien.getX(), alien.getY());\r\n\r\n\t\t\t\t// give the alien bullet a random direction and the bullet speed velocity,\r\n\t\t\t\t// then add as participant\r\n\t\t\t\tdouble r = (2 * Math.PI) * RANDOM.nextDouble();\r\n\t\t\t\tab.setVelocity(BULLET_SPEED, r);\r\n\t\t\t\taddParticipant(ab);\r\n\r\n\t\t\t\t// Sets the alien bullet to expire when it reaches the bullet duration time\r\n\t\t\t\t// limit\r\n\t\t\t\tnew ParticipantCountdownTimer(ab, \"expire\", BULLET_DURATION);\r\n\t\t\t}\r\n\r\n\t\t\t// If the alien is small fires a bullet aimed directly at the ship\r\n\t\t\tif (alien.getSize() == 0 && ship != null) {\r\n\t\t\t\tab = new AlienBullet(alien.getX(), alien.getY());\r\n\t\t\t\tab.setSpeed(BULLET_SPEED);\r\n\r\n\t\t\t\t// Aims the alien bullet directly at the ship\r\n\t\t\t\tdouble A = ship.getY() - alien.getY();\r\n\t\t\t\tdouble B = ship.getX() - alien.getX();\r\n\t\t\t\tdouble angle = Math.atan2(A, B);\r\n\t\t\t\tab.setVelocity(BULLET_SPEED, angle);\r\n\r\n\t\t\t\t// Add the alien bullet as a participant and then set it to expire when it\r\n\t\t\t\t// reaches the bullet duration time limit\r\n\t\t\t\taddParticipant(ab);\r\n\t\t\t\tnew ParticipantCountdownTimer(ab, \"expire\", BULLET_DURATION);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void onCreateBulletEvent() {\n\t\tcreateBullet();\n\t}", "private void shoot(GObject bottom, GObject bottomLeft, GObject topRight, GObject bottomRight, GObject topLeft) {\r\n\t\t//if(bullet == null && bottom != null && bottomLeft == null && topRight == null && bottomRight == null && topLeft == null) {\r\n\t\t\t{bullet = new GRect(BULLET_WIDTH, BULLET_HEIGHT);\r\n\t\t\tbullet.setFilled(true);\r\n\t\t\tbullet.setColor(Color.green);\r\n\t\t\tif(facingEast == true) {\r\n\t\t\t\tbulletVelocity = BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t} else {\r\n\t\t\t\tbulletVelocity = -BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() - BULLET_WIDTH, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void fire(TileEnvironment levelEnv) {\n\t\t\n\t}", "public static void shoot(double speed)\n\t{\n\t\trunIntake(0, 0, true, speed, speed, false);\n\t}", "public void tryToFire() {\n\t\tif (System.currentTimeMillis() - lastFire < firingInterval) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// if we waited long enough, create the shot entity, and record the time.\n\t\tlastFire = System.currentTimeMillis();\n\t\tShotEntity shot = new ShotEntity(this,\"shot.gif\",ship.getX()+10,ship.getY()-30, 1);\n\t\tentities.add(shot);\n\t}", "public void fire (double angle) {\n\t\tnew Projectile(sim, new Coord.Unique(model().position()), model().speedVector(), model.ownerId(), angle, model().type.firingRange);\n\t}", "public void performFly(){\n fb.fly();\n }", "public Bullet fire(Enemy target, long currentNanoTime){\n Bullet shot = new Bullet(super.getX(),super.getY(),this,target,currentNanoTime);\n System.out.println(shot.getDegree());\n super.setDirection(shot.getDegree());\n return shot;\n }", "abstract public void triggerExplosion();", "@Override\n public Bullet getBullet() {\n return new EnemyGunBullet1();\n }", "@Override\r\n\tpublic void fly() {\n\t\t\r\n\t}", "public void shoot() {\r\n\t\twhile (rounds > 1) {\r\n\t\t\trounds--;\r\n\t\t\tSystem.out.println(gunType + \" is shooting now\\n\" + rounds + \" \\nCLACK! CLACK! CLAK! CLAK! CLAK!\");\r\n\t\t\tif (rounds == 1) {\r\n\t\t\t\tSystem.out.println(\"Magazine's Empty!! \\nRELOAD!!\\nRELOAD!!!\\nRELAOD!!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "private void fire() {\n\t\tlog.finer(\"Firing node\");\n\t\t\n\t\tplay();\n\t\taddAnimation(new NodeEcho(parent, pos, diam, diam + 15));\n\t}", "public void firePS()\n\t{\n\t\tif(gameObj[1].size() > 0 && ((PlayerShip)gameObj[1].get(0)).getMissileCount() > 0)\n\t\t{\n\t\t\t/*Create a new Missile\n\t\t\t * and set its location equal \n\t\t\t * to the PlayerShip and speed greater than\n\t\t\t * that of the PlayerShip\n\t\t\t */\n\t\t\tMissile mis = new Missile(false);\n\t\t\tmis.setDirection(((PlayerShip)gameObj[1].get(0)).getLauncher().getDirection());\n\t\t\tmis.setLocation(gameObj[1].get(0).getLocation());\n\t\t\tmis.setSpeed(((PlayerShip)gameObj[1].get(0)).getSpeed() + 4);\t\n\t\t\t//call fireMissile method from PlayerShip to decrement missile count\n\t\t\t((PlayerShip)gameObj[1].get(0)).fireMissile();\t\n\t\t\t//add Missile to the game world\n\t\t\tgameObj[4].add(mis);\n\t\t\tSystem.out.println(\"PS has fired a misile\");\t\n\t\t}else\n\t\t\tSystem.out.println(\"A player ship is not currently spawned or no missiles are left\");\n\t}", "public void Fire()\n {\n Random random = new Random();\n int randNum = random.nextInt(limit);\n\n //Check to see if this bomb is dropped\n if(!owner.BehindInvader() && !this.Visible() && randNum == HIT_VAL)\n {\n //Set this bomb to visible\n this.Visible(true);\n this.PlaySound();\n this.x = this.owner.X();\n this.y = this.owner.Y();\n }\n\n //Check for collision with the defender\n if(Bomb.enemy.Visible() && this.Visible() && this.Collision(Bomb.enemy))\n {\n Bomb.enemy.Hit();\n this.Visible(false);\n }\n //Move the bomb down\n else if(this.Visible())\n {\n this.y++;\n\n //Check for collision with the floor\n if(this.y >= GameConstants.GROUND - this.imageHeight)\n {\n this.Visible(false);\n }\n //Check for collision with the barriers\n for(Barrier barrier : Bomb.barriers.Barriers())\n {\n for(BarrierBlock block : barrier.BarrierBlocks())\n {\n if(this.Collision(block))\n {\n block.Visible(false);\n //Removal could cause Comodification issue\n block.Damaged(true);\n this.Visible(false);\n //May not need this return\n return;\n }\n }\n }\n }\n }", "@Override\r\n\tpublic void execute() {\n\t\tm_FlywheelSubsystem.shoot();\r\n\t}", "private void placeBullet(double x, double y) {\r\n\t\tb = new Bullet(x, y);\r\n\t\taddParticipant(b);\r\n\t\tb.setVelocity(BULLET_SPEED, ship.getRotation());\r\n\t\tnew ParticipantCountdownTimer(b, \"expire\", BULLET_DURATION);\r\n\t}", "Bullet(int posX,int posY,int velX,int velY,int classOfObejct,int attack){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.classOfObejct = classOfObejct;\n this.attack = attack;\n\n }", "@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b.x, b.y, 3f * b.fout());\n Draw.reset();\n }", "@Override\n\tpublic void fire(Ball firer) {\n\t balls.add(firer);\n\t firer.setAbsorbed(true);\n\t setBalls();\n\t firer.setVx(0);\n\t firer.setVy(0);\n\t //somehow ball being fired out came back and hit!\n\t if (firer.equals(firingBall)) {\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t gb.resetScore();\n\t\tsuper.fire(firer);\n\t}", "@Override\n\tprotected void fireAddEnemyMissile(String launcherId, String destination,\n\t\t\tint damage, int flyTime){\n\t\t\n\t}", "@Override\n\tpublic synchronized void fire() {\n\t}", "public void shoot() {\n _shooterMotor1.set(_targetRPM);\n }", "public final native void fire(String type, Object detail, Object options) /*-{ fire(type, detail, options); }-*/;", "void doGun() {\r\n\t\tlong time = getTime()\r\n\t\t\t\t+ (int) Math\r\n\t\t\t\t\t\t.round((getRange(getX(), getY(), target.x, target.y) / (20 - (3 * firePower))));\r\n\t\tPoint2D.Double p = target.guessPosition(time);\r\n\r\n\t\t// offsets the gun by the angle to the next shot based on linear\r\n\t\t// targeting provided by the enemy class\r\n\t\tdouble gunOffset = getGunHeadingRadians()\r\n\t\t\t\t- (Math.PI / 2 - Math.atan2(p.y - getY(), p.x - getX()));\r\n\t\tsetTurnGunLeftRadians(normaliseBearing(gunOffset));\r\n\t}", "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }", "@Override\n\tvoid fly() {\n\t\tSystem.out.println(\"flying\");\n\t}", "@Override\n\tpublic void fly() {\n\t\t\n\t}", "boolean shootArrow(Direction dir, int power) throws\r\n PlayerKillsWumpusException, RecoverableException, PlayerKilledException;", "public void drawFire(Graphics g){\n \n if(player.getScore()>= initScore+1000){\n fireRecord.add(new Fire());\n initScore+=1000;\n } \n \n for(int i=0; i<fireRecord.size(); i++){\n Fire current = fireRecord.get(i);\n boolean test = current.test(player.getX(), player.getY(), player.getW(), player.getH(),-5); \n if(!delay){\n if(test){\n player.loseLife();\n delay = true; //If player loses a life, become invulnerable for a short period of time\n }\n }\n \n if (moveCount%5000 == 0){ /// Delay after taking dmg\n delay = false;\n } \n \n if(moveCount%speedAdj==0){ //Adjust Speed\n current.addX();\n current.addY();\n }\n g.drawImage(current.getImage(), current.getX(), current.getY(), this); \n } \n }" ]
[ "0.8667224", "0.8214", "0.7751054", "0.7725838", "0.77133226", "0.7711541", "0.76624453", "0.7653102", "0.7548972", "0.73098046", "0.72987664", "0.7243323", "0.7164095", "0.7105038", "0.70851034", "0.70737314", "0.70737314", "0.7056106", "0.70478326", "0.7038665", "0.70145994", "0.7011606", "0.7001577", "0.6982128", "0.6979908", "0.6979908", "0.6947218", "0.6932847", "0.6876316", "0.6868218", "0.68061787", "0.6709017", "0.6707607", "0.6692422", "0.6685072", "0.66759616", "0.6674878", "0.66728985", "0.6643109", "0.65914613", "0.65816766", "0.6578908", "0.65335983", "0.652881", "0.65285516", "0.650616", "0.6493549", "0.6488473", "0.6475628", "0.64459926", "0.6439796", "0.6439737", "0.6423257", "0.64170426", "0.638324", "0.6370228", "0.6368862", "0.6364987", "0.6363102", "0.6350458", "0.6333589", "0.6329677", "0.6312211", "0.6295659", "0.62877375", "0.6284073", "0.6265927", "0.62410843", "0.62395126", "0.623561", "0.6230638", "0.61975104", "0.6181746", "0.6152874", "0.6120982", "0.61088616", "0.60987186", "0.6084762", "0.6069109", "0.606424", "0.6045929", "0.6034826", "0.6030703", "0.60172856", "0.59982455", "0.5988289", "0.59737396", "0.5971482", "0.59677607", "0.59620154", "0.5950938", "0.59467894", "0.5940547", "0.59373814", "0.5936075", "0.59108496", "0.59101784", "0.5909313", "0.59048635", "0.5903244" ]
0.7753737
2
A method to check if the player is able to fire.
private void checkIsAbleToFire() { if (ticksToNextFire <= currentTickCount) { isAbleToFire = true; } else { isAbleToFire = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "boolean isAllowFriendlyFire();", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "public boolean isFireDamage();", "private boolean canSetOnFire(EntityPlayer player, World world) {\n if (player.dimension == -1) {\n return true;\n }\n\n int x = (int) player.posX;\n int y = (int) player.posY;\n int z = (int) player.posZ;\n\n for (int i = -5; i <= 5; i++) {\n for (int j = -5; j <= 5; j++) {\n for (int k = -5; k <= 5; k++) {\n if (world.getBlock(x + i, y + j, z + k).getMaterial() == Material.lava) {\n return true;\n }\n }\n }\n }\n\n return false;\n }", "private boolean canReach(Point positionEnemy, Point towerPosition) {\n return towerPosition.distance(positionEnemy) / Tile.TILE_WIDTH <= tower.getFireRange();\n }", "public boolean isPlayerDefeated() {\n if (player.getHealth() <= 0) {\n return true;\n }\n return false;\n }", "@Override\n public boolean canInteractWith(EntityPlayer player)\n {\n return teKeeper.isUsableByPlayer(player);\n }", "public boolean checkPlays(Player player){\n return true;\n }", "public boolean canFly() {\n\t\treturn !isEgg() && !isHatchling();\n\t}", "public boolean playerFire(int x, int y)\n\t{\n\t\tint result = aiGrid.fireAt(x, y);\n\t\tif (result == 0) {\n\t\t\t//miss\n\t\t\tSystem.out.println(\"\\nMISS\\n\");\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\tif (result == 1) {\n\t\t\t\t//hit\n\t\t\t\tSystem.out.println(\"\\nHIT\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//Already fired there\n\t\t\t\tSystem.out.println(\"Already fired here.\");\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}", "private boolean shouldAttackPlayer(EntityPlayer player) {\n ItemStack itemStack = player.inventory.armorInventory[3];\n if (itemStack != null && itemStack.getItem() == Item.getItemFromBlock(Blocks.pumpkin))\n return false;\n Vec3 lookVec = player.getLook(1.0F).normalize();\n Vec3 posVec = Vec3.createVectorHelper(this.posX - player.posX, this.boundingBox.minY + this.height / 2.0 - player.posY - player.getEyeHeight(), this.posZ - player.posZ);\n double distance = posVec.lengthVector();\n posVec = posVec.normalize();\n double dotProduct = lookVec.dotProduct(posVec);\n return dotProduct > 1.0 - 0.025 / distance ? player.canEntityBeSeen(this) : false;\n }", "public boolean checkIfPlayerHoldsExplosive () { return noOfExplosives > 0; }", "private void checkPlayerCondition()\n\t{\n\t\tif (playerExists() && PlayerAccess.getPlayer().isInExit())\n\t\t{\n\t\t\twon = true;\n\t\t}\n\t\tif (playerIsDead())\n\t\t{\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t\tif (playerHasLost())\n\t\t{\n\t\t\tlost = true;\n\t\t}\n\t\tif (runOutOfTime())\n\t\t{\n\t\t\tPlayerAccess.getPlayer().die();\n\t\t}\n\t}", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "public abstract boolean isPossible(Player p);", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "@Override\n public boolean canDo(World world, EntityPlayer player) {\n return getTimer(player, COOLDOWN_TIMER) == 0;\n }", "boolean isPlayable();", "private boolean playerDetection() {\n\t\tAxisAlignedBB axisalignedbb = new AxisAlignedBB(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).grow(DETECTION_RANGE);\n\t\tList<EntityPlayer> list = world.getEntitiesWithinAABB(EntityPlayer.class, axisalignedbb);\n\n\t\treturn !list.isEmpty();\n\t}", "public boolean isPlayerAllowedToInteractWith(Player player, Block block)\n \t{\n \t\treturn FactionsPlayerListener.canPlayerUseBlock(player, block, true);\n \t}", "public boolean canBeActivated(Player p) {\n if (p == null) throw new IllegalArgumentException(\"Argument is null\");\n int i;\n boolean retValue;\n\n retValue = true;\n for (i = 0; i < requirements.length && retValue; i++) {\n retValue = requirements[i].checkRequirement(p);\n }\n return retValue;\n }", "boolean isPlayableInGame();", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "public boolean isInvulnerable ( ) {\n\t\ttry {\n\t\t\treturn invokeSafe ( \"isInvulnerable\" );\n\t\t} catch ( NoSuchMethodError ex ) { // legacy\n\t\t\tPlayer handle = handleOptional ( ).orElse ( null );\n\t\t\t\n\t\t\treturn handle != null && EntityReflection.isInvulnerable ( handle );\n\t\t}\n\t}", "public void checkHealth()\n {\n if(player.getHealth() <= 0)\n {\n System.out.println(\"\\n\" + \"You are dead :(\" + \"\\n\");\n alive = false;\n }\n }", "static boolean canWin() throws GameActionException {\n\t\tfloat difference = 1000 - rc.getTeamVictoryPoints();\n\t\tif ((rc.getTeamBullets() / 10) >= difference) {\n\t\t\trc.donate(rc.getTeamBullets());\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "@java.lang.Override\n public boolean hasPlayer() {\n return player_ != null;\n }", "public boolean isBonusShotAllowed() {\n\t\treturn isLastFrame() && (isStrike() || isSpare());\n\t}", "public abstract void isUsedBy(Player player);", "@Override\n\tpublic boolean canRenderOnFire() {\n\t\treturn super.canRenderOnFire() && !getBreed().isImmuneToDamage(DamageSource.IN_FIRE);\n\t}", "public abstract boolean isPlayer();", "public boolean canRequestPower();", "boolean canFall();", "public boolean checkFire(float xTile, float yTile)\r\n/* 147: */ {\r\n/* 148:167 */ if ((this.mission) && (tileFireObjectives(xTile, yTile)))\r\n/* 149: */ {\r\n/* 150:169 */ this.fire[((int)xTile)][((int)yTile)] = 1;\r\n/* 151:170 */ this.burnPlaces -= 1;\r\n/* 152:171 */ if (this.burnPlaces == 0) {\r\n/* 153:173 */ return true;\r\n/* 154: */ }\r\n/* 155: */ }\r\n/* 156:177 */ return false;\r\n/* 157: */ }", "public boolean isAvailable(Player player) {\n return playerList.contains(player);\n }", "public boolean shouldHit() {\r\n\t\tif(getHandVal() < 17) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false; \r\n\t}", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "public boolean checkInteractConditions (Player p, boolean sendPlayer) {\r\n\t\tif (!isVisible())\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tif (getInventory().getViewers().size() > 0) {\r\n\t\t\tif (sendPlayer)\r\n\t\t\t\tMessaging.send(p, Term.ERROR_CURRENTLY_INVENTORY_OPENED.get());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tupdateInventory();\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean checkRequirements(PlayerBoard playerBoard);", "public boolean mayPass(Level level, int x, int y, Entity e) {\n\t\treturn e.canSwim(); // If the entity can swim (which only the player can), then it will allow that entity to pass.\n\t}", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntity.isTamed())\n\t\t\treturn false;\n\t\telse if (theEntity.isInWater())\n\t\t\treturn false;\n\t\telse if (!theEntity.onGround)\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntity.getOwner();\n\t\t\treturn var1 == null ? true\n\t\t\t\t\t: theEntity.getDistanceSqToEntity(var1) < 144.0D\n\t\t\t\t\t\t\t&& var1.getAITarget() != null ? false : isSitting;\n\t\t}\n\t}", "boolean checkFireEnergy(AbstractFirePokemon pokemon);", "public boolean isPlayer() {\n return player != null;\n }", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean shouldHeal(ActivePokemon p) {\n return p.hasStatus();\n }", "@Override\n public boolean shouldHeal(ActivePokemon p) {\n return p.hasStatus();\n }", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "private boolean isInputAllowed() {\n return entered && gameRenderer != null && gameRenderer.isDyingUnitAnimationCompleted() &&\n inGameContext != null && inGameContext.isActionCompleted() && inputAllowed && !blockAllInput;\n }", "public boolean hasPermissions(Player player) {\n\t\tif (!m_bHasPermissions && player.isOp())\n\t\t\treturn true;\n\t\telse if (m_bHasPermissions && m_PermissionHandler.has(player, \"lord.orbitalstrike\"))\n\t\t\treturn true;\n\t\telse {\n\t\t\tOrbitalStrike.sendMessage(player, \"You do not have permission to use this plugin.\");\n\t\t\tOrbitalStrike.logInfo(\"Player \" + player + \" does not have permission.\", 1);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "public boolean attempt(CommandSender sender) {\n boolean allowed = test(sender);\n if (!allowed) {\n sender.sendMessage(NO_PERMISSION);\n }\n return allowed;\n }", "private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }", "private void checkLoosePLayer(){\n if (hero.getHp()<=0){\n loose();\n }\n\n }", "public static boolean isWithinFireShield(Location loc) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"FireShield\");\n\t\treturn GeneralMethods.blockAbilities(null, list, loc, 0);\n\t}", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }", "public boolean checkPet() {\r\n return this.player.pet.getIsAlive();\r\n }", "private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "boolean isAchievable();", "private boolean canEnlist() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "public int canPoseBombAndStillBeSafe() {\n Player currentPlayer = state.getCurrentPlayer();\n List<Player> players = state.getPlayers();\n Maze maze = state.getMaze();\n Cell[][] tabcells = maze.getCells();\n for (Player p : players) {\n if (!p.equals(currentPlayer)) {\n if (canBombThisEnemyAndRunSafe(currentPlayer,p)) {\n return 1;\n }\n }\n }\n return 0;\n }", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public boolean isAlive(){\n if(this.hp <= 0){\n return false;\n }\n else{\n return true;\n }\n }", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isShooting()\r\n\t{\r\n\t\treturn false;\r\n\t}", "public boolean isSetPlayer() {\n return this.player != null;\n }", "public boolean getCanSpawnHere()\n {\n return this.isValidLightLevel() && super.getCanSpawnHere();\n }", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityShootBowEvent && new Random().nextDouble()<level/20 && ((EntityShootBowEvent)event).getEntity().hasPermission(\"rayken.unsafe\");\n }", "public boolean isUseableByPlayer(EntityPlayer p_70300_1_)\n {\n return true;\n }", "public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }", "public boolean canMine(EntityPlayer player, int X, int Y, int Z);", "private Boolean infect( Player player ){\n try {\n player.setHealth( false );\n return true;\n } catch (Exception e) {\n System.out.println(\"Something went wrong.\");\n return false;\n }\n }", "boolean hasMinigameAction();", "public boolean isShooting() {\n return shooting;\n }", "@Override\n\t\t\t\t\t\tpublic boolean isEnabled()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(requiresListeners\n\t\t\t\t\t\t\t\t&& !prisms.util.PrismsUtils.hasEventListeners(theSession,\n\t\t\t\t\t\t\t\t\ttoFire.name))\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}", "public boolean isFire() {\n return this.type == Type.FIRE;\n }", "public boolean shouldExecute() {\n return this.entity.getAttackTarget() != null && this.isBowInMainhand();\n }", "public void checkFirePlayer() {\n if (up > 0) {\r\n if (up == 1) {\r\n\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() - 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (up == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() - 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() - 100, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (down > 0) {\r\n if (down == 1) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() + 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n if (down == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() + 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() + 100, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (left > 0) {\r\n if (left == 1) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() - 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n if (left == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() - 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() - 100, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (right > 0) {\r\n if (right == 1) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() + 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n if (right == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() + 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() + 100, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //Controllo per il blocco di fuoco centrale\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n\r\n }\r\n\r\n }", "boolean hasPlayerBag();", "public boolean canTake(EntityPlayer player) {\n \t\treturn (outputIsReal || ((currentRecipe != null) &&\n \t\t (currentRecipe.canCraft(crafting, new CraftingSourceStation(entity, player))) &&\n \t\t (progress >= craftingTime) &&\n \t\t ((player != null) ||\n \t\t ((progress >= GlobalConfig.stationAutocraftDelaySetting.getValue()) &&\n \t\t hasRequirements()))));\n \t}", "public int isSafe(){\n int nbEnnemies = 0;\n List<Player> players = state.getPlayers();\n Player currentPlayer = state.getCurrentPlayer();\n for(Player p : players){\n if(!p.equals(currentPlayer)) {\n nbEnnemies += currentPlayerReachable(state.getCurrentPlayer(), p);\n //nbEnnemies += manhattan(currentPlayer, p); //naive version\n }\n }\n return nbEnnemies;\n }", "public boolean canSee ( Player player ) {\n\t\treturn extract ( handle -> handle.canSee ( player ) );\n\t}", "public static boolean isBusted(Player player) {\r\n if(total(player).min() > 21 && total(player).min() != 32) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean fireHumanPlayer(int x, int y){\n if (turnCode == 1) {\n return false;\n }\n if(computerPlayerBoard[x][y] == board.water.ordinal() && turnCode == 0) {\n computerPlayerBoard[x][y] = board.missed.ordinal();\n turnCode = 1;\n humanPlayerMiss++;\n //check ships if sunk\n return true;\n }\n if (computerPlayerBoard[x][y] == board.ship.ordinal() && turnCode == 0) {\n computerPlayerBoard[x][y] = board.hit.ordinal();\n turnCode = 1;\n humanPlayerHits++;\n //check ships if sunk\n //\n return true;\n }\n return false;\n }", "public boolean shouldExecute() {\n return ShulkerEntity.this.getAttackTarget() == null && ShulkerEntity.this.rand.nextInt(40) == 0;\n }", "public boolean fire(RobotInfo enemy) throws GameActionException {\n if (rc.getType() == RobotType.LUMBERJACK) return strike(enemy);\n if (rc.hasAttacked()) return false; //One such check (just in case)\n Direction toEnemy = rc.getLocation().directionTo(enemy.location);\n if (shouldFirePentad(enemy)){\n rc.firePentadShot(toEnemy);\n }\n else if(shouldFireTriad(enemy)){\n rc.fireTriadShot(toEnemy);\n }\n else{\n if (rc.canFireSingleShot()){\n rc.fireSingleShot(toEnemy);\n }\n }\n return false;\n }", "public static boolean onhand() {\n return InventoryManager.getCount(ItemPool.COMBAT_LOVERS_LOCKET) > 0\n || KoLCharacter.hasEquipped(ItemPool.COMBAT_LOVERS_LOCKET);\n }", "@Override\n public boolean isAlive() {\n return health > 0f;\n }", "public void playerHasInvincibility() {\n\t\tthis.state = canBeKilled;\n\t}", "public boolean isAdmissible();", "public boolean isBurning()\n {\n return this.fuel > 0 && this.canSmelt();\n }", "public void checkIfAlive()\n {\n if(this.health<=0)\n {\n targetable=false;\n monstersWalkDistanceX=0;\n monstersWalkDistanceY=0;\n this.health=0;\n new TextureChanger(this,0);\n isSelected=false;\n if(monsterType==1)\n {\n visible=false;\n }\n if(gaveResource==false) {\n int gameResource = Board.gameResources.getGameResources();\n Board.gameResources.setGameResources(gameResource + resourceReward);\n gaveResource=true;\n }\n }\n }" ]
[ "0.7306037", "0.7188345", "0.69950265", "0.6841507", "0.67332476", "0.6710541", "0.6679234", "0.66459554", "0.66406345", "0.66334385", "0.6620673", "0.6591944", "0.6587484", "0.65841424", "0.6553215", "0.6553215", "0.6553215", "0.6553215", "0.6553215", "0.6526305", "0.64643204", "0.64626765", "0.6462624", "0.6461042", "0.64573663", "0.64555824", "0.6451042", "0.6421463", "0.6417865", "0.6409016", "0.64036596", "0.63856816", "0.6369183", "0.6369015", "0.63531613", "0.6351922", "0.63225704", "0.6318125", "0.63135046", "0.63123286", "0.63022864", "0.63014096", "0.6298936", "0.6290461", "0.6284157", "0.6280248", "0.6268412", "0.6257031", "0.6240633", "0.6227688", "0.62221664", "0.62221664", "0.6221377", "0.62182313", "0.62182313", "0.6218114", "0.6217373", "0.62165874", "0.62130153", "0.620295", "0.6192009", "0.6187261", "0.6180282", "0.6171807", "0.61663026", "0.6165216", "0.616226", "0.6157642", "0.61548334", "0.6152679", "0.6151085", "0.6136397", "0.6135284", "0.6129123", "0.612168", "0.61185515", "0.61109936", "0.6109257", "0.6107998", "0.61006", "0.60969055", "0.6092574", "0.60888565", "0.60886353", "0.6079616", "0.6076307", "0.6073876", "0.6071113", "0.6064986", "0.60430366", "0.6040594", "0.60375196", "0.6037218", "0.6034694", "0.60338825", "0.60286754", "0.6020587", "0.60169786", "0.6013333", "0.6010734" ]
0.7448662
0
A method to fire blue color multiplebullets at once when the multibullet power up has been activated.
private void multiBulletFire() { bulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth, bulletHeight, "Blue")); bulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth, bulletHeight, "Blue")); bulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth, bulletHeight, "Blue")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "private void quickFireBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Pink\"));\n\t}", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Replace the next line with any behavior you would like\n\t\t\n\t}", "public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "private void UpdateBullets()\n\t {\n\t for(int i = 0; i < BulletList.size(); i++)\n\t {\n\t Bullet bullet = BulletList.get(i);\n\t \n\t // Move the bullet.\n\t bullet.Update();\n\t \n\t // checks if the bullet has it left the screen\n\t if(bullet.HasLeftScreen()){\n\t BulletList.remove(i);\n\t \n\t continue;\n\t }\n\t \n\t // checks if the bullet hit the enemy\n\t Rectangle BulletRectangle = new Rectangle((int)bullet.xCoord, (int)bullet.yCoord, bullet.BulletImage.getWidth(), bullet.BulletImage.getHeight());\n\t // Go trough all enemies.\n\t for(int j = 0; j < EnemyList.size(); j++)\n\t {\n\t Enemy eh = EnemyList.get(j);\n\n\t \n\t Rectangle EnemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\n\t // Checks whether the the bullet has hit the enemy\n\t if(BulletRectangle.intersects(EnemyRectangel))\n\t {\n\t // Bullet hit the enemy so we reduce his health.\n\t eh.Health -= Bullet.DamagePower;\n\t \n\t // Bullet was also destroyed so we remove it.\n\t BulletList.remove(i);\n\t \n\t \n\t }\n\t }\n\t }\n\t }", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "private void multi(EntityManager manager) {\r\n if (manager.getAmmo(4) == 0 && !testMode) {\r\n changeGuns(0, manager);\r\n manager.outOfAmmo();\r\n return;\r\n }\r\n\r\n float newRotationR = rotationZ - 90;\r\n float newRotationL = rotationZ + 90;\r\n float newRotationD = rotationZ + 180;\r\n\r\n float leftX = (float) Math.sin(Math.toRadians(newRotationL));\r\n float leftY = (float) -Math.cos(Math.toRadians(newRotationL));\r\n\r\n float rightX = (float) Math.sin(Math.toRadians(newRotationR));\r\n float rightY = (float) -Math.cos(Math.toRadians(newRotationR));\r\n\r\n float downX = (float) Math.sin(Math.toRadians(newRotationD));\r\n float downY = (float) -Math.cos(Math.toRadians(newRotationD));\r\n\r\n Shot leftshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, leftX * 100, leftY * 100, 150, 1.5f, 0, 1, 0, true, 200, false);\r\n\r\n Shot rightshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, rightX * 100, rightY * 100, 150, 1.5f, 0, 0, 1, true, 200, false);\r\n\r\n Shot upshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 100, forwardY * 100, 150, 1.5f, 1, 0, 0, true, 200, false);\r\n\r\n Shot downshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, downX * 100, downY * 100, 150, 1.5f, 1, 1, 0.82f, true, 200, false);\r\n\r\n manager.addEntity(leftshot);\r\n manager.addEntity(rightshot);\r\n manager.addEntity(upshot);\r\n manager.addEntity(downshot);\r\n if (!testMode) manager.updateAmmo(4, -1, false);\r\n manager.shotFired(4);\r\n }", "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }", "public void setBulletsFired(ArrayList<Bullet> bullets) {\n if(!bulletsFired.isEmpty()) {\n //System.out.println(bullets.get(0).getxPos() != bulletsFired.get(0).getxPos());\n this.bulletsFired = bullets;\n }\n }", "public void fire() {\n\n\t\t// A player cannot continually fire, there is a delay between each bullet.\n\t\tif (isAbleToFire) {\n\n\t\t\taudio.playMusic(\"Audio/Fire.wav\");\n\n\t\t\tif (multiBulletIsActive) {\n\n\t\t\t\tmultiBulletFire();\n\n\t\t\t} else if (speedBulletIsActive) {\n\n\t\t\t\tspeedBulletFire();\n\n\t\t\t} else if (quickFireBulletIsActive) {\n\n\t\t\t\tquickFireBulletFire();\n\n\t\t\t} else {\n\n\t\t\t\t// Single fire.\n\t\t\t\t// Adjust bullet position to be fired from the center of the player.\n\t\t\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition,\n\t\t\t\t\t\tbulletWidth, bulletHeight, \"Red\"));\n\t\t\t}\n\n\t\t\t// Stop the player from being able to fire for 'ticksBetweemFire' amount.\n\t\t\tticksToNextFire = currentTickCount + ticksBetweenFire;\n\t\t}\n\t}", "public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}", "private void renderGuiDoublePointsup(SpriteBatch batch)\n\t{\n\t\tfloat x = -15;\n\t\tfloat y = 30;\n\t\tfloat timeLeftDoublePointsup = \n\t\t\t\tworldController.timeLeftDoublePointsup;\n\t\tSystem.out.println(timeLeftDoublePointsup);\n\t\t\n\t\tif (timeLeftDoublePointsup > 0)\n\t\t{\n\t\t\t// Start icon fade in/out if the left power-up time\n\t\t\t// is less than 2 seconds. The fade interval is set\n\t\t\t// to 5 changes per second.\n\t\t\tif (timeLeftDoublePointsup <= 2)// 4\n\t\t\t{\n\t\t\t\tif (((int) (timeLeftDoublePointsup * 5) % 2) != 0)// 5 2 0\n\t\t\t\t{\n\t\t\t\t\tbatch.setColor(1, 1, 1, 0.5f);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tbatch.draw(Assets.instance.doublePoint.doublePoint,\n\t\t\t\t\tx, y, 50, 50, 100, 100, 0.35f, -0.35f, 0);\n\t\t\tbatch.setColor(1, 1, 1, 1);\n\t\t\tAssets.instance.fonts.defaultSmall.draw(batch, \"\", x + 60, y + 57);\n\t\t}\n\t}", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "private void ShootListener() {\n shoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (presenter.canShoot()) {\n shoot(presenter.getBullet());\n presenter.checkLastBullet();\n }\n\n }\n });\n }", "@Override\n public void explode(ArrayList<ScreenObject> level) {\n level.add(new Explosion(position.x, position.y, 100, 100,\n Explosion.expSubtype.YELLOW));\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tshootBullet(arg0);\r\n\t\t\t}", "public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.posX, tempBullet.posY,'\\n');\n if(tempBullet.detectBound()){\n bossBullets.remove(i);\n continue;\n }\n\n if(tempBullet.hitObject(Main.player) && !Main.player.invincible){\n Main.player.decreaseHealth(1);\n Main.player.posX = width / 2;\n Main.player.posY = height * 9 / 10;\n Main.player.invincible = true;\n Main.player.invincibleTime = millis();\n }\n\n }\n }", "@Override\n public void activatePowerUp() {\n myGame.getStatusDisplay().getMyProgress().updateScoreMultiplier(SCORE_MULTIPLIED_COUNTER);\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}", "public void hookLEDs() {\r\n\t\ttable.putBoolean(\"hooked\", true);\r\n\t}", "public void mousePressed(MouseEvent e){\n\t\t\t t.bullets.add(new Bullet(t.theta, t.lx, t.ly));\t\n\t\t}", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "public void powerOn() \n\t{\n\t\t//put active to true\n\t\tactive = true;\n\t\t\n\t\t// Set attached lever\n\t\tif (FactoryModPlugin.LEVER_OUTPUT_ENABLED) {\n\t\t\tsetActivationLever(true);\n\t\t}\n\t\t\n\t\t//lots of code to make the furnace light up, without loosing contents.\n\t\tFurnace furnace = (Furnace) factoryPowerSourceLocation.getBlock().getState();\n\t\tbyte data = furnace.getData().getData();\n\t\tItemStack[] oldContents = furnace.getInventory().getContents();\n\t\tfurnace.getInventory().clear();\n\t\tfactoryPowerSourceLocation.getBlock().setType(Material.BURNING_FURNACE);\n\t\tfurnace = (Furnace) factoryPowerSourceLocation.getBlock().getState();\n\t\tfurnace.setRawData(data);\n\t\tfurnace.update();\n\t\tfurnace.getInventory().setContents(oldContents);\n\t\t//reset the production timer\n\t\tcurrentProductionTimer = 0;\n\t}", "public void drawBullet(){\n if (classOfObejct == 0){\n colorMode(RGB,255,255,255);\n noStroke();\n fill(255,100,30);\n ellipse(posX, posY, 6, 9);\n fill(255,153,51);\n ellipse(posX,posY, 4, 6);\n fill(255,255,100);\n ellipse(posX,posY, 2, 3);\n fill(255,255,200);\n ellipse(posX,posY, 1, 1);\n stroke(1);\n }\n else{\n colorMode(RGB,255,255,255);\n noStroke();\n fill(51,153,255);\n ellipse(posX, posY, 8, 8);\n fill(102,178,255);\n ellipse(posX,posY, 6, 6);\n fill(204,229,255);\n ellipse(posX,posY, 4, 4);\n fill(255,255,255);\n ellipse(posX,posY, 2, 2);\n stroke(1);\n }\n }", "private void fire(GameEngine gameEngine) {\n Bullet bullet1 = gameEngine.getBulletEnemy();\n if (bullet1 == null) {\n return;\n }\n bullet1.init(this, positionX + imageWidth/2, positionY, 0);\n gameEngine.addGameObject(bullet1);\n gameEngine.playSound(1);\n }", "@Override\n\tpublic void onCreateBulletEvent() {\n\t\tcreateBullet();\n\t}", "@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\n }", "@Override\n public void update(GameContainer gc, StateBasedGame stateBasedGame, int delta) throws SlickException {\n timeSinceStart += delta;\n rtimeSinceStart += delta;\n Input input = gc.getInput();\n int mouseX = input.getMouseX();\n int mouseY = input.getMouseY();\n\n\n basicbulletSheet.rotate(90f);\n basicbulletSheet.setCenterOfRotation(16, 16);\n\n // Move this bullet\n for (int i = 0; i < bulletList.size(); i++) {\n bullet = bulletList.get(i);\n bullet.move();\n }\n\n //Add this tower to the this towerList\n if (Tower.isBasicPlaced()) {\n basicTowers.add(new BasicTower());\n System.out.println(basicTowers);\n Tower.setBasicPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isBomberPlaced()) {\n bomberTowers.add(new BomberTower());\n System.out.println(bomberTowers);\n Tower.setBomberPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isSniperPlaced()) {\n sniperTowers.add(new SniperTower());\n System.out.println(sniperTowers);\n Tower.setSniperPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isQuickPlaced()) {\n quickTowers.add(new QuickTower());\n System.out.println(quickTowers);\n Tower.setQuickPlaced(false);\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BasicTower basicTower1 : basicTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > basicTower1.rcoolDown + basicTower1.rlastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n basicTower1.basicClicked.setRotation((float) getTargetAngle(basicTower1.towerX,\n basicTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n basicTower1.basicClicked.setCenterOfRotation(32, 32);\n basicTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > basicTower1.coolDown + basicTower1.lastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n addNewBullet2(basicTower1.towerX, basicTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n basicTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BomberTower bomberTower1 : bomberTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > bomberTower1.rcoolDown + bomberTower1.rlastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n bomberTower1.bomberClicked.setRotation((float) getTargetAngle(bomberTower1.bombertowerX,\n bomberTower1.bombertowerY, enemy.getStartPosX(), enemy.getStartPosY()));\n bomberTower1.bomberClicked.setCenterOfRotation(32, 32);\n bomberTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > bomberTower1.coolDown + bomberTower1.lastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n addNewBullet2(bomberTower1.bombertowerX, bomberTower1.bombertowerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n bomberTower1.lastShot = timeSinceStart;\n }\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (SniperTower sniperTower1 : sniperTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > sniperTower1.rcoolDown + sniperTower1.rlastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n sniperTower1.sniperClicked.setRotation((float) getTargetAngle(sniperTower1.towerX,\n sniperTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n sniperTower1.sniperClicked.setCenterOfRotation(32, 32);\n sniperTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n if (timeSinceStart > sniperTower1.coolDown + sniperTower1.lastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n addNewBullet2(sniperTower1.towerX, sniperTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 50);\n sniperTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (QuickTower quickTower1 : quickTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > quickTower1.rcoolDown + quickTower1.rlastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n quickTower1.quickClicked.setRotation((float) getTargetAngle(quickTower1.towerX,\n quickTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n quickTower1.quickClicked.setCenterOfRotation(32, 32);\n quickTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n\n if (timeSinceStart > quickTower1.coolDown + quickTower1.lastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n radiusVisited = true;\n addNewBullet2(quickTower1.towerX, quickTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 5);\n quickTower1.lastShot = timeSinceStart;\n }\n }\n\n }\n }\n\n //A spawn is in progress\n if (spawninProgress) {\n timePassedEnemy += delta;\n if (timePassedEnemy > 800) {\n enemies.add(new Enemy());\n enemySpawns++;\n timePassedEnemy = 0;\n }\n }\n //When enough enemies has spawned, stop the spawninProgress\n if (enemySpawns == enemyCounter) {\n spawninProgress = false;\n //hasbeenDead = false;\n enemySpawns = 0;\n enemyCounter++;\n }\n\n //When no more enemies on maps\n if (enemies.size() == 0) {\n waveinProgress = false;\n startWaveCount = 0;\n }\n\n //Start a new level when there's no more enemies on the map\n if (loadMap.MAP[mouseY / w][mouseX / w] == 16) {\n if (input.isMousePressed(0) && startWaveCount == 0 && !waveinProgress) {\n startWaveCount++;\n if (startWaveCount == 1 && enemies.size() == 0 && !waveinProgress) {\n waveinProgress = true;\n gc.resume();\n spawninProgress = true;\n currentLevel++;\n }\n }\n }\n\n //For each new level, increase the HP of each enemy\n if (currentLevel < currentLevel + 1 && !waveinProgress) {\n for (Enemy enemyHP : enemies) {\n if (enemyHP.getStartPosX() <= 0 && enemyHP.getHP() < enemyHP.startHP + currentLevel) {\n enemyHP.setHP(enemyHP.getHP() + currentLevel);\n }\n }\n }\n\n\n //For each enemies, if enemies has finished their way, decrease player HP\n //and set them inactive\n for (Enemy enemyList : enemies) {\n if (enemyList.counter >= enemyList.path.getLength() - 1) {\n player.decreaseLife();\n bulletCount = 0;\n enemyList.isActive = false;\n }\n\n //If enemies' hp is zero, set them inactive and remove from the list\n if (enemyList.getHP() <= 0) {\n enemyList.isActive = false;\n bulletCount = 0;\n player.addCredits(20);\n }\n enemyList.update(gc, stateBasedGame, delta);\n }\n for (int i = 0; i < enemies.size(); i++) {\n if (!enemies.get(i).isActive) {\n enemies.remove(enemies.get(i));\n }\n }\n\n //For all objects, update\n for (GameObject obj : objects)\n try {\n obj.update(gc, stateBasedGame, delta);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //Go to Menu\n if (gc.getInput().isKeyPressed(Input.KEY_ESCAPE)) {\n gc.getInput().clearKeyPressedRecord();\n stateBasedGame.enterState(2);\n }\n\n\n }", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "private void tankWillShoot(Graphics2D g2d, GameState state) {\n if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() > 0 && state.getGunType() % 2 == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfCannonBullet(tankObject.getNumOfCannonBullet() - 1);\n if (tankObject.getCannonLevel() == 1) {\n state.getMissiles().add(new Missile(state, 15));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (tankObject.getCannonLevel() == 2) {\n state.getMissiles().add(new Missile(state, 30));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n } else if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() == 0 && state.getGunType() % 2 == 1) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n state.setMouseClicked(false);\n }\n for (Missile missile : state.getMissiles()) {\n missile.paint(g2d, state);\n }\n if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() > 0 && state.getGunType() % 2 == 0) {\n if (numOfRenderBullet1 == 0 && tankObject.getMachineGunLevel() == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 20));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet2 == 0 && tankObject.getMachineGunLevel() == 2) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 30));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet1 <= 7) {\n numOfRenderBullet1++;\n }\n if (numOfRenderBullet1 == 7) {\n numOfRenderBullet1 = 0;\n }\n if (numOfRenderBullet2 <= 3) {\n numOfRenderBullet2++;\n }\n if (numOfRenderBullet2 == 3) {\n numOfRenderBullet2 = 0;\n }\n }\n else if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() == 0 && state.getGunType() % 2 == 0) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n }\n for (Bullet bullet : state.getBullets()) {\n bullet.paint(g2d, state);\n }\n }", "private void multiClassActionPerform() {\n\t\tint amount = 4;\n\n\t\tInteger multiClasses = (Integer) multiClass.getSelectedItem();\n\t\tfor (int i = 0; i < multiClasses; i++) {\n\n\t\t\tcharacterClass[i].setPreferredSize(new Dimension(1000, 100));\n\t\t\tcharacterClass[i].setFont(f);\n\n\t\t\tclassLevel[i].setPreferredSize(new Dimension(500, 100));\n\t\t\tclassLevel[i].setFont(f);\n\n\t\t\tclassLabel[i].setPreferredSize(new Dimension(400, 100));\n\t\t\tclassLabel[i].setFont(f);\n\n\t\t\tlevelLabel[i].setPreferredSize(new Dimension(400, 100));\n\t\t\tlevelLabel[i].setFont(f);\n\n\t\t\tcontainer.add(classLabel[i]);\n\t\t\tcontainer.add(characterClass[i]);\n\t\t\tcontainer.add(levelLabel[i]);\n\t\t\tcontainer.add(classLevel[i]);\n\t\t\tcharacterLevel += (Integer) classLevel[i].getSelectedItem();\n\t\t}\n\n\t\twhile (multiClasses != amount && amount > multiClasses) {\n\t\t\tamount--;\n\t\t\tcontainer.remove(classLabel[amount]);\n\t\t\tcontainer.remove(characterClass[amount]);\n\t\t\tcontainer.remove(classLevel[amount]);\n\t\t\tcontainer.remove(levelLabel[amount]);\n\t\t}\n\t\tcontainer.setPreferredSize(new Dimension(2400, 120 + (100 * amount)));\n\t\treference.validate();\n\t\treference.repaint();\n\t\treference.revalidate();\n\n\t}", "public BubblePowerUp(float xpos, float ypos, CopyOnWriteArrayList<Bubble> bubbleList) {\n super(xpos, ypos);\n this.bubbles = bubbleList;\n }", "private void specialPowersPhase() {\n \tSpecialCharacter tmpPiece = null;\n \tTerrain theHex = null;\n\n for (Player p : playerList) {\n pause();\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Game.getRackGui().setOwner(player);\n }\n });\n /*\n * Loops through all of the hexes that the player has pieces on.\n * If one of the pieces is either Master Thief or Assassin Primus, perform their\n * special ability.\n */\n for (Terrain hex : player.getHexesWithPiece()) {\n for (Piece pc : hex.getContents(player.getName()).getStack()) {\n if (pc.getName().equals(\"Master Thief\") || pc.getName().equals(\"Assassin Primus\")) { \n ((Performable)pc).specialAbility();\n if (MasterThief.isReturnPiece() || AssassinPrimus.isReturnPiece()) {\n \ttmpPiece = (SpecialCharacter)pc;\n \ttheHex = hex;\n \ttmpPiece.returnToBank(theHex);\n \tbreak;\n }\n }\n }\n }\n player.flipAllDown();\n }\n ClickObserver.getInstance().setPlayerFlag(\"\");\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n DiceGUI.getInstance().setFaceValue(0);\n DiceGUI.getInstance().cover();\n }\n });\n }", "public void onBulletHit(BulletHitEvent event) {\n RobotReference hitRobot;\n hitRobot = robots.get(event.getName());\n\n if (hitRobot.isTeammate()) {\n setTurnRight(90);\n setAhead(400);\n setChargerTarget();\n }\n }", "private void killBullet() {\r\n this.dead = true;\r\n }", "private void activeDrawEffects() {\n }", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif (pl.NumBullets > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates shoot and adds the to the list\n\t\t\t\t\t\t\tpl.Shoot(); \n\t\t\t\t\t\t\tBulletFired = true; \n\t\t\t\t\t\t\tbul = new Bullet(pl.GetXCoord() + 240,pl.GetYCoord() + 70); \n\t\t\t\t\t\t\tBulletList.add(bul); \n\t\t\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\telse if (pl.NumBullets <= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGameOn = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//actions performed when mouse button 2 is pressed \t\n\t\t\t\t\t if (e.getButton() == MouseEvent.BUTTON3)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tif (pl.NumRockets > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates rockets and adds the to the list\n\t\t\t\t\t\t\tpl.FireRocket(); \n\t\t\t\t\t\t\tRocketFired = true; \n\t\t\t\t\t\t\trock = new Rocket(pl.GetXCoord() + 200,pl.GetYCoord() + 60); \n\t\t\t\t\t\t\tRocketList.add(rock); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}", "public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\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 * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}", "@Override\n public void update(float dt) {\n //bulletUpdate(dt,b2body);\n stateTime += dt;\n bulletUpdate(b2body,bulletSprite1);\n bulletUpdate(b2body2,bulletSprite2);\n bulletUpdate(b2body3,bulletSprite3);\n\n\n\n }", "public void raise(){\r\n elevatorTalon1.set(basePWM);\r\n elevatorTalon2.set(basePWM * pwmModifier);\r\n }", "public void firePartDeactivated(final IWorkbenchPartReference ref) {\n Object[] array = getListeners();\n for (int i = 0; i < array.length; i++) {\n final IPartListener2 l = (IPartListener2) array[i];\n fireEvent(new SafeRunnable() {\n\n @Override\n public void run() {\n l.partDeactivated(ref);\n }\n }, l, ref, //$NON-NLS-1$\n \"deactivated::\");\n }\n }", "@Override\r\n public void paintWeapon(Graphics g, Player p, ArrayList <Enemies> e) {\r\n\r\n paintProjectile(e, g, p);\r\n deleteProjectiles();\r\n }", "void willSpawnAfterDeath(List<String> powerupsInHand) throws RemoteException;", "protected void doMoreLight() {\r\n\t\talpha = Math.min(1f, alpha + 0.05f);;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b.x, b.y, 3f * b.fout());\n Draw.reset();\n }", "public void tick() {\r\n if(a1 < 240){ //This fades in the colors.\r\n a1+=4;\r\n }\r\n if(a2 < 250){ //This fades in the colors.\r\n a2+=3;\r\n }\r\n\r\n\r\n resetCursor = true;\r\n for (Button button : buttons) {\r\n if (button.checkButtonHovered(game)) {\r\n resetCursor = false;\r\n }\r\n }\r\n for (Button missionButton : missionButtons) {\r\n if (missionButton.checkButtonHovered(game)) {\r\n resetCursor = false;\r\n }\r\n }\r\n\r\n if(resetCursor) {\r\n game.setCursor(true);\r\n }\r\n\r\n if(buttons.size()>0&&buttons.get(0).checkButtonHovered(game)&&MouseManager.mousePressed){\r\n PlayMusic.playSound(game,Assets.buttonClick);\r\n State.setState(new State_StartScreen(game));\r\n }\r\n\r\n if(currentMission == 1&&buttons.size()>2){\r\n buttons.get(2).setClickable(false);\r\n }else if(buttons.size()>2){\r\n buttons.get(2).setClickable(true);\r\n }\r\n if((currentMission==data.numOfUnlockedMissions||currentMission == Missions.NUMBER_OF_MISSIONS)&&buttons.size()>1){\r\n buttons.get(1).setClickable(false);\r\n }else if(buttons.size()>1){\r\n buttons.get(1).setClickable(true);\r\n }\r\n\r\n if(buttons.size()>1&&buttons.get(1).checkButtonHovered(game)&&MouseManager.mousePressed){\r\n if(currentMission<Missions.NUMBER_OF_MISSIONS&&currentMission<data.numOfUnlockedMissions){\r\n buttons = new ArrayList<>();\r\n moveToNextMission = 1;\r\n moving = true;\r\n PlayMusic.playSound(game,Assets.buttonClick);\r\n }\r\n }\r\n if(buttons.size()>2&&buttons.get(2).checkButtonHovered(game)&&MouseManager.mousePressed){\r\n if(currentMission>1){\r\n buttons = new ArrayList<>();\r\n moveToNextMission = -1;\r\n moving = true;\r\n PlayMusic.playSound(game,Assets.buttonClick);\r\n }\r\n }\r\n if(buttons.size()>3 && MouseManager.mousePressed && buttons.get(3).checkButtonHovered(game)){\r\n PlayMusic.playSound(game,Assets.buttonClick);\r\n State.setState(new State_Mission(game,data,currentMission));\r\n }\r\n if(moving){\r\n MouseManager.mousePressed = false;\r\n KeyboardManager.keyPressed = false;\r\n if(moveToNextMission == -1) {\r\n if((currentWire-1+adjust)%3!=0) {\r\n if (wireDir[currentWire-1] == 1) {\r\n if(amtMoved < wireLengths[currentWire-1]){\r\n screenOffsetX+=35;\r\n amtMoved+=35;\r\n }else{\r\n amtMoved = 0;\r\n currentWire--;\r\n adjust = 1;\r\n }\r\n } else if (wireDir[currentWire-1] == 2) {\r\n if(amtMoved < -1*wireHeights[currentWire-1]){\r\n screenOffsetY-=35;\r\n amtMoved+=35;\r\n }else{\r\n amtMoved = 0;\r\n currentWire--;\r\n adjust = 1;\r\n }\r\n } else if (wireDir[currentWire-1] == 3) {\r\n if(amtMoved < -1* wireLengths[currentWire-1]){\r\n screenOffsetX-=35;\r\n amtMoved+=35;\r\n }else{\r\n currentWire--;\r\n amtMoved = 0;\r\n adjust = 1;\r\n }\r\n } else {\r\n if(amtMoved < wireHeights[currentWire-1]){\r\n screenOffsetY+=35;\r\n amtMoved+=35;\r\n }else{\r\n adjust = 1;\r\n currentWire--;\r\n amtMoved=0;\r\n }\r\n }\r\n }else{\r\n currentMission--;\r\n moving = false;\r\n reAddButtons = true;\r\n moveToNextMission = 0;\r\n adjust = 0;\r\n }\r\n }else{\r\n if((currentWire+1-adjust)%3!=0) {\r\n if (wireDir[currentWire] == 1) {\r\n if(amtMoved < wireLengths[currentWire]){\r\n screenOffsetX-=35;\r\n amtMoved+=35;\r\n }else{\r\n amtMoved = 0;\r\n currentWire++;\r\n adjust = 1;\r\n }\r\n } else if (wireDir[currentWire] == 2) {\r\n if(amtMoved < -1*wireHeights[currentWire]){\r\n screenOffsetY+=35;\r\n amtMoved+=35;\r\n }else{\r\n amtMoved = 0;\r\n currentWire++;\r\n adjust = 1;\r\n }\r\n } else if (wireDir[currentWire] == 3) {\r\n if(amtMoved < -1* wireLengths[currentWire]){\r\n screenOffsetX+=35;\r\n amtMoved+=35;\r\n }else{\r\n currentWire++;\r\n amtMoved = 0;\r\n adjust = 1;\r\n }\r\n } else {\r\n if(amtMoved < wireHeights[currentWire]){\r\n screenOffsetY-=35;\r\n amtMoved+=35;\r\n }else{\r\n adjust = 1;\r\n currentWire++;\r\n amtMoved=0;\r\n }\r\n }\r\n }else{\r\n currentMission++;\r\n moving = false;\r\n reAddButtons = true;\r\n moveToNextMission = 0;\r\n adjust = 0;\r\n }\r\n }\r\n }\r\n }", "@Override\r\n\tpublic void update() {\n\t\tAlly.update();\r\n\t\tEnemy.update();\r\n\t\tfor(int i = 0 ; i < GroundList.size();i++){\r\n\t\t\tif(GroundList.get(i).kill) {\r\n\t\t\t\tGroundList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < BarelList.size(); i++) {\r\n\t\t\tif(BarelList.get(i).kill) {\r\n\t\t\t\tBarelList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < WoodList.size(); i++) {\r\n\t\t\tif(WoodList.get(i).kill) {\r\n\t\t\t\tWoodList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < FireBallList.size(); i++) {\r\n\t\t\tif(FireBallList.get(i).kill) {\r\n\t\t\t\tFireBallList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < BulletList.size(); i++) {\r\n\t\t\tif(BulletList.get(i).kill) {\r\n\t\t\t\tBulletList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0 ; i < GroundList.size();i++){\r\n\t\t\tGroundList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0 ; i < BarelList.size(); i++) {\r\n\t\t\tBarelList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < BulletList.size(); i++) {\r\n\t\t\tBulletList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < FireBallList.size(); i++) {\r\n\t\t\tFireBallList.get(i).update();\r\n\t\t}\r\n\t\tfor(int i = 0; i < WoodList.size(); i++) {\r\n\t\t\tWoodList.get(i).update();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(GamePanel.updateTimes%60 == 0) {\r\n\t\t\tEnemy.PushEntity(2, new Vector2f(width*1/2, height/4),enemy);\r\n\t\t}\r\n\t\tfor(int i = 0; i < AllyDeadList.size(); i++) {\r\n\t\t\tAlly.entityList.remove(AllyDeadList.get(i)-i);\r\n\t\t}\r\n\t\tfor(int i = 0; i < EnemyDeadList.size(); i++) {\r\n\t\t\tEnemy.entityList.remove(EnemyDeadList.get(i)-i);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tAllyDeadList.clear();\r\n\t\tEnemyDeadList.clear();\r\n\t\tfor(int i = 0; i < Ally.entityList.size(); i++) {\r\n\t\t\tif(Ally.entityList.get(i).returnHealth() <= 0) {\r\n\t\t\t\tAllyDeadList.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < Enemy.entityList.size(); i++) {\r\n\t\t\tif(Enemy.entityList.get(i).returnHealth() <= 0) {\r\n\t\t\t\tEnemyDeadList.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void dropHandler() {\n if (tickSpeed < 0) {\n if((int)random(1,6) == 1){ //every 6 medkits the handler drops a minigun\n Sprite mg = new Sprite(minigun);\n mg.moveToPoint(random(0,2048), random(0, 2048)); //moves drop to random point\n minigunDrop.add(mg);\n tickSpeed = (int)random(100,500);\n }else if((int)random(1,4) == 1){ //every 4 medkits the handler drops a coilgun\n Sprite cg = new Sprite(coilgun);\n cg.moveToPoint(random(0,2048), random(0,2048)); //moves drop to random point\n coilgunDrop.add(cg);\n tickSpeed = (int)random(100,500); //changes \n }\n else {\n \n \n Medkit hp = new Medkit();\n hp.med.moveToPoint(random(0, 2048), random(0, 2048));\n\n health.add(hp);\n\n tickSpeed = (int)random(100,500);\n }\n }\n tickSpeed--;\n for (Medkit hp: health) {\n hp.med.display();\n hp.timer--;\n\n }\n for (Sprite mg: minigunDrop){\n mg.display();\n }\n for (Sprite cg: coilgunDrop){\n cg.display();\n }\n // e.forward(5);\n}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tArrayList msDOWN = GameCraft.getBulletDOWN();\r\n\t\tfor (int i = 0; i < msDOWN.size(); i++) {\r\n\t\t\tBulletDOWN m = (BulletDOWN) msDOWN.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveDOWN();\r\n\t\t\telse msDOWN.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msUP = GameCraft.getBulletUP();\r\n\t\tfor (int i = 0; i < msUP.size(); i++) {\r\n\t\t\tBulletUP m = (BulletUP) msUP.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveUP();\r\n\t\t\telse msUP.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msLEFT = GameCraft.getBulletLEFT();\r\n\t\tfor (int i = 0; i < msLEFT.size(); i++) {\r\n\t\t\tBulletLEFT m = (BulletLEFT) msLEFT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveLEFT();\r\n\t\t\telse msLEFT.remove(i);\r\n\t\t}\r\n\r\n\t\tArrayList msRIGHT = GameCraft.getBulletRIGHT();\r\n\t\tfor (int i = 0; i < msRIGHT.size(); i++) {\r\n\t\t\tBulletRIGHT m = (BulletRIGHT) msRIGHT.get(i);\r\n\t\t\tif (m.isVisible()) \r\n\t\t\t\tm.moveRIGHT();\r\n\t\t\telse msRIGHT.remove(i);\r\n\t\t}\r\n\t\t\r\n\t\tArrayList msEnemys = GameCraft.getEnemys();\r\n\t\tif(moveamount >= 150){\r\n\t\t\tfor (int i = 0; i < msEnemys.size(); i++) {\r\n\t\t\t\tEnemys m = (Enemys) msEnemys.get(i);\r\n\t\t\t\tif (m.isVisible()){\r\n\t\t\t\t\tm.moveMe();\r\n\t\t\t\t}else{ \r\n\t\t\t\t\tmsEnemys.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmoveamount = 0;\r\n\t\t}\r\n\t\tmoveamount++;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(int a = 0; a < msDOWN.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletDOWN bdown = (BulletDOWN) msDOWN.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bdown.getX();\r\n\t\t\t\tint ybul = bdown.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msRIGHT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletRIGHT bright = (BulletRIGHT) msRIGHT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bright.getX();\r\n\t\t\t\tint ybul = bright.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int a = 0; a < msLEFT.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletLEFT bleft = (BulletLEFT) msLEFT.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bleft.getX();\r\n\t\t\t\tint ybul = bleft.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int a = 0; a < msUP.size(); a++){\r\n\t\t\tfor(int b = 0; b < msEnemys.size(); b++){\r\n\t\t\t\tBulletUP bup = (BulletUP) msUP.get(a);\r\n\t\t\t\tEnemys enemy = (Enemys) msEnemys.get(b);\r\n\t\t\t\tint xbul = bup.getX();\r\n\t\t\t\tint ybul = bup.getY();\r\n\t\t\t\tint xenemy = enemy.getX();\r\n\t\t\t\tint yenemy = enemy.getY();\r\n\t\t\t\t\r\n\t\t\t\tif((xbul - xenemy < 20 && xbul - xenemy > -20) && ( ybul - yenemy < 20 && xbul - yenemy > -20)){\r\n\t\t\t\t\tenemy.visible = false;\r\n\t\t\t\t\tscoreamount++;\r\n\t\t\t\t\t//GameCraft.SpawnEnemys();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tEnemy 500 500\r\n\t\tBullet 510 510\r\n\t\t510 < 500 && 480 < 500 || 500 > 510 && 500 > 480\r\n\t\t500 > 320 && 500 > 380\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t////////////\r\n\t\t// Bullet //\r\n\t\t////////////\r\n\t\tGameCraft.move();\r\n\t\trepaint(); \r\n\t}", "public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void addEventPowerUp(DefaultPowerUp powerUp);", "public void onSleep() {\n\t\tbehaviour.onSleep();\n\t}", "public void fire() {\n \tintakeTalon1.set(1);\n \tintakeTalon2.set(1);\n }", "public void fire(TileEnvironment levelEnv) {\n\t\t\n\t}", "private void collectPowerUp(PowerUp powerUp) {\n\t\t\n\t\tif (powerUp.detectDownwardCollision(player.getX(), player.getY()) ||\n\t\t\tpowerUp.detectSideCollision(player.getX(), player.getY(), true)) {\n\t\t\t\n\t\t\tpowerUp.setVisibility(false);\n\t\t\t\n\t\t\tif (powerUp.equals(explosive)) {\n\t\t\t\tshot.setAmmo(Ammo.EXPLOSIVE);\n\t\t\t} else {\n\t\t\t\tshot.setAmmo(Ammo.ARMORPIERCING);\n\t\t\t}\n\t\t\t\n\t\t\tshot.reload();\n\t\t}\n\t}", "public void fireBullet(int direction , int posX, int posY ){\n if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){\n int lowestbulletNo = 10;\n for( int i = 9; i > 0; i-- ){\n if ( bulletSpace.get(i).isEnabled() == false){\n lowestbulletNo = i;//find the first bullet in the gun barrol\n }\n }\n\n if ( lowestbulletNo < 10 ){\n bulletSpace.get(lowestbulletNo).setDirection(direction);\n bulletSpace.get(lowestbulletNo).setDistance(0);\n bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ;\n bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ;\n bulletSpace.get(lowestbulletNo).enabled(true);\n bulletSpace.get(lowestbulletNo).setRotation(direction+1);\n }\n }\n clockBullet.restart();\n }", "public void testLeds(int duration) {\n\t\tledBlinking.startThread();\n\t\ttry {\n\t\t\tThread.sleep(duration);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstopBlinking();\n\t}", "@Override\n\tpublic void on() {\n\t\tSystem.out.println(\"turn on the \"+name+\" Light\");\n\t}", "boolean testDrawBullet(Tester t) {\n return t.checkExpect(bullet1.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink))\n && t.checkExpect(bullet2.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink));\n }", "private void drawActivePotionEffects() {\n/* 63 */ int i = this.guiLeft - 124;\n/* 64 */ int j = this.guiTop;\n/* 65 */ int k = 166;\n/* 66 */ Collection<PotionEffect> collection = this.mc.player.getActivePotionEffects();\n/* */ \n/* 68 */ if (!collection.isEmpty()) {\n/* */ \n/* 70 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 71 */ GlStateManager.disableLighting();\n/* 72 */ int l = 33;\n/* */ \n/* 74 */ if (collection.size() > 5)\n/* */ {\n/* 76 */ l = 132 / (collection.size() - 1);\n/* */ }\n/* */ \n/* 79 */ for (PotionEffect potioneffect : Ordering.natural().sortedCopy(collection)) {\n/* */ \n/* 81 */ Potion potion = potioneffect.getPotion();\n/* 82 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 83 */ this.mc.getTextureManager().bindTexture(INVENTORY_BACKGROUND);\n/* 84 */ drawTexturedModalRect(i, j, 0, 166, 140, 32);\n/* */ \n/* 86 */ if (potion.hasStatusIcon()) {\n/* */ \n/* 88 */ int i1 = potion.getStatusIconIndex();\n/* 89 */ drawTexturedModalRect(i + 6, j + 7, 0 + i1 % 8 * 18, 198 + i1 / 8 * 18, 18, 18);\n/* */ } \n/* */ \n/* 92 */ String s1 = I18n.format(potion.getName(), new Object[0]);\n/* */ \n/* 94 */ if (potioneffect.getAmplifier() == 1) {\n/* */ \n/* 96 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.2\", new Object[0]);\n/* */ }\n/* 98 */ else if (potioneffect.getAmplifier() == 2) {\n/* */ \n/* 100 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.3\", new Object[0]);\n/* */ }\n/* 102 */ else if (potioneffect.getAmplifier() == 3) {\n/* */ \n/* 104 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.4\", new Object[0]);\n/* */ } \n/* */ \n/* 107 */ this.fontRendererObj.drawStringWithShadow(s1, (i + 10 + 18), (j + 6), 16777215);\n/* 108 */ String s = Potion.getPotionDurationString(potioneffect, 1.0F);\n/* 109 */ this.fontRendererObj.drawStringWithShadow(s, (i + 10 + 18), (j + 6 + 10), 8355711);\n/* 110 */ j += l;\n/* */ } \n/* */ } \n/* */ }", "public void lighting(boolean onOrOff)\r\n {\r\n \tint i;\r\n \tfor (i=0;i<LightSet.size();i++) {\r\n \t\t((Light)LightSet.elementAt(i)).setState(onOrOff);\r\n \t}\r\n }", "public void enlist() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canEnlist()) {\n Logger.info(\"HUD Presenter: enlist\");\n uiStateManager.setState(GameUIState.ENLISTING);\n }\n }", "@Override\r\n public int fire() {\r\n if (this.getBulletsCount() == 0) {\r\n return 0;\r\n }\r\n this.setBulletsCount(this.getBulletsCount() - 10);\r\n return 10;\r\n }", "public void setWeapons() {\n\t\tca_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew CapAmerWeapons(Battleground.captainAmerica).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\the_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew HawkeyeWeapons(Battleground.hawkeye).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\tbw_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew BlackWidowWeapons(Battleground.blackWidow).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\thulk_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew HulkWeapons(Battleground.hulk).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\tthor_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew ThorWeapons(Battleground.thor).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\tloki_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew LokiWeapons(Battleground.loki).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t}", "public void mousePressed(MouseEvent e){\n\t\tint mx = (int) (e.getX() + camera.getX());\n\t\tint my = (int) (e.getY() + camera.getY());\n\t\n\t\tfor(int i=0; i < handler.object.size(); i++)\n\t\t{\n\t\t\tGameObject tempObject = handler.object.get(i);\n\t\t\tif(tempObject.getId() == ID.Player && game.ammo > 0)\n\t\t\t{\n\t\t\t\thandler.addObject(new Bullet(tempObject.getX()+16, tempObject.getY()+16, ID.Bullet, handler, mx, my, ss));\n\t\t\t\tgame.ammo--;\n\t\t\t}\n\t\t}\n\t}", "protected void playStepSound(int par1, int par2, int par3, int par4)\n {\n this.playSound(\"lom:trexfootstep\", 0.15F, 1.0F);\n }", "public void lightAttack(HashSet<String> heldKeyList,\n HashSet<String> tappedKeys) {\n if (this.activeAttackState) {\n return;\n }\n\n if (heldKeyList.contains(this.dropKey) && this.dir == -1) {\n this.weapon.attack(this, \"lightDLeft\", this.dir);\n } else if (heldKeyList.contains(this.dropKey) && this.dir == 1) {\n this.weapon.attack(this, \"lightDRight\", this.dir);\n } else if (this.xVel < 0 && this.state.equals(\"onGround\")) {\n this.weapon.attack(this, \"lightLeft\", this.dir);\n } else if (this.xVel > 0 && this.state.equals(\"onGround\")) {\n this.weapon.attack(this, \"lightRight\", this.dir);\n } else if (this.xVel == 0 && this.dir == -1\n && this.state.equals(\"onGround\")) {\n this.weapon.attack(this, \"lightNLeft\", this.dir);\n } else if (this.xVel == 0 && this.dir == 1\n && this.state.equals(\"onGround\")) {\n this.weapon.attack(this, \"lightNRight\", this.dir);\n } else if (this.state.equals(\"inAir\")\n && tappedKeys.contains(this.jumpKey)\n && !this.lightRecovery) {\n this.weapon.attack(this, \"lightJump\", this.dir);\n this.lightRecovery = true;\n } else if (this.state.equals(\"inAir\") \n && this.xVel == 0 && this.dir == -1) {\n this.weapon.attack(this, \"lightNLair\", this.dir);\n } else if (this.state.equals(\"inAir\") \n && this.xVel == 0 && this.dir == 1) {\n this.weapon.attack(this, \"lightNRair\", this.dir);\n } else if (this.state.equals(\"inAir\") \n && this.xVel < 0) {\n this.weapon.attack(this, \"lightSLair\", this.dir);\n } else if (this.state.equals(\"inAir\") \n && this.xVel > 0) {\n this.weapon.attack(this, \"lightSRair\", this.dir);\n }\n }", "public void fire() {\n \tAlienMissile.Slope slps[] = {AlienMissile.Slope.ShallowLeft, \n AlienMissile.Slope.Down,\n AlienMissile.Slope.ShallowRight};\n for (AlienMissile.Slope i : slps) {\n AlienMissile m = new AlienMissile(this, i);\n m.setBounce(true, health/5);\n list.add(m);\n }\n }", "protected void playStepSound(int par1, int par2, int par3, int par4)\n {\n this.playSound(\"mob.spider.step\", 0.15F, 1.0F);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tdetachChild(anim);\n\n\t\t\t\t\tanim = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcache.get(position).getSound().play();\n\t\t\t\t\t\t// disable clicks on these first\n\t\t\t\t\t\tdetachChild(greenTick);\t\n\t\t\t\t\t\tdetachChild(redx);\n\t\t\t\t\t\tif(sprite1 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite1);\n\t\t\t\t\t\tif(sprite2 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite2);\n\t\t\t\t\t\tif(sprite3 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite3);\n\t\t\t\t\t\tif(sprite4 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite4);\n\t\t\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\t\t\tshowToast(\"Line 277\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "private void updateShop(List<ItemType> items, int level) {\n\t\tfor (ItemType item : items) {\n\t\t\tString text = item.getTextureString();\n\t\t\ttext = item instanceof SpecialType ? text\n\t\t\t\t\t: text.substring(0, text.length() - 1)\n\t\t\t\t\t\t\t+ Integer.toString(level);\n\t\t\tTexture texture = textureManager.getTexture(text);\n\t\t\tImageButton button = generateItemButton(texture);\n\n\t\t\tbutton.addListener(new ClickListener() {\n\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\tstatus.setText(item.getName());\n\t\t\t\t\tif (selectedHero == null) {\n\t\t\t\t\t\tstatus.setText(\"Unsuccessful shopping, No hero exist.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (selectedHero.getHealth() <= 0) {\n\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\"Your Commander is dead. Can't buy anything.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tboolean enoughResources = checkCost(selectedHero.getOwner(),\n\t\t\t\t\t\t\titem);\n\t\t\t\t\tif (enoughResources) {\n\t\t\t\t\t\tif (item instanceof WeaponType) {\n\t\t\t\t\t\t\tWeapon weapon = new Weapon((WeaponType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(weapon);\n\t\t\t\t\t\t\tstatus.setText(boughtString + weapon.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Weapon) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else if (item instanceof ArmourType) {\n\t\t\t\t\t\t\tArmour armour = new Armour((ArmourType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(armour);\n\t\t\t\t\t\t\tstatus.setText(boughtString + armour.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Armour) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean transactSuccess;\n\t\t\t\t\t\t\tSpecial special = new Special((SpecialType) item);\n\t\t\t\t\t\t\ttransactSuccess = selectedHero\n\t\t\t\t\t\t\t\t\t.addItemToInventory(special);\n\t\t\t\t\t\t\tif (transactSuccess) {\n\t\t\t\t\t\t\t\tstatus.setText(boughtString + special.getName()\n\t\t\t\t\t\t\t\t\t\t+ \"(Special) for \"\n\t\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\t\t\"Unsuccessful Shopping, can only hold 4 specials\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tselectedHero.setStatsChange(true);\n\t\t\t\t\t\ttransact(selectedHero.getOwner(), item);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString mes = \"Not enough resources.\";\n\t\t\t\t\t\tstatus.setText(mes);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprivate boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollTable.add(button).width(iconSize).height(iconSize).top();\n\t\t\tString stats = getItemStats(item, level);\n\t\t\tString cost = getItemCost(item, level);\n\t\t\tscrollTable.add(new Label(stats, skin)).width(iconSize).top()\n\t\t\t\t\t.left();\n\t\t\tscrollTable.add(new Label(cost, skin)).width(iconSize).top().left();\n\t\t\tscrollTable.row();\n\t\t}\n\t}", "public void enableMultiTouchElementListeners() {\r\n\t\tif (itemListeners == null) {\r\n\t\t\titemListeners = new ArrayList<ItemListener>();\r\n\t\t}\r\n\t\tif (screenCursorListeners == null) {\r\n\t\t\tscreenCursorListeners = new ArrayList<ScreenCursorListener>();\r\n\t\t}\r\n\t\tif (orthoControlPointRotateTranslateScaleListeners == null) {\r\n\t\t\torthoControlPointRotateTranslateScaleListeners = new ArrayList<OrthoControlPointRotateTranslateScaleListener>();\r\n\t\t}\r\n\t\tif (bringToTopListeners == null) {\r\n\t\t\tbringToTopListeners = new ArrayList<BringToTopListener>();\r\n\t\t}\r\n\t\tif (orthoSnapListeners == null) {\r\n\t\t\torthoSnapListeners = new ArrayList<OrthoSnapListener>();\r\n\t\t}\r\n\t\tif (flickListeners == null) {\r\n\t\t\tflickListeners = new ArrayList<OrthoFlickListener>();\r\n\t\t}\r\n\t\t\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addBringToTopListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addItemListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addOrthoControlPointRotateTranslateScaleListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addSnapListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addFlickListener(this);\r\n\t}", "private void recruitSpecialsPhase() {\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tDiceGUI.getInstance().uncover();\n GUI.getDoneButton().setDisable(false);\n }\n });\n \n for (final Player p : playerList) {\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(p);\n\n ClickObserver.getInstance().setTerrainFlag(\"\");\n ClickObserver.getInstance().setClickedTerrain(player.getHexesOwned().get(0));\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n }\n });\n \n SpecialCharView.setCurrentPlayer(p);\n SpecialCharView.getSpecialButton().activate();\n SpecialCharView.getCharacterGrid().setVisible(false);\n doneClicked = false;\n ClickObserver.getInstance().setTerrainFlag(\"RecruitingSpecialCharacters\");\n\n pause();\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(player.getName() + \", Try Your Luck At Recruiting A Special Character!\");\n GUI.getRackGui().setOwner(player);\n }\n });\n\n while (isPaused) {\n while (!doneClicked) {\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n DiceGUI.getInstance().setFaceValue(0);\n SpecialCharView.getCharacterGrid().setVisible(false);\n Board.removeCovers();\n }\n });\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tDiceGUI.getInstance().cover();\n }\n });\n }", "public void getPowerUp(PowerUp powerUp) \n\t{\n\t\tswitch(powerUp.getType())\n\t\t{\n\t\t\tcase 0:\n\t\t\t\t\n\t\t\t\tif(weapon != PROTON_WEAPON)\n\t\t\t\t\tbulletPool.clear(weapon);\n\t\t\t\t\n\t\t\t\tweapon = PROTON_WEAPON;\n\t\t\t\tfireRate = 5;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1:\n\t\t\t\t\n\t\t\t\tif(weapon != VULCAN_WEAPON)\n\t\t\t\t\tbulletPool.clear(weapon);\n\t\t\t\t\n\t\t\t\tweapon = VULCAN_WEAPON;\n\t\t\t\tfireRate = 3;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\t\n\t\t\t\tif(weapon != GAMMA_WEAPON)\n\t\t\t\t\tbulletPool.clear(weapon);\n\t\t\t\t\n\t\t\t\tweapon = GAMMA_WEAPON;\n\t\t\t\tfireRate = 8;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\thealth += (health+20>100)?0: 20;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\t\n\t\t\t\tif(speedBoost == 0)\n\t\t\t\t\tspeedBoost = 3;\n\t\t\t\t\n\t\t\t\tspeedBoostCounter =0;\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t\n\t\tSoundManager.getInstance().playSound(\"powerup\", false);\n\t}", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}", "public static void shutDown(){\n for(int i = PS3_LIST_.size()-1; i >= 0; i--){\n PS3 instance = PS3_LIST_.get(i);\n instance.setLed(false);\n instance.destroy();\n }\n PS3Logger.log(PS3Logger.TYPE.DEBUG, null, \"PS3 SHUTDOWN\");\n }", "private void rumble(boolean on) {\n // Set the time point, so we know when to start or stop rumbling\n timePoint = Timer.getFPGATimestamp();\n\n // Set the state\n state = on ? RUMBLE : BREAK;\n\n // If rumble is on, full power. Otherwise, no power.\n double rumbleIntensity = (on ? intensity : 0.0);\n\n // Rumble the appropriate joysticks\n if (controllerToRumble == JoystickSelection.DRIVER_JOYSTICK || controllerToRumble == JoystickSelection.BOTH_JOYSTICKS) {\n driver.setRumble(RumbleType.kRightRumble, rumbleIntensity);\n driver.setRumble(RumbleType.kLeftRumble, rumbleIntensity);\n }\n\n if (controllerToRumble == JoystickSelection.OPERATOR_JOYSTICK || controllerToRumble == JoystickSelection.BOTH_JOYSTICKS) {\n operator.setRumble(RumbleType.kRightRumble, rumbleIntensity);\n operator.setRumble(RumbleType.kLeftRumble, rumbleIntensity);\n }\n }", "public void setAllColor(int r, int g, int b, double time, boolean unhook) {\r\n\t\tsetAllColor(r, g, b);\r\n\t\tThread t = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\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}\r\n\t\t});\r\n\t\tt.start();\r\n\t}", "private void battleTickStatuses(){\n updateStatuses(battleEnemies);\n updateStatuses(battleAllies);\n }", "public void givePowerUp(PowerUp powerup) throws RuntimeException {\n\n if (powerUpList.size() > 2)\n throw new RuntimeException(\"This player already has 3 power up\");\n\n powerUpList.add(powerup);\n }", "public void blink(){\r\n boolean p = false;\r\n for (int i=1; i<=5; i++){\r\n buzzer(p); \r\n p = !p;\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "@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}", "private void blue(){\n\t\tthis.arretes_fB();\n\t\tthis.coins_fB();\n\t\tthis.coins_a1B();\n\t\tthis.coins_a2B();\n\t\tthis.aretes_aB();\n\t\tthis.cube[22] = \"B\";\n\t}", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "public void unhookLEDs() {\r\n\t\ttable.putBoolean(\"hooked\", false);\r\n\t\tleftOff();\r\n\t\trightOff();\r\n\t}", "public void checkCollision(){\n\r\n for(int i = 0; i < enemies.size(); i++){\r\n \r\n // Player and Enemy collision\r\n \r\n if(collide(this.player, enemies.get(i)) && this.player.isVisible() && enemies.get(i).isVisible()){\r\n System.out.println(\"Collide\");\r\n this.player.setHealth(this.player.getHealth() - 100);\r\n }\r\n\r\n // Player and Enemy bullet collision\r\n \r\n for(int j =0; j < enemies.get(i).getBullets().size(); j++){\r\n\r\n if(collide(this.player, enemies.get(i).getBullets().get(j)) && this.player.isVisible() && enemies.get(i).getBullets().get(j).isVisible()){\r\n\r\n enemies.get(i).getBullets().get(j).setVisible(false);\r\n this.player.setHealth(this.player.getHealth() - enemies.get(i).getBullets().get(j).getDamage());\r\n\r\n }\r\n }\r\n\r\n }\r\n //time = DEFAULT_TIME_DELAY;\r\n// }\r\n\r\n\r\n\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n\r\n\r\n // Player bullet and enemy collision\r\n\r\n for(int j = 0; j < enemies.size(); j++) {\r\n if (collide(enemies.get(j), player.getBullets().get(i)) && enemies.get(j).isVisible() && player.getBullets().get(i).isVisible()) {\r\n\r\n if (enemies.get(j).getHealth() < 0) {\r\n enemies.get(j).setVisible(false);\r\n score.addScore(100);\r\n }\r\n\r\n enemies.get(j).setHealth(enemies.get(j).getHealth() - player.getBullets().get(i).getDamage());\r\n // enemies.get(j).setColor(Color.RED);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n\r\n }\r\n }\r\n\r\n\r\n // Boss collision & player bullet collision\r\n\r\n if(collide(player.getBullets().get(i), this.boss1) && player.getBullets().get(i).isVisible() && boss1.isVisible()){\r\n\r\n if(boss1.getHealth() < 0){\r\n boss1.setVisible(false);\r\n score.addScore(1000);\r\n state = STATE.WIN;\r\n }\r\n this.boss1.setHealth(this.boss1.getHealth() - player.getBullets().get(i).getDamage());\r\n // this.boss1.setHealth(0);\r\n player.getBullets().get(i).setVisible(false);\r\n\r\n }\r\n\r\n }\r\n\r\n // Bullet vs Bullet Collision\r\n\r\n for(int k = 0 ; k < player.getBullets().size(); k++){\r\n\r\n if(player.getBullets().get(k).isVisible()) {\r\n for (int i = 0; i < enemies.size(); i++) {\r\n\r\n if(enemies.get(i).isVisible()) {\r\n for (int j = 0; j < enemies.get(i).getBullets().size(); j++) {\r\n\r\n if (collide(player.getBullets().get(k), enemies.get(i).getBullets().get(j)) && enemies.get(i).getBullets().get(j ).isVisible()) {\r\n\r\n\r\n System.out.println(\"bullets colliding\");\r\n\r\n player.getBullets().get(k).setVisible(false);\r\n enemies.get(i).getBullets().get(j).setColor(Color.yellow);\r\n enemies.get(i).getBullets().get(j).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n\r\n player.getBullets().add(enemies.get(i).getBullets().get(j));\r\n\r\n enemies.get(i).getBullets().remove(enemies.get(i).getBullets().get(j)); //removes bullet\r\n\r\n\r\n k++;\r\n j--;\r\n //enemies.get(i).getBullets().get(j).setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n for(int i = 0; i < boss1.getBullets().size(); i++) {\r\n\r\n\r\n if (collide(player.getBullets().get(k), boss1.getBullets().get(i)) && boss1.getBullets().get(i).isVisible()) {\r\n\r\n System.out.println(\"boss bullets colliding\");\r\n player.getBullets().get(k).setVisible(false);\r\n boss1.getBullets().get(i).setColor(Color.yellow);\r\n boss1.getBullets().get(i).deflect(this.player.getX() + this.player.getW()/2, this.player.getY() + this.player.getH()/2);\r\n player.getBullets().add(boss1.getBullets().get(i));\r\n boss1.getBullets().remove(boss1.getBullets().get(i));\r\n k++;\r\n i--;\r\n\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Boss bullet and player collision\r\n\r\n for(Bullet b : boss1.getBullets() ){\r\n\r\n\r\n if(collide(player, b) && player.isVisible() && b.isVisible()){\r\n b.setVisible(false);\r\n player.setHealth(player.getHealth() - b.getDamage());\r\n }\r\n }\r\n\r\n\r\n // Power up collision\r\n\r\n for(PowerUp p : powerUps){\r\n\r\n if(collide(player, p) && p.isVisible()){\r\n\r\n p.executeEffect(this.player);\r\n p.setVisible(false);\r\n }\r\n }\r\n\r\n\r\n\r\n // Deleting out of bound bullets\r\n for(int i = 0; i < player.getBullets().size(); i++){\r\n if(player.getBullets().get(i).getY() < 0 || player.getBullets().get(i).getY() > GameWorld.SCREEN_H ||\r\n player.getBullets().get(i).getX()< 0 || player.getBullets().get(i).getX() > GameWorld.SCREEN_W) {\r\n\r\n player.getBullets().remove(player.getBullets().get(i));\r\n }\r\n }\r\n\r\n }", "public void onLaunch(LivingEntity player, List<String> lore) {\r\n }", "public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}", "private void reactMain_region_digitalwatch_Display_glowing_GlowOn() {\n\t\tif (sCIButtons.topRightReleased) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\ttimer.setTimer(this, 5, 2 * 1000, false);\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowDelay;\n\t\t}\n\t}", "protected void handleFiring(double dt)\r\n\t{\r\n\t\t//Fire if the mouse button is pressed.\r\n\t\tif (input.getMouseButton(InputHandler.FIRE) && charge <= 0 && energy >= energyUse)\r\n\t\t{\r\n\t\t\tEntityBullet bullet = (EntityBullet)c.createEntity(w, EI.EntityBullet);\r\n\t\t\tdouble xDir = Math.cos(horizontalDir)*Math.cos(verticalDir),\r\n\t\t\t\t\tyDir = Math.sin(horizontalDir)*Math.cos(verticalDir), zDir = Math.sin(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble xDisp = shotX*Math.cos(verticalDir) - shotZ*Math.sin(verticalDir);\r\n\t\t\tdouble zDisp = shotX*Math.sin(verticalDir) + shotZ*Math.cos(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble yDisp = xDisp*Math.sin(horizontalDir) - shotY*Math.cos(horizontalDir);\r\n\t\t\txDisp = xDisp*Math.cos(horizontalDir) + shotY*Math.sin(horizontalDir);\r\n\t\t\t\r\n\t\t\t//t is to prevent bullets from spawning through walls.\r\n\t\t\t\r\n\t\t\tdouble t = w.getCollision().getBulletCollision(x, y, z, xDisp, yDisp, zDisp);\r\n\t\t\t\r\n\t\t\tif (t == 1)\r\n\t\t\t{\r\n\t\t\t\t//Create the bullet\r\n\t\t\t\tenergy -= energyUse;\r\n\t\t\t\tbullet.setPosition(x+xDisp, y+yDisp, z+zDisp);\r\n\t\t\t\tint vel = 60;\r\n\t\t\t\t\r\n\t\t\t\tbullet.setVelocity(vel*xDir, vel*yDir, vel*zDir);\r\n\t\t\t\tbullet.setDamage(1, 1);//damage, knockback\r\n\t\t\t\tbullet.setColor(0, 1, 0);\r\n\t\t\t\t\r\n\t\t\t\tbullet.setOwner(player);\r\n\t\t\t\t\r\n\t\t\t\tw.create(bullet);\r\n\t\t\t\t\r\n\t\t\t\tcharge = shotDelay;\r\n\t\t\t\t\r\n\t\t\t\t//Laser gun sound\r\n\t\t\t\tc.getSoundHandler().playSound(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Weapon recharging\r\n\t\tcharge -= dt;\r\n\t}" ]
[ "0.6191632", "0.608872", "0.60278374", "0.5729581", "0.5727041", "0.56831414", "0.56618845", "0.5573246", "0.5543165", "0.5518286", "0.5504891", "0.5500993", "0.54570204", "0.5381914", "0.53601956", "0.5325442", "0.5314819", "0.5313523", "0.52837896", "0.52812874", "0.52760035", "0.52534014", "0.5241947", "0.5240365", "0.52295953", "0.52235025", "0.52164745", "0.5167041", "0.5117695", "0.51023364", "0.50850546", "0.50488436", "0.5034865", "0.5034339", "0.5024261", "0.49918333", "0.49628937", "0.4957229", "0.4954359", "0.49543107", "0.49407265", "0.49172756", "0.4912353", "0.49054283", "0.49036595", "0.4901473", "0.48913148", "0.48881543", "0.4878599", "0.48701695", "0.48674473", "0.48653805", "0.4864105", "0.48631102", "0.48624286", "0.48484683", "0.48435488", "0.48431304", "0.48419014", "0.48405492", "0.48381624", "0.48320535", "0.48318964", "0.48258042", "0.48230687", "0.48106214", "0.48052534", "0.47966966", "0.47929257", "0.4786228", "0.47765848", "0.47647095", "0.47556952", "0.47544903", "0.47514144", "0.4749531", "0.47477236", "0.47442523", "0.47376153", "0.47364408", "0.47327456", "0.47263265", "0.47249356", "0.47248742", "0.47134456", "0.47096878", "0.47075653", "0.4700732", "0.46967012", "0.46963823", "0.4690501", "0.4690343", "0.46900332", "0.46857762", "0.46852258", "0.46852252", "0.46729928", "0.46720895", "0.46702608", "0.46699286" ]
0.77145374
0
A method to fire yellow color speed bullets. Speed bullets travel distance faster.
private void speedBulletFire() { bulletArrayList.add( new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, "Yellow")); for (int i = 0; i < bulletArrayList.size(); i++) { bulletArrayList.get(i).setSpeed(5); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "private void quickFireBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Pink\"));\n\t}", "public void fireBullet(int direction , int posX, int posY ){\n if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){\n int lowestbulletNo = 10;\n for( int i = 9; i > 0; i-- ){\n if ( bulletSpace.get(i).isEnabled() == false){\n lowestbulletNo = i;//find the first bullet in the gun barrol\n }\n }\n\n if ( lowestbulletNo < 10 ){\n bulletSpace.get(lowestbulletNo).setDirection(direction);\n bulletSpace.get(lowestbulletNo).setDistance(0);\n bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ;\n bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ;\n bulletSpace.get(lowestbulletNo).enabled(true);\n bulletSpace.get(lowestbulletNo).setRotation(direction+1);\n }\n }\n clockBullet.restart();\n }", "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "public void fire() {\n\n\t\t// A player cannot continually fire, there is a delay between each bullet.\n\t\tif (isAbleToFire) {\n\n\t\t\taudio.playMusic(\"Audio/Fire.wav\");\n\n\t\t\tif (multiBulletIsActive) {\n\n\t\t\t\tmultiBulletFire();\n\n\t\t\t} else if (speedBulletIsActive) {\n\n\t\t\t\tspeedBulletFire();\n\n\t\t\t} else if (quickFireBulletIsActive) {\n\n\t\t\t\tquickFireBulletFire();\n\n\t\t\t} else {\n\n\t\t\t\t// Single fire.\n\t\t\t\t// Adjust bullet position to be fired from the center of the player.\n\t\t\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition,\n\t\t\t\t\t\tbulletWidth, bulletHeight, \"Red\"));\n\t\t\t}\n\n\t\t\t// Stop the player from being able to fire for 'ticksBetweemFire' amount.\n\t\t\tticksToNextFire = currentTickCount + ticksBetweenFire;\n\t\t}\n\t}", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "public void tick() {\r\n\r\n\t\tif (!targeted) {\r\n\t\t\tTarget = acquireTarget();\r\n\t\t} else if (timeSinceLastShot > firingSpeed) {\r\n\t\t\tangle = calculateAngle();\r\n\t\t\tshoot(Target);\r\n\t\t\ttimeSinceLastShot = 0;\r\n\t\t}\r\n\t\tif (Target == null || Target.isAlive() == false) {\r\n\t\t\ttargeted = false;\r\n\t\t}\r\n\r\n\t\ttimeSinceLastShot += Delta();\r\n\r\n\t\tfor (Dart dart : darts) {\r\n\t\t\tdart.tick();\r\n\t\t}\r\n\r\n\t\tdraw();\r\n\t}", "public void tick() {\n boolean shouldHaltAfterTick = false;\n\n List<Pair<Movement, Bullet>> movements = new ArrayList<>();\n\n //Bullets on nodes\n Map<Coordinate, Bullet> capturedBullets = new HashMap<>(bullets);\n capturedBullets.keySet().retainAll(nodes.keySet());\n\n //Bullets not on nodes\n Map<Coordinate, Bullet> freeBullets = new HashMap<>(bullets);\n freeBullets.keySet().removeAll(capturedBullets.keySet());\n\n //Generate movements for free bullets\n for (Map.Entry<Coordinate, Bullet> entry : freeBullets.entrySet()) {\n Bullet bullet = entry.getValue();\n Coordinate coord = entry.getKey();\n Coordinate newCoord = entry.getKey().plus(bullet.getDirection()).wrap(width, height);\n movements.add(new Pair<>(new Movement(coord, newCoord), bullet));\n }\n\n //Update captured bullets\n for (Map.Entry<Coordinate, Bullet> entry : capturedBullets.entrySet()) {\n Coordinate coordinate = entry.getKey();\n INode node = nodes.get(coordinate);\n\n // special case\n if (node instanceof NodeHalt)\n shouldHaltAfterTick = true;\n\n //TODO this brings great shame onto my family\n Direction bulletDirection = entry.getValue().getDirection();\n Direction dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.antiClockwise();\n }\n Bullet bullet = new Bullet(bulletDirection, entry.getValue().getValue());\n\n Map<Direction, BigInteger> bulletParams = node.run(bullet);\n\n for (Map.Entry<Direction, BigInteger> newBulletEntry : bulletParams.entrySet()) {\n //TODO this too\n bulletDirection = newBulletEntry.getKey();\n dir = Direction.UP;\n while (dir != node.getRotation()) {\n dir = dir.clockwise();\n bulletDirection = bulletDirection.clockwise();\n }\n\n Bullet newBullet = new Bullet(bulletDirection, newBulletEntry.getValue());\n Coordinate newCoordinate = coordinate.plus(newBullet.getDirection()).wrap(width, height);\n Movement movement = new Movement(coordinate, newCoordinate);\n movements.add(new Pair<>(movement, newBullet));\n }\n }\n\n //Remove swapping bullets\n List<Movement> read = new ArrayList<>();\n Set<Coordinate> toDelete = new HashSet<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate from = movement.getFrom();\n Coordinate to = movement.getTo();\n boolean foundSwaps = read.stream().anyMatch(other -> from.equals(other.getTo()) && to.equals(other.getFrom()));\n if (foundSwaps) {\n toDelete.add(from);\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getFrom()) || toDelete.contains(pair.getKey().getTo()));\n\n //Remove bullets that end in the same place\n read.clear();\n toDelete.clear();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Coordinate to = movement.getTo();\n boolean foundSameFinal = read.stream().anyMatch(other -> to.equals(other.getTo()));\n if (foundSameFinal) {\n toDelete.add(to);\n }\n read.add(movement);\n }\n movements.removeIf(pair -> toDelete.contains(pair.getKey().getTo()));\n\n //Move bullets\n Map<Coordinate, Bullet> newBullets = new HashMap<>();\n for (Pair<Movement, Bullet> pair : movements) {\n Movement movement = pair.getKey();\n Bullet bullet = pair.getValue();\n newBullets.put(movement.getTo(), bullet);\n }\n\n bullets.clear();\n bullets.putAll(newBullets);\n\n if (shouldHaltAfterTick)\n halt();\n }", "public void fire() {\n \tAlienMissile.Slope slps[] = {AlienMissile.Slope.ShallowLeft, \n AlienMissile.Slope.Down,\n AlienMissile.Slope.ShallowRight};\n for (AlienMissile.Slope i : slps) {\n AlienMissile m = new AlienMissile(this, i);\n m.setBounce(true, health/5);\n list.add(m);\n }\n }", "private void fire(GameEngine gameEngine) {\n Bullet bullet1 = gameEngine.getBulletEnemy();\n if (bullet1 == null) {\n return;\n }\n bullet1.init(this, positionX + imageWidth/2, positionY, 0);\n gameEngine.addGameObject(bullet1);\n gameEngine.playSound(1);\n }", "@Override\r\n\tpublic void Update() {\n\t\tsuper.Update();\r\n\t\t\r\n\t\tif(mTime != Definition.FOREVER && mTime < 0)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tfor(int i=0;i<mOwner.mSpriteList.size();i++)\r\n\t\t{\r\n\t\t\tmOwner.mSpriteList.get(i).setColor(23f/255, 117f/255, 148f/255);\r\n\t\t}\r\n\t\t\r\n\t\tMotionStrategy move = new SpeedUp(mSlowRate, -1);\r\n\t\tmOwner.getMoveWay().add(move);\r\n\t}", "@Override\r\n\tpublic void speed() {\n\t}", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "@Override\n\tpublic\n\tvoid speed() {\n\t\t\n\t}", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\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 * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}", "private void fire()\n {\n if (frames % 300 == 0 || frames == 0)\n {\n for(int i = 0; i <=6; i++)\n {\n FireBall fireBall = new FireBall();\n getWorld().addObject(fireBall, getX()+30, getY()); \n }\n }\n }", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "public void SpeedControl(long iDasherX, long iDasherY, double dFrameRate) {}", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}", "@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b.x, b.y, 3f * b.fout());\n Draw.reset();\n }", "void OnSpeedChanges(float speed);", "void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }", "public static void addBullet(float x, float y, float xspeed, float yspeed) {\r\n \tFloat[] t = new Float[4];\r\n \tt[0] = x;\r\n \tt[1] = y;\r\n \tt[2] = xspeed;\r\n \tt[3] = yspeed;\r\n \tbulletsToAdd.add(t);\r\n }", "public void drawBullet(){\n if (classOfObejct == 0){\n colorMode(RGB,255,255,255);\n noStroke();\n fill(255,100,30);\n ellipse(posX, posY, 6, 9);\n fill(255,153,51);\n ellipse(posX,posY, 4, 6);\n fill(255,255,100);\n ellipse(posX,posY, 2, 3);\n fill(255,255,200);\n ellipse(posX,posY, 1, 1);\n stroke(1);\n }\n else{\n colorMode(RGB,255,255,255);\n noStroke();\n fill(51,153,255);\n ellipse(posX, posY, 8, 8);\n fill(102,178,255);\n ellipse(posX,posY, 6, 6);\n fill(204,229,255);\n ellipse(posX,posY, 4, 4);\n fill(255,255,255);\n ellipse(posX,posY, 2, 2);\n stroke(1);\n }\n }", "public void onBulletHit(BulletHitEvent event) {\n RobotReference hitRobot;\n hitRobot = robots.get(event.getName());\n\n if (hitRobot.isTeammate()) {\n setTurnRight(90);\n setAhead(400);\n setChargerTarget();\n }\n }", "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }", "private void UpdateBullets()\n\t {\n\t for(int i = 0; i < BulletList.size(); i++)\n\t {\n\t Bullet bullet = BulletList.get(i);\n\t \n\t // Move the bullet.\n\t bullet.Update();\n\t \n\t // checks if the bullet has it left the screen\n\t if(bullet.HasLeftScreen()){\n\t BulletList.remove(i);\n\t \n\t continue;\n\t }\n\t \n\t // checks if the bullet hit the enemy\n\t Rectangle BulletRectangle = new Rectangle((int)bullet.xCoord, (int)bullet.yCoord, bullet.BulletImage.getWidth(), bullet.BulletImage.getHeight());\n\t // Go trough all enemies.\n\t for(int j = 0; j < EnemyList.size(); j++)\n\t {\n\t Enemy eh = EnemyList.get(j);\n\n\t \n\t Rectangle EnemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\n\t // Checks whether the the bullet has hit the enemy\n\t if(BulletRectangle.intersects(EnemyRectangel))\n\t {\n\t // Bullet hit the enemy so we reduce his health.\n\t eh.Health -= Bullet.DamagePower;\n\t \n\t // Bullet was also destroyed so we remove it.\n\t BulletList.remove(i);\n\t \n\t \n\t }\n\t }\n\t }\n\t }", "public void shoot(int bulletLeft) {\n float xValue = canon.getX();\n float yValue = canon.getY();\n bullets.get(bulletLeft).setVisibility(View.VISIBLE);\n shootingMotion(bullets.get(bulletLeft), xValue, yValue);\n\n }", "public void update(float delta) {\n rangeTimer++;//update bullet distance\n //delete bullet if hit collison or met ranged\n if (rangeTimer == RANGE) {\n bullet.setShoot(false);\n rangeTimer = 0;\n } else {\n //update bullet timings\n bullet.updateTimer(delta);\n //make bullet go to p x y - follows player to increase difficulty\n if (this.bullet.x < playerX + 1.5) {\n this.bullet.x += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.x >playerX + 1.5) {\n this.bullet.x -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y < playerY + 0.5) {\n this.bullet.y += Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n if (this.bullet.y > playerY + 1.5) {\n this.bullet.y -= Gdx.graphics.getDeltaTime() * Bullet.SPEED;\n }\n }\n }", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "@Override\n\tpublic void drawProjectile(final SpriteBatch spriteBatch) {\n\t}", "protected void handleFiring(double dt)\r\n\t{\r\n\t\t//Fire if the mouse button is pressed.\r\n\t\tif (input.getMouseButton(InputHandler.FIRE) && charge <= 0 && energy >= energyUse)\r\n\t\t{\r\n\t\t\tEntityBullet bullet = (EntityBullet)c.createEntity(w, EI.EntityBullet);\r\n\t\t\tdouble xDir = Math.cos(horizontalDir)*Math.cos(verticalDir),\r\n\t\t\t\t\tyDir = Math.sin(horizontalDir)*Math.cos(verticalDir), zDir = Math.sin(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble xDisp = shotX*Math.cos(verticalDir) - shotZ*Math.sin(verticalDir);\r\n\t\t\tdouble zDisp = shotX*Math.sin(verticalDir) + shotZ*Math.cos(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble yDisp = xDisp*Math.sin(horizontalDir) - shotY*Math.cos(horizontalDir);\r\n\t\t\txDisp = xDisp*Math.cos(horizontalDir) + shotY*Math.sin(horizontalDir);\r\n\t\t\t\r\n\t\t\t//t is to prevent bullets from spawning through walls.\r\n\t\t\t\r\n\t\t\tdouble t = w.getCollision().getBulletCollision(x, y, z, xDisp, yDisp, zDisp);\r\n\t\t\t\r\n\t\t\tif (t == 1)\r\n\t\t\t{\r\n\t\t\t\t//Create the bullet\r\n\t\t\t\tenergy -= energyUse;\r\n\t\t\t\tbullet.setPosition(x+xDisp, y+yDisp, z+zDisp);\r\n\t\t\t\tint vel = 60;\r\n\t\t\t\t\r\n\t\t\t\tbullet.setVelocity(vel*xDir, vel*yDir, vel*zDir);\r\n\t\t\t\tbullet.setDamage(1, 1);//damage, knockback\r\n\t\t\t\tbullet.setColor(0, 1, 0);\r\n\t\t\t\t\r\n\t\t\t\tbullet.setOwner(player);\r\n\t\t\t\t\r\n\t\t\t\tw.create(bullet);\r\n\t\t\t\t\r\n\t\t\t\tcharge = shotDelay;\r\n\t\t\t\t\r\n\t\t\t\t//Laser gun sound\r\n\t\t\t\tc.getSoundHandler().playSound(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Weapon recharging\r\n\t\tcharge -= dt;\r\n\t}", "@Override\n public void attack(){\n int xBullet=0,yBullet=0;\n switch(direction){\n case 0:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()*3/4);\n break;\n case 1:\n xBullet=(int)(x+Sprite.python_left.getWidth()*3/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 2:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 3:\n xBullet=(int)(x+Sprite.python_left.getWidth()/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n }\n PythonBullet pythonBullet=new PythonBullet(xBullet,yBullet,board,Player.PLAYER_SPEED*1.5);\n pythonBullet.setDirection(direction);\n board.addBullets(pythonBullet);\n\n }", "@Override\n public void update(float dt) {\n //bulletUpdate(dt,b2body);\n stateTime += dt;\n bulletUpdate(b2body,bulletSprite1);\n bulletUpdate(b2body2,bulletSprite2);\n bulletUpdate(b2body3,bulletSprite3);\n\n\n\n }", "public void accelerate(){\n speed += 5;\n }", "@Override\n public void update(GameContainer gc, StateBasedGame stateBasedGame, int delta) throws SlickException {\n timeSinceStart += delta;\n rtimeSinceStart += delta;\n Input input = gc.getInput();\n int mouseX = input.getMouseX();\n int mouseY = input.getMouseY();\n\n\n basicbulletSheet.rotate(90f);\n basicbulletSheet.setCenterOfRotation(16, 16);\n\n // Move this bullet\n for (int i = 0; i < bulletList.size(); i++) {\n bullet = bulletList.get(i);\n bullet.move();\n }\n\n //Add this tower to the this towerList\n if (Tower.isBasicPlaced()) {\n basicTowers.add(new BasicTower());\n System.out.println(basicTowers);\n Tower.setBasicPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isBomberPlaced()) {\n bomberTowers.add(new BomberTower());\n System.out.println(bomberTowers);\n Tower.setBomberPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isSniperPlaced()) {\n sniperTowers.add(new SniperTower());\n System.out.println(sniperTowers);\n Tower.setSniperPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isQuickPlaced()) {\n quickTowers.add(new QuickTower());\n System.out.println(quickTowers);\n Tower.setQuickPlaced(false);\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BasicTower basicTower1 : basicTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > basicTower1.rcoolDown + basicTower1.rlastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n basicTower1.basicClicked.setRotation((float) getTargetAngle(basicTower1.towerX,\n basicTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n basicTower1.basicClicked.setCenterOfRotation(32, 32);\n basicTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > basicTower1.coolDown + basicTower1.lastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n addNewBullet2(basicTower1.towerX, basicTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n basicTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BomberTower bomberTower1 : bomberTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > bomberTower1.rcoolDown + bomberTower1.rlastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n bomberTower1.bomberClicked.setRotation((float) getTargetAngle(bomberTower1.bombertowerX,\n bomberTower1.bombertowerY, enemy.getStartPosX(), enemy.getStartPosY()));\n bomberTower1.bomberClicked.setCenterOfRotation(32, 32);\n bomberTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > bomberTower1.coolDown + bomberTower1.lastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n addNewBullet2(bomberTower1.bombertowerX, bomberTower1.bombertowerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n bomberTower1.lastShot = timeSinceStart;\n }\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (SniperTower sniperTower1 : sniperTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > sniperTower1.rcoolDown + sniperTower1.rlastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n sniperTower1.sniperClicked.setRotation((float) getTargetAngle(sniperTower1.towerX,\n sniperTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n sniperTower1.sniperClicked.setCenterOfRotation(32, 32);\n sniperTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n if (timeSinceStart > sniperTower1.coolDown + sniperTower1.lastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n addNewBullet2(sniperTower1.towerX, sniperTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 50);\n sniperTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (QuickTower quickTower1 : quickTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > quickTower1.rcoolDown + quickTower1.rlastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n quickTower1.quickClicked.setRotation((float) getTargetAngle(quickTower1.towerX,\n quickTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n quickTower1.quickClicked.setCenterOfRotation(32, 32);\n quickTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n\n if (timeSinceStart > quickTower1.coolDown + quickTower1.lastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n radiusVisited = true;\n addNewBullet2(quickTower1.towerX, quickTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 5);\n quickTower1.lastShot = timeSinceStart;\n }\n }\n\n }\n }\n\n //A spawn is in progress\n if (spawninProgress) {\n timePassedEnemy += delta;\n if (timePassedEnemy > 800) {\n enemies.add(new Enemy());\n enemySpawns++;\n timePassedEnemy = 0;\n }\n }\n //When enough enemies has spawned, stop the spawninProgress\n if (enemySpawns == enemyCounter) {\n spawninProgress = false;\n //hasbeenDead = false;\n enemySpawns = 0;\n enemyCounter++;\n }\n\n //When no more enemies on maps\n if (enemies.size() == 0) {\n waveinProgress = false;\n startWaveCount = 0;\n }\n\n //Start a new level when there's no more enemies on the map\n if (loadMap.MAP[mouseY / w][mouseX / w] == 16) {\n if (input.isMousePressed(0) && startWaveCount == 0 && !waveinProgress) {\n startWaveCount++;\n if (startWaveCount == 1 && enemies.size() == 0 && !waveinProgress) {\n waveinProgress = true;\n gc.resume();\n spawninProgress = true;\n currentLevel++;\n }\n }\n }\n\n //For each new level, increase the HP of each enemy\n if (currentLevel < currentLevel + 1 && !waveinProgress) {\n for (Enemy enemyHP : enemies) {\n if (enemyHP.getStartPosX() <= 0 && enemyHP.getHP() < enemyHP.startHP + currentLevel) {\n enemyHP.setHP(enemyHP.getHP() + currentLevel);\n }\n }\n }\n\n\n //For each enemies, if enemies has finished their way, decrease player HP\n //and set them inactive\n for (Enemy enemyList : enemies) {\n if (enemyList.counter >= enemyList.path.getLength() - 1) {\n player.decreaseLife();\n bulletCount = 0;\n enemyList.isActive = false;\n }\n\n //If enemies' hp is zero, set them inactive and remove from the list\n if (enemyList.getHP() <= 0) {\n enemyList.isActive = false;\n bulletCount = 0;\n player.addCredits(20);\n }\n enemyList.update(gc, stateBasedGame, delta);\n }\n for (int i = 0; i < enemies.size(); i++) {\n if (!enemies.get(i).isActive) {\n enemies.remove(enemies.get(i));\n }\n }\n\n //For all objects, update\n for (GameObject obj : objects)\n try {\n obj.update(gc, stateBasedGame, delta);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //Go to Menu\n if (gc.getInput().isKeyPressed(Input.KEY_ESCAPE)) {\n gc.getInput().clearKeyPressedRecord();\n stateBasedGame.enterState(2);\n }\n\n\n }", "void realTimeProcess(){\n //For red list\n if(redList.get(redList.size()-1).getYPos() < redList.get(redList.size()-2).getYPos() && !steppedOnceRed && redGreenLine){\n realTimeIncreaseRed = true;\n }\n else if(redList.get(redList.size()-1).getYPos() > redList.get(redList.size()-2).getYPos() && realTimeIncreaseRed && !steppedOnceRed && redGreenLine){\n stepCount++;\n stepTimeStamp.add(System.nanoTime());\n updateStepCoordiantes();\n steppedOnceRed =true;\n System.out.println(\"STEP: \" + redList.get(redList.size()-1).getYPos());\n realTimeIncreaseRed = false;\n }\n //for blue list\n if(blueList.get(blueList.size()-1).getYPos() < blueList.get(blueList.size()-2).getYPos() && !steppedOnceBlue && blueGreenLine){\n realTimeIncreaseBlue = true;\n }\n else if(blueList.get(blueList.size()-1).getYPos() > blueList.get(blueList.size()-2).getYPos() && realTimeIncreaseBlue && !steppedOnceBlue && blueGreenLine){\n stepCount++;\n stepTimeStamp.add(System.nanoTime());\n updateStepCoordiantes();\n steppedOnceBlue = true;\n System.out.println(\"STEP: \" + blueList.get(blueList.size()-1).getYPos());\n realTimeIncreaseBlue = false;\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n stepText.setText(USER_NAME + \"'s step length: \" + String.format(\"%.3f\", STEP_LENGTH) + \"m\" + \"\\n\" + \"Number of Steps: \" + stepCount +\"\\n\" + \"Coordinates: \" +\"\\n\" + String.format(\"%.8f\", displayLat) + \", \" + String.format(\"%.8f\",dispalyLon));\n }\n });\n Log.i(\"NUMBER OF STEPS\", Double.toString(totalNumSteps));\n if(stepCount >= totalNumSteps){\n processScanCoordinates(blueFootTimeStamp, \"blue\");\n processScanCoordinates(redFootTimeStamp, \"red\");\n processScanCoordinates(magTimeStamps, \"mag\");\n processScanCoordinates(gyroTimeStamp, \"gyro\");\n processScanCoordinates(accelTimeStamp, \"accel\");\n postProcessData();\n\n }\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "void changeUpdateSpeed();", "public void moveBullets() {\n bController.increment();\n }", "public void shoot(GraphicsContext graphicsContext) {\n TankBullet bullet = new TankBullet(new FixedCoordinates(getCoordinates().getX() + 17, getCoordinates().getY() + 100), gameEnded, graphicsContext);\n bullet.draw(graphicsContext);\n CoordinatesCache.getInstance().getEnemyBullets().add(bullet);\n }", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "@Override\n\tpublic void step() {\n\t\ty += speed;\n\t}", "public void trackAndFire() {\n \t \tdouble theta;\n double distanciaObjetivo = myPos.distance(objetivo.pos);\n //Hallar el proximo punto en un perímetro definido\n \t\t//(30,30) elimina bordes y despues el -60 para la longitud de los dados\n Rectangle2D.Double perimetro = new Rectangle2D.Double(30, 30, getBattleFieldWidth() - 60, getBattleFieldHeight() - 60);\n \n \n \n //if my cannon is locked and ready and i got some energy left fire with\n //appropiate energy to not get stuck, fire in the execute rather than now\n \n if(getGunTurnRemaining() == 0 && myEnergy > 1) {\n setFire( Math.min(Math.min(myEnergy/6.0, 1000/distanciaObjetivo), objetivo.energy/3.0) );\n }\n \n //any other case, ill get aim lock with this function\n //normalize sets between pi -pi\n setTurnGunRightRadians(Utils.normalRelativeAngle(angulo(objetivo.pos, myPos) - getGunHeadingRadians()));\n \n\n double distNextPunto = myPos.distance(futurePos);\n \n \n if(distNextPunto > 20) {\n \t//aun estamos lejos\n \n \t\t\n \t\t//theta es el angulo que hemos de cortar para ponernos \"encarando\" bien\n theta = angulo(futurePos, myPos) - getHeadingRadians();\n \n \n double sentido = 1;\n \n if(Math.cos(theta) < 0) {\n theta += Math.PI;\n sentido = -1;\n }\n \n setAhead(distNextPunto * sentido);\n theta = Utils.normalRelativeAngle(theta);\n setTurnRightRadians(theta);\n \n if(theta > 1)setMaxVelocity(0.0);\n else setMaxVelocity(8.0); // max\n \n \t\n \n } else {\n \t //ENTRO AQUI SI ME QUEDA POCO PARA LLEGAR, SMOOTH CORNERING\n\n \t\t\n //probar 1000 coordenadas\n int iterNum = 1000;\n Point2D.Double cand;\n for(int i =0; i < iterNum; i++){\n \n //i dont want it to be close to another bot, thats the meaning of distanciaObjetivo*0.8\n cand = hallarPunto(myPos, Math.min(distanciaObjetivo*0.8, 100 + iterNum*Math.random()), 2*Math.PI*Math.random());\n if(perimetro.contains(cand) && evalHeuristic(cand) < evalHeuristic(futurePos)) {\n futurePos = cand;\n }\n \n \n } \n \n prevPos = myPos;\n \n }\n }", "@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}", "public Bullet fire(Enemy target, long currentNanoTime){\n Bullet shot = new Bullet(super.getX(),super.getY(),this,target,currentNanoTime);\n System.out.println(shot.getDegree());\n super.setDirection(shot.getDegree());\n return shot;\n }", "public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }", "public void shoot(float direction) {\n\t\tif(pause != 0) return;\n\t\tbullets.add(new Bullet(player.getPosition(),direction));\n\t\tpause = cooldown;\n\t}", "@Override\r\n public int fire() {\r\n if (this.getBulletsCount() == 0) {\r\n return 0;\r\n }\r\n this.setBulletsCount(this.getBulletsCount() - 10);\r\n return 10;\r\n }", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Replace the next line with any behavior you would like\n\t\t\n\t}", "void update(List<IProjectile> projectilesList, float newAgle, boolean hasTarget);", "public void changeSpeed(int speed);", "private void shootingMotion(final View v, final float x, final float y) {\n setBulletLocation(v, x, y);\n ObjectAnimator animation = ObjectAnimator.ofFloat(v, \"translationY\", -300f);\n animation.setDuration(2000);\n animation.start();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n checkOnHit(v);\n }\n }, 1300);\n }", "public void run() {\n setSpeed(MAX_SPEED, MAX_SPEED);\n while (step(TIME_STEP) != 16) {\n String name = \"\";\n if (behaviourList.get(2).takeControl()){\n name = \"inFrontOfWall\";\n behaviourList.get(2).action();\n } else if (behaviourList.get(1).takeControl()){\n name = \"isBallanceBall\";\n behaviourList.get(1).action();\n } else if (behaviourList.get(0).takeControl()){\n name = \"searchBall\";\n behaviourList.get(0).action();\n }\n printDistanceInfo(name);\n }\n }", "@Override\r\n\tpublic void onCollisionWithBullet() {\n\t\t\r\n\t}", "public void onTick()\n\t{\n\t\tsuper.onTick();\n\t\ttime++;\n\t\tif(time>=40)\n\t\t{\n\t\t\tif(direction == 0)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t\telse if(direction == 1)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t}\n\t\tif(direction == 0)\n\t\t{\n\t\t\tleft();\n\t\t\tif(hitcher!= null)\n\t\t\t{\n\t\t\t\thitcher.left(speed);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(direction == 1)\n\t\t{\n\t\t\tright();\n\t\t\tif(hitcher!=null)\n\t\t\t{\n\t\t\t\thitcher.right(speed);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void update(double delta) {\r\n \tVector3f playerDistance = transform.getPosition().sub(Level.getPlayer().getCamera().getPos());\r\n Vector3f orientation = playerDistance.normalized();\r\n\t\tfloat distance = playerDistance.length();\r\n\t\tsetDistance(distance + (int) (POP_IN/PARTICLES_POP_IN));\r\n\t\t\r\n if (state == STATE_FIRE) {\r\n float angle = (float) Math.toDegrees(Math.atan(orientation.getZ() / orientation.getX()));\r\n\r\n if (orientation.getX() > 0)\r\n angle = 180 + angle;\r\n\r\n transform.setRotation(0, angle + 90, 0);\r\n temp = delta;\r\n light.setPosition(transform.getPosition());\r\n light.setPosition(new Vector3f(light.getPosition().getX(), 0.05f * (float)(Math.sin(temp*2.5)+1.0/2.0) + 0.45f, light.getPosition().getZ()));\r\n \r\n double time = Time.getTime();\r\n double timeDecimals = (time - (double) ((int) time));\r\n timeDecimals *= 12.1f;\r\n \r\n if (timeDecimals <= 0.25f) {\r\n material.setDiffuse(animation.get(0));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 0.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 0.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 1f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 1.25f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 1.5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 1.75f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 2f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 2.25f) {\r\n material.setDiffuse(animation.get(6));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 2.5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 2.75f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 3f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 3.25f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 3.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 3.75f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 4f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 4.25f) {\r\n material.setDiffuse(animation.get(2));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 4.5f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 4.75f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 5.25f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 5.5f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 5.75f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 6f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 6.25f) {\r\n material.setDiffuse(animation.get(2));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 6.5f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 6.75f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 7f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 7.25f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 7.5f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 7.75f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 8f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 8.25f) {\r\n material.setDiffuse(animation.get(4));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 8.5f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 8.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 9f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 9.25f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 9.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 9.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 10f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 10.25f) {\r\n material.setDiffuse(animation.get(4));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 10.5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 10.75f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 11f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 11.25f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 11.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 11.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 12f) {\r\n material.setDiffuse(animation.get(3));\r\n } else {\r\n state = STATE_DONE;\r\n }\r\n }\r\n \r\n if(state == STATE_DONE) {\r\n \tlight.removeToEngine();\r\n \tfireSound.stop();\r\n \tLevel.removeFire(this);\r\n }\r\n\r\n }", "@Override\n public void run()\n {\n while(Sprite.threadActive)\n {\n Sprite.Delay();\n this.Move();\n this.laser.Fire();\n\n //Blink character if hit\n //if(this.damaged)\n //{\n //this.Blink(2);\n //}\n }\n }", "public SteerableMissileLauncher(Point2D point2d, int color, int speed, int dir) {\r\n\t\tsuper(color, speed, dir);\r\n\t\t\r\n\t}", "protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tshootBullet(arg0);\r\n\t\t\t}", "public void fireProjectile(String direction){\r\n\t\tif(name.equals(\"Robot\"))AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 5, \"laser\"));\r\n\t\telse AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 3, \"fireball\"));\r\n\t}", "@Override\n public List<Bullet> tick(List<Creep> creeps, boolean levelInProgress) {\n timeToNextShot--;\n List<Bullet> fired = null;\n if(imageRotates || timeToNextShot <= 0) {\n // The creeps are sorted by the default creep comparator in Clock, so that they don't\n // have to be resorted for any tower left on the default (which is often most of them)\n if(!creepComparator.getClass().equals(DEFAULT_CREEP_COMPARATOR.getClass())) {\n // Make a copy so it can be sorted\n creeps = new ArrayList<Creep>(creeps);\n Collections.sort(creeps, creepComparator);\n }\n // If the image rotates, this needs to be done to find out the direction to rotate to\n fired = fireBullets(creeps);\n }\n if (timeToNextShot <= 0 && fired != null && fired.size() > 0) {\n timeToNextShot = fireRate;\n // Use bulletsToAdd as some towers launch bullets between ticks\n bulletsToAdd.addAll(fired);\n }\n List<Bullet> bulletsToReturn = bulletsToAdd;\n bulletsToAdd = new ArrayList<Bullet>();\n return bulletsToReturn;\n }", "public void act() \n {\n\n if(isTouching(Car.class))\n {\n Lap = Lap + 1;\n if ((Lap % 11) == 0)\n {\n String lap = Integer.toString(Lap / 11);\n\n getWorld().showText(lap, 450, 30);\n getWorld().showText(\"Lap:\", 400, 30);\n }\n } \n if (Lap == 47)\n {\n Greenfoot.stop();\n getWorld().showText(\"GameOver\",250,250);\n }\n }", "public static void periodic() {\n a2 = limelightTable.getEntry(\"ty\").getDouble(0); //Sets a2, the y position of the target\n d = Math.round((h2-h1) / Math.tan(Math.toRadians(a1+a2))); //Calculates distance using a tangent\n\n if(m_gamepad.getStartButtonReleased()) { //Reset errorSum to 0 when start is released\n errorSum = 0;\n }\n\n shooting(); //Determine when we should be shooting\n reportStatistics(); //Report telemetry to the Driver Station\n }", "public void testLeds(int duration) {\n\t\tledBlinking.startThread();\n\t\ttry {\n\t\t\tThread.sleep(duration);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstopBlinking();\n\t}", "void tick();", "void tick();", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}", "public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }", "public void tick();", "public void tick();", "public void tick();", "@Override\n\t\tpublic void run() {\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\tswitch(this.direct)\n\t\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\t//说明坦克正在向上移动,坦克在一个方向上走30\n\t\t\t\t\t//再换方向\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y-=speed;\n\t\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x<360&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t x+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t break;\n\t\t\t\tcase 2:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y<235&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t x-=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//让敌人的额坦克可以连续打子弹\n\t\t\t\tthis.times++;\n\t\t\t\tif(times%2==0)\n\t\t\t\t{\n\t\t\t\t\tif(isLive)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hcShoot.size()<5)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t Shoot s=null;\n\t\t\t\t\t\t //没有子弹,添加\n\t\t\t\t\t\t\t\t\t\tswitch(direct)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y,0);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+30,y+10,1);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y+30,2);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x,y+10,3);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//启动子弹线程\n\t\t\t\t\t\t\t\t\t\tThread t=new Thread(s);\n\t\t\t\t\t\t\t\t\t\tt.start();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t//让坦克随机产生一个新的方向\n\t\t\t\tthis.direct=(int)(Math.random()*4);\n\t\t\t\t//判断敌人的坦克是否死亡\n\t\t\t\tif(this.isLive==false)\n\t\t\t\t{ \n\t\t\t\t\t//敌人的坦克死亡后退出线程\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t}", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "@Override\r\n\tpublic void display() {\n\t\tif (silenced.contains(caster))\r\n\t\t\tdead = true;\r\n\t\tif (lastloc == null)\r\n\t\t\tlastloc = loc;\r\n\t\tdir = loc.toVector().subtract(lastloc.toVector());\r\n\t\tif (speed > 2)\r\n\t\t\tParUtils.dropItemEffectVector(loc.clone().add(0,1,0), Material.CACTUS, 1,1, 1,dir);\r\n\t\t\t\r\n\t\t\t//ParUtils.createFlyingParticle(Particles.CRIT, loc.clone().add(0,2.5,0), 0, 0, 0, 1, 5, dir.normalize());\r\n\t\t//ParUtils.createRedstoneParticle(loc.clone().add(0,2.5,0), 0.5,0.5, 0.5, 1, Color.GREEN, 1.5F);\r\n\t}", "public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }", "public void increaseSpeed() {\n\t\tSystem.out.println(\"Cyborg speeds up!!!\");\n\t\tfor (int i = 0; i < gameObjects.size(); i++)\n\t\t{\n\t\t\tif (gameObjects.get(i) instanceof Cyborg)\n\t\t\t{\n\t\t\t\t((Cyborg) gameObjects.get(i)).increaseSpeed();\n\t\t\t}\n\t\t}\n\t}", "public Bullet(ProximityVector position, double angle, ParticleManager particleManager) {\n //Arguments: ProximityEffect particleEffect, int health, int speed, Sound sound, Image image, ProximityVector position, double angle, Creep target\n super(particleManager.getBulletEffect(), 1, 20, sound, img, position, angle);\n\n }", "public Bullet fireCannon1(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+110));\r\n\t}", "public void Hit()\n {\n this.numLives--;\n //Oscillate visible and not if the number of lives is greater than zero\n if(this.numLives > 0)\n {\n this.damaged = true;\n this.Blink(1);\n\n }\n }", "public void paintComponent(Graphics g) {\n super.paintComponent(g);\n Graphics2D g2d = (Graphics2D)g;\n\n\n g.setColor(Color.black);\n g2d.drawRect(clock_x, clock_y, clock_width, clock_height);\n Font fontClock = new Font(\"Courier\", Font.PLAIN, 130);\n g.setFont(fontClock);\n g.drawString(Long.toString(gameClock.displayTime()), clock_x, clock_y + clock_height);\n \n //enemy area\n //g.setColor(Color.black);\n //g2d.drawRect(enemy_x, enemy_y, enemy_width, enemy_height);\n if(enemyImage != null) {\n g2d.drawImage(enemyImage,\n enemy_x, enemy_y, enemy_width+enemy_x, enemy_height+enemy_y,\n 0, 0, enemyImage.getWidth(null),\n enemyImage.getHeight(null), null); \n } else {\n System.out.println(\"Enemy image is null\");\n }\n \n //draw targets\n for(target t : targets) {\n g.setColor(t.getColor());\n Ellipse2D.Double targ = new Ellipse2D.Double(t.get_x(), t.get_y(), t.get_diam(), t.get_diam());\n g2d.fill(targ);\n //g.drawRect(t.get_x(), t.get_y(), t.get_diam(), t.get_diam());\n Ellipse2D.Double hitCircle = new Ellipse2D.Double(t.get_x() - target_radius / 2, t.get_y() - target_radius / 2, t.get_diam() + target_radius, t.get_diam() + target_radius);\n g2d.draw(hitCircle);\n }\n\n //draw bullet holes\n for(bulletHole b : bullets) {\n //translate circle so that it\n //displays at correct coordinates\n //double translation = Math.sqrt(2 * (Math.pow(bullet_diam / 2, 2)));\n double translation = bullet_diam / 2;\n g.setColor(bulletHole);\n Ellipse2D.Double hole = new Ellipse2D.Double(b.get_x() - translation, b.get_y() - translation, b.get_diam(), b.get_diam());\n g2d.fill(hole);\n }\n\n //end of game\n //... or next round\n switch(end_round()) {\n case(1):\n g.setColor(Color.black);\n g.setFont(new Font(\"Narkisim\", Font.PLAIN, 150));\n current_round++;\n g.drawString(\"Round \"+current_round, 253, 350);\n refreshAll(false);\n break;\n \n case(2):\n g.setColor(Color.black);\n g.setFont(new Font(\"Narkisim\", Font.PLAIN, 135));\n g.drawString(\"You Lose!\", 240, 350);\n \n g.setColor(Color.black);\n Font fontPlayAgain = new Font(\"Mool Boran\", Font.PLAIN, 20);\n g.setFont(fontPlayAgain);\n g.drawString(\"Right Click to play again!\", 400, 400);\n //show score\n //then prompt to replay\n break;\n \n default:\n break;\n }\n }", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}", "public void act()\r\n {\n if (Greenfoot.getRandomNumber(1000)< flyRate)\r\n {\r\n addObject(new Fly(), getWidth(), Greenfoot.getRandomNumber(300));\r\n //flyRate++;\r\n }\r\n }", "public Bullet fireCannon2(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+340));\r\n\t}", "public float getSpeed(List<Integer> collectTime);", "@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}", "private void circle(){\n\t\tsquareCollison();\n\t\tsetMoveSpeed(10);\n\t}", "boolean testDrawBullet(Tester t) {\n return t.checkExpect(bullet1.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink))\n && t.checkExpect(bullet2.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink));\n }", "@Override\n public void tick() {\n setPosition(getPosition().add(getSpeed())); \n }", "void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}", "void tick() {\n\t\tif (playing) {\n\t\t\tdeadcannon = null;\n\t\t\t// sets general output message\n\t\t\tstatus.setText(\"Engaging alien wave \" + Integer.toString(level)+ \" \");\n\n\t\t\t// controls the first shot fired by the aliens\n\t\t\tif (shot1 == null) {\n\t\t\t\tint count1 = 0;\n\t\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\t\tif (alien3[i]!=null) {if (!alien3[i].Destroyed) count1++ ;}\n\t\t\t\t}\n\t\t\t\tif (count1 > 1) shot1 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\tshootbottom().pos_x + 18, shootbottom().pos_y); \n\t\t\t\telse {\n\t\t\t\t\tint count2 = 0;\n\t\t\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\t\t\tif (alien2[i]!=null) {if(!alien2[i].Destroyed)count2++;}\n\t\t\t\t\t}\n\t\t\t\t\tif (count2 > 1) shot1 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\tshootmiddle().pos_x + 18, shootmiddle().pos_y);\n\t\t\t\t\telse {\n\t\t\t\t\t\tint count3 = 0;\n\t\t\t\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\t\t\t\tif (alien1[i]!=null) {if(!alien1[i].Destroyed)count3++;}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (count3 != 0) shot1 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\t\tshoottop().pos_x + 18, shoottop().pos_y);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// controls the second shot fired by the aliens\n\t\t\tif (shot2 == null) {\n\t\t\t\tint count4 = 0;\n\t\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\t\tif (alien3[i]!=null) {if (!alien3[i].Destroyed) count4++ ;}\n\t\t\t\t}\n\t\t\t\tif (count4 != 0) {shot2 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\tshootbottom().pos_x + 18, shootbottom().pos_y); \n\t\t\t\tStdAudio.play(\"zap.wav\"); }\n\t\t\t\telse {\n\t\t\t\t\tint count5 = 0;\n\t\t\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\t\t\tif (alien2[i]!=null) {if(!alien2[i].Destroyed)count5++;}\n\t\t\t\t\t}\n\t\t\t\t\tif (count5 != 0) { shot2 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\tshootmiddle().pos_x + 18, shootmiddle().pos_y);\n\t\t\t\t\tStdAudio.play(\"zap.wav\"); }\n\t\t\t\t\telse {\n\t\t\t\t\t\tint count6 = 0;\n\t\t\t\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\t\t\t\tif (alien1[i]!=null) {if(!alien1[i].Destroyed)count6++;}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (count6 != 0) {shot2 = new Shot(COURT_WIDTH, COURT_HEIGHT, \n\t\t\t\t\t\t\t\tshoottop().pos_x + 18, shoottop().pos_y);\n\t\t\t\t\t\tStdAudio.play(\"zap.wav\");}\n\t\t\t\t\t\telse {level = level + 1; \n\t\t\t\t\t\tnewlevel();\n\t\t\t\t\t\tthescore=thescore + 100;\n\t\t\t\t\t\tStdAudio.play(\"up.wav\");}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// move bullet and delete if it reaches the roof\n\t\t\tif (bullet!= null) {\n\t\t\t\tbullet.move();\n\t\t\t\tif (bullet.pos_y == 0) bullet = null;\n\t\t\t}\n\n\t\t\t// controls movement of first shot\n\t\t\tif (shot1 != null) {\n\t\t\t\tshot1.move();\n\t\t\t\tif (shot1.pos_y > 435) shot1 = null;\n\t\t\t}\n\t\t\t// controls movement of second shot\n\t\t\tif (shot2 != null) {\n\t\t\t\tshot2.move();\n\t\t\t\tif (shot2.pos_y > 435) shot2 = null;\n\t\t\t}\n\n\t\t\t// For Top Row\n\n\t\t\t// change alien direction if a wall is reached\n\t\t\tif (alien1[0] != null && alien1[9] != null){\n\t\t\t\tif (alien1[0].pos_x == 0 || alien1[9].pos_x == 730) {\n\t\t\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\t\t\tif (alien1[i]!=null){alien1[i].v_x = -alien1[i].v_x;\n\t\t\t\t\t\talien1[i].pos_y=alien1[i].pos_y+15;\n\t\t\t\t\t\tif (alien1[i].pos_y >= 385 && !alien1[i].Destroyed){\n\t\t\t\t\t\t\tplaying = false;\n\t\t\t\t\t\t\tstatus.setText(\"You have been overrun and Earth \"+\n\t\t\t\t\t\t\t\t\t\"has been destroyed. You are a terrible \"+\n\t\t\t\t\t\t\t\t\t\"defender of humanity. \");\t \n\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// move the aliens as group\n\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\tif (alien1[i] != null) \n\t\t\t\t\talien1[i].move();\n\t\t\t}\n\n\t\t\t// destroy both bullet and aliens if bullet hits\n\t\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\t\tif (alien1[i] != null && bullet != null) {\n\t\t\t\t\tif (alien1[i].intersects(bullet) && !alien1[i].Destroyed) { \n\t\t\t\t\t\talien1[i].Destroyed=true;\n\t\t\t\t\t\tthescore += 20;\n\t\t\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\t\t\tbullet = null;\n\t\t\t\t\t\tif (i == 0 || i == 10 ) {\n\t\t\t\t\t\t\talien1[i].img_file = \"black.jpg\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// For Second Row\n\n\t\t\t// change alien direction if a wall is reached\n\t\t\tif (alien2[0] != null && alien2[9] != null){\n\t\t\t\tif (alien2[0].pos_x == 0 || alien2[9].pos_x == 730) {\n\t\t\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\t\t\tif (alien2[i]!=null){alien2[i].v_x = -alien2[i].v_x;\n\t\t\t\t\t\talien2[i].pos_y=alien2[i].pos_y+15;\n\t\t\t\t\t\tif (alien2[i].pos_y >= 385 && !alien2[i].Destroyed){\n\t\t\t\t\t\t\tplaying = false; \n\t\t\t\t\t\t\tstatus.setText(\"You have been ovverun and Earth \"+\n\t\t\t\t\t\t\t\t\t\"has been destroyed. You are a terrible \"+\n\t\t\t\t\t\t\t\t\t\"defender of humanity. \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// move the aliens as group\n\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\tif (alien2[i] != null) \n\t\t\t\t\talien2[i].move();\n\t\t\t}\n\n\t\t\t// destroy both bullet and aliens if bullet hits\n\t\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\t\tif (alien2[i] != null && bullet != null) {\n\t\t\t\t\tif (alien2[i].intersects(bullet) && !alien2[i].Destroyed) { \n\t\t\t\t\t\talien2[i].Destroyed=true;\n\t\t\t\t\t\tthescore +=15;\n\t\t\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\t\t\tbullet = null;\n\t\t\t\t\t\tif (i == 0 || i == 10 ) {\n\t\t\t\t\t\t\talien2[i].img_file = \"black.jpg\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//For third row\n\n\t\t\t//change alien direction if a wall is reached\n\t\t\tif (alien3[0] != null && alien3[9] != null){\n\t\t\t\tif (alien3[0].pos_x == 0 || alien3[9].pos_x == 730) {\n\t\t\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\t\t\tif (alien3[i]!=null){alien3[i].v_x = -alien3[i].v_x;\n\t\t\t\t\t\talien3[i].pos_y=alien3[i].pos_y+15;\n\t\t\t\t\t\tif (alien3[i].pos_y >= 385 && !alien3[i].Destroyed){\n\t\t\t\t\t\t\tplaying = false;\n\t\t\t\t\t\t\tstatus.setText(\"You have been ovverrun and Earth \"+\n\t\t\t\t\t\t\t\t\t\"has been destroyed. You are a terrible \"+\n\t\t\t\t\t\t\t\t\t\"defender of humanity. \");\n\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// move the aliens as group\n\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\tif (alien3[i] != null) \n\t\t\t\t\talien3[i].move();\n\t\t\t}\n\n\t\t\t// destroy both bullet and aliens if bullet hits\n\t\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\t\tif (alien3[i] != null && bullet != null) {\n\t\t\t\t\tif (alien3[i].intersects(bullet) && !alien3[i].Destroyed) { \n\t\t\t\t\t\talien3[i].Destroyed=true;\n\t\t\t\t\t\tthescore += 10;\n\t\t\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\t\t\tbullet = null;\n\t\t\t\t\t\tif (i == 0 || i == 10) {\n\t\t\t\t\t\t\talien3[i].img_file = \"black.jpg\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// destroy cannon if shot\n\t\t\tif (shot1 != null) {\n\t\t\t\tif (shot1.intersects(cannon)){ dead = true; \n\t\t\t\tthelives = thelives - 1;\n\t\t\t\tStdAudio.play(\"bigboom.wav\");\n\t\t\t\tcannon.img_file = \"dead.jpg\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (shot2 != null) {\n\t\t\t\tif (shot2.intersects(cannon)){ dead = true; \n\t\t\t\tthelives = thelives - 1;\n\t\t\t\tStdAudio.play(\"bigboom.wav\");}\n\t\t\t\tcannon.img_file = \"dead.jpg\";\n\t\t\t}\n\n\t\t\t// ends the game when all lives are lost\n\t\t\tif (thelives <= 0) {\n\t\t\t\tplaying = false; \n\t\t\t\tStdAudio.play(\"bomb-02.wav\");\n\t\t\t\tstatus.setText(\"You have been killed and Earth has been \" +\n\t\t\t\t\t\t\"destroyed. You are a terrible defender \" +\n\t\t\t\t\t\t\"of humanity. \");\n\t\t\t}\n\n\t\t\t//makes sure lives cannot become negative\n\t\t\tif (thelives <= 0) {\n\t\t\t\tthelives = 0;\n\t\t\t\tdeadcannon = new DeadCannon(COURT_WIDTH, COURT_HEIGHT);\n\t\t\t\tdeadcannon.pos_x = cannon.pos_x;\n\t\t\t\tStdAudio.play(\"loss.wav\");\n\t\t\t}\n\n\t\t\t//set the text labels at the bottom of the screen\n\t\t\tmyscore.setText(\"Score = \"+ Integer.toString(thescore)+ \" \");\n\t\t\tmylives.setText(\"Lives = \"+ Integer.toString(thelives));\n\t\t\trepaint();\n\t\t\n\t\t\t//move cannon\n\t\t\tcannon.move();\n\t\t} \n\t}" ]
[ "0.6929035", "0.674409", "0.6722419", "0.6603789", "0.64049274", "0.6263195", "0.6224064", "0.62009203", "0.6188222", "0.6142695", "0.61278987", "0.6098795", "0.6064556", "0.6059505", "0.6046006", "0.6032988", "0.60206944", "0.6007033", "0.59935844", "0.59515905", "0.5935529", "0.59242684", "0.5919207", "0.5890762", "0.584822", "0.58450407", "0.58286816", "0.58260006", "0.58250225", "0.581441", "0.5798778", "0.5795301", "0.57896274", "0.57303554", "0.56712335", "0.5668343", "0.56647056", "0.56525207", "0.5648602", "0.5619076", "0.56158406", "0.56158113", "0.5615767", "0.56095797", "0.5606034", "0.5601577", "0.55892557", "0.55792964", "0.5575055", "0.5573974", "0.5565161", "0.55575216", "0.55555034", "0.55514735", "0.55459833", "0.55422527", "0.554006", "0.5532619", "0.5532284", "0.5523307", "0.5507096", "0.5503943", "0.55037975", "0.54973423", "0.5495669", "0.5494164", "0.5488413", "0.54847723", "0.54823714", "0.5477624", "0.5473913", "0.5470935", "0.54682577", "0.54682577", "0.5462317", "0.5454284", "0.54528195", "0.5446232", "0.5446232", "0.5446232", "0.5435431", "0.54340565", "0.54331166", "0.5432249", "0.5431435", "0.5419626", "0.5414825", "0.54110724", "0.5409114", "0.5402128", "0.5400883", "0.5393995", "0.53846353", "0.5383861", "0.5383486", "0.53734505", "0.5372163", "0.5358625", "0.535327", "0.5351254" ]
0.78556246
0
A method to fire pink color quickfire bullets. Quick fire bullets have a reduced waiting time between each fire.
private void quickFireBulletFire() { bulletArrayList.add( new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, "Pink")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 50, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t}", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot < 0)\r\n\t\t\treturn;\r\n\t\t// ...then launch a new bullet\r\n\t\tbullets[slot].setLocation(locX, locY);\r\n\t\tbullets[slot].setDirection(angle);\r\n\t\tbullets[slot].reset();\r\n\t\t// Reset the timer\r\n\t\tcount = RELOAD;\r\n\t}", "public void fire() {\n\n\t\t// A player cannot continually fire, there is a delay between each bullet.\n\t\tif (isAbleToFire) {\n\n\t\t\taudio.playMusic(\"Audio/Fire.wav\");\n\n\t\t\tif (multiBulletIsActive) {\n\n\t\t\t\tmultiBulletFire();\n\n\t\t\t} else if (speedBulletIsActive) {\n\n\t\t\t\tspeedBulletFire();\n\n\t\t\t} else if (quickFireBulletIsActive) {\n\n\t\t\t\tquickFireBulletFire();\n\n\t\t\t} else {\n\n\t\t\t\t// Single fire.\n\t\t\t\t// Adjust bullet position to be fired from the center of the player.\n\t\t\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition,\n\t\t\t\t\t\tbulletWidth, bulletHeight, \"Red\"));\n\t\t\t}\n\n\t\t\t// Stop the player from being able to fire for 'ticksBetweemFire' amount.\n\t\t\tticksToNextFire = currentTickCount + ticksBetweenFire;\n\t\t}\n\t}", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "private void fire(GameEngine gameEngine) {\n Bullet bullet1 = gameEngine.getBulletEnemy();\n if (bullet1 == null) {\n return;\n }\n bullet1.init(this, positionX + imageWidth/2, positionY, 0);\n gameEngine.addGameObject(bullet1);\n gameEngine.playSound(1);\n }", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "public void fireBullet(int direction , int posX, int posY ){\n if ( clockBullet.getElapsedTime().asMilliseconds() > 100 ){\n int lowestbulletNo = 10;\n for( int i = 9; i > 0; i-- ){\n if ( bulletSpace.get(i).isEnabled() == false){\n lowestbulletNo = i;//find the first bullet in the gun barrol\n }\n }\n\n if ( lowestbulletNo < 10 ){\n bulletSpace.get(lowestbulletNo).setDirection(direction);\n bulletSpace.get(lowestbulletNo).setDistance(0);\n bulletSpace.get(lowestbulletNo).setPosX(posX - map.getX()) ;\n bulletSpace.get(lowestbulletNo).setPosY(posY - map.getY()) ;\n bulletSpace.get(lowestbulletNo).enabled(true);\n bulletSpace.get(lowestbulletNo).setRotation(direction+1);\n }\n }\n clockBullet.restart();\n }", "private void fire()\n {\n if (frames % 300 == 0 || frames == 0)\n {\n for(int i = 0; i <=6; i++)\n {\n FireBall fireBall = new FireBall();\n getWorld().addObject(fireBall, getX()+30, getY()); \n }\n }\n }", "private void drawFireworks() {\n\t\tgc.setFill(BACKGROUND_COLOUR);\r\n\t\tgc.fillRect(0, 0, canvas.getWidth(), canvas.getHeight());\r\n\t\tif (fireworks.size() > 0){\r\n\t\t\tfor (Particle firework : fireworks) {\r\n\t\t\t\t// Get the position for the Particle\r\n\t\t\t\tdouble[] pos = firework.getPosition();\r\n\t\t\t\tif (firework instanceof Streak){\r\n\t\t\t\t\t// Streaks are lines from the firework to the origin\r\n\t\t\t\t\tdouble[] origin = ((Streak) firework).getOrigin();\r\n\t\t\t\t\tgc.setFill(spreadColor(firework.getColour()));\r\n\t\t\t\t\tgc.strokeLine(xPos(origin[0]),yPos(origin[1]),xPos(pos[0]),yPos(pos[1]));\r\n\t\t\t\t}\r\n\t\t\t\telse if (firework instanceof BurningParticle){\r\n\t\t\t\t\t// Burning Particles are the stars themselves\r\n\t\t\t\t\t// Saves the star object to test for a collision later\r\n\t\t\t\t\tStar1 = (BurningParticle) firework.clone();\r\n\t\t\t\t\tgc.setFill(firework.getColour());\r\n\t\t\t\t\tgc.fillOval(xPos(pos[0]),yPos(pos[1]), 6, 6);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Everything else is a spark and can have a random color / transparency \r\n\t\t\t\t\tgc.setFill(spreadColor(firework.getColour()));\r\n\t\t\t\t\tgc.fillOval(xPos(pos[0]),yPos(pos[1]), 1 + 3*Math.random(), 1 + 3*Math.random());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// update the current time and the fireworks attribute\r\n\t\t\ttime = (time + TIME_INTERVAL);\r\n\t\t\tfireworks = manager1.getFireworks(time);\r\n\t\t}\r\n\t}", "public void fire() {\n \tAlienMissile.Slope slps[] = {AlienMissile.Slope.ShallowLeft, \n AlienMissile.Slope.Down,\n AlienMissile.Slope.ShallowRight};\n for (AlienMissile.Slope i : slps) {\n AlienMissile m = new AlienMissile(this, i);\n m.setBounce(true, health/5);\n list.add(m);\n }\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "protected void handleFiring(double dt)\r\n\t{\r\n\t\t//Fire if the mouse button is pressed.\r\n\t\tif (input.getMouseButton(InputHandler.FIRE) && charge <= 0 && energy >= energyUse)\r\n\t\t{\r\n\t\t\tEntityBullet bullet = (EntityBullet)c.createEntity(w, EI.EntityBullet);\r\n\t\t\tdouble xDir = Math.cos(horizontalDir)*Math.cos(verticalDir),\r\n\t\t\t\t\tyDir = Math.sin(horizontalDir)*Math.cos(verticalDir), zDir = Math.sin(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble xDisp = shotX*Math.cos(verticalDir) - shotZ*Math.sin(verticalDir);\r\n\t\t\tdouble zDisp = shotX*Math.sin(verticalDir) + shotZ*Math.cos(verticalDir);\r\n\t\t\t\r\n\t\t\tdouble yDisp = xDisp*Math.sin(horizontalDir) - shotY*Math.cos(horizontalDir);\r\n\t\t\txDisp = xDisp*Math.cos(horizontalDir) + shotY*Math.sin(horizontalDir);\r\n\t\t\t\r\n\t\t\t//t is to prevent bullets from spawning through walls.\r\n\t\t\t\r\n\t\t\tdouble t = w.getCollision().getBulletCollision(x, y, z, xDisp, yDisp, zDisp);\r\n\t\t\t\r\n\t\t\tif (t == 1)\r\n\t\t\t{\r\n\t\t\t\t//Create the bullet\r\n\t\t\t\tenergy -= energyUse;\r\n\t\t\t\tbullet.setPosition(x+xDisp, y+yDisp, z+zDisp);\r\n\t\t\t\tint vel = 60;\r\n\t\t\t\t\r\n\t\t\t\tbullet.setVelocity(vel*xDir, vel*yDir, vel*zDir);\r\n\t\t\t\tbullet.setDamage(1, 1);//damage, knockback\r\n\t\t\t\tbullet.setColor(0, 1, 0);\r\n\t\t\t\t\r\n\t\t\t\tbullet.setOwner(player);\r\n\t\t\t\t\r\n\t\t\t\tw.create(bullet);\r\n\t\t\t\t\r\n\t\t\t\tcharge = shotDelay;\r\n\t\t\t\t\r\n\t\t\t\t//Laser gun sound\r\n\t\t\t\tc.getSoundHandler().playSound(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Weapon recharging\r\n\t\tcharge -= dt;\r\n\t}", "void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }", "public void drawFire(Graphics g){\n \n if(player.getScore()>= initScore+1000){\n fireRecord.add(new Fire());\n initScore+=1000;\n } \n \n for(int i=0; i<fireRecord.size(); i++){\n Fire current = fireRecord.get(i);\n boolean test = current.test(player.getX(), player.getY(), player.getW(), player.getH(),-5); \n if(!delay){\n if(test){\n player.loseLife();\n delay = true; //If player loses a life, become invulnerable for a short period of time\n }\n }\n \n if (moveCount%5000 == 0){ /// Delay after taking dmg\n delay = false;\n } \n \n if(moveCount%speedAdj==0){ //Adjust Speed\n current.addX();\n current.addY();\n }\n g.drawImage(current.getImage(), current.getX(), current.getY(), this); \n } \n }", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "public static void LaunchFirework(final Location spawnLocation, final FireworkEffect.Type type, final int power, final ArrayList<Color> colors, final ArrayList<Color> fadecolors, final boolean flicker, final boolean trail, final int launchdelay, final int detonatedelay) {\n\t\tBukkit.getServer().getScheduler().scheduleSyncDelayedTask(SurvivalGames.plugin, () -> {\n\t\t\tfinal Firework firework = (Firework) spawnLocation.getWorld().spawnEntity(spawnLocation, EntityType.FIREWORK);\n\t\t\tfinal FireworkMeta metadata = firework.getFireworkMeta();\n\n\t\t\tfinal Builder builder = FireworkEffect.builder();\n\t\t\tbuilder.with(type);\n\t\t\tbuilder.flicker(flicker);\n\t\t\tbuilder.trail(trail);\n\t\t\tbuilder.withColor(colors);\n\t\t\tbuilder.withFade(fadecolors);\n\n\t\t\tfinal FireworkEffect effect = builder.build();\n\t\t\tmetadata.addEffect(effect);\n\n\t\t\tmetadata.setPower(power);\n\t\t\tfirework.setFireworkMeta(metadata);\n\t\t\tif (detonatedelay > 0) {\n\t\t\t\t// Detonate next tick\n\t\t\t\tBukkit.getServer().getScheduler().scheduleSyncDelayedTask(SurvivalGames.plugin, firework::detonate, detonatedelay);\n\t\t\t}\n\t\t}, launchdelay);\n\t}", "@Override\r\n public int fire() {\r\n if (this.getBulletsCount() == 0) {\r\n return 0;\r\n }\r\n this.setBulletsCount(this.getBulletsCount() - 10);\r\n return 10;\r\n }", "private void fire() {\n\t\tlog.finer(\"Firing node\");\n\t\t\n\t\tplay();\n\t\taddAnimation(new NodeEcho(parent, pos, diam, diam + 15));\n\t}", "@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b.x, b.y, 3f * b.fout());\n Draw.reset();\n }", "@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}", "public void setRemainingFireTicks(int debug1) {\n/* 2105 */ super.setRemainingFireTicks(this.abilities.invulnerable ? Math.min(debug1, 1) : debug1);\n/* */ }", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void fire() {\n \tintakeTalon1.set(1);\n \tintakeTalon2.set(1);\n }", "boolean testDrawBullet(Tester t) {\n return t.checkExpect(bullet1.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink))\n && t.checkExpect(bullet2.draw(), new CircleImage(2, OutlineMode.SOLID, Color.pink));\n }", "public static void launchFirewor(Player p) {\n Firework fw = (Firework) p.getWorld().spawnEntity(p.getLocation(), EntityType.FIREWORK);\n FireworkMeta fwm = fw.getFireworkMeta();\n \n //Our random generator\n Random r = new Random(); \n\n //Get the type\n int rt = r.nextInt(4) + 1;\n Type type = Type.BALL; \n if (rt == 1) type = Type.BALL;\n if (rt == 2) type = Type.BALL_LARGE;\n if (rt == 3) type = Type.BURST;\n if (rt == 4) type = Type.CREEPER;\n if (rt == 5) type = Type.STAR;\n \n //Get our random colours \n Color c1 = Color.AQUA;\n Color c2 = Color.BLACK;\n \n //Create our effect with this\n FireworkEffect effect = FireworkEffect.builder().flicker(r.nextBoolean()).withColor(c1).withFade(c2).with(type).trail(r.nextBoolean()).build();\n \n //Then apply the effect to the meta\n fwm.addEffect(effect);\n \n //Generate some random power and set it\n int rp = r.nextInt(2) + 1;\n fwm.setPower(rp);\n \n //Then apply this to our rocket\n fw.setFireworkMeta(fwm); \n\t}", "private void firepowerBar(Entity entity, CannonPart cannonPart, SpriteBatch batch) {\n pixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n pixmap.setColor(Color.CYAN);\n pixmap.fill();\n firepowerTexture = new Texture(pixmap);\n batch.begin();\n batch.draw(firepowerTexture, cannonPart.getJointX() + xOffSet, cannonPart.getJointY() + yOffSet, barWidth\n , barHeight * cannonPart.getFirepower() / cannonPart.getMaxFirepower());\n batch.end();\n pixmap.dispose();\n firepowerTexture.dispose();\n }", "public void fire(TileEnvironment levelEnv) {\n\t\t\n\t}", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "public static void LaunchFirework(final Location spawnLocation, final FireworkEffect.Type type, final int power, final Color color, final int launchdelay, final int detonatedelay) {\n final ArrayList<Color> colors = new ArrayList<>();\n\t\tcolors.add(color);\n\t\t\n\t\tLaunchFirework(spawnLocation, type, power, colors, colors, true, true, launchdelay, detonatedelay);\n\t}", "public void tick() {\r\n\r\n\t\tif (!targeted) {\r\n\t\t\tTarget = acquireTarget();\r\n\t\t} else if (timeSinceLastShot > firingSpeed) {\r\n\t\t\tangle = calculateAngle();\r\n\t\t\tshoot(Target);\r\n\t\t\ttimeSinceLastShot = 0;\r\n\t\t}\r\n\t\tif (Target == null || Target.isAlive() == false) {\r\n\t\t\ttargeted = false;\r\n\t\t}\r\n\r\n\t\ttimeSinceLastShot += Delta();\r\n\r\n\t\tfor (Dart dart : darts) {\r\n\t\t\tdart.tick();\r\n\t\t}\r\n\r\n\t\tdraw();\r\n\t}", "public void tryToFire() {\n\t\tif (System.currentTimeMillis() - lastFire < firingInterval) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// if we waited long enough, create the shot entity, and record the time.\n\t\tlastFire = System.currentTimeMillis();\n\t\tShotEntity shot = new ShotEntity(this,\"shot.gif\",ship.getX()+10,ship.getY()-30, 1);\n\t\tentities.add(shot);\n\t}", "@Override\n public List<Bullet> tick(List<Creep> creeps, boolean levelInProgress) {\n timeToNextShot--;\n List<Bullet> fired = null;\n if(imageRotates || timeToNextShot <= 0) {\n // The creeps are sorted by the default creep comparator in Clock, so that they don't\n // have to be resorted for any tower left on the default (which is often most of them)\n if(!creepComparator.getClass().equals(DEFAULT_CREEP_COMPARATOR.getClass())) {\n // Make a copy so it can be sorted\n creeps = new ArrayList<Creep>(creeps);\n Collections.sort(creeps, creepComparator);\n }\n // If the image rotates, this needs to be done to find out the direction to rotate to\n fired = fireBullets(creeps);\n }\n if (timeToNextShot <= 0 && fired != null && fired.size() > 0) {\n timeToNextShot = fireRate;\n // Use bulletsToAdd as some towers launch bullets between ticks\n bulletsToAdd.addAll(fired);\n }\n List<Bullet> bulletsToReturn = bulletsToAdd;\n bulletsToAdd = new ArrayList<Bullet>();\n return bulletsToReturn;\n }", "public abstract void fire();", "public abstract void fire();", "public void onHitByBullet() {\r\n\t\t// Move ahead 100 and in the same time turn left papendicular to the bullet\r\n\t\tturnAheadLeft(100, 90 - hitByBulletBearing);\r\n\t}", "public static void displayFirework(Player p, double x, double y, double z, ItemStack firework){\n\n //create and spawn a firework rocket from our itemstack\n EntityFireworks fw = new EntityFireworks(((CraftWorld) p.getWorld()).getHandle());\n fw.setLocation(x, y, z, 0f, 0f);\n\n PacketPlayOutSpawnEntity alive = new PacketPlayOutSpawnEntity(fw, 76);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(alive);\n\n //i looked at what mincreaft does in vanilla whe you launch a firework on a server. I just copied what they do here by editing a datawatcher. dont ask me how or why, but it works.\n DataWatcher dataWatcher = fw.getDataWatcher();\n for(DataWatcher.WatchableObject obj: dataWatcher.c()){\n if(obj.c()==5 && obj.a()==8 && obj.b()==null){\n obj.a(firework);\n }\n }\n\n //give the entity some meta\n PacketPlayOutEntityMetadata itemMeta = new PacketPlayOutEntityMetadata(fw.getId(), fw.getDataWatcher(), true);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(itemMeta);\n\n //also play a sound\n PacketPlayOutNamedSoundEffect sound = new PacketPlayOutNamedSoundEffect(\"fireworks.launch\", x, y, z, 3f, 1f);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(sound);\n\n\n //wait 30 ticks before we detonate it.\n //IMPORTANT: wait too long and the players client will freeze!\n new BukkitRunnable() {\n @Override\n public void run() {\n //detonate the firework, and destroy the entity.\n PacketPlayOutEntityStatus status = new PacketPlayOutEntityStatus(fw, (byte) 17);\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(status);\n PacketPlayOutEntityDestroy destroy = new PacketPlayOutEntityDestroy(fw.getId());\n ((CraftPlayer) p).getHandle().playerConnection.sendPacket(destroy);\n }\n }.runTaskLater(Juggernaut.pluginInstance, 30L);\n }", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "protected void playStepSound(int par1, int par2, int par3, int par4)\n {\n this.playSound(\"mob.spider.step\", 0.15F, 1.0F);\n }", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "public static boolean addFireWound(@Nullable Creature performer, @Nonnull Creature defender, int pos, double damage, float armourMod, float infection, float poison, boolean noMinimumDamage, boolean spell) {\n/* 1798 */ if (performer != null && performer.getTemplate().getCreatureAI() != null)\n/* */ {\n/* 1800 */ damage = performer.getTemplate().getCreatureAI().causedWound(performer, defender, (byte)4, pos, armourMod, damage);\n/* */ }\n/* */ \n/* 1803 */ if (defender.getTemplate().getCreatureAI() != null)\n/* */ {\n/* 1805 */ damage = defender.getTemplate().getCreatureAI().receivedWound(defender, performer, (byte)4, pos, armourMod, damage);\n/* */ }\n/* */ \n/* 1808 */ if (defender.getCultist() != null && defender.getCultist().hasNoElementalDamage())\n/* 1809 */ return false; \n/* 1810 */ boolean dead = false;\n/* 1811 */ if (damage * armourMod > 500.0D || noMinimumDamage) {\n/* */ DbWound dbWound;\n/* 1813 */ if (defender.hasSpellEffect((byte)68)) {\n/* */ \n/* 1815 */ defender.reduceStoneSkin();\n/* 1816 */ return false;\n/* */ } \n/* 1818 */ Wound wound = null;\n/* 1819 */ boolean foundWound = false;\n/* 1820 */ if (performer != null) {\n/* */ \n/* 1822 */ ArrayList<MulticolorLineSegment> segments = new ArrayList<>();\n/* 1823 */ segments.add(new MulticolorLineSegment(\"Your weapon\", (byte)3));\n/* 1824 */ segments.add(new MulticolorLineSegment(\" burns \", (byte)3));\n/* 1825 */ segments.add(new CreatureLineSegment(defender));\n/* 1826 */ segments.add(new MulticolorLineSegment(\".\", (byte)3));\n/* */ \n/* 1828 */ performer.getCommunicator().sendColoredMessageCombat(segments);\n/* */ \n/* 1830 */ segments.set(0, new CreatureLineSegment(performer));\n/* 1831 */ for (MulticolorLineSegment s : segments) {\n/* 1832 */ s.setColor((byte)7);\n/* */ }\n/* 1834 */ defender.getCommunicator().sendColoredMessageCombat(segments);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1840 */ if (defender.getBody().getWounds() != null) {\n/* */ \n/* 1842 */ wound = defender.getBody().getWounds().getWoundTypeAtLocation((byte)pos, (byte)4);\n/* 1843 */ if (wound != null)\n/* */ {\n/* 1845 */ if (wound.getType() == 4) {\n/* */ \n/* 1847 */ defender.setWounded();\n/* 1848 */ wound.setBandaged(false);\n/* 1849 */ dead = wound.modifySeverity((int)(damage * armourMod), (performer != null && performer.isPlayer()), spell);\n/* 1850 */ foundWound = true;\n/* */ } else {\n/* */ \n/* 1853 */ wound = null;\n/* */ } } \n/* */ } \n/* 1856 */ if (wound == null)\n/* */ {\n/* 1858 */ if (WurmId.getType(defender.getWurmId()) == 1) {\n/* 1859 */ TempWound tempWound = new TempWound((byte)4, (byte)pos, (float)damage * armourMod, defender.getWurmId(), poison, infection, spell);\n/* */ } else {\n/* */ \n/* 1862 */ dbWound = new DbWound((byte)4, (byte)pos, (float)damage * armourMod, defender.getWurmId(), poison, infection, (performer != null && performer.isPlayer()), spell);\n/* */ } \n/* */ }\n/* 1865 */ if (!foundWound)\n/* 1866 */ dead = defender.getBody().addWound((Wound)dbWound); \n/* */ } \n/* 1868 */ return dead;\n/* */ }", "protected void playStepSound(int par1, int par2, int par3, int par4)\n {\n this.playSound(\"lom:trexfootstep\", 0.15F, 1.0F);\n }", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the bullet from the list of the bullet\n if(tempBullet.detectBound()){\n bullets.remove(i);\n continue;\n }\n //detect if the bullet hit the boss and cause the damage if yes\n if(tempBullet.hitObject(Main.boss) && Main.boss.alive){\n Main.boss.decreaseHealth(attack);\n tempBullet.drawHit();\n bullets.remove(i);\n if(Main.boss.health <= 0){\n Main.boss.alive = false;\n Main.boss.deadTime = millis();\n Main.score += 100;\n }\n }\n //detect if the bullet hit the enemy and cause the damage if yes\n for(int j = 0; j < Main.enemies.size(); j++){\n Enemy tempEnemy = Main.enemies.get(j);\n if(tempBullet.hitObject(tempEnemy) && tempEnemy.alive){\n tempBullet.drawHit();\n tempEnemy.decreaseHealth(attack);\n // if enemy is totally hitted, wait one 1s, and then removed\n if(tempEnemy.health <= 0){\n tempEnemy.alive = false;\n tempEnemy.deadTime = millis();\n }\n bullets.remove(i);\n break;\n }\n }\n }\n }", "public Bullet fireCannon1(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+110));\r\n\t}", "public Fire(Transform transform) {\r\n\t\t\r\n\t\tthis.fireSeed = new Random().nextInt(3) + 1;\r\n\t\tanimation = new ArrayList<Texture>();\r\n \t\r\n\t\tif(fireSeed == 1) {\r\n \r\n animation.add(new Texture(RES_LOC + \"F1REA0\"));\r\n animation.add(new Texture(RES_LOC + \"F1REB0\"));\r\n animation.add(new Texture(RES_LOC + \"F1REC0\"));\r\n animation.add(new Texture(RES_LOC + \"F1RED0\"));\r\n animation.add(new Texture(RES_LOC + \"F1REE0\"));\r\n animation.add(new Texture(RES_LOC + \"F1REF0\"));\r\n animation.add(new Texture(RES_LOC + \"F1REG0\"));\r\n animation.add(new Texture(RES_LOC + \"F1REH0\"));\r\n\t\t} else if(fireSeed == 2) {\r\n\r\n animation.add(new Texture(RES_LOC + \"F2REA0\"));\r\n animation.add(new Texture(RES_LOC + \"F2REB0\"));\r\n animation.add(new Texture(RES_LOC + \"F2REC0\"));\r\n animation.add(new Texture(RES_LOC + \"F2RED0\"));\r\n animation.add(new Texture(RES_LOC + \"F2REE0\"));\r\n animation.add(new Texture(RES_LOC + \"F2REF0\"));\r\n animation.add(new Texture(RES_LOC + \"F2REG0\"));\r\n animation.add(new Texture(RES_LOC + \"F2REH0\"));\r\n\t\t} else if(fireSeed == 3) {\r\n\r\n animation.add(new Texture(RES_LOC + \"FLMEA0\"));\r\n animation.add(new Texture(RES_LOC + \"FLMEB0\"));\r\n animation.add(new Texture(RES_LOC + \"FLMEC0\"));\r\n animation.add(new Texture(RES_LOC + \"FLMED0\"));\r\n animation.add(new Texture(RES_LOC + \"FLMEE0\"));\r\n animation.add(new Texture(RES_LOC + \"FLMEF0\"));\r\n animation.add(new Texture(RES_LOC + \"FLMEG0\"));\r\n animation.add(new Texture(RES_LOC + \"FLMEH0\"));\r\n\t\t}\r\n\t\t\r\n\t\tsounds = new ArrayList<Clip>();\r\n\t\t\r\n\t\tfor (int i = 1; i < 3; i++)\r\n\t\t\tsounds.add(AudioUtil.loadAudio(RES_LOC + \"FIRE\" + i));\r\n \t\r\n if (mesh == null) {\r\n float sizeY = 0.75f;\r\n if(fireSeed == 3)\r\n \tsizeX = (float) ((double) sizeY / (1.0f * 4.0));\r\n else\r\n \tsizeX = (float) ((double) sizeY / (1.0f * 2.0));\r\n\r\n float offsetX = 0.0f;\r\n float offsetY = 0.0f;\r\n\r\n float texMinX = -offsetX;\r\n float texMaxX = -1 - offsetX;\r\n float texMinY = -offsetY;\r\n float texMaxY = 1 - offsetY;\r\n\r\n Vertex[] verts = new Vertex[]{new Vertex(new Vector3f(-sizeX, 0, 0), new Vector2f(texMaxX, texMaxY)),\r\n new Vertex(new Vector3f(-sizeX, sizeY, 0), new Vector2f(texMaxX, texMinY)),\r\n new Vertex(new Vector3f(sizeX, sizeY, 0), new Vector2f(texMinX, texMinY)),\r\n new Vertex(new Vector3f(sizeX, 0, 0), new Vector2f(texMinX, texMaxY))};\r\n\r\n int[] indices = new int[]{0, 1, 2,\r\n 0, 2, 3};\r\n\r\n mesh = new Mesh(verts, indices, true);\r\n }\r\n this.componentType = \"particle\";\r\n this.material = new Material(animation.get(0));\r\n this.state = STATE_FIRE;\r\n this.transform = transform;\r\n this.meshRenderer = new MeshRenderer(mesh, getTransform(), material);\r\n\t this.light = new PointLight(new Vector3f(0.75f,0.5f,0.1f), 0.8f, \r\n\t\t\t\t new Attenuation(0,0,1), getTransform().getPosition());\r\n\t this.light.addToEngine();\r\n this.fireSound = sounds.get(new Random().nextInt(sounds.size()));\r\n \tAudioUtil.playAudio(fireSound, transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length());\r\n }", "@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\n }", "private void explode()\r\n {\n isExploded = true;\r\n Color test = Color.hsb(Utils.getRandom(0, 360), 1, 1);\r\n for (int i = 0; i < 100; i++)\r\n {\r\n Color var = test;\r\n for (int j = 0; j < Utils.getRandomInt(5); j++)\r\n {\r\n var = var.brighter();\r\n }\r\n Firework mark1 = new Firework(this.x, this.y, var);\r\n Main.child.add(mark1.getNode());\r\n }\r\n reset();\r\n }", "public void shoot(int bulletLeft) {\n float xValue = canon.getX();\n float yValue = canon.getY();\n bullets.get(bulletLeft).setVisibility(View.VISIBLE);\n shootingMotion(bullets.get(bulletLeft), xValue, yValue);\n\n }", "public void shoot() {\r\n\t\twhile (rounds > 1) {\r\n\t\t\trounds--;\r\n\t\t\tSystem.out.println(gunType + \" is shooting now\\n\" + rounds + \" \\nCLACK! CLACK! CLAK! CLAK! CLAK!\");\r\n\t\t\tif (rounds == 1) {\r\n\t\t\t\tSystem.out.println(\"Magazine's Empty!! \\nRELOAD!!\\nRELOAD!!!\\nRELAOD!!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void preFire(){\n\t}", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\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 * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}", "boolean bulletGrow(Tester t) {\n return t.checkExpect(this.bullet2.grow(), 4) && t.checkExpect(this.bullet4.grow(), 8);\n }", "private void indexFirework(){\n firework = new ItemStack(Material.FIREWORK, 1);\n FireworkMeta meta = (FireworkMeta) firework.getItemMeta();\n\n meta.addEffect(FireworkEffect.builder().with(FireworkEffect.Type.BALL).withColor(Color.LIME).build());\n meta.setPower(1);\n firework.setItemMeta(meta);\n }", "@Override\n public void update(GameContainer gc, StateBasedGame stateBasedGame, int delta) throws SlickException {\n timeSinceStart += delta;\n rtimeSinceStart += delta;\n Input input = gc.getInput();\n int mouseX = input.getMouseX();\n int mouseY = input.getMouseY();\n\n\n basicbulletSheet.rotate(90f);\n basicbulletSheet.setCenterOfRotation(16, 16);\n\n // Move this bullet\n for (int i = 0; i < bulletList.size(); i++) {\n bullet = bulletList.get(i);\n bullet.move();\n }\n\n //Add this tower to the this towerList\n if (Tower.isBasicPlaced()) {\n basicTowers.add(new BasicTower());\n System.out.println(basicTowers);\n Tower.setBasicPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isBomberPlaced()) {\n bomberTowers.add(new BomberTower());\n System.out.println(bomberTowers);\n Tower.setBomberPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isSniperPlaced()) {\n sniperTowers.add(new SniperTower());\n System.out.println(sniperTowers);\n Tower.setSniperPlaced(false);\n }\n\n //Add this tower to the this towerList\n if (Tower.isQuickPlaced()) {\n quickTowers.add(new QuickTower());\n System.out.println(quickTowers);\n Tower.setQuickPlaced(false);\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BasicTower basicTower1 : basicTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > basicTower1.rcoolDown + basicTower1.rlastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n basicTower1.basicClicked.setRotation((float) getTargetAngle(basicTower1.towerX,\n basicTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n basicTower1.basicClicked.setCenterOfRotation(32, 32);\n basicTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > basicTower1.coolDown + basicTower1.lastShot) {\n if (enemy.Playrect.intersects(basicTower1.Radius)) {\n addNewBullet2(basicTower1.towerX, basicTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n basicTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n\n //For this tower, calculate how often this tower will shoot bullets\n for (BomberTower bomberTower1 : bomberTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n if (rtimeSinceStart > bomberTower1.rcoolDown + bomberTower1.rlastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n bomberTower1.bomberClicked.setRotation((float) getTargetAngle(bomberTower1.bombertowerX,\n bomberTower1.bombertowerY, enemy.getStartPosX(), enemy.getStartPosY()));\n bomberTower1.bomberClicked.setCenterOfRotation(32, 32);\n bomberTower1.rlastShot = rtimeSinceStart;\n }\n }\n if (timeSinceStart > bomberTower1.coolDown + bomberTower1.lastShot) {\n if (enemy.Playrect.intersects(bomberTower1.Radius)) {\n addNewBullet2(bomberTower1.bombertowerX, bomberTower1.bombertowerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 10);\n bomberTower1.lastShot = timeSinceStart;\n }\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (SniperTower sniperTower1 : sniperTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > sniperTower1.rcoolDown + sniperTower1.rlastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n sniperTower1.sniperClicked.setRotation((float) getTargetAngle(sniperTower1.towerX,\n sniperTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n sniperTower1.sniperClicked.setCenterOfRotation(32, 32);\n sniperTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n if (timeSinceStart > sniperTower1.coolDown + sniperTower1.lastShot) {\n if (enemy.Playrect.intersects(sniperTower1.Radius)) {\n addNewBullet2(sniperTower1.towerX, sniperTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 50);\n sniperTower1.lastShot = timeSinceStart;\n }\n\n }\n }\n }\n //For this tower, calculate how often this tower will shoot bullets\n for (QuickTower quickTower1 : quickTowers) {\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 10);\n\n if (rtimeSinceStart > quickTower1.rcoolDown + quickTower1.rlastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n quickTower1.quickClicked.setRotation((float) getTargetAngle(quickTower1.towerX,\n quickTower1.towerY, enemy.getStartPosX(), enemy.getStartPosY()));\n quickTower1.quickClicked.setCenterOfRotation(32, 32);\n quickTower1.rlastShot = rtimeSinceStart;\n }\n }\n\n\n if (timeSinceStart > quickTower1.coolDown + quickTower1.lastShot) {\n if (enemy.Playrect.intersects(quickTower1.Radius)) {\n radiusVisited = true;\n addNewBullet2(quickTower1.towerX, quickTower1.towerY, enemy.getStartPosX(),\n enemy.getStartPosY(), 5);\n quickTower1.lastShot = timeSinceStart;\n }\n }\n\n }\n }\n\n //A spawn is in progress\n if (spawninProgress) {\n timePassedEnemy += delta;\n if (timePassedEnemy > 800) {\n enemies.add(new Enemy());\n enemySpawns++;\n timePassedEnemy = 0;\n }\n }\n //When enough enemies has spawned, stop the spawninProgress\n if (enemySpawns == enemyCounter) {\n spawninProgress = false;\n //hasbeenDead = false;\n enemySpawns = 0;\n enemyCounter++;\n }\n\n //When no more enemies on maps\n if (enemies.size() == 0) {\n waveinProgress = false;\n startWaveCount = 0;\n }\n\n //Start a new level when there's no more enemies on the map\n if (loadMap.MAP[mouseY / w][mouseX / w] == 16) {\n if (input.isMousePressed(0) && startWaveCount == 0 && !waveinProgress) {\n startWaveCount++;\n if (startWaveCount == 1 && enemies.size() == 0 && !waveinProgress) {\n waveinProgress = true;\n gc.resume();\n spawninProgress = true;\n currentLevel++;\n }\n }\n }\n\n //For each new level, increase the HP of each enemy\n if (currentLevel < currentLevel + 1 && !waveinProgress) {\n for (Enemy enemyHP : enemies) {\n if (enemyHP.getStartPosX() <= 0 && enemyHP.getHP() < enemyHP.startHP + currentLevel) {\n enemyHP.setHP(enemyHP.getHP() + currentLevel);\n }\n }\n }\n\n\n //For each enemies, if enemies has finished their way, decrease player HP\n //and set them inactive\n for (Enemy enemyList : enemies) {\n if (enemyList.counter >= enemyList.path.getLength() - 1) {\n player.decreaseLife();\n bulletCount = 0;\n enemyList.isActive = false;\n }\n\n //If enemies' hp is zero, set them inactive and remove from the list\n if (enemyList.getHP() <= 0) {\n enemyList.isActive = false;\n bulletCount = 0;\n player.addCredits(20);\n }\n enemyList.update(gc, stateBasedGame, delta);\n }\n for (int i = 0; i < enemies.size(); i++) {\n if (!enemies.get(i).isActive) {\n enemies.remove(enemies.get(i));\n }\n }\n\n //For all objects, update\n for (GameObject obj : objects)\n try {\n obj.update(gc, stateBasedGame, delta);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //Go to Menu\n if (gc.getInput().isKeyPressed(Input.KEY_ESCAPE)) {\n gc.getInput().clearKeyPressedRecord();\n stateBasedGame.enterState(2);\n }\n\n\n }", "public void fireTurret() {\n\t\tif(!getCreator().hasEffect(\"TurretEffect\")) {\n\t\t\treturn;\n\t\t}\n\t\t//Fire based on what is ordained within the hero's current TurretEffect\n\t\tTurretEffect tE = (TurretEffect)getCreator().getEffect(\"TurretEffect\");\n\t\tTurretFireWrapper fW = tE.getFireFunctionWrapper();\n\t\tif(fW == null) {\n\t\t\treturn; //No active mode selected, so we just exit out. Note that this means that turrets will always fire based on the last active effect\n\t\t}\n\t\tfW.fire(getCreator(), getLoc(),range);\n\t\treturn;\n\t}", "boolean trigger(int ticks);", "public void setFireTicks ( int ticks ) {\n\t\texecute ( handle -> handle.setFireTicks ( ticks ) );\n\t}", "@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}", "public void drawScreen(int mouseX, int mouseY, float partialTicks) {\n/* 50 */ super.drawScreen(mouseX, mouseY, partialTicks);\n/* */ \n/* 52 */ if (this.hasActivePotionEffects)\n/* */ {\n/* 54 */ drawActivePotionEffects();\n/* */ }\n/* */ }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tshootBullet(arg0);\r\n\t\t\t}", "public boolean checkFire(float xTile, float yTile)\r\n/* 147: */ {\r\n/* 148:167 */ if ((this.mission) && (tileFireObjectives(xTile, yTile)))\r\n/* 149: */ {\r\n/* 150:169 */ this.fire[((int)xTile)][((int)yTile)] = 1;\r\n/* 151:170 */ this.burnPlaces -= 1;\r\n/* 152:171 */ if (this.burnPlaces == 0) {\r\n/* 153:173 */ return true;\r\n/* 154: */ }\r\n/* 155: */ }\r\n/* 156:177 */ return false;\r\n/* 157: */ }", "public void firePS()\n\t{\n\t\tif(gameObj[1].size() > 0 && ((PlayerShip)gameObj[1].get(0)).getMissileCount() > 0)\n\t\t{\n\t\t\t/*Create a new Missile\n\t\t\t * and set its location equal \n\t\t\t * to the PlayerShip and speed greater than\n\t\t\t * that of the PlayerShip\n\t\t\t */\n\t\t\tMissile mis = new Missile(false);\n\t\t\tmis.setDirection(((PlayerShip)gameObj[1].get(0)).getLauncher().getDirection());\n\t\t\tmis.setLocation(gameObj[1].get(0).getLocation());\n\t\t\tmis.setSpeed(((PlayerShip)gameObj[1].get(0)).getSpeed() + 4);\t\n\t\t\t//call fireMissile method from PlayerShip to decrement missile count\n\t\t\t((PlayerShip)gameObj[1].get(0)).fireMissile();\t\n\t\t\t//add Missile to the game world\n\t\t\tgameObj[4].add(mis);\n\t\t\tSystem.out.println(\"PS has fired a misile\");\t\n\t\t}else\n\t\t\tSystem.out.println(\"A player ship is not currently spawned or no missiles are left\");\n\t}", "private void drawFire(Graphics g)\n {\n for (int x = 0; x < 19; x++)\n {\n for (int y = 0; y < 15; y++)\n {\n if (fire[x][y] != null)\n {\n switch(fire[x][y].getDirection())\n {\n case 10:\n {\n tileset.getSprite(8, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 1:\n {\n tileset.getSprite(12, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 2:\n {\n tileset.getSprite(9, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 3:\n {\n tileset.getSprite(13, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 4:\n {\n tileset.getSprite(7, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 5:\n {\n tileset.getSprite(11, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 6:\n {\n tileset.getSprite(10, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 7:\n {\n tileset.getSprite(14, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 8:\n {\n tileset.getSprite(6, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n }\n }\n }\n }\n }", "private void reactMain_region_digitalwatch_Display_glowing_GlowDelay() {\n\t\tif (timeEvents[5]) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 5);\n\n\t\t\tsCIDisplay.operationCallback.unsetIndiglo();\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOff;\n\t\t} else {\n\t\t\tif (sCIButtons.topRightPressed) {\n\t\t\t\tnextStateIndex = 3;\n\t\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 5);\n\n\t\t\t\tsCIDisplay.operationCallback.setIndiglo();\n\n\t\t\t\tnextStateIndex = 3;\n\t\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOn;\n\t\t\t}\n\t\t}\n\t}", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void drawBullet(){\n if (classOfObejct == 0){\n colorMode(RGB,255,255,255);\n noStroke();\n fill(255,100,30);\n ellipse(posX, posY, 6, 9);\n fill(255,153,51);\n ellipse(posX,posY, 4, 6);\n fill(255,255,100);\n ellipse(posX,posY, 2, 3);\n fill(255,255,200);\n ellipse(posX,posY, 1, 1);\n stroke(1);\n }\n else{\n colorMode(RGB,255,255,255);\n noStroke();\n fill(51,153,255);\n ellipse(posX, posY, 8, 8);\n fill(102,178,255);\n ellipse(posX,posY, 6, 6);\n fill(204,229,255);\n ellipse(posX,posY, 4, 4);\n fill(255,255,255);\n ellipse(posX,posY, 2, 2);\n stroke(1);\n }\n }", "public void fire(double power) {\n if (!shooting) {\n this.power = limit(power);\n shooting = true;\n }\n }", "public Bullet fireCannon0(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+225));\r\n\t}", "void setBurnDuration(int ticks);", "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "public void testLeds(int duration) {\n\t\tledBlinking.startThread();\n\t\ttry {\n\t\t\tThread.sleep(duration);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstopBlinking();\n\t}", "@Override\n\tpublic void tick() {\n\t\tsuper.tick();\n\t\tif(isNthTick(5) && !getPlayer().hasPotionEffect(PotionEffectType.WITHER)){\n\t\t\tgetPlayer().addPotionEffect(new PotionEffect(PotionEffectType.WITHER, getRemainingTicks(), 1));\n\t\t}\n\t}", "public Bullet fireCannon2(String line){\r\n\t\treturn new Bullet(line, new Point(950,70+340));\r\n\t}", "public void blink(){\r\n boolean p = false;\r\n for (int i=1; i<=5; i++){\r\n buzzer(p); \r\n p = !p;\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "public void fireProjectile(String direction){\r\n\t\tif(name.equals(\"Robot\"))AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 5, \"laser\"));\r\n\t\telse AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 3, \"fireball\"));\r\n\t}", "public void setFire(float xTile, float yTile)\r\n/* 171: */ {\r\n/* 172:194 */ if (tileWalkable(xTile, yTile)) {\r\n/* 173:196 */ this.fire[((int)xTile)][((int)yTile)] = 1;\r\n/* 174: */ }\r\n/* 175: */ }", "public void playAI() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"You're going to lose foolish human!\");\r\n }", "private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}", "private void shoot() {\n }", "private void shoot() {\n }", "@Override\n public void explode(ArrayList<ScreenObject> level) {\n level.add(new Explosion(position.x, position.y, 100, 100,\n Explosion.expSubtype.YELLOW));\n }", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "public void setBulletsFired(ArrayList<Bullet> bullets) {\n if(!bulletsFired.isEmpty()) {\n //System.out.println(bullets.get(0).getxPos() != bulletsFired.get(0).getxPos());\n this.bulletsFired = bullets;\n }\n }", "@Override\n public void reactTo(Tick tick) {\n\ttry {\n\t Thread.sleep(FRAME_INTERVAL_MILLIS);\n\t} catch (InterruptedException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\tscreen.update();\n\tmpq.add(new Tick(tick.time() + 1));\n }", "public void doWeaponFiring(FireEngine[] fireEngines) {\n if (!dead && weapon != null) {\n Object firedObject = weapon.fire(fireEngines);\n if (firedObject != null) {\n if (firedObject instanceof Projectile) {\n projectiles.add((Projectile) firedObject);\n } else {\n weaponObjects.add(firedObject);\n }\n }\n }\n }", "private void blink() {\r\n\r\n\t\t_timer = new Timer(50, new TimerListener());\r\n\t\t_timer.start();\r\n\r\n\r\n\t}", "private void drawFallingPiece() {\r\n\t\t// loops through each rectangle of the shape type (always 4), and draws it\r\n\t\t// based on it's status and position.\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tdrawSquare(game.fallingPiece.x + game.fallingPiece.coord[game.fallingPiece.status][i][0],\r\n\t\t\t\t\t game.fallingPiece.y + game.fallingPiece.coord[game.fallingPiece.status][i][1],\r\n\t\t\t\t\t game.fallingPiece.color);\r\n\t\t}\r\n\t}", "public boolean tick(){\n\t\tif(System.currentTimeMillis() - time > TICK_TIME){\n\t\t\tif(this.getSprite().equals(\"bomb1.gif\")){\n\t\t\t\tthis.setSprite(\"bomb2.gif\");\n\t\t\t}else{\n\t\t\t\tthis.setSprite(\"bomb1.gif\");\n\t\t\t}\n\t\t\ttime = System.currentTimeMillis();\n\t\t\tif(--maxTicks <= 0){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn exploded;\n\t}", "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n sleep(3000);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n //sh.pivotStop.setPosition(.55);\n sh.hitRing();\n sleep(500);\n //sh.pivotDown();\n sh.hitRing();\n sleep(500);\n sh.withdraw();\n sh.lift.setPower(0);\n sh.lift.setPower(0);\n wobble.wobbleUp();\n sh.pivotStop.setPosition(1);\n loop.end();\n\n\n }", "public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }", "public void act()\r\n {\n if (Greenfoot.getRandomNumber(1000)< flyRate)\r\n {\r\n addObject(new Fly(), getWidth(), Greenfoot.getRandomNumber(300));\r\n //flyRate++;\r\n }\r\n }", "private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\n\t}", "boolean testBulletExplode(Tester t) {\n return t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), 1).explode(),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(8, 0), 2),\n new ConsLoGamePiece(new Bullet(4, Color.PINK, new MyPosn(50, 50), new MyPosn(-8, 0), 2),\n this.mt)))\n && t.checkExpect(\n new Bullet(4, Color.PINK, new MyPosn(100, 100), new MyPosn(0, 4), 2).explode(),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(4, 0), 3),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(-2, 3), 3),\n new ConsLoGamePiece(\n new Bullet(6, Color.PINK, new MyPosn(100, 100), new MyPosn(-2, -3), 3),\n this.mt))))\n && t.checkExpect(\n new Bullet(2, Color.PINK, new MyPosn(50, 50), new MyPosn(0, -8), -1).explode(),\n new MtLoGamePiece());\n }", "public void howToPlay() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"Step 1: Have no life. \\nStep 2: Deal cards\\nStep 3: Cry yourself to sleep.\");\r\n }", "private void shootMove() {\n for (int i = 0; i < fires.size(); i++) {\n //子弹往上移动\n fires.get(i).move();\n //注意这里remove需要放在下面\n if (fires.get(i).y < -1000) {\n fires.remove(fires.get(i));\n }\n }\n\n }", "public void pressureToFire() {\n fire1.set(true);\n fire2.set(FFM);\n }" ]
[ "0.68607724", "0.68287593", "0.67244184", "0.65802866", "0.62837124", "0.5949326", "0.5924888", "0.5883695", "0.5877565", "0.5808073", "0.5766419", "0.57370424", "0.5704763", "0.56755316", "0.5658519", "0.56065613", "0.56042826", "0.5598637", "0.5581485", "0.55707026", "0.5559528", "0.5509635", "0.550366", "0.54961634", "0.54650795", "0.54622316", "0.5457464", "0.5447241", "0.54389834", "0.5414305", "0.54140097", "0.5392883", "0.5374725", "0.5359502", "0.53407115", "0.53407115", "0.5335949", "0.53206545", "0.5312032", "0.53088707", "0.52882326", "0.5259756", "0.5256741", "0.5252204", "0.5245793", "0.52374196", "0.52333266", "0.52310413", "0.5226989", "0.52245075", "0.52211386", "0.52048236", "0.5201447", "0.5190088", "0.5179336", "0.51720333", "0.5170994", "0.51546884", "0.5144836", "0.5133997", "0.5130922", "0.51276505", "0.511711", "0.510376", "0.5080519", "0.50722665", "0.50716835", "0.5070706", "0.5070336", "0.5067848", "0.506536", "0.50580466", "0.5055029", "0.50421023", "0.5031086", "0.5017957", "0.5014007", "0.5013448", "0.50013375", "0.50007784", "0.49946183", "0.4981667", "0.49760774", "0.49760774", "0.4971736", "0.49694985", "0.49620888", "0.49584416", "0.49581972", "0.4956299", "0.49541795", "0.49523103", "0.49485642", "0.49484268", "0.4947303", "0.4944299", "0.49440554", "0.49414632", "0.4937915", "0.49378267" ]
0.77638996
0
A method to deduct a life from the player. Player becomes invincible for a set amount of time.
public void lifeLost() { if (invincipleTimer <= currentTickCount) { System.out.println("Life Lost!"); health--; invincipleTimer = currentTickCount + invicibleLength; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deductLife() {\n\t\t\n\t\t// If player01 is currently active.. \n\t\tif(player01.getIsCurrentlyPlaying()) {\n\t\t\t\n\t\t\t// Deduct a life.\n\t\t\tplayer01.deductlife();\n\t\t\t\n\t\t\t// Display message.\n\t\t\tSystem.out.println(\"Player 01 has lost a life!\");\n\t\t\tSystem.out.println(\"Player 01 Lives Left: \" + player01.getPlayerLives());\n\t\t\t\n\t\t\t// If all player 01's lives are lost..\n\t\t\tif(player01.getPlayerLives() == 0){\n\t\t\t\t\n\t\t\t\t// Invoke\n\t\t\t\tallPlayerLivesAreGone();\n\t\t\t}\n\t\t\t\n\t\t\t// If player02 is currently active.. \n\t\t} else {\n\t\t\t\n\t\t\tplayer02.deductlife();\n\t\t\tSystem.out.println(\"Player 02 has lost a life!\");\n\t\t\tSystem.out.println(\"Player 02 Lives Left: \" + player02.getPlayerLives());\n\t\t\t\n\t\t\tif(player02.getPlayerLives() == 0){\n\t\t\t\tallPlayerLivesAreGone();\n\t\t\t}\n\t\t}\n\t}", "public void decreaseLife() {\n\t\tif(life<=0) {\n\t\t\tlife = 0;\n\t\t\tisAlive = false;\n\t\t}else if(life==1) {\t\t\t\t// If only one life left, then player will die\n\t\t\tlife--;\n\t\t\tisAlive = false;\n\t\t}else {\n\t\t\tlife--;\n\t\t}\n\t}", "private void loseLife() {\n\t\t--lives;\n\t\tupdateLives();\n\t\tcreatePlayerExplosion();\n\t\tplayer.show(false);\n\t\tif (lives <= 0) {\n\t\t\tgameOver();\n\t\t} else {\n\t\t\tplayerDead = true;\n\t\t\tplayerDeadTimeLeft = playerDeadTime;\n\t\t}\n\t}", "public void loseLife(){\n audioloader.play(\"pldead\"); // play sound effect\n player.resetPosition(); // reset position\n player.invulnerableTime = 5.0 * FPS; // set grace period\n lives--; // decrement lives\n spellCards = 3; // reset spell cards\n if (lives == -1){ // if player has run out of lives\n gameResult = -1;\n }\n }", "public void decLives()\n\t{\n\t\tlives--;\n\t\tshipSpawned = false;\t\n\t\tif(lives <= 0)\n\t\t{\n\t\t\tSystem.out.println(\"Game over\");\n\t\t\tif(isSound() && !isPaused())\n\t\t\t\tdeath.play();\n\t\t\tsetGameOver(true);\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tthis.addPlayerShip();\n\t}", "public static void decreaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker < 70)\r\n\t\t\tEnemy._timerTicker += 3;\r\n\t\tif (Player._timerTicker > 4)\r\n\t\t\tPlayer._timerTicker -= 2;\r\n\t}", "public void updateLife(){\n lifeTime--;\n if(lifeTime <= 0){\n destroyed = true;\n }\n }", "public void die(){\n \tif (resetdelay<=0){ //if he didn't just die\r\n \t\tresetdelay = 100; //gives the frog 100 frames of invincibility\r\n \t\tlives-=1;\r\n \t}\r\n }", "public void takeLife()\n\t{\n\t\tlives --;\n\t}", "public void death(){\n World w = getWorld();\n Level l = (Level)w;\n if(l.getPlayersLives().getValue() > 0){\n l.removeLife();\n l.respawn();\n }\n else{\n if(l.getPlayersLives().getValue() == 0){\n Label text = new Label(\"You lose\",50);\n getWorld().addObject(text,(getWorld().getWidth()/2),(getWorld().getHeight()/2));\n l.addScore();\n Scoring st = new Scoring(l.getScore());\n Greenfoot.delay(50);\n Greenfoot.setWorld(st);\n }\n }\n getWorld().removeObject(this);\n }", "public static void removeLife(Player p){\n FileConfiguration config = DatabaseManager.getPlayerFileConfiguration(p);\n config.set(\"Lives\", config.getInt(\"Lives\") - 1);\n try {\n config.save(DatabaseManager.getPlayerFile(p));\n } catch (IOException e) {\n e.printStackTrace();\n Logger.logError(e.getMessage());\n Logger.logError(\"Issue setting player life.\");\n } \n }", "private void Dead() {\n\t\thunger -= 5;\n\t\tthirst -= 5;\n\t\tif ((thirst < 25) && (hunger < 25)){\t\t\t// Player is very weak\n\t\t\thealth -= 15;\n\t\t}else if ((thirst < 25) || (hunger < 25)){\t\t// Player is kinda weak\n\t\t\thealth -= 5;\n\t\t}\n\t\tif (health <= 0){\t\t\t\t\t\t\t\t// Player is dead\n\t\t\taddMessage(\"Overcome by your weakness you succumb.\", \"AI\");\n\t \t\taddMessage(\"You have died\", \"AI\");\n\t \t\tmenu = MENU.GAME_OVER;\n\t\t}\n\t}", "void playerHit() {\n if (lives == 0) {//if no lives left\n isDead = true;\n } else {//remove a life and reset positions\n lives -=1;\n immortalityTimer = 100;\n resetPositions();\n }\n }", "public void decreaseLife() {\n this.terminate();\n }", "void hurt(int strength) {\n life -= strength;\n if (life < 0)\n life = 0;\n }", "public void lostLife(){\r\n\t\tthis.lives--;\r\n\t}", "private void subtractPlayerHealth(int damage) {\n this.playerShipHealth -= damage;\n }", "public final void decreaseLives() {\n\t\tlives--;\n\t}", "private void subtractPlayerMissile() {\n this.playerMissile -= 1;\n }", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "public void deductHealth( int amt) {\n currentHealth = currentHealth - amt;\n }", "public void reducePlayerLive() {\n if (live > 1) {\n // make live bottle fall\n StillAtlasActor liveBottleActor = new StillAtlasActor(0, 0, BSGame.atlas1.findRegion(\"live\"));\n liveBottleActor.setPosition(BSGame.gw - liveBottleActor.getWidth() - BSGame.as.pt(10.0f), BSGame.gh - liveBottleActor.getHeight());\n uiStage.addActor(liveBottleActor);\n liveBottleActor.addAction(Actions.sequence(Actions.moveTo(liveBottleActor.getX(), -liveBottleActor.getHeight(), 2.0f), Actions.run(() -> {\n liveBottleActor.remove();\n })));\n BSGame.bottleBreakSound.play(1.0f);\n }\n liveActor.decreaseLive(--live);\n }", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "void takeDamage(int points) {\n this.health -= points;\n }", "public void die() {\n\t\tthis.hp = 0;\n\t\tthis.currentState = PlayerState.DIED;\n\t\tthis.sword = null;\n\t\tthis.setCurrentAnimation(\"dieing_\" + orientation, FRAME_DURATION);\n\t}", "public void die() {\n\t\tif (this.isGodModeEnabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.life--;\n\t\tresetPlayerPosition();\n\t\tthis.collisionBox.setRect(this.tilePositionX, this.tilePositionY,\n\t\t\t\tthis.SCALE, this.SCALE);\n\t}", "public synchronized void removeLife()\n\t{\n\t\t--lives;\n\n\t\tif (lifeLostListener != null)\n\t\t\tlifeLostListener.onLifeLost();\n\t}", "void die() {\n alive = false;\n setChanged();\n notifyObservers(new Pair<>(\"increaseLives\", -1));\n }", "public void decrementLives() {\n lives--;\n switch (lives) {\n case 0:\n System.out.println(\"You Have Lost\");\n System.exit(0);\n case 1:\n System.out.println(\"You have: \" + lives + \" life left\");\n break; \n default:\n System.out.println(\"You have: \" + lives + \" lives left\");\n break;\n }\n }", "public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }", "public void die() {\r\n\t\tlives--;\r\n\t\thp = maxHp;\r\n\t}", "public void decrementLifePoints(double amount) {\r\n lifepoints -= amount;\r\n if (lifepoints < 0) {\r\n lifepoints = 0;\r\n }\r\n if (entity instanceof Player) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, HITPOINTS));\r\n }\r\n }", "public void die() {\n\t\tSpriteObject obj = PhysicsObject.getCollidableAt(player1.getX(),player1.getY() + player1.getImage().getHeight() + 3);\n\t\tSpriteObject obj2 = PhysicsObject.getCollidableAt(player1.getX() + player1.getImage().getWidth() ,player1.getY() + player1.getImage().getHeight() + 3);\n\t\tif ((obj instanceof Tile && ((Tile) obj).getType() == TileType.spike) || (obj2 instanceof Tile && ((Tile) obj2).getType() == TileType.spike)) \n\t\t{\n\t\t\tplayer1.death();\n\t\t}\n\n\t\tif (player1.getY() > 1500) {\n\t\t\tplayer1.death();\n\t\t}\n\t}", "public void update() {\r\n super.update();\r\n life -= 1;\r\n if(life <= 0) {\r\n killBullet();\r\n }\r\n }", "public void death() {\n\t\t\tif (died==false) {\n\t\t\t\tlives-=1;\n\t\t\t\tdeathSound.play();//play the death sound\n\t\t\t\t\n\t\t\t}\n\t\t\tpauseGame(deathSound.getLength());//pause the game until the death sound is over\n\t\t\tif (lives==0) {//if you have no lives left, you died forever and the flag changes.\n\t\t\t\tdeath=true;\n\t\t\t}\n\t\t\tdied=true;\n\t\t}", "@EventHandler\n\tpublic void onDeath(PlayerDeathEvent e){\n\t\tLocation loc = e.getEntity().getLocation();\n\t\t\n\t\t/*Block b = loc.getBlock();\n\t\tb.setType(Material.SKULL);\n\t\tBlockState bs = b.getState();\n\t\t//b.setData((byte)0x1);\n\t\t\n\t\tif (bs instanceof Skull){\n\t\t Skull skull = (Skull)bs;\n\t\t \n\t\t skull.setRotation(BlockFace.SOUTH_SOUTH_EAST);\n\t\t skull.setSkullType(SkullType.PLAYER);\n\t\t skull.setOwner(e.getEntity().getName());\n\t\t skull.update();\n\t\t}*/\n\t\t\n\t\trp.resetPoints(e.getEntity());\n\t\tVaultMethods.updateMoney(e.getEntity());\n\t}", "public void decrease() {\r\n --lives;\r\n }", "public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }", "public void deadPlayer() {\r\n\t\tthis.nbPlayer --;\r\n\t}", "public void loseHealth(int damage) {\r\n this.health -= damage;\r\n if (this.health <=0) {\r\n System.out.println(\"Player knocked out\");\r\n //Reduce number of lives remaining for the player\r\n }\r\n }", "private void subtractEnemyMissile() {\n this.enemyMissile -= 1;\n }", "public void depleteFood(float dt){\n\t\tthis.foodLevel -= dt* this.starvationRate;\n\t\t\n\t}", "private void loseLife() {\r\n\t\thitGraphic(player);\r\n\t\tif (hits ==1) {\r\n\t\t\tlifeBar.scale(.67, 1);\r\n\t\t\tlifeBar.setColor(Color.ORANGE);\r\n\t\t} else if (hits == 2) {\r\n\t\t\tlifeBar.scale(.5, 1);\r\n\t\t\tlifeBar.setColor(Color.RED);\r\n\t\t} else if (hits == 3) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}", "private void subtractEnemyHealth(int damage) {\n this.enemyShipHealth -= damage;\n }", "public void removePawn() {\n lives = 0;\n }", "@Override\r\n\tpublic void Death(Player arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Death(Player arg0) {\n\t\t\r\n\t}", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "public void decreaseHealth(int hp) {\n this.decreaseLife();\n }", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "public void refillLife(){\r\n\t\tthis.life = totalLife;\r\n\t}", "public void die() {\r\n final Entity e = entity;\r\n final EnchantArrow arrow = this;\r\n Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(Storage.zenchantments, () -> {\r\n if (Storage.advancedProjectiles.containsKey(e)) {\r\n if (Storage.advancedProjectiles.get(e).size() == 1) {\r\n Storage.advancedProjectiles.remove(e);\r\n } else {\r\n Storage.advancedProjectiles.get(e).remove(arrow);\r\n }\r\n }\r\n }, 1);\r\n }", "public void weaken(float hit) {\n if (!isInvincible()) {\n hp -= hit;\n invincible = true;\n if (hp < 0) {\n hp = 0;\n }\n\n if(isWeak()){ //Play the death animation\n currentAnimation = deathAnimation;\n }\n }\n }", "public void subLife() {lives--;}", "private void takeDamage(int damage){ health -= damage;}", "void decreaseHealth(Float damage);", "public void act() \n {\n if(timer > 0){\n timer--;\n }else{\n Greenfoot.playSound(\"explosionSound.wav\");\n getWorld().removeObject(this);\n }\n }", "public void dies(PlayerSprite player, boolean labyrinth, SpawnRate spawnValues) {\n\t}", "private void death(Player p) {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player \"+p.getNumber()+\" died\");\r\n\t\tp.setDead(true);\r\n\t\tp.discardAllCardsNotPlayed();\r\n\t\t\r\n\t\t// Calculates death message\r\n\t\tString deathMessage = \"\";\r\n\t\tif (p.has(\"Artifact\")) {\r\n\t\t\tif (!p.isUnderground()) {\r\n\t\t\t\tdeathMessage = \"Fortunately, they had an artifact above ground so the villagers were able to recover the treasure\";\r\n\t\t\t} else {\r\n\t\t\t\tdeathMessage = \"They perished underground so all treasure was lost\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdeathMessage = \"They perished without an artifact so all treasure was lost\";\r\n\t\t}\r\n\t\tgameChannel.sendMessage(\":skull: **\"+getName(p)+\"** died in the dungeon.\\n\"+deathMessage).queueAfter(dragonAttackingDelay+2000, TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\t// Commented out because should be handled by App's detection\r\n\t\t// If this player was currentPlayer, endTurn if not already\r\n//\t\tif (!checkIfGameIsOver() && currentPlayer.isDead() && !turnIsEnding) {\r\n//\t\t\tendTurn();\r\n//\t\t}\r\n\t}", "private void dance() {\n\t\t// if they are done dancing, start sleeping\n\t\tif(danceDuration <= 0){\n\t\t\thive.dancingBees.remove(this);\n\t\t\tstate = \"SLEEPING\";\n\t\t}\n\t\telse{ // otherwise keep dancing and decrease duration of dance\n\t\t\tdanceDuration--;\n\t\t}\n\t}", "public void tick() {\n if (alpha > life ){\n alpha -= (life - 0.0001f);\n }else {\n handler.removeObject(this);\n }\n }", "public void takeDamage(int damage) {\r\n health -= damage;\r\n if(health<=0)setAlive(false);\r\n }", "public void getDamage(int damagePoint){\n hp-=damagePoint;\n if(hp==0){\n alive=false;\n }\n }", "void endLife();", "@Override\n public void Die() {\n this.setAlive(false);\n }", "public void die() {\n\t\tdead = true;\n\t\tthis.notifyStatChangeObservers(new StatChange(StatType.LIVES_LEFT, -1));\n\t\tif (getStat(StatType.LIVES_LEFT) == 0) {\n\t\t\tmodel.setState(GameStateType.GAME_OVER);\n\t\t} else {\n\t\t\tthis.setLocation(getStartingLocation());\n\t\t\tdead = false;\n\t\t}\n\t}", "public void dropExplosives() {\n // Updates the time elapsed for each of the explosives\n for (int i=0; i<this.explosives.size(); i++) {\n Explosive dormantExplosive = this.explosives.get(i);\n dormantExplosive.increaseTime();\n }\n // If the Airplane has reached the end, doesn't detect any enemies\n // Isn't deleted straight away as it needs to wait for explosives to detonate\n if (super.outOfBounds()) {return;}\n this.timeElapsedDrop += ShadowDefend.getTimescale()/FPS;\n //Adds a new explosive\n if (this.timeElapsedDrop >= this.dropTime) {\n this.timeElapsedDrop = 0;\n Explosive newExplosive = new Explosive(super.getCenter());\n // Centers the explosive at the airplane's current position\n newExplosive.centerRectAt(super.getCenter());\n this.explosives.add(newExplosive);\n // Generates a new drop time in range\n this.dropTime = generateDropTime();\n this.numDropped++;\n }\n\n }", "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "public void deductHealth(int h) {\n setHealth(getHealth() - h);\n }", "@Test\n void die() {\n getGame().start();\n getGame().move(getPlayer(), Direction.WEST);\n getGame().move(getPlayer(), Direction.WEST);\n assertThat(getPlayer().isAlive()).isFalse();\n verify(observer).levelLost();\n assertThat(getGame().isInProgress()).isFalse();\n }", "public void loseExp(double percent) {\n double amount = percent * getRequiredExp();\n\n // Launch the event\n PlayerExperienceLostEvent event = new PlayerExperienceLostEvent(this, amount);\n Bukkit.getPluginManager().callEvent(event);\n\n // Subtract the experience\n if (!event.isCancelled()) {\n amount = Math.min(event.getExp(), exp);\n exp = exp - amount;\n\n // Exp loss message\n if (SkillAPI.getSettings().isShowLossMessages() && (int) amount > 0) {\n TitleManager.show(\n player.getPlayer(),\n TitleType.EXP_LOST,\n NotificationNodes.LOSE,\n RPGFilter.EXP.setReplacement((int) amount + \"\"),\n RPGFilter.CLASS.setReplacement(classData.getName()),\n Filter.AMOUNT.setReplacement((int) amount + \"\")\n );\n }\n }\n }", "public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }", "public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }", "public void decreaseHealth() {\n setHealth(getHealth()-1);\n }", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void takeDamage (double damage)\n {\n getComponent(HealthC.class).decrease(damage);\n if (getComponent(HealthC.class).isDead())\n {\n setActive(false);\n }\n }", "public void decreaseLive(int dammage_)\n\t{\n\t int diff=(this.getLife())-dammage_;\n\t diff=diff*(getCoefficientDefense());\n\t this.life=diff;\n\t}", "public void recieveDamage(){\n this.health--;\n }", "public final void die() {\n this.getLocation().removeUnit(Player.SYSTEM);\n }", "public boolean decreaseLifePoint(int amount, Card causedCard) {\n // event : [lifepoint change]\n LifePointChangeEvent lifePointChangeEvent = new LifePointChangeEvent(this, causedCard, -amount);\n if (!getPermissionFromAllEffects(lifePointChangeEvent)) {\n UtilityView.displayMessage(\"life point won't change (an effect prevented LP change)\", user);\n return false;\n }\n UtilityView.playSound(\"healthDecrease.wav\");\n lifePoint -= amount;\n if (lifePoint < 0) lifePoint = 0;\n if (lifePoint == 0) loser = true;\n if (loser) game.setGameFinished(true);\n notifyAllEffectsForConsideration(lifePointChangeEvent);\n return true;\n }", "public void lifeLost() {\n\t\t--lives;\n\t\tif (lives == 0) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Override\n\tpublic void disinvite(Party party) throws CTPException {\n\t\t\n\t}", "public void dropExperience() {\n\t\tif (experience == 0) return;\n\t\tExperienceOrb orb = location.getWorld().spawn(location, ExperienceOrb.class);\n\t\torb.setExperience(experience);\n\t\texperience = 0;\n\t}", "public void hurt (int amount) {\r\n\t\thealth -= amount;\r\n\t\tif(health <= 0) {\r\n\t\t\thealth = 0; //I will be using this later when entity is knocked out\r\n\t\t\tactive = false;\r\n//\t\t\tdestroy();\r\n\t\t}\r\n\t}", "public void reduceHealth(int damage){\n health -= damage;\n }", "public void giveUp() {\n if (!finished)\n player.kill();\n }", "public void dispenseMoney(Money amount){\n\t\ttry{\n\t\t\tThread.sleep(4000);\n\t\t} catch(InterruptedException e)\n\t\t{}\n\t\tavailableCash.subtract(amount);\n\t}", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void countDown() {\n makeTimer();\n int delay = 100;\n int period = 30;\n timer.scheduleAtFixedRate(new TimerTask() {\n public void run() {\n tick();\n updatePlayerHealthUI();\n }\n }, delay, period);\n }", "private void enemyturn() {\n if (enemy.getHealth() == 0) { // check if the enemy is still alive\n enemy.setAlive(false);\n }\n\n if (enemy.getAlive()) { // if he is alive\n // time to fuck the players day up\n System.out.println(\"\");//formatting\n System.out.println(enemy.getName() + \" attacks you!\");\n\n // calculate the damage this enemy will do\n int differenceHit = enemy.getMaxHit() - enemy.getMinHit(); // difference will be 0-3. But plus 1 (as the result will ALWAYS be +1 in the randomizer so a \"0\" will not happen.\n int minimumDamage = randomize.getRandomDamage(differenceHit); // for example, will return 0-4 if the min and max hit was 4-7. Then do a -1. Making it a 0-3 chance.\n int damage = differenceHit + minimumDamage; // add the minimum damage, to random hit damage.\n\n // calculate the players armor\n damage = damage - player.getPlayerArmorRating();\n if (damage <= 0){\n System.out.println(\"... but you dont take any damage because of your armor!\");\n } else {\n\n System.out.println(\"You take \" + damage + \" damage!\");\n player.removeHealth(damage);\n }\n\n } else { // when ded\n System.out.println(\"The enemy has no chance to fight back. As your final blow killed the enemy.\");\n }\n }", "public void die() {\n\t\tsetDead(true);\n\t\tsetHp(0);\n\t\tgetGraphicShapes().get(stats.getBODY()).setLocation((int) getPosition().x(),\n\t\t\t\t(int) getPosition().y() + stats.getHeight() - stats.getWidth());\n\t\tgetGraphicShapes().get(stats.getBODY()).setSize(stats.getHeight(), stats.getWidth());\n\t\tgetPhysicalRectangle().setLocation((int) getPosition().x(),\n\t\t\t\t(int) getPosition().y() + stats.getHeight() - stats.getWidth());\n\t\tgetPhysicalRectangle().setSize(stats.getHeight(), stats.getWidth());\n\t\tgetGraphicShapes().remove(stats.getWEAPON());\n\t}", "void deductFromAmount(double amount) {\n this.currentAmount -= amount;\n }", "public void letTimePass(int numHours) throws IllegalArgumentException{\r\n if(numHours < 0){\r\n throw new IllegalArgumentException(\"The number of hours to decrease is non-negative\");\r\n }\r\n else{\r\n for(Auction auctions: values()){\r\n auctions.decrementTimeRemaining(numHours); \r\n }\r\n }\r\n }", "public void kill()\n\t{\n\t\tthis.isDead = true;\n\t\tSystem.out.println(name + \" died!\");\n\t\t//GamePanel.player.playerCombatant.awardXP(this.getXP());\n\n\t\t//TODO: Reload last save or Exit\n\t}", "public void removePlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\t\n\t\tif (tmpTeam.size() > 0) {\n\t\t\tuser.updateBudget(marketValue, \"+\");\n\t\t\ttmpTeam.removePlayer(name);\n\t\t}\n\t\tSystem.out.println(\"budget after sell\" + user.getBudget());\n\t}", "public void punch (int health)\n {\n\thealth -= 8;\n\thealth2 = health;\n }", "public boolean removePawnLife() {\n return pawn.removeLife();\n }", "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "public boolean delayer() {\n int secondsToDelay = rand.nextInt(3) + 1;\n if (timeCounter < secondsToDelay) {\n timeCounter += GameRound.elapsedTime;\n return true;\n }\n timeCounter = 0;\n movingLeft = false;\n movingRight = false;\n return false;\n }", "public void RemoveCredits(long credits)\n {\n this.credits -= credits;\n }" ]
[ "0.7627788", "0.7550031", "0.70706224", "0.6894742", "0.6872909", "0.6856062", "0.684112", "0.68353224", "0.6820396", "0.6815276", "0.6709107", "0.66644996", "0.66427946", "0.6611294", "0.6582622", "0.6576929", "0.65160006", "0.6470278", "0.64517426", "0.64334583", "0.6425419", "0.63966995", "0.63839597", "0.6371601", "0.6354743", "0.6353665", "0.6344768", "0.6344632", "0.63389957", "0.6329973", "0.6327323", "0.629439", "0.62812155", "0.62683713", "0.6253216", "0.62443876", "0.6242961", "0.6221212", "0.6219882", "0.6212701", "0.61720353", "0.6171831", "0.61435395", "0.6119474", "0.61128056", "0.61052805", "0.61052805", "0.61030847", "0.6090284", "0.60883874", "0.6086897", "0.60821724", "0.6070448", "0.606515", "0.6064184", "0.60318196", "0.6025706", "0.60181767", "0.60103744", "0.6000744", "0.59723437", "0.5966482", "0.5947637", "0.58889705", "0.5884391", "0.58715147", "0.5864917", "0.5859837", "0.58503246", "0.5836106", "0.58347124", "0.5834671", "0.5828745", "0.58180475", "0.5809077", "0.5799215", "0.57964736", "0.5788455", "0.5781046", "0.5764664", "0.5762254", "0.5762243", "0.57470757", "0.5746299", "0.57338923", "0.5731457", "0.5729857", "0.5728918", "0.57132715", "0.5711485", "0.5693889", "0.5684463", "0.568292", "0.5675894", "0.5673224", "0.56612605", "0.56561995", "0.5654308", "0.5650201", "0.5649601" ]
0.7108522
2
Draw main player block.
@Override public void render(Graphics g) { g.setColor(Color.RED); g.drawRect((int) xPosition, (int) yPosition, width, height); if (health == 3) { g.setColor(Color.RED); g.fillRect((int) xPosition + 1, (int) yPosition + 1, width / 3, height - 2); g.setColor(Color.RED); g.fillRect((int) xPosition + width / 3, (int) yPosition + 1, width / 3, height - 2); g.setColor(Color.RED); g.fillRect((int) (xPosition + width) - (width / 3) - 2, (int) yPosition + 1, (width / 3) + 1, height - 2); } else if (health == 2) { g.setColor(Color.RED); g.fillRect((int) xPosition + 1, (int) yPosition + 1, width / 3, height - 2); g.setColor(Color.RED); g.fillRect((int) xPosition + width / 3, (int) yPosition + 1, width / 3, height - 2); } else if (health == 1) { // Flash health bar. if (healthFlashTimer <= healthFlashLength / 2) { g.setColor(Color.RED); g.fillRect((int) xPosition + 1, (int) yPosition + 1, width / 3, height - 2); } else { if (healthFlashTimer >= healthFlashLength) healthFlashTimer = 0; } healthFlashTimer++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 drawPlayer(float x, float y, float w)\n\t{\n\t\tline(x, y, x + 50, y);\n\t\tline(x, y, x, y - 50);\n\t\tline(x + 50, y, x + 50, y - 50);\n\t\tline(x, y - 50, x + 50, y - 50);\n\t\tstroke(255,0,0);\n\t}", "private void draw() {\n if (surfaceHolder.getSurface().isValid()) {\n //lock the canvas\n canvas = surfaceHolder.lockCanvas();\n //set background colour\n canvas.drawColor(Color.BLACK);\n //draw stars\n paint.setColor(Color.WHITE);\n starManager.draw(this.canvas, this.paint);\n //draw player\n player.draw(this.canvas, this.paint);\n //draw enemies\n enemyManager.draw(this.canvas, this.paint);\n //draw asteroids\n asteroidManager.draw(this.canvas, this.paint);\n\n //draw the score as well\n paint.setTextSize(100);\n paint.setColor(Color.WHITE);\n canvas.drawText(\"\" + Constants.SCORE, 50, paint.descent() - paint.ascent(), paint);\n\n //if game is over\n if (Constants.GAME_OVER) {\n paint.setTextSize(100);\n paint.setTextAlign(Paint.Align.CENTER);\n paint.setColor(Color.WHITE);\n\n //tell the player\n int yPos = (int) ((canvas.getHeight() / 2) - ((paint.descent() + paint.ascent()) / 2));\n canvas.drawText(\"Game over\", canvas.getWidth() / 2, yPos, paint);\n\n paint.setTextSize(50);\n yPos = (int) ((canvas.getHeight() - 2 * paint.descent()) - ((paint.descent() + paint.ascent()) / 2));\n canvas.drawText(\"Tap anywhere to return to main menu...\", canvas.getWidth() / 2, yPos, paint);\n }\n //unlock canvas\n surfaceHolder.unlockCanvasAndPost(canvas);\n }\n }", "public void drawPlayer(){\n Player player = world.getPlayer();\n if(player.isGod()) {\n spriteBatch.draw(fadedPlayerTexture,player.getPosition().x * ppuX, player.getPosition().y * ppuY,\n player.WIDTH * ppuX, player.HEIGHT * ppuY);\n } else {\n spriteBatch.draw(playerTexture, player.getPosition().x * ppuX, player.getPosition().y * ppuY,\n player.WIDTH * ppuX, player.HEIGHT * ppuY);\n }\n }", "public synchronized void draw() {\n // Clear the canvas\n// canvas.setFill(Color.BLACK);\n// canvas.fillRect(0, 0, canvasWidth, canvasHeight);\n canvas.clearRect(0, 0, canvasWidth, canvasHeight);\n\n // Draw a grid\n if (drawGrid) {\n canvas.setStroke(Color.LIGHTGRAY);\n canvas.setLineWidth(1);\n for (int i = 0; i < mapWidth; i++) {\n drawLine(canvas, getPixel(new Point(i - mapWidth / 2, -mapHeight / 2)), getPixel(new Point(i - mapWidth / 2, mapHeight / 2)));\n drawLine(canvas, getPixel(new Point(-mapWidth / 2, i - mapHeight / 2)), getPixel(new Point(mapWidth / 2, i - mapHeight / 2)));\n }\n }\n\n // Draw each player onto the canvas\n int height = 0;\n for (Player p : playerTracking) {\n canvas.setStroke(p.getColor());\n\n drawName(canvas, p.getName(), height, p.getColor());\n height += 30;\n\n canvas.setLineWidth(7);\n\n // Draw each position\n Point last = null;\n int direction = 0;\n for (Point point : p.getPoints()) {\n if (last != null) {\n drawLine(canvas, getPixel(last), getPixel(point));\n\n Point dir = point.substract(last);\n if (dir.X > dir.Y && dir.X > 0) {\n direction = 1;\n } else if (dir.X < dir.Y && dir.X < 0) {\n direction = 3;\n } else if (dir.Y > dir.X && dir.Y > 0) {\n direction = 2;\n } else if (dir.Y < dir.X && dir.Y < 0) {\n direction = 0;\n }\n }\n last = point;\n }\n\n drawSlug(canvas, p.getId() - 1, getPixel(last), direction);\n }\n }", "@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}", "public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }", "public void paintComponent(Graphics g){\n \t\t\t g.setColor(Color.white);\n \t\t\t g.fillRect(0,0,getWidth(),getHeight());\n for(Block z : blocks){\n z.draw(g);\n }\n \t\t }", "private void render() {\n\t\t// clear the screen and depth buffer\n\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\t// draws the background\n\t\tdrawScreen(sprite.get(\"background\"));\n\t\t\n\t\t// drawing player\n\t\tif (!stopDrawingPlayer)\n\t\t\tdrawEntity(player);\n\t\t// drawing bullets\n\t\tdrawListEntity(bullet);\n\t\t// drawing enemy bullets\n\t\tdrawListEntity(enemy_bullet);\n\t\t// drawing enemies\n\t\tdrawListEntity(enemy);\n\t\t// drawing powerups\n\t\tdrawListEntity(powerup);\n\t\t// drawing explosions\n\t\tdrawListEntity(explosion);\n\t\t\n\t\t// draw health\n\t\tdefaultFont.drawString(10, 10, \"Health: \" + player.getHP() + \"/1000\");\n\t\t// draw cash\n\t\tdefaultFont.drawString(10, 40, \"Cash: $\" + cash);\n\t\t// draw shop prompt\n\t\tdefaultFont.drawString(displayWidth - 280, displayHeight - 40, \"Press F to enter shop\");\n\t\t\n\t\tif (stopDrawingPlayer) {\n\t\t\t// draw Game Over\n\t\t\tgameOverFont.drawString(displayWidth / 2 - gameOverFont.getWidth(\"Game Over!\") / 2, displayHeight\n\t\t\t\t\t/ 2 - gameOverFont.getHeight(\"Game Over!\") / 2 - 50, \"Game Over!\");\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}", "private void draw(){\n if (ourHolder.getSurface().isValid()) {\n\n if (openMainMenu) {\n mainMenu();\n } else if (openGameOverMenu) {\n gameOverMenu();\n } else if (openUpgradesMenu) {\n upgradeMenu();\n } else if (openPauseMenu) {\n pauseMenu();\n } else {\n // Lock the canvas ready to draw\n gameCanvas = ourHolder.lockCanvas();\n\n // Draw the background\n gameCanvas.drawBitmap(btBgLeft, leftSideRect.left, leftSideRect.top, null);\n gameCanvas.drawBitmap(btBgMiddle, middleSideRect.left, middleSideRect.top, null);\n gameCanvas.drawBitmap(btBgRight, rightSideRect.left, rightSideRect.top, null);\n\n // HUD Rectangle\n String padding = \" | \";\n paint.setTextSize(30);\n paint.setColor(Color.argb(125, 0, 0, 0));\n gameCanvas.drawRect(hudRect, paint);\n paint.setColor(Color.argb(255, 255, 255, 255));\n gameCanvas.drawText(\"Bonus: \" + multiplier + padding + \"Score: \" + totalScore + padding + \"Shields: \" + shields + padding + \"Cash: £\" + cash, hudRect.left + (hudRect.right/25), hudRect.bottom - (hudRect.height()/3), paint);\n\n // Draw the invaders bullets if active\n for(int i = 0; i < invadersBullets.length; i++){\n paint.setColor(Color.argb(255, 228, 53, 37));\n if(invadersBullets[i].getStatus()) {\n gameCanvas.drawRect(invadersBullets[i].getRect(), paint);\n }\n }\n\n // Draw the players bullet if active\n if(bullet.getStatus()){\n paint.setColor(Color.argb(255, 30, 127, 224));\n gameCanvas.drawRect(bullet.getRect(), paint);\n }\n\n // Draw the player spaceship\n paint.setColor(Color.argb(255, 255, 255, 255));\n gameCanvas.drawBitmap(defender.getBitmap(), defender.getX(), screenY - defender.getHeight(), paint);\n\n // Draw the invaders\n for(int i = 0; i < numInvaders; i++){\n if(invaders[i].getVisibility()) {\n if(uhOrOh) {\n gameCanvas.drawBitmap(invaders[i].getBitmap(), invaders[i].getX(), invaders[i].getY(), paint);\n }else{\n gameCanvas.drawBitmap(invaders[i].getBitmap2(), invaders[i].getX(), invaders[i].getY(), paint);\n }\n }\n }\n\n // Pause button\n paint.setColor(Color.argb(125, 0, 0, 0));\n gameCanvas.drawRect(pauseRect, paint);\n paint.setTextSize((float) (screenX*0.0138));\n paint.setColor(Color.argb(255, 255, 255, 255));\n gameCanvas.drawText(\"PAUSE GAME\", pauseRect.left + (pauseRect.width()/10), pauseRect.bottom - (pauseRect.height()/3), paint);\n\n // Animations\n renderAnimations();\n\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(gameCanvas);\n }\n\n }\n }", "private void drawPlayers(Graphics g){\n\t\tg.setColor(Color.BLACK);\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tfor(GameMatter itm: grid[i][j].getItems()){\n\t\t\t\t\tif(itm instanceof Bandit){\n\t\t\t\t\t\tif(itm.equals(player))\n\t\t\t\t\t\t\tg.setColor(Color.MAGENTA);\n\t\t\t\t\t\tg.fillRect(j*widthBlock+padding, i*heightBlock+padding, bandit, bandit);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }", "public void draw() {\n switch(state) {\n case MENU:\n background(0, 0, 0);\n startMenu();\n break;\n case CREATE_PLAYER:\n frameRate(20);\n createPlayer();\n break;\n case PLAY_GAME:\n frameRate(framerate);\n playGame();\n break;\n }\n}", "public void updateMainBlock() {\n\t\tthis.mainblock = player.getWorld().getBlockAt(player.getLocation().add(0, -1, 0));\n\t}", "public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}", "public final void draw2D()\n {\n if ( GameLevel.current() != null )\n {\n //draw player's wearpon or gadget\n GameLevel.currentPlayer().drawWearponOrGadget();\n }\n\n //draw avatar message ( if active )\n AvatarMessage.drawMessage();\n\n //draw all hud messages\n HUDMessage.drawAllMessages();\n\n //draw fullscreen hud effects\n HUDFx.drawHUDEffects();\n\n //draw frames per second last\n Fps.draw();\n\n //draw ammo if the wearpon uses ammo\n if ( GameLevel.currentPlayer().showAmmoInHUD() )\n {\n drawAmmo();\n }\n\n //draw health\n drawHealth();\n\n //draw debug logs\n //Level.currentPlayer().drawDebugLog( g );\n }", "public void draw() {\r\n\t\t// Draw the triangle making up the mountain\r\n\t\tTriangle mountain = new Triangle(this.x, 100,\r\n\t\t\t\tthis.x + mountainSize / 2, 100, this.x + mountainSize / 4,\r\n\t\t\t\t100 - this.y / 4, Color.DARK_GRAY, true);\r\n\t\t// Draw the triangle making up the snow cap\r\n\t\tthis.snow = new Triangle(side1, bottom - this.y / 8, side2, bottom\r\n\t\t\t\t- this.y / 8, this.x + mountainSize / 4, 100 - this.y / 4,\r\n\t\t\t\tColor.WHITE, true);\r\n\t\tthis.window.add(mountain);\r\n\t\tthis.window.add(snow);\r\n\t}", "private void draw()\n {\n if(surfaceHolder.getSurface().isValid())\n {\n // Locks the surface. Can't be accessed or changed before it is unlocked again\n canvas = surfaceHolder.lockCanvas();\n\n // Background color\n canvas.drawColor(Color.BLACK);\n\n\n // ===================== DRAW SPRITES ======================= //\n // Draw Pacman\n canvas.drawBitmap(pacman.getBitmap(), pacman.getX(), pacman.getY(), paint);\n\n // Draw all Monsters\n for(Monster monster : monsterList)\n {\n canvas.drawBitmap(monster.getBitmap(), monster.getX(), monster.getY(), paint);\n }\n\n // Draw Cherries\n for(Cherry cherry : cherryList)\n {\n canvas.drawBitmap(cherry.getBitmap(), cherry.getX(), cherry.getY(), paint);\n }\n\n // Draw Key\n canvas.drawBitmap(key.getBitmap(), key.getX(), key.getY(), paint);\n\n // Draw Stars\n paint.setColor(Color.WHITE);\n for(Star star : starList)\n {\n paint.setStrokeWidth(star.getStarWidth());\n canvas.drawPoint(star.getX(), star.getY(), paint);\n }\n\n // ======================================================= //\n\n\n if(!gameEnded)\n {\n // Draw user HUD\n paint.setTextAlign(Paint.Align.LEFT);\n paint.setColor(Color.WHITE);\n paint.setTextSize(40);\n paint.setTypeface(Typeface.MONOSPACE);\n canvas.drawText(\"Level: \" + level, 10, 50, paint);\n canvas.drawText(\"Hi Score: \" + hiScore, (screenMax_X /4) * 3, 50 , paint);\n canvas.drawText(\"Score: \" + score, screenMax_X / 3, 50 , paint);\n canvas.drawText(\"New level in: \" + distanceRemaining + \"km\", screenMax_X / 3, screenMax_Y - 20, paint);\n canvas.drawText(\"Lives: \" + pacman.getLifes(), 10, screenMax_Y - 20, paint);\n canvas.drawText(\"Speed \" + pacman.getSpeed() * 100 + \" Km/h\", (screenMax_X /4) * 3, screenMax_Y - 20, paint);\n\n } else {\n\n // Draw 'Game Over' Screen\n paint.setTextAlign(Paint.Align.CENTER);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextSize(150);\n canvas.drawText(\"Game Over\", screenMax_X / 2, 350, paint);\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT);\n paint.setFakeBoldText(false);\n canvas.drawText(\"Hi Score: \" + hiScore, screenMax_X / 2, 480, paint);\n canvas.drawText(\"Your Score: \" + score, screenMax_X / 2, 550, paint);\n paint.setTextSize(80);\n canvas.drawText(\"Tap to replay!\", screenMax_X / 2, 700, paint);\n }\n\n if(levelSwitched)\n {\n // Notify the user whenever level is switched\n paint.setTextSize(100);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextAlign(Paint.Align.CENTER);\n canvas.drawText(\"Level \" + level + \"!\", screenMax_X / 2, 350, paint);\n }\n\n // Unlcock canvas and draw it the scene\n surfaceHolder.unlockCanvasAndPost(canvas);\n }\n }", "@Override\n public void paintComponent(Graphics g) {\n // always clear the screen first!\n g.clearRect(0, 0, WIDTH, HEIGHT);\n\n // GAME DRAWING GOES HERE\n \n \n // draw the blocks\n g.setColor(Color.black);\n for(int i = 0; i < blocks.length; i++){\n g.fillRect(blocks[i].x, blocks[i].y, blocks[i].width, blocks[i].height);\n }\n \n // middle ref (no longer needed)\n //g.setColor(Color.black);\n //g.drawRect(WIDTH/2 - 1, 0, 1, HEIGHT);\n \n // scores\n g.setFont(biggerFont);\n g.setColor(Color.blue);\n g.drawString(\"\" + tobyScore, WIDTH/2-100, 75);\n if(tobyWin){\n g.drawString(\"Toby Wins!\", WIDTH/2-115, 120);\n }\n g.setColor(Color.red);\n if(maxWin){\n g.drawString(\"Max Wins!\", WIDTH/2-115, 120);\n }\n g.drawString(\"\" + maxScore, WIDTH/2+100, 75);\n g.setColor(Color.white);\n g.setFont(titleFont);\n g.drawString(\"Toby N' Max: Capture the Flag!\", 25, 20);\n \n // draw the player\n g.setColor(Color.red);\n g.fillRect(max.x, max.y, max.width, max.height);\n g.setColor(Color.blue);\n g.fillRect(toby.x, toby.y, toby.width, toby.height);\n \n // draw the flag\n g.setColor(brown);\n for(int i = 0; i < flagPole.length; i++){\n g.fillRect(flagPole[i].x, flagPole[i].y, flagPole[i].width, flagPole[i].height);\n }\n \n g.setColor(purple);\n for(int i = 0; i < flag.length; i++){\n g.fillRect(flag[i].x, flag[i].y, flag[i].width, flag[i].height);\n }\n \n g.setColor(Color.white);\n for(int i = 0; i < flagLogo.length; i++){\n g.fillRect(flagLogo[i].x, flagLogo[i].y, flagLogo[i].width, flagLogo[i].height);\n }\n \n //g.setColor(Color.gray);\n // for(int i = 0; i < bombs.length; i++){\n // g.fillRect(bombs[i].x, bombs[i].y, bombs[i].width, bombs[i].height); \n //}\n \n \n // GAME DRAWING ENDS HERE\n }", "public abstract void Draw(int playerIdx);", "private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }", "public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), 25, 576), fill);\n //add each screen-side block to game and set 1 hitpoint.\n topB.addToGame(this);\n topB.setHitPoints(1);\n rightB.addToGame(this);\n rightB.setHitPoints(1);\n leftB.addToGame(this);\n leftB.setHitPoints(1);\n }", "public void draw(Graphics g){\n\t\tif(firstRepaint==false){\n\t\t\tfirstRepaint = true;\n\t\t}\n\t\tif(secondRepaint==false&&firstRepaint==true){\n\t\t\t\n\t\t\tcenterAlignPlayer();\n\t\t\tsecondRepaint = true;\n\t\t}\n\t\t\n\t\t//Tile the backgroundTile if it exists.\n\t\tif(backgroundTile != null){\n\t\t\t\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint imageW = darkenedTileImage.getWidth(this);\n\t\t\tint imageH = darkenedTileImage.getHeight(this);\n\t\t\t\n\t\t\t// Tile the image to fill our area.\n\t\t\tif(player != null){ //Use player offsets.\n\t\t\t\tfor (int x = roundDownWidth(offsetX)-GameConstants.TILE_WIDTH; x <= roundUpWidth(offsetX + width); x += imageW){\n\t\t\t\t\tfor (int y = roundDownHeight(offsetY)-GameConstants.TILE_HEIGHT; y <= roundUpHeight(offsetY + height); y += imageH){\n\t\t\t\t\t\tif(levelArea.contains(x, y)){\n\t\t\t\t\t\t\tg.drawImage(darkenedTileImage, x-offsetX, y-offsetY, this);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tg.drawImage(tileImage, x-offsetX, y-offsetY, this);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor (int x = 0; x <= width; x += imageW){\n\t\t\t\t\tfor (int y = 0; y <= height; y += imageH){\n\t\t\t\t\t\tif(levelArea.contains(x, y)){\n\t\t\t\t\t\t\tg.drawImage(darkenedTileImage, x, y, this);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tg.drawImage(tileImage, x, y, this);\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}\n\t\t\n\t\tsuper.draw(g);\n\t\t\n\t\t//Show FPS and fly indicator if there is a reference to PuzzBlocks game.\n\t\tif(GameConstants.DEBUG_MODE){\n\t\t\tif(game != null){\n\t\t\t\tColor oldColor = g.getColor();\n\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\n\t\t\t\tg.setFont( new Font(GameConstants.FPS_FONT, Font.BOLD, GameConstants.FPS_FONT_SIZE) );\n\t\t\t\tg.drawString(\"FPS: \" + game.getFPS(), 0, (int)(GameConstants.FPS_FONT_SIZE * 0.75) ); // (+ \"\") converts int to String.\n\t\t\t\t\n\t\t\t\tif(Physics.isFlyEnabled()){\n\t\t\t\t\tg.drawString(\"Flying enabled\", 0, getHeight());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tg.setColor(oldColor);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n g.setColor(Color.BLACK);\n g.fillRect(0,0,width*scale,height*scale);\n if(game.getWindowNum() == 2){\n for(int x = 0; x < world.length*scale; x+=scale){\n for(int y = 0; y < world[0].length*scale; y+= scale){\n if(game.getDiscoverdWorld()[x/scale][y/scale] == 1){\n if(world[x/scale][y/scale] == 0){\n g.setColor(Color.CYAN);\n }\n else if(world[x/scale][y/scale] == 1){\n g.setColor(Color.GREEN);\n }\n else if(world[x/scale][y/scale] == 2){\n g.setColor(new Color(102,66,0));\n }\n else if(world[x/scale][y/scale] == 3){\n g.setColor(new Color(105,105,105));\n }\n g.fillRect(x,y,scale,scale);\n }\n }\n }\n g.setColor(Color.RED);\n g.fillRect((int)(game.getPlayerCords()[0]*(double)scale),(int)(game.getPlayerCords()[1]*(double)scale),scale*game.getPlayerDimentions()[0],scale*game.getPlayerDimentions()[1]);\n g.setColor(Color.BLACK);\n g.drawRect((int)(game.getViewBoxCords()[0]*scale),(int)(game.getViewBoxCords()[1]*scale),(int)(game.getPlayerView().length*scale),(int)(game.getPlayerView()[0].length*scale));\n g.drawString(\"X: \"+game.getPlayerCords()[0]+\" Y: \"+game.getPlayerCords()[1],20,20);\n g.drawString(\"Seed: \"+game.getSeed(),20,40);\n g.drawString(\"Grounded: \"+game.getPlayer().getGrounded(),20,60);\n g.drawString(\"Vertical Velocity: \"+game.getPlayer().getVertVelocity(),20,80);\n }\n else if(game.getWindowNum() == 1){\n int[][] viewPlane = game.getPlayerView();\n double playerViewScale = game.getPlayerViewScale();\n double[] viewBoxCords = game.getViewBoxCords();\n g.setColor(Color.CYAN);\n for(int x = 0; x < viewPlane.length;x++){\n for(int y = 0; y < viewPlane[0].length;y++){\n if(viewPlane[x][y] != 0 && game.getDiscoverdWorld()[x+(int)viewBoxCords[0]][y+(int)viewBoxCords[1]] == 1){\n g.drawImage(textures.get(viewPlane[x][y]-1),(int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),this);\n /*\n if(viewPlane[x][y] == 1){\n g.setColor(Color.GREEN);\n }\n else if(viewPlane[x][y] == 2){\n g.setColor(new Color(102,66,0));\n }\n else if(viewPlane[x][y] == 3){\n g.setColor(new Color(105,105,105));\n }\n g.fillRect((int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),(int)(playerViewScale+0.5),(int)(playerViewScale+0.5));\n */\n }\n else if(viewPlane[x][y] == 0 && game.getDiscoverdWorld()[x+(int)viewBoxCords[0]][y+(int)viewBoxCords[1]] == 1){\n g.fillRect((int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),(int)(playerViewScale+1),(int)(playerViewScale+1));\n }\n }\n }\n if(recentlyHit != null){\n g.setColor(new Color(50,50,50,(int)(255*(1-recentlyHit.getHealthPercent()))));\n g.fillRect((int)(recentlyHit.getX()*playerViewScale)-(int)(viewBoxCords[0]%1*playerViewScale)+1,(int)(recentlyHit.getY()*playerViewScale)-(int)(viewBoxCords[1]%1*playerViewScale)+1,(int)playerViewScale,(int)playerViewScale);\n }\n //g.setColor(Color.RED);\n //g.fillRect((int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),(int)playerViewScale*game.getPlayerDimentions()[0],(int)playerViewScale*game.getPlayerDimentions()[1]);\n if(game.isFacingRight()){\n g.drawImage(textures.get(3),(int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),this);\n }\n else{\n g.drawImage(textures.get(4),(int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),this);\n }\n g.setColor(Color.BLACK);\n g.setFont(font2);\n g.drawString(\"X: \"+game.getPlayerCords()[0]+\" Y: \"+game.getPlayerCords()[1],20,20);\n g.drawString(\"Seed: \"+game.getSeed(),20,40);\n g.drawString(\"Grounded: \"+game.getPlayer().getGrounded(),20,60);\n g.drawString(\"Vertical Velocity: \"+game.getPlayer().getVertVelocity(),20,80);\n g.drawString(\"View Box Cords: X:\"+viewBoxCords[0]+\" Y: \"+viewBoxCords[1],20,100);\n int a = 0;\n for(Item i: game.getPlayerInventory()){\n if(i != null){\n g.drawString(i.getName()+\" Count: \"+i.getCount(),20,120+a*20);\n a++;\n }\n } \n g.setColor(new Color(100,100,100,95));\n g.fillRect((int)(0.09*viewPlane.length*playerViewScale),(int)(0.8*viewPlane[0].length*playerViewScale),(int)(0.82*viewPlane.length*playerViewScale),(int)(0.12*viewPlane[0].length*playerViewScale));\n g.setColor(Color.WHITE);\n for(int i = 0; i < game.getPlayerHotbar().length;i++){\n if(i == game.getPlayer().getHotbarItemSelected()){\n g.setColor(Color.BLACK);\n g.fillRect((int)(0.11*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.81*viewPlane[0].length*playerViewScale),(int)(0.06*playerViewScale*viewPlane.length),(int)(0.1*viewPlane[0].length*playerViewScale));\n g.setColor(Color.WHITE);\n }\n else{\n g.fillRect((int)(0.11*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.81*viewPlane[0].length*playerViewScale),(int)(0.06*playerViewScale*viewPlane.length),(int)(0.1*viewPlane[0].length*playerViewScale));\n }\n if(game.getPlayer().getHotbar()[i] != null){\n g.drawImage(textures.get(game.getPlayer().getHotbar()[i].getTextureNum()),(int)(0.125*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.83*viewPlane[0].length*playerViewScale),this);\n }\n }\n if(game.isInvenVisible()){\n int rowLength = 10;\n g.setColor(new Color(100,100,100,180));\n g.fillRect((int)(0.05*screenWidth),(int)(0.06*screenHeight),(int)(0.9*screenWidth),(int)(0.7*screenHeight));\n g.setColor(Color.WHITE);\n int count = 0; \n for(Item i: game.getPlayerInventory()){\n if(i!=null){\n g.drawImage(textures.get(i.getTextureNum()),(int)(0.08*screenWidth)+(int)((count%rowLength)*0.085*screenWidth),(int)(0.085*screenHeight)+(int)((int)(count/rowLength)*0.085*screenHeight),this);\n g.drawString(\"x\"+i.getCount(),(int)(0.11*screenWidth)+(int)((count%rowLength)*0.085*screenWidth),(int)(0.096*screenHeight)+(int)((int)(count/rowLength)*0.085*screenHeight));\n count++;\n }\n }\n }\n else if(game.isCraftingVisible()){\n g.setColor(new Color(100,100,100,180));\n g.fillRect((int)(0.05*viewPlane.length*playerViewScale),(int)(0.05*viewPlane[0].length*playerViewScale),(int)(0.9*viewPlane.length*playerViewScale),(int)(0.7*viewPlane[0].length*playerViewScale));\n }\n g.setColor(Color.BLACK);\n g.drawRect((int)(screenWidth*0.8),(int)(screenHeight*.03),(int)(screenWidth*.18),(int)(screenHeight*0.04));\n g.setColor(new Color((int)(255*(1-game.getPlayerHealthPercent())),(int)(255*game.getPlayerHealthPercent()),0));\n g.fillRect((int)(screenWidth*0.8)+1,(int)(screenHeight*.03)+1,(int)(screenWidth*.18*game.getPlayerHealthPercent())-1,(int)(screenHeight*0.04)-1);\n g.setColor(new Color(50,50,50,200));\n g.setFont(font1);\n g.drawString(game.getPlayerHealthPercent()*100+\"%\",(int)(screenWidth*.88),(int)(screenHeight*0.06));\n }\n }", "public void paint(Graphics g) {\n\t\t\tif(!winning&&!losing){\n\t\t\t\t//System.out.println(\"IN PAINT\");\n\t\t\t\tsuper.paint(g);\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"sky.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t\tlevel.addLevel();\n\t\t\t\tString chosen= level.getLevel(Level);\n\t\t\t\tlimit= level.getTime(Level);\n\t\t\t\t//\tg.drawRect (50, 50, 100, 100);\n\t\t\t\t//System.out.println(chosen);\n\n\t\t\t\tfor(int i=0;i<chosen.length();i++){\n\t\t\t\t\tchar c = chosen.charAt(i);\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tif(c==' '){\n\t\t\t\t\t\tside+=20;//add up to the x-position \n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='#'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)//if it is the first time print out\n\t\t\t\t\t\t\twalls.add(new wall(side,upper));//add to the wall list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='$'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tboxes.add(new box(side, upper));\n\n\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='\\n'){\n\t\t\t\t\t\tside=0;\n\t\t\t\t\t\tupper+=20;\n\t\t\t\t\t}\n\t\t\t\t\telse if (c=='.'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tareas.add(new area(side, upper));//add to the areas list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='a'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\th= new player(side+velX,upper+velY);//change the position of the player\n\t\t\t\t\t\tg.drawRect (h.getX(), h.getY(), 20, 20);\n\t\t\t\t\t\tg.drawImage(h.getP(), h.getX(),h.getY(),20,20, null);//draw the player\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tnumber++;// the number of paint times add\n\t\t\t\tside=40;//reset the initial x position\n\t\t\t\tupper=80;//reset the initial y position\n\t\t\t\t//\t\t\tSystem.out.println(\"here\");\n\t\t\t\tfor(int i=0;i<walls.size();i++){\n\t\t\t\t\t//System.out.println(\"HERE\");\n\t\t\t\t\twall a= walls.get(i);\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"X: \"+a.getX());\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"Y: \"+a.getY());\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\t//g.drawRect(30, 30, 100, 100);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(), 20, 20,null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the boxes\n\t\t\t\t */\n\t\t\t\tfor(int i=0;i<boxes.size();i++){\n\t\t\t\t\tbox a= boxes.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the areas\n\t\t\t\t */\n\t\t\t\tfor(int i=0; i<areas.size();i++){\n\t\t\t\t\tarea a = areas.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(null, a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t//System.out.println(m.getTime());\n\t\t\t\tg.drawString (\"Steps: \" + steps, 300, 400);\n\t\t\t\tg.drawString (\"Remaining steps: \" + (limit-steps), 300, 420);//show the remaining steps \n\t\t\t}\n\t\t\telse if(losing){//change the screen if you lose\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"over.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\t\t\telse if(winning){//change the screen if you win\n \n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"win.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\n\n\t\t\n\n\n\t\t}", "public void draw() {\n \n // TODO\n }", "public abstract WorldImage drawBoard(int blocks);", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "@Override \r\n public void paintComponent(final Graphics theGraphics) { \r\n super.paintComponent(theGraphics); \r\n final Graphics2D g2d = (Graphics2D) theGraphics; \r\n \r\n final int width = myBoard.getWidth(); \r\n final int height = myBoard.getHeight(); \r\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON); \r\n \r\n // draw purple game grid\r\n g2d.setColor(PURPLE); \r\n for (int i = 0; i < Math.max(width, height); i++) { \r\n final int lines = i * GRID_SIZING; \r\n \r\n //draws horizontal lines\r\n g2d.draw(new Line2D.Double(lines, ZERO, lines, height * GRID_SIZING));\r\n \r\n //draws vertical lines\r\n g2d.draw(new Line2D.Double(ZERO, lines, width * GRID_SIZING, lines));\r\n \r\n if (myBoard.isGameOver()) { \r\n myGameOver = true; \r\n myGamePaused = true; \r\n }\r\n } \r\n \r\n //update blocks\r\n drawCurrentPiece(g2d, height, width);\r\n drawFrozenBlocks(g2d, height, width);\r\n handlePausedGame(g2d);\r\n }", "public void paintComponent(Graphics g) {\n\n\t\t\tif (death==false) {//if we arent dead, the game must be drawn\n\t\t\t\tif (background!=null) {//draw background\n\t\t\t\t\tg.drawImage(background.getImage(), background.getX(), background.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (blocks!=null) {//draw the blocks. from the list\n\t\t\t\t\t//System.out.println(\"Yes\");\n\t\t\t\t\tfor (int x = blocks.size()-1; x>= 0; x--) {\n\t\t\t\t\t\tif (blocks.get(x).getDisable()) {//if the blocks are disabled, destroy\n\t\t\t\t\t\t\tblocks.remove(x);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (int t = 0; t<blocks.size(); t++) {//now draw the blocks.\n\t\t\t\t\t\t//System.out.printf(\"%d %d %d %d\\n\",blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t\tg.setColor(blocks.get(t).getColor());\n\t\t\t\t\t\tg.fillRect(blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (slider!=null) {//if the slider isnt null, draw it\n\t\t\t\t\t//System.out.printf(\"%d %d\\n\",slider.getX(), slider.getY());\n\t\t\t\t\tg.drawImage(slider.getImage(), slider.getX(), slider.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ball!=null) {//draw ball.\n\t\t\t\t\tg.drawImage(ball.getImage(), ball.getX(), ball.getY(), this);\n\t\t\t\t}\n\t\t\t\tfor (PowerUp power: powerUps) {//draw all of the powerups\n\t\t\t\t\tg.drawImage(power.getImage(), power.getX(), power.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//draw bottom frame\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, GamePlay.getScreenHeight()-h, GamePlay.getScreenWidth(), h);//this is the menu bar\n\t\t\t\t\n\t\t\t\t//draw score\n\t\t\t\tg.setColor(new Color(255,255,255));\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 32));\n\t\t\t\tg.drawString(String.format(\"Score: %d\", score), GamePlay.getScreenWidth() - 5 - g.getFontMetrics().stringWidth(String.format(\"Score: %d\", score)), GamePlay.getScreenHeight() - 5 - 32);\n\t\t\t\t\n\t\t\t\t//paused\n\t\t\t\tif (stopped) {\n\t\t\t\t\tg.drawString(\"Paused\", 10, 42);//upper left corner of the screen. just say paused so user knows\n\t\t\t\t}\n\t\t\t\t//lives\n\t\t\t\tint livesFontSize=15;\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, livesFontSize));\n\t\t\t\tg.drawString(String.format(\"Lives: %d\", lives), 20+5+pauseButton.getWidth(), GamePlay.getScreenHeight()-h+(2+livesFontSize));\n\t\t\t\t\n\t\t\t\tfor (int x=0; x<lives; x++) {//draw one ball for every life they have. \n\t\t\t\t\t//System.out.println(\"hey\");\n\t\t\t\t\tg.drawImage(ball.getImage(), 5+pauseButton.getWidth()+20+(5+ball.getWidth())*x, GamePlay.getScreenHeight()-(h/2)-(ball.getHeight())+(livesFontSize/2), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//logo\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2-logo.getWidth()/2, GamePlay.getScreenHeight() - (h/2) - (logo.getHeight()/2)-10, this);\n\t\t\t\t\n\t\t\t\t//pause button\n\t\t\t\tg.drawImage(pauseButton.getImage(), 5, GamePlay.getScreenHeight() - (h/2) - pauseButton.getHeight()/2 -10 , this);\n\t\t\t\t\n\t\t\t} else {//this means the player died.\n\t\t\t\t\n\t\t\t\t//draw black background \n\t\t\t\t\n\t\t\t\t//draw logo\n\t\t\t\tlogo.resize(400,100);\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, 0, GamePlay.getScreenWidth(), GamePlay.getScreenHeight());\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2 - logo.getWidth()/2, 100, this);\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(255,255,255));//draw game over text\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 60));\n\t\t\t\tg.drawString(\"Game Over!\", GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(\"Game Over!\")/2, GamePlay.getScreenHeight()/2 - 30);\n\t\t\t\t\n\t\t\t\t//draw score. \n\t\t\t\tg.drawString(String.format(\"Your Score: %d\", score), GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(String.format(\"Your Score: %d\", score))/2, GamePlay.getScreenHeight()/2 + 100);\n\t\t\t}\n\t\t\t\n\t\t}", "public void WorldRender() {\n\t\t int BlockX = (int) (Camera.CameraX/Game.TileSize);\n\t\t int BlockY = (int) (Camera.CameraY/Game.TileSize);\n\t\t \n\t\t //Tile.sky.draw(0, 0, Display.getWidth(), Display.getHeight());\n\t\t //Tile.voidBlock.startUse();\n\t\t for(int l = 0; l < this.worldLayers.size(); l++) {\n\t\t\t for(int x = BlockX; x < BlockX + Game.DisplayXBlk; x++) {\n\t\t\t\t for(int y = BlockY; y < BlockY + Game.DisplayYBlk; y++) {\n\t\t\t\t\t //try {\n\t\t\t\t\t //Tile.requestTiles(worldLayers.get(l).getBlock(x, y).id);\n\t\t\t\t\t //} catch (Exception e) { }\n\t\t\t\t\t \n\t\t\t\t\t worldLayers.get(l).renderBlock(x, y);\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t //Tile.voidBlock.endUse();\n\t }", "public void drawPlayerDown(Graphics g, Player p) {\r\n g.setColor(Color.black);\r\n // head\r\n g.drawOval(p.positionX, p.positionY, 25, 25);\r\n // left arm \r\n g.drawLine(p.positionX + 5, p.positionY + 1, p.positionX - 16, p.positionY + 12);\r\n g.drawLine(p.positionX + 5, p.positionY + 23, p.positionX - 16, p.positionY + 12);\r\n // right arm\r\n g.drawLine(p.positionX + 19, p.positionY + 1, p.positionX + 41, p.positionY + 12);\r\n g.drawLine(p.positionX + 19, p.positionY + 23, p.positionX + 41, p.positionY + 12);\r\n // backpack\r\n g.drawRect(p.positionX + 2, p.positionY + 25 - 33, 22, 8);\r\n // gun\r\n g.drawLine(p.positionX - 7, p.positionY + 6 + 12, p.positionX + 22, p.positionY - 17 + 55);\r\n g.drawLine(p.positionX + 30, p.positionY + 6 + 12, p.positionX + 14, p.positionY - 37 + 90);\r\n }", "public void draw (Graphics g){\n \t\tif (!world.isPaused()) {\n \t\t\tworld.draw(g);\n \t\t\tc.draw(g);\n \t\t\tp1.draw(g); //Drawing Player\n \t\t}\n //\t\tif(mob1!=null)\n //\t\tmob1.draw(g);\n \t\tif (world.isPaused()) {\n \t\t\tSystem.out.println(\"Zeige Shop\");\n \t\t\tg.drawImage(shop.paint(),0,0,mainWindow.getWidth(),mainWindow.getHeight(),null);\n \t\t\t\n \t\t}\n \t\t\n \t}", "public void draw() {\n draw(clientController.getUser().getShows());\n }", "private void drawSquarePlayerZoneBackground(Canvas canvas) {\n\t\t\n\t\tint left = PLAY_AREA_LEFT_PADDING; \n\t\tint top = PLAY_AREA_UP_PADDING;\n\t\tint right = left + PLAY_AREA_WIDTH_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bottom = top + PLAY_AREA_HEIGHT_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bcolor = 0;\n\t\t\n\t\tbcolor = getResources().getColor(R.color.BG);\n\t\t\n\t\tfillpaint.setColor(bcolor);\n\t\tstrokepaint.setColor(getResources().getColor(R.color.PLAYZONESTROKE));\n\t\tstrokepaint.setStrokeWidth(1);\n\t\t\n\t\tcanvas.drawRect(left, top, right, bottom, fillpaint);\n\t\tcanvas.drawRect(left, top, right, bottom, strokepaint);\n\t}", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "@Override\n\tpublic void draw(RoomBlocks grid) {\n\t\trenderer.setProjectionMatrix(CameraHolder.instance().getOrtho().combined);\n//\t\tCont tot = new Cont();\n\t\tColor color = new Color();\n\n\t\t\n\t\tDimensions dim = grid.getDimensions().toRoomWorldDimmensions();\n\t\tgrid.forEach(bl -> {\n//\t\t\t\n\t\t\tint x = (GeneratorConstants.ROOM_BLOCK_SIZE * bl.getX()) + GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\n\t\t\tx = (dim.getW() - x) + dim.getX();\n\t\t\t\n\t\t\tint pseudWorldRoomY = grid.getDimensions().getY() * Configuration.getLevelGridElementContentSize();\n\t\t\tint y = (bl.getY() + pseudWorldRoomY) * (GeneratorConstants.ROOM_BLOCK_SIZE);\n\t\t\t\n\t\t\tShapeType shType = ShapeType.Filled;\n\t\t\tboolean render = false;\n\t\t\t\n\t\t\tif(bl.isDoor()) {\n\t\t\t\trender = true;\n\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t} else if(bl.isWall()) {\n//\t\t\t\trender = true;\n//\t\t\t\tcolor.set(1, 1, 1, 1);\n//\t\t\t\tshType = ShapeType.Line;\n\t\t\t} else if(bl.getMetaInfo() != null) {//TODO\n\t\t\t\t\n\t\t\t\tif(bl.getMetaInfo().getType().equals(\".\")) {\n\t\t\t\t\trender = true;\n\t\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t\t} else if(!bl.getMetaInfo().getType().equals(\"x\")) {\n\t\t\t\t\t\n\t\t\t\t\tBrush brush = Configuration.brushesPerTile.get(bl.getMetaInfo().getType().charAt(0));\n\t\t\t\t\tif(brush != null) {// && bl.getOwner() != null\n\t\t\t\t\t\t\n//\t\t\t\t\t\tif(bl.getOwner() != null) {\n//\t\t\t\t\t\t\tSystem.out.println(\"owner: \" + brush.tile);\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\trender = true;\n\t\t\t\t\t\tcolor.set(brush.color[0], brush.color[1], brush.color[2], 1);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(render) {\n\t\t\t\t\n\t\t\t\tint size = GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\t\n\t\t\t\trenderer.begin(shType);\n\t\t\t\trenderer.setColor(color);\n\t\t\t\trenderer.rect(x, y, size, size);\n\t\t\t\trenderer.end();\n\t\t\t}\n\t\t\t\n//\t\t\tif(bl.getOwner() != null ) {\n//\t\t\t\tfinal int fx = x;\n//\t\t\t\tfinal int fy = y;\n//\t\t\t\t\n//\t\t\t\tbl.getOwner().forEachItems(itm -> {//desenhando os items\n//\t\t\t\t\trenderer.begin(ShapeType.Filled);\n//\t\t\t\t\trenderer.setColor(itm.color[0], itm.color[1], itm.color[2], 1);\n//\t\t\t\t\trenderer.rect(fx + itm.dx, fy + itm.dy, itm.width, itm.height);\n//\t\t\t\t\trenderer.end();\t\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t}\t\t\t\n\t\t});\n\t}", "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 render(Render render) {\n\t\tint yy = 185;\n\t\tint gap = 15;\n\t\trender.renderRect(0, 0, render.width, render.height, bgCol, false);\n\t\trender.renderWH(render.width / 2 - Sprite.title.width / 2, 70, sprite, false, false, true);\n\t\tString version = \"unauthorised Copy ; Pre-Alpha \" + VERSION;\n\n\t\tFont.draw(version, render, render.width / 2 - version.length() * 8 / 2, render.height - 10, 0x610000, false);\n\t\tif ((anim == 0 || anim == 3)) {\n\t\t\trender.renderIcon(render.width / 2 + Sprite.title.width / 2 - 35, drop, Sprite.blood_drop, false, false, false);\n\t\t} else {\n\t\t\trender.renderIcon(render.width / 2 + Sprite.title.width / 2 - 35, 140, Sprite.blood_drop, false, false, false);\n\t\t}\n\t\tif (selected == 0 && !Player.dead) {\n\t\t\tFont.draw(play, render, render.width / 2 - play.length() * 4, yy, 0xCD545E, false);\n\t\t\tFont.draw(\">\", render, render.width / 2 - play.length() * 4 - 10, yy, 0xFFFFFF, false);\n\t\t\tFont.draw(\"<\", render, render.width / 2 - play.length() * 4 + play.length() * 8, yy, 0xFFFFFF, false);\n\t\t} else if (!Player.dead) {\n\t\t\tFont.draw(play, render, render.width / 2 - play.length() * 4, yy, 0xEFEFEF, false);\n\t\t}\n\n\t\tif (selected == 0 && Player.dead) {\n\t\t\tFont.draw(newGame, render, render.width / 2 - newGame.length() * 4, yy, 0xCD545E, false);\n\t\t\tFont.draw(\">\", render, render.width / 2 - newGame.length() * 4 - 10, yy, 0xFFFFFF, false);\n\t\t\tFont.draw(\"<\", render, render.width / 2 - newGame.length() * 4 + newGame.length() * 8, yy, 0xFFFFFF, false);\n\t\t} else if (Player.dead) {\n\t\t\tFont.draw(newGame, render, render.width / 2 - newGame.length() * 4, yy, 0xEFEFEF, false);\n\t\t}\n\n\t\tif (selected == 1) {\n\t\t\tFont.draw(options, render, render.width / 2 - options.length() * 4, yy + gap, 0xCD545E, false);\n\t\t\tFont.draw(\">\", render, render.width / 2 - options.length() * 4 - 10, yy + gap, 0xFFFFFF, false);\n\t\t\tFont.draw(\"<\", render, render.width / 2 - options.length() * 4 + options.length() * 8, yy + gap, 0xFFFFFF, false);\n\t\t} else {\n\t\t\tFont.draw(options, render, render.width / 2 - options.length() * 4, yy + gap, 0xEFEFEF, false);\n\t\t}\n\n\t\tif (selected == 2) {\n\t\t\tFont.draw(help, render, render.width / 2 - help.length() * 4, yy + gap * 2, 0xCD545E, false);\n\t\t\tFont.draw(\">\", render, render.width / 2 - help.length() * 4 - 10, yy + gap * 2, 0xFFFFFF, false);\n\t\t\tFont.draw(\"<\", render, render.width / 2 - help.length() * 4 + help.length() * 8, yy + gap * 2, 0xFFFFFF, false);\n\t\t} else {\n\t\t\tFont.draw(help, render, render.width / 2 - help.length() * 4, yy + gap * 2, 0xEFEFEF, false);\n\t\t}\n\n\t\tif (selected == 3) {\n\t\t\tFont.draw(exit, render, render.width / 2 - exit.length() * 4, yy + gap * 3, 0xCD545E, false);\n\t\t\tFont.draw(\">\", render, render.width / 2 - exit.length() * 4 - 10, yy + gap * 3, 0xFFFFFF, false);\n\t\t\tFont.draw(\"<\", render, render.width / 2 - exit.length() * 4 + exit.length() * 8, yy + gap * 3, 0xFFFFFF, false);\n\t\t} else {\n\t\t\tFont.draw(exit, render, render.width / 2 - exit.length() * 4, yy + gap * 3, 0xEFEFEF, false);\n\t\t}\n\t}", "public void draw(Graphics g, int w, int h){\n\t\tdouble scale = getScale(w, h); double xOffset = getXOffset(w, h); double yOffset = getYOffset(w, h);\n\n\t\t// place player turn indicators on screen\n\t\t// TODO: this is all ad-hoc and really disgusting at the moment; maybe rewrite this so it can take in some arbitrary font size somehow\n\t\tFont UIFont = new Font(\"Arial\", Font.BOLD, (int)(20*scale)); g.setFont(UIFont); \n\t\tg.setColor(getPlayerColor(0)); g.drawString(\"P1\", (int)(-19*scale + xOffset), (int)(-25*scale + yOffset));\n\t\tg.setColor(getPlayerColor(1)); g.drawString(\"P2\", (int)((this.w-5)*scale+xOffset), (int)(-25*scale + yOffset));\n\n\t\ttable.fillPolygon(g, scale, xOffset, yOffset, new Color(155, 126, 70), new int[]{0, 1, 2, 3, 4, 5, 0, 6, 7, 8, 9, 10}); // wooden frame\n\t\ttable.fillPolygon(g, scale, xOffset, yOffset, new Color(1, 162, 76), new int[]{0, 1, 2, 3, 4, 5}); // felt playing field\n\n\t\ttable.drawObjects(g, scale, xOffset, yOffset);\n\t}", "@Override\n\t\tpublic void draw(Canvas canvas) {\n\t\t\tcombineButton.draw(canvas);\n\t\t\tclose.draw(canvas);\n\t\t\t//canvas.drawColor(Color.WHITE);\n\t\t\t//scroll.draw(canvas);\n\t\t\t//canvas.drawBitmap(panel, new Rect(0,0,panel.getWidth(), panel.getHeight()), new RectF(20,90,70,140), null);\n\t\t\t/*if(show)\n\t\t\t\tbuy.draw(canvas);\n\t\t\telse{\n\t\t\t\ttext.setText(sbInfo.toString());\n\t\t\t}\n\t\t\ttext.draw(canvas);\n\t\t\tInteger it = player.getMoney();\n\t\t\ttextMoney.setText(\"Money : \" + it.toString());\n\t\t\ttextMoney.draw(canvas);*/\n\t\t}", "@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public void draw() {\n mGameBoard.draw();\n }", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\n Dimension d = getSize();\n //current block\n for (j = 0; j < 16; j++)\n {\n if (shapes[blockType][turnState][j] == 1)\n {\n g.setColor(Color.BLUE);\n g.fillRect((j%4 + x + 1)*d.width/30,(j/4 + y - 4)*d.width/30, d.width/30, d.width/30);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + x + 1)*d.width/30,(j/4 + y - 4)*d.width/30, d.width/30, d.width/30);\n }\n }\n //next block\n for (j = 0; j < 16; j++)\n {\n if (shapes[nextb][nextt][j] == 1)\n {\n g.setColor(Color.RED);\n g.fillRect((j%4 + 1)*d.width/30+d.width*23/30,(j/4)*d.width/30+d.width/15, d.width/30, d.width/30);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + 1)*d.width/30+d.width*23/30,(j/4)*d.width/30+d.width/15, d.width/30, d.width/30);\n\n }\n }\n //left boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 0;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/30,(j-4)*d.width/30,(i+1)*d.width/30,(j-5)*d.width/30);\n }\n }\n //right boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 21;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine(i*d.width/30,(j-4)*d.width/30,i*d.width/30,(j-5)*d.width/30);\n }\n }\n //bottom boundary drawing\n for (i = 0; i < 20; i++)\n {\n int j = 25;\n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/30,(j-4)*d.width/30,(i+2)*d.width/30,(j-4)*d.width/30);\n }\n //draw blocks which reached the bottom or on top of another block\n for (j = 4; j < 26; j++)\n {\n for (i = 0; i < 21; i++)\n {\n if (map[i][j] == 1)\n { \n g.setColor(Color.GREEN);\n g.fillRect(i*d.width/30,(j-4)*d.width/30, d.width/30, d.width/30);\n g.setColor(Color.BLACK);\n g.drawRect(i*d.width/30,(j-4)*d.width/30, d.width/30, d.width/30);\n } \n }\n }\n\n //next label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.ITALIC, d.width/30));\n g.drawString(\"Next Shape:\", d.width*23/30, d.width*3/60);\n //level label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/120));\n g.drawString(\"Level: \" + level, d.width*23/30, d.width/3);\n //line label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/120));\n g.drawString(\"Line: \" + showline, d.width*23/30, d.width*2/5);\n //score label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/120));\n g.drawString(\"Score: \" + score, d.width*23/30, d.width*7/15);\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\n Dimension d = getSize();\n //current block\n for (j = 0; j < 16; j++)\n {\n if (shapes[blockType][turnState][j] == 1)\n {\n g.setColor(Color.BLUE);\n g.fillRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n }\n }\n //next block\n for (j = 0; j < 16; j++)\n {\n if (shapes[nextb][nextt][j] == 1)\n {\n g.setColor(Color.RED);\n g.fillRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width/10, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width/10, d.width/20, d.width/20);\n\n }\n }\n //left boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 0;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+1)*d.width/20,(j-5)*d.width/20);\n }\n }\n //right boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 11;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine(i*d.width/20,(j-4)*d.width/20,i*d.width/20,(j-5)*d.width/20);\n }\n }\n //bottom boundary drawing\n for (i = 0; i < 10; i++)\n {\n int j = 25;\n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+2)*d.width/20,(j-4)*d.width/20);\n }\n //draw blocks which reached the bottom or on top of another block\n for (j = 4; j < 26; j++)\n {\n for (i = 0; i < 12; i++)\n {\n if (map[i][j] == 1)\n { \n g.setColor(Color.GREEN);\n g.fillRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n } \n }\n }\n\n //next label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.ITALIC, d.width/20));\n g.drawString(\"Next Shape:\", d.width*13/20, d.width*3/40);\n //level label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Level: \" + level, d.width*13/20, d.width/2);\n //line label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Line: \" + showline, d.width*13/20, d.width*3/5);\n //score label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Score: \" + score, d.width*13/20, d.width*7/10);\n }", "public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }", "private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }", "public static void drawPlayerBoard()\n {\n char rowLetter=' '; //Letra de las filas.\n \n System.out.println(\" 1 2 3 4 \" ); //Imprime la parte superior del tablero.\n System.out.println(\" +-------+-------+\");\n \n \n for (int i = 0; i< BOARD_HEIGHT; i++) //Controla los saltos de fila.\n {\n switch(i)\n {\n case 0: rowLetter='A';\n break;\n case 1: rowLetter='B';\n break;\n case 2: rowLetter='C';\n break;\n case 3: rowLetter='D';\n break;\n }\n \n System.out.print(rowLetter);\n \n for (int j = 0; j < BOARD_WIDTH; j++ ) //Dibuja las filas.\n {\n if (playerBoardPos[i][j]==0)\n {\n System.out.print(\"| · \");\n }\n else\n {\n System.out.print(\"| \" + playerBoardPos[i][j] + \" \");\n }\n }\n System.out.println(\"|\");\n \n if (i==((BOARD_HEIGHT/2)-1)) //Si se ha dibujado la mitad del tablero.\n {\n System.out.println(\" +-------+-------+\"); //Dibuja una separación en medio del tablero.\n }\n }\n \n System.out.println(\" +-------+-------+\"); //Dibuja linea de fin del tablero.\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 }", "@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n Graphics2D g2d = (Graphics2D) g;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n // ab hier kann man zeichen\n g.setColor(new Color(250, 230, 204));\n g.fillRect(0, 0, 1050, 1050);\n g.setColor(Color.BLACK);\n \n //Vertical\n g.drawLine(175, 50, 175, 950);\n g.drawLine(325, 50, 325, 950);\n g.drawLine(475, 50, 475, 950);\n g.drawLine(625, 50, 625, 950);\n g.drawLine(775, 50, 775, 950);\n g.drawLine(925, 50, 925, 950);\n //Horizontal\n g.drawLine(175, 50, 925, 50);\n g.drawLine(175, 200, 925, 200);\n g.drawLine(175, 350, 925, 350);\n g.drawLine(175, 500, 925, 500);\n g.drawLine(175, 650, 925, 650);\n g.drawLine(175, 800, 925, 800);\n g.drawLine(175, 950, 925, 950);\n\n // Spieler Anzeigen\n g.setColor(Color.BLACK);\n if (GUI.player == 0) {\n g.drawString(\"Player X\", 25, 50);\n } else if (GUI.player == 1) {\n g.drawString(\"Player 0\", 25, 50);\n }\n //draw gewinner\n if (GUI.gewinner == 1) {\n g.drawString(\"Gewinne: X\", 25, 100);\n } else if (GUI.gewinner == 2) {\n g.drawString(\"Gewinne: 0\", 25, 100);\n }\n //Reihe 1\n if (GUI.state[0] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 50, 150, 150, null);\n } else if (GUI.state[0] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 50, 150, 150, null);\n }\n if (GUI.state[1] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 50, 150, 150, null);\n } else if (GUI.state[1] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 50, 150, 150, null);\n }\n if (GUI.state[2] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 50, 150, 150, null);\n } else if (GUI.state[2] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 50, 150, 150, null);\n }\n if (GUI.state[3] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 50, 150, 150, null);\n } else if (GUI.state[3] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 50, 150, 150, null);\n }\n if (GUI.state[4] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 50, 150, 150, null);\n } else if (GUI.state[4] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 50, 150, 150, null);\n }\n\n //Reihe 2\n if (GUI.state[5] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 200, 150, 150, null);\n } else if (GUI.state[5] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 200, 150, 150, null);\n }\n if (GUI.state[6] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 200, 150, 150, null);\n } else if (GUI.state[6] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 200, 150, 150, null);\n }\n if (GUI.state[7] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 200, 150, 150, null);\n } else if (GUI.state[7] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 200, 150, 150, null);\n }\n if (GUI.state[8] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 200, 150, 150, null);\n } else if (GUI.state[8] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 200, 150, 150, null);\n }\n if (GUI.state[9] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 200, 150, 150, null);\n } else if (GUI.state[9] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 200, 150, 150, null);\n }\n\n //Reihe 3\n if (GUI.state[10] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 350, 150, 150, null);\n } else if (GUI.state[10] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 350, 150, 150, null);\n }\n if (GUI.state[11] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 350, 150, 150, null);\n } else if (GUI.state[11] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 350, 150, 150, null);\n }\n if (GUI.state[12] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 350, 150, 150, null);\n } else if (GUI.state[12] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 350, 150, 150, null);\n }\n if (GUI.state[13] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 350, 150, 150, null);\n } else if (GUI.state[13] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 350, 150, 150, null);\n }\n if (GUI.state[14] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 350, 150, 150, null);\n } else if (GUI.state[14] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 350, 150, 150, null);\n }\n\n //Reihe 4\n if (GUI.state[15] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 500, 150, 150, null);\n } else if (GUI.state[15] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 500, 150, 150, null);\n }\n if (GUI.state[16] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 500, 150, 150, null);\n } else if (GUI.state[16] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 500, 150, 150, null);\n }\n if (GUI.state[17] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 500, 150, 150, null);\n } else if (GUI.state[17] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 500, 150, 150, null);\n }\n if (GUI.state[18] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 500, 150, 150, null);\n } else if (GUI.state[18] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 500, 150, 150, null);\n }\n if (GUI.state[19] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 500, 150, 150, null);\n } else if (GUI.state[19] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 500, 150, 150, null);\n }\n\n //Reihe 5\n if (GUI.state[20] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 650, 150, 150, null);\n } else if (GUI.state[20] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 650, 150, 150, null);\n }\n if (GUI.state[21] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 650, 150, 150, null);\n } else if (GUI.state[21] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 650, 150, 150, null);\n }\n if (GUI.state[22] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 650, 150, 150, null);\n } else if (GUI.state[22] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 650, 150, 150, null);\n }\n if (GUI.state[23] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 650, 150, 150, null);\n } else if (GUI.state[23] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 650, 150, 150, null);\n }\n if (GUI.state[24] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 650, 150, 150, null);\n } else if (GUI.state[24] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 650, 150, 150, null);\n }\n //Reihe 6\n if (GUI.state[25] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 800, 150, 150, null);\n } else if (GUI.state[25] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 800, 150, 150, null);\n }\n if (GUI.state[26] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 800, 150, 150, null);\n } else if (GUI.state[26] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 800, 150, 150, null);\n }\n if (GUI.state[27] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 800, 150, 150, null);\n } else if (GUI.state[27] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 800, 150, 150, null);\n }\n if (GUI.state[28] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 800, 150, 150, null);\n } else if (GUI.state[28] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 800, 150, 150, null);\n }\n if (GUI.state[29] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 800, 150, 150, null);\n } else if (GUI.state[29] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 800, 150, 150, null);\n }\n repaint();\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\n Dimension d = getSize();\n //current block\n for (j = 0; j < 16; j++)\n {\n if (shapes[blockType][turnState][j] == 1)\n {\n g.setColor(Color.BLUE);\n g.fillRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n }\n }\n //next block\n for (j = 0; j < 16; j++)\n {\n if (shapes[nextb][nextt][j] == 1)\n {\n g.setColor(Color.RED);\n g.fillRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width*3/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width*3/20, d.width/20, d.width/20);\n\n }\n }\n //left boundary drawing\n for (j = 4; j < 36; j++)\n { \n int i = 0;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+1)*d.width/20,(j-5)*d.width/20);\n }\n }\n //right boundary drawing\n for (j = 4; j < 36; j++)\n { \n int i = 11;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine(i*d.width/20,(j-4)*d.width/20,i*d.width/20,(j-5)*d.width/20);\n }\n }\n //bottom boundary drawing\n for (i = 0; i < 10; i++)\n {\n int j = 35;\n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+2)*d.width/20,(j-4)*d.width/20);\n }\n //draw blocks which reached the bottom or on top of another block\n for (j = 4; j < 36; j++)\n {\n for (i = 0; i < 12; i++)\n {\n if (map[i][j] == 1)\n { \n g.setColor(Color.GREEN);\n g.fillRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n } \n }\n }\n\n //next label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.ITALIC, d.width/20));\n g.drawString(\"Next Shape:\", d.width*13/20, d.width/8);\n //level label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Level: \" + level, d.width*13/20, d.width*5/8);\n //line label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Line: \" + showline, d.width*13/20, d.width*7/8);\n //score label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Score: \" + score, d.width*13/20, d.width*9/8);\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) \r\n\t\t\t{\n\t\t\t\tpaintComponent(getGraphics(), player);\r\n\t\t\t}", "public void draw(){\n textAlign(CENTER);\n route.update(pp, qq);\n SoundSys();\n fill(0xff31F0FF, 127);\n noStroke();\n ellipse(mouseX, mouseY, 30, 30);\n}", "public static void mainMenu() {\n\t\tStdDraw.setCanvasSize(600, 600);\n\t\tStdDraw.setScale(0, 1000);\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tFont font = new Font(\"Sans Serif\", 20, 20);\n\t\tStdDraw.setFont(font);\n\t\tStdDraw.text(500, 850, \"Six Men Morris Game\");\n\t\tStdDraw.text(500, 750, \"Game Created By: \");\n\t\tStdDraw.text(500, 700, \"Phillip Pavlich, Prakhar Jalan, Dinesh Balakrishnan\");\n\t\tStdDraw.filledRectangle(500, 500, 205, 75);\n\t\tStdDraw.filledRectangle(500, 300, 205, 75);\n\t\tStdDraw.filledRectangle(500, 100, 205, 75);\n\t\t\n\t\tStdDraw.setFont();\n\t\tStdDraw.setPenColor(StdDraw.ORANGE);\n\t\tStdDraw.setPenRadius(0.05);\n\n\t\tStdDraw.filledRectangle(500, 500, 200, 70);\n\t\tStdDraw.filledRectangle(500, 300, 200, 70);\n\t\tStdDraw.filledRectangle(500, 100, 200, 70);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.text(500, 500, \"Start New Game\");\n\t\tStdDraw.text(500, 300, \"Continue Game\");\n\t\tStdDraw.text(500, 100, \"Load Saved Game\");\n\t}", "public void displayWinner(Player player) {\n System.out.println(\"Partie terminée !\");\n System.out.println(player.getPlayerName()+\" remporte la partie avec les billes \"+player.getColor().toString(true));\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n }", "public void draw() {\r\n // Get a lock on the mCanvas\r\n if (mSurfaceHolder.getSurface().isValid()) {\r\n mCanvas = mSurfaceHolder.lockCanvas();\r\n\r\n // Fill the screen with a color\r\n mCanvas.drawColor(Color.argb(255, 26, 128, 182));\r\n\r\n // Set the size and color of the mPaint for the text\r\n mPaint.setColor(Color.argb(255, 255, 255, 255));\r\n mPaint.setTextSize(120);\r\n\r\n // Draw the score\r\n mCanvas.drawText(\"\" + playState.mScore, 20, 120, mPaint);\r\n\r\n // Draw the goodApple, badApple, and the snake\r\n gameObjects.draw(mCanvas, mPaint);\r\n\r\n // Draw some text while paused\r\n if (playState.mPaused) {\r\n\r\n // Set the size and color of the mPaint for the text\r\n mPaint.setColor(Color.argb(255, 255, 255, 255));\r\n mPaint.setTextSize(250);\r\n\r\n // Draw the message\r\n // We will give this an international upgrade soon\r\n //mCanvas.drawText(\"Tap To Play!\", 200, 700, mPaint);\r\n mCanvas.drawText(getResources().\r\n getString(R.string.tap_to_play),\r\n 200, 700, mPaint);\r\n }\r\n\r\n\r\n // Unlock the mCanvas and reveal the graphics for this frame\r\n mSurfaceHolder.unlockCanvasAndPost(mCanvas);\r\n }\r\n }", "public void render() {\n stroke(color(50, 50, 50));\n fill(color(50, 50, 50));\n rect(0, 0, getWidth(), getTopHeight());\n int tempX = this.x;\n int fontSize = 150 / (this.players.size() * 2);\n\n this.messages = new ArrayList();\n int count = 0;\n for (Player player : this.players) {\n\n StringBuilder bar = new StringBuilder();\n // max lives = 3\n bar.append(player.name() + \" \");\n for (int i=0; i<3; i++) {\n if (i < player.lives()) {\n bar.append('\\u25AE'); // http://jrgraphix.net/r/Unicode/?range=25A0-25FF\n } else {\n bar.append('\\u25AF');\n }\n }\n\n String message = bar.toString();\n messages.add(message);\n\n textAlign(LEFT);\n textFont(f, fontSize);\n fill(player.getColor());\n text(message, tempX, this.y);\n\n int newX = (int) textWidth(message) + 10;\n tempX += newX;\n count++;\n }\n }", "@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(\"/gui/book.png\"));\n int var5 = 0;\n int var6 = 192;\n\n if (var4)\n {\n var5 += 23;\n }\n\n if (!this.nextPage)\n {\n var6 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, var6, 23, 13);\n }\n }", "public void drawDebug(){\n debugRenderer.setProjectionMatrix(cam.combined);\n debugRenderer.begin(ShapeRenderer.ShapeType.Line);\n\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy)e;\n Rectangle rect = enemy.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n\n for(Bullet b : world.getPlayer().getWeapon().getBullets()) {\n Rectangle rect = b.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n\n for(Enemy e : world.getEnemies()) {\n for(Bullet b : e.getWeapon().getBullets()){\n Rectangle rect = b.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(1, 0, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n }\n }\n\n Player player = world.getPlayer();\n Rectangle rect = player.getBounds();\n float x1 = rect.x;\n float y1 = rect.y;\n debugRenderer.setColor(new Color(0, 1, 0, 1));\n debugRenderer.rect(x1, y1, rect.width, rect.height);\n debugRenderer.end();\n }", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "public void createMainGame() {\n\t\tpanelIntro.setVisible(false);\n\t\tintroButtonPanel.setVisible(false);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\t\n\t\tcon.add(panelMain);\n\t\t\n\t\tplayerPanel = new JPanel();\n\t\tplayerPanel.setBounds(50, 25, 924, 50);\n\t\tplayerPanel.setBackground(Color.DARK_GRAY);\n\t\tplayerPanel.setLayout(new GridLayout(1,4));\n\t\tpanelMain.add(playerPanel);\n\t\tcon.add(playerPanel);\n\t\t\n\t\tenergyLabel = new JLabel(\" Energie: \");\n\t\tenergyLabel.setFont(playerInfo);\n\t\tenergyLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabel);\n\t\t\n\t\tenergyLabelNumber = new JLabel();\n\t\tenergyLabelNumber.setFont(playerInfo);\n\t\tenergyLabelNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabelNumber);\n\t\t\n\t\tdoubtLevelLabel = new JLabel(\"Misstrauen: \");\n\t\tdoubtLevelLabel.setFont(playerInfo);\n\t\tdoubtLevelLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(doubtLevelLabel);\n\t\t\n\t\tdLLNumber = new JLabel();\n\t\tdLLNumber.setFont(playerInfo);\n\t\tdLLNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(dLLNumber);\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\t\n\t\tbirdText = new JTextArea();\n\t\tbirdText.setBackground(Color.BLACK);\n\t\tbirdText.setFont(dialogueText);\n\t\tbirdText.setForeground(Color.white);\n\t\tbirdText.setLineWrap(true);\n\t\tbirdText.setWrapStyleWord(true);\n\t\tbirdText.setBounds(354, 200, 250, 150);\n\t\tbirdText.setVisible(false);\n\t\tcon.add(birdText);\n\t\t\n\t\tbirdPanel = new JPanel();\n\t\tbirdPanel.setBounds(354, 387, 60, 82);\n\t\tbirdPanel.setBackground(Color.BLACK);\n\t\tbirdPanel.addMouseListener(new birdListener());\n\t\ttry {\n\t\t\tBufferedImage birdPicture = ImageIO.read(new File(\".//res//bird_kleiner.jpg\"));\n\t\t\tJLabel birdLabel = new JLabel(new ImageIcon(birdPicture));\n\t\t\tbirdPanel.add(birdLabel);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcon.add(birdPanel);\n\t\t\n\t\thereComesTheText = new JTextArea();\n\t\thereComesTheText.setBounds(55, 100, 285, 370);\n\t\thereComesTheText.setBackground(Color.BLACK);\n\t\thereComesTheText.setForeground(Color.LIGHT_GRAY);\n\t\thereComesTheText.setFont(dialogueText);\n\t\thereComesTheText.setLineWrap(true);\n\t\thereComesTheText.setWrapStyleWord(true);\n\t\tpanelMain.add(hereComesTheText);\n\t\tcon.add(hereComesTheText);\n\t\t\n\t\timagePanel.setBounds(427, 95, 546, 375);\n\t\timagePanel.setBackground(Color.black);\n\t\tpanelMain.add(imagePanel);\n\t\tcon.add(panelMain);\n\t\t\n\t\timagePanel.add(imageLabel);\n\t\t\n\t\tcon.add(imagePanel);\n\t\t\n\t\tpanelButtons = new JPanel();\n\t\tpanelButtons.setBounds(50, 510, 924, 200);\n\t\tpanelButtons.setBackground(Color.black);\n\t\tpanelButtons.setLayout(new GridLayout(2, 2));\n\t\tcon.add(panelButtons);\n\t\t\n\t\tfor(int i=1; i<5; i++) {\n\t\t\tbuttons.get(i).setBackground(Color.black);\n\t\t\tbuttons.get(i).setForeground(Color.LIGHT_GRAY);\n\t\t\tbuttons.get(i).setFont(runningText);\n\t\t\tbuttons.get(i).setFocusPainted(false);\n\t\t\tpanelButtons.add(buttons.get(i));\n\t\t}\n\t}", "private void render()\n\t{\n\t\ttheta = (float) (velocity.heading() + Math.toRadians(90.0));\n\n\t\t// se baser sur le temps écoulé depuis le lancement\n\t\tf = parent.frameCount / 4;\n\t\tint fi = f + 1;\n\t\tfloat x = fi % DIM * W;\n\t\tfloat y = fi / DIM % DIM * H;\n\n\t\tparent.pushMatrix();\n\t\tparent.translate(location.x, location.y);\n\t\tparent.rotate(theta);\n\t\tparent.beginShape();\n\t\tparent.texture(spritesheet);\n\t\tparent.vertex(0, 0, x, y);\n\t\tparent.vertex(100, 0, x + W, y);\n\t\tparent.vertex(100, 100, x + W, y + H);\n\t\tparent.vertex(0, 100, x, y + H);\n\t\tparent.endShape();\n\t\tparent.popMatrix();\n\t}", "private void drawTarget(Graphics g, Player player)\n {\n if (player.getAlive())\n {\n g.setColor(player.getColor());\n g.drawRect(player.getSafeSpot()[0] * 32 + jitterX, player.getSafeSpot()[1] * 32 + jitterY, 32, 32);\n }\n }", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n // This is where we will draw our view for Game3.\n canvas.drawBitmap(background, null, rect, null);\n // Creates the score\n scorePaint.setColor(Color.BLUE);\n scorePaint.setTextSize(80);\n canvas.drawText(\"Score : \" + score, 20, 60, scorePaint);\n // Creates the fuel\n fuelPaint.setColor(Color.RED);\n fuelPaint.setTextSize(80);\n canvas.drawText(\"Fuel : \" + fuel + \"%\", 20, 1700, fuelPaint);\n // Creates the level\n levelPaint.setColor(Color.MAGENTA);\n levelPaint.setTextSize(80);\n canvas.drawText(\"Level : \" + level, 770, 60, levelPaint);\n if (score > 0 && score % 5 == 0) {\n levelUpPaint.setColor(Color.BLACK);\n levelUpPaint.setTextSize(80);\n canvas.drawText(\"LEVEL UP!\", randomX, randomY, levelUpPaint);\n }\n // true blue falls\n if (tb.getState()) {\n tb.drawTBRect(canvas);\n // animate tb\n tb.animateTB();\n // cause tb to fall\n tb.tbFall();\n // draw the towers\n cn.drawTower(canvas); // Endless number of CN Tower is created.\n }\n // displays true blue in the center\n tb.drawTB(canvas);\n if (powerup.getCollected()) {\n powerup.drawPickup(canvas);\n }\n powerup.move();\n if (fuelup.getCollected()) {\n fuelup.drawPickup(canvas);\n }\n fuelup.move();\n handler.postDelayed(runnable, delayNum);\n }", "@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(SteamCraft.guiLocation + \"researchpaper.png\"));\n int var5 = 209;\n int var6 = 13;\n\n if (this.nextPage)\n {\n var6 += 91;\n var5 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, 0, 10, var6);\n }\n }", "@Override\n public void run() {\n drawBack(holder);\n drawClock();\n// drawCircle();\n }", "public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}", "public void paint() {\r\n\t\tBufferStrategy bf = base.frame.getBufferStrategy();\r\n\t\ttry {\r\n\t\t\tg = bf.getDrawGraphics();\r\n\t\t\tg.clearRect(0, 0, 1024, 768);\r\n\t\t\tg.setFont(normal);\r\n\t\t\tif (gameState == 1) {\r\n\t\t\t\tg.drawImage(playButton, playButtonXM, playButtonYM, playButtonWidthM, playButtonHeightM, this);\t\t\t\t\r\n\t\t\t}else if (gameState == 3){\r\n\t\t\t\tint weaponPosX = ((arrow2X-arrowX) /2) + arrowX - 20;\r\n\t\t\t\tint weaponPosY = arrowY - 15;\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY2ndRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY2ndRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY3rdRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY3rdRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY4thRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY4thRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(playButton, playButtonX, playButtonY, playButtonWidth, playButtonHeight, this);\r\n\r\n\t\t\t\t//text boxes above choices\r\n\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\tg.drawString(\"Weapon\", weaponPosX, weaponPosY);\r\n\t\t\t\tg.drawString(\"Difficulty\", weaponPosX, (arrowY2ndRow - 15));\r\n\t\t\t\tg.drawString(\"Number of AI\", weaponPosX - 12, (arrowY3rdRow - 15));\r\n\t\t\t\tg.drawString(\"Number of players\", weaponPosX - 20, (arrowY4thRow - 15));\r\n\r\n\t\t\t\tif (getDifficulty() == 1){\r\n\t\t\t\t\tg.drawImage(Easy, difficultyXPos, arrowY2ndRow, difficultyWidth , arrowHeight, this);\r\n\t\t\t\t}else if (getDifficulty() == 2) {\r\n\t\t\t\t\tg.drawImage(Normal, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tg.drawImage(Hard, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tif (getAttackStyle() == 2) {\r\n\t\t\t\t\tg.drawImage(Arrowr, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 280, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//due to the sword using all of the x positions the width is slightly different\r\n\t\t\t\t\tg.drawImage(SwordL, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 300, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tint AIXPos = weaponPosX;\r\n\t\t\t\tif (AINum >= 10 && AINum<100) {\r\n\t\t\t\t\tAIXPos -=25;\r\n\t\t\t\t} else if (AINum >= 100 && AINum < 1000) {\r\n\t\t\t\t\t//the reason why this grows by 40 instead of an additional 20 is because we are not storing the variable\r\n\t\t\t\t\t//of current position anywhere so we just add another 20 onto the decrease\r\n\t\t\t\t\tAIXPos-=50;\r\n\t\t\t\t} else if (AINum >= 1000) {\r\n\t\t\t\t\tAIXPos-=75;\r\n\t\t\t\t}\r\n\t\t\t\tg.setFont(numbers);\r\n\t\t\t\tString currentNum = Integer.toString(AINum);\r\n\t\t\t\tString currentPlayerString = Integer.toString(currentPlayer);\r\n\t\t\t\tg.drawString(currentNum, AIXPos, arrowY3rdRow + 72);\r\n\t\t\t\tg.drawString(currentPlayerString, weaponPosX, arrowY4thRow + 72);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ((!escape) && (!dead) &&(!allAIDead)) {\r\n\t\t\t\t\tg.drawImage(picture, 0, 0, base.frame.getWidth(), base.frame.getHeight(), this);\r\n\t\t\t\t\tfor (int i = 0; i < playerObject.length; i++) {\r\n\t\t\t\t\t\tint playerX = (int) playerObject[i].getX();\r\n\t\t\t\t\t\tint playerY = (int) playerObject[i].getY();\r\n\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t// health bar\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, 100, healthY);\r\n\t\t\t\t\t\tg.setColor(Color.red);\r\n\t\t\t\t\t\tg.fillOval(playerX, playerY, 20, 20);\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, (int) (playerObject[i].getHealth()/2) , healthY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//AI\r\n\t\t\t\t\tfor (int i = 0; i < AIObject.length; i++) {\r\n\t\t\t\t\t\tif (!AIObject[i].isDead()) {\r\n\t\t\t\t\t\t\tint AIRoundedX = (int) AIObject[i].getAIX();\r\n\t\t\t\t\t\t\tint AIRoundedY = (int) AIObject[i].getAIY();\r\n\t\t\t\t\t\t\tif (AIObject[i].getColor() == null) {\r\n\t\t\t\t\t\t\t\tint red = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint green = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint blue = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tColor newColor = new Color(red,green,blue);\r\n\t\t\t\t\t\t\t\tg.setColor(newColor);\r\n\t\t\t\t\t\t\t\tAIObject[i].setColor(newColor);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tg.fillOval(AIRoundedX, AIRoundedY, 20, 20);\r\n\t\t\t\t\t\t\tAIDeadCount = 0;\r\n\t\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, AI_ORIG_HEALTH/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, (int) AIObject[i].getAIHealth()/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tAIDeadCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// early access banner\r\n\t\t\t\t\tg.drawImage(earlyAccess, 0, 24, this);\r\n\r\n\t\t\t\t\tif (attackStyle == 2) {\r\n\t\t\t\t\t\tif (drawArrow == true) {\r\n\t\t\t\t\t\t\tinFlight = true;\r\n\t\t\t\t\t\t\tshouldPlaySound = true;\r\n\t\t\t\t\t\t\tif ((fireLeft) && (currentlyDrawingArrow != 2)) {\r\n\t\t\t\t\t\t\t\tgoingLeft = true;\r\n\t\t\t\t\t\t\t\tgoingRight = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 1;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowl, Math.round(aX), Math.round(aY), this);\r\n\r\n\t\t\t\t\t\t\t} else if ((fireRight) && (currentlyDrawingArrow != 1)) {\r\n\t\t\t\t\t\t\t\tgoingRight = true;\r\n\t\t\t\t\t\t\t\tgoingLeft = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 2;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowr, Math.round(aX), Math.round(aY), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ((aX >= 1024) || (!drawArrow) || (aX <= 0)) {\r\n\t\t\t\t\t\t\tinFlight = false;\r\n\t\t\t\t\t\t\taX = playerObject[0].getX();\r\n\t\t\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t\t\t\tcurrentlyDrawingArrow = 0;\r\n\t\t\t\t\t\t\tdrawArrow = false;\r\n\t\t\t\t\t\t\tshouldPlaySound = false;\r\n\t\t\t\t\t\t\tnotPlayingSound = false;\r\n\t\t\t\t\t\t\talreadyShot = false;\r\n\t\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tint roundedX = Math.round(playerObject[0].getX());\r\n\t\t\t\t\t\tint roundedY = Math.round(playerObject[0].getY());\r\n\t\t\t\t\t\tif (drawSword) {\r\n\t\t\t\t\t\t\tswordCount++;\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX - 45, roundedY - 30, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX - 63, roundedY, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\t//image flip g.drawImage(SwordHorizontalL, Math.round(x) - 2, Math.round(y) - 45, -SwordHorizontalL.getWidth(this),SwordHorizontalL.getHeight(this),this);\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth,swordHorizontalLWidth,this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX + 80, roundedY - 30,\r\n\t\t\t\t\t\t\t\t\t\t\t-sword45LWidth, sword45LHeight, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX +90, roundedY, -swordLWidth, swordLHeight, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth, swordHorizontalLHeight, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (shield) {\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX - 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX + 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t-SwordHorizontalL.getWidth(this), SwordHorizontalL.getHeight(this), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tswordCount = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (escape) {\r\n\t\t\t\t\tg.setColor(Color.white);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawString(\"PAUSED\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t\telse if (dead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"Dead\", 512, 389);\r\n\t\t\t\t} else if(allAIDead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"You win\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tg.dispose();\r\n\t\t}\r\n\t\t// Shows the contents of the backbuffer on the screen.\r\n\t\tbf.show();\r\n\t}", "public void showBlocks()\r\n {\r\n repaint();\r\n }", "public void draw() {\n \n }", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void renderLoop() {\n\t\tplayer.move(calculateVectorDirectionBetweenEyeAndCenter());\n\t\tcamera.move();\n\t\tm.setLookAt(camera.getPosition().x,\n\t\t\t\tcamera.getPosition().y + 10,\n\t\t\t\tcamera.getPosition().z,\n\t\t\t\tplayer.getPosition().x,\n\t\t\t\tplayer.getPosition().y + 10,\n\t\t\t\tplayer.getPosition().z,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).x,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).y,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).z);\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\t\t\n\t\tglPushMatrix();\n\t\t\tupdateSpotLight();\n\t\t\tupdatePointLight();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_BACK, GL_FILL);\n\t\t\tglPolygonMode(GL_FRONT, GL_POINT);\n\t\t\tterrain.generateCave();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_FRONT, GL_FILL);\n\t\t\tterrain.generateGround();\n\t\tglPopMatrix();\n\n\t\tglPushMatrix();\n\t\t\tterrain.drawEnd();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglTranslatef(player.getPosition().x, player.getPosition().y, player.getPosition().z);\n\t\t\tglRotatef(player.getRotY(), 0, 1, 0);\n\t\t\tplayer.getModel().draw(player.getMoveAngle());\n\t\tglPopMatrix();\n\t}", "@Override\n\tpublic void render(Graphics g) {\t\n\t\tg.drawImage(Images.player, (int)x, (int)y, null);\n\t}", "public void Display() \n {\n float theta = velocity.heading() + PI/2;\n fill(175);\n stroke(0);\n pushMatrix();\n translate(pos.x,pos.y);\n rotate(theta);\n beginShape();\n vertex(0, -birdSize*2);\n vertex(-birdSize, birdSize*2);\n vertex(birdSize, birdSize*2);\n endShape(CLOSE);\n popMatrix();\n }", "void show() {\n if (!isDead) {\n for (int i = 0; i < bullets.size(); i++) {//show bullets\n bullets.get(i).show();\n }\n if (immortalityTimer >0) {//no need to decrease immortalityCounter if its already 0\n immortalityTimer--;\n }\n\n if (immortalityTimer >0 && floor(((float)immortalityTimer)/5)%2 ==0) {//needs to appear to be flashing so only show half of the time\n } else {\n\n Constants.processing.pushMatrix();\n Constants.processing.translate(this.position.x, this.position.y);\n Constants.processing.rotate(rotation);\n\n //actually draw the player\n Constants.processing.fill(0);\n Constants.processing.noStroke();\n Constants.processing.beginShape();\n int size = 12;\n\n //black triangle\n Constants.processing.vertex(-size - 2, -size);\n Constants.processing.vertex(-size - 2, size);\n Constants.processing.vertex(2 * size - 2, 0);\n Constants.processing.endShape(CLOSE);\n Constants.processing.stroke(255);\n\n //white out lines\n Constants.processing.line(-size - 2, -size, -size - 2, size);\n Constants.processing.line(2 * size - 2, 0, -22, 15);\n Constants.processing.line(2 * size - 2, 0, -22, -15);\n if (boosting) {//when boosting draw \"flames\" its just a little triangle\n boostCount--;\n if (floor(((float)boostCount)/3)%2 ==0) {//only show it half of the time to appear like its flashing\n Constants.processing.line(-size - 2, 6, -size - 2 - 12, 0);\n Constants.processing.line(-size - 2, -6, -size - 2 - 12, 0);\n }\n }\n Constants.processing.popMatrix();\n }\n }\n for (int i = 0; i < asteroids.size(); i++) {//show asteroids\n asteroids.get(i).show();\n }\n }", "public abstract WorldImage drawRow(int blocks);", "private void drawPlayerDetailBox(Graphics g, int x, int y) throws IOException{\n\t\t ImageIcon bg;\n\t\t bg = new ImageIcon(ImageIO.read(new File(relativePath + \"playerDetailBox.png\")));\n\t\t bg.paintIcon(this, g, x, y);\n\t }", "@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n if(ingame){\n\n int screenWidth = this.getWidth();\n int screenHeight = this.getHeight();\n\n\n for(int i = 0; i < end_positions.size(); i++){\n End_position item = end_positions.get(i);\n g.setColor(Color.green);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n\n g.setColor(Color.white);\n g.fillRect(player.getCurrentX()*screenWidth/LEVEL_WIDTH,player.getCurrentY()*screenHeight/LEVEL_HEIGHT,player.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,player.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n g.setColor(Color.yellow);\n g.fillRect(item.getCurrentX()*screenWidth/LEVEL_WIDTH,item.getCurrentY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n for(int i = 0; i < walls.size(); i++){\n Wall item = walls.get(i);\n\n g.setColor(Color.red);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n }\n\n }\n\n }", "public void Draw (Graphics graphics, MainJPanel JPanel){ // draw the player game pieces\n for(Piece piece : pieces.values())\n piece.Draw(graphics,JPanel);\n }", "public void draw() {\n if (!myTurn()) {\n return;\n }\n draw(4 - handPile.size());\n }", "private void Management_Block(Block block){\n\t\t\n\t\t switch(block.BlockState){\n\t\t \n\t\t case 0: // player is not lost game. continue with tile micro managment\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\n\t\t\t\t boolean CoinCollision = CollisionDetection(playerUser.bounds,rectTile);\n\t\t\t\t \n\t\t\t\t switch(tile.state)\n\t\t\t\t {\n\t\t\t\t \n\t\t\t\t case 0: // no collision, show the block\n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\n\t\t\t\t\t \n\t\t\t\t\t if (PauseGame) \n\t\t\t\t\t\t continue;\n\t\t\t\t\t\t \n\t\t\t\t\t\t if (CoinCollision==true){\n\t\t\t\t\t\t\t tile.state++; \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t\t\t\n\t\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t\t\t\t else if (ThisGameRound==GameState.Running){\t \n\t\t\t\t\t\t\t if (block.Passed==false){\n\t\t\t\t\t\t\t\t if (playerUser.position.x > block.Wall.get(0).rectTile.x){\n\t\t\t\t\t\t\t\t\t levelbuilder.gamePoints = levelbuilder.gamePoints + 1;\n\t\t\t\t\t\t\t\t\t fntScore.setBitmapText(\"Score: \" + String.valueOf(levelbuilder.gamePoints));\n\t\t\t\t\t\t\t\t\t block.Passed=true;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else if (block.Passed==true){\n\t\t\t\t\t\t\t\t //do nothing.\n\t\t\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\t \n\t\t\t\t\t\t \n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t case 1: \n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(),rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t \n\t\t\t\t\t // if there is a collotion, draw it one time only \t\t\t \t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t// collision, but player has key\n\t\t\t\t\t\t PhoneDevice.Vibrate();\t\n\t\t\t\t\t\t if ((playerUser.color==block.color) || (playerUser.color==Color.ALL)){\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\ttile.setBlockImg(tile.BlockType);\t\n\t\t\t\t\t \t\ttile.PlayBreakThoughSound();\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t // collision, but player dont have a key: break from tile loop and \n\t\t\t\t\t \t // draw block crash effect\n\t\t\t\t\t\t else if (DEBUG==false){\n\t\t\t\t\t\t\t block.BlockState=1;\n\t\t\t\t\t\t\t ThisGameRound = GameState.GameOver;\t\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t }\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t tile.pe = Effects.setNewEffect(enumEffects.TileDistruction, block.color);\t\t\t\t\t\t \n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t tile.pe.start();\t\n\t\t\t\t\t tile.state++;\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t case 2:\n\t\t\t\t\t // continue to draw the effect: no matter collision result\n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t \n\t\t\t\t\t tile.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t\t tile.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\t\t\t \t\t\t\t\t\n\t\t\t\t\t break;\n\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 break;\n\t\t case 1: // player hit the wall without key\t\t\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.PlayCrashSound();\t\t\n\t\t\t block.pe = Effects.setNewEffect(enumEffects.Crash, block.color);\t\t\t\t\t\t \n\t\t\t block.pe.setPosition(playerUser.bounds.x + playerUser.bounds.width,\n\t\t\t\t\t playerUser.bounds.y + playerUser.bounds.height/2);\t\n\t\t\t block.pe.start();\n\t\t\t block.BlockState++;\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t block.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\n\t\t\t break;\n\t\t }\t\t\n\t }", "private void renderMenu() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT * 2 / 3, \"CS61B The Game\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 + 2, \"New Game (N)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Load Game (L)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 - 2 , \"Quit (Q)\");\n StdDraw.show();\n }", "public abstract Scoreboard renderSidebar(Player player);", "private void drawPlayerPicture(Graphics g, int x, int y) throws IOException{\n\t\t ImageIcon bg;\n\t\t bg = new ImageIcon(ImageIO.read(new File(relativePath + \"playerPic.png\")));\n\t\t bg.paintIcon(this, g, x, y);\n\t }", "@Override\n public void render(float delta) {\n // Make our own update method for game logic. Do this before rendering\n update(Gdx.graphics.getDeltaTime());\n\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n b2dr.render(world, camera.combined.scl(PPM));\n\n batch.begin();\n batch.draw(playerTexture, 0, 0);\n batch.end();\n }", "private void drawNewDrawPanel(final Integer blkSize) {\n\t\tfrmNewBlock = new JFrame();\n\t\tfrmNewBlock.setPreferredSize(new Dimension(750, 700));\n\t\tfrmNewBlock.setTitle(\"New Block\");\n\t\tfrmNewBlock.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmNewBlock.pack();\n\t\tfrmNewBlock.setVisible(true);\n\n\t\tcontrolPanel = new JPanel();\n\t\tcontrolPanel.setLayout(new MigLayout(\"\", \"[100][15][3][287][287][3]\",\n\t\t\t\t\"[][12.00][25][25][25][500][][]\"));\n\n\t\tRuler ruler = new Ruler(blkSize);\n\t\tcontrolPanel.add(ruler, \"cell 2 0 4 6\");\n\n\t\tbuttonGroup = new ButtonGroup();\n\n\t\tbtnNew = new JButton(\"Start New Block\");\n\t\tbuttonGroup.add(btnNew);\n\t\tbtnNew.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmNewBlock.dispose();\n\t\t\t\tnew NewBlockFrame();\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnNew, \"cell 0 2\");\n\n\t\tbtnReset = new JButton(\"Reset Block\");\n\t\tbuttonGroup.add(btnReset);\n\t\tbtnReset.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontrolPanel.repaint();\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnReset, \"cell 0 3,growx\");\n\n\t/*\tbtnUndo = new JButton(\"Undo Last\");\n\t\tbuttonGroup.add(btnUndo);\n\t\tbtnUndo.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tblkLines = DrawPiece.getBlkLines();\n\t\t\t\tblkLines = DrawPiece.removeBlkLine(blkLines);\n\t\t\t\truler.repaint();\n\t\t\t\truler.add(new DrawBlock(blkLines));\n\t\t\t\truler.repaint();\n\t\t\t\t\n\t\t\t\t\t*/\t\t\t\t\t\t\n\n//\t\t\t\tGraphics2D g2 = (Graphics2D) drawPiece.drawPieceSingleton\n//\t\t\t\t\t\t.getGraphics();\n//\n//\t\t\t\tThread myThread = new Thread() {\n//\n//\t\t\t\t\tpublic void run() {\n//\t\t\t\t\t\tGraphics2D g2 = (Graphics2D) drawPiece.drawPieceSingleton\n//\t\t\t\t\t\t\t\t.getGraphics();\n//\t\t\t\t\t\t\n//\t\t\t\t\t\tdrawPiece.redrawBlkLines(g2, blkLines);\t\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t\t}\n//\n//\t\t\t\t};\n//\t\t\t\tmyThread.start();\n//\n//\t\t\t\tg2.setColor(Color.RED);\n//\n//\t\t\t}\n//\t});\n//\t\tcontrolPanel.add(btnUndo, \"cell 3 6,alignx left\");\n\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbuttonGroup.add(btnSave);\n\t\tbtnSave.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tRandom rand = new Random();\n\t\t\t\tString blkName = JOptionPane.showInputDialog(\"Please enter \"\n\t\t\t\t\t\t+ \"a name for the block: \");\n\t\t\t\tint id = (int)QuiltPad.blockRepository.count() + 1;\n\t\t\t\tint uPieces = rand.nextInt(12) + 1;\n\t\t\t\tBlock block = new Block(id, blkName, blkSize, uPieces, blkLines);\n\t\t\t\tQuiltPad.blockRepository.save(block);\n\t\t\t\tfrmNewBlock.dispose();\n\t\t\t\tnew BlockFrame();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnSave, \"cell 4 6,alignx right\");\n\t\t\n\t\tfrmNewBlock.getContentPane().add(controlPanel);\n\n\t}", "@Override\n public void draw(GameCanvas canvas) {\n drawWall(canvas, true, opacity);\n drawWall(canvas, false, opacity);\n }", "public void display() {\t\t\n\t\tparent.pushStyle();\n\t\t\n\t\t//parent.noStroke();\n\t\t//parent.fill(255);\n\t\tparent.noFill();\n\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\tnodeSpin.drawNode(pos.x, pos.y, diam);\n\t\t\n\t\t//This should match what happens in the hover animation\n\t\tif (focused && userId >= 0) {\n\t\t\tparent.fill(Sequencer.colors[userId]);\n\t\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\t}\n\t\t\n\t\trunAnimations();\n\t\t\n\t\tparent.popStyle();\n\t}", "@Override\n public void render() {\n if (!gameOver && !youWin) this.update();\n\n //Dibujamos\n this.draw();\n }", "private void initialize() {\n\n this.levelName = \"Green 3\";\n this.numberOfBalls = 2;\n int ballsRadius = 5;\n Color ballsColor = Color.white;\n this.paddleHeight = (screenHeight / 27);\n this.paddleWidth = (screenWidth / 8);\n this.paddleSpeed = 11;\n int surroundingBlocksWidth = 30;\n this.paddleColor = new Color(1.0f, 0.699f, 0.000f);\n this.paddleUpperLeft = new Point(screenWidth / 2.2, screenHeight - surroundingBlocksWidth\n - this.paddleHeight);\n Color backgroundColor = new Color(0.000f, 0.420f, 0.000f);\n this.background = new Block(new Rectangle(new Point(0, 0), screenWidth + 1\n , screenHeight + 2), backgroundColor);\n this.background.setNumber(-1);\n\n Color[] colors = {Color.darkGray, Color.red, Color.yellow, Color.blue, Color.white};\n int blocksRowsNum = 5;\n int blocksInFirstRow = 10;\n int blocksWidth = screenWidth / 16;\n int blockHeight = screenHeight / 20;\n int firstBlockYlocation = screenHeight / 4;\n int removableBlocks = 0;\n Block[][] stairs = new Block[blocksRowsNum][];\n //blocks initialize.\n for (int i = 0; i < blocksRowsNum; i++, blocksInFirstRow--) {\n int number;\n for (int j = 0; j < blocksInFirstRow; j++) {\n if (i == 0) {\n number = 2; //top row.\n } else {\n number = 1;\n }\n stairs[i] = new Block[blocksInFirstRow];\n Point upperLeft = new Point(screenWidth - (blocksWidth * (j + 1)) - surroundingBlocksWidth\n , firstBlockYlocation + (blockHeight * i));\n stairs[i][j] = new Block(new Rectangle(upperLeft, blocksWidth, blockHeight), colors[i % 5]);\n if (stairs[i][j].getHitPoints() != -2 && stairs[i][j].getHitPoints() != -3) { // not death or live block\n stairs[i][j].setNumber(number);\n removableBlocks++;\n }\n this.blocks.add(stairs[i][j]);\n }\n\n }\n this.numberOfBlocksToRemove = (int) (removableBlocks * 0.5); //must destroy half of them.\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n List<Velocity> v = new ArrayList<>();\n v.add(Velocity.fromAngleAndSpeed(45, 9));\n v.add(Velocity.fromAngleAndSpeed(-45, 9));\n this.ballsFactory = new BallsFactory(this.ballsCenter, ballsRadius, ballsColor,\n screenWidth, screenHeight, v);\n\n //bodies.\n //tower.\n Block base = new Block(new Rectangle(new Point(surroundingBlocksWidth + screenWidth / 16, screenHeight * 0.7)\n , screenWidth / 6, screenHeight * 0.3), Color.darkGray);\n base.setNumber(-1);\n this.bodies.add(base);\n Block base2 = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLine()\n .middle().getX() - base.getWidth() / 6\n , base.getCollisionRectangle().getUpperLeft().getY() - base.getHeight() / 2.5), base.getWidth() / 3\n , base.getHeight() / 2.5), Color.gray);\n base2.setNumber(-1);\n this.bodies.add(base2);\n Block pole = new Block(new Rectangle(new Point(base2.getCollisionRectangle().getUpperLine().middle().getX()\n - base2.getWidth() / 6, base2.getCollisionRectangle().getUpperLeft().getY() - screenHeight / 3)\n , base2.getWidth() / 3, screenHeight / 3), Color.lightGray);\n pole.setNumber(-1);\n this.bodies.add(pole);\n\n double windowWidth = base.getWidth() / 10;\n double windowHeight = base.getHeight() / 7;\n double b = base.getWidth() / 12;\n double h = base.getHeight() / 20;\n for (int i = 0; i < 6; i++) { //windows of tower.\n for (int j = 0; j < 5; j++) {\n Block window = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLeft().getX() + b\n + (windowWidth + b) * j,\n base.getCollisionRectangle().getUpperLeft().getY() + h + (windowHeight + h) * i), windowWidth\n , windowHeight), Color.white);\n window.setNumber(-1);\n this.bodies.add(window);\n }\n }\n\n //circles on the top of the tower.\n Circle c1 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 17, Color.black, \"fill\");\n Circle c2 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 12, Color.darkGray, \"fill\");\n Circle c3 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 7, Color.red, \"fill\");\n this.bodies.add(c1);\n this.bodies.add(c2);\n this.bodies.add(c3);\n\n\n }", "public void draw(Canvas canvas) {\n // Draw the game\n for (int i = 0; i < width + 2; i++) {\n for (int j = 0; j < height + 2; j++) {\n canvas.setPoint(i, j, '.');\n }\n }\n\n for (int i = 0; i < width + 2; i++) {\n canvas.setPoint(i, 0, '-');\n canvas.setPoint(i, height + 1, '-');\n }\n\n for (int i = 0; i < height + 2; i++) {\n canvas.setPoint(0, i, '|');\n canvas.setPoint(width + 1, i, '|');\n }\n\n for (BaseObject object : getAllItems()) {\n object.draw(canvas);\n }\n }", "@Override\n\tpublic void paintComponent(Graphics gr)\n\t{\n\t\tframeWidth = getWidth();\n\t\tframeHeight = getHeight();\n\t\tGraphics2D g2 = (Graphics2D) gr;\n\t\tg2.setStroke(new BasicStroke(STROKE_SIZE));\n\t\tdrawDeck(g2);\n\t\tdrawPlayerDecks(g2);\n\t\tif (!displayDialog.equals(\"\"))\n\t\t\tdrawDisplayDialog(g2, displayDialog);\n\t\tdrawDeckSize(g2);\n\t}", "public void render(){\n spriteBatch.begin();\n drawEnemies();\n drawPlayer();\n drawBullets();\n spriteBatch.end();\n if(debug){\n drawDebug();\n }\n }", "public void draw() {\n p.pushMatrix(); // save old visual style for other sprites\n p.translate(pos.x, pos.y); \n if (localpen) p.image(pen.get(0,0,p.width,p.height),p.width/2-pos.x, p.height/2-pos.y);\n if (visible) {\n // locked left-right rotation\n if (((direction%360<=270) & (direction%360>=90)) & rotationStyle==rotationStyle_leftRight) p.scale(-1.0f,1.0f);\n if (rotationStyle==rotationStyle_allAround) p.rotate(p.radians(-direction));\n if (ghostEffect > 0) {\n int calculatedAlpha = (int)p.map(ghostEffect,100,0,0,255);\n \n int[] alpha = new int[costumes.get(costumeNumber).width*costumes.get(costumeNumber).height];\n for (int i=0; i<alpha.length; i++) {\n // only fade non-zero pixels; 0 is full-transparency\n if (costumes.get(costumeNumber).pixels[i]!=0) alpha[i]=calculatedAlpha;\n }\n costumes.get(costumeNumber).mask(alpha);\n }\n p.image(costumes.get(costumeNumber), 0, 0, costumes.get(costumeNumber).width*(size/100),\n costumes.get(costumeNumber).height*(size/100));\n }\n p.popMatrix(); // restore default visual style\n }", "public void startGame(){\r\n mainPanel.removeAll();\r\n panelDraw.Startlevel();\r\n mainPanel.add(panelDraw, BorderLayout.CENTER);\r\n mainPanel.add(panelInforound, BorderLayout.WEST);\r\n \r\n repaint();\r\n revalidate();\r\n }", "@Override\r\n\tprotected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {\n\t\tResourceLocation texture = new ResourceLocation(\"textures/gui/container/hopper.png\");\r\n\t\tthis.mc.renderEngine.bindTexture(texture);\r\n\t\tint x = (width - xSize) / 2;\r\n\t\tint y = (height - ySize) / 2;\r\n\t\tthis.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);\r\n\t\t\r\n\t\t/*int progress = Math.round(24 * (40 - te.getTime()) / 40.0f);\r\n\t\tif(te.getTime() == 0) {\r\n\t\t\tprogress = 0;\r\n\t\t}\r\n\t\tthis.drawTexturedModalRect(x+79, y+29, 176, 0, 17, progress);*/\r\n\t}", "public void draw() {\n\n // Make sure our drawing surface is valid or we crash\n if (ourHolder.getSurface().isValid()) {\n // Lock the canvas ready to draw\n canvas = ourHolder.lockCanvas();\n // Draw the background color\n paint.setTypeface(tf);\n canvas.drawColor(Color.rgb(178,223,219));\n paint.setColor(Color.rgb(255,255,255));\n canvas.drawRect(offsetX, offsetY, width-offsetX, (height-100)-offsetY, paint);\n // Choose the brush color for drawing\n paint.setColor(Color.argb(50,0,0,0));\n paint.setFlags(Paint.ANTI_ALIAS_FLAG);\n // Make the text a bit bigger\n paint.setTextSize(40);\n paint.setStrokeWidth(5);\n paint.setStrokeCap(Paint.Cap.ROUND);\n // Display the current fps on the screen\n canvas.drawText(\"FPS:\" + fps, 20, 40, paint);\n paint.setTextSize(400);\n if(hasTouched == true) {\n if (count < 0) {\n canvas.drawText(0 + \"\", (width / 2) - 100, height / 2, paint);\n } else if(count<=numLines) {\n canvas.drawText(count + \"\", (width / 2) - 100, height / 2, paint);\n }\n } else {\n paint.setTextSize(100);\n canvas.drawText(\"TAP TO START\", (width / 2) - 300, height / 2, paint);\n }\n paint.setColor(Color.rgb(0,150,136));\n\n paint.setColor(color);\n\n canvas.drawCircle(xPosition, yPosition, radius, paint);\n\n paint.setColor(lineColor);\n\n if(isMoving==true && hasHit == false && count>=0) {\n canvas.drawLine(initialX, initialY, endX, endY, paint);\n }\n paint.setColor(Color.rgb(103,58,183));\n\n for(int i=0; i<verts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts[0].length, verts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n for (int i=0; i<innerVerts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, innerVerts[0].length, innerVerts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(canvas);\n\n //Display size and width\n\n }\n\n }" ]
[ "0.67873496", "0.6756593", "0.6651504", "0.64247805", "0.63934505", "0.63892156", "0.6335345", "0.62876385", "0.6280771", "0.6256752", "0.62504536", "0.6247135", "0.6231595", "0.6215079", "0.61441344", "0.6137381", "0.61208457", "0.61111236", "0.61057305", "0.6097496", "0.6083109", "0.6082527", "0.60450155", "0.60411185", "0.60350806", "0.60244596", "0.6021906", "0.60211706", "0.60102737", "0.5974123", "0.59687465", "0.59468144", "0.59446424", "0.5934373", "0.59335685", "0.593321", "0.5930576", "0.5930261", "0.5911434", "0.58772445", "0.58666897", "0.58632994", "0.5856262", "0.58482784", "0.58469146", "0.5846658", "0.58385146", "0.5836352", "0.5832499", "0.5827444", "0.5824659", "0.58184445", "0.5812514", "0.5811636", "0.5809336", "0.5807586", "0.58045965", "0.58026946", "0.57947004", "0.579075", "0.57904917", "0.57897854", "0.5770791", "0.5767155", "0.5761719", "0.57537943", "0.57416445", "0.57387257", "0.57364917", "0.5733752", "0.57248735", "0.5717603", "0.57144207", "0.5713514", "0.5707688", "0.5706514", "0.5706368", "0.5703967", "0.5700318", "0.5699428", "0.5698215", "0.5689323", "0.56830984", "0.5682747", "0.56791455", "0.56735075", "0.5666816", "0.5666651", "0.56616837", "0.5659952", "0.5657546", "0.5649417", "0.5644766", "0.56420887", "0.5637229", "0.56364363", "0.5632115", "0.5629847", "0.56281424", "0.5626727", "0.56248707" ]
0.0
-1
A method to reset the player variables back to their default.
public void resetPlayer() { health = 3; playerSpeed = 5f; multiBulletIsActive = false; speedBulletIsActive = false; quickFireBulletIsActive = false; invincipleTimer = 0; xPosition = 230; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetPlayer() {\n\t\tthis.carrotCards = 65;\n\t\tthis.playerSpace = 0;\n\n\t}", "private void resetParameters() {\n\t\twKeyDown = false;\n\t\taKeyDown = false;\n\t\tsKeyDown = false;\n\t\tdKeyDown = false;\n\t\tmouseDown = false;\n\t\t// reset mouse\n\t\tMouse.destroy();\n\t\ttry {\n\t\t\tMouse.create();\n\t\t} catch (LWJGLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t// resets the player's hp\n\t\tplayer.setHP(1000);\n\t\t// resets the player's position\n\t\tplayer.setX(initPlayerX);\n\t\tplayer.setY(initPlayerY);\n\t\t// the game is not over\n\t\tgameOver = false;\n\t\tstopDrawingPlayer = false;\n\t\tgameWon = false;\n\t\t// clears the entity arraylists\n\t\tenemy.clear();\n\t\tbullet.clear();\n\t\tenemy_bullet.clear();\n\t\tpowerup.clear();\n\t\texplosion.clear();\n\t\t// cash and totalCash are 0\n\t\tcash = 0;\n\t\ttotalCash = 0;\n\t\t// bullet is activated, upgraded weapons are not activated\n\t\tbulletShot = true;\n\t\tdoubleShot = false;\n\t\tlaserShot = false;\n\t\t// boss\n\t\tbossSpawned = false;\n\t\tbossMovement = 3;\n\t\tbossExplosionNum = 0;\n\t}", "public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}", "public void reset() { \r\n myGameOver = false; \r\n myGamePaused = false; \r\n }", "public void resetPlayerInfo() {\r\n\t\tthis.damageDealt = 0;\r\n\t\tthis.damageTaken = 0;\r\n\t\tthis.robotsDestroyed = 0;\r\n\t\tthis.tilesMoved = 0;\r\n\t\tthis.turnsSinceLastMove = 0;\r\n\t\tthis.turnsSinceLastFire = 0;\r\n\t\t\r\n\t\tthis.robots = new ArrayList<Robot>(3);\r\n\t\t\r\n\t\t/* 0 = scout , 1 = sniper, 2 = tank */\r\n\t\tthis.robots.add(new Robot(playerID, 0));\r\n\t\tthis.robots.add(new Robot(playerID, 1));\r\n\t\tthis.robots.add(new Robot(playerID, 2));\r\n\t}", "public void reset() {\n monster.setHealth(10);\n player.setHealth(10);\n\n }", "public void resetGame(){\n\t\tPlayer tempPlayer = new Player();\n\t\tui.setPlayer(tempPlayer);\n\t\tui.resetCards();\n\t}", "public void reset() {\n gameStatus = null;\n userId = null;\n gameId = null;\n gameUpdated = false;\n selectedTile = null;\n moved = false;\n }", "public void resetVariables() {\n this.name = \"\";\n this.equipLevel = 0;\n this.cpuCost = 0;\n this.bankDamageModifier = 1.0f;\n this.redirectDamageModifier = 1.0f;\n this.attackDamageModifier = 1.0f;\n this.ftpDamageModifier = 1.0f;\n this.httpDamageModifier = 1.0f;\n this.attackDamage = 0.0f;\n this.pettyCashReducePct = 1.0f;\n this.pettyCashFailPct = 1.0f;\n this.dailyPayChangeFailPct = 1.0f;\n this.dailyPayChangeReducePct = 1.0f;\n this.stealFileFailPct = 1.0f;\n this.installScriptFailPct = 1.0f;\n }", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "private void reset() {\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.clear();\n dominator = \"\";\n firstBlood = false;\n }", "public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }", "public void resetGame() {\r\n\t\tfor(Player p : players) {\r\n\t\t\tp.reset();\r\n\t\t}\r\n\t\tstate.reset();\r\n\t}", "private void reset() // reset the game so another game can be played.\n\t{\n\t\tenableControls(); // enable the controls again..\n\n\t\tfor (MutablePocket thisMutPocket: playerPockets) // Reset the pockets to their initial values.\n\t\t{\n\t\t\tthisMutPocket.setDiamondCount(3);\n\t\t}\n\n\t\tfor(ImmutablePocket thisImmPocket: goalPockets)\n\t\t{\n\t\t\tthisImmPocket.setDiamondCount(0);\n\t\t}\n\n\t\tfor(Player thisPlayer: players) // Same for the player..\n\t\t{\n\t\t\tthisPlayer.resetPlayer();\n\t\t}\n\n\t\tupdatePlayerList(); // Update the player list.\n\n\t}", "public void ResetPlayer() {\n\t\tfor (int i = 0; i < moveOrder.length; i++) {\n\t\t\tmoves.add(moveOrder[i]);\n\t\t}\n\t\tthis.X = 0;\n\t\tthis.Y = 0;\n\t\tthis.movesMade = 0;\n\t\tthis.face = 1;\n\t}", "@Override\n public void reset() {\n updateDice(1, 1);\n playerCurrentScore = 0;\n playerScore = 0;\n updateScore();\n notifyPlayer(\"\");\n game.init();\n }", "public void resetPlayerPassed() {\n d_PlayerPassed = false;\n }", "private void reset(){\n getPrefs().setEasyHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n getPrefs().setMediumHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n getPrefs().setHardHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n easyData.setText(formatHighScore(getPrefs().getEasyHighScore()));\n mediumData.setText(formatHighScore(getPrefs().getMediumHighScore()));\n hardData.setText(formatHighScore(getPrefs().getHardHighScore()));\n }", "private void resetAfterGame() {\n }", "public void resetgamestate() {\n \tthis.gold = STARTING_GOLD;\n \tthis.crew = STARTING_FOOD;\n \tthis.points = 0;\n \tthis.masterVolume = 0.1f;\n this.soundVolume = 0.5f;\n this.musicVolume = 0.5f;\n \n this.ComputerScience = new Department(COMP_SCI_WEPS.getWeaponList(), COMP_SCI_UPGRADES.getRoomUpgradeList(), this);\n this.LawAndManagement = new Department(LMB_WEPS.getWeaponList(), LMB_UPGRADES.getRoomUpgradeList(), this);\n this.Physics = new Department(PHYS_WEPS.getWeaponList(), PHYS_UPGRADES.getRoomUpgradeList(), this);\n \n this.playerShip = STARTER_SHIP.getShip();\n this.playerShip.setBaseHullHP(700);\n this.playerShip.repairHull(700);\n this.combatPlayer = new CombatPlayer(playerShip);\n }", "private void resetGame() {\n game.resetScores();\n this.dialogFlag = false;\n rollButton.setDisable(false);\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n setDefault(\"player\");\n setDefault(\"computer\");\n }", "public void reset() {\n\n players = new Player[numAIPlayers + 1];\n createHumanPlayer();\n createAIPlayers(numAIPlayers);\n wholeDeck.shuffle();\n\n // --- DEBUG LOG ---\n // The contents of the complete deck after it has been shuffled\n Logger.log(\"COMPLETE GAME DECK AFTER SHUFFLE:\", wholeDeck.toString());\n\n assignCards(wholeDeck, players);\n activePlayer = randomlySelectFirstPlayer(players);\n playersInGame = new ArrayList<>(Arrays.asList(players));\n winningCard = null;\n roundWinner = null;\n\n roundNumber = 1;\n drawRound = 0;\n }", "protected void reset() {\n speed = 2.0;\n max_bomb = 1;\n flame = false;\n }", "private void resetValues() {\n teamAScoreInt = 0;\n teamBScoreInt = 0;\n teamAFoulScoreInt = 0;\n teamBFoulScoreInt = 0;\n }", "public void reset() {\n playing = true;\n won = false;\n startGame();\n\n // Make sure that this component has the keyboard focus\n requestFocusInWindow();\n }", "public void resetVariables() {\n\t\tArrays.fill(variables, 0.0);\n\t}", "public void resetPlayerPosition() {\n\t\tthis.tilePositionX = this.STARTING_X;\n\t\tthis.tilePositionY = this.STARTING_Y;\n\t}", "void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear();\n }\n }", "public void resetStats(){\n curA = attack;\n curD = defense;\n curSpA = spAttack;\n curSpD = spDefense;\n curS = speed;\n }", "public static void resetData() {\n\t\t// resets all game data\n\t\tbSpeed = 9;\n\t\tbSize = 16;\n\t\tpSize = 100;\n\t\tpSpeed = 7;\n\t\tbSpin = 15;\n\t}", "private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }", "public void reset(){\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm -r data/games_module\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"sed -i \\\"1s/.*/ \"+\"0\"+\" /\\\" data/winnings\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"sed -i \\\"1s/.*/ \"+\"175\"+\" /\\\" data/tts_speed\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/answered_questions\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/five_random_categories\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/current_player\");\n\t\t_currentPlayer = null;\n\t\t_internationalUnlocked = false;\n\t\t_gamesData.clear();\n\t\t_fiveRandomCategories.clear();\n\t\tfor (int i= 0; i<5;i++) {\n\t\t\t_answeredQuestions[i]=0;\n\t\t}\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/answered_questions\");\n\t\tinitialiseCategories();\n\t\ttry {\n\t\t\treadCategories();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsetFiveRandomCategories();\n\t}", "private void ResetGame(){\n this.deck = new Deck();\n humanPlayer.getHand().clear();\n humanPlayer.setWager(0);\n dealer.getHand().clear();\n }", "public void resetPlayer(){\n images = new EntitySet(true,false, 0);\n }", "public void reset() {\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tfor (int j = 0; j<DIVISIONS; j++){\n\t\t\t\tgameArray[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tgameWon = false;\n\t\twinningPlayer = NEITHER;\n\t\tgameTie = false;\n\t\tcurrentPlayer = USER;\n\t}", "public void reset() {\n\t\t//reset player to 0\n\t\tplayer = 0;\n\t\t\n\t\tfor(int row = size - 1; row >= 0; row --)\n\t\t\tfor(int col = 0; col < size; col ++)\n\t\t\t\tfor(int dep = 0; dep < size; dep ++)\n\t\t\t\t\t//goes through all board positions and sets to -1\n\t\t\t\t\tboard[row][col][dep] = -1;\n\t}", "public void reset() {\r\n \ts.set(Constants.FRAME_WIDTH/2, Constants.FRAME_HEIGHT/2);\r\n \tshootdelay=500;\r\n \tbulletlife = 20;\r\n }", "public static void variableReset() {\n\t\tLogic.pieceJumped = 0;\n\t\tLogic.bool = false;\n\t\tLogic.curComp = null;\n\t\tLogic.prevComp = null;\n\t\tLogic.jumpedComp = null;\n\t\tLogic.ydiff = 0;\n\t\tLogic.xdiff = 0;\n\t\tLogic.jumping = false;\n\t\tmultipleJump = false;\n\t\t\n\t}", "public void reset() {\n // corresponding function called in the Board object to reset piece\n // positions\n board.reset();\n // internal logic reset\n lastColor = true;\n gameOver = false;\n opponentSet = false;\n }", "private void reset() {\n\n\n spaceShips.clear();\n playerOne = null;\n playerTwo = null;\n friendlyBullets.clear();\n enemyBullets.clear();\n powerUps.clear();\n enemyGenerator.reset();\n difficulty.reset();\n Bullets.BulletType.resetSpeed();\n\n for (int i = 0; i < enemies.size(); i++) {\n enemies.get(i).getEnemyImage().delete();\n }\n enemies.clear();\n }", "public void reset() {\n mMediaPlayer.reset();\n setPlayerState(State.IDLE);\n }", "public void resetGame(){\n\t\tlabyrinth.reset();\n\t\tlabyrinth = Labyrinth.getInstance();\n\t\tplayer.setX(0);\n\t\tplayer.setY(0);\n\n\t\tcandies = new HashMap();\n\t\tenemies = new HashMap();\n\t\tbuttons = new HashMap();\n\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tdoor.setX(coordX);\n\t\tdoor.setY(coordY);\n\n\t\tgenerateCandies();\n\t\tgenerateEnemies();\n\n\t}", "public void reset() {\n\t\tAssets.playSound(\"tweet\");\n\t\tscore = respawnTimer = spawnCount= 0;\n\t\t\n\t\twalls = new ArrayList<Wall>();\n\t\tcheckPoints = new ArrayList<Wall>();\n\t\tground = new ArrayList<Ground>();\n\n\t\tGround g;\n\t\tPoint[] points = new Point[21];\n\t\tfor (int i = 0; i < 21; i++) {\n\t\t\tpoints[i] = new Point(i * 32, 448);\n\t\t}\n\t\tfor (int j = 0; j < points.length; j++) {\n\t\t\tg = new Ground();\n\t\t\tg.setBounds(new Rectangle(points[j].x, 448, 32, 32));\n\t\t\tground.add(g);\n\t\t}\n\n\t\tsky = new Background(-0.2);\n\t\tsky.setImage(Assets.sprite_sky);\n\t\t\n\t\tmountains = new Background(-0.4);\n\t\tmountains.setImage(Assets.sprite_mountains);\n\t\t\n\t\ttrees = new Background(-1.4);\n\t\ttrees.setImage(Assets.sprite_trees);\n\n\t\tstarted = false;\n\t\tplayer.reset();\n\n\t}", "public void resetGame() {\n\t\thandler.setDown(false);\n\t\thandler.setLeft(false);\n\t\thandler.setRight(false);\n\t\thandler.setUp(false);\n\n\t\tclearOnce = 0;\n\t\thp = 100;\n\t\tfromAnotherScreen = true;\n\t\tsetState(1);\n\t}", "public void resetPlayers() {\n Player curPlayer;\n for(int i = 0; i < players.size(); i++){\n curPlayer = players.peek();\n curPlayer.resetRole();\n curPlayer.setLocation(board.getSet(\"trailer\"));\n curPlayer.setAreaData(curPlayer.getLocation().getArea());\n view.setDie(curPlayer);\n players.add(players.remove());\n }\n\n }", "public static void resetGame() {\r\n\t\t//Set all variables to their default values.\r\n\t\tMain.isGameStarted = false;\r\n\t\tMain.isSetupDone = false;\r\n\t\tMain.isGameWon = false;\r\n\t\tMain.isGameLost = false;\r\n\t\tMain.isThreeHanded = false;\r\n\t\tMain.isFourHandedSingle = false;\r\n\t\tMain.isFourHandedTeams = false;\r\n\t\tMain.doBidding = false;\r\n\t\tMain.doScoring = false;\r\n\t\tMain.dealerIsPlayer1 = false;\r\n\t\tMain.dealerIsPlayer2 = false;\r\n\t\tMain.dealerIsPlayer3 = false;\r\n\t\tMain.dealerIsPlayer4 = false;\r\n\t\tMain.isNilAllowed = true;\r\n\t\tMain.isDoubleNilAllowed = true;\r\n\t\tMain.nilBidTeam1 = false;\r\n\t\tMain.nilBidTeam2 = false;\r\n\t\tMain.doubleIsAllowedPlayer1 = false;\r\n\t\tMain.doubleIsAllowedPlayer2 = false;\r\n\t\tMain.doubleIsAllowedPlayer3 = false;\r\n\t\tMain.doubleIsAllowedPlayer4 = false;\r\n\t\tMain.doubleIsAllowedTeam1 = false;\r\n\t\tMain.doubleIsAllowedTeam2 = false;\r\n\r\n\t\t\r\n\t\tMain.player1 = \"\";\r\n\t\tMain.player2 = \"\";\r\n\t\tMain.player3 = \"\";\r\n\t\tMain.player4 = \"\";\r\n\t\tMain.team1 = \"\";\r\n\t\tMain.team2 = \"\";\r\n\t\tMain.player1Bid = \"\";\r\n\t\tMain.player2Bid = \"\";\r\n\t\tMain.player3Bid = \"\";\r\n\t\tMain.player4Bid = \"\";\r\n\t\tMain.player1TricksTaken = \"\";\r\n\t\tMain.player2TricksTaken = \"\";\r\n\t\tMain.player3TricksTaken = \"\";\r\n\t\tMain.player4TricksTaken = \"\";\r\n\t\tMain.curDealer = \"\";\r\n\t\tMain.startDealer = \"\";\r\n\t\tMain.bagValue = \"1\";\r\n\t\tMain.nilValue = \"50\";\r\n\t\tMain.doubleNilValue = \"200\";\r\n\t\t\r\n\t\tMain.round = 0;\r\n\t\tMain.player1TimesSet = 0;\r\n\t\tMain.player2TimesSet = 0;\r\n\t\tMain.player3TimesSet = 0;\r\n\t\tMain.player4TimesSet = 0;\r\n\t\tMain.player1Score = \"0\";\r\n\t\tMain.player2Score = \"0\";\r\n\t\tMain.player3Score = \"0\";\r\n\t\tMain.player4Score = \"0\";\r\n\t\tMain.team1Score = \"0\";\r\n\t\tMain.team2Score = \"0\";\r\n\t\t\r\n\t\tGameSetup.gameTypeHidden.setState(true);\r\n\t\tGameSetup.threeHanded.setEnabled(true);\r\n\t\tGameSetup.fourHandedSingle.setEnabled(true);\r\n\t\tGameSetup.fourHandedTeams.setEnabled(true);\r\n\t\tGameSetup.dealerHidden.setState(true);\r\n\t\tGameSetup.choiceBoxPlayer1.setEnabled(true);\r\n\t\tGameSetup.choiceBoxPlayer2.setEnabled(true);\r\n\t\tGameSetup.choiceBoxPlayer3.setEnabled(true);\r\n\t\tGameSetup.choiceBoxPlayer4.setEnabled(true);\r\n\t\tGameSetup.hasPlayerChanged = false;\r\n\t\t\r\n\t\tEditGame.playerChanged = false;\r\n\t\tEditGame.scoreChanged = false;\r\n\t\tEditGame.roundToEdit = 0;\r\n\t\tEditGame.editedRound = 0;\r\n\t}", "public void resetGame() {\r\n\r\n\t\tplayerScore = 0;\r\n\t\tframe.setVisible(false);\r\n\t\tgame = new Game();\r\n\r\n\t}", "public void reset() {\n\t\txD = x;\n\t\tyD = y;\n\t\taction = 0;\n\t\tdir2 = dir;\n\t\tvisibleToEnemy = false;\n\t\tselected = false;\n\t\t\n\t\tif (UNIT_R == true) {\n\t\t\t// dir = 0;\n\t\t} else if (UNIT_G == true) {\n\t\t\t// dir = 180 / 2 / 3.14;\n\t\t}\n\t}", "final void reset() {\r\n\t\t\tsp = 0;\r\n\t\t\thp = 0;\r\n\t\t}", "public void reset() {\r\n active.clear();\r\n missioncontrollpieces = GameConstants.PIECES_SET;\r\n rolled = 0;\r\n phase = 0;\r\n round = 0;\r\n action = 0;\r\n }", "private void reset() {\n ms = s = m = h = 0;\n actualizar();\n }", "public static void Reset(){\n\t\ttstr = 0;\n\t\ttluc = 0;\n\t\ttmag = 0; \n\t\ttacc = 0;\n\t\ttdef = 0; \n\t\ttspe = 0;\n\t\ttHP = 10;\n\t\ttMP = 0;\n\t\tstatPoints = 13;\n\t}", "public void resetGameRoom() {\n gameCounter++;\n score = MAX_SCORE / 2;\n activePlayers = 0;\n Arrays.fill(players, null);\n }", "public void reset ()\n\t{\n\t\t//The PaperAirplane and the walls (both types) use their reconstruct ()\n\t\t//method to set themselves back to their starting points.\n\t\tp.reconstruct ();\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i].reconstruct ();\n\t\t\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t\tsW[i].reconstruct ();\n\t\t\t\n\t\t//the time is reset using the resetTime () method from the Timer class.\n\t\ttime.resetTime ();\n\t\t\n\t\t//the score is reset using the reconstruct method from the Score class.\n\t\tscore.reconstruct ();\n\t\t\n\t\t//The following variables are set back to their original values set in\n\t\t//the driver class.\n\t\ttimePassed = 0;\t\n\t\tnumClicks = 0;\n\t\teventFrame = 0;\n\t\tlevel = 1;\n\t\txClouds1 = 0;\n\t\txClouds2 = -500;\n\t\tyBkg1 = 0;\n\t\tyBkg2 = 600;\t\t\n\t}", "public void ResetGame(){\n handComputer.clear();\n handHuman.clear();\n deck.clear();\n\n InitializeDeck();\n InitializeComputerHand();\n InitializeHumanHand();\n\n topCard = deck.get(0);\n }", "private void reset(){\r\n lives = 6;\r\n playerWins = false;\r\n word = randWord();\r\n wordArray = word.toCharArray();\r\n hidden = hideTheWord(word.length());\r\n guesses.clear();\r\n }", "private void resetPlayer(int playerID) {\n\n\t\tif(getPlayerMap().get(playerID) != null){\n\t\t\tgetPlayerMap().get(playerID).setParticipating(false);\n\t\t\tgetPlayerMap().get(playerID).setCrashed(false);\n\t\t\tgetPlayerMap().get(playerID).setCurrentPosition(null);\n\t\t\tgetPlayerMap().get(playerID).setCurrentVelocity(null);\n\t\t}\n\t}", "public void reset() {\n\t\tbg = TetrisDefaults.BGColor;\n\t\ttext = TetrisDefaults.TEXTColor;\n\t\tz = TetrisDefaults.ZColor;\n\t\ts = TetrisDefaults.SColor;\n\t\tleft = TetrisDefaults.LEFTColor;\n\t\tright = TetrisDefaults.RIGHTColor;\n\t\tline = TetrisDefaults.LINEColor;\n\t\ttri = TetrisDefaults.TRIANGLEColor;\n\t\tsquare = TetrisDefaults.SQUAREColor;\n\t\tflash = TetrisDefaults.FLASHColor;\n\t}", "@Override\n protected void resetVariables(){\n super.resetVariables();\n pointUp = false;\n }", "private void softReset() {\n // variables\n lapMap.clear();\n // ui\n sessionTView.setText(\"\");\n positionTView.setText(\"-\");\n currentLapTView.setText(\"--:--:---\");\n lastLapTView.setText(\"--:--:---\");\n bestLapTView.setText(\"--:--:---\");\n currentLapNumberTView.setText(\"-\");\n gapTView.setText(\" -.---\");\n fastestDriver = Float.MAX_VALUE;\n fastestDriverName = null;\n fastestDriverTView.setText(\"--:--:---\");\n fastestDriverNameTView.setText(\"Fastest lap\");\n Log.d(TAG, \"SOFT Reset: between game states\");\n }", "private void resetGame() {\n rockList.clear();\n\n initializeGame();\n }", "public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}", "public void reset() {\n\t\t// SimpleTools.processTrackingOutput(\"Resetting TicTacToe.\");\n\t\tfor (int i = 0; i < checkerboard.length; i++) {\n\t\t\tfor (int j = 0; j < checkerboard[0].length; j++) {\n\t\t\t\tcheckerboard[i][j] = EMPTY;\n\t\t\t} // Of for j\n\t\t} // Of for i\n\t\tcurrentState = 0;\n\t\tcurrentRouteLength = 1;\n\n\t\t// White first\n\t\tcurrentPlayer = WHITE;\n\t}", "public void resetValues() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(CUREDIFFICULTY, null);\n editor.putInt(CURETARGETSCORE, 0);\n editor.putInt(CURRSCOREFINDCURE, 0);\n editor.apply();\n System.out.println(sharedPreferences.getAll());\n\n }", "public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}", "public void resetBoard() {\n\t\tplayerTurn = 1;\n\t\tgameStart = true;\n\t\tdispose();\n\t\tplayerMoves.clear();\n\t\tnew GameBoard();\n\t}", "public void reset(){\n currentStage = 0;\n currentSide = sideA;\n }", "public void reset() {\n\t\tFile file = new File(\"src/LevelData.txt\");\n\t\tpaddle = new Paddle(COURT_WIDTH, COURT_HEIGHT, Color.BLACK);\n\t\tbricks = new Bricks(COURT_WIDTH, COURT_HEIGHT, file);\n\t\tball = new Ball(COURT_WIDTH, COURT_HEIGHT, 5, Color.BLACK);\n\n\t\tplaying = true;\n\t\tcurrScoreVal = 0;\n\t\tlivesLeft = 3;\n\t\tstatus.setText(\"Running...\");\n\t\tyourScore.setText(\"Your Score: 0\");\n\t\tlives.setText(\" Lives: \" + livesLeft.toString() + \"| \");\n\n\t\t// Making sure that this component has the keyboard focus\n\t\trequestFocusInWindow();\n\t}", "void resetGame() {\r\n if (GameInfo.getInstance().isWin()) {\r\n GameInfo.getInstance().resetDots();\r\n MazeMap.getInstance().init();\r\n GameInfo.getInstance().resetFruitDisappearTime();\r\n MazeMap.getInstance().updateMaze(GameInfo.getInstance().getMode());\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.PACMAN)) {\r\n pcs.removePropertyChangeListener(Constants.PACMAN, pcl);\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.GHOSTS)) {\r\n pcs.removePropertyChangeListener(Constants.GHOSTS, pcl);\r\n }\r\n PacMan pacMan = initPacMan();\r\n initGhosts(pacMan);\r\n }", "public void reset(){\r\n \ttablero.clear();\r\n \tfalling = null;\r\n \tgameOver = false;\r\n \tlevel = 0;\r\n \ttotalRows = 0;\r\n \tLevelHelper.setLevelSpeed(level, this);\r\n }", "public void reset()\r\n {\r\n gameBoard.reset();\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard.reset();\r\n }", "public void resetZealotCounter() {\n persistentValues.summoningEyeCount = 0;\n persistentValues.totalKills = 0;\n persistentValues.kills = 0;\n saveValues();\n }", "public void resetPlayerStats(PlayerStats oldStats) {\r\n\t\toldStats.numberOfWins = 0;\r\n\t\toldStats.numberOfGames = 0;\r\n\t\toldStats.numberOfAttacks = 0;\r\n\t\toldStats.numberOfSPAttacks = 0;\r\n\t\toldStats.numberOfMeals = 0;\r\n\t}", "public void reset() {\n\tthis.pinguins = new ArrayList<>();\n\tthis.pinguinCourant = null;\n\tthis.pret = false;\n\tthis.scoreGlacons = 0;\n\tthis.scorePoissons = 0;\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public void resetGame()\r\n\t{\r\n\t\tthis.inProgress = false;\r\n\t\tthis.round = 0;\r\n\t\tthis.phase = 0;\r\n\t\tthis.prices = Share.generate();\r\n\t\tint i = 0;\r\n\t\twhile(i < this.prices.size())\r\n\t\t{\r\n\t\t\tthis.prices.get(i).addShares(Config.StartingStockPrice);\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tint p = 0;\r\n\t\twhile(p < Config.PlayerLimit)\r\n\t\t{\r\n\t\t\tif(this.players[p] != null)\r\n\t\t\t{\r\n\t\t\t\tthis.players[p].reset();\r\n\t\t\t}\r\n\t\t\t++p;\r\n\t\t}\r\n\t\tthis.deck = Card.createDeck();\r\n\t\tthis.onTable = new LinkedList<>();\r\n\t\tCollections.shuffle(this.deck);\r\n\t\tthis.dealToTable();\r\n\t}", "void reset() {\n myManager.reset();\n myScore = 0;\n myGameOver = false;\n myGameTicks = myInitialGameTicks;\n myOldGameTicks = myInitialGameTicks;\n repaint();\n }", "public void reset() {\n\t\tpos.tijd = 0;\r\n\t\tpos.xposbal = xposstruct;\r\n\t\tpos.yposbal = yposstruct;\r\n\t\tpos.hoek = Math.PI/2;\r\n\t\tpos.start = 0;\r\n\t\topgespannen = 0;\r\n\t\tpos.snelh = 0.2;\r\n\t\tbooghoek = 0;\r\n\t\tpos.geraakt = 0;\r\n\t\tgeraakt = 0;\r\n\t\t\r\n\t}", "public void resetValues() {\n\t\tJavaValue[] publicJavaValues = this.publicVariables.values().toArray(new JavaValue[this.publicVariables.size()]);\n\t\tJavaValue[] privateJavaValues = this.privateVariables.values().toArray(new JavaValue[this.privateVariables.size()]);\n\n\t\tfor(int i = 0; i < publicJavaValues.length; i++) {\n\t\t\tpublicJavaValues[i].reset();\n\t\t}\n\n\t\tfor(int i = 0; i < privateJavaValues.length; i++) {\n\t\t\tprivateJavaValues[i].reset();\n\t\t}\n\t}", "public Player(){\n reset();\n }", "public void reset() {\n\t\tscore = 0;\n\t}", "public void setToDefualts(){\n\t\tchangeInPlayerHealth = 0;\n\t\tchangeInPlayerScore = 0;\n\t\tchangInBatteryCharge = 0;\n\t\tpuaseForAnimation = false;\n\t}", "public void reset()\n {\n currentScore = 0;\n }", "private void resetValues() {\n\t\ttotalNet = Money.of(Double.valueOf(0.0), currencyCode);\n\t\ttotalVat = Money.of(Double.valueOf(0.0), currencyCode);\n\t\ttotalGross = Money.of(Double.valueOf(0.0), currencyCode);\n\t}", "public void reset() {\n\t\tmCenterOfProjection = new Vector3f(0, 0, 15);\n\t\tmLookAtPoint = new Vector3f(0, 0, 0);\n\t\tmUpVector = new Vector3f(0, 1, 0);\n\t\tmCameraMatrix = new Matrix4f();\n\t\tthis.update();\n\t}", "private void reset() {\n\t\tsnake.setStart();\n\n\t\tfruits.clear();\n\t\tscore = fruitsEaten = 0;\n\n\t}", "public void reset(){\r\n\t\tSystem.out.println(\"(EnigmaMachine) Initial Positions: \" + Arrays.toString(initPositions));\r\n\t\trotors.setPositions(initPositions);\r\n\t}", "private void reset() {\n\n try {\n if (playerOne.win() || playerTwo.win()) {\n Stage stage = application.getPrimaryStage();\n stage.setScene(new EndScene(application, playerOne, playerTwo));\n } else {\n ball.setLayoutX(WIDTH / 2 - LAYOUT / 2);\n ball.setLayoutY(HEIGHT / 2 - LAYOUT / 2);\n\n ball.randomiseDirection(new Random().nextInt(4));\n ball.resetMovementSpeed();\n\n playerOnePaddle.setLayoutY(HEIGHT / 2 - playerOnePaddle.getHeight() / 2);\n playerTwoPaddle.setLayoutY(playerOnePaddle.getLayoutY());\n\n countdown = 50;\n }\n } catch (Exception ex) {\n Logger.getLogger(GameScene.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void resetModifiers() {\n\t\tsetmSabotage(0);\n\t\tsetmRallyTroops(0);\n\t\tsetmCoupure(0);\n\t\tsetmRaidSupplies(0);\n\t\tsetCanArchersAtack(true);\n\t\tsetCanBoilingWater(true);\n\t\tsetCanCloseCombat(true);\n\t\tsetCanCoupure(true);\n\t\tsetCanExtraAP(true);\n\t\tsetCanRallyTroops(true);\n\t\tsetCanTunnelMovement(true);\n\t}", "@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}", "private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }", "public void Reset()\r\n\t{\r\n\t\tif(!levelEditingMode)//CAN ONLY RESET IN LEVEL EDITING MODE\r\n\t\t{\r\n\t\t\tgrid.clearUserObjects();\r\n\t\t\tmenu = new SpriteMenu(listFileName, playButton);\r\n\t\t}\r\n\t}", "public static void reset() {\n\t\tbat1.reset();\n\t\tbat2.reset();\n\t\tball.reset();\n\t}", "@Override\n public void resetGame() {\n\n }", "public void reset() {\n delta = 0.0;\n solucionActual = null;\n mejorSolucion = null;\n solucionVecina = null;\n iteracionesDiferenteTemperatura = 0;\n iteracionesMismaTemperatura = 0;\n esquemaReduccion = 0;\n vecindad = null;\n temperatura = 0.0;\n temperaturaInicial = 0.0;\n tipoProblema = 0;\n alfa = 0;\n beta = 0;\n }", "private void reset() {\n\t\tmVelocityTracker.clear();\n\t\tmSwiping = false;\n\t\tmAbleToSwipe = false;\n\t}", "public static void setGlobalsToDefaults(){\r\n\t\tGlobals.globalvars.put(\"gamestage\", \"none\");\r\n\t\tGlobals.globalvars.put(\"cleft\", 0);\r\n\t\t\r\n\t\tInteger[] prematch = {64, 20};\r\n \tGlobals.cdpresets.put(\"pregame\", prematch);\r\n \tInteger[] getready = {5, 1200};\r\n \tGlobals.cdpresets.put(\"prepare\", getready);\r\n \tInteger[] battle = {10, 1200};\r\n \tGlobals.cdpresets.put(\"fight\", battle);\r\n \t\r\n \tGlobals.countdowns.clear();\r\n \tGlobals.lobby.clear();\r\n\t}", "public void reset() {\n\t board = new int[]{1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0,\n 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0,\n 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 2, 2, 2, 2};\n\t currentPlayer = 1;\n\t turnCount = 0;\n\t for (int i=0; i<81; i++) {\n\t \n\t\t hash ^= rand[3*i+board[i]]; //row-major order\n\t \n\t }\n }", "private void initVars(){\n this.dice = new Dice();\n this.playing = true;\n this.currentPlayer = 0;\n this.turn = 0;\n this.xPlayers=new ArrayList<>(); \n this.players = new Player[4];\n this.diceRoller=true;\n this.xTokens=new ArrayList<>();\n this.winners=new ArrayList<>();\n this.computerPlayer= new Autoplay();\n this.gameResults = \"\";\n this.debug = false;\n }", "@Override\n public void reset(MiniGame game) {\n }" ]
[ "0.8199863", "0.7695793", "0.75960416", "0.7587892", "0.7552359", "0.7547437", "0.75199264", "0.75141126", "0.7368844", "0.7364576", "0.73611844", "0.73610556", "0.73514974", "0.7336463", "0.7323359", "0.7230542", "0.72136366", "0.7167224", "0.7122534", "0.7102501", "0.7101318", "0.7098227", "0.70921373", "0.7091115", "0.7088821", "0.70665914", "0.7063817", "0.70621336", "0.7052651", "0.7050779", "0.7044399", "0.70299", "0.700562", "0.6995623", "0.6994452", "0.69925094", "0.6985519", "0.6970026", "0.695862", "0.6956997", "0.6956935", "0.69394124", "0.6934001", "0.69306546", "0.6929738", "0.69220746", "0.692127", "0.6916519", "0.69086844", "0.6904893", "0.6902221", "0.68719953", "0.6862125", "0.6835078", "0.6820275", "0.68165123", "0.6813514", "0.6806185", "0.6805667", "0.67834884", "0.6780077", "0.67780894", "0.67770135", "0.6770342", "0.67529917", "0.6747656", "0.6746786", "0.6728942", "0.67108923", "0.6709092", "0.6701248", "0.669448", "0.6680612", "0.6676175", "0.6675289", "0.66735446", "0.66572714", "0.665427", "0.66357", "0.66328853", "0.66313964", "0.6618213", "0.6615524", "0.660569", "0.6598051", "0.65967524", "0.65683407", "0.6559795", "0.65550137", "0.6553318", "0.65515876", "0.6546134", "0.65390944", "0.6525474", "0.6522145", "0.6521189", "0.6520048", "0.6504979", "0.6501545", "0.6500022" ]
0.8385202
0
Get the hash code for the key. To keep things simple, here is a dummy hash function : it get the key, then simply return the key. If as example the entry key was a phone number associated to employee I can use the last 3 number as hashcode, and then hashtable index would be taken from this in computeHash
public int getHashCode(int key){ return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getHash(Object key) {\n return key.hashCode();\n }", "int hash(final K key);", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "public int hashcode();", "public int computeHash(int key){\n int hashValue = 0;\n hashValue = getHashCode(key);\n return hashValue % tableSize;\n }", "private int getHash(K key) {\n return key == null ? 0 : key.hashCode();\n }", "private int computeHash(int key) {\n assert((table.length & (table.length - 1)) == 0);\n return key & (table.length - 1);\n }", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "private int hash(K key)\r\n\t{\r\n\t\tString toHash = key.toString();\r\n\t\tint hashValue = 0;\r\n\r\n\t\tfor (int pos = 0; pos < toHash.length(); ++pos)\r\n\t\t{\r\n\t\t\t// Compute a hash value for the current letter\r\n\t\t\thashValue = (hashValue << 4) + toHash.charAt(pos);\r\n\t\t\tint highBits = hashValue & 0xF0000000;\r\n\r\n\t\t\tif (highBits != 0)\r\n\t\t\t{\r\n\t\t\t\thashValue ^= highBits >> 24;\r\n\t\t\t}\r\n\r\n\t\t\thashValue &= ~highBits;\r\n\t\t}\r\n\r\n\t\treturn hashValue;\r\n\t}", "public int hashCode() {\n int h = 0;\n for (int j = realSize(), i = 0, t = 0; j-- != 0; ) {\n while (((key[i]) == ((char) 0)))\n i++;\n t = (key[i]);\n t ^= (value[i]);\n h += t;\n i++;\n }\n // Zero / null keys have hash zero.\n if (containsNullKey) h += (value[n]);\n return h;\n }", "private int hash (k key) {\n\t\treturn Math.abs(key.hashCode())\t% buckets.length;\n\t}", "int getHash();", "public int getHash(int key, int i, int max);", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "protected int myHashKey(KeyType key) {\n int hashValue;\n hashValue = key.hashCode() % mTableSize;\n if (hashValue < 0) {\n hashValue += mTableSize;\n }\n return hashValue;\n }", "static int getHash(long key) {\n int hash = (int) ((key >>> 32) ^ key);\n // a supplemental secondary hash function\n // to protect against hash codes that don't differ much\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = (hash >>> 16) ^ hash;\n return hash;\n }", "private int hash(K key) {\n return (key.hashCode() & 0x7fffffff) % keys.length;\n }", "public static int getHash(long entry) {\n return (int) (entry >>> 32);\n }", "int getIndex(int key_hash) {\n int capacity = hash_map.length;\n int index = key_hash % capacity;\n return index;\n }", "private int hashOf(String key) {\n return key.length();\n }", "protected abstract int hashOfObject(Object key);", "public static int hash(String key) {\n int result = 1;\n\n for (int i=0; i<key.length(); ++i) {\n char c = key.charAt(i);\n int c_int = (int) c; //Gjør om ved å bruke ascii-tabellen ('A' = 65, ...\n\n result = (result*31) + c_int;\n }\n\n if (result < 0) {\n result = result * -1;\n }\n\n return result;\n }", "public int hashFunction(String key){\r\n return Math.abs(key.hashCode())%electionTable.length;\r\n }", "public int hash3 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ ){\n hashVal = (37 * hashVal) + key.charAt(i);}\n hashVal %= tableSize;\n if(hashVal<0)\n hashVal += tableSize; \n if(hashVal != 0)\n return hashVal;\n else\n return 0;\n }\n else\n {\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "private int hash(Key key) {\n int h = key.hashCode();\n h ^= (h >>> 20) ^ (h >>> 12) ^ (h >>> 7) ^ (h >>> 4);\n return h & (m-1);\n }", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "int computeHashCode(byte val);", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "public int hashFunction(int key){\r\n return (int) Math.floor((constFactor*key - Math.floor(constFactor*key)) * Math.pow(2,electionTable.length));\r\n }", "public int hash(T input);", "@Override\n public int hashCode() {\n int result = 42;\n int prime = 37;\n for (char ch : key.toCharArray()) {\n result = prime * result + (int) ch;\n }\n result = prime * result + summary.length();\n result = prime * result + value;\n return result;\n }", "public int hash1 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal += key.charAt(i);\n \n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0 ;\n }\n\n }", "private int hashIndex(byte key) {\n // The array lengths are always a power of two, so we can use a bitmask to stay inside the array bounds.\n return hashCode(key) & mask;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasHashKey() )\n i ^= getHashKey().hashCode();\n return i;\n }", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "int _hash(int maximum);", "public abstract int getHash();", "public int hash(String item);", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "public int hash(String key){\r\n\t\tint i;\r\n\t\tint v = 0;\r\n\t\tfor(i = 0; i < key.length(); i++)\r\n\t\t\tv += key.charAt(i);\r\n\t\treturn v % M;\r\n\t}", "public int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7FFFFFFF) % this.capacity;\n\t}", "private int hash(K key) {\n return (key.hashCode() & 0x7fffffff) % capacity;\n }", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "private int hashFunction(int hashCode) {\n int location = hashCode % capacity;\n return location;\n }", "private int indexOfKey(Object key, int hash) {\n int mask = entries.length - 1;\n int i = (hash >> shift) & mask;\n while (true) {\n MapEntryImpl entry = entries[i];\n if (entry == null) return i;\n if ((entry.hash == hash) && key.equals(entry.key)) return i;\n i = (i + 1) & mask;\n }\n }", "int hash(String makeHash, int mod);", "private int hashFunction(KeyType key) {\r\n // use hashCode() method to get the hashCode and take the absolute value % capacity\r\n return Math.abs(key.hashCode()) % capacity;\r\n }", "int hashCode();", "int hashCode();", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "private static int hashCode(byte key) {\n return (int) key;\n }", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "@Override\n\tpublic int hash(K key)\n\t{\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "@Override\n public int hashCode() {\n int hash = size;\n for (byte key : keys) {\n // 0 can be a valid key or unused slot, but won't impact the hashcode in either case.\n // This way we can use a cheap loop without conditionals, or hard-to-unroll operations,\n // or the devastatingly bad memory locality of visiting value objects.\n // Also, it's important to use a hash function that does not depend on the ordering\n // of terms, only their values; since the map is an unordered collection and\n // entries can end up in different positions in different maps that have the same\n // elements, but with different history of puts/removes, due to conflicts.\n hash ^= hashCode(key);\n }\n return hash;\n }", "@Override\n\tpublic int hashFunction(int key) {\n\t\treturn key%M;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn getKey() != null ? getKey().hashCode() : 0;\n\t}", "public int hashCode() {\n\t\tint h = 0, i = 0, j = count;\n\t\twhile (j-- != 0) {\n\t\t\twhile (state[i] != OCCUPIED)\n\t\t\t\ti++;\n\t\t\th += longHash2IntHash(key[i]);\n\t\t\ti++;\n\t\t}\n\t\treturn h;\n\t}", "public int hashWorst(String key){\n int hashVal = 1;\n return hashVal;\n }", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public int hashCode() {\n return (7 + this.key.hashCode() + this.value.hashCode() / 5) \n + this.left.hashCode()\n + this.right.hashCode();\n }", "String getHash();", "String getHash();", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "static int getHash(int par0)\n {\n return computeHash(par0);\n }", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "@Override\n public int hashCode() {\n return key.hashCode();\n }", "int\thashCode();", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "protected int hashKey(K key) {\n // Murmur3's mix + seed\n int h = hashSeed ^ key.hashCode();\n h ^= h >>> 16;\n h *= 0x85ebca6b;\n h ^= h >>> 13;\n h *= 0xc2b2ae35;\n h ^= h >>> 16;\n return h;\n }", "private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "private int hash1(K key) {\n int h = 0;\n int seed = 31;//素数\n String s = key.toString();\n for (int i = 0; i != s.length(); ++i) {\n h = seed * h + s.charAt(i);\n }\n return h % length;\n }", "public abstract int hashCode();", "public int hash( int tableSize )\n {\n if( value < 0 )\n return -value % tableSize;\n else\n return value % tableSize;\n }", "@Override\n\tpublic int hash(String item) {\n\t\tlong hashCode = 0l;\n\t\tchar[] c = item.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\thashCode += c[i] * Math.pow(31, c.length - (i + 1));\n\t\t}\n\t\tint i = (int) hashCode % 2147483647;\n\n\t\n\t\treturn Math.abs(i);\n\t\t\n\t}", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }", "private int hashValue(K key) {\r\n\t\treturn (Math.abs(key.hashCode()) % currentCapacity);\r\n\t}", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "public static void main(String[] args)\r\n\t{\n\t\t\r\n\t\tHashtable hashtableObj = new Hashtable();\r\n\t\thashtableObj.put(new CustomKey(5), \"A\");\r\n\t\thashtableObj.put(new CustomKey(2), \"B\");\r\n\t\thashtableObj.put(new CustomKey(6), \"C\");\r\n\t\thashtableObj.put(new CustomKey(15), \"D\");\r\n\t\thashtableObj.put(new CustomKey(23), \"E\");\r\n\t\thashtableObj.put(new CustomKey(16), \"F\");\r\n//\t\thashtableObj.put(\"Bas\", null); //java.lang.NullPointerException\r\n\t\tSystem.out.println(hashtableObj); // hashcode ret value is i =>{6=C, 16=F, 5=A, 15=D, 2=B, 23=E} based on size of Hashtable is 11 and (i %11)\r\n\t\t\t\t\t\t\t\t\t\t// if the return value of hashCode is (i %9) then outputs is => {16=F, 15=D, 6=C, 23=E, 5=A, 2=B}\r\n\t}", "@Override\n public int hashCode() {\n return mKey.hashCode();\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "public int hashCode() {\n if (hash == -1) {\n hash = 0;\n byte b[] = packet.getData();\n int len = b.length;\n for (int ix = 0; ix < len; ix++) {\n\thash = 31 * hash + b[ix];\n }\n hash ^= (packet.getAddress().hashCode() ^\n\t (packet.getPort() << 15) ^\n\t (packet.getLength() << 3) ^\n\t (packet.getOffset() << 8));\n }\n return hash;\n }", "public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "@SuppressWarnings(\"WeakerAccess\")\n abstract public int hash(char c);", "public int generateHash(StudentClass item)\n {\n \t return item.hashCode() % tableSize;\n }", "private int hash3(T key) { //last char + length of word\r\n char lastchar = key.toString().charAt( key.toString().length()-1 );\r\n return (lastchar + key.toString().length())%newTable.length;\r\n }", "public abstract int doHash(T t);", "protected int myhash(T x)\r\n\t{\r\n\t\tint hashVal = x.hashCode( );\r\n\t\thashVal %= tableSize;\r\n\t\tif( hashVal < 0 )\r\n\t\t\thashVal += tableSize;\r\n\t\treturn hashVal;\r\n\t}" ]
[ "0.76262283", "0.7385535", "0.73463553", "0.73045725", "0.7264474", "0.7258242", "0.7213768", "0.7211644", "0.7208913", "0.7151492", "0.7092062", "0.7086782", "0.70811313", "0.7071085", "0.7055622", "0.70398974", "0.6965717", "0.69323826", "0.6926298", "0.6919386", "0.691131", "0.6908277", "0.6882905", "0.6880003", "0.68632895", "0.6854491", "0.6854491", "0.6854491", "0.68535477", "0.68365836", "0.68163", "0.68038315", "0.6796641", "0.67826116", "0.6763831", "0.67603946", "0.67469877", "0.67235327", "0.671732", "0.6710779", "0.67094684", "0.6707107", "0.670302", "0.6670949", "0.6650331", "0.6620325", "0.66129553", "0.66110426", "0.6608598", "0.6599136", "0.659903", "0.65945166", "0.65945166", "0.6593992", "0.65850085", "0.65783304", "0.65783304", "0.65783304", "0.65783304", "0.65668017", "0.65312", "0.65297365", "0.6521129", "0.6513905", "0.6493376", "0.64886004", "0.64857274", "0.64727134", "0.646653", "0.646653", "0.64526147", "0.64475775", "0.64366674", "0.643432", "0.6429279", "0.64237064", "0.6405025", "0.6387664", "0.63853455", "0.63804287", "0.6376086", "0.6373905", "0.6368822", "0.6367203", "0.63567144", "0.6333953", "0.6326239", "0.6298297", "0.629511", "0.6278461", "0.6268718", "0.6267459", "0.62593883", "0.625615", "0.62515056", "0.6246128", "0.6239007", "0.6223161", "0.62209356", "0.62133247" ]
0.7562769
1
reduce the hashcode value (here making the mod of it), and getting the index inside the hashtable to make index range smaller and array dimension not too big
public int computeHash(int key){ int hashValue = 0; hashValue = getHashCode(key); return hashValue % tableSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "private int hashFunction(int hashCode) {\n int location = hashCode % capacity;\n return location;\n }", "private int hashFunc1(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n // Java can return negative vals with hashCode() it's biggg so need to check for this\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n return hashVal; // Idea index position we'd like to insert or search in\n }", "private int hashFunc2(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n // Research shows that you can use a Prime number Less than the array size to calculate the step value.\n // Prime Number 3 arbitrarily chosen.\n return 3 - hashVal % 3;\n }", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "private int hashIndex(byte key) {\n // The array lengths are always a power of two, so we can use a bitmask to stay inside the array bounds.\n return hashCode(key) & mask;\n }", "private int getIndex(int val){\n return val%bucket;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void rehash()\r\n\t{\r\n\t\tint M = table.length;\r\n\t\tMapEntry<K, V>[] origTable = table; // save original\r\n\t\t\r\n\t\t//new table\r\n\t\ttable = new MapEntry[2*M + 1];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\t\r\n\t\tfor (MapEntry<K, V> oe : origTable)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = oe;\r\n\t\t\tif (e != null && e != DUMMY) // No need to rehash dummy\r\n\t\t\t{\r\n\t\t\t\tint slot = findSlot(e.getKey(), true);\r\n\t\t\t\ttable[slot] = e;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected int index(int hashvalue) {\r\n\t\tint hash=hashvalue& 0x7fffffff;\r\n\t\tint index = this.hashFunc1(hash) * FREE.length;////获取一个整型数值(正整数),用来定位一条数据存储\r\n\t\t// int stepSize = hashFunc2(hash);\r\n\t\tbyte[] cur = new byte[4];\r\n\t\tkeys.position(index);\r\n\t\tkeys.get(cur);\r\n\t\tint storehash=(cur[0] << 24)+ ((cur[1] & 0xFF) << 16)+ ((cur[2] & 0xFF) << 8)+ (cur[3] & 0xFF);\r\n\t\tif (storehash==hash) {\r\n\t\t\treturn index;\r\n\t\t}\r\n\t\tif (Arrays.equals(cur, FREE)) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\t// NOTE: here it has to be REMOVED or FULL (some user-given value)\r\n\t\tif (Arrays.equals(cur, REMOVED) || storehash!=hash) {\r\n\t\t\t// see Knuth, p. 529\r\n\t\t\tfinal int probe = (1 + (hash % (size - 2))) * FREE.length;\r\n\t\t\tint z = 0;\r\n\t\t\tdo {\r\n\t\t\t\tz++;\r\n\t\t\t\tindex += (probe); // add the step\r\n\t\t\t\tindex %= (size * FREE.length); // for wraparound\r\n\t\t\t\tcur = new byte[FREE.length];\r\n\t\t\t\tkeys.position(index);\r\n\t\t\t\tkeys.get(cur);\r\n\t\t\t\tif (z > size) {\r\n\t\t\t\t\tSDFSLogger.getLog().info(\r\n\t\t\t\t\t\t\t\"entries exhaused size=\" + this.size + \" entries=\"\r\n\t\t\t\t\t\t\t\t\t+ this.entries);\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t}\r\n\t\t\t} while (!Arrays.equals(cur, FREE)\r\n\t\t\t\t\t&& (Arrays.equals(cur, REMOVED) || storehash!=hash));\r\n\t\t}\r\n\r\n\t\treturn storehash!=hash ? -1 : index;\r\n\t}", "public int getHash(int key, int i, int max);", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t\tprivate void rehash() {\r\n\t\t\t// double size of array\r\n\t\t\tTableElement<K, V>[] NewDictionary = (TableElement<K, V>[]) new TableElement[dictionary.length * 2];\r\n\r\n\t\t\tcurrentCapacity = dictionary.length * 2;\r\n\r\n\t\t\t// re-mod the keys to get new hash\r\n\t\t\tfor (int i = 0; i < dictionary.length; i++) {\r\n\t\t\t\tif (dictionary[i] != null) {\r\n\t\t\t\t\tint newHash = (Math.abs(dictionary[i].getKey().hashCode()) % currentCapacity);\r\n\r\n\t\t\t\t\t// put re-hashed keys into new array\r\n\t\t\t\t\twhile (NewDictionary[newHash] != null) {\r\n\t\t\t\t\t\tint probe = getProbed(newHash);\r\n\t\t\t\t\t\tnewHash = (newHash + probe) % currentCapacity;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tTableElement element = dictionary[i];\r\n\t\t\t\t\tNewDictionary[newHash] = element;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// set old dictionary to new dictionary\r\n\t\t\tthis.dictionary = NewDictionary;\r\n\t\t}", "private void rehash( )\n {\n HashEntry<AnyType> [ ] oldArray = array;\n\n // Create a new double-sized, empty table\n allocateArray( 2 * oldArray.length );\n occupied = 0;\n theSize = 0;\n\n // Copy table over\n for( HashEntry<AnyType> entry : oldArray )\n if( entry != null) {\n \tput(entry.key, entry.value);\n }\n }", "public int hash( int tableSize )\n {\n if( value < 0 )\n return -value % tableSize;\n else\n return value % tableSize;\n }", "int getIndex(int key_hash) {\n int capacity = hash_map.length;\n int index = key_hash % capacity;\n return index;\n }", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "@Override\n\tpublic int hashFunction(int key) {\n\t\treturn key%M;\n\t}", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "private int getIndex(K key){\n int hashcode=key.hashCode();\n int index=hashcode%maxBuckets;\n return index;\n }", "private int getIndex(int hash) {\n return hash & table.length - 1;\n }", "private void rehash() {\n\t\tint oldSize = this.size;\n\t\tint newSize = size * 2;\n\t\twhile (!isPrime(newSize))\n\t\t\tnewSize++;\n\t\tthis.size = newSize;\n\t\tDataItem[] newHashArray = new DataItem[newSize];\n\t\tString temp;\n\t\tthis.collision = 0;\n\t\tBoolean repeatValue;\n\t\tfor (int i = 0; i < oldSize; i++) {\n\t\t\tif (hashArray[i] != null && hashArray[i] != deleted)\n\t\t\t\ttemp = hashArray[i].value;\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t\trepeatValue = false;\n\t\t\tint hashVal = hashFunc(temp);\n\t\t\tboolean collisionFlag = false;\n\t\t\twhile (newHashArray[hashVal] != null\n\t\t\t\t\t&& !newHashArray[hashVal].value.equals(deleted.value)) {\n\n\t\t\t\tif (!collisionFlag) {\n\n\t\t\t\t\tthis.collision++;\n\t\t\t\t\tcollisionFlag = true;\n\n\t\t\t\t}\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\n\t\t\t}\n\t\t\tif (repeatValue)\n\t\t\t\tcontinue;\n\t\t\telse {\n\t\t\t\tnewHashArray[hashVal] = hashArray[i];\n\t\t\t}\n\t\t}\n\n\t\tthis.hashArray = newHashArray;\n\t}", "int _hash(int maximum);", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn (int) (this.sum * 100 + this.index);\n\t\t}", "@Override\n\tpublic double[] hash(int[] p) {\n\t\tint N = p.length;\n\t\tdouble[] g = new double[N];\n\t\tfor (int k = 0; k < N; k++) {\t\t// dimension k\n\t\t\tint h = h8(p, k + seed);\n\t\t\tg[k] = (double) (h & 0xFF) / 0xFF;\n\t\t}\n\t\treturn g;\n\t}", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "private int getIndex2(int val){\n return val/bucket;\n }", "private void reHash(int a){\r\n int arrayNewSize = this.capacity();\r\n if(a == 1){\r\n arrayNewSize = arrayNewSize * 2;\r\n }\r\n else if(a == -1){\r\n arrayNewSize = arrayNewSize / 2;\r\n }\r\n String[] newHashTable = new String[arrayNewSize];\r\n String [] oldCopy = this.hashTable.clone();\r\n this.capacity = arrayNewSize;\r\n this.hashTable = newHashTable;\r\n for(String i: oldCopy){\r\n this.reHashAdd(i);\r\n }\r\n this.hashing = false;\r\n }", "private int indexFor(K key) {\n int hash = hash(key.hashCode());\n return hash % this.container.length;\n }", "private int calcIndex(K key) {\n\t\treturn Math.abs(key.hashCode() % capacity);\n\t}", "public static void main(String[] args) {\n Map<Integer, String> ht = new Hashtable<>();\n \n // hash = 7, so, (7 & 0x7FFFFFFF) % 11 => 7 % 11 => 7. So, it stores the element in 7th index bucket location\n ht.put(7, \"aa\"); \n ht.put(11, \"ba\");\n ht.put(1, \"ad\");\n ht.put(15, \"sa\");\n ht.put(20, \"rea\");\n \n // hash = 18, so, (18 & 0x7FFFFFFF) % 11 => 18 % 11 => 7. So, it stores the element in 7th index bucket location.\n // But we already have one element then this new element will have next pointer variable. It will point to the element whcih already exists.\n // Then this new element will be placed in the 7th index.\n ht.put(18, \"ewa\");\n\n // When we iterate the elements it will iterate from top to bottom and right to left only.\n // Same index we have a possibility of multiple elements. So, it will read it from right to left.\n System.out.println(ht);\n }", "@Override\n public int hashCode() {\n long longBits = Double.doubleToLongBits(this.size + this.unit.hashCode());\n return (int) (longBits ^ (longBits >>> 32));\n }", "public int hashCode() {\n\t\treturn 14356 + historyIndex * 373 + dimension; \n\t\t// return some arbitrary number related to historyIndex and dimension\n\t}", "private void rehash() {\n\t HashEntry[] oldArray = array;\n\n\t // Create a new double-sized, empty table\n\t allocateArray(2 * oldArray.length);\n\t occupied = 0;\n\t theSize = 0;\n\n\t // Copy table over\n\t for (HashEntry entry : oldArray) {\n\t if (entry != null && entry.isActive)\n\t add(entry.element);\n\t }\n\t }", "private int hash(Handle[] myTable,\n String toHash) {\n\n int intLength = toHash.length() / 4;\n long sum = 0;\n for (int j = 0; j < intLength; j++) {\n char[] c = toHash.substring(j * 4, (j * 4) + 4)\n .toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n } // end inner for\n } // end outer for\n char[] c = toHash.substring(intLength * 4).toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n }\n return (int) (Math.abs(sum) % myTable.length);\n }", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "public int hashCode() {\n/* 360 */ return Objects.hashCode(new Object[] { Long.valueOf(this.count), Double.valueOf(this.mean), Double.valueOf(this.sumOfSquaresOfDeltas), Double.valueOf(this.min), Double.valueOf(this.max) });\n/* */ }", "private int hashValue(K key) {\r\n\t\treturn (Math.abs(key.hashCode()) % currentCapacity);\r\n\t}", "private int computeHash(int key) {\n assert((table.length & (table.length - 1)) == 0);\n return key & (table.length - 1);\n }", "private int hashFunction(KeyType key) {\r\n // use hashCode() method to get the hashCode and take the absolute value % capacity\r\n return Math.abs(key.hashCode()) % capacity;\r\n }", "public interface Hasher {\n int[] hash(int[] source);\n}", "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "private void rehash() {\n if (rehashing) {\n int newCapacity = 2 * capacity + 1;\n if (newCapacity > MAXIMUM_CAPACITY) {\n return;\n }\n\n objectCounter += 2;\n MapElement[] newMap = new MapElement[newCapacity]; \n \n MapElement me = null;\n MapElement t = null;\n MapElement next = null;\n int newIndex = 0;\n \n for (int index = 0; index < capacity; index++) {\n me = map[index];\n while (me != null) {\n next = me.getNext();\n newIndex = me.getKey() % newCapacity;\n if (newIndex < 0) {\n newIndex = -newIndex;\n }\n if (newMap[newIndex] == null) {\n // No element yet for this new index\n newMap[newIndex] = me;\n me.setNext(null);\n } else {\n // Hook the element into the beginning of the chain\n t = newMap[newIndex];\n newMap[newIndex] = me;\n me.setNext(t);\n }\n me = next;\n }\n }\n \n map = newMap;\n capacity = newCapacity;\n // Max. number of elements before a rehash occurs\n maxLoad = (int) (loadFactor * capacity + 0.5f);\n\n newMap = null;\n }\n }", "private int hash2(K key){\r\n return indexFor(hash(key.hashCode2()), capacity);\r\n }", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "private int hash(K key) {\n return (key.hashCode() & 0x7fffffff) % capacity;\n }", "static void hashTestCase(int givArr[]) {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint mod = givArr[i] % m;\n\t\t\tarray[mod] = givArr[i];\n\t\t}\n\t}", "protected int myhash(T x)\r\n\t{\r\n\t\tint hashVal = x.hashCode( );\r\n\t\thashVal %= tableSize;\r\n\t\tif( hashVal < 0 )\r\n\t\t\thashVal += tableSize;\r\n\t\treturn hashVal;\r\n\t}", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "protected static void rehash() \r\n\t{\r\n\t\tEntry\told, e;\r\n\t\tint\t\ti, index;\r\n\r\n\t\tEntry\toldMap[] = m_table;\r\n\t\tint\t\toldCapacity = oldMap.length;\r\n\r\n\t\tint newCapacity = oldCapacity * 2 + 1;\r\n\t\tEntry newMap[] = new Entry[newCapacity];\r\n\r\n\t\tm_threshold = (int)(newCapacity * m_loadFactor);\r\n\t\tm_table = newMap;\r\n\r\n\t\tfor (i = oldCapacity ; i-- > 0 ;) {\r\n\t\t\tfor (old = oldMap[i] ; old != null ; ) {\r\n\t\t\t\te = old;\r\n\t\t\t\told = old.m_next;\r\n\r\n\t\t\t\tindex = (e.m_name.hashCode() & 0x7FFFFFFF) % newCapacity;\r\n\t\t\t\te.m_next = newMap[index];\r\n\t\t\t\tnewMap[index] = e;\r\n\t\t\t}\r\n\t\t}\r\n }", "public static int hash(double[] value)\r\n/* 20: */ {\r\n/* 21: 68 */ return Arrays.hashCode(value);\r\n/* 22: */ }", "private int h(K k) {\r\n return (k.hashCode() + capacity()) % capacity();\r\n }", "@Override\r\n public int hashCode()\r\n {\r\n if(this.isEmpty()) return 0;\r\n\r\n /**\r\n * En este caso es recomendable usar la funcion Arrays.hashCode porque\r\n * garantiza un hash unico para cada array.\r\n * Si se usa la suma, los objetos \"ab\" y \"ba\" tendrian el mismo hash.\r\n */\r\n return Arrays.hashCode(this.table);\r\n }", "private UInteger[] getHashValues() {\n int hashWindowSize = 48;\n UInteger[] hashValues = new UInteger[this.fileContent.length];\n int shiftAmount = this.getShiftAmount(hashWindowSize);\n int i = 0;\n\n int[] lookupTable =\n {0x5e3f7c48, 0x796a0d2b, 0xbecd4e32, 0x6f16159c, 0x687312bc, 0x12a6f30a, 0x8fca2662,\n 0x79b83d14, 0x3fab3f30, 0x984d6ca2, 0x4df5fe6c, 0x4acd3196, 0x6245ad21,\n 0x3a15e5ba, 0x90db6499, 0x05aacb6b, 0x791cf724, 0x504cd910, 0x98093570,\n 0x090392df, 0xf193e5b8, 0x42023c5b, 0x80a95c6a, 0x11e676be, 0xc70f2117,\n 0xeed4587f, 0x6479e9bd, 0x1b0c427c, 0x410486ba, 0x30f5b837, 0xf957d307,\n 0x1535f121, 0xabe45e90, 0x7a1ab8f0, 0x1c6887e4, 0x4170b7ba, 0x8b491bed,\n 0x5c920e73, 0x1b1ed791, 0x7a0ed482, 0xcce86619, 0x45dc7290, 0x57e71362,\n 0x2e24f01c, 0x0a0637f3, 0x0e8c5565, 0x15944012, 0x34f7eeea, 0xbc628141,\n 0x1e200874, 0xe9244379, 0x3e63aeca, 0x7a3b3cce, 0x73f8a245, 0xd734e215,\n 0x834fa434, 0xf96a0904, 0xfb39a424, 0x0bfa963a, 0x9b236ee2, 0xa2131005,\n 0x3eb70acf, 0x2907bcd8, 0x3f685f3a, 0x3765fd37, 0x1c1c34d2, 0x03a95179,\n 0x024be6c3, 0x06128960, 0x844e7490, 0xe2b371a3, 0x3382909c, 0x3d519a77,\n 0x90971ec9, 0x6ea745e5, 0x490b3a5c, 0x7f3916f7, 0xbc150351, 0x241a7ba0,\n 0xec93c2bb, 0x6c7083aa, 0xf3937751, 0xe6aa1df1, 0x129fc001, 0xb90709b9,\n 0x7e59a4fc, 0x4509e58a, 0x8a93ed43, 0x6934ce62, 0x8ec6af1a, 0xf36581a9,\n 0x53d01d93, 0xb34eef69, 0x08494a84, 0x0f6dff34, 0x74729aa3, 0x48b5475f,\n 0xb986dc84, 0xd0424c8d, 0xb72ad089, 0x0adbbdb8, 0x824fdbe8, 0x99ad1058,\n 0x98faec38, 0xe746242b, 0x2b7ee7fc, 0x2e151fa7, 0x6413270f, 0x68ed7239,\n 0x7729e2d3, 0x5697b3a5, 0x0b90a6c3, 0xdf7cefcf, 0xded46a48, 0x46956888,\n 0xb3bb6dc4, 0xe987578f, 0xf82e74b7, 0xc8eeeba4, 0xdd960ff9, 0x482ed28d,\n 0x4f343078, 0x563ab8a4, 0x3ec7aa0d, 0x2481d448, 0x5fe98704, 0x5aafc580,\n 0x841d81ec, 0xae7fe8fd, 0x6b31ccb6, 0x911ebdd4, 0x75f4703d, 0xe6855a0f,\n 0x6184b42e, 0x147a4a95, 0x39528e48, 0xe975b416, 0x3cba13d3, 0x1e23e544,\n 0xf7955286, 0xa5f96b7f, 0xaaa697aa, 0x29e794e3, 0x87628c09, 0xfeebf5f1,\n 0xf8b070cd, 0xe361b627, 0x8c7a8682, 0x69cab331, 0xca867ad1, 0xd0151a96,\n 0xfc19a6b9, 0x6d7439e7, 0x64cd62ac, 0x4a650747, 0x9ddbfa28, 0x337c8bed,\n 0xf12a6860, 0x3767ffd3, 0x13559ced, 0x71ac2011, 0xc11dc687, 0x260b7105,\n 0xc13bca0c, 0xcd0af893, 0x793b54e6, 0x89d27fc3, 0xc6bd1c88, 0xe3337313,\n 0x387bc671, 0x61280de4, 0x76941a36, 0xaa52a2b9, 0x6d7cb52c, 0x18ff4d70,\n 0x8987cf38, 0x306e47ed, 0xf7df8135, 0x18a8e024, 0xc9eb085f, 0xc1a7c769,\n 0xd5667a12, 0x9c8be93a, 0x028781b1, 0x6213dada, 0x07fef4f5, 0x5e6bf91d,\n 0x469ea798, 0xb9654a37, 0x1cb5e74e, 0x525d502d, 0xe805ec68, 0xdd8c4320,\n 0x7890848f, 0x61e59c8e, 0x1d99f9ef, 0x25b60b20, 0x2f198088, 0xe01b6926,\n 0xffa4917f, 0xb2fa0f22, 0xee8ac924, 0x18a1c5a7, 0xb76d8d7f, 0x88ad5e0d,\n 0x7b3fb12b, 0xc8a91add, 0x762a6f4e, 0x056fad31, 0xebecfab8, 0xea54cd17,\n 0x71f5af9f, 0xfaececa1, 0x08a52f4d, 0xbb5efebe, 0x5bcb04c2, 0xcb2530b0,\n 0x01bb862b, 0xbb5d54f0, 0x404deb4b, 0x038658bd, 0x09399005, 0xddd862c8,\n 0x8985776f, 0xcfcfd717, 0xbec756cb, 0x52aecc5a, 0x09ac3f62, 0x62c1c6fb,\n 0x76cc3221, 0xcde6d028, 0x844d9291, 0xc143eeac, 0x0ea5e772, 0x8855456e,\n 0xeb03a426, 0x3398475d, 0x73dc8107, 0x681605d0, 0xd18b6264, 0x934e43eb,\n 0x59e76d21, 0xd3ce2b77, 0x4ccfee1c, 0x2f4af76d, 0x8b12a309, 0x849bb415,\n 0xf45ad809, 0xc7bccae7, 0xac891c35, 0x59db2274, 0xbcd71393, 0x2c9b1705,\n 0xcb536a69, 0xb2800f00, 0x111313fc};\n\n while (i < this.fileContent.length) {\n UInteger hashValue = i == 0 ? uint(0) : hashValues[i - 1];\n int trailingEdgeData = i < hashWindowSize ? ubyte(0).intValue() :\n ubyte(this.fileContent[i - hashWindowSize]).intValue();\n int leadingEdgeData = ubyte(this.fileContent[i]).intValue();\n UInteger val = hashValue.xor(uint(lookupTable[trailingEdgeData]))\n .xor(uint(lookupTable[leadingEdgeData]));\n hashValues[i] =\n val.leftShift(2).inclusiveOr(val.rightShift(Integer.SIZE - shiftAmount));\n i++;\n }\n\n return hashValues;\n }", "final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n int h = object.hashCode();\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n h = h ^ (h >>> 16);\n return h;\n }", "private int indexForKey(final long key, final int i) {\n keyArr[0] = key;\n return columns * i + (((int) (MurmurHash3.hash(keyArr, i)[0])) >>> 1) % columns;\n }", "@Override\n public int hashCode() {\n\treturn (rowIndex * 10) + colIndex; \n }", "private void rehash() {\r\n\t\tSystem.out.println( \"rehashing : buckets \" + numBuckets + \" size \" + size );\r\n\t\tArrayList<MapNode<K, V>> temp = buckets;\r\n\t\tbuckets = new ArrayList();\r\n\t\tfor( int i = 0; i < 2*numBuckets; i++ ) {\r\n\t\t\tbuckets.add( null );\r\n\t\t}\r\n\t\tsize = 0; //size 0 means abi ek b element nhi h\r\n\t\tnumBuckets *= 2; //ab number of buckets double ho gya h\r\n\t\t//now we will trvrs old arraylist and linkedlist and\r\n\t\t//copy is elemenet one by one\r\n\t\tfor( int i = 0; i < temp.size(); i++ ) {\r\n\t\t\tMapNode< K, V > head = temp.get(i);\r\n\t\t\twhile( head != null ) {\r\n\t\t\t\t\r\n\t\t\t\tK key = head.key;\r\n\t\t\t\tV value = head.value;\r\n\t\t\t\tinsert( key, value );\r\n\t\t\t\thead = head.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int indexFor(int h) {\n\t\treturn (int) (h & (allLength - 1));\n\t}", "void Rehash(){\n\t\tRehash++;\r\n\t\t//updates if the hash table changed size\r\n\t\tStockNode[] temp=new StockNode[(2*Table.length)+1];\r\n\t\t//creates a temporary table with the new size \r\n\t\tfor(int i=Table.length-1;i>=0;i--){\r\n\t\t\t//goes through each array linked list \r\n\t\t\tStockNode t=Table[i];\r\n\t\t\twhile(t!=null){\r\n\t\t\t\t//the change of node to its new proper place is done here \r\n\t\t\t\tint key = toInt(t.stockName);\r\n\t\t\t\tint index = key%temp.length;\r\n\t\t\t\tif(temp[index]!=null){\r\n\t\t\t\t\tStockNode next=temp[index].next;\r\n\t\t\t\t\twhile(next!=null){\r\n\t\t\t\t\t\ttemp[index]=next;\r\n\t\t\t\t\t\tnext=temp[index].next;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttemp[index].next=t;\r\n\t\t\t\t} else{\r\n\t\t\t\t\ttemp[index]=t;\r\n\t\t\t\t}\r\n\t\t\t\tStockNode next=t.next;\r\n\t\t\t\tt.next=null;\r\n\t\t\t\tt=next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tTable=temp;\r\n\t}", "static int indexFor(int h, int length) {\n return h & (length-1);\r\n }", "protected static void endPartial(long[] h) {\n h[11] += h[1]; \n h[2] ^= h[11]; \n h[1] = (h[1] << 44) | (h[1] >>> 20);\n h[0] += h[2]; \n h[3] ^= h[0]; \n h[2] = (h[2] << 15) | (h[2] >>> 49);\n h[1] += h[3]; \n h[4] ^= h[1]; \n h[3] = (h[3] << 34) | (h[3] >>> 30);\n h[2] += h[4]; \n h[5] ^= h[2]; \n h[4] = (h[4] << 21) | (h[4] >>> 43);\n h[3] += h[5]; \n h[6] ^= h[3]; \n h[5] = (h[5] << 38) | (h[5] >>> 26);\n h[4] += h[6]; \n h[7] ^= h[4]; \n h[6] = (h[6] << 33) | (h[6] >>> 31);\n h[5] += h[7]; \n h[8] ^= h[5]; \n h[7] = (h[7] << 10) | (h[7] >>> 54);\n h[6] += h[8]; \n h[9] ^= h[6]; \n h[8] = (h[8] << 13) | (h[8] >>> 51);\n h[7] += h[9]; \n h[10] ^= h[7]; \n h[9] = (h[9] << 38) | (h[9] >>> 26);\n h[8] += h[10]; \n h[11] ^= h[8]; \n h[10] = (h[10] << 53) | (h[10] >>> 11);\n h[9] += h[11]; \n h[0] ^= h[9]; \n h[11] = (h[11] << 42) | (h[11] >>> 22);\n h[10] += h[0]; \n h[1] ^= h[10]; \n h[0] = (h[0] << 54) | (h[0] >>> 10);\t\t\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn idx1.hashCode() * 811 + idx2.hashCode();\n\t}", "protected void rehash() {\n int oldCapacity = table.length;\n Entry oldMap[] = table;\n\n int newCapacity = oldCapacity * 2 + 1;\n Entry newMap[] = new Entry[newCapacity];\n\n threshold = (int) (newCapacity * loadFactor);\n table = newMap;\n\n for (int i = oldCapacity; i-- > 0; ) {\n for (Entry old = oldMap[i]; old != null; ) {\n Entry e = old;\n old = old.next;\n\n int index = (e.key & 0x7FFFFFFF) % newCapacity;\n e.next = newMap[index];\n newMap[index] = e;\n }\n }\n }", "private void rehash() {\n Entry<K, V>[] old = table;\n allocate((int) (old.length * INC));\n\n for (int i = 0; i < old.length; ++i) {\n if (old[i] != null) {\n for (Node<Pair<K, V>> j = old[i].list.getHead().getNext();\n j != old[i].list.getTail();\n j = j.getNext()) {\n put(j.getData().key, j.getData().value);\n }\n\n }\n }\n }", "private int hash (k key) {\n\t\treturn Math.abs(key.hashCode())\t% buckets.length;\n\t}", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "private int hash(K key) {\n return (key.hashCode() & 0x7fffffff) % keys.length;\n }", "protected int myHashKey(KeyType key) {\n int hashValue;\n hashValue = key.hashCode() % mTableSize;\n if (hashValue < 0) {\n hashValue += mTableSize;\n }\n return hashValue;\n }", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public int hashCode() {\n/* 4742 */ int result = this.tilex + 1;\n/* 4743 */ result += Zones.worldTileSizeY * (this.tiley + 1);\n/* 4744 */ return result * (this.surfaced ? 1 : 2);\n/* */ }", "public int hashCode() {\n/* 370 */ if (this.hashCode == 0) {\n/* 371 */ this.hashCode = 17;\n/* 372 */ this.hashCode = 37 * this.hashCode + getClass().hashCode();\n/* 373 */ this.hashCode = 37 * this.hashCode + (int)(this.min ^ this.min >> 32L);\n/* 374 */ this.hashCode = 37 * this.hashCode + (int)(this.max ^ this.max >> 32L);\n/* */ } \n/* 376 */ return this.hashCode;\n/* */ }", "public int hashcode();", "public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "private void rehashing(boolean increase){\r\n int newLength;\r\n // if loadFactor is too big. //\r\n if (increase){\r\n newLength = capacity()*CAPACITY_CHANGE;\r\n }\r\n // if loadFactor is too small. //\r\n else{newLength = capacity()/CAPACITY_CHANGE;}\r\n // builds the new hashSet with the new capacity. //\r\n ClosedHashCell[] newHashSet = new ClosedHashCell[newLength];\r\n buildHashSet(newLength, newHashSet);\r\n for (ClosedHashCell cell : hashSet){\r\n if (cell.getValue() != null) {\r\n int j = 0;\r\n int clamping = (cell.getValue().hashCode() + (j+j*j) / 2) & (newLength - 1);\r\n while (!newHashSet[clamping].addMe(cell.getValue())) {\r\n j++;\r\n clamping = (cell.getValue().hashCode() + (j+j*j) / 2) & (newLength - 1);\r\n }\r\n }\r\n }\r\n hashSet = newHashSet;\r\n }", "public void rehash(){\n //creates a new temporary hashtable since arrays are immutable\n LLNodeHash[] temp = hashTable;\n //doubles the size of the current hashtable\n hashTable = new LLNodeHash[hashTable.length * 2];\n for (int i = 0; i < temp.length; i++){\n //if the index of the array has an element\n if (temp[i] != null){\n LLNodeHash ptr = temp[i];\n //traverse the linked list and adds each word back to the new hashtable incase they have a new position\n while (ptr.getNext() != null){\n LLNodeHash word = new LLNodeHash(ptr.getKey(), ptr.getFreq(), null);\n add(word);\n ptr = ptr.getNext();\n }\n //adds the last element to the new hashtable\n LLNodeHash word = new LLNodeHash(ptr.getKey(), ptr.getFreq(), null);\n add(word);\n }\n }\n }", "@Override\n\tpublic int hashCode() {\n\t\tint karprabin = 0;\n\t\tfinal int B = 31;\n\t\tfor (int k = 0; k < this.actualsizeinwords; ++k) {\n\t\t\tkarprabin += B * karprabin + (this.buffer[k] & ((1l << 32) - 1));\n\t\t\tkarprabin += B * karprabin + (this.buffer[k] >>> 32);\n\t\t}\n\t\treturn this.sizeinbits ^ karprabin;\n\t}", "public int hashCode() {\n int hashCode = 0;\n\n for (int i=0; i < mag.length; i++)\n hashCode = (int)(31*hashCode + (mag[i] & LONG_MASK));\n\n return hashCode * signum;\n }", "int getHash();", "public int hashFunction(int key){\r\n return (int) Math.floor((constFactor*key - Math.floor(constFactor*key)) * Math.pow(2,electionTable.length));\r\n }", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public int hashCode() {\n int h = 0;\n for (int j = realSize(), i = 0, t = 0; j-- != 0; ) {\n while (((key[i]) == ((char) 0)))\n i++;\n t = (key[i]);\n t ^= (value[i]);\n h += t;\n i++;\n }\n // Zero / null keys have hash zero.\n if (containsNullKey) h += (value[n]);\n return h;\n }", "int hash(String makeHash, int mod);", "public int hashCode() {\n return 37 * 17;\n }", "static int indexFor(int h, int length) {\n return h & (length - 1);\n }", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "int stepHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(2)-1)/2;\n\t\tint step = (int) Math.floor((length * ((constant* hashKey) - Math.floor(constant* hashKey)))); \n\t\tif (step == 0){//if step value = 0 (frequent at low values of length, step =1\n\t\t\treturn 1; //while this could be problematic, at small values of n, this is trivial\n\t\t}\n\t\tif (step % 2 == 0){ //if step is even\n\t\t\tstep++; //add 1 to make it odd\n\t\t}\n\t\treturn step;//mod value is not applied at the base hashLevel. It is in the insert/find/reinset respectively\n\t}", "protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}", "public void hashFunction2(String[] stringsForArray, String[] theArray) {\n\n for (int n = 0; n < stringsForArray.length; n++) {\n\n String newElementVal = stringsForArray[n];\n\n // Create an index to store the value in by taking\n // the modulus\n int arrayIndex = getHashIndex(newElementVal);\n\n System.out.println(\"Modulus Index= \" + arrayIndex + \" for value \"\n + newElementVal);\n\n // Cycle through the array until we find an empty space\n while (theArray[arrayIndex] != \"-1\") {\n\n ++arrayIndex;\n\n System.out.println(\"Collision Try \" + arrayIndex + \" Instead\");\n\n // If we get to the end of the array go back to index 0\n arrayIndex %= arraySize;\n\n }\n\n theArray[arrayIndex] = newElementVal;\n\n }\n\n }", "@Override\r\n public int hashCode() {\r\n int result = (int) (a ^ (a >>> 32));\r\n result = 31 * result + (b != null ? b.hashCode() : 0);\r\n result = 31 * result + (a != null ? a.hashCode() : 0);\r\n result = 31 * result + (b != null ? b.hashCode() : 0);\r\n return result;\r\n }", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "private void rehash() {\r\n Entry[] oldHashTable = this.hashTable;\r\n this.capacity = this.capacity * 2;\r\n this.hashTable = new Entry[this.capacity];\r\n this.size = 0;\r\n for (Entry eachEntry : oldHashTable) {\r\n if (eachEntry != null) {\r\n if (!eachEntry.isDeleted) {\r\n this.add((K)eachEntry.key,(V)eachEntry.value);\r\n }\r\n }\r\n }\r\n return;\r\n }", "@Override\n public int hashCode() {\n return mHeight ^ ((mWidth << (Integer.SIZE / 2)) | (mWidth >>> (Integer.SIZE / 2)));\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tHashtable<Temp, String> h = new Hashtable<>();\r\n\t\th.put(new Temp(1), \"A\");\r\n\t\th.put(new Temp(25), \"B\");\r\n\t\th.put(new Temp(30), \"C\");\r\n\t\th.put(new Temp(10), \"D\");\r\n\t\tSystem.out.println(h);\r\n\t\t//{30=C, 10=D, 25=B, 1=A}---when hashcode returns i\r\n\t\t//{25=B, 30=C, 1=A, 10=D}---when hashcode returns i%9\r\n\t\t\r\n\t\t//constructor with initial capacity\r\n\t\t//here if hashcode exceeds 4 then, modules of 5 is done. \r\n\t\tHashtable<Temp1, String> h1 = new Hashtable<>(5);\r\n\t\th1.put(new Temp1(1), \"A\");\r\n\t\th1.put(new Temp1(25), \"B\");\r\n\t\th1.put(new Temp1(30), \"C\");\r\n\t\th1.put(new Temp1(10), \"D\");\r\n\t\tSystem.out.println(h1);\r\n\t\t//{25=B, 10=D, 1=A, 30=C}\r\n\t\t\r\n\t\t//constructor using initial capacity and fill ratio.\r\n\t\tHashtable<Temp1, String> h2 = new Hashtable<>(5,0.4f);\r\n\t\th2.put(new Temp1(1), \"A\");\r\n\t\th2.put(new Temp1(25), \"B\");\r\n\t\th2.put(new Temp1(30), \"C\");\r\n\t\th2.put(new Temp1(10), \"D\");\r\n\t\tSystem.out.println(h2);\r\n\t\t//{30=C, 1=A, 10=D, 25=B}\r\n\t\t//{25=B, 10=D, 1=A, 30=C}\r\n\t\t\r\n\t\t//constructor using Map\r\n\t\tHashtable<Temp1, String> h3 = new Hashtable<>(h2);\r\n\t\tSystem.out.println(h3);\r\n\t}", "public int hashCode() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[28]++;\r\n long start = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[29]++;\r\n long end = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[30]++;\r\n int result = 97;\r\n result = 31 * result + ((int) (start ^ (start >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[31]++;\r\n result = 31 * result + ((int) (end ^ (end >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[32]++;\r\n result = 31 * result + getChronology().hashCode();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[33]++;\r\n return result;\r\n }", "protected void rehash( )\r\n\t{\r\n\t\tint newSize = nextPrime(this.tableSize*2);\r\n\t\tMyHashTable<T> newHashTable = new MyHashTable<T>(newSize);\r\n\t\tIterator<T> thisTableIter = this.iterator();\r\n\t\twhile(thisTableIter.hasNext())\r\n\t\t{\r\n\t\t\tT e = thisTableIter.next();\r\n\t\t\tnewHashTable.insert(e);\r\n\t\t}\r\n\t\tthis.clear();\r\n\t\tthis.size = newHashTable.size;\r\n\t\tthis.tableSize = newHashTable.tableSize;\r\n\t\tthis.table = newHashTable.table;\r\n\t}", "public abstract int getHash();", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "int arraykey(int max);" ]
[ "0.72368294", "0.693665", "0.6823827", "0.68067825", "0.67773765", "0.67577165", "0.6753713", "0.66482836", "0.6598423", "0.6569473", "0.6558032", "0.65342337", "0.6531929", "0.65271103", "0.6520734", "0.64878833", "0.6485542", "0.64779776", "0.6471098", "0.64552957", "0.64403737", "0.6431602", "0.6400568", "0.63949424", "0.63856274", "0.6380862", "0.6376134", "0.63669604", "0.63634723", "0.63524735", "0.63477033", "0.6342381", "0.6335302", "0.6298475", "0.6291854", "0.62888175", "0.62838095", "0.6261651", "0.625101", "0.62464017", "0.6240706", "0.62292856", "0.6227675", "0.62227464", "0.6214544", "0.6212084", "0.6211854", "0.620371", "0.61947185", "0.6190212", "0.6189487", "0.6189022", "0.6167172", "0.61590385", "0.61576056", "0.61558807", "0.6144031", "0.61346936", "0.61188304", "0.61077285", "0.61048186", "0.61011547", "0.60842663", "0.6083422", "0.6080058", "0.6064834", "0.6063412", "0.60514563", "0.6048899", "0.60332894", "0.6032369", "0.6031851", "0.60287917", "0.60245305", "0.6001636", "0.5978537", "0.5952595", "0.5947717", "0.59464216", "0.5946339", "0.5935958", "0.59352237", "0.5932333", "0.5932201", "0.5931813", "0.59181756", "0.59159344", "0.59083855", "0.58983415", "0.5894549", "0.5884255", "0.588215", "0.5881971", "0.5881133", "0.5867366", "0.58639514", "0.58617103", "0.58600664", "0.5857526", "0.5855718" ]
0.62479657
39
to keep things simple, the key and the data associated are the same, here the field could have been only one
public void insert( int key, Integer data ){ if (data == null) data = key; int index = computeHash(key); Node head = list[index]; while( head != null ){ // Collision : key already in hashtable, put it in the linked list if(compare(head.key, key) == 0){ // Update : In case key is already present in list : exit head.data = data; return; } head = head.next; // put it at the end of the list } // No collision, new key; list.get(index) = null because that node at that index is not present list[index] = new Node(key, data, list[index]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getKey()\n {\n return id; \n }", "private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public int hashCode() {\n return Objects.hash(field);\n }", "private com.hps.july.persistence.CarKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.CarKey keyClass = new com.hps.july.persistence.CarKey();\n keyClass.car = f0;\n return keyClass;\n }", "public KeyField getKey() {\n\treturn keyField;\n }", "@Override\n protected final Object getKey()\n {\n return this;\n }", "public KeyField getKeyField() {\n\treturn keyField;\n }", "abstract public String getKey();", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}", "private com.hps.july.persistence.StoragePlaceKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.StoragePlaceKey keyClass = new com.hps.july.persistence.StoragePlaceKey();\n keyClass.storageplace = f0;\n return keyClass;\n }", "private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }", "public Object get_KeyValue(){return\t\t\t Id;}", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "public abstract FieldKey getParticipantIDFieldKey(Map<LinkToStudyKeys, FieldKey> fieldKeyMap);", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof RegistrationItems)) {\n return false;\n }\n RegistrationItems that = (RegistrationItems) other;\n Object myRegItemUid = this.getRegItemUid();\n Object yourRegItemUid = that.getRegItemUid();\n if (myRegItemUid==null ? yourRegItemUid!=null : !myRegItemUid.equals(yourRegItemUid)) {\n return false;\n }\n return true;\n }", "@Override\n protected final Void updateKeyAfterInsert(FarmField entity, long rowId) {\n return null;\n }", "@Override\n\tpublic Object key() {\n\t\treturn id;\n\t}", "@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}", "public Object obtDupla(Object key1, Object key2) {\r\n\t\tObject value=null;\r\n\t\tHashMap<String, Double> fila = structure.get(key1);\r\n\t\tif (fila != null)\r\n\t\t\tvalue = fila.get(key2);\r\n\t\treturn value;\r\n\t}", "private com.hps.july.persistence.SuperRegionAccKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionAccKey keyClass = new com.hps.july.persistence.SuperRegionAccKey();\n keyClass.accessid = f0;\n return keyClass;\n }", "@Override\n public int key() {\n return this.key;\n }", "Object getKey();", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "private com.hps.july.persistence.SuperRegionKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionKey keyClass = new com.hps.july.persistence.SuperRegionKey();\n keyClass.supregid = f0;\n return keyClass;\n }", "@Override\n public int hashCode() {\n return 1;\n }", "@Override\n public String getKey() {\n return key;\n }", "public void setKeyField(KeyField k) {\n\tkeyField = k;\n }", "@Override\n public String toString(){\n return key;\n }", "public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}", "@Override\n\tpublic int hashCode() {\n\t\treturn getKey() != null ? getKey().hashCode() : 0;\n\t}", "private com.hps.july.trailcom.beans.OpticalHopKey keyFromFields ( java.lang.Integer f0 ) {\n com.hps.july.trailcom.beans.OpticalHopKey keyClass = new com.hps.july.trailcom.beans.OpticalHopKey();\n keyClass.hopid_hopsid = f0;\n return keyClass;\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic String getField(String key) {\n\t\treturn gp.getValue(key);\n\t}", "@Override\n public int hashCode() {\n return (this.key == null ? 0 : this.key.hashCode()) ^ (this.value == null ? 0 : this.value.hashCode());\n }", "java.lang.String getFieldOrThrow(\n java.lang.String key);", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }", "@Override\n public RecordId put(RecordId key, RecordId value) {\n if (key.getSegmentId().getMostSignificantBits() % 10000 == 0) {\n getCandidateIds.add(key);\n }\n return null;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Key, ID: \"+this.id;\n\t}", "public Field[] getKeyFields();", "public abstract String getRefKey();", "public java.lang.String getKey(){\n return localKey;\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof BlastingtypeRelationsAud)) {\n return false;\n }\n BlastingtypeRelationsAud that = (BlastingtypeRelationsAud) other;\n Object myBtrAudUid = this.getBtrAudUid();\n Object yourBtrAudUid = that.getBtrAudUid();\n if (myBtrAudUid==null ? yourBtrAudUid!=null : !myBtrAudUid.equals(yourBtrAudUid)) {\n return false;\n }\n return true;\n }", "public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n if (o.getClass().equals(SingleFieldKey.class)) {\n SingleFieldKey otherSingleFieldKey = (SingleFieldKey)o;\n return otherSingleFieldKey.keyField == keyField &&\n keyField.valueEqual(otherSingleFieldKey.value, value);\n }\n\n if (!Key.class.isAssignableFrom(o.getClass())) {\n return false;\n }\n Key otherKey = (Key)o;\n return keyField.getGlobType() == otherKey.getGlobType()\n && keyField.valueEqual(value, otherKey.getValue(keyField));\n }", "BListKey getKey();", "protected abstract Map<String, Serializable> getEventKeyAndIdMap();", "@Override\n public int hashCode() {\n return key.hashCode();\n }", "@Override\r\n\t\tpublic Object getUserData(String key)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n public SparseArray<Field> getFieldsByID() {\n final SparseArray<Field> out = new SparseArray<Field>();\n synchronized (fields) {\n populateFieldCache();\n Collection<Field> values = fields.values();\n for (Field field : values) {\n // Cache is up-to-date at this point, so we don't need to hit the DB.\n out.put(field.getID(), field);\n }\n }\n return out;\n }", "@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn key.hashCode() * 31 + value.hashCode();\n\t\t}", "private String getTextID(String key) {\n return fieldID.get(key).getText();\n }", "@Override\n void postValueWrite(SerializerElem e, String key) {\n\n }", "protected void buildAllKeysOnlyForView(final DatabaseView view) throws SQLException {\r\n\r\n\t\tstatementViewKeysSelect.setString(1, view.getTitle());\r\n\t\tfinal ResultSet resultSet = statementViewKeysSelect.executeQuery();\r\n\r\n\t\tfinal List<UniqueKey> uniqueKeys = new ArrayList<UniqueKey>();\r\n\t\tPrimaryKey primaryKey = null;\r\n\r\n\t\t// For each result, create a key if it is one.\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tif (resultSet.getString(1) != null) {\r\n\t\t\t\tif (resultSet.getString(3).toUpperCase().equals(\"P\")) {\r\n\t\t\t\t\t// If the type is p, it is a primary key.\r\n\t\t\t\t\t// It is possible, that a primary key is build by more than\r\n\t\t\t\t\t// one columns.\r\n\t\t\t\t\tif (primaryKey == null) {\r\n\t\t\t\t\t\tprimaryKey = new PrimaryKey(resultSet.getString(2));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tprimaryKey.addColumn(resultSet.getString(1));\r\n\t\t\t\t\tUniqueKey uniqueKey = new UniqueKey(resultSet.getString(2));\r\n\t\t\t\t\tif (uniqueKeys.contains(uniqueKey)) {\r\n\t\t\t\t\t\t// If already in the list, get that key instead of the\r\n\t\t\t\t\t\t// one above.\r\n\t\t\t\t\t\tuniqueKey = uniqueKeys.get(uniqueKeys.indexOf(uniqueKey));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuniqueKeys.add(uniqueKey);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuniqueKey.addColumn(resultSet.getString(1));\r\n\t\t\t\t} else if (resultSet.getString(3).toUpperCase().equals(\"U\")) {\r\n\t\t\t\t\t// If the type is a u, it is a unique key.\r\n\t\t\t\t\tUniqueKey uniqueKey = new UniqueKey(resultSet.getString(2));\r\n\t\t\t\t\tif (uniqueKeys.contains(uniqueKey)) {\r\n\t\t\t\t\t\t// If already in the list, get that key instead of the\r\n\t\t\t\t\t\t// one above.\r\n\t\t\t\t\t\tuniqueKey = uniqueKeys.get(uniqueKeys.indexOf(uniqueKey));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuniqueKeys.add(uniqueKey);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuniqueKey.addColumn(resultSet.getString(1));\r\n\t\t\t\t} else if (resultSet.getString(3).toUpperCase().equals(\"R\")) {\r\n\t\t\t\t\t// If the type is a r (referred), it is a foreign key.\r\n\t\t\t\t\tfinal ForeignKey foreignKey = new ForeignKey(resultSet.getString(2));\r\n\t\t\t\t\tforeignKey.setColumn(resultSet.getString(1));\r\n\t\t\t\t\tforeignKey.setReferToTable(resultSet.getString(5));\r\n\t\t\t\t\tforeignKey.setReferToColumn(resultSet.getString(4));\r\n\t\t\t\t\tschema.addForeignKey(foreignKey);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Add them all to the schema.\r\n\t\tfor (final UniqueKey uniqueKey : uniqueKeys) {\r\n\t\t\tschema.addUniqueKey(uniqueKey);\r\n\t\t}\r\n\r\n\t\t// If the primary key to the schema if available.\r\n\t\tif (primaryKey != null) {\r\n\t\t\tschema.addPrimaryKey(primaryKey);\r\n\t\t}\r\n\r\n\t\tresultSet.close();\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Field)) {\n return false;\n }\n Field other = (Field) object;\n if ((this.fieldId == null && other.fieldId != null) || (this.fieldId != null && !this.fieldId.equals(other.fieldId))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "TemplateModel getKey();", "@Override\n public int getKey() {\n return key_;\n }", "abstract protected DataValue updateValue(String key);", "public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }", "public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }", "public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "public String getUniqueField() {\n return uniqueField;\n }", "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "private String getKey (String keyBase, Object field)\n\t{\n\t\treturn ((field == null) ? keyBase : (keyBase + \"_related\"));\t//NOI18N\n\t}", "private DataKeys(String pKey) {\n key = pKey;\n }", "private String splitAndGetField(String line, String key) {\r\n\t\tString[] tmps = line.substring(line.indexOf(key) + key.length()).split(\r\n\t\t\t\t\" \");\r\n\t\treturn (tmps[0]);\r\n\t}", "public int getKey(){\n return key;\n }", "@Override\n public int hashCode() {\n return this.data.hashCode();\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof ApptranregFeesAud)) {\n return false;\n }\n ApptranregFeesAud that = (ApptranregFeesAud) other;\n Object myAtrfAudUid = this.getAtrfAudUid();\n Object yourAtrfAudUid = that.getAtrfAudUid();\n if (myAtrfAudUid==null ? yourAtrfAudUid!=null : !myAtrfAudUid.equals(yourAtrfAudUid)) {\n return false;\n }\n return true;\n }", "@Test\n\tpublic void hashCodeDifferentId() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setId(2);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "@Override\n public int getKey() {\n return key_;\n }", "@Override\n protected void onCreate(KeyList<Ujo> list, InnerDataStore<Ujo> innerData) throws IllegalStateException {\n final Set<String> set = new HashSet<>(list.size());\n for (Key<Ujo,?> key : list) {\n final boolean unique = set.add(key.getName());\n Assert.isTrue(unique, \"The key name is not unique: {}\", key);\n }\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dictData.getPrimaryKey();\n\t}", "public MultiKey() {}", "public String getDatasetKey() { return null; }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n Entry entry = (Entry) o;\n return field == entry.field;\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public Set<FieldInfo> getKeyFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_keys);\n }", "public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }", "protected abstract RMItem readData( int id, String key );", "@Override\n public boolean containsKey(Object key) {\n String fieldName = key.toString();\n ScriptDocValues<?> scriptValues = localCacheFieldData.get(fieldName);\n if (scriptValues == null) {\n MappedFieldType fieldType = mapperService.fieldType(fieldName);\n if (fieldType == null) {\n return false;\n }\n }\n return true;\n }", "public void setPrimaryKey(ObjectKey key) throws TorqueException\n {\n SimpleKey[] keys = (SimpleKey[]) key.getValue();\n SimpleKey tmpKey = null;\n setMailId(((NumberKey)keys[0]).intValue());\n setReceiverId(((NumberKey)keys[1]).intValue());\n }", "public Object getKey() {\r\n return key;\r\n }", "public Object getKey() { return name; }", "@Override\r\n public K firstKey() {\n return null;\r\n }", "private Map getKeyFields ()\n\t\t\t{\n\t\t\t\tModel model = getModel();\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tPersistenceClassElement pce = \n\t\t\t\t\tmodel.getPersistenceClass(pcClassName);\n\t\t\t\tPersistenceFieldElement[] fields = pce.getFields();\n\t\t\t\tMap keyFields = new HashMap();\n\n\t\t\t\tif (fields != null)\n\t\t\t\t{\n\t\t\t\t\tfor (int i = 0; i < fields.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tPersistenceFieldElement pfe = fields[i];\n\t\t\t\t\t\tif (pfe.isKey())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString name = pfe.getName();\n\t\t\t\t\t\t\tkeyFields.put(name, \n\t\t\t\t\t\t\t\tmodel.getField(pcClassName, name));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn keyFields;\n\t\t\t}", "@Override\n public String toString() {\n return key;\n }", "@Override\n protected void onNullNonKeyAttribute(String attributeName) {\n /* When doing a force put, we can safely ignore the null-valued attributes. */\n return;\n }", "public String getPrimaryKey() throws CloneNotSupportedException {\r\n\t\tString key=\"\";\r\n\t\tfor (int i = 0; i < this.state.getSizeCol(); i++) {\r\n\t\t\tfor (int j = 0; j < this.state.getSizeRow(); j++) {\r\n\t\t\t\tkey+=this.state.getValue(new Position(i,j));\r\n\t\t\t}\r\n\t\t}\r\n\t\tkey+=\"?\"+this.state.getTractor().getPosition().toString();\r\n\t\treturn key;\r\n\t}", "public String getKey() {\n\t\treturn id + \"\";\n\t}", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "public Object getKey()\n {\n return key;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _second.getPrimaryKey();\n\t}" ]
[ "0.6159119", "0.5871483", "0.5802996", "0.5800713", "0.5766739", "0.57246804", "0.5672371", "0.5671002", "0.5666942", "0.5632492", "0.5624617", "0.56128037", "0.55951476", "0.55951476", "0.55748177", "0.5567946", "0.55644137", "0.55411416", "0.5518242", "0.5488608", "0.5485464", "0.5469685", "0.5465618", "0.5459631", "0.5432252", "0.54264456", "0.5425345", "0.5397235", "0.5391129", "0.5382617", "0.53764635", "0.53760964", "0.53695047", "0.5367597", "0.5362677", "0.5353522", "0.5349726", "0.5344964", "0.53362846", "0.53323305", "0.5329694", "0.53041977", "0.5300912", "0.5295068", "0.529189", "0.528829", "0.5285518", "0.52851385", "0.5278605", "0.5271171", "0.5269895", "0.52668005", "0.5261289", "0.5260132", "0.52489454", "0.5246321", "0.52450335", "0.52370137", "0.52366596", "0.52366596", "0.52366596", "0.523339", "0.5231987", "0.522906", "0.5223505", "0.5223505", "0.5223505", "0.5223505", "0.52231807", "0.5221966", "0.5217292", "0.5202851", "0.52010995", "0.51881564", "0.518435", "0.5179553", "0.51763946", "0.5175082", "0.51741767", "0.5159719", "0.51570606", "0.5156283", "0.51546186", "0.5150718", "0.51483285", "0.51467633", "0.5144573", "0.513768", "0.51322293", "0.5131705", "0.5131563", "0.51236194", "0.5122366", "0.5121838", "0.5121638", "0.51202446", "0.51179534", "0.5115337", "0.5109929", "0.510731", "0.5106102" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } else if (id == R.id.action_cart) { goToShoppingCartActivity(); } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\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(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\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\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.73460615", "0.73415256", "0.73305213", "0.7329754", "0.7326127", "0.731949", "0.73171073", "0.7314056", "0.7304481", "0.7304481", "0.73022866", "0.72986156", "0.7293808", "0.7287263", "0.72836643", "0.72815806", "0.72789687", "0.72602886", "0.72602886", "0.72602886", "0.7259816", "0.7259814", "0.72502047", "0.7225156", "0.7219905", "0.7217096", "0.72046524", "0.72012514", "0.7201042", "0.71939653", "0.71857035", "0.71786326", "0.7169012", "0.7167622", "0.7154164", "0.71538347", "0.7136608", "0.7135137", "0.7135137", "0.7129952", "0.7129347", "0.71241516", "0.7123588", "0.7123425", "0.71223265", "0.71175927", "0.71175927", "0.71175927", "0.71175927", "0.71171945", "0.71171755", "0.71165764", "0.7114952", "0.71124375", "0.7109778", "0.7109144", "0.7105842", "0.71002746", "0.70984215", "0.7096018", "0.709392", "0.709392", "0.70864546", "0.7083677", "0.708144", "0.70804363", "0.70738995", "0.7068429", "0.7061805", "0.7060801", "0.7060423", "0.7051581", "0.7037953", "0.7037953", "0.70359737", "0.7035605", "0.7035605", "0.7033388", "0.70312315", "0.7029681", "0.70192695" ]
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_camera) { goToMobileScanGoActivity(); } else if (id == R.id.nav_deal) { goToDealsListActivity(); } else if (id == R.id.nav_item) { goToSearchItemActivity(); } else if (id == R.id.nav_location) { } else if (id == R.id.nav_user) { goToUserProfileActivity(); } else if (id == R.id.nav_logout) { SharedPreferences sharedpreferences = getSharedPreferences(Constants.MyPREFERENCES, Context.MODE_PRIVATE); SharedPreferences.Editor editor = sharedpreferences.edit(); editor.clear(); editor.putBoolean(Constants.loggedIn, false); editor.commit(); goToLoginActivity(); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }", "void onMenuItemClicked();", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, String data) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "void onLinkClicked(@Nullable ContentId itemId);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "void onItemClick(int position);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "void clickItem(int uid);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}" ]
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224", "0.66243863", "0.6624042", "0.66207093", "0.6602551", "0.6602231", "0.6599443", "0.65987265", "0.65935796", "0.6585869", "0.658491", "0.65811735", "0.65765643", "0.65751576", "0.65694076", "0.6561757", "0.65582377", "0.65581614", "0.6552827", "0.6552827", "0.6549224", "0.65389794", "0.65345114", "0.65337104", "0.652419", "0.652419", "0.6522521", "0.652146", "0.6521068", "0.6519354", "0.65165275", "0.65159816", "0.65028816", "0.6498054", "0.6498054", "0.64969087", "0.64937705", "0.6488544", "0.64867324", "0.64866185", "0.64865905", "0.6484047", "0.6481108", "0.6474686", "0.64628965", "0.64551884", "0.6446893", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64386237", "0.643595", "0.64356565", "0.64329195", "0.6432562", "0.6429554", "0.64255124", "0.64255124", "0.64121485", "0.64102405", "0.64095175", "0.64095175", "0.64094734", "0.640727", "0.64060104", "0.640229", "0.6397359", "0.6392996", "0.63921124", "0.63899696", "0.63885015", "0.63885015", "0.63873845", "0.6368818", "0.6368818", "0.63643163", "0.63643163", "0.63643163", "0.6358884" ]
0.0
-1
End of variables declaration
public Display(String [] entry, Double [] price, String name) { super(); initializeComponent(entry,price,name); // // TODO: Add any constructor code after initializeComponent call // this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "protected void initVars() {}", "private void assignment() {\n\n\t\t\t}", "private void declareLocals() {\r\n\t\t// declare locals\r\n\t\tfor(Local local: method.retrieveActiveBody().getLocals()) {\r\n\t\t\tString cType = null;\r\n\t\t\t// null types need special treatment, we don't output them\r\n\t\t\t// we also won't generate statements that use a nullType\r\n\t\t\t// as a target.\r\n\t\t\tif(local.getType() instanceof NullType) {\r\n\t\t\t\tcType = \"java_lang_Object*\";\r\n\t\t\t} else {\r\n\t\t\t\tcType = CTypes.toCType(local.getType());\r\n\t\t\t}\r\n\t\t\twriter.wl(cType + \" \" + local.getName() + \" = 0;\");\r\n\t\t}\r\n\t\twriter.wl(\"java_lang_Object* _exception = 0;\");\r\n\t}", "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "Variables createVariables();", "void compileVarDec() {\n tagBracketPrinter(VAR_DEC_TAG, OPEN_TAG_BRACKET);\n try {\n compileVarDecHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(VAR_DEC_TAG, CLOSE_TAG_BRACKET);\n }", "private void updateVars()\n {\n\n }", "String getVarDeclare();", "public TradeVariables() { /*gets default values*/ }", "public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }", "private void declareArray() {\n\t\twriter.println();\n\t\twriter.println(\"; array of 52 for variables:\");\n\t\twriter.print(variables + \" dw\");\n\t\tfor (int i = 0; i < 51; i++) {\n\t\t\twriter.print(\" 0,\");\n\t\t}\n\t\twriter.println(\" 0\");\n\t}", "@Override\r\n\tpublic void visit(VariableDeclaration variableDeclaration) {\n\r\n\t}", "private void initVars(){\n this.sOut = new StringBuilder();\n this.curPos = this.frameCount = 0;\n this.heldKeys = new int[257];\n this.showCursor = false;\n this.fontId = DAGGER40;\n Arrays.fill(this.heldKeys,-1);\n }", "public final void mo51373a() {\n }", "private void variableDeclaratorRest(VariableType x, Scope scope, Vector queue)\r\n {\r\n x.type.dim += bracketsOpt();\r\n if (nextSymbol == Keyword.ASSIGNSY)\r\n {\r\n Operation node, root = new Operation();\r\n root.operator = (x.modify & Keyword.FINALSY.value) == 0?Keyword.ASSIGNSY:Keyword.FINALASSIGNSY;\r\n\r\n node = root.left = new Operation();\r\n\r\n node.operator = Keyword.LEAFSY;\r\n node = node.left = new Operation();\r\n node = node.left = new Operation();\r\n node = node.left = new Operation();\r\n\r\n node.name = x.name;\r\n node.type = x.type;\r\n\r\n lookAhead();\r\n\r\n root.right = variableIntitializer(x.type, x.type.dim, scope, queue);\r\n\r\n queue.add(root);\r\n\r\n root = new Operation();\r\n root.operator = Keyword.CLEARSY;\r\n queue.add(root);\r\n }\r\n }", "int realnVars();", "final public void varcall() throws ParseException {\n jj_consume_token(VARIABLE);\n if(userVals.get(token.image)==null) {\n {if (true) throw new ParseException(\"La variable no ha sido definida.\");}\n }\n }", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "public void mo38117a() {\n }", "public void resetLocals()\n {\n maxLocalSize = 0;\n localCnt = localIntCnt = localDoubleCnt = localStringCnt = localItemCnt = 0;\n locals = lastLocal = new LocalVariable(null, null, null);\n }", "private void kk12() {\n\n\t}", "public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }", "public void mo12930a() {\n }", "protected void visitVariableDeclInfoAfterAddedToScope(VariableDeclInfo declInfo) {\n // Deliberately empty - to be optionally overridden by subclasses.\n }", "void compileClassVarDec() {\n tagBracketPrinter(CLASS_VAR_DEC_TAG, OPEN_TAG_BRACKET);\n try {\n compileClassVarDecHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(CLASS_VAR_DEC_TAG, CLOSE_TAG_BRACKET);\n\n\n }", "public final void mo91715d() {\n }", "public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "@Override\n public List<String> getVariables()\n {\n return null;\n }", "void initFunDecl() {\n\t\t_localVarID = 0;\r\n\t\t_labelID = 0;\r\n\t\t_tempVarID = 32;\r\n\t\t_lsymtable.clear();\r\n\t}", "public void mo1327d(ac acVar) {\n }", "public static void initialisations() {\n\t\tit = 0;\r\n\t\tbc = 1;\r\n\r\n\t\t// pile des reprises pour compilation des branchements en avant\r\n\t\tpileRep = new TPileRep(); \r\n\t\t// programme objet = code Mapile de l'unite en cours de compilation\r\n\t\tpo = new ProgObjet();\r\n\t\t// COMPILATION SEPAREE: desripteur de l'unite en cours de compilation\r\n\t\tdesc = new Descripteur();\r\n\r\n\t\t// initialisation necessaire aux attributs lexicaux\r\n\t\tUtilLex.initialisation();\r\n\r\n\t\t// initialisation du type de l'expression courante\r\n\t\ttCour = NEUTRE;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de param�tres de chaque proc�dure \r\n\t\tnbParamProc = 0;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de variables d�clar�es\r\n\t\tnbVar++;\r\n\r\n\t\t//Initialisation vTmp\r\n\t\tvTmp = 0;\r\n\t\t\r\n\t\tdesc.setUnite(\"programme\");\r\n\t\t\r\n\t}", "private void decls() throws IOException\n {\n type();\n match(Tag.ID);\n match(';');\n }", "void _smem_close_vars() throws SQLException\n {\n smem_variable_set(smem_variable_key.var_max_cycle, this.smem_max_cycle);\n \n // store num nodes/edges for future use of the smem database\n smem_variable_set(smem_variable_key.var_num_nodes, stats.nodes.get());\n smem_variable_set(smem_variable_key.var_num_edges, stats.edges.get());\n }", "public void masterDeclaration();", "private final void m28007e(JsonParser jVar) throws IOException {\n Object Q = jVar.mo29771Q();\n this.f20615n = Q;\n if (Q != null) {\n this.f20617p = true;\n }\n Object P = jVar.mo29770P();\n this.f20616o = P;\n if (P != null) {\n this.f20617p = true;\n }\n }", "private B() {\n void var2_-1;\n void var1_-1;\n }", "private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }", "public void mo4359a() {\n }", "public void setTotalVariables( int totalVars ) ;", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public abstract int nVars();", "void method_9229(int var1, int var2, int var3) {\r\n this.field_8735 = var1;\r\n this.field_8736 = var2;\r\n this.field_8737 = var3;\r\n super();\r\n }", "public void mo2198g(C0317d dVar) {\n }", "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public void clearVars() {\n setLatitude (FLOATNULL);\n setLongitude (FLOATNULL);\n setDepth (FLOATNULL);\n setTemperatureMin (FLOATNULL);\n setTemperatureMax (FLOATNULL);\n setSalinityMin (FLOATNULL);\n setSalinityMax (FLOATNULL);\n setOxygenMin (FLOATNULL);\n setOxygenMax (FLOATNULL);\n setNitrateMin (FLOATNULL);\n setNitrateMax (FLOATNULL);\n setPhosphateMin (FLOATNULL);\n setPhosphateMax (FLOATNULL);\n setSilicateMin (FLOATNULL);\n setSilicateMax (FLOATNULL);\n setChlorophyllMin (FLOATNULL);\n setChlorophyllMax (FLOATNULL);\n }", "public static void main(String[] args) {\nint b;\n\t\tint a;\n\t}", "public void mo115190b() {\n }", "double defendre();", "private Constants$CounterNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "private final void zzR(Object var1_1, zzha var2_2) {\n block94: {\n var3_3 = this;\n var4_4 = var1_1;\n var5_5 = var2_2;\n var6_6 = this.zzh;\n if (var6_6 != 0) break block94;\n var7_7 = this.zzc;\n var6_6 = ((int[])var7_7).length;\n var8_8 = zzja.zzb;\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n var11_11 = var9_9;\n var13_13 = 0;\n for (var12_12 = 0; var12_12 < var6_6; var12_12 += 3) {\n block95: {\n var14_14 = var3_3.zzA(var12_12);\n var15_15 = var3_3.zzc;\n var16_16 = var15_15[var12_12];\n var17_17 = zzja.zzC(var14_14);\n var18_18 = 17;\n var19_19 = 1;\n if (var17_17 <= var18_18) {\n var20_20 = var3_3.zzc;\n var21_21 = var12_12 + 2;\n var18_18 = var20_20[var21_21];\n if ((var21_21 = var18_18 & var9_9) != var11_11) {\n var22_22 = var21_21;\n var13_13 = var8_8.getInt(var4_4, var22_22);\n var11_11 = var21_21;\n }\n var18_18 >>>= 20;\n var18_18 = var19_19 << var18_18;\n } else {\n var18_18 = 0;\n var20_20 = null;\n }\n var24_23 = var14_14 &= var9_9;\n switch (var17_17) lbl-1000:\n // 56 sources\n\n {\n default: {\n var17_17 = 0;\n break block95;\n }\n case 68: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 67: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 66: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 65: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 64: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 63: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 62: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 61: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n ** GOTO lbl-1000\n }\n case 60: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 59: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 58: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = (int)zzja.zzH(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n ** GOTO lbl-1000\n }\n case 57: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 56: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 55: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 54: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 53: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 52: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var10_10 = zzja.zzE(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n ** GOTO lbl-1000\n }\n case 51: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var28_26 = zzja.zzD(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n ** GOTO lbl-1000\n }\n case 50: {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var3_3.zzS(var5_5, var16_16, var26_24, var12_12);\n ** GOTO lbl-1000\n }\n case 49: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzaa(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 48: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzN(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 47: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 46: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 45: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 44: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 43: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 42: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzW(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 41: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 40: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 39: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 38: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 37: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 36: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 35: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 34: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var16_16 = 0;\n var15_15 = null;\n zzjk.zzN(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 33: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 32: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 31: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 30: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 29: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, false);\nlbl290:\n // 6 sources\n\n var17_17 = 0;\n break block95;\n }\n case 28: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzY(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 27: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzZ(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 26: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzX(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 25: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var17_17 = 0;\n zzjk.zzW(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 24: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 23: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 22: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 21: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 20: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 19: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 18: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 17: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 16: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n }\n break block95;\n }\n case 15: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n }\n break block95;\n }\n case 14: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n }\n break block95;\n }\n case 13: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n }\n break block95;\n }\n case 12: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n }\n break block95;\n }\n case 11: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n }\n break block95;\n }\n case 10: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n }\n break block95;\n }\n case 9: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 8: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n }\n break block95;\n }\n case 7: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = (int)zzkh.zzh(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n }\n break block95;\n }\n case 6: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n }\n break block95;\n }\n case 5: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n }\n break block95;\n }\n case 4: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n }\n break block95;\n }\n case 3: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n }\n break block95;\n }\n case 2: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n }\n break block95;\n }\n case 1: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var10_10 = zzkh.zzj(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n }\n break block95;\n }\n case 0: \n }\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var28_26 = zzkh.zzl(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n }\n }\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n }\n var7_7 = var3_3.zzn;\n var4_4 = var7_7.zzd(var4_4);\n var7_7.zzi(var4_4, var5_5);\n return;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }", "public int getTotalVariables() ;", "private void createClassVariables(){ \n //--------------------------------------------------------------------------- \n Hashtable table=sqlTagsGeneratorTable.getImportedForeignKeyHash();\n Enumeration enum=table.keys();\n buffer=new StringBuffer();\n //buffer.append(\" private Connection connection;\\n\"); \n //buffer.append(\" private ConnectionTag connectionObject;\\n\"); \n //buffer.append(\" private Vector primaryKeyVector=new Vector();\\n\"); \n buffer.append(\" private String tableName=\\\"\"+tableName+\"\\\";\\n\"); \n\n for(;enum.hasMoreElements();){\n String foreignKeyName=(String)enum.nextElement();\n SQLTagsGeneratorForeignKey object=(SQLTagsGeneratorForeignKey)\n table.get(foreignKeyName);\n String importTable=object.getImportTableName();\n String exportTable=object.getExportTableName();\n String fkName=object.getFkName();\n buffer.append(\" private \"+exportTable+\" \"+fkName+\"_PARENT;\\n\");\n }\n\n table=sqlTagsGeneratorTable.getExportedForeignKeyHash();\n enum=table.keys();\n\n for(;enum.hasMoreElements();){\n String foreignKeyName=(String)enum.nextElement();\n SQLTagsGeneratorForeignKey object=(SQLTagsGeneratorForeignKey)\n table.get(foreignKeyName);\n String exportTable=object.getImportTableName();\n String fkName=object.getFkName();\n buffer.append(\" private \"+exportTable+\" \"+fkName+\"_CHILD;\\n\");\n }\n }", "public void mo21779D() {\n }", "private void yy() {\n\n\t}", "private void ResetVarC() {\n anchura = true;\n iterator = 0;\n Yencoding = new ArrayList<Integer>();\n Cbencoding = new ArrayList<Integer>();\n Crencoding = new ArrayList<Integer>();\n FY = new StringBuilder();\n FCB = new StringBuilder();\n FCR = new StringBuilder();\n }", "protected Double[] allocateVariables() {\n\t\tDouble[] _variables = new Double[size];\n\t\treturn _variables;\n\t}", "public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeVars();\r\n\t\ttemp.remove(\"\");\r\n\t\tVector temp2 = ((SimpleNode) jjtGetChild(1)).freeVars();\r\n\t\ttemp2.remove(\"\");\r\n\t\tfor (Object obj : temp2) {\r\n\t\t\tif (!temp.contains(obj)) {\r\n\t\t\t\tv.add(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "private void m3417d(C0933b bVar) {\n m3422v(bVar);\n }", "private void m50366E() {\n }", "void declaration() {\n\t\tString theToken = currentToken();\r\n\r\n\t\tif (theToken.equals(\"int\") || theToken.equals(\"void\")) {\r\n\t\t\ttypeSpeci();\r\n\t\t\taccept(\"ID\");\r\n\t\t\ttheToken = currentToken();\r\n\t\t\tif (theToken.equals(\";\") || theToken.equals(\"[\"))\r\n\t\t\t\tvarDec();\r\n\r\n\t\t\t// if int ID ( param ) compoundStatment\r\n\t\t\telse if (theToken.equals(\"(\"))\r\n\t\t\t\tfunDec();\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "public void resetVariables() {\n this.name = \"\";\n this.equipLevel = 0;\n this.cpuCost = 0;\n this.bankDamageModifier = 1.0f;\n this.redirectDamageModifier = 1.0f;\n this.attackDamageModifier = 1.0f;\n this.ftpDamageModifier = 1.0f;\n this.httpDamageModifier = 1.0f;\n this.attackDamage = 0.0f;\n this.pettyCashReducePct = 1.0f;\n this.pettyCashFailPct = 1.0f;\n this.dailyPayChangeFailPct = 1.0f;\n this.dailyPayChangeReducePct = 1.0f;\n this.stealFileFailPct = 1.0f;\n this.installScriptFailPct = 1.0f;\n }", "@Override\n public void func_104112_b() {\n \n }", "void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear();\n }\n }", "private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}", "String getDefiningEnd();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "private void localVariableDeclaration(Modifier modify, Scope scope, Vector queue)\r\n {\r\n if (nextSymbol == Keyword.FINALSY)\r\n {\r\n modify.add(nextSymbol.value);\r\n lookAhead();\r\n }\r\n\r\n modify.check(modify.fields | modify.access);\r\n Type t = type();\r\n\r\n variableDeclarators(modify, t, scope, queue);\r\n }", "void m1864a() {\r\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "public void resetVariables() {\n\t\tArrays.fill(variables, 0.0);\n\t}", "public void mo1403c() {\n }", "@Override\n public int[] getRequiredTokens() {\n return new int[] {\n TokenTypes.VARIABLE_DEF,\n };\n }", "static void feladat4() {\n\t}", "public DetachedVarSymbol(long flags, Name name, Type type, Symbol owner) {\n super(flags, name, type, owner);\n this.decl = null;\n }", "public void mo38031a(C13262e eVar) {\n }", "public static void main(String[] args) {\n\t\t\n\n\tchar singleLetter='c';\n\t\n\t//boolean new=true; do not use keyword to name your variables \n\t\n\t//int 1num=100; //error\n\t int num1=100;\n\t \n\t boolean boo_=true;\n\t double $price=2.99;\n\t //byte <b=1; --> error\n\t \n\t //Preferences\n\t /*\n\t * Follow camel casing\n\t * Java Classes should start with upper case and follow camel casing\n\t * Variables and methods in Java should start with lowercase and follow camel casing \n\t */\n\t \n\t short ThisIsMyShortNumber=10;\n\t System.out.println(ThisIsMyShortNumber);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "public static void main(String[] args)\n {\n int varInt1 = 10;\n int varInt2 = 20;\n int varInt3;\n\n varInt3 = 30;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n varInt1 = 5;\n varInt2 = 55;\n varInt3 = 555;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n {\n double varDouble1;\n varDouble1 = 10.5;\n double varDouble2;\n varDouble2 = 21.5;\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n System.out.println();\n System.out.println(\"varDouble1=\" + varDouble1);\n System.out.println();\n System.out.println(\"varDouble2=\" + varDouble2);\n System.out.println();\n }\n }", "public void mo12628c() {\n }", "public void m23075a() {\n }", "public void mo3749d() {\n }", "private void initVars(){\n this.dice = new Dice();\n this.playing = true;\n this.currentPlayer = 0;\n this.turn = 0;\n this.xPlayers=new ArrayList<>(); \n this.players = new Player[4];\n this.diceRoller=true;\n this.xTokens=new ArrayList<>();\n this.winners=new ArrayList<>();\n this.computerPlayer= new Autoplay();\n this.gameResults = \"\";\n this.debug = false;\n }", "public void mo23813b() {\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "private Constants$TraceNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "public void exit()\n {\n m_doc = null;\n m_stylesheet = null;\n\n // m_defaultParaProperties = null;\n\n m_paragraph = null;\n m_paraProperties = null;\n m_charProperties = null;\n m_charPropertiesStack = null;\n m_container = null;\n m_containerStack = null;\n }", "public void method_4231() {\r\n String[] var1;\r\n float var2;\r\n float var3;\r\n float var4;\r\n int var10000;\r\n float var10001;\r\n float var31;\r\n label281: {\r\n var1 = class_752.method_4253();\r\n var10000 = this.field_2990.field_1832;\r\n if(var1 != null) {\r\n label282: {\r\n if(this.field_2990.field_1832) {\r\n var2 = class_1715.method_9556(this.field_3412 * 3.1415927F * 2.0F);\r\n var3 = class_1715.method_9556(this.field_3411 * 3.1415927F * 2.0F);\r\n float var46;\r\n var10000 = (var46 = var3 - -0.3F) == 0.0F?0:(var46 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label282;\r\n }\r\n\r\n if(var10000 <= 0) {\r\n float var47;\r\n var10000 = (var47 = var2 - -0.3F) == 0.0F?0:(var47 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label282;\r\n }\r\n\r\n if(var10000 >= 0) {\r\n String[] var29 = field_3418;\r\n this.field_2990.method_2085(this.field_2994, this.field_2995, this.field_2996, \"mob.enderdragon.wings\", 5.0F, 0.8F + this.field_3028.nextFloat() * 0.3F, false);\r\n }\r\n }\r\n }\r\n\r\n this.field_3411 = this.field_3412;\r\n var31 = this.method_406();\r\n var10001 = 0.0F;\r\n if(var1 == null) {\r\n break label281;\r\n }\r\n\r\n float var48;\r\n var10000 = (var48 = var31 - 0.0F) == 0.0F?0:(var48 < 0.0F?-1:1);\r\n }\r\n }\r\n\r\n if(var10000 <= 0) {\r\n var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var32 = field_3418;\r\n this.field_2990.method_2087(\"largeexplode\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n if(var1 != null) {\r\n return;\r\n }\r\n }\r\n\r\n this.method_4318();\r\n var31 = 0.2F;\r\n var10001 = class_1715.method_9558(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 10.0F + 1.0F;\r\n }\r\n\r\n class_758 var34;\r\n label259: {\r\n var2 = var31 / var10001;\r\n var2 *= (float)Math.pow(2.0D, this.field_2998);\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3414) {\r\n this.field_3412 += var2 * 0.5F;\r\n if(var1 != null) {\r\n break label259;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.field_3412 += var2;\r\n }\r\n\r\n float var11;\r\n float var12;\r\n float var13;\r\n float var14;\r\n float var17;\r\n label252: {\r\n label283: {\r\n double var7;\r\n double var9;\r\n double var15;\r\n double var30;\r\n label284: {\r\n label285: {\r\n label286: {\r\n this.field_3000 = class_1715.method_9579(this.field_3000);\r\n var10000 = this.field_3402;\r\n if(var1 != null) {\r\n if(this.field_3402 < 0) {\r\n int var5 = 0;\r\n\r\n while(var5 < this.field_3401.length) {\r\n this.field_3401[var5][0] = (double)this.field_3000;\r\n this.field_3401[var5][1] = this.field_2995;\r\n ++var5;\r\n if(var1 == null) {\r\n break label286;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n var10000 = ++this.field_3402;\r\n }\r\n\r\n if(var1 == null) {\r\n break label285;\r\n }\r\n\r\n if(var10000 == this.field_3401.length) {\r\n this.field_3402 = 0;\r\n }\r\n\r\n this.field_3401[this.field_3402][0] = (double)this.field_3000;\r\n this.field_3401[this.field_3402][1] = this.field_2995;\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label284;\r\n }\r\n\r\n var10000 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label252;\r\n }\r\n\r\n if(this.field_3350 <= 0) {\r\n break label283;\r\n }\r\n\r\n var9 = this.field_2994 + (this.field_3351 - this.field_2994) / (double)this.field_3350;\r\n var15 = this.field_2995 + (this.field_3352 - this.field_2995) / (double)this.field_3350;\r\n var30 = this.field_2996 + (this.field_3353 - this.field_2996) / (double)this.field_3350;\r\n var7 = class_1715.method_9580(this.field_3354 - (double)this.field_3000);\r\n this.field_3000 = (float)((double)this.field_3000 + var7 / (double)this.field_3350);\r\n this.field_3001 = (float)((double)this.field_3001 + (this.field_3355 - (double)this.field_3001) / (double)this.field_3350);\r\n --this.field_3350;\r\n this.method_3854(var9, var15, var30);\r\n this.method_3853(this.field_3000, this.field_3001);\r\n if(var1 != null) {\r\n break label283;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n double var18;\r\n double var20;\r\n label219: {\r\n var9 = var34.field_3398 - this.field_2994;\r\n var15 = this.field_3399 - this.field_2995;\r\n var30 = this.field_3400 - this.field_2996;\r\n var7 = var9 * var9 + var15 * var15 + var30 * var30;\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3415 != null) {\r\n this.field_3398 = this.field_3415.field_2994;\r\n this.field_3400 = this.field_3415.field_2996;\r\n var18 = this.field_3398 - this.field_2994;\r\n var20 = this.field_3400 - this.field_2996;\r\n double var22 = Math.sqrt(var18 * var18 + var20 * var20);\r\n double var24 = 0.4000000059604645D + var22 / 80.0D - 1.0D;\r\n if(var1 != null) {\r\n if(var24 > 10.0D) {\r\n var24 = 10.0D;\r\n }\r\n\r\n this.field_3399 = this.field_3415.field_3004.field_6910 + var24;\r\n }\r\n\r\n if(var1 != null) {\r\n break label219;\r\n }\r\n }\r\n\r\n this.field_3398 += this.field_3028.nextGaussian() * 2.0D;\r\n var34 = this;\r\n }\r\n\r\n var34.field_3400 += this.field_3028.nextGaussian() * 2.0D;\r\n }\r\n\r\n label211: {\r\n var34 = this;\r\n if(var1 != null) {\r\n label209: {\r\n if(!this.field_3413) {\r\n label289: {\r\n double var49;\r\n var10000 = (var49 = var7 - 100.0D) == 0.0D?0:(var49 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 < 0) {\r\n break label289;\r\n }\r\n\r\n double var50;\r\n var10000 = (var50 = var7 - 22500.0D) == 0.0D?0:(var50 < 0.0D?-1:1);\r\n }\r\n\r\n if(var1 != null) {\r\n if(var10000 > 0) {\r\n break label289;\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label209;\r\n }\r\n\r\n var10000 = this.field_3006;\r\n }\r\n\r\n if(var10000 == 0) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label209;\r\n }\r\n\r\n if(!this.field_3007) {\r\n break label211;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n }\r\n\r\n var34.method_4321();\r\n }\r\n\r\n double var33;\r\n double var44;\r\n label291: {\r\n var15 /= (double)class_1715.method_9558(var9 * var9 + var30 * var30);\r\n var11 = 0.6F;\r\n double var51;\r\n var10000 = (var51 = var15 - (double)(-var11)) == 0.0D?0:(var51 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 < 0) {\r\n var15 = (double)(-var11);\r\n }\r\n\r\n var44 = var15;\r\n var33 = (double)var11;\r\n if(var1 == null) {\r\n break label291;\r\n }\r\n\r\n double var52;\r\n var10000 = (var52 = var15 - var33) == 0.0D?0:(var52 < 0.0D?-1:1);\r\n }\r\n\r\n if(var10000 > 0) {\r\n var15 = (double)var11;\r\n }\r\n\r\n this.field_2998 += var15 * 0.10000000149011612D;\r\n this.field_3000 = class_1715.method_9579(this.field_3000);\r\n var44 = 180.0D;\r\n var33 = Math.atan2(var9, var30) * 180.0D / 3.141592653589793D;\r\n }\r\n\r\n label293: {\r\n var18 = var44 - var33;\r\n var20 = class_1715.method_9580(var18 - (double)this.field_3000);\r\n double var53;\r\n var10000 = (var53 = var20 - 50.0D) == 0.0D?0:(var53 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 > 0) {\r\n var20 = 50.0D;\r\n }\r\n\r\n var44 = var20;\r\n var33 = -50.0D;\r\n if(var1 == null) {\r\n break label293;\r\n }\r\n\r\n double var54;\r\n var10000 = (var54 = var20 - -50.0D) == 0.0D?0:(var54 < 0.0D?-1:1);\r\n }\r\n\r\n if(var10000 < 0) {\r\n var20 = -50.0D;\r\n }\r\n\r\n var44 = this.field_3398 - this.field_2994;\r\n var33 = this.field_3399 - this.field_2995;\r\n }\r\n\r\n azw var38 = azw.method_5086(var44, var33, this.field_3400 - this.field_2996).method_5090();\r\n azw var23 = azw.method_5086((double)class_1715.method_9555(this.field_3000 * 3.1415927F / 180.0F), this.field_2998, (double)(-class_1715.method_9556(this.field_3000 * 3.1415927F / 180.0F))).method_5090();\r\n var17 = (float)(var23.method_5091(var38) + 0.5D) / 1.5F;\r\n var31 = var17;\r\n var10001 = 0.0F;\r\n if(var1 != null) {\r\n if(var17 < 0.0F) {\r\n var17 = 0.0F;\r\n }\r\n\r\n this.field_3349 *= 0.8F;\r\n var31 = class_1715.method_9558(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 1.0F;\r\n var10001 = 1.0F;\r\n }\r\n\r\n float var41 = var31 + var10001;\r\n double var25 = Math.sqrt(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 1.0D + 1.0D;\r\n var44 = var25;\r\n var33 = 40.0D;\r\n if(var1 != null) {\r\n if(var25 > 40.0D) {\r\n var25 = 40.0D;\r\n }\r\n\r\n this.field_3349 = (float)((double)this.field_3349 + var20 * (0.699999988079071D / var25 / (double)var41));\r\n this.field_3000 += this.field_3349 * 0.1F;\r\n var44 = 2.0D;\r\n var33 = var25 + 1.0D;\r\n }\r\n\r\n label171: {\r\n var12 = (float)(var44 / var33);\r\n var13 = 0.06F;\r\n this.method_3882(0.0F, -1.0F, var13 * (var17 * var12 + (1.0F - var12)));\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3414) {\r\n this.method_3864(this.field_2997 * 0.800000011920929D, this.field_2998 * 0.800000011920929D, this.field_2999 * 0.800000011920929D);\r\n if(var1 != null) {\r\n break label171;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.method_3864(this.field_2997, this.field_2998, this.field_2999);\r\n }\r\n\r\n azw var27 = azw.method_5086(this.field_2997, this.field_2998, this.field_2999).method_5090();\r\n var14 = (float)(var27.method_5091(var23) + 1.0D) / 2.0F;\r\n var14 = 0.8F + 0.15F * var14;\r\n this.field_2997 *= (double)var14;\r\n this.field_2999 *= (double)var14;\r\n this.field_2998 *= 0.9100000262260437D;\r\n }\r\n\r\n this.field_3330 = this.field_3000;\r\n this.field_3404.field_3014 = this.field_3404.field_3015 = 3.0F;\r\n this.field_3406.field_3014 = this.field_3406.field_3015 = 2.0F;\r\n this.field_3407.field_3014 = this.field_3407.field_3015 = 2.0F;\r\n this.field_3408.field_3014 = this.field_3408.field_3015 = 2.0F;\r\n this.field_3405.field_3015 = 3.0F;\r\n this.field_3405.field_3014 = 5.0F;\r\n this.field_3409.field_3015 = 2.0F;\r\n this.field_3409.field_3014 = 4.0F;\r\n this.field_3410.field_3015 = 3.0F;\r\n this.field_3410.field_3014 = 4.0F;\r\n var34 = this;\r\n }\r\n\r\n var3 = (float)(var34.method_4317(5, 1.0F)[1] - this.method_4317(10, 1.0F)[1]) * 10.0F / 180.0F * 3.1415927F;\r\n var4 = class_1715.method_9556(var3);\r\n float var35 = -class_1715.method_9555(var3);\r\n float var19 = this.field_3000 * 3.1415927F / 180.0F;\r\n float var36 = class_1715.method_9555(var19);\r\n float var21 = class_1715.method_9556(var19);\r\n this.field_3405.method_3856();\r\n this.field_3405.method_3887(this.field_2994 + (double)(var36 * 0.5F), this.field_2995, this.field_2996 - (double)(var21 * 0.5F), 0.0F, 0.0F);\r\n this.field_3409.method_3856();\r\n this.field_3409.method_3887(this.field_2994 + (double)(var21 * 4.5F), this.field_2995 + 2.0D, this.field_2996 + (double)(var36 * 4.5F), 0.0F, 0.0F);\r\n this.field_3410.method_3856();\r\n this.field_3410.method_3887(this.field_2994 - (double)(var21 * 4.5F), this.field_2995 + 2.0D, this.field_2996 - (double)(var36 * 4.5F), 0.0F, 0.0F);\r\n var34 = this;\r\n if(var1 != null) {\r\n label163: {\r\n if(!this.field_2990.field_1832) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label163;\r\n }\r\n\r\n if(this.field_3315 == 0) {\r\n this.method_4319(this.field_2990.method_2155(this, this.field_3409.field_3004.method_7097(4.0D, 2.0D, 4.0D).method_7104(0.0D, -2.0D, 0.0D)));\r\n this.method_4319(this.field_2990.method_2155(this, this.field_3410.field_3004.method_7097(4.0D, 2.0D, 4.0D).method_7104(0.0D, -2.0D, 0.0D)));\r\n this.method_4320(this.field_2990.method_2155(this, this.field_3404.field_3004.method_7097(1.0D, 1.0D, 1.0D)));\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n }\r\n\r\n double[] var39 = var34.method_4317(5, 1.0F);\r\n double[] var40 = this.method_4317(0, 1.0F);\r\n var11 = class_1715.method_9555(this.field_3000 * 3.1415927F / 180.0F - this.field_3349 * 0.01F);\r\n var17 = class_1715.method_9556(this.field_3000 * 3.1415927F / 180.0F - this.field_3349 * 0.01F);\r\n this.field_3404.method_3856();\r\n this.field_3404.method_3887(this.field_2994 + (double)(var11 * 5.5F * var4), this.field_2995 + (var40[1] - var39[1]) * 1.0D + (double)(var35 * 5.5F), this.field_2996 - (double)(var17 * 5.5F * var4), 0.0F, 0.0F);\r\n int var42 = 0;\r\n\r\n label295: {\r\n while(true) {\r\n if(var42 < 3) {\r\n class_706 var43 = null;\r\n var10000 = var42;\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var42 == 0) {\r\n var43 = this.field_3406;\r\n }\r\n\r\n var10000 = var42;\r\n byte var37 = 1;\r\n if(var1 != null) {\r\n if(var42 == 1) {\r\n var43 = this.field_3407;\r\n }\r\n\r\n var10000 = var42;\r\n var37 = 2;\r\n }\r\n\r\n if(var10000 == var37) {\r\n var43 = this.field_3408;\r\n }\r\n\r\n double[] var26 = this.method_4317(12 + var42 * 2, 1.0F);\r\n var12 = this.field_3000 * 3.1415927F / 180.0F + this.method_4322(var26[0] - var39[0]) * 3.1415927F / 180.0F * 1.0F;\r\n var13 = class_1715.method_9555(var12);\r\n float var45 = class_1715.method_9556(var12);\r\n var14 = 1.5F;\r\n float var28 = (float)(var42 + 1) * 2.0F;\r\n var43.method_3856();\r\n var43.method_3887(this.field_2994 - (double)((var36 * var14 + var13 * var28) * var4), this.field_2995 + (var26[1] - var39[1]) * 1.0D - (double)((var28 + var14) * var35) + 1.5D, this.field_2996 + (double)((var21 * var14 + var45 * var28) * var4), 0.0F, 0.0F);\r\n ++var42;\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label295;\r\n }\r\n\r\n var10000 = this.field_2990.field_1832;\r\n break;\r\n }\r\n\r\n if(var10000 != 0) {\r\n return;\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.field_3414 = this.method_4323(this.field_3404.field_3004) | this.method_4323(this.field_3405.field_3004);\r\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "@Test\n\tpublic void testMakeSureVarVariablesCanShadowLetVariables()\n\t{\n\t\tString[] code = {\n\t\t\t\"let a = 1;\",\n\t\t \"let b = 2;\",\n\t\t \"var c = 3;\",\n\n\t\t \"function sup(a) {\",\n\t\t \"var b = 4;\",\n\t\t \"let c = 5;\",\n\t\t \"let d = 6;\",\n\t\t \"if (false) {\",\n\t\t \"var d = 7;\",\n\t\t \"}\",\n\t\t \"return b + c + a + d;\",\n\t\t \"}\",\n\n\t\t \"sup();\"\n\t\t};\n\t\t\n\t\tth.addError(1, 5, \"'a' is defined but never used.\");\n\t th.addError(2, 5, \"'b' is defined but never used.\");\n\t th.addError(3, 5, \"'c' is defined but never used.\");\n\t th.addError(9, 5, \"'d' has already been declared.\");\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true).set(\"unused\", true).set(\"undef\", true).set(\"funcscope\", true));\n\t}", "private Stmt varDeclaration() {\n Token name = consume(IDENTIFIER, \"Expect variable name.\");\n Expr initializer = null;\n // Parse the initializer if an '=' is present. This branching allows initialization without declaration.\n if(match(EQUAL)) {\n initializer = expression();\n }\n\n consumeSemi(\"Expect ';' after variable declaration.\");\n return new Stmt.Var(name, initializer);\n }", "@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupEndValues() {\n }", "public void method_1142(bdw var1) {\r\n super.method_651();\r\n this.field_987 = -16;\r\n this.field_971 = var1;\r\n }", "public void resetVariables(){\n\t\tthis.queryTriplets.clear();\n\t\tthis.variableList.clear();\n\t\tthis.prefixMap.clear();\n\t}", "public static void main(String[] args) {\n int static2 = 22;\n int _static = 22;\n int $tatic = 45;\n int staticVar = 23;\n\n int salary$ = 55;\n // int 1stMonthSalary = 55; --- ERROR, cannot start with number\n int $ = 10;\n int _ = 3;\n System.out.println(\"salary $ = \" + $); // these variable work....but not recommended\n System.out.println(\"weekly _ = \" + _);// these variable work....but not recommended\n // int number-of-friends = 400; --- cannot use dashes ----> ERROR\n\n //int number_of_friends = 500; ---- NOT CONVENTION\n int numberOfFriends = 500; // use this camel case\n\n\n\n\n\n\n\n\n\n }", "@AfterAll\n public static void afterEverything() {\n //Set all instance variable to null\n oneHalf = null;\n oneFourth = null;\n twoThirds = null;\n negOneHalf = null;\n negOneFourth = null;\n negThreeNinths = null;\n negEightTwelfths = null;\n zeroTenth = null;\n zero = null;\n one = null;\n negOne = null;\n }", "private void extractVariables(String codeString) {\n // Remove array initializations\n codeString = arrayInitializer.matcher(codeString).replaceAll(\"\");\n \n // Merge multi declarations and instantiations\n codeString = codeString.replace(\" = \", \"=\").replace(\" , \", \",\");\n \n // Keep only declaration and initialization part\n String[] tmp = codeString.split(\" \");\n if (tmp.length > 1) {\n codeString = tmp[tmp.length - 2];\n \n // Split per declaration\n String[] declarations = codeString.split(\",\");\n for (String declaration : declarations) {\n int endIndex = declaration.indexOf('=');\n if (endIndex != -1) {\n declaration = declaration.substring(0, endIndex);\n }\n declaration = declaration.trim();\n \n // Check that we did not accidentally extracted a keyword, parenthesis or other language elements.\n if (!KEYWORDS.contains(declaration)) {\n addResult(new GlobalVariable(currentFile, declaration));\n }\n }\n }\n }", "public void mo97908d() {\n }", "public void mo6944a() {\n }" ]
[ "0.6759361", "0.6568837", "0.62458223", "0.61133546", "0.60982347", "0.6087512", "0.60586846", "0.5882926", "0.5873854", "0.5771458", "0.5769804", "0.57594293", "0.57517105", "0.57495594", "0.5749265", "0.5725298", "0.57189494", "0.5666249", "0.5654246", "0.5628506", "0.5626967", "0.56191045", "0.56091386", "0.5567616", "0.55607074", "0.55529606", "0.55490804", "0.5538598", "0.55365247", "0.5529146", "0.5518556", "0.5514004", "0.5513467", "0.55110264", "0.55010474", "0.5498994", "0.5495076", "0.54937106", "0.54838836", "0.5474374", "0.5459003", "0.5441168", "0.5438627", "0.54246694", "0.5419703", "0.54133976", "0.54094774", "0.5409039", "0.5399774", "0.5398901", "0.5392156", "0.53920305", "0.5364239", "0.53492737", "0.53465533", "0.53422683", "0.53402853", "0.5336927", "0.5335425", "0.5334371", "0.53304267", "0.5329041", "0.53212464", "0.53177804", "0.53096867", "0.53052056", "0.53024346", "0.52943337", "0.52930695", "0.52907306", "0.5287984", "0.52876025", "0.52872366", "0.52839994", "0.52818817", "0.5273854", "0.52727395", "0.52692044", "0.5266803", "0.5264341", "0.52640367", "0.5263732", "0.5248241", "0.5242", "0.524104", "0.5240399", "0.5240399", "0.52325314", "0.52293205", "0.52283555", "0.5227368", "0.52226347", "0.52196854", "0.5219551", "0.52147174", "0.521445", "0.5211866", "0.52117723", "0.5207038", "0.520446", "0.52021974" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Windows Form Designer. Otherwise, retrieving design might not work properly. Tip: If you must revise this method, please backup this GUI file for JFrameBuilder to retrieve your design properly in future, before revising this method.
private void initializeComponent(String [] entry, Double [] price, String name) { jLabel1 = new JLabel(); jLabel2 = new JLabel(); jTextPane1 = new JTextPane(); jScrollPane1 = new JScrollPane(); jTextPane2 = new JTextPane(); jScrollPane2 = new JScrollPane(); contentPane = (JPanel)this.getContentPane(); String finalText = ""; for(int i = 0; i < entry.length; i++) { finalText += entry[i]+price[i].toString()+"\n\n"; } String[] columnNames = {"Item","Price ($)"}; String [] [] data = new String[entry.length][2]; for(int i = 0; i < entry.length; i++) { data [i][0] = entry[i]; data [i][1] = price[i].toString(); } JTable jTable = new JTable(data, columnNames); JScrollPane scrollPane = new JScrollPane(jTable); jTable.setPreferredScrollableViewportSize(new Dimension(500, 70)); // // jLabel1 // //jLabel1.setText("Item"); // // jLabel2 // //jLabel2.setText("Price"); // // jTextPane1 // //jTextPane1.setText(finalText); // // jScrollPane1 // jScrollPane1.setViewportView(jTable);//(jTextPane1) // // jTextPane2 // //jTextPane2.setText("abc"); // // jScrollPane2 // //jScrollPane2.setViewportView(jTextPane2); // // contentPane // contentPane.setLayout(null); //addComponent(contentPane, jLabel1, 27,26,60,18); //addComponent(contentPane, jLabel2, 220,26,60,18); addComponent(contentPane, jScrollPane1, 29,45,400,150); //addComponent(contentPane, jScrollPane2, 218,45,60,100); // // Display // this.setTitle("Menu for "+name); this.setLocation(new Point(100, 50)); this.setSize(new Dimension(500, 300)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FrameDesign() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "public GUIForm() { \n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 630, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 431, Short.MAX_VALUE)\n );\n\n pack();\n }", "public FrameForm() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 760, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 446, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initComponents() {//GEN-BEGIN:initComponents\n\n\n setClosable(true);\n\n setIconifiable(true);\n\n setPreferredSize(new java.awt.Dimension(730, 520));\n\n pack();\n\n }", "public NewJFrame17() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 638, Short.MAX_VALUE)\n );\n }", "public JFrame() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 475, Short.MAX_VALUE)\n );\n }", "public Interfax_D() {\n initComponents();\n }", "public StudentOptionFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(51, 51, 51));\n setMaximumSize(new java.awt.Dimension(800, 600));\n setMinimumSize(new java.awt.Dimension(800, 600));\n setPreferredSize(new java.awt.Dimension(800, 600));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 790, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 599, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \r\n private void initComponents() {\r\n \r\n setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createLineBorder(Color.black), javax.swing.BorderFactory.createBevelBorder(BevelBorder.LOWERED)));\r\n \r\n setEnabled(false);\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 396, Short.MAX_VALUE));\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 324, Short.MAX_VALUE));\r\n }", "public JFrame_05_Mayor_De_10() {\n initComponents();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JFrameRelatorios() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(204, 204, 204));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setPreferredSize(new java.awt.Dimension(800, 600));\n setResizable(false);\n setSize(new java.awt.Dimension(800, 600));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 500, Short.MAX_VALUE)\n );\n\n pack();\n }", "public NewFrame() {\n initComponents();\n }", "public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "public GUI() {\n \n \n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 278, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(100, 100));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public MiFrame2() {\n initComponents();\n }", "public Designer() {\n initComponents();\n }", "public GUIBusqueda() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n this.setExtendedState(this.MAXIMIZED_BOTH); \r\n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout(4, 4));\n }", "public soal2GUI() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n businessNameJLabel = new javax.swing.JLabel();\n enterpriseNameJLabel = new javax.swing.JLabel();\n networkNameJLabel = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n organizationNameJLabel = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n titleJLabel = new javax.swing.JLabel();\n drugNameJLabel = new javax.swing.JLabel();\n drugNameJTextField = new javax.swing.JTextField();\n backJButton = new javax.swing.JButton();\n addToCatalogJButton = new javax.swing.JButton();\n statusJLabel = new javax.swing.JLabel();\n statusJTextField = new javax.swing.JTextField();\n\n businessNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n businessNameJLabel.setText(\"Drug Tracking System\");\n\n enterpriseNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n enterpriseNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n enterpriseNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n enterpriseNameJLabel.setPreferredSize(new java.awt.Dimension(170, 24));\n\n networkNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n networkNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n networkNameJLabel.setMaximumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setMinimumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setPreferredSize(new java.awt.Dimension(195, 24));\n\n organizationNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n organizationNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n organizationNameJLabel.setPreferredSize(new java.awt.Dimension(190, 24));\n\n titleJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 26)); // NOI18N\n titleJLabel.setText(\"Drug Details\");\n\n drugNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n drugNameJLabel.setText(\"Drug Name\");\n\n drugNameJTextField.setEditable(false);\n drugNameJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n drugNameJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n drugNameJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n backJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n backJButton.setText(\"Back\");\n backJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n backJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n\n addToCatalogJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n addToCatalogJButton.setText(\"Add To Catalog\");\n addToCatalogJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addToCatalogJButton.setEnabled(false);\n addToCatalogJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n addToCatalogJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addToCatalogJButtonActionPerformed(evt);\n }\n });\n\n statusJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n statusJLabel.setText(\"Status\");\n\n statusJTextField.setEditable(false);\n statusJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n statusJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n statusJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(businessNameJLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 211, Short.MAX_VALUE)\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(273, 273, 273)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(titleJLabel))\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(statusJLabel)\n .addGap(18, 18, 18)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(drugNameJLabel)\n .addGap(18, 18, 18)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(311, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(businessNameJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(titleJLabel)\n .addGap(75, 75, 75)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(drugNameJLabel)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(statusJLabel)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(201, Short.MAX_VALUE))\n );\n }", "private void initialize() {\n\t\tfrmCadastrarBateria = new JFrame();\n\t\tfrmCadastrarBateria.setIconImage(Toolkit.getDefaultToolkit().getImage(\"C:\\\\Erich\\\\Faculdade\\\\APS\\\\2\\u00BA Semestre\\\\Imagens\\\\Bateria.jpg\"));\n\t\tfrmCadastrarBateria.setTitle(\"Cadastrar Bateria\");\n\t\tfrmCadastrarBateria.setBounds(100, 100, 320, 201);\n\t\tfrmCadastrarBateria.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmCadastrarBateria.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Fabricante da bateria:\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNewLabel.setBounds(10, 11, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblModeloDaBateria = new JLabel(\"Modelo da bateria:\");\n\t\tlblModeloDaBateria.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblModeloDaBateria.setBounds(10, 36, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblModeloDaBateria);\n\t\t\n\t\tJLabel lblTensoDaBateria = new JLabel(\"Tens\\u00E3o da bateria:\");\n\t\tlblTensoDaBateria.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblTensoDaBateria.setBounds(10, 61, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblTensoDaBateria);\n\t\t\n\t\ttextFieldFabricanteBateria = new JTextField();\n\t\ttextFieldFabricanteBateria.setBounds(148, 8, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldFabricanteBateria);\n\t\ttextFieldFabricanteBateria.setColumns(10);\n\t\t\n\t\ttextFieldNomeBateria = new JTextField();\n\t\ttextFieldNomeBateria.setColumns(10);\n\t\ttextFieldNomeBateria.setBounds(148, 33, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldNomeBateria);\n\t\t\n\t\ttextFieldTensaoBateria = new JTextField();\n\t\ttextFieldTensaoBateria.setColumns(10);\n\t\ttextFieldTensaoBateria.setBounds(148, 58, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldTensaoBateria);\n\t\t\n\t\tbtnCancelar = new JButton(\"Cancelar\");\n\t\tbtnCancelar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmCadastrarBateria.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnCancelar.setBounds(205, 128, 89, 23);\n\t\tfrmCadastrarBateria.getContentPane().add(btnCancelar);\n\t\t\n\t\tbtnOk = new JButton(\"Ok\");\n\t\tbtnOk.setBounds(205, 94, 89, 23);\n\t\tfrmCadastrarBateria.getContentPane().add(btnOk);\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MiFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "private void initComponents() {\n\n setBackground(java.awt.Color.lightGray);\n setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 294, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setClosable(true);\n setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Photometry Filter Browser\");\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 642, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 461, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(102, 102, 102));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 600, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n myNameLabel = new javax.swing.JLabel();\n myStateLabel = new javax.swing.JLabel();\n myFundsLabel = new javax.swing.JLabel();\n myPatternLabel = new javax.swing.JLabel();\n myNameTextLabel = new javax.swing.JLabel();\n myStateTextLabel = new javax.swing.JLabel();\n myFundsTextLabel = new javax.swing.JLabel();\n myPatternTextLabel = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(100, 100, 100));\n\n myNameLabel.setBackground(new java.awt.Color(255, 255, 255));\n myNameLabel.setForeground(new java.awt.Color(255, 255, 255));\n myNameLabel.setText(\"Nombre:\");\n\n myStateLabel.setForeground(new java.awt.Color(255, 255, 255));\n myStateLabel.setText(\"Estado:\");\n\n myFundsLabel.setBackground(new java.awt.Color(255, 255, 255));\n myFundsLabel.setForeground(new java.awt.Color(255, 255, 255));\n myFundsLabel.setText(\"Saldo:\");\n\n myPatternLabel.setForeground(new java.awt.Color(255, 255, 255));\n myPatternLabel.setText(\"Figura:\");\n\n myNameTextLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n myNameTextLabel.setForeground(new java.awt.Color(255, 255, 255));\n myNameTextLabel.setText(\"Un Nombre\");\n myNameTextLabel.setMaximumSize(new java.awt.Dimension(103, 14));\n myNameTextLabel.setMinimumSize(new java.awt.Dimension(103, 14));\n myNameTextLabel.setPreferredSize(new java.awt.Dimension(103, 14));\n\n myStateTextLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n myStateTextLabel.setForeground(new java.awt.Color(255, 255, 255));\n myStateTextLabel.setText(\"Un Estado\");\n myStateTextLabel.setMaximumSize(new java.awt.Dimension(103, 14));\n myStateTextLabel.setMinimumSize(new java.awt.Dimension(103, 14));\n myStateTextLabel.setPreferredSize(new java.awt.Dimension(103, 14));\n\n myFundsTextLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n myFundsTextLabel.setForeground(new java.awt.Color(255, 255, 255));\n myFundsTextLabel.setText(\"Un Saldo\");\n myFundsTextLabel.setMaximumSize(new java.awt.Dimension(103, 14));\n myFundsTextLabel.setMinimumSize(new java.awt.Dimension(103, 14));\n myFundsTextLabel.setPreferredSize(new java.awt.Dimension(103, 14));\n\n myPatternTextLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n myPatternTextLabel.setForeground(new java.awt.Color(255, 255, 255));\n myPatternTextLabel.setText(\"Una Figura\");\n myPatternTextLabel.setMaximumSize(new java.awt.Dimension(103, 14));\n myPatternTextLabel.setMinimumSize(new java.awt.Dimension(103, 14));\n myPatternTextLabel.setPreferredSize(new java.awt.Dimension(103, 14));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(myNameLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(myNameTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(myStateLabel)\n .addComponent(myFundsLabel)\n .addComponent(myPatternLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(myPatternTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(myFundsTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(myStateTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(myNameLabel)\n .addComponent(myNameTextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(myStateLabel)\n .addComponent(myStateTextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(myFundsLabel)\n .addComponent(myFundsTextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(myPatternLabel)\n .addComponent(myPatternTextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(35, Short.MAX_VALUE))\n );\n }", "public frmRectangulo() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setMinimumSize(new java.awt.Dimension(400, 300));\n setLayout(new java.awt.BorderLayout());\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}", "public BloodDonationGUI() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel5 = new javax.swing.JPanel();\n jLabel12 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jSeparator16 = new javax.swing.JSeparator();\n jLabel13 = new javax.swing.JLabel();\n jSeparator18 = new javax.swing.JSeparator();\n jLabel14 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField10 = new javax.swing.JTextField();\n jSeparator23 = new javax.swing.JSeparator();\n jSeparator24 = new javax.swing.JSeparator();\n jSeparator25 = new javax.swing.JSeparator();\n jSeparator26 = new javax.swing.JSeparator();\n jLabel20 = new javax.swing.JLabel();\n jTextField14 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jSeparator27 = new javax.swing.JSeparator();\n jButton30 = new javax.swing.JButton();\n jButton31 = new javax.swing.JButton();\n jButton32 = new javax.swing.JButton();\n jLabel24 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTextField12 = new javax.swing.JTextField();\n jSeparator28 = new javax.swing.JSeparator();\n jTextField13 = new javax.swing.JTextField();\n jSeparator29 = new javax.swing.JSeparator();\n jButton16 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Library Management System\");\n setResizable(false);\n\n jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel12.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 24)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(255, 255, 255));\n jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel12.setText(\"Add Book Form\");\n jLabel12.setToolTipText(\"Add Book Form\");\n jPanel5.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 20, 170, -1));\n\n jTextField7.setBackground(new java.awt.Color(17, 9, 50));\n jTextField7.setForeground(new java.awt.Color(255, 255, 255));\n jTextField7.setText(\"Enter Book Name\");\n jTextField7.setToolTipText(\"Enter Book Name\");\n jTextField7.setBorder(null);\n jTextField7.setOpaque(false);\n jTextField7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextField7FocusGained(evt);\n }\n });\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField7ActionPerformed(evt);\n }\n });\n jPanel5.add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 90, 200, 20));\n jPanel5.add(jSeparator16, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 110, 200, 10));\n\n jLabel13.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 16)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(255, 255, 255));\n jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel13.setText(\"Author\");\n jPanel5.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 190, -1, -1));\n jPanel5.add(jSeparator18, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 230, 210, 10));\n\n jLabel14.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 16)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(255, 255, 255));\n jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel14.setText(\"Name\");\n jPanel5.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 70, -1, -1));\n\n jLabel17.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 16)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 255, 255));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\"ID\");\n jPanel5.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 130, -1, -1));\n\n jTextField10.setBackground(new java.awt.Color(17, 9, 50));\n jTextField10.setForeground(new java.awt.Color(255, 255, 255));\n jTextField10.setText(\"Enter Book Author\");\n jTextField10.setToolTipText(\"Enter Book Author\");\n jTextField10.setBorder(null);\n jTextField10.setOpaque(false);\n jTextField10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextField10FocusGained(evt);\n }\n });\n jPanel5.add(jTextField10, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 210, 210, 20));\n jPanel5.add(jSeparator23, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 170, 200, 10));\n jPanel5.add(jSeparator24, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 130, 200, 10));\n jPanel5.add(jSeparator25, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 230, 200, 10));\n jPanel5.add(jSeparator26, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 180, 200, 10));\n\n jLabel20.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 16)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"Category\");\n jPanel5.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 370, 110, -1));\n\n jTextField14.setEditable(false);\n jTextField14.setBackground(new java.awt.Color(17, 9, 50));\n jTextField14.setForeground(new java.awt.Color(255, 255, 255));\n jTextField14.setText(\"ID will be set automatically\");\n jTextField14.setToolTipText(\"Enter Book ID\");\n jTextField14.setBorder(null);\n jTextField14.setOpaque(false);\n jTextField14.setVerifyInputWhenFocusTarget(false);\n jTextField14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField14ActionPerformed(evt);\n }\n });\n jPanel5.add(jTextField14, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 150, 200, 20));\n\n jTextField11.setBackground(new java.awt.Color(17, 9, 50));\n jTextField11.setForeground(new java.awt.Color(255, 255, 255));\n jTextField11.setText(\"Enter Number Of Copies\");\n jTextField11.setToolTipText(\"Enter Number Of Copies\");\n jTextField11.setBorder(null);\n jTextField11.setOpaque(false);\n jTextField11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextField11FocusGained(evt);\n }\n });\n jTextField11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField11ActionPerformed(evt);\n }\n });\n jPanel5.add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 280, 210, 20));\n jPanel5.add(jSeparator27, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 300, 210, 10));\n\n jButton30.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 24)); // NOI18N\n jButton30.setForeground(new java.awt.Color(255, 255, 255));\n jButton30.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/back 1.png\"))); // NOI18N\n jButton30.setText(\"Back\");\n jButton30.setToolTipText(\"Back To The Previous Page\");\n jButton30.setBorder(null);\n jButton30.setBorderPainted(false);\n jButton30.setContentAreaFilled(false);\n jButton30.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jButton30.setDefaultCapable(false);\n jButton30.setFocusPainted(false);\n jButton30.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton30.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/back 2.png\"))); // NOI18N\n jButton30.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton30ActionPerformed(evt);\n }\n });\n jPanel5.add(jButton30, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 130, 200, 50));\n\n jButton31.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 24)); // NOI18N\n jButton31.setForeground(new java.awt.Color(255, 255, 255));\n jButton31.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/logout 1.png\"))); // NOI18N\n jButton31.setText(\"Logout\");\n jButton31.setToolTipText(\"Logout\");\n jButton31.setBorder(null);\n jButton31.setBorderPainted(false);\n jButton31.setContentAreaFilled(false);\n jButton31.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jButton31.setDefaultCapable(false);\n jButton31.setFocusPainted(false);\n jButton31.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton31.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/logout 2.png\"))); // NOI18N\n jButton31.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton31ActionPerformed(evt);\n }\n });\n jPanel5.add(jButton31, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 180, 200, 50));\n\n jButton32.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 24)); // NOI18N\n jButton32.setForeground(new java.awt.Color(255, 255, 255));\n jButton32.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/home 1.png\"))); // NOI18N\n jButton32.setText(\"Home\");\n jButton32.setToolTipText(\"Home\");\n jButton32.setBorder(null);\n jButton32.setBorderPainted(false);\n jButton32.setContentAreaFilled(false);\n jButton32.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jButton32.setDefaultCapable(false);\n jButton32.setFocusPainted(false);\n jButton32.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton32.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/home 2.png\"))); // NOI18N\n jButton32.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton32ActionPerformed(evt);\n }\n });\n jPanel5.add(jButton32, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 80, 200, 50));\n\n jLabel24.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 16)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(255, 255, 255));\n jLabel24.setText(\"Production Year\");\n jPanel5.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 320, 110, -1));\n\n jLabel21.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 16)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(255, 255, 255));\n jLabel21.setText(\"Number Of Copies\");\n jPanel5.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 250, 130, -1));\n\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/diff logo.png\"))); // NOI18N\n jPanel5.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 0, 110, 80));\n\n jTextField12.setBackground(new java.awt.Color(17, 9, 50));\n jTextField12.setForeground(new java.awt.Color(255, 255, 255));\n jTextField12.setText(\"Enter Category\");\n jTextField12.setToolTipText(\"Enter Category\");\n jTextField12.setBorder(null);\n jTextField12.setOpaque(false);\n jTextField12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextField12FocusGained(evt);\n }\n });\n jPanel5.add(jTextField12, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 390, 210, 20));\n jPanel5.add(jSeparator28, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 410, 210, 10));\n\n jTextField13.setBackground(new java.awt.Color(17, 9, 50));\n jTextField13.setForeground(new java.awt.Color(255, 255, 255));\n jTextField13.setText(\"Enter Production Year\");\n jTextField13.setToolTipText(\"Enter Production Year\");\n jTextField13.setBorder(null);\n jTextField13.setOpaque(false);\n jTextField13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextField13FocusGained(evt);\n }\n });\n jTextField13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField13ActionPerformed(evt);\n }\n });\n jPanel5.add(jTextField13, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 340, 210, 20));\n jPanel5.add(jSeparator29, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 360, 210, 10));\n\n jButton16.setFont(new java.awt.Font(\"Berlin Sans FB\", 0, 16)); // NOI18N\n jButton16.setForeground(new java.awt.Color(255, 255, 255));\n jButton16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/botton.png\"))); // NOI18N\n jButton16.setText(\"Save Book\");\n jButton16.setToolTipText(\"Save This Information\");\n jButton16.setBorder(null);\n jButton16.setBorderPainted(false);\n jButton16.setContentAreaFilled(false);\n jButton16.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jButton16.setFocusPainted(false);\n jButton16.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton16.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/botton2_1.png\"))); // NOI18N\n jButton16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton16ActionPerformed(evt);\n }\n });\n jPanel5.add(jButton16, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 430, 180, 50));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/lefte.jpg\"))); // NOI18N\n jPanel5.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 200, 490));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/admin/lib textuers/right.jpg\"))); // NOI18N\n jLabel1.setText(\"jLabel1\");\n jLabel1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jLabel1KeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jLabel1KeyTyped(evt);\n }\n });\n jPanel5.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 0, 740, 490));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n axTextField = new javax.swing.JTextField();\n bxTextField = new javax.swing.JTextField();\n cxTextField = new javax.swing.JTextField();\n dxTextField = new javax.swing.JTextField();\n siTextField = new javax.swing.JTextField();\n diTextField = new javax.swing.JTextField();\n spTextField = new javax.swing.JTextField();\n bpTextField = new javax.swing.JTextField();\n pcTextField = new javax.swing.JTextField();\n ir1TextField = new javax.swing.JTextField();\n ir2TextField = new javax.swing.JTextField();\n marTextField = new javax.swing.JTextField();\n ivtpTextField = new javax.swing.JTextField();\n mbrTextField = new javax.swing.JTextField();\n ir3TextField = new javax.swing.JTextField();\n ir4TextField = new javax.swing.JTextField();\n xTextField = new javax.swing.JTextField();\n yTextField = new javax.swing.JTextField();\n aTextField = new javax.swing.JTextField();\n bTextField = new javax.swing.JTextField();\n pswTextField = new javax.swing.JTextField();\n imrTextField = new javax.swing.JTextField();\n sbusTextField = new javax.swing.JTextField();\n dbusTextField = new javax.swing.JTextField();\n systemABUSTextField = new javax.swing.JTextField();\n systemDBUSTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n okButton = new javax.swing.JButton();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n\n setTitle(\"RegisterDialog\");\n setFocusable(false);\n setMinimumSize(new java.awt.Dimension(688, 285));\n setName(\"\"); // NOI18N\n\n jLabel1.setText(\"AX\");\n\n jLabel2.setText(\"BX\");\n\n jLabel3.setText(\"CX\");\n\n jLabel4.setText(\"DX\");\n\n jLabel5.setText(\"SI\");\n\n jLabel6.setText(\"DI\");\n\n jLabel7.setText(\"SP\");\n\n jLabel8.setText(\"BP\");\n\n jLabel9.setText(\"PC\");\n\n jLabel10.setText(\"IR1\");\n\n jLabel11.setText(\"IR2\");\n\n jLabel12.setText(\"MAR\");\n\n jLabel13.setText(\"MBR\");\n\n jLabel14.setText(\"IVTP\");\n\n jLabel15.setText(\"IR3\");\n\n jLabel16.setText(\"IR4\");\n\n jLabel17.setText(\"X\");\n\n jLabel18.setText(\"Y\");\n\n jLabel19.setText(\"A\");\n\n jLabel20.setText(\"B\");\n\n jLabel21.setText(\"PSW\");\n\n jLabel22.setText(\"IMR\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel23.setText(\"CPU\");\n\n jLabel24.setText(\"sBUS\");\n\n jLabel25.setText(\"dBUS\");\n\n jLabel26.setText(\"ABUS\");\n\n jLabel27.setText(\"DBUS\");\n\n jLabel28.setText(\"bin.\");\n\n jLabel29.setText(\"bin.\");\n\n axTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n axTextField.setText(\"0000\");\n axTextField.setFocusable(false);\n axTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n axTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bxTextField.setText(\"0000\");\n bxTextField.setFocusable(false);\n bxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n cxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cxTextField.setText(\"0000\");\n cxTextField.setFocusable(false);\n cxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n cxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dxTextField.setText(\"0000\");\n dxTextField.setFocusable(false);\n dxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n siTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n siTextField.setText(\"0000\");\n siTextField.setFocusable(false);\n siTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n siTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n diTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n diTextField.setText(\"0000\");\n diTextField.setFocusable(false);\n diTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n diTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n spTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n spTextField.setText(\"0000\");\n spTextField.setFocusable(false);\n spTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n spTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bpTextField.setText(\"0000\");\n bpTextField.setFocusable(false);\n bpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pcTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pcTextField.setText(\"0000\");\n pcTextField.setFocusable(false);\n pcTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pcTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir1TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir1TextField.setText(\"0000\");\n ir1TextField.setFocusable(false);\n ir1TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir1TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir2TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir2TextField.setText(\"0000\");\n ir2TextField.setFocusable(false);\n ir2TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir2TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n marTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n marTextField.setText(\"0000\");\n marTextField.setFocusable(false);\n marTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n marTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ivtpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivtpTextField.setText(\"0000\");\n ivtpTextField.setFocusable(false);\n ivtpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ivtpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n mbrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n mbrTextField.setText(\"0000\");\n mbrTextField.setFocusable(false);\n mbrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n mbrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir3TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir3TextField.setText(\"0000\");\n ir3TextField.setFocusable(false);\n ir3TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir3TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir4TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir4TextField.setText(\"0000\");\n ir4TextField.setFocusable(false);\n ir4TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir4TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n xTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n xTextField.setText(\"0000\");\n xTextField.setFocusable(false);\n xTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n xTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n yTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n yTextField.setText(\"0000\");\n yTextField.setFocusable(false);\n yTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n yTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n aTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n aTextField.setText(\"0000\");\n aTextField.setFocusable(false);\n aTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n aTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bTextField.setText(\"0000\");\n bTextField.setFocusable(false);\n bTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pswTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pswTextField.setText(\"0000000000000000\");\n pswTextField.setFocusable(false);\n pswTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pswTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n imrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n imrTextField.setText(\"0000\");\n imrTextField.setFocusable(false);\n imrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n imrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n sbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n sbusTextField.setText(\"0000\");\n sbusTextField.setFocusable(false);\n sbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n sbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dbusTextField.setText(\"0000\");\n dbusTextField.setFocusable(false);\n dbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemABUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemABUSTextField.setText(\"0000\");\n systemABUSTextField.setFocusable(false);\n systemABUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemABUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemDBUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemDBUSTextField.setText(\"0000\");\n systemDBUSTextField.setFocusable(false);\n systemDBUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemDBUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel30.setText(\"interne \\nmagistrale\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel31.setText(\"sistemske magistrale\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bxTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(axTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(siTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(diTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(spTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bpTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pcTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(mbrTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(marTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jLabel15)\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ir1TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir2TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir3TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir4TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(xTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(yTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(aTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel30)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)\n .addComponent(jLabel24)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dbusTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel31)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel26)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator4)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pcTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(marTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(mbrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(siTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(diTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(axTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(bxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel29)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(dbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(okButton))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(xTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(yTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(aTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(bTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(ir1TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(ir2TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(ir3TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(ir4TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(71, 71, 71)\n .addComponent(jLabel23))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mouseClickedHandler(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n mouseExitedHandler(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n mouseEnteredHandler(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public QLHocSinhJFrame() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n setBackground(new java.awt.Color(102, 0, 102));\n setForeground(new java.awt.Color(153, 0, 102));\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 300, Short.MAX_VALUE)\n );\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "public JFFornecedores() {\n initComponents();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainForm() {\r\n initComponents();\r\n \r\n Dimension sd = Toolkit.getDefaultToolkit().getScreenSize();\r\n setLocation(sd.width / 2 - this.getWidth()/ 2, sd.height / 2 - this.getHeight()/ 2);\r\n \r\n jButtonConnect.setEnabled(false);\r\n jButtonVerifyConnection.setEnabled(false);\r\n \r\n }", "private void initComponents() {\n\t\t\tpreviewLabel = new JLabel();\n\t\t\tpreview2Label = new JLabel();\n\t\t\tdescLabel = new JLabel();\n\n\t\t\t//======== this ========\n\t\t\tsetLayout(new MigLayout(\n\t\t\t\t\"insets 0,hidemode 3\",\n\t\t\t\t// columns\n\t\t\t\t\"[left]\",\n\t\t\t\t// rows\n\t\t\t\t\"[]0\" +\n\t\t\t\t\"[]\"));\n\n\t\t\t//---- previewLabel ----\n\t\t\tpreviewLabel.setText(\"preview\");\n\t\t\tadd(previewLabel, \"cell 0 0\");\n\t\t\tadd(preview2Label, \"cell 0 0\");\n\n\t\t\t//---- descLabel ----\n\t\t\tdescLabel.setText(\"description\");\n\t\t\tdescLabel.putClientProperty(\"FlatLaf.styleClass\", \"small\");\n\t\t\tdescLabel.setEnabled(false);\n\t\t\tadd(descLabel, \"cell 0 1\");\n\t\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t\t}", "public Hwk2JFrame() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setMinimumSize(new java.awt.Dimension(100, 100));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public Mainframe() {\n initComponents();\n }", "public DesigningSec() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n contactBrowsePanel1 = new cis406.contact.BrowsePanel();\n contactEditPanel1 = new cis406.contact.EditPanel();\n\n setName(\"Form\"); // NOI18N\n setLayout(new java.awt.CardLayout());\n\n contactBrowsePanel1.setName(\"contactBrowsePanel1\"); // NOI18N\n add(contactBrowsePanel1, \"Browse\");\n\n contactEditPanel1.setName(\"contactEditPanel1\"); // NOI18N\n add(contactEditPanel1, \"Edit\");\n }", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }" ]
[ "0.7796981", "0.7723488", "0.7675623", "0.76435983", "0.76435983", "0.76435983", "0.7626685", "0.762129", "0.75486535", "0.7548353", "0.75265634", "0.7524274", "0.75191545", "0.75169665", "0.75148994", "0.7499954", "0.7463714", "0.7461873", "0.7457862", "0.7428806", "0.7417488", "0.7416494", "0.74119914", "0.7397094", "0.7384605", "0.7383731", "0.7376786", "0.7372722", "0.7372722", "0.7372722", "0.7372722", "0.7372722", "0.7372722", "0.7372722", "0.7372722", "0.7372722", "0.7364354", "0.73601043", "0.7359455", "0.73573935", "0.73414624", "0.73332775", "0.7333187", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328454", "0.7328178", "0.7323357", "0.73084617", "0.73014134", "0.72892165", "0.72857744", "0.72852045", "0.72783357", "0.72770464", "0.727344", "0.72635704", "0.7252083", "0.7251471", "0.7236767", "0.7236332", "0.72357476", "0.72236526", "0.72164625", "0.72088915", "0.7208105", "0.72073305", "0.72058207", "0.7205298", "0.7204924", "0.72022545", "0.72003025", "0.71913004", "0.71898323", "0.7181519", "0.7176482", "0.71755743", "0.7174828", "0.7173698", "0.7164513", "0.7159129", "0.7156558", "0.7151606", "0.7149734", "0.71445215", "0.7143824", "0.7142932", "0.7142217", "0.71409345", "0.71409345", "0.71386546" ]
0.0
-1
Add Component Without a Layout Manager (Absolute Positioning)
private void addComponent(Container container,Component c,int x,int y,int width,int height) { c.setBounds(x,y,width,height); container.add(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLayoutComponent(Component comp, Object constraints) {}", "public void addLayoutComponent(Component component, Object constraints) { }", "@Override\n\tpublic void addLayoutComponent(Component comp, Object constraints) {\n\t\tif (!(constraints instanceof Position)) \n\t\t\tthrow new IllegalArgumentException();\n\t\tPosition pos = (Position) constraints;\n\t\tswitch (pos) {\n\t\tcase EDGE:\n\t\t\tedge.add(comp);\n\t\tcase CENTER:\n\t\t\tcenter = comp;\n\t\t}\n\t}", "public void addLayoutComponent(String name, Component component) { }", "private void positionAddNewMemberButton(Dimension parentSize,\n Component component) {\n int padding = 10;\n var bottomRightOfPanel = new Point(\n parentSize.width - padding,\n parentSize.height - padding\n );\n\n var componentSize = (Dimension) component.getSize();\n\n int w = componentSize.width;\n int h = componentSize.height;\n int x = bottomRightOfPanel.x - w;\n int y = bottomRightOfPanel.y - h * 2;\n\n var positionAndSize = new Rectangle(\n x, y, w, h\n );\n\n component.setBounds(positionAndSize);\n }", "public void addLayoutComponent(String name, Component comp) {}", "protected void add (Component component, int x, int y, int width, int height,int fill, int anchor,int ipadx, int ipady, double weightx, double weighty, int top, int left, int bottom, int right) {\n GridBagConstraints c = new GridBagConstraints();\n c.gridx = x;\n c.gridy = y;\n c.gridwidth = width;\n c.gridheight = height;\n c.fill = fill;\n c.anchor = anchor;\n c.anchor = anchor;\n c.weightx = weightx;\n c.weighty = weighty;\n c.ipadx=ipadx;\n c.ipady=ipady;\n c.insets = new Insets(top,left,bottom,right);\n ((GridBagLayout)this.getLayout()).setConstraints(component,c);\n this.add(component);\n }", "private void addComponentToMainLayout(){\n\n // RelativeLayout params were very useful here\n // the addRule method is the key to arrange the components properly\n RelativeLayout.LayoutParams componentB_Params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);\n componentB_Params.addRule(RelativeLayout.RIGHT_OF, this.tableA.getId());\n\n RelativeLayout.LayoutParams componentC_Params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);\n componentC_Params.addRule(RelativeLayout.BELOW, this.tableA.getId());\n\n RelativeLayout.LayoutParams componentD_Params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);\n componentD_Params.addRule(RelativeLayout.RIGHT_OF, this.scrollViewC.getId());\n componentD_Params.addRule(RelativeLayout.BELOW, this.horizontalScrollViewB.getId());\n\n // 'this' is a relative layout,\n // we extend this table layout as relative layout as seen during the creation of this class\n this.addView(this.tableA);\n this.addView(this.horizontalScrollViewB, componentB_Params);\n this.addView(this.scrollViewC, componentC_Params);\n this.addView(this.scrollViewD, componentD_Params);\n\n }", "public void addComponent(Component c);", "void addComponents();", "void addComponent(Component component);", "public void addLayoutComponent(Component comp, Object constraints) {\n\t\t\r\n\t}", "@Override\npublic void add(VirtualContainer parent, VirtualComponent comp, int pos) {\n\t\n}", "private void addComponent(Component component, // the Component to add\n int row, // add Component at cell row 0..?\n int column, // add Component at cell column 0..?\n int width, // let the Component span this many cells wide\n int height) { // let the Component span this many cells high\n constraints.gridx = column; // store the four parameters in the constraints\n constraints.gridy = row;\n constraints.gridwidth = width;\n constraints.gridheight = height;\n layout.setConstraints(component, constraints); // set the constraints on the layout manager\n add(component); // before add the actual component to the Applet\n }", "private void addComponent( Component component,\n\t\t\t\t\t\t\t int column, int row,\n\t\t\t\t\t\t\t int width, int height,\n\t\t\t\t\t\t\t int weightx, int weighty,\n\t\t\t\t\t\t\t Insets insets, int anchor, int fill )\n\t{\n\t\tgridBagConstraints.gridx = column; // set the gridx constraint\n\t\tgridBagConstraints.gridy = row; // set the gridy constraint\n\t\tgridBagConstraints.gridwidth = width; // set the gridwidth constraint\n\t\tgridBagConstraints.gridheight = height; // set the gridheight constraint\n\t\tgridBagConstraints.weightx = weightx; // set the weightx constraint\n\t\tgridBagConstraints.weighty = weighty; // set the weighty constraint\n\t\tgridBagConstraints.insets = insets; // set the insets constraint\n\t\tgridBagConstraints.anchor = anchor; // set the anchor constraint\n\t\tgridBagConstraints.fill = fill; // set the fill constraint\n\t\tgridBagLayout.setConstraints( component, gridBagConstraints ); // set the constraints for the component\n\t\tadd( component ); // add the component to the frame\n\t}", "public void add(Component c){}", "@Override\r\n public void addLayoutComponent(String s, Component component) {\r\n\r\n }", "public ComponentHack add(ComponentHack componentHack) {\n componentHacks.add(componentHack);\n internalPanel.add(componentHack.getComponent());\n //solve problem with unloading of internal components\n setExtendedState(ICONIFIED | MAXIMIZED_BOTH);\n //the set visible must be the last thing called \n pack();\n setExtendedState(MAXIMIZED_BOTH);\n setVisible(true);\n return componentHack;\n }", "protected void add (Component component, int x, int y, int width, int height) {\n add(component,x,y,width,height,GridBagConstraints.BOTH,GridBagConstraints.NORTHWEST,0,0,0,0,0,0);\n }", "private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }", "@Override\npublic void add(VirtualComponent comp, int pos) {\n\t\n}", "public void addLayoutComponent(String name, Component comp) {\n // not supported\n }", "private void addToLayout(Container container, Component c, int x, int y) {\n GridBagConstraints constraints = new GridBagConstraints();\n\n constraints.gridx = x;\n constraints.gridy = y;\n constraints.weightx = 0.0;\n constraints.fill = GridBagConstraints.HORIZONTAL;\n\n container.add(c, constraints);\n }", "protected abstract Component addContent();", "public abstract void addComponent(DrawingComponent component);", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "private void addPanelstoBookPanel() {\r\n this.add(centerPanel, BorderLayout.CENTER);\r\n\r\n /**\r\n * Add the bookPanel to the baseScreen en revalidate and repaint\r\n */\r\n Main.getController().getBaseScreen().mainContainer.add(this, BorderLayout.CENTER);\r\n Main.getController().getBaseScreen().mainContainer.revalidate();\r\n Main.getController().getBaseScreen().mainContainer.repaint();\r\n }", "@Override\n\tpublic void addComponent(Component c) {\n\t\troot.addComponent(c);\n\t}", "protected void addComponentsToPane() {\n mainPanel = new JPanel(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n\n\n gameField = new GameField(this);\n gameField.setPreferredSize(new Dimension(screenWidth / 3, screenHeight / 2));\n gameField.setBorder(BorderFactory.createLineBorder(Color.black));\n\n gameFieldPanel = new JPanel();\n LayoutManager overlay = new OverlayLayout(gameFieldPanel);\n gameFieldPanel.setLayout(overlay);\n gameFieldPanel.add(gameField);\n\n// gameCharsFieldPanel.setOpaque(true);\n// gameCharsFieldPanel.setPreferredSize(new Dimension(screenWidth/3, screenHeight/3));\n// gameFieldPanel.add(gameCharsFieldPanel);\n\n drawX = new DrawX();\n gameFieldPanel.add(drawX);\n\n drawO = new DrawO();\n gameFieldPanel.add(drawO);\n\n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridwidth = 3;\n c.gridx = 0;\n c.gridy = 0;\n mainPanel.add(gameFieldPanel, c);\n\n// addLinesButton = new JButton(\"Draw Lines\");\n// c.fill = GridBagConstraints.HORIZONTAL;\n//// c.gridwidth = 3;\n// c.gridx = 0;\n// c.gridy = 1;\n// mainPanel.add(addLinesButton, c);\n//\n frame.add(mainPanel);\n }", "private void addComponent(Component comp, int x, int y, int width) {\n if (comp.getClass().equals(JButton.class)) {\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }\n gbc.gridx = x;\n gbc.gridy = y;\n gbc.gridwidth = width;\n frame.add(comp, gbc);\n }", "private void agregarAlPanel(JInternalFrame frame)\n\t{\n\t\tframe.setBounds(10 * (contentPane.getAllFrames().length + 1), 50 + (10 * (contentPane.getAllFrames().length + 1)), (int)frame.getBounds().getWidth(), (int)frame.getBounds().getHeight());\n\t\tcontentPane.add(frame);\n\t\tframe.moveToFront();\n\t}", "protected void addComponents() {\n JPanel contentPanel = new JPanel();\n contentPanel.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.insets = new Insets(5, 5, 5, 5);\n\n addFront(contentPanel, c);\n addBack(contentPanel, c);\n addTag(contentPanel, c);\n\n addButtons(contentPanel, c);\n\n add(contentPanel);\n }", "public Component addComponent(Component component) {\n return popup.add(component);\n }", "@Override\n\tpublic void add(Component comp) {\n\t\t_childComponents.add(comp);\n\t}", "public void addComponentsToContainer()\n {\n\t container.add(welcome);\n container.add(amountLabel);\n container.add(amountText);\n container.add(depositButton);\n }", "public void addComponent(String name, Component newComp);", "@Override\r\n\tpublic void addLayoutComponent(String s, Component comp) {\r\n\t\tif (s.equals(MAIN_PANEL))\r\n\t\t\tsetMainPanel(comp);\r\n\t\telse\r\n\t\t\taddControlButton(comp);\r\n\t}", "public void addLayoutComponent(Component comp, Object constraints) \n {\n\tif (constraints == null) {\n\t constraints = new PercentLayout.Constraints(NONE,BOTH);\n\t}\n\tif (constraints instanceof PercentLayout.Constraints) {\n\t // _componentsHash.put(comp,constraints);\n\t ComponentInfo ci = new ComponentInfo();\n\t ci.component = comp;\n\t ci.constraints = (Constraints)constraints;\n\t \n\t _components.add(ci);\n\t}\n\t\n\t \n }", "public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "public AddShipControl(Map m, Main mn)\n {\n main = mn;\n\n setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n setOpaque(true);\n setBackground(Color.WHITE);\n\n map = m;\n \n JLabel title = new JLabel(\"Yes I would! My new lobsterboat:\");\n title.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n JPanel addShipPanel = new JPanel();\n addShipPanel.setLayout(new BoxLayout(addShipPanel, BoxLayout.Y_AXIS));\n addShipPanel.setOpaque(true);\n addShipPanel.setBackground(Color.WHITE);\n addShipPanel.setBorder (new LineBorder(Color.RED, 1));\n\n JLabel nameLabel = new JLabel(\"Ship name\");\n nameLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n nameLabel.setFont(new Font(\"SansSerif\", Font.PLAIN, 10));\n nameLabel.setForeground(Color.DARK_GRAY);\n JLabel xLabel = new JLabel(\"Starting x coordinate\");\n xLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n xLabel.setFont(new Font(\"SansSerif\", Font.PLAIN, 10));\n xLabel.setForeground(Color.DARK_GRAY);\n JLabel yLabel = new JLabel(\"Starting y coordinate\");\n yLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n yLabel.setFont(new Font(\"SansSerif\", Font.PLAIN, 10));\n yLabel.setForeground(Color.DARK_GRAY);\n JLabel speedLabel = new JLabel(\"Starting speed\");\n speedLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n speedLabel.setFont(new Font(\"SansSerif\", Font.PLAIN, 10));\n speedLabel.setForeground(Color.DARK_GRAY);\n\n MyButton addShipButton = new MyButton(\"Add my ship\", Color.BLACK, 12);\n addShipButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n addShipButton.addActionListener(new AddListener(true));\n\n JLabel noAddLabel = new JLabel(\"No, I'd rather not. \"+\n \"Show me the plain simulation.\");\n noAddLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n MyButton noAdd = new MyButton(\"Don't add any boat\", Color.BLACK, 12);\n noAdd.setAlignmentX(Component.CENTER_ALIGNMENT);\n noAdd.addActionListener(new AddListener(false));\n\n shipNameInput = new MyTextBox(\"Ship name\");\n shipNameInput.setAlignmentX(Component.CENTER_ALIGNMENT);\n xcoordInput = new MyTextBox(\"Starting x coordinate\");\n xcoordInput.setAlignmentX(Component.CENTER_ALIGNMENT);\n ycoordInput = new MyTextBox(\"Starting y coordinate\");\n ycoordInput.setAlignmentX(Component.CENTER_ALIGNMENT);\n ArrayList<String> directions = new ArrayList<String>\n (Arrays.asList(\"N\",\"NE\",\"E\",\"SE\",\"S\",\"SW\",\"W\",\"NW\"));\n directionInput = new MyComboBox(directions, \"Select a direction.\");\n directionInput.setAlignmentX(Component.CENTER_ALIGNMENT);\n \n speedSlider = new SpeedSlider();\n speedSlider.addChangeListener(new SliderListener());\n\n add(title);\n\n addShipPanel.add(nameLabel);\n addShipPanel.add(shipNameInput);\n addShipPanel.add(xLabel);\n addShipPanel.add(xcoordInput);\n addShipPanel.add(yLabel);\n addShipPanel.add(ycoordInput);\n addShipPanel.add(directionInput);\n \n addShipPanel.add(speedLabel);\n addShipPanel.add(speedSlider);\n addShipPanel.add(addShipButton);\n\n add(addShipPanel);\n add(noAddLabel);\n add(noAdd);\n }", "public ResizeDDContainer(AbsoluteLayout layoutParam, PositionAngle component) {\r\n\t\tsuper();\r\n\t\tthis.layout = layoutParam;\r\n\r\n\t\tsetAngle(component.getAngle());\r\n\r\n\t\tthis.layout.addComponent(this);\r\n\r\n\t\tthis.menu = new FloatMenu(this, component, this.layout);\r\n\t\taddMenuElement(component.getPosX(), component.getPosY(), component.getIntHeight());\r\n\t}", "public OverlayLayout() {}", "public void addComponent(DrawingComponent component) \n\t{\n\n\t\tLog.d(\"DrawingIndividual\", \"addComponent \" + component);\n\t\t\n\t\tif (component instanceof DrawingCompositeWord) \n\t\t{\n\t\t\tchanged = true;\n\n\t\t\tRectF bounds = ((DrawingCompositeWord) component).getBounds();\n\n\t\t\tRectF localBounds = new RectF();\n\n\t\t\tif (path != null)\n\t\t\t\tpath.computeBounds(localBounds, true);\n\n\t\t\tif (localBounds.contains(bounds))\n\t\t\t{\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (children.size() == 0) \n\t\t\t\t\t{\n\t\t\t\t\t\tchildren.add(component);\n\t\t\t\t\t\tcomponent.parent = this;\n\t\t\t\t\t\tcomponentChild = (DrawingCompositeWord) component;\n\t\t\t\t\t\t\n\t\t\t\t\t\tupdateDrawingComponent();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (DrawingComponent dc : ((DrawingCompositeWord) component).children)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdc.setDisplayState(this.displayState);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcomponent.setDisplayState(this.displayState);\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tchanged = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (DrawingComponent dc : ((DrawingCompositeWord) component).children)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdc.setDisplayState(DisplayObjectState.NONE);\n\t\t\t\t\t\t}\t\t\n\n\t\t\t\t\t\tcomponent.setDisplayState(DisplayObjectState.NONE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tcomponent.parent.childrenToAdd.add(component);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor (DrawingComponent dc : ((DrawingCompositeWord) component).children)\n\t\t\t\t{\n\t\t\t\t\tdc.setDisplayState(DisplayObjectState.NONE);\n\t\t\t\t}\t\t\n\n\t\t\t\tcomponent.setDisplayState(DisplayObjectState.NONE);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse \n\t\t{\n\t\t\tchanged = false;\n\t\t\t\n\t\t\tcomponent.parent.childrenToAdd.add(component);\n\t\t}\n\t\t\n\t}", "private void geometry()\n\t\t{\n\t\t\t// JComponent : Instanciation\n\t\tthis.jPanelAction = new JPanelAction();\n\t\tthis.jPanelCommande = new JPanelCommande(jPanelAction);\n\n\t\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tthis.add(this.jPanelAction, BorderLayout.CENTER);\n\t\tthis.add(this.jPanelCommande, BorderLayout.SOUTH);\n\t\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void addComponentsToPanel() {\n\t\tpanel.add(backBtn);\n\t\tpanel.add(forgotPassword);\n\t\tpanel.add(txtPass);\n\t\tpanel.add(txtSendEmail);\n\t\tpanel.add(remindMeBtn);\n\n\t\tpanel.add(backgroundLabel);\n\t}", "private void geometry()\n\t\t{\n\t\tgridLayout = new GridLayout(2, -1);\n\n\t\tthis.setLayout(gridLayout);\n\n\t\tadd(component1);\n\t\tadd(component2);\n\t\t}", "private void addItem(JPanel p, JComponent c, int x, int y, int width, int height, int align) {\n\t\tGridBagConstraints gc = new GridBagConstraints();\n\t\tgc.gridx = x;\n\t\tgc.gridy = y;\n\t\tgc.gridwidth = width;\n\t\tgc.gridheight = height;\n\t\tgc.weightx = 100.0;\n\t\tgc.weighty = 100.0;\n\t\tgc.insets = new Insets(5, 5, 5, 5);\n\t\tgc.anchor = align;\n\t\tgc.fill = GridBagConstraints.NONE;\n\t\tp.add(c, gc);\n\t}", "public void addCompound(JPanel panel, JComponent c, int x, int y , int width, int height, int alignment)\n{\n\t// set the gridBagConstraints\n\tGridBagConstraints gc = new GridBagConstraints();\n\t// set the x-axis\n\tgc.gridx = x;\n\t// set the y-axis\n\tgc.gridy = y;\n\t// set the width of the component\n\tgc.gridwidth = width;\n\t// set the height of the component\n\tgc.gridheight = height;\n\t// the space between others (horizontally) is 100\n\tgc.weightx = 100.0;\n\t// the space between others (vertically) is 100\n\tgc.weighty = 100.0;\n\t// the space padding around each component\n\tgc.insets = new Insets(10,10,10,10);\n\t// the position to place the component\n\tgc.anchor = alignment;\n\t// stretch the object to fill the available space\n\tgc.fill = GridBagConstraints.NONE;\n\t// add it in the panel\n\tpanel.add(c,gc);\n}", "@Override\n public void add(Component c) {\n children.add(c);\n }", "private void addComponents(Container content){\r\n\r\n content.add(getRentPane());\r\n content.add(getSellPane());\r\n\r\n }", "private void createDisplayEditOverlay() {\n\t}", "private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}", "@Override\n\t@Deprecated\n\tpublic void addLayoutComponent(String name, Component comp) {\n\t\tthrow new UnsupportedOperationException();\n\t}", "private void componentPositionAdjustment() {\n // set the y position of each element\n AnchorPane.setTopAnchor(nameLabel, 30.0);\n AnchorPane.setTopAnchor(name, 30.0);\n AnchorPane.setTopAnchor(fiberLabel, 70.0);\n AnchorPane.setTopAnchor(proteinLabel, 110.0);\n AnchorPane.setTopAnchor(fatLabel, 150.0);\n AnchorPane.setTopAnchor(caloriesLabel, 190.0);\n AnchorPane.setTopAnchor(carbohydrateLabel, 230.0);\n AnchorPane.setTopAnchor(fiber, 70.0);\n AnchorPane.setTopAnchor(calories, 190.0);\n AnchorPane.setTopAnchor(fat, 150.0);\n AnchorPane.setTopAnchor(carbohydrate, 230.0);\n AnchorPane.setTopAnchor(protein, 110.0);\n AnchorPane.setTopAnchor(id, 270.0);\n AnchorPane.setTopAnchor(idLabel, 270.0);\n AnchorPane.setTopAnchor(confirm, 310.0);\n AnchorPane.setTopAnchor(cancel, 310.0);\n // set the x position of each element\n AnchorPane.setLeftAnchor(fiberLabel, 20.0);\n AnchorPane.setLeftAnchor(proteinLabel, 20.0);\n AnchorPane.setLeftAnchor(fatLabel, 20.0);\n AnchorPane.setLeftAnchor(caloriesLabel, 20.0);\n AnchorPane.setLeftAnchor(carbohydrateLabel, 20.0);\n AnchorPane.setLeftAnchor(nameLabel, 20.0);\n AnchorPane.setLeftAnchor(idLabel, 20.0);\n AnchorPane.setLeftAnchor(name, 120.0);\n AnchorPane.setLeftAnchor(fiber, 120.0);\n AnchorPane.setLeftAnchor(calories, 120.0);\n AnchorPane.setLeftAnchor(fat, 120.0);\n AnchorPane.setLeftAnchor(id, 120.0);\n AnchorPane.setLeftAnchor(carbohydrate, 120.0);\n AnchorPane.setLeftAnchor(protein, 120.0);\n AnchorPane.setLeftAnchor(confirm, 50.0);\n AnchorPane.setLeftAnchor(cancel, 200.0);\n }", "public void addLayoutComponent(String name, Component comp) \n {\n\taddLayoutComponent(comp,new PercentLayout.Constraints(NONE,BOTH));\n }", "@Override\r\n\tpublic void removeLayoutComponent(Component arg0) {\n\t\t\r\n\t}", "public void addComponent(Component comp) {\n\t chatBox.add(comp);\n\t scrollPane.paintAll(getGraphics());\n\t scrollPane.getVerticalScrollBar().setValue(scrollPane.getVerticalScrollBar().getMaximum());\n\t repaint(); \n\t }", "@Override\n\tpublic void addChild(IComponent c) {\n\t\tcomponents.add(c);\n\t}", "public static void addDefaultComponent(\r\n\t\t\t\t\tPanel p,\r\n\t\t\t\t\tComponent c, \r\n\t\t\t\t\tGridBagLayout gbl, GridBagConstraints gbc, \r\n\t\t\t\t\tint x, int y, int w, int h) {\r\n\r\n\t\tgbc.fill = GridBagConstraints.BOTH;\r\n\t\tgbc.anchor = GridBagConstraints.CENTER;\r\n\t\tgbc.weightx = 1.0;\r\n\t\tgbc.weighty = 1.0;\r\n\t\tgbc.gridx = x;\r\n\t\tgbc.gridy = y;\r\n\t\tgbc.gridwidth = w;\r\n\t\tgbc.gridheight = h;\r\n\t\tgbl.setConstraints(c, gbc);\r\n\t\tp.add(c);\r\n\t}", "private void affCarte (JPanel panel, int position) {\r\n\t\tconstraints.gridwidth = 2;\r\n\t\tconstraints.gridheight = 2;\r\n\t\t// On regarde quelle carte doit etre ajoutee\r\n\t\tswitch (position) {\r\n\t\t\tcase 0 : \r\n\t\t\t\tconstraints.gridx = 9;\r\n\t\t\t\tconstraints.gridy = 4;\r\n\t\t\t\tlayout.addLayoutComponent(panel, constraints);\r\n\t\t\t\tthis.add(panel);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1 : \r\n\t\t\t\tconstraints.gridx = 8;\r\n\t\t\t\tconstraints.gridy = 4;\r\n\t\t\t\tlayout.addLayoutComponent(panel, constraints);\r\n\t\t\t\tthis.add(panel);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2 : \r\n\t\t\t\tconstraints.gridx = 7;\r\n\t\t\t\tconstraints.gridy = 4;\r\n\t\t\t\tlayout.addLayoutComponent(panel, constraints);\r\n\t\t\t\tthis.add(panel);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3 : \r\n\t\t\t\tconstraints.gridx = 6;\r\n\t\t\t\tconstraints.gridy = 4;\r\n\t\t\t\tlayout.addLayoutComponent(panel, constraints);\r\n\t\t\t\tthis.add(panel);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4 : \r\n\t\t\t\tconstraints.gridx = 5;\r\n\t\t\t\tconstraints.gridy = 4;\r\n\t\t\t\tlayout.addLayoutComponent(panel, constraints);\r\n\t\t\t\tthis.add(panel);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public abstract void add(KitComponent component);", "public void addComponentsToContainer() {\n container.add(userLabel);\n container.add(passwordLabel);\n container.add(userTextField);\n container.add(passwordField);\n container.add(loginButton);\n container.add(exitButton);\n\n }", "private void addPluginComponent(Component c,\n Container container,\n Object constraints)\n {\n if (container.equals(Container.CONTAINER_CHAT_WINDOW))\n {\n if (constraints.equals(BorderLayout.SOUTH))\n {\n pluginPanelSouth.add(c);\n pluginPanelSouth.repaint();\n }\n else if (constraints.equals(BorderLayout.WEST))\n {\n pluginPanelWest.add(c);\n pluginPanelSouth.repaint();\n }\n else if (constraints.equals(BorderLayout.EAST))\n {\n pluginPanelEast.add(c);\n pluginPanelSouth.repaint();\n }\n }\n else if (container.equals(Container.CONTAINER_CHAT_STATUS_BAR))\n {\n statusBarPanel.add(c);\n }\n\n this.getContentPane().repaint();\n }", "private void addComponents() {\n\t\tadd(newGame);\n\t\tadd(nameLabel);\n\t\tadd(nameField);\n\t\tadd(addPlayer);\n\t\tadd(gameTextPane);\n\t\tadd(playGame);\t\n\t\tadd(takeTurn);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t}", "public void addComponent(JComponent component, int row, int col, int width, int height, int anchor, int fill) {\n \n constraints.gridx = col;\n constraints.gridy = row;\n constraints.gridwidth = width;\n constraints.gridheight = height;\n constraints.anchor = anchor;\n double weightx = 0.0;\n double weighty = 0.0;\n \n // only use extra horizontal or vertical space if component\n // spans more than one column and/or row.\n if(width > 1) weightx = 1.0;\n if(height > 1) weighty = 1.0;\n \n switch(fill) {\n case GridBagConstraints.HORIZONTAL:\n constraints.weightx = weightx;\n constraints.weighty = 0.0;\n break;\n case GridBagConstraints.VERTICAL:\n constraints.weighty = weighty;\n constraints.weightx = 0.0;\n break;\n case GridBagConstraints.BOTH:\n constraints.weightx = weightx;\n constraints.weighty = weighty;\n break;\n case GridBagConstraints.NONE:\n constraints.weightx = 0.0;\n constraints.weighty = 0.0;\n break;\n default:\n break;\n }\n constraints.fill = fill;\n add(component, constraints);\n }", "public planillaInsert() {\n initComponents();\n int lebar = this.getWidth()/2;\n int tinggi = this.getHeight()/2;\n int x = (Toolkit.getDefaultToolkit().getScreenSize().width/2)-lebar;\n int y = (Toolkit.getDefaultToolkit().getScreenSize().height/2)-tinggi;\n this.setLocation(x, y);\n }", "protected void addSpacer() {\r\n\t\tadd(new JPanel());\r\n\t}", "public void addComponent(Component component){\n components.add(component);\n }", "private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tpanel = new JPanelVideo(video);\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// borderLayout.setHgap(20);\n\t\t\t// borderLayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tadd(panel);\n\t\t}", "public void removeLayoutComponent(Component component) { }", "private void addComponents(Container pane) {\n // Reset pane\n pane.removeAll();\n\n GridLayout mainLayout = new GridLayout(4,3);\n JPanel mainPanel = new JPanel();\n mainPanel.setLayout(mainLayout);\n\n // Setting up button sizes\n JButton b = new JButton(\"Filler button\");\n Dimension buttonSize = b.getPreferredSize();\n Dimension preferredSize = new Dimension(\n (int)(buttonSize.getWidth() * 7.5) + newGUI.maxGap,\n (int)(buttonSize.getHeight() * 3.5) + newGUI.maxGap * 2);\n mainPanel.setPreferredSize(preferredSize);\n\n // Add the main panel buttons\n mainPanel.add(commands);\n mainPanel.add(availableCommands);\n mainPanel.add(new JLabel());\n mainPanel.add(enterButton);\n\n pane.add(mainPanel, BorderLayout.NORTH);\n pane.add(new JSeparator(), BorderLayout.CENTER);\n }", "private void addComponentsToPane(final Container pane) {\n pane.setLayout(new BorderLayout());\n JScrollPane header = getHeader();\n JScrollPane center = getCenter();\n\n pane.add(header, BorderLayout.PAGE_START);\n\t pane.add(center, BorderLayout.CENTER);\n }", "@Override\r\n\t\t\tpublic void componentAdded(ContainerEvent arg0){}", "private void addComponents() {\r\n\t\t// initialize properties and add.\r\n\t\tthis.add(initializeChatArea(), BorderLayout.CENTER);\r\n\t\tthis.add(initializeSubPanel(), BorderLayout.SOUTH);\r\n\t}", "void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "public void addAnchoredComponent(JComponent component, int row, int col, int anchor ) {\n addComponent(component, row, col, C_WIDTH, C_HEIGHT, anchor, C_NONE);\n }", "protected JPanel createDefaultContent(Component o) {\r\n final JPanel pnl = new JPanel(new BorderLayout());\r\n // Only do this when non-zero dimensions are set; this should be the exception\r\n // since most uses cases would normally just use pack() as the framework initializes\r\n // the internal app window.\r\n if ( width * height > 0) {\r\n pnl.setPreferredSize(new Dimension(width, height)); \r\n }\r\n pnl.add(o, BorderLayout.CENTER);\r\n\r\n return pnl;\r\n }", "private void addComponentsToLayout() {\n//\t\tAdd the \"Add project\" button to the list\n\t\taddComponent(addProject);\n\t\t\n//\t\tIf the user don't have any projects, add the \"No projects\" label instead of the list\n\t\tif(projectRows.size() == 0){\n\t\t\taddComponent(new Label(T.get(\"LABEL_NO_PROJECTS_EXISTS\")));\n\t\t}\n//\t\tOtherwise add all project rows to the list\n\t\telse{\n\t\t\tfor (ProjectRow projectRow : projectRows) {\n\t\t\t\taddComponent(projectRow);\n\t\t\t}\n\t\t}\n\t\t\n\t\tmainView.selectProject();\n\t}", "@Override public void layoutContainer(Container parent) {\n int nc = parent.getComponentCount();\n if (nc == 0) {\n return;\n }\n int width = parent.getWidth(); // - insets.left - insets.right;\n int height = parent.getHeight(); // - insets.left - insets.right;\n int x = 0; // insets.left; int y = insets.top;\n // for (int i = 0; i < nc; i++) {\n Component c = parent.getComponent(0); // = toolBox;\n c.setBounds(x, height - yy, width, c.getPreferredSize().height);\n // }\n }", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "public MaterialAdd() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public void replaceChildComponent(Widget oldComponent, Widget newComponent) {\n if (oldComponent != layout) {\n return;\n }\n \n setWidget(newComponent);\n layout = (Paintable) newComponent;\n }", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "private void addComponents() {\n gbc.anchor = GridBagConstraints.EAST;\n addComponent(lblName, 0, 0, 1);\n addComponent(lblDay, 0, 1, 1);\n addComponent(lblMonth, 0, 2, 1);\n addComponent(lblTime, 0, 5, 1);\n addComponent(lblDuration, 0, 6, 1);\n gbc.anchor = GridBagConstraints.WEST;\n addComponent(txtName, 1, 0, 1);\n addComponent(cmbDay, 1, 1, 1);\n addComponent(cmbMonth, 1, 2, 1);\n addComponent(radSelectTime, 1, 3, 1);\n addComponent(radAutoTime, 1, 4, 1);\n addComponent(cmbTime, 1, 5, 1);\n addComponent(cmbDuration, 1, 6, 1);\n gbc.anchor = GridBagConstraints.CENTER;\n addComponent(btnSubmit, 0, 7, 2);\n }", "public AfterMarketPanel(Gui gui)throws ImageNotFound {\n super();\n this.setLayout(new BoxLayout(this,BoxLayout.X_AXIS));\n this.setOpaque(false);\n this.add(Box.createRigidArea(new Dimension(150,0)));\n this.gui=gui;\n\n received=new JPanel();\n received.setOpaque(true);\n received.setBackground(new Color(240, 198, 125));\n received.setBorder(new LineBorder(new Color(241, 153, 0), 1));\n received.setLayout(new BoxLayout(received,BoxLayout.Y_AXIS));\n\n this.add(received);\n this.add(Box.createRigidArea(new Dimension(500,0)));\n\n this.add(Box.createRigidArea(new Dimension(50,0)));\n }", "public void addToJPanel() {\r\n\t\tsave_objects.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tsave_objects.add(blank1);\r\n\t\t\r\n\t\tsave_objects.add(title_lb);\r\n\t\tsave_objects.add(title);\r\n\t\t\r\n\t\tsave_objects.add(width_lb);\r\n\t\tsave_objects.add(width);\r\n\t\t\r\n\t\tsave_objects.add(height_lb);\r\n\t\tsave_objects.add(height);\r\n\t\t\r\n\t\tsave_objects.add(save);\r\n\t\tsave_objects.add(reset);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "void pack() {\n/* 179 */ Component component = getComponent();\n/* */ \n/* 181 */ if (component instanceof Window) {\n/* 182 */ ((Window)component).pack();\n/* */ }\n/* */ }", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel.setMinimumSize(new Dimension(-1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n nodeList.setSelectionMode(1);\n scrollPane1.setViewportView(nodeList);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n addNodeButton = new JButton();\n this.$$$loadButtonText$$$(addNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_addNode\"));\n panel1.add(addNodeButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n removeNodeButton = new JButton();\n this.$$$loadButtonText$$$(removeNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_removeNode\"));\n panel1.add(removeNodeButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Droid Sans Mono\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"language\").getString(\"title_nodes\"));\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void removeLayoutComponent(Component comp) {}", "public void removeLayoutComponent(Component comp) {}", "public void removeLayoutComponent(Component comp) \n {\n\t\n }", "private void addComponentsToLayers() {\n JLayeredPane layer = getLayeredPane();\n layer.add(canvas, new Integer(1));\n layer.add(searchArea, new Integer(2));\n layer.add(searchButton, new Integer(2));\n layer.add(zoomInButton, new Integer(2));\n layer.add(zoomOutButton, new Integer(2));\n layer.add(fullscreenButton, new Integer(2));\n layer.add(showRoutePanelButton, new Integer(2));\n layer.add(routePanel, new Integer(2));\n layer.add(optionsButton, new Integer(2));\n layer.add(mapTypeButton, new Integer(2));\n layer.add(mapTypePanel, new Integer(2));\n layer.add(resultPane, new Integer(3));\n layer.add(resultStartPane, new Integer(3));\n layer.add(resultEndPane, new Integer(3));\n layer.add(iconPanel, new Integer(3));\n layer.add(optionsPanel, new Integer(2));\n layer.add(directionPane, new Integer(2));\n layer.add(closeDirectionList, new Integer(2));\n layer.add(travelTimePanel, new Integer(3));\n\n }", "public void addAnchoredComponent(JComponent component, int row, int col, int width, int height, int anchor) {\n addComponent(component, row, col, width, height, anchor, C_NONE);\n }", "private void addComponents() {\n LOOGER.info(\"Get add Components Entry\");\n // Adding loadButton to first row.\n this.add(loadButton);\n\n // Adding fillButton to first row.\n this.add(fillButton);\n\n // Adding deleteButton to first row.\n this.add(deleteButton);\n LOOGER.info(\"add Components exit\");\n }", "private void designComponents() \n\t{\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t}" ]
[ "0.7151409", "0.7044975", "0.69083256", "0.6826906", "0.6786801", "0.67583275", "0.6726499", "0.6714082", "0.67080116", "0.66908765", "0.6683277", "0.6594568", "0.65766793", "0.653032", "0.65038896", "0.64740515", "0.64433736", "0.6423072", "0.6388109", "0.63703084", "0.63607126", "0.6354086", "0.6321992", "0.6288208", "0.6286328", "0.6247554", "0.62363154", "0.62225986", "0.62168354", "0.6171889", "0.61673117", "0.6160786", "0.61601406", "0.6152038", "0.6139285", "0.61330706", "0.6123707", "0.6118744", "0.6080845", "0.60663104", "0.6065867", "0.605661", "0.604641", "0.6016921", "0.59867394", "0.59824795", "0.5977047", "0.59593964", "0.59529054", "0.5937397", "0.5921688", "0.58962446", "0.589182", "0.5890392", "0.5884055", "0.5880369", "0.58746386", "0.5871945", "0.5871785", "0.58578414", "0.5853815", "0.5840044", "0.5839845", "0.5831029", "0.58298284", "0.58296305", "0.58252263", "0.57962954", "0.57899857", "0.5787274", "0.5783805", "0.5782116", "0.5781514", "0.57763714", "0.5756328", "0.5756315", "0.57480216", "0.5747987", "0.57477593", "0.5747701", "0.5744823", "0.5744372", "0.5741134", "0.57396436", "0.5738305", "0.5721497", "0.57146496", "0.5706299", "0.5705005", "0.5700453", "0.5696072", "0.5682737", "0.5677335", "0.567622", "0.567622", "0.5669574", "0.56574744", "0.56572807", "0.5644643", "0.5631579" ]
0.6413347
18
How long to wait before flipping to the next view
@android.view.RemotableViewMethod public void setFlipInterval(int milliseconds) { mFlipInterval = milliseconds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void timePassed() {\n this.moveOneStep();\n }", "@Override\n public void timePassed() {\n moveOneStep();\n }", "protected abstract long waitToTravel();", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmVideoContrl.seekTo((int) time);\r\n\r\n\t\t\t\t\t\t}", "void showNext(){\n Log.d(\"Nexting\");\n right.post(new Runnable() {\n @Override\n public void run() {\n ViewAnimator.popInZero(right, 0, 200);\n }\n });\n }", "private void yourTurn() throws InterruptedException {\n yourTurnPane.setVisible(true);\n PauseTransition delay = new PauseTransition(Duration.seconds(3));\n delay.setOnFinished( event -> yourTurnPane.setVisible(false) );\n delay.play();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(nextStep+1>=showflag.length)\r\n\t\t\t\t\treturn ;\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tif(showflag[nextStep]){\r\n\t\t\t\t\tnextStep +=1;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(int i=nextStep;i>=0;i--){\r\n\t\t\t\t\t\tif(showflag[i]){\r\n\t\t\t\t\t\t\tnextStep= i+1;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tif(nextStep==OK)\r\n\t\t\t\t\tmHandler.sendMessageDelayed(msg, waitTime);\r\n\t\t\t\telse\r\n\t\t\t\t\tmHandler.sendMessageDelayed(msg, waitTime);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\n public void run() {\n if (mItem != 0) {\n\n if (isFrist == true) {\n mCurrentItem = 0;\n isFrist = false;\n } else {\n if (mCurrentItem == bannerListView.size() - 1) {\n mCurrentItem = 0;\n } else {\n mCurrentItem++;\n }\n }\n viewpager.setCurrentItem(mCurrentItem);\n }\n viewpager.postDelayed(mPagerAction, 2500);\n }", "@Override\r\n\t\tpublic void dmr_seek(long time) throws RemoteException {\n\t\t\tUtils.printLog(TAG, \"dmr_seek time=\"+time);//nicy\r\n\t\t\tif (sEndTime > 0) {\r\n\t\t\t\tfinal long now = time;\r\n\t\t\t\tnew Thread(new Runnable() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tmVideoContrl.seekTo((int) now);\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"mVideoContrl.seekTo now =\"+now);//nicy\r\n\t\t\t\t\t}\r\n\t\t\t\t}).start();\r\n\t\t\t} else {\r\n\t\t\t\tmPlayerSeekar.setProgress(0);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.seekTo((int) now);\r\n\t\t\t\t\t\tUtils.printLog(TAG, \"mVideoContrl.seekTo now =\"+now);//nicy\r\n\t\t\t\t\t}", "protected long getDelayForView(View view) {\n/* 214 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void waitingFrames()\n\t{\n\t\tif(waitingFrames < framesToWait && action == false)\n\t\t{\n\t\t\twaitingFrames ++;\n\t\t}\n\t\telse if(waitingFrames == framesToWait && action == false)\n\t\t{\n\t\t\twaitingFrames = 0;\n\t\t\taction = true;\n\t\t\tspriteImageView.setImage(holdImage);\n\t\t\tswitch(getDirection())\n\t\t\t{\n\t\t\tcase \"UP\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 300, 100, 100));\n\t\t\t\tbreak;\n\t\t\tcase \"DOWN\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 0, 100, 100));\n\t\t\t\tbreak;\n\t\t\tcase \"LEFT\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 100, 100, 100));\n\t\t\t\tbreak;\n\t\t\tcase \"RIGHT\":\n\t\t\t\tspriteImageView.setViewport(new Rectangle2D(0, 200, 100, 100));\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\tswitch(getDirection())\n//\t\t\t{\n//\t\t\t\tcase \"UP\":\t\t\t\t\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY+300,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tcase \"DOWN\":\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tcase \"LEFT\":\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY+100,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tcase \"RIGHT\":\n//\t\t\t\t\twalkingAnimation=new SpriteAnimation(spriteImageView,Duration.millis(500),count,column,offsetX,offsetY+200,width,height);\n//\t\t\t\t\tbreak;\n//\t\t\t\tdefault: break;\n//\t\t\t}\n//\t\t\twalkingAnimation.play();\n\t\t}\n\t}", "@Test\n public void progressionUpdaterStartedAfterPlay() {\n expandPanel();\n SeekBar seekBar = (SeekBar) getActivity().findViewById(R.id.mpi_seek_bar);\n final int progress = seekBar.getProgress();\n\n onView(isRoot()).perform(ViewActions.waitForView(\n R.id.mpi_seek_bar, new ViewActions.CheckStatus() {\n @Override\n public boolean check(View v) {\n return ((SeekBar) v).getProgress() > progress;\n }\n }, 10000));\n }", "public void forwardOnClick(View view){\n while(Integer.parseInt(mazeController.getPercentDone()) < 99) {\n\n }\n Intent newIntent = new Intent(this, Play.class);\n startActivity(newIntent);\n }", "@Test\n public void continueProgressionAfterSwitchingActivity() throws Throwable {\n final int progress = 24;\n expandPanel();\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(2, R.id.navigation_drawer); //select movie activity\n\n waitForPanelState(BottomSheetBehavior.STATE_COLLAPSED);\n expandPanel();\n\n onView(isRoot()).perform(ViewActions.waitForView(R.id.mpi_seek_bar, new ViewActions.CheckStatus() {\n @Override\n public boolean check(View v) {\n int seekBarProgress = ((SeekBar) v).getProgress();\n return (seekBarProgress > progress) && (seekBarProgress < (progress + 4));\n }\n }, 10000));\n }", "public void revive(final GameView gameView) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n setupRevive(gameView);\n }\n }).start();\n\n }", "public void step()\n {\n LCD.clear();\n sw.reset();\n for( int i = 0; i<3; i++)m[i].resetTachoCount();\n for( int i = 0; i<3; i++)m[i].forward();\n for(int r = 0 ; r<8; r++)\n {\n while(sw.elapsed() < 200* r)Thread.yield();\n for( int i = 0; i<3; i++)\n LCD.drawInt(m[i].getTachoCount(),5*i,r);\n }\n for( int i = 0; i<3; i++)m[i].stop();\n Button.waitForPress();\n }", "@Override\n\tpublic void reallyDoStep() {\n\t\tif(!(this.isFinished())) this.timeRemaining--; \n\t\treturn;\n\t}", "public void updateWaitingTime(){\n waitingTime = waitingTime - 1;\n }", "public void timePassed() {\n if (keyboard.isPressed(KeyboardSensor.LEFT_KEY) && keyboard.isPressed(KeyboardSensor.RIGHT_KEY)) {\n return;\n } else if (keyboard.isPressed(KeyboardSensor.LEFT_KEY)) {\n moveLeft();\n\n } else if (keyboard.isPressed(KeyboardSensor.RIGHT_KEY)) {\n moveRight();\n }\n }", "@Override\n public void onSequenceFinish() {\n // Yay\n mShowingTour = false;\n mPresenter.showCaseFinished();\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.maltiSpeedPlayPrevious();\r\n\r\n\t\t\t\t\t}", "@FXML\n public void clickNextStep(ActionEvent actionEvent) throws IOException {\n Main.curRoundPlayerIndex++;\n Stage curStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n\n if (Main.curRoundPlayerIndex < Main.totalNumOfPlayers) {\n Pane reinforcePane = new FXMLLoader(getClass().getResource(\"../view/ReinforceView.fxml\")).load();\n Scene reinforceScene = new Scene(reinforcePane, 1200, 900);\n reinforceViewInit(Main.curRoundPlayerIndex);\n curStage.setScene(reinforceScene);\n curStage.show();\n } else {\n Main.curRoundPlayerIndex = Main.curRoundPlayerIndex % Main.totalNumOfPlayers;\n Pane attackPane = new FXMLLoader(getClass().getResource(\"../view/AttackView.fxml\")).load();\n Scene attackScene = new Scene(attackPane, 1200, 900);\n\n curStage.setScene(attackScene);\n curStage.show();\n }\n }", "public void autoSwipeViews() {\n mTimer = new Timer();\n mTimer.scheduleAtFixedRate(new SliderTimer(), 10000, 10000);\n }", "private void timmer() {\n showTimmerOptions();\n\n\n\n final int val = 500;\n taskProgressInner = (ProgressBar) findViewById(com.ryansplayllc.ryansplay.R.id.TaskProgress_Inner);\n new Thread(new Runnable() {\n public void run() {\n int tmp = (val / 100);\n\n for (int incr = 0; incr <= val; incr++) {\n\n try {\n taskProgressInner.setProgress(incr);\n if ((incr % 100) == 0) {\n tmp--;\n }\n Thread.sleep(10);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }).start();\n\n // intilaizating count down timer object\n progressDialog.dismiss();\n countDownTimer = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n countDownTextView.setText(Long\n .toString(millisUntilFinished / 1000));\n\n\n }\n\n public void onFinish() {\n\n countDownTextView.setText(\"0\");\n\n\n isSelectable = false;\n\n\n // changing text view if player is not umpire\n if (!Utility.isUmpire) {\n\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n String message = \"Waiting for the Umpire result.\";\n// showWaitingPopUp(message);\n showBallinPlayView();\n final ImageView gamescreenbackground = (ImageView) findViewById(com.ryansplayllc.ryansplay.R.id.umpirescreenfield);\n gamescreenbackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field);\n\n\n }\n });\n }\n // calling method to submit result\n submitPlayerPrediction();\n }\n };\n isSelectable = true;\n countDownTimer.start();\n\n }", "@Test\n public void restoreProgressOnRotate() {\n final int progress = 16;\n final String progressText = \"0:16\";\n expandPanel();\n onView(withId(R.id.play)).perform(click()); //Pause playback\n\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n rotateDevice(getActivity());\n\n assertEquals(getPlayerHandler().getTimeElapsed(), progress);\n onView(withId(R.id.mpi_progress)).check(matches(withProgress(progressText)));\n onView(withId(R.id.mpi_seek_bar)).check(matches(withProgress(progress)));\n }", "public void scheduleViewChange(){\n PBFTRequestInfo rinfo = getRequestInfo();\n\n if(!isPrimary() && rinfo.hasSomeWaiting()){\n \n if(!overloaded() || changing()){\n long now = getClockValue();\n\n if(!getViewTimer().workingAt(now)){\n\n long timeout = getPrimaryFaultTimeout();\n PBFTTimeoutDetector ttask = (PBFTTimeoutDetector) getViewTimer().getTask();\n\n if(ttask != null && ttask.get(\"TIMEOUT\") != null){\n timeout = (Long)ttask.get(\"TIMEOUT\");\n JDSUtility.debug(\"[scheduleViewChange()] s\" + getLocalServerID() + \" computed changeview timeout equal to \" + timeout);\n }\n\n long timestamp = now + timeout;\n getViewTimer().schedule(timestamp);\n return;\n }\n return;\n }//end change-view timer is working\n JDSUtility.debug(\"[batch()]s\" + getLocalServerID() + \", at time \" + getClockValue() + \", has been in overloaded state.\");\n }//end if it is not primary\n \n }", "public void onSeamlessRotationTimeout() {\n this.mTmpWindow = null;\n forAllWindows((Consumer<WindowState>) new Consumer() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$vn2WRFHoZv7DB3bbwsmraKDpl0I */\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$onSeamlessRotationTimeout$25$DisplayContent((WindowState) obj);\n }\n }, true);\n if (this.mTmpWindow != null) {\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n }\n this.mWmService.handleResumeDispModeChange();\n }", "@Override\r\n\t\t\tpublic void run(ProgressCallback callback) throws Exception {\n\t\t\t\ttestClock.warpForward(timeoutMS / 4);\r\n\t\t\t\tcallback.progressMade();\r\n\t\t\t\ttestClock.warpForward(timeoutMS / 4 - 1);\r\n\t\t\t\tcallback.progressMade();\r\n\r\n\t\t\t\t// This should trigger a refresh\r\n\t\t\t\ttestClock.warpForward(2);\r\n\t\t\t\tcallback.progressMade();\r\n\r\n\t\t\t\ttestClock.warpForward(timeoutMS / 2);\r\n\t\t\t\tcallback.progressMade();\r\n\t\t\t\t// This should trigger a refresh\r\n\t\t\t\ttestClock.warpForward(timeoutMS / 2);\r\n\t\t\t\tcallback.progressMade();\r\n\t\t\t}", "public void setupRevive(GameView gameView)\n {\n for(ReviveObserver ro : reviveObservers)\n {\n ro.update(gameView);\n }\n //gameView.getPlayerInstance().revive();\n //gameView.resume();\n\n gameView.resume();\n\n\n\n\n\n }", "public void action()\n {\n if(timeout > 0 && timeout < 2)\n {\n timeout = 0;\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n counter = 0;\n\n\n }\n //If this is the very first time getting to this state or if the timeout reset the counter to 0\n if(counter < 1)\n {\n //Clean the list of receivers in case there is something\n if(!receivers.isEmpty())\n receivers.removeAllElements();\n //Calculate the duration of the intro\n calculateDurationIntro();\n //Find a receiver\n findAllReceivers();\n constructACLMessage();\n introNegotiation = new IntroNegotiation(agent,msg);\n introNegotiation.setDataStore(getDataStore());\n agent.addBehaviour(introNegotiation);\n }\n\n\n //Handle where I'm heading to from here.\n switch (steps)\n {\n case 0:\n transition = 29;\n break;\n case 1:\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n transition = 17;\n\n }\n\n\n\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}", "private void pauseRoadView() {\n\n if (navigationManager.getMapUpdateMode().equals(NavigationManager.MapUpdateMode.ROADVIEW)) {\n navigationManager.setMapUpdateMode(NavigationManager.MapUpdateMode.NONE);\n navigationManager.getRoadView().removeListener(roadViewListener);\n m_lastZoomLevelInRoadViewMode = m_map.getZoomLevel();\n }\n }", "public void stepForward(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t\n\t\t//check to see if we have reached the last frame\n\t\tif(frameIndex == frames.length-1){ frameIndex = 0; }\n\t\telse{ frameIndex++; }\n\t\n\t\tframes[frameIndex].display();\n frames[frameIndex].clearDisplay();\n\t}", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t\tTournamentView t =new TournamentView(parent, game, myFighters) ; \r\n\t \t\t\t\tt.setVisible(true); \r\n\t \t\t\t\t Runnable r = new Runnable() {\r\n\t \t\t\t\t\t public void run() {\r\n\t \t\t\t\t\t try {\r\n\t \t\t\t\t\t\t\tThread.sleep(1000);\r\n\t \t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t \t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t \t\t\t\t\t\t\te.printStackTrace();\r\n\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t // your Code ... \r\n\t \t\t\t\t\t setVisible(false);\r\n\t \t\t\t\t\t }\r\n\t \t\t\t\t\t };\r\n\t \t\t\t\tThread t1 = new Thread(r) ;\r\n\t \t\t\t\tt1.start();\r\n\t\t\t\t}", "@FXML\n private void setOut(){\n\n updateGUI();\n drivingTransition.play();\n Main.gang.setMoving(true);\n\n HealthClass.checkGameOver();\n\n if (Runtime.getRuntime().availableProcessors() + Main.main.startingThreads > Thread.activeCount()) TravelTask();\n }", "public void transitionToTimer(boolean isShow) {\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmVideoContrl.seekTo(mpos);\r\n\r\n\t\t\t\t}", "@Override\r\n\tpublic void simulate(long diffTime) {\n\t\tif(player1Selecionado && player2Selecionado){\r\n//\t\t\tSystem.out.println(\"passa para proxima tela \");\r\n\t\t\tController.getInstance().goToScreen(new LoadScreen(player1, player2, enderecoImage[player1], enderecoImage[player2]));\r\n\t\t}\r\n\r\n\r\n\t}", "@Test\n public void completDataTes() throws Exception{\n mActivity.requestToNetwork();\n Thread.sleep(1000);\n onView(withId(R.id.graph_menu)).perform(click());\n onView(withId(R.id.graph_menu)).perform(click());\n Thread.sleep(1000);\n onView(withIndex(withId(R.id.image_item_clicks), 2)).perform(click());\n\n }", "public void act()\n { \n if(returnTime.millisElapsed() > 1000) { //time count down every second\n time --;\n }\n \n if (time == 0) { \n bgm.stop();\n Greenfoot.stop();\n }\n \n showCredit();\n }", "protected void pause() {\n sleep(300);\n }", "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n while (!sh.liftReady && time.milliseconds() < 1500) {\n }\n //\n sh.pivotPID(650, true, .07/650, .01, .01/650, 2);\n sh.pivotPID(640, false, .07/640, .01, .01/640, 2);\n\n\n\n }", "public void run() {\n\t\t\t\t\t\tif (__delayCounter == _delayCounter[0]) {\r\n\t\t\t\t\t\t\t_pageBook.showPage(__page);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void control() {\n try {\n gameThread.sleep(17);\n } catch (InterruptedException e) { }\n }", "public boolean takeControl() {\n\t\treturn Project2a.curState == Project2a.RobotState.Forward && Project2a.getCurTime() - 500 > MoveForward.startTime;\n\t}", "public void showNextImageSet(View view) { // when \"Next\" button is clicked, shows new set of images\n displayingCarMakes.clear();\n displayingImageIndexes.clear();\n\n // resetting the car image for picking an image again\n userPickedCarImage = false;\n\n // if next is touched repeatedly, this will prevent the countdown timer messing up\n if (toggleCountdown) {\n if (roundCountDownTimer != null) {\n roundCountDownTimer.cancel();\n }\n runTimer(20000);\n }\n showImageSet();\n }", "public void stepBackward(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t\n\t\t//check to see if we are back to the first frame\n\t\tif(frameIndex == 0){ frameIndex = frames.length-1; }\n\t\telse{ frameIndex--; }\n\t\n\t\tframes[frameIndex].display();\n frames[frameIndex].clearDisplay();\n\t}", "@Override\n protected void swimAction(long timer){}", "public void setWait(int time)\n\t{\n\t\tthis.dx = 1;\n\t\tthis.dy = 1;\n\t\tthis.time = time;\n\t\t//run();\n\t}", "public void startFlipping() {\n if (!mKeepFlipping) {\n mKeepFlipping = true;\n showOnly(mWhichChild);\n Message msg = mHandler.obtainMessage(FLIP_MSG);\n mHandler.sendMessageDelayed(msg, mFlipInterval);\n }\n }", "public void resume() {\n moveStop = true;\n }", "private void step()\n\t\t{\n\t\tif(currentAlgo!=null && !isRunning())\n\t\t\t{\n\t\t\tthread=new SteppingThread();\n\t\t\tbStartStop.setText(\"Stepping\");\n\t\t\tthread.toStop=true;\n\t\t\tcurrentAlgo.setStopping(false);\n\t\t\tthread.start();\n//\t\t\tcurrentAlgo.setStopping(false);\n//\t\t\tcurrentAlgo.run(this);\n\t\t\t}\n\t\t}", "private void bonusAction() throws InterruptedException {\n\n bonusActionPane.setVisible(true);\n PauseTransition delay = new PauseTransition(Duration.seconds(3));\n delay.setOnFinished( event -> bonusActionPane.setVisible(false) );\n delay.play();\n\n }", "private void showPaySuccessCardView() {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n paySuccessCardView.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n try {\r\n Thread.sleep(1200);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n paySuccessCardView.setVisibility(View.GONE);\r\n }\r\n });\r\n\r\n }", "public void click() {\n this.lastActive = System.nanoTime();\n }", "private void delayedHide(int delayMillis) {\n\n }", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "private void pause() {\n pause(myDelay);\n }", "void threadDelay() {\n saveState();\n if (pauseSimulator) {\n halt();\n }\n try {\n Thread.sleep(Algorithm_Simulator.timeGap);\n\n } catch (InterruptedException ex) {\n Logger.getLogger(RunBFS.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (pauseSimulator) {\n halt();\n }\n }", "public void act()\n {\n \n if (wait < 75)\n {\n wait = wait + 1;\n }\n \n \n \n \n \n \n if (wait == 75)\n {\n change();\n checkForBounce();\n checkForEdge();\n checkWin(); \n }\n \n \n }", "public void takeStep() {\n \t//System.out.println(\"\"+Math.abs(rmd.nextInt()%4));\n \tswitch(rmd.nextInt(4)){\t\n \tcase 0:\n \t\tcurPoint = curPoint.translate(-stepSize, 0);//go right\n \t\tbreak;\n \tcase 1:\n \t\tcurPoint = curPoint.translate(0, stepSize);//go down\n \t\tbreak;\n \tcase 2:\n \t\tcurPoint = curPoint.translate(stepSize, 0);//go left\n \t\tbreak;\n \tcase 3:\n \t\tcurPoint = curPoint.translate(0, -stepSize);//go up\n \t\tbreak;\n \t}\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(flag == true){\n\t\t\t\t\n\t\t\t\tssinView.postInvalidate();\n\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void restartViewChangeTimer(){\n revokeViewChange();\n scheduleViewChange();\n }", "private void WaitTalk() {\n // to restart as touched screen.\n if (this.mRestartF) this.RestartTalk();\n }", "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n sleep(3000);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n //sh.pivotStop.setPosition(.55);\n sh.hitRing();\n sleep(500);\n //sh.pivotDown();\n sh.hitRing();\n sleep(500);\n sh.withdraw();\n sh.lift.setPower(0);\n sh.lift.setPower(0);\n wobble.wobbleUp();\n sh.pivotStop.setPosition(1);\n loop.end();\n\n\n }", "public void updateScreen() {\n\t\t++this.panoramaTimer;\n\t}", "public void arrive() {\r\n\t\tif (creature.getxMove() == 0 && creature.getyMove() == 0){\r\n\t\t\tarriveTimer += System.currentTimeMillis() - lastMoveTimer;\r\n\t\t\tlastMoveTimer = System.currentTimeMillis();\r\n\t\t\tif(arriveTimer < arriveCooldown)\r\n\t\t\t\treturn;\r\n\t\t\tindex++;\r\n\t\t\tif (index > checkpoints.size()){\r\n\t\t\t\tindex = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected Void doInBackground(Void... ignore)\n {\n while (!isCancelled())\n {\n SystemClock.sleep(100);\n long totalPlayDuration = mPrefCropTime * 1000;\n long totalDuration = totalPlayDuration + mPrefFadeOutTime * 1000;\n long currentDuration;\n //boolean wait = false;\n\n if (mPlayer.isPlaying())\n {\n mPauseCnt = 0;\n currentDuration = mPlayer.getCurrentPosition();\n\n if (currentDuration >= totalPlayDuration) // TODO!!\n {\n if(!mPaused)\n {\n // wait for x seconds\n pause(mPrefFadeOutTime);\n waitFor(mPrefPauseTime);\n }\n\n //publishProgress(0L, totalDuration, currentDuration);\n //SystemClock.sleep(mPrefPauseTime * 1000);\n //nextSong = true;\n }\n\n publishProgress(totalDuration, currentDuration);\n }\n }\n return null;\n }", "public void resolveTurnCountdown() {\n resolveTurn = true;\n resolveTurnTimer = 130;\n }", "DurationTracker timeSpentTaskWait();", "protected boolean performActions() {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n // This is simulation, so we will not handle it\n }\n\n return Math.rint(Math.random()) % 20 != 0;\n }", "public void nextFrame() {\r\n frame++;\r\n if( frame > lastEditFrame + frameDelay ) {\r\n // The last transaction is 'done'\r\n transaction = null;\r\n }\r\n }", "@Override\n\t\t\t\t\tpublic void onFinish(long time) {\n\t\t\t\t\t\ttextView.append(\"get \" + testPicNum + \" pictures: use \" + time + \"ms\" + \"\\n\");\t\n\t\t\t\t\t}", "public synchronized void goNow() {\n\t if ((waitingCarSize > 0) && (count > 0) && (count < waitingCarSize) && (buttonPressed == false)){\n\t buttonPressed = true;\n\t }\n\t notifyAll();\n\t return;\n }", "public void cont(){\n\t\t//System.out.println(\"SimulationTime.cont\");\n\t\tif(this.running && this.pause){\n\t\t\tthis.pause = false;\n\t\t}\n\t}", "@Override\n public void onCompletion(MediaPlayer mp) {\n mp.release();\n if (!gameOver && !backLayoutVisible) { // Handling the scenario in which user pressed back button while start whistle\n startCountdown(gameDuration, tickTime);\n setFormula();\n vsOverlayView.setClickable(false);\n mainGameView.setClickable(true);\n } else {\n //Countdown stopped because of stopped button\n countDownCouldNotBegin = true;\n }\n }", "@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameStatus.restartTimer();\n View v1 = findViewById(R.id.game_layout);\n View v = findViewById(R.id.dlb_game_over_view);\n v.setVisibility(View.GONE);\n gameView.resetLife();\n gameView.setRunning(true);\n v1.setVisibility(View.VISIBLE);\n }\n });\n }", "public void takeTurn(IViewRequestor requestor);", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}", "public void f_restart() {\n\n result.setVisibility(View.GONE);\n request_button_content.setVisibility(View.VISIBLE);\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n pulsator_left.setVisibility(View.VISIBLE);\n pulsator_up.setVisibility(View.VISIBLE);\n pulsator_right.setVisibility(View.VISIBLE);\n\n visible = false;\n TransitionSet set_request = new TransitionSet()\n .addTransition(new Scale(0.7f))\n .addTransition(new Fade())\n .setInterpolator(visible ? new LinearOutSlowInInterpolator() :\n new FastOutLinearInInterpolator());\n\n TransitionManager.beginDelayedTransition(request_button_content, set_request);\n btnClick.setVisibility(visible ? View.GONE : View.VISIBLE);\n }\n }, 250);\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.seekTo(mBreakPos);\r\n\t\t\t\t\t\tmVideoContrl.start();\r\n\t\t\t\t\t\tisBreakDialogDissmiss = true;\r\n\t\t\t\t\t\tisChangeNotStart = true;\r\n\r\n\t\t\t\t\t\t// start_3Dmode();\r\n\r\n\t\t\t\t\t}", "public void run()\n {\n\n int sleepTime = 10; // milliseconds (tune this value accordingly)\n\n int totalTimeShown = 0;\n while(keepGoing)\n {\n // Force this window to the front.\n\n toFront();\n\n // Sleep for \"sleepTime\"\n\n try\n {\n Thread.sleep(sleepTime);\n }\n catch(Exception e)\n {}\n\n // Increment the total time the window has been shown\n // and exit the loop if the desired time has elapsed.\n\n totalTimeShown += sleepTime;\n if(totalTimeShown >= milliseconds)\n break;\n }\n\n // Use SwingUtilities.invokeAndWait to queue the disposeRunner\n // object on the event dispatch thread.\n\n try\n {\n SwingUtilities.invokeAndWait(disposeRunner);\n }\n catch(Exception e)\n {}\n }", "private void waitConstant() {\r\n \t\tlong\tlwait = CL_FRMPRDAC;\r\n \t\t// drawing is active?\r\n \t\tif(m_fHorzShift == 0 && m_lTimeZoomStart == 0\r\n \t\t\t\t&& GloneApp.getDoc().isOnAnimation() == false)\r\n \t\t\tlwait = CL_FRMPRDST;\t\t// stalled\r\n \r\n \t\t// make constant fps\r\n \t\t// http://stackoverflow.com/questions/4772693/\r\n \t\tlong\tldt = System.currentTimeMillis() - m_lLastRendered;\r\n \t\ttry {\r\n \t\t\tif(ldt < lwait)\r\n \t\t\t\tThread.sleep(lwait - ldt);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t}", "@Test\n public void setProgression() {\n final int progress = 16;\n final String progressText = \"0:16\";\n expandPanel();\n onView(withId(R.id.play)).perform(click()); //Pause playback\n\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n onView(withId(R.id.mpi_progress)).check(matches(withText(progressText)));\n assertTrue(getPlayerHandler().getTimeElapsed() == progress);\n }", "public void frameForward()\n{\n stop();\n setTime(getTime() + getInterval());\n}", "@Override\n public void start(Stage stage) throws Exception {\n StackPane pane = new StackPane();\n Button sendMove = new Button(\"Send Move\");\n Button receiveMove = new Button(\"Wait(Received_Move)\");\n Button stopAll = new Button(\"Stop All\");\n Label label2 = new Label();\n Label label1 = new Label();\n Label label3 = new Label();\n Label label4 = new Label();\n VBox hbox = new VBox(label4, label1, label2, label3);\n hbox.setSpacing(15);\n VBox box = new VBox(sendMove, receiveMove, stopAll, hbox);\n box.setSpacing(15);\n\n pane.getChildren().addAll(box);\n Scene scene = new Scene(pane, 500, 500);\n\n long veryInitialTime = System.currentTimeMillis();\n// clickedTime = veryInitialTime;\n backgroundStopWatch.schedule(new TimerTask() {\n public void run() {\n Platform.runLater(new Runnable() {\n public void run() {\n// timer2.cancel();\n label4.setText(String.valueOf(System.currentTimeMillis() - veryInitialTime));//+ (System.currentTimeMillis() - initialTimer));\n\n }\n });\n }\n }, 0, 500);\n\n receiveMove.setOnAction((event) -> {\n// delChange += delTimer;\n// delChange = 5000;\n\n clickedTime = System.currentTimeMillis();\n\n waitingForMyMoveStopWatch.cancel();\n waitingForReceiverMoveStopWatch = new Timer();\n// clickedTime = System.currentTimeMillis();\n\n waitingForReceiverMoveStopWatch.schedule(new TimerTask() {\n public void run() {\n Platform.runLater(new Runnable() {\n public void run() {\n// timer2.cancel();\n label3.setText(\"(Do after receiving Move)My Move timer ... (my Move) ...\" + String.valueOf(System.currentTimeMillis() - clickedTime));//+ (System.currentTimeMillis() - initialTimer));\n\n }\n });\n }\n }, 0, 500);\n// clickedTime = System.currentTimeMillis();\n// System.out.println(\"Button1 .. delTimer .. \" + delTimer + \" .. delChange .. \" + delChange);\n toDoTaskTimer.cancel();\n toDoTaskTimer = new Timer();\n toDoTaskTimer.schedule(new TimerTask() {\n public void run() {\n Platform.runLater(new Runnable() {\n public void run() {\n waitingForReceiverMoveStopWatch.cancel();\n// backgroundStopWatch.cancel();\n label3.setText(\"I didn't make move ... YOU LOSE AFTER (time) (to do)10s \");//+ (System.currentTimeMillis() - initialTimer));\n\n// label3.setText(\"(Move not received in due time) (time) (to do)10s \");//+ (System.currentTimeMillis() - initialTimer));\n }\n });\n }\n }, delChange);\n });\n\n sendMove.setOnAction((event) -> {\n// delChange = 5000;\n clickedTime = System.currentTimeMillis();\n waitingForReceiverMoveStopWatch.cancel();\n waitingForMyMoveStopWatch = new Timer();\n waitingForMyMoveStopWatch.schedule(new TimerTask() {\n public void run() {\n Platform.runLater(new Runnable() {\n public void run() {\n// timer2.cancel();\n label2.setText(\"(Do After Send MyMove) (waiting for opponentMove) ...\" + String.valueOf(System.currentTimeMillis() - clickedTime));//+ (System.currentTimeMillis() - initialTimer));\n\n }\n });\n }\n }, 0, 500);\n// System.out.println(\"Button2 .. delTimer .. \" + delTimer + \" .. delChange .. \" + delChange);\n toDoTaskTimer.cancel();\n toDoTaskTimer = new Timer();\n toDoTaskTimer.schedule(new TimerTask() {\n public void run() {\n Platform.runLater(new Runnable() {\n public void run() {\n waitingForMyMoveStopWatch.cancel();\n// backgroundStopWatch.cancel();\n// label3.setText(\"I didn't make move ... YOU LOSE AFTER (time) (to do)10s \");//+ (System.currentTimeMillis() - initialTimer));\n label2.setText(\"(Move not received in due time) (time) (to do)10s \");//+ (System.currentTimeMillis() - initialTimer));\n\n }\n });\n }\n }, delChange);\n });\n\n stopAll.setOnAction((event) -> {\n// toDoTaskTimer.cancel();\n// backgroundStopWatch.cancel();\n// waitingForReceiverMoveStopWatch.cancel();\n// sendMove.fi\n });\n stage.setScene(scene);\n stage.show();\n\n }", "private void driveForwardTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeDriveForward){\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.driveForwardSpeed, Config.Auto.driveForwardSpeed);\r\n\t\t\tSystem.out.println(timer.get());}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, 0, 0);\r\n\t\t\tautoStep++;\r\n\t\t}\r\n\t}", "public void act() {\n boolean willMove = canMove();\n if (isEnd && !hasShown) {\n String msg = stepCount.toString() + \" steps\";\n JOptionPane.showMessageDialog(null, msg);\n hasShown = true;\n } else if (willMove) {\n move();\n stepCount++;\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile((second--)!=1) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t\t\t\t @Override\r\n\t\t\t\t\t\t public void run() {\r\n\t\t\t\t\t\t\t SetTime();\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} 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\tsubmitbtn.setDisable(true);\r\n\t\t\tbackbtn.setDisable(false);\r\n\t\t\t}", "@Override\n public void run() {\n if (playerCard.getIsFlippedOpen() && !playerCard.getMatchedStatus()){\n prevCardFlipped = null;\n flipClose(playerCard); //flip close this card\n cardFlippedCount++; //Enable the next click (card flipped)\n }\n }", "public void act() \r\n {\r\n addDrone();\r\n if(droneTimer>0)\r\n {\r\n droneTimer--;\r\n }\r\n }", "public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }", "private void doLastTurn()\n\t{\n\t\tInteger time = turn;\n\n\t\tstartEnterScore(time);\n\t\tdisposeFrameMap();\n\n\t\ttimer.cancel();\n\t}", "public void frameBackward()\n{\n stop();\n setTime(getTime() - getInterval());\n}", "public void setNextActivateView(OwView nextView_p) throws Exception\r\n {\n\r\n }", "@Override\r\n public void pause() {}", "protected void pause(){}", "public void step(){\r\n\t\tcurrentTime++;\r\n\t\tfor (TimeObserver t : observers) {\r\n\t\t\tt.timeChanged(currentTime);\r\n\t\t}\r\n\t}", "public void show(int delayTime) {\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n switch (mType) {\n case TYPE_First:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, 110))\n .addMessage(mActivity.getString(R.string.switch_map),\n ScreenUtils.dpToPx(mActivity, -40)\n ,ScreenUtils.dpToPx(mActivity, 130))\n .addIndicateImg(R.mipmap.guide_left,\n ScreenUtils.dpToPx(mActivity,60),\n ScreenUtils.dpToPx(mActivity,40))\n .addMessage(mActivity.getString(R.string.open_menu),\n ScreenUtils.dpToPx(mActivity,85),\n ScreenUtils.dpToPx(mActivity,60)).show();\n\n break;\n\n case TYPE_TWICE:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right2,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, -170))\n\n .addMessage(mActivity.getString(R.string.see_the_history),\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-185)).\n\n addIndicateImg(R.mipmap.guide_down,\n ScreenUtils.dpToPx(mActivity,-105),\n ScreenUtils.dpToPx(mActivity,-135))\n\n .addMessage(mActivity.getString(R.string.navigate_to_the_watch),\n ScreenUtils.dpToPx(mActivity,-115),\n ScreenUtils.dpToPx(mActivity,-160)).show();\n break;\n\n case TYPE_THIRD:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right2,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-230))\n .addMessage(\"设置安全区域\",\n ScreenUtils.dpToPx(mActivity,-50),\n ScreenUtils.dpToPx(mActivity,-250))\n .addIndicateImg(R.mipmap.guide_down,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, -130))\n .addMessage(\"立即刷新位置\",\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-155))\n .show();\n }\n }\n }, delayTime);\n }" ]
[ "0.6123593", "0.6029815", "0.6018474", "0.6014221", "0.5927799", "0.5821549", "0.5767648", "0.56828713", "0.5664195", "0.56542206", "0.55894613", "0.5575205", "0.55618936", "0.55359167", "0.5527708", "0.552224", "0.552033", "0.5502497", "0.54970366", "0.548431", "0.54703295", "0.5468073", "0.5457353", "0.5447628", "0.5432661", "0.54304546", "0.5416179", "0.5413537", "0.5412597", "0.54015684", "0.5393462", "0.5391213", "0.5362546", "0.5358416", "0.5354286", "0.5352382", "0.53474605", "0.53272355", "0.53243524", "0.53208214", "0.5318718", "0.5313324", "0.53115374", "0.5310701", "0.5309812", "0.530168", "0.5296421", "0.5295218", "0.529353", "0.5292346", "0.52872247", "0.5270341", "0.526888", "0.5258622", "0.5257208", "0.52476513", "0.5246764", "0.5246725", "0.52431965", "0.5237197", "0.5230111", "0.5208155", "0.5207754", "0.5204717", "0.5199377", "0.51968575", "0.51953125", "0.51719886", "0.51676434", "0.5167617", "0.51579016", "0.51534826", "0.5148814", "0.5146714", "0.5145641", "0.51407534", "0.51374346", "0.5134125", "0.5133805", "0.51329315", "0.5127427", "0.51252544", "0.51233524", "0.5116999", "0.51164097", "0.5113697", "0.51121944", "0.51043963", "0.51040614", "0.51025945", "0.5101412", "0.51001906", "0.50991845", "0.5098691", "0.509495", "0.5090582", "0.5087817", "0.5087678", "0.50867516", "0.5086272", "0.5080113" ]
0.0
-1
Start a timer to cycle through child views
public void startFlipping() { if (!mKeepFlipping) { mKeepFlipping = true; showOnly(mWhichChild); Message msg = mHandler.obtainMessage(FLIP_MSG); mHandler.sendMessageDelayed(msg, mFlipInterval); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void timerMethod() {\n getActivity().runOnUiThread(refreshListView);\n }", "private void timerFired() {\n\t\t\n\t\tArrayList<CedView> tempList = _pendingRefresh;\n\t\t_pendingRefresh = new ArrayList<>();\n\t\t\n\t\tfor (CedView view : tempList) {\n\t\t\tview.refresh();\n\t\t}\n\t\ttempList = null;\n\t}", "public void autoSwipeViews() {\n mTimer = new Timer();\n mTimer.scheduleAtFixedRate(new SliderTimer(), 10000, 10000);\n }", "public void ButtonStartClick(View view){\n\n final MyCountDownTimer cdt = new MyCountDownTimer(180000, 1000);\n\n cdt.start();\n }", "public void restartViewChangeTimer(){\n revokeViewChange();\n scheduleViewChange();\n }", "void start_timer(){\n tv_verify_downtime.setVisibility(View.VISIBLE);\n countDownTimer.start();\n }", "public void startpager() {\n\t\thandlers.postDelayed(runnable, 2000);\n// \t final Timer timer = new Timer();\n//\t TimerTask task = new TimerTask(){\n//\t public void run(){\n//\t\n//\t }\n//\t };\n//\t timer.schedule(task, 0,2000);\n\t}", "@Override\n public void run() {\n if (mImagePagerAdapter.getImageIdList().size() > 0) {\n if (i == 0) {\n i = 1;\n viewPager.setInterval(2000);\n viewPager.startAutoScroll();\n }\n }\n }", "protected void onCycle() {\n\n }", "@Override\n public void ref() {\n new Handler().post(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n if (mImagePagerAdapter.getImageIdList().size() > 0) {\n if (i == 0) {\n i = 1;\n viewPager.setInterval(2000);\n viewPager.startAutoScroll();\n }\n }\n }\n });\n }", "public void beginTimer(View view) {\n if (!isRunning) {\n isRunning = true;\n startButton.setText(R.string.stop_text);\n startTime = System.currentTimeMillis();\n timeHandler.removeCallbacks(startTimer);\n timeHandler.postDelayed(startTimer, 0);\n } else {\n startButton.setText(R.string.go_button);\n stopTimer();\n }\n }", "private void startTimerAfterCountDown() {\n \t\thandler = new Handler();\n \t\tprepareTimeCountingHandler();\n \t\thandler.post(new CounterRunnable(COUNT_DOWN_TIME));\n \t}", "@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameStatus.restartTimer();\n View v1 = findViewById(R.id.game_layout);\n View v = findViewById(R.id.dlb_game_over_view);\n v.setVisibility(View.GONE);\n gameView.resetLife();\n gameView.setRunning(true);\n v1.setVisibility(View.VISIBLE);\n }\n });\n }", "public TimerView(final Context context, final Timer timer, ViewGroup parent){\n\n //Get the context\n super(context);\n this.mainActivity = (MainActivity) context;\n LayoutInflater inflater = LayoutInflater.from(context);\n //Inflate the template into the timer layout and attach it to parent\n this.timerContainer = (LinearLayout) inflater.inflate(R.layout.timer,parent,false);\n parent.addView(timerContainer);\n //Set the timer to the type desired\n this.timer = timer;\n //Then set the timer to the initial time\n this.timeText = (TextView) timerContainer.findViewById(R.id.numberView);\n timeText.setText(timer.getStartingTime());\n //Set the buttons of the template to this object button variables\n this.playButton = (ImageButton) timerContainer.findViewById(R.id.playButton);\n this.eraseButton = (ImageButton) timerContainer.findViewById(R.id.eraseButton);\n this.resetButton = (ImageButton) timerContainer.findViewById(R.id.resetButton);\n\n\n playButton.setOnTouchListener(new OnSwipeTouchListener(mainActivity, playButton){\n\n @Override\n public void onSwipeLeft() {\n mainActivity.setTimerFragment();\n }\n\n @Override\n public void onSwipeRight() {\n mainActivity.finish();\n }\n\n public void onClick(View v){\n\n ImageButton play = (ImageButton) v;\n\n if(!timeText.getText().toString().equals(\"00:00\")){\n\n if(play.getTag().equals(\"play\")){\n\n timer.setUpTimer(timeText);\n timer.startTimer();\n play.setImageResource(R.drawable.ic_pause_white_48dp);\n play.setTag(\"pause\");\n }\n\n else if(play.getTag().equals(\"pause\")){\n\n timer.cancelTimer();\n play.setImageResource(R.drawable.ic_play_arrow_white_48dp);\n play.setTag(\"play\");\n }\n }\n }\n });\n\n resetButton.setOnTouchListener(new OnSwipeTouchListener(mainActivity, resetButton){\n\n @Override\n public void onSwipeLeft() {\n mainActivity.setTimerFragment();\n }\n\n @Override\n public void onSwipeRight() {\n mainActivity.finish();\n }\n\n public void onClick(View v){\n\n timer.cancelTimer();\n timer.setUpTimer(timeText);\n resetTimerView();\n }\n });\n\n eraseButton.setOnTouchListener(new OnSwipeTouchListener(mainActivity, eraseButton){\n\n @Override\n public void onSwipeLeft() {\n mainActivity.setTimerFragment();\n }\n\n @Override\n public void onSwipeRight() {\n mainActivity.finish();\n }\n\n public void onClick(View v){\n\n timer.cancelTimer();\n removeTimerView();\n int posInArray = mainActivity.getTimerArray().indexOf(TimerView.this);\n if(posInArray!=-1){\n //Toast.makeText(mainActivity, \"element no\"+ posInArray+\".\", Toast.LENGTH_SHORT).show();\n mainActivity.getTimerArray().remove(posInArray);\n if(mainActivity.getTimerArray().size()==0){\n mainActivity.findViewById(R.id.tutorial).setVisibility(View.VISIBLE);\n }\n\n }\n else{\n Toast.makeText(mainActivity, \"element not in array\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n timeText.setOnTouchListener(new OnSwipeTouchListener(mainActivity, timeText){\n\n @Override\n public void onSwipeLeft(){\n\n mainActivity.setTimerFragment();\n }\n @Override\n public void onSwipeRight(){\n\n mainActivity.finish();\n }\n });\n }", "public void startAnimation() {\n timer.start();\n }", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_timer,container,false);\n btnNavFrag2 = (Button) view.findViewById(R.id.btnNavFrag2);\n btnNavFrag2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Toast.makeText(getActivity(),R.string.menu_about, Toast.LENGTH_SHORT).show();\n ((TrainingActivity)getActivity()).setViewPager(1);\n }\n });\n\n\n this.routineNum = TrainingActivity.routineNum;\n countDownText = view.findViewById(R.id.countdown);\n countdownButton = view.findViewById(R.id.countdown_button);\n currentExercise = view.findViewById(R.id.current_exercise);\n workOutText = view.findViewById(R.id.routine_title);\n progress = view.findViewById(R.id.progress_bar);\n progress.setProgress(0);\n routine = routineArrayList.get(routineNum);\n\n countdownButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startStop();\n }\n });\n\n\n exerciseArray = routine.getExercises();\n\n workOutText.setText(routine.toString());\n\n current = exerciseArray.get(index);\n\n if(current.getBreakDurationMS()>0){\n hasbreak = current.getBreakDurationMS();\n }\n\n//\n//\n//\n if(current.getDurationMS()>0){\n timeleftmilliseconds=current.getDurationMS();\n }\n\n exercisecount= exerciseArray.size();\n\n\n int temp = exercisecount;\n\n for (int j=0;j<exerciseArray.size();j++){\n if(exerciseArray.get(j).getBreakDurationMS()>0){\n temp++;\n }\n }\n progress.setMax(temp);\n\n\n currentExercise.setText(getString(R.string.label_current_exercise)+\" \"+ current.toString());\n\n updateTimer();\n\n return view;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tif(mVideoView != null && mVideoView.isPlaying())\n\t\t\t\t\tstartTimer();\n\t\t\t}", "public void run() {\r\n\t\tnotifyViews();\r\n\t\tfor (int i = 0; i < 100000; i++) {\r\n\t\t\ttick();\r\n\t\t}\r\n\t}", "public void startGameView(View view) {\r\n Log.d(TAG, \"button pressed\");\r\n startTime = System.currentTimeMillis();\r\n\r\n gameRunning = true;\r\n\r\n// startTimer();\r\n startRegTimer();\r\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n private void animateViewsIn() {\n // setup random initial state\n ViewGroup root = findViewById(R.id.ll_consumer_main_container);\n float maxWidthOffset = 2f * getResources().getDisplayMetrics().widthPixels;\n float maxHeightOffset = 2f * getResources().getDisplayMetrics().heightPixels;\n Interpolator interpolator =\n AnimationUtils.loadInterpolator(this, android.R.interpolator.linear_out_slow_in);\n Random random = new Random();\n int count = root.getChildCount();\n for (int i = 0; i < count; i++) {\n View view = root.getChildAt(i);\n view.setVisibility(View.VISIBLE);\n view.setAlpha(0.85f);\n float xOffset = random.nextFloat() * maxWidthOffset;\n if (random.nextBoolean()) {\n xOffset *= -1;\n }\n view.setTranslationX(xOffset);\n float yOffset = random.nextFloat() * maxHeightOffset;\n if (random.nextBoolean()) {\n yOffset *= -1;\n }\n view.setTranslationY(yOffset);\n\n // now animate them back into their natural position\n view.animate()\n .translationY(0f)\n .translationX(0f)\n .alpha(1f)\n .setInterpolator(interpolator)\n .setDuration(1000)\n .start();\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mainView = inflater.inflate(R.layout.fragment_leftrightmind, container, false);\n\n\n buttonStartTime = mainView.findViewById(R.id.button_timerview_start);\n buttonStopTime = mainView.findViewById(R.id.button_timerview_stop);\n r = mainView.findViewById(R.id.right);\n c = mainView.findViewById(R.id.cross);\n\n textViewShowTime = mainView.findViewById(R.id.textView_timerview_time);\n myt=mainView.findViewById(R.id.mytime);\n edtTimerValue = mainView.findViewById(R.id.textview_timerview_back);\n\n r.setOnClickListener(this);\n c.setOnClickListener(this);\n buttonStartTime.setOnClickListener(this);\n buttonStopTime.setOnClickListener(this);\n\n mProgressBar = mainView.findViewById(R.id.progressbar_timerview);\n mProgressBar1 = mainView.findViewById(R.id.progressbar1_timerview);\n chronometer = mainView.findViewById(R.id.chronometer);\n chronometer.setOnChronometerTickListener(new Chronometer.OnChronometerTickListener() {\n @Override\n public void onChronometerTick(Chronometer chronometerChanged) {\n chronometer = chronometerChanged;\n String currentTime = chronometer.getText().toString();\n if (currentTime.equals(\"02:00\")) //put time according to you\n {\n Log.d(\"TAG\", \"chronometer stop\");\n chronometer.stop();\n timeExcced();\n }\n }\n });\n\n\n chooseRandom();\n callTimer();\n\n return mainView;\n }", "protected void prepareChildViews() {\n\n }", "public void startTimer() {\n animationTimer = new AnimationTimer() {\n @Override\n public void handle(final long now) {\n videoController.update(now);\n if (videoController.isClosed()) {\n stopTimer();\n return;\n }\n roomController.update(now);\n timeLogController.update(now);\n }\n };\n timeLogController.clearInformationArea();\n animationTimer.start();\n }", "public void startClock(){\n\n final Timer gTimer = new Timer();\n gTimer.schedule(new TimerTask() {\n @Override\n public void run() {\n //Log.e(\"GLOBAL TIMER\",\"RUNNING...\");\n if(!((MainActivity)context).isPaused) {\n //if they are dead, remove them from list\n Iterator<EnemyCharacter> iter0 = enemyFactory.enemies.iterator();\n while (iter0.hasNext()) {\n EnemyCharacter enemyCharacter = iter0.next();\n\n if (enemyCharacter.isDead) {\n iter0.remove();\n }\n }\n\n gTime++;\n //Reset the power ups on set intervals.\n if (gTime % 2000 == 0) {\n canGrowl = true;\n bottomFragment = (BottomFragment) ((MainActivity) context).getSupportFragmentManager().findFragmentById(R.id.bottom_fragment);\n ((MainActivity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n bottomFragment.growl.setBackgroundResource(R.drawable.growl_btn);\n }\n });\n\n }\n if (gTime % 7000 == 0) {\n canTebow = true;\n bottomFragment = (BottomFragment) ((MainActivity) context).getSupportFragmentManager().findFragmentById(R.id.bottom_fragment);\n ((MainActivity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n bottomFragment.tebow.setBackgroundResource(R.drawable.tebow_btn);\n }\n });\n }\n if (gTime % 5000 == 0) {\n canAlberta = true;\n bottomFragment = (BottomFragment) ((MainActivity) context).getSupportFragmentManager().findFragmentById(R.id.bottom_fragment);\n ((MainActivity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n bottomFragment.alberta.setBackgroundResource(R.drawable.alberta_btn);\n }\n });\n }\n\n //INCREASE DIFFICULTY OVER TIME\n if (gTime < 1000) {\n difficulty = 1;\n } else if (gTime < 3000) {\n difficulty = 2;\n } else if (gTime < 7000) {\n difficulty = 3;\n } else if (gTime < 12000) {\n difficulty = 4;\n } else {\n difficulty = 5;\n }\n\n //USE DIFFICULTY TO CREATE ENEMIES\n if (difficulty == 1) {\n if (gTime % 400 == 0) {\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n }\n } else if (difficulty == 2) {\n if (gTime % 300 == 0) {\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n }\n } else if (difficulty == 3) {\n if (gTime % 300 == 0) {\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n }\n } else if (difficulty == 4) {\n if (gTime % 200 == 0) {\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n }\n } else {\n //Log.e(\"MAX\", \"Difficulty\");\n if (gTime % 100 == 0) {\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n enemyFactory.newEnemy(maxHeight, maxWidth, difficulty);\n }\n }\n\n //DO THE ANIMATIONS\n Iterator<EnemyCharacter> iter3 = enemyFactory.enemies.iterator();\n while (iter3.hasNext()) {\n EnemyCharacter enemyCharacter = iter3.next();\n\n //Do the animation and moving every ten times this timer runs\n if (gTime % 10 == 0) {\n enemyCharacter.animate();\n enemyCharacter.move();\n }\n }\n\n //TEBOW TO THE RESCUE WITH THE POWER OF JEEESUUUSS!\n if (drawTebow) {\n Iterator<EnemyCharacter> iter = enemyFactory.enemies.iterator();\n while (iter.hasNext()) {\n EnemyCharacter enemyCharacter = iter.next();\n if (enemyCharacter.x < maxWidth / 2) {\n tebow.setX(enemyCharacter.x - 100);\n tebow.setY(enemyCharacter.y);\n iter.remove();\n drawTebowCounter++;\n }\n if (drawTebowCounter >= 10) {\n drawTebow = false;\n drawTebowCounter = 0;\n }\n }\n }\n\n //REDRAW EVERYTHING CONSTANTLY\n ((MainActivity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n canvasView.invalidate();\n }\n });\n\n //CHECK TO SEE IF THE PLAYER LOST THE GAME OR IF ENEMY GETS AUTO-MAGICALLY CHOMPED\n Iterator<EnemyCharacter> iter1 = enemyFactory.enemies.iterator();\n while (iter1.hasNext()) {\n EnemyCharacter enemyCharacter = iter1.next();\n\n //Check if the player lost\n if (enemyCharacter.x < -50) {\n gameOver = true;\n }\n if (enemyCharacter.x < 50) {\n if ((enemyCharacter.y + enemyCharacter.bitmap.getHeight() / 2) > canvasView.albert.y) {\n if ((enemyCharacter.y + enemyCharacter.bitmap.getHeight() / 2) < canvasView.albert.y + canvasView.albert.bitmap.getHeight()) {\n //Enemy in range. Chomp him.\n enemyCharacter.isDead = true;\n score++;\n canvasView.albert.chomp(canvasView);\n bottomFragment = (BottomFragment) ((MainActivity) context).getSupportFragmentManager().findFragmentById(R.id.bottom_fragment);\n bottomFragment.updateScores();\n }\n }\n }\n }\n\n if (gameOver) {\n gTimer.purge();\n gTimer.cancel();\n restart();\n\n //launch play fragment dialog\n DialogFragment gameOverDialog = new PlayFragment.GameOverDialog();\n gameOverDialog.show(((MainActivity) context).getFragmentManager(), \"Game Over\");\n }\n }\n }//END OF GLOBAL TIMER RUN METHOD\n },0,10);\n }", "public void start0(View view) {\n start(0);\n }", "void onStart(int duration);", "public void start1(View view) {\n start(1);\n }", "public void Task(View view)\n {\n try {\n\n for(int i = 0; i <= 10; i++)\n {\n Thread.sleep(2000);\n Toast.makeText(this,\"Tarea Larga Procesada\", Toast.LENGTH_SHORT).show();\n }\n\n }catch (InterruptedException e)\n {\n e.printStackTrace(); // Imprime el error desde el stack\n\n }\n }", "@FXML\r\n\t void countDown2() throws InterruptedException {\n\t\t\t countDownTimer.setVisible(true); // \"timer\" is a Text Object on screen\r\n\t\t\t text = countDownTimer.getText();\r\n\t\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t\t keyboardOff = false;\r\n\t\t\t \r\n\t\t\t Timer clock = new Timer();\r\n\t\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t\t public void run() {\r\n\t\t\t if(timeSeconds >= 0)\r\n\t\t\t {\r\n\t\t\t countDownTimer.setText(Integer.toString(timeSeconds));\r\n\t\t\t timeSeconds--; \r\n\t\t\t \r\n\t\t\t if(timeSeconds==0) keyboardOff=true;\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t clock.cancel();\r\n\t\t\t displayMessage.setText(\"TIME'S UP!\");\r\n\t\t\t DupMeClient.myPattern = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\t\tDupMeClient.opponentPattern = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\t\toutOf=0;\r\n\t\t\t\t\t\t\t\tsequencePivot=0;\r\n\t\t\t\t\t\t\t\tsecondTurn=false;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tinitialize();\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t }, 1000,1000);\r\n\t }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_count_down, container, false);\n tvCountDown = (TextView) root.findViewById(R.id.tv_count_down);\n\n mediaPlayer = MediaPlayer.create(getActivity(), R.raw.counting);\n mediaPlayer.start();\n new CountDownTimer(7000, 1000) {\n\n int count = 5;\n public void onTick(long millisUntilFinished) {\n tvCountDown.setText( count-- +\"\");\n\n if(tvCountDown.getText().toString().equals(\"0\")){\n tvCountDown.setText(\"GO!\");\n }\n }\n\n public void onFinish() {\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n ChronometerFragment chronometerFragment = new ChronometerFragment();\n chronometerFragment.setArguments(getArguments());\n fragmentTransaction.replace(R.id.fragment_container, chronometerFragment).commit();\n }\n\n }.start();\n\n return root;\n }", "private void TimerMethod() {\n this.runOnUiThread(Timer_Tick);\n }", "@Override\n public void run() {\n runOnUiThread(new Runnable() {\n public void run() {\n\n if (page > 5) {\n mViewPager.setCurrentItem(page);\n\n // In my case the number of pages are 5\n// timer.cancel();\n// // Showing a toast for just testing purpose\n// Toast.makeText(getApplicationContext(), \"Timer stoped\",\n// Toast.LENGTH_LONG).show();\n } else {\n mViewPager.setCurrentItem(page++);\n }\n }\n });\n\n }", "private void runTimer() {\n\n // Handler\n final Handler handler = new Handler();\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n if (playingTimeRunning) {\n playingSecs++;\n }\n\n handler.postDelayed(this, 1000);\n }\n });\n\n }", "private void setupAnimationTimer() {\n new AnimationTimer() {\n @Override\n public void handle(long l) {\n view.movePlayer();\n view.updateView();\n }\n }.start();\n\n // Timeline for UI stuff\n uiTimeline = new Timeline();\n\n KeyFrame keyStart = new KeyFrame(\n Duration.seconds(0),\n e -> view.updateUI((1160 / distance) * 0.005)\n );\n KeyFrame keyEnd = new KeyFrame(Duration.millis(5));\n\n uiTimeline.getKeyFrames().addAll(keyStart, keyEnd);\n uiTimeline.setCycleCount(Timeline.INDEFINITE);\n uiTimeline.setAutoReverse(false);\n\n countdownTimer = new Timeline(\n new KeyFrame(\n Duration.seconds(distance - (1160 / distance) * 0.005),\n e -> journeyComplete()\n )\n );\n\n // Timeline for asteroids\n Timeline asteroidTimer = new Timeline(\n new KeyFrame(Duration.millis(2000), e -> model.AsteroidPool.spawn())\n );\n asteroidTimer.setCycleCount(Timeline.INDEFINITE);\n asteroidTimer.play();\n }", "@FXML\r\n\t void countDown() throws InterruptedException {\n\t\t\t countDownTimer.setVisible(true); // \"timer\" is a Text Object on screen\r\n\t\t\t text = countDownTimer.getText();\r\n\t\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t\t keyboardOff = false;\r\n\t\t\t \r\n\t\t\t Timer clock = new Timer();\r\n\t\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t\t public void run() {\r\n\t\t\t if(timeSeconds >= 0)\r\n\t\t\t {\r\n\t\t\t countDownTimer.setText(Integer.toString(timeSeconds));\r\n\t\t\t timeSeconds--; \r\n\t\t\t \r\n\t\t\t if(timeSeconds==0) keyboardOff=true;\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t clock.cancel();\r\n\t\t\t try {\r\n\t\t\t\t\t\t\t\t\tturn2Start();\r\n\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t }, 1000,1000);\r\n\t }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(flag == true){\n\t\t\t\t\n\t\t\t\tssinView.postInvalidate();\n\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n protected void onResume() {\n mDjiGLSurfaceView.resume();\r\n \r\n mTimer = new Timer();\r\n Task task = new Task();\r\n mTimer.schedule(task, 0, 500); \r\n \r\n DJIDrone.getDjiMC().startUpdateTimer(1000);\r\n super.onResume();\r\n }", "public void start(){\n handler = new Handler(Looper.getMainLooper());\n handler.postDelayed(this, PERIOD);\n }", "private void animateViews(int duration) {\n if (headerText.getVisibility() == View.VISIBLE) {\n headerText.setVisibility(View.GONE);\n }\n if (spaconIcon.getVisibility() == View.VISIBLE) {\n spaconIcon.setVisibility(View.GONE);\n }\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //Do something after 1 second\n headerText.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fallingfromsky));\n headerText.setVisibility(View.VISIBLE);\n\n spaconIcon.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fadein_long));\n spaconIcon.setVisibility(View.VISIBLE);\n\n if (fillableLoader.getVisibility() == View.GONE) {\n fillableLoader.setVisibility(View.VISIBLE);\n }\n fillableLoader.start();\n }\n }, duration);\n\n\n }", "private void start_announce_timer() {\n if (rprocesses == null) {\n return;\n }\n // Start timers for all areas\n for (RoutingProcess rp : rprocesses.values()) {\n rp.start_announce_timer();\n }\n }", "public void act() \r\n {\r\n addDrone();\r\n if(droneTimer>0)\r\n {\r\n droneTimer--;\r\n }\r\n }", "private void startTimer() {\n\n //call renewWord function once the timer is on\n renewWord();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds, 50);\n countDownTimer.start();\n }", "@Override\n protected void onStart() {\n super.onStart();\n\n scheduledExecutorService = Executors.newSingleThreadScheduledExecutor();\n //每隔2秒钟切换一张图片\n\n scheduledExecutorService.scheduleWithFixedDelay(new ViewPagerTask(), 3, 4, TimeUnit.SECONDS);\n\n\n }", "public void step(){\r\n\t\tcurrentTime++;\r\n\t\tfor (TimeObserver t : observers) {\r\n\t\t\tt.timeChanged(currentTime);\r\n\t\t}\r\n\t}", "@Override protected void onPreExecute() {\n if (0 >= mInFlight++) {\n root.setBackgroundResource(R.anim.dots);\n ((AnimationDrawable) root.getBackground()).start();\n }\n }", "protected void runEachSecond() {\n \n }", "public void StartTimer() {\n\t\tCount = new Timer();\n\t}", "public void startClick (View view){\n \tif(stopped){\n \t\tstartTime = System.currentTimeMillis() - elapsedTime; \n \t}\n \telse{\n \t\tstartTime = System.currentTimeMillis();\n \t}\n \tmHandler.removeCallbacks(startTimer);\n mHandler.postDelayed(startTimer, 0);\n showStopButton();\n }", "@Override\n\tpublic void run() {\n\t\tfor(int i=0; i<views.length; i++){\n\t\t\tviews[i].setBackgroundColor(getResources().getColor(colors[(i+color_offset_index)%(views.length)]));\t\n\t\t}\n\n\t\thandler.postDelayed(this, 500);\n\t\tcolor_offset_index++;\n//\t\tif(color_offset_index >= views.length){//可有可无,即使溢出也从0重新开始\n//\t\t\tcolor_offset_index = 0;\n//\t\t}\n\t}", "public void anim() {\n // start the timer\n t.start();\n }", "public void start(){\r\n\t\tnew Thread(\r\n\t new Runnable() {\r\n\t public void run() {\r\n\t \twhile(true){\r\n\t \t\t try {\r\n\t \t Thread.sleep(200);\r\n\t \t } catch (Exception e) {\r\n\t \t e.printStackTrace();\r\n\t \t }\r\n\t \t // Functions.DEBUG(\r\n\t \t // \"child thread \" + new Date(System.currentTimeMillis()));\r\n\t \t repaint();\r\n\t \t}\r\n\t }\r\n\t }).start();\r\n\t}", "private void restartTimer() {\r\n\t\tthis.timer.restart();\r\n\t\tthis.countdown.restart();\r\n\t\tthis.controlView.setTimerSeconds(10);\r\n\t}", "public void reconstructViews() {\n for (int i = 0; i < getChildCount(); i++) {\n VerificationCustomItem item = (VerificationCustomItem) getChildAt(i);\n item.reconstructView();\n }\n }", "@Override\n public void onStart() {\n super.onStart();\n getWidgets(getView());\n loadAnimation();\n }", "@Override\n public void onResume() {\n super.onResume();\n autoUpdate = new Timer();\n autoUpdate.schedule(new TimerTask() {\n\n @Override\n public void run() {\n getActivity().runOnUiThread(new Runnable() {\n public void run() {\n updateLists();\n }\n });\n }\n }, 0, 15000); // updates each 40 secs\n }", "private void startTimer() {\n\t\ttimer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tint currTime = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tjavafx.application.Platform.runLater(new Runnable () {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tcurrTime++;\n\t\t\t\t\t\ttimerLabel.setText(\"Time: \" + currTime);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}, 1000, 1000);\n\t}", "public static void SwipeUp_Counter_hourly_submodules() throws Exception{\n\n\t\tfor(int i=1;i<=7 ;i++){\n\n\t\t\tSwipe();\n\n\n\t\t\tBoolean b=verifyElement(By.id(\"com.weather.Weather:id/hourly_more\"));\n\t\t\tif(b==true)\n\t\t\t{\n\t\t\t\tlogStep(\"Hourly page is presented on the screen\");\t\t\n\t\t\t\tAd.findElementById(\"com.weather.Weather:id/hourly_more\").click();\n\t\t\t\tlogStep(\"clicked the hourly page link\");\n\t\t\t\tAd.findElementByClassName(\"android.widget.ImageButton\").click();\n\t\t\t\tThread.sleep(5000);\n\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Module is not present scroll down\");\n\t\t\t}\n\n\n\n\t\t}\n\t}", "@Override\n\tprotected void onManagedUpdate(float pSecondsElapsed) {\n\t\tsuper.onManagedUpdate(pSecondsElapsed);\n\t\tif(run){\n\t\t\tif (mAdapter == null && mAdapter.getCount() == 0)\n\t\t\t\treturn;\n\t\t\tscrollByX(scrollVelocity);\n\t\t}\n\t}", "public void showTimer(){\n mTimerProgressBar.setVisibility(View.VISIBLE);\n mTimerText.setVisibility(View.VISIBLE);\n }", "public void run() {\r\n System.out.println(\"Start sim\");\r\n for (; isRunning;) {\r\n //int horLaneNum = optView.getUserHorNum();\r\n //if (horLaneNum == 1) {\r\n horX++;\r\n horSTX = horSTX;\r\n horSTY = horSTY;\r\n verY++;\r\n view.repaint();\r\n try {\r\n Thread.sleep(10);\r\n }\r\n catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "private void startTimer()\n {\n if (timer == null)\n {\n timer = new CountDownTimer(TIMER_MILLI_SEC, 1000)\n {\n @Override\n public void onTick(long l)\n {\n timerText.setText(\"\" + l / 1000);\n }\n\n @Override\n public void onFinish()\n {\n // Let P2 play\n if (secondPlayer instanceof IAPlayer)\n {\n ((IAPlayer) secondPlayer).playRandom();\n }\n // Animations and full results\n announceRoundResult();\n\n // Hide timer\n timerText.setVisibility(View.GONE);\n gameControlButton.setVisibility(View.VISIBLE);\n }\n };\n }\n\n // Clean UI state\n gameControlButton.setVisibility(View.INVISIBLE);\n timerText.setVisibility(View.VISIBLE);\n\n drawIcon.setVisibility(View.INVISIBLE);\n firstCup.setVisibility(View.INVISIBLE);\n secondCup.setVisibility(View.INVISIBLE);\n\n // Reset users actions\n resetActionButtonsState();\n firstPlayer.resetLastAction();\n secondPlayer.resetLastAction();\n\n // First player plays first\n if (firstPlayer instanceof IAPlayer)\n {\n ((IAPlayer) firstPlayer).playRandom();\n }\n\n // Start count down\n timer.start();\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tpostInvalidate();\r\n\t\t\t//postDelayed(this, SCROLLER_DISTANCE);\r\n\t\t}", "@Override\r\n\tprotected void onResume() {\n\t\tmTextView.postDelayed(animation_runnable, 1000);\r\n\t\tsuper.onResume();\r\n\t}", "public void start()\r\n {\r\n\r\n debug(\"start() all timers\");\r\n // Get the Index of the Last Shown TabPane, \r\n // As this method could be called more than once\r\n int index = tabPane.getSelectedIndex();\r\n startupWatchListTimers(index);\r\n debug(\"start() all timers - complete\");\r\n }", "private void startTime()\n {\n timer.start();\n }", "@Override\n public void run() {\n drawComponents();\n // Ve lai sau 1p\n drawComponentsHandler.postDelayed(drawComponentsRunnable, 60000);\n }", "public static void SwipeUp_Counter_Daily_submodule() throws Exception{\n\n\t\tfor(int i=1;i<=7 ;i++){\n\n\t\t\tSwipe();\n\n\t\t\tBoolean b=verifyElement(By.id(\"com.weather.Weather:id/daily_more\"));\n\t\t\tif(b==true)\n\t\t\t{\n\t\t\t\tlogStep(\"Daily page is presented on the screen\");\n\t\t\t\tAd.findElementById(\"com.weather.Weather:id/daily_more\").click();\n\t\t\t\tlogStep(\"clicked the Daily page link\");\n\t\t\t\tAd.findElementByClassName(\"android.widget.ImageButton\").click();\n\t\t\t\tThread.sleep(5000);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Module is not present scroll down\");\n\t\t\t}\n\n\n\t\t}\n\t}", "@Override\n public void initView() throws Exception {\n mGrowSeedlingsTimeTextView = (TextView) findViewById(R.id.GrowSeedlingsTime_TextView);\n mGrowSeedlingsTimeRecyclerView = (RecyclerView) findViewById(R.id.GrowSeedlingsTime_RecyclerView);\n }", "private void initTimer(){\r\n\t\ttimer = new Timer() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tdisplayNext();\r\n\t\t\t}\r\n\t\t};\r\n\t}", "private void startViewPagerThread() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n int i = 0;\n View[] viewFlippers = new View[mWorkoutIds.size()];\n while (i < mWorkoutIds.size()) {\n viewFlippers[i] = new ViewWorkout(ActivityStopWatch.this,\n mWorkoutGalleries.get(mWorkoutIds.get(i)));\n i++;\n }\n mCircularBarPager.setViewPagerAdapter(new AdapterPagerWorkout(\n viewFlippers));\n mLytContainerLayout.setVisibility(View.VISIBLE);\n mToolbar.setVisibility(View.VISIBLE);\n mPrgLoading.setVisibility(View.GONE);\n }\n });\n\n }", "public void Connect(View target)\n\t{\n fragmentTransaction = fragmentManager.beginTransaction();\n Fragment newFragment = new ConnectingFrag();\n fragmentTransaction.replace(R.id.toptoolbar, newFragment);\n fragmentTransaction.addToBackStack(null); \n fragmentTransaction.commit();\n System.out.println(\"ConnectingFrag\");\n\n Timer timer = new Timer();\n TimerTask task = new TimerTask()\n {\n @Override\n public void run()\n {\n fragmentTransaction = fragmentManager.beginTransaction();\n Fragment newFragment = new TopmenuOnlineFrag();\n fragmentTransaction.replace(R.id.toptoolbar, newFragment);\n fragmentTransaction.commit();\n System.out.println(\"TopmenuOnlineFrag\");\n }\n };\n\n timer.schedule(task, 1000*3);\n\t}", "private void startClock() {\r\n\t\tTimer timer = new Timer(500, new ActionListener() {\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent theEvent) {\r\n\t\t\t\tadvanceTime();\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n timer.setRepeats(true);\r\n timer.setCoalesce(true);\r\n timer.setInitialDelay(0);\r\n timer.start();\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_creditos, container, false);\n img1 = (ImageView) v.findViewById(R.id.imgZombie);\n img2 = (ImageView) v.findViewById(R.id.imgRick);\n img3 = (ImageView) v.findViewById(R.id.imgNegan);\n mainActivity = (MainActivity)getActivity(); //Para referenciar el mainActivity en esta clase\n\n //Peticion a PHP del servidor (preguntas.php) para descargar preguntas de la BBDD.....................................................\n GestorPreguntas peticionPreg = new GestorPreguntas();\n peticionPreg.pedirPreguntas(); //ejecutar URL\n\n timerTask = new TimerTask() {\n public void run() {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.v(\"CreditosFragment\",\"ENTRE!!! \");\n if (img1.getVisibility() == View.VISIBLE ) {\n img1.setVisibility(View.INVISIBLE);\n img2.setVisibility(View.VISIBLE);\n } else if (img2.getVisibility() == View.VISIBLE) {\n img2.setVisibility(View.INVISIBLE);\n img3.setVisibility(View.VISIBLE);\n }\n }\n });\n\n if (img3.getVisibility() == View.VISIBLE) {\n timer.cancel(); //Termina el tiempo\n mainActivity.cambiarFragment(2); //Se cambia a la vista de inicio\n }\n }\n };\n timer = new Timer();\n timer.schedule(timerTask, 1000, 1000); //(5000) Cuanto tiempo tarda la app en ejecutar la tarea. (10000) Cada cuánto tiempo está realizando la tarea\n\n return v;\n }", "public void testStart(View view) {\n //Toast.makeText(RecordLapActivity.this, \"TESTING START BUTTON\", Toast.LENGTH_LONG).show();\n mIsInZone = true;\n t.start();\n handler.postDelayed(updater, 30);\n }", "public void startUpdatingAnimation() {\n if (menu != null) {\n MenuItem menuItem = menu.findItem(R.id.action_refresh);\n if (menuItem != null && menuItem.getActionView() == null) {\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n RelativeLayout iv = (RelativeLayout) inflater.inflate(R.layout.ic_refresh, null);\n Animation rotation = AnimationUtils.loadAnimation(this, R.anim.rotate_refresh);\n rotation.setRepeatCount(Animation.INFINITE);\n iv.startAnimation(rotation);\n menuItem.setActionView(iv);\n }\n }\n }", "@Override\n public void run() {\n try {\n // Sleeping\n Thread.sleep(2800);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n\n startMainActivity();\n }", "@SuppressWarnings(\"UnusedParameters\")\r\n private void initInstances(View rootView, Bundle savedInstanceState) {\n ll_up_field = (LinearLayout) rootView.findViewById(R.id.ll_up_field);\r\n ll_content_timeline = (LinearLayout) rootView.findViewById(R.id.ll_content_timeline);\r\n timeline_progress_bar = (CrystalPreloader) rootView.findViewById(R.id.timeline_progress_bar);\r\n tv_selected_type = (TextView) rootView.findViewById(R.id.tv_selected_type);\r\n tv_selected_solution = (TextView) rootView.findViewById(R.id.tv_selected_solution);\r\n tv_result_start = (TextView) rootView.findViewById(R.id.tv_result_start);\r\n tv_result_end = (TextView) rootView.findViewById(R.id.tv_result_end);\r\n circle_image_1 = (CircleImageView) rootView.findViewById(R.id.circle_image_1);\r\n circle_image_2 = (CircleImageView) rootView.findViewById(R.id.circle_image_2);\r\n circle_image_3 = (CircleImageView) rootView.findViewById(R.id.circle_image_3);\r\n circle_image_4 = (CircleImageView) rootView.findViewById(R.id.circle_image_4);\r\n line_1 = (View) rootView.findViewById(R.id.line_1);\r\n line_2 = (View) rootView.findViewById(R.id.line_2);\r\n line_3 = (View) rootView.findViewById(R.id.line_3);\r\n line_4 = (View) rootView.findViewById(R.id.line_4);\r\n line_5 = (View) rootView.findViewById(R.id.line_5);\r\n fragment_timeline = (RelativeLayout) rootView.findViewById(R.id.fragment_timeline);\r\n profile_image = (CircleImageView) rootView.findViewById(R.id.profile_image);\r\n profile_image_weather = (CircleImageView) rootView.findViewById(R.id.profile_image_weather);\r\n profile_image_plant = (CircleImageView) rootView.findViewById(R.id.profile_image_plant);\r\n\r\n slide_in = AnimationUtils.loadAnimation(getContext(), R.anim.slide_in_right_season);\r\n slide_out = AnimationUtils.loadAnimation(getContext(), R.anim.slide_out_right_season);\r\n\r\n ll_content_timeline.setVisibility(View.INVISIBLE);\r\n\r\n Typeface mitr_light = Typeface.createFromAsset(getActivity().getAssets(), \"fonts/Mitr-Light.ttf\");\r\n Typeface mitr_regular = Typeface.createFromAsset(getActivity().getAssets(), \"fonts/Mitr-Regular.ttf\");\r\n tv_selected_type.setTypeface(mitr_regular);\r\n tv_selected_solution.setTypeface(mitr_regular);\r\n tv_result_start.setTypeface(mitr_light);\r\n tv_result_end.setTypeface(mitr_light);\r\n\r\n fragment_timeline.setOnTouchListener(swipeRight);\r\n\r\n int secondsDelayed = 1;\r\n new Handler().postDelayed(new Runnable() {\r\n public void run() {\r\n ll_content_timeline.setVisibility(View.VISIBLE);\r\n timeline_progress_bar.setVisibility(View.INVISIBLE);\r\n Animation anim = AnimationUtils.loadAnimation(getContext(), R.anim.up_from_buttom);\r\n ll_content_timeline.startAnimation(anim);\r\n }\r\n }, secondsDelayed * 500);\r\n\r\n setCircleImage();\r\n if(selectedOption.getSelectedPlantId() == 1){\r\n profile_image_plant.setImageResource(R.drawable.rice);\r\n } else if(selectedOption.getSelectedPlantId() == 2){\r\n profile_image_plant.setImageResource(R.drawable.corn);\r\n }\r\n tv_selected_type.setText(selectedOption.getSelectedType());\r\n tv_selected_solution.setText(selectedOption.getSelectedSolution());\r\n\r\n configSelected();\r\n showResult();\r\n }", "public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }", "public void start() {timer.start();}", "@FXML\r\n\t void countDownMessage2() throws InterruptedException {\n\t\t \tdisplayMessage.setText(\"3\"); \r\n\t\t \ttext = displayMessage.getText();\r\n\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t \r\n\t\t Timer clock = new Timer();\r\n\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t public void run() {\r\n\t\t if(timeSeconds >= 0)\r\n\t\t {\r\n\t\t \tdisplayMessage.setText(Integer.toString(timeSeconds));\r\n\t\t timeSeconds--; \r\n\t\t }\r\n\t\t else {\r\n\t\t clock.cancel();\r\n\t\t displayMessage.setText(\"DupMe!\");\r\n\t\t try {\r\n\t\t\t\t\t\t\t\tcountDown2();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t \r\n\t\t //do something here after says GO!\r\n\t\t wordCount.setVisible(true);\r\n\t\t wordMax.setVisible(true);\r\n\t\t slash.setVisible(true);\r\n\t\t counterBox.setVisible(true);\r\n\t\t yourPattern.setVisible(true);\r\n\t\t lastPattern.setVisible(true);\r\n\t\t }\r\n\t\t }\r\n\t\t }, 1000,1000);\r\n }", "public /* synthetic */ void lambda$createView$12() {\n this.watchForKeyboardEndTime = SystemClock.elapsedRealtime() + 1500;\n this.frameLayout.invalidate();\n }", "private void startTimer(){\n timer= new Timer();\r\n task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n waitDuration++;\r\n\r\n timerLabel.setText(Integer.toString(waitDuration));\r\n }\r\n };\r\n timer.scheduleAtFixedRate(task,1000,1000);\r\n }", "public void run() {\n\t\t\t\t\t\tif (__delayCounter == _delayCounter[0]) {\r\n\t\t\t\t\t\t\t_pageBook.showPage(__page);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "private void startTimer() {\n Timer.addTimeout(endTime, this);\n }", "private void findAllViews(View view) {\n recyclerView = view.findViewById(R.id.news_recycler_view);\n emptyView = view.findViewById(R.id.empty_view);\n progressBar = view.findViewById(R.id.progress_bar);\n swipeRefreshLayout = view.findViewById(R.id.swipe_container);\n }", "@Override\n\tpublic void refresh() {\n\t\thandler.postDelayed(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trefreshListView.stopRefresh();\n\t\t\t}\n\t\t}, 2000);\n\t\t\n\t}", "private void start() {\n _countdownBar = new TimeProgressBar((ProgressBar) findViewById(R.id.game_pb_countdown), _game);\n _gameView.setClickable(true);\n _startBtn.setEnabled(false);\n _game.startGame();\n _countdownBar.startTimer();\n }", "public void startMiniTimer() {\n long millisInFuture = 10000;\r\n long countDownInterval = 1000;\r\n phaseTwoTimer = new CountDownTimer(millisInFuture, countDownInterval) {\r\n public void onTick(long millisUntilFinished) {\r\n long millis = millisUntilFinished;\r\n\r\n // notifications for time\r\n if (millis <= 10000 && millis > 9001) {\r\n Toast.makeText(getActivity(), \"10\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 9000 && millis >= 8001) {\r\n Toast.makeText(getActivity(), \"9\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 8000 && millis >= 7001) {\r\n Toast.makeText(getActivity(), \"8\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 7000 && millis >= 6001) {\r\n Toast.makeText(getActivity(), \"7\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 6000 && millis >= 5001) {\r\n Toast.makeText(getActivity(), \"6\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 5000 && millis >= 4001) {\r\n Toast.makeText(getActivity(), \"5\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 4000 && millis >= 3001) {\r\n Toast.makeText(getActivity(), \"4\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 3000 && millis >= 2001) {\r\n Toast.makeText(getActivity(), \"3\", Toast.LENGTH_LONG).show();\r\n } else if (millis <= 2000 && millis >= 1001) {\r\n Toast.makeText(getActivity(), \"2\", Toast.LENGTH_LONG).show();\r\n } else {\r\n Toast.makeText(getActivity(), \"1\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n\r\n public void onFinish() {\r\n Toast.makeText(getActivity(), \"PHASE 2\", Toast.LENGTH_LONG).show(); // entering phase 2\r\n phase = 2;\r\n initTimer(rootView);\r\n drawNewBoards();\r\n }\r\n }.start();\r\n }", "public void startTimer() {\n // TODO = handle more aspects of the behaviour required by the specification\n System.out.println(\"starting timer\");\n initialHeroCastle();\n isPaused = false;\n // trigger adding code to process main game logic to queue. JavaFX will target\n // framerate of 0.3 seconds\n timeline = new Timeline(new KeyFrame(Duration.seconds(0.1), event -> {\n if (world.getMode() == -1){\n modeSelectionSwitchToMainMenu();\n }\n world.runTickMoves();\n world.runBattles();\n world.updateGoal();\n if (world.goalAchieved()) {\n world.gameOver();\n deadSwitchToMainMenu(true);\n return;\n }\n List<Soldier> soldiers = world.possiblySpawnSoldiers();\n for (Soldier s : soldiers) {\n loadSoldier(s);\n }\n List<BasicEnemy> deadEnemies = world.cleanEnemies();\n for (BasicEnemy e : deadEnemies) {\n reactToEnemyDefeat(e);\n }\n List<BasicEnemy> newEnemies = world.possiblySpawnEnemies();\n for (BasicEnemy newEnemy : newEnemies) {\n loadEnemies(newEnemy);\n }\n printThreadingNotes(\"HANDLED TIMER\");\n loopNumber.setText(\"Loop: \" + (int) world.getCurrentLoop().get());\n if (world.isCharacterDead()) {\n if (!world.useOneRing())\n deadSwitchToMainMenu(false);\n return;\n }\n if (world.isAtHeroCastle() && world.shouldShopAppear()) {\n System.out.println(\"At Hero Castle. Shopping!\");\n shopSwitchToMainMenu();\n }\n }));\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.play();\n }", "@Override\n public void run() {\n if (mItem != 0) {\n\n if (isFrist == true) {\n mCurrentItem = 0;\n isFrist = false;\n } else {\n if (mCurrentItem == bannerListView.size() - 1) {\n mCurrentItem = 0;\n } else {\n mCurrentItem++;\n }\n }\n viewpager.setCurrentItem(mCurrentItem);\n }\n viewpager.postDelayed(mPagerAction, 2500);\n }", "public void startTimer() {\n mStatusChecker.run();\n }", "abstract protected void refresh(long time);", "private void countdown(){\n timer = new CountDownTimer(timeLeft, 1000) {\n @Override\n public void onTick(long millisUntilFinished) {\n timeLeft = millisUntilFinished;\n updateTimerView();\n }\n @Override\n public void onFinish() {\n timeLeft = 0;\n updateTimerView();\n checkAnswer();\n }\n }.start();\n }", "public void startCountDown() {\r\n\t\ttimerLabel = new TextField();\r\n\t\tif(timer!=null){timer.cancel();}\r\n\t\ttimer = new Timer();\r\n\t\ttimerLabel.setStyle(\"-fx-text-fill:white\");\r\n\t\ttimerLabel.setFont(Font.font(\"Verdana\", FontWeight.BOLD, 15));\r\n\t\ttimerLabel.setBackground(Background.EMPTY);\r\n\t\ttimerLabel.setAlignment(Pos.TOP_RIGHT);\r\n\t\ttimerLabel.setEditable(false);\r\n\t\ttowersRegion.getChildren().add(2, timerLabel);\r\n\t\tcountDownRunning = true; // indicate that counting down started\r\n\t\t\t\r\n\t\ttimer.schedule(new TimerTask() { // timer task to update the seconds\r\n\t\t\t@Override\r\n\t\t public void run() {\r\n\t\t\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t \t timerLabel.setText(\"Time left: \" + countDown);\r\n\t\t countDown--;\r\n\t\t if (countDown < 0){timer.cancel();}\r\n\t\t\t}});}}, 1000, 1000); //Every 1 second\r\n\t\t \r\n\t\t timeline = new Timeline(new KeyFrame( // create a time line to remove the special brick effect after 7 seconds\r\n\t\t\t\t \t\tDuration.seconds(7), ae -> { removeEffectFromSpecialBrick();})); // lambda style\r\n\t\t timeline.play();\r\n\t}", "public void start() {\n if (animationTimer != null) {\n animationTimer.cancel();\n }\n animationTimer = new Timer();\n animationTimer.scheduleAtFixedRate(new AnimationTask(), 0, 25);\n }", "public TimerClass(ViewInterface view) {\n this.view = view;\n }", "public void startTimer() {\n\n if(mTimer == null) {\n mTimer = new Timer();\n }\n\n mElapsedTime = 0;\n mTimer.scheduleAtFixedRate(new TimerTask() {\n\n public void run() {\n mElapsedTime += 1; //increase every sec\n mTimerHandler.obtainMessage(TimerHandler.INCREASE_TIMER).sendToTarget();\n if (mLiveVideoBroadcaster == null || !mLiveVideoBroadcaster.isConnected()) {\n mTimerHandler.obtainMessage(TimerHandler.CONNECTION_LOST).sendToTarget();\n }\n }\n }, 0, 1000);\n }", "void startView();", "@Override\n public View newView(final Context context, Cursor cursor, ViewGroup parent) {\n View view = LayoutInflater.from(context).inflate(R.layout.activity_item, parent, false);\n Button positiveButton = (Button) view.findViewById(R.id.add_time);\n positiveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Object o = v.getTag();\n if (o == null || !(o instanceof ViewObjectTag)) {\n Toast.makeText(context, \"Cannot update time\", Toast.LENGTH_SHORT).show();\n }\n\n int id = ((ViewObjectTag) o).activityId;\n new IncrementActivityTimeAsyncTask(mDbHelper, id, 10)\n .executeOnExecutor(mBackgroundExecutor);\n if (mRefreshFuture == null || mRefreshFuture.isDone()) {\n mRefreshFuture = mBackgroundExecutor.schedule(\n mRefreshCursorRunnable, 2000, TimeUnit.MILLISECONDS);\n }\n }\n });\n\n Button negativebutton = (Button) view.findViewById(R.id.subtract_time);\n negativebutton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Object o = v.getTag();\n if (o == null || !(o instanceof ViewObjectTag)) {\n Toast.makeText(context, \"Cannot update time\", Toast.LENGTH_SHORT).show();\n }\n int id = ((ViewObjectTag) o).activityId;\n new IncrementActivityTimeAsyncTask(mDbHelper, id, -10).executeOnExecutor(\n mBackgroundExecutor);\n if (mRefreshFuture == null || mRefreshFuture.isDone()) {\n mRefreshFuture = mBackgroundExecutor.schedule(\n mRefreshCursorRunnable, 2000, TimeUnit.MILLISECONDS);\n }\n }\n });\n return view;\n }", "private void timerStart()\r\n { updateTimer.postDelayed(updateTimerTask, UPDATE_TIME); }", "public void startGame(View view) {\r\n start_flg = true;\r\n startLayout.setVisibility(View.INVISIBLE);\r\n\r\n // check if chrono is not running\r\n if (!running) {\r\n chronometer.setBase(SystemClock.elapsedRealtime());\r\n chronometer.start();\r\n running = true;\r\n }\r\n\r\n\r\n if (frameHeight == 0) {\r\n frameHeight = gameFrame.getHeight();\r\n frameWidth = gameFrame.getWidth();\r\n initialFrameWidth = frameWidth;\r\n\r\n boxSize = box.getHeight();\r\n boxX = box.getX();\r\n boxY = box.getY();\r\n }\r\n\r\n frameWidth = initialFrameWidth;\r\n\r\n box.setX(0.0f);\r\n black.setY(3000.0f);\r\n orange.setY(3000.0f);\r\n pink.setY(3000.0f);\r\n\r\n blackY = black.getY();\r\n orangeY = orange.getY();\r\n pinkY = pink.getY();\r\n\r\n box.setVisibility(View.VISIBLE);\r\n black.setVisibility(View.VISIBLE);\r\n orange.setVisibility(View.VISIBLE);\r\n pink.setVisibility(View.VISIBLE);\r\n\r\n timeCount = 0;\r\n score = 0;\r\n String a = \"Score : 0\";\r\n scoreLabel.setText(a);\r\n\r\n\r\n timer = new Timer();\r\n timer.schedule(new TimerTask() {\r\n @Override\r\n public void run() {\r\n if (start_flg) {\r\n handler.post(new Runnable() {\r\n @Override\r\n public void run() {\r\n changePos();\r\n }\r\n });\r\n }\r\n }\r\n }, 0, 20);\r\n }" ]
[ "0.60256696", "0.6023869", "0.60028327", "0.59285015", "0.59019196", "0.57532567", "0.56287396", "0.5581807", "0.55709374", "0.5541576", "0.5497457", "0.54766357", "0.5473465", "0.539004", "0.5381466", "0.536656", "0.53628933", "0.5361688", "0.535895", "0.5348549", "0.530766", "0.5287982", "0.52779", "0.5265319", "0.52532005", "0.5251613", "0.5251398", "0.5243781", "0.52311516", "0.522945", "0.52177125", "0.52156615", "0.52125144", "0.5194679", "0.51908386", "0.51844186", "0.5158839", "0.51427424", "0.5140952", "0.51256174", "0.5120151", "0.51159155", "0.51129144", "0.51112795", "0.51096535", "0.51017505", "0.5095591", "0.509241", "0.50916743", "0.5091656", "0.5089518", "0.50894177", "0.5089074", "0.5082204", "0.50772315", "0.50741875", "0.5067204", "0.5063188", "0.50585514", "0.5057921", "0.5039413", "0.5026367", "0.50239503", "0.502252", "0.50184304", "0.50119925", "0.5010261", "0.5008848", "0.50073606", "0.50031734", "0.49991187", "0.49969307", "0.49769765", "0.49767032", "0.49734917", "0.49732813", "0.4968656", "0.49636447", "0.49631166", "0.4961481", "0.49576917", "0.49560034", "0.4954429", "0.49502447", "0.49493635", "0.49452686", "0.49452364", "0.4943205", "0.49430567", "0.4941637", "0.494011", "0.4938633", "0.49350527", "0.49314308", "0.49309543", "0.49255496", "0.49244407", "0.49210253", "0.49194065", "0.49165535", "0.49157545" ]
0.0
-1
Returns true if the child views are flipping.
public boolean isFlipping() { return mKeepFlipping; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "private boolean isEdge() {\r\n\t\t// get the child view Width\r\n\t\tint childViewWidth = mChildView.getMeasuredWidth();\r\n\t\t// get the ScrollView Width\r\n\t\tint srollViewWidth = this.getWidth();\r\n\t\t// get\r\n\t\tint tempOffset = childViewWidth - srollViewWidth;\r\n\t\tint scrollX = this.getScrollX();\r\n\t\tif (scrollX == 0 || scrollX == tempOffset) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isChild();", "public boolean isChild(){\n return child;\n }", "public boolean isChild(){\n return child;\n }", "public boolean onTouchEvent(MotionEvent touchevent) {\n switch (touchevent.getAction()) {\n\n case MotionEvent.ACTION_DOWN :\n lastX = touchevent.getX();\n break;\n case MotionEvent.ACTION_UP:\n float currentX = touchevent.getX();\n\n // Handling left to right screen swap.\n if (lastX < currentX) {\n\n // If there aren't any other children, just break.\n if (viewFlipper.getDisplayedChild() == 0)\n break;\n\n // Next screen comes in from left.\n viewFlipper.setInAnimation(this, R.anim.slide_in_from_left);\n // Current screen goes out from right.\n viewFlipper.setOutAnimation(this, R.anim.slide_out_to_right);\n\n // Display next screen.\n viewFlipper.showNext();\n }\n\n // Handling right to left screen swap.\n if (lastX > currentX) {\n\n // If there is a child (to the left), kust break.\n if (viewFlipper.getDisplayedChild() == 1)\n break;\n\n // Next screen comes in from right.\n viewFlipper.setInAnimation(this, R.anim.slide_in_from_right);\n // Current screen goes out from left.\n viewFlipper.setOutAnimation(this, R.anim.slide_out_to_left);\n\n // Display previous screen.\n viewFlipper.showPrevious();\n }\n break;\n }\n return false;\n }", "protected boolean isReverseTrue(int step)\n\t{\n\t\tif (parent == null)\n\t\t{\n\t\t\treturn isReverse(step);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint p = (parent.isReverseTrue(parent.getStep())) ? -1 : 1;\n\t\t\tint s = (isReverse(step)) ? -1 : 1;\n\t\t\treturn p * s == -1;\n\t\t}\n\t}", "public void startFlipping() {\n if (!mKeepFlipping) {\n mKeepFlipping = true;\n showOnly(mWhichChild);\n Message msg = mHandler.obtainMessage(FLIP_MSG);\n mHandler.sendMessageDelayed(msg, mFlipInterval);\n }\n }", "public boolean onTouchEvent(MotionEvent touchevent) {\t\t\t\t\t\t\n\t\tswitch (touchevent.getAction()) {\t\t\t\t\n\t\tcase MotionEvent.ACTION_DOWN: \t\t\t\t\n\n\t\t\tlastX = touchevent.getX();\t\t\t\n\t\t\tbreak;\t\t\t\n\n\t\tcase MotionEvent.ACTION_UP: \t\t\t\t\n\t\t\tfloat currentX = touchevent.getX();\t\t\t\n\n\t\t\t// Handling left to right screen swap.\t\t\t\n\t\t\tif (lastX < currentX) {\t\t\t\n\t\t\t\t// If there aren't any other children, just break.\t\t\n\t\t\t\tif (viewFlipper.getDisplayedChild() == 0)\t\t\n\t\t\t\t\tbreak;\t\n\t\t\t\t// Next screen comes in from left.\t\t\n\t\t\t\tviewFlipper.setInAnimation(this, R.anim.slide_in_from_left);\t\t\n\n\t\t\t\t// Current screen goes out from right. \t\t\n\t\t\t\tviewFlipper.setOutAnimation(this, R.anim.slide_out_to_right);\t\t\n\n\t\t\t\t// Display next screen.\t\t\n\t\t\t\tviewFlipper.showNext();\t\t\n\t\t\t}\t\t\t\n\t\t\t// Handling right to left screen swap.\t\t\t\n\t\t\tif (lastX > currentX) {\t\t\t\n\t\t\t\t// If there is a child (to the left), just break.\t\t\n\t\t\t\tif (viewFlipper.getDisplayedChild() == 1)\t\t\n\t\t\t\t\tbreak;\t\n\n\t\t\t\t// Next screen comes in from right.\t\t\n\t\t\t\tviewFlipper.setInAnimation(this, R.anim.slide_in_from_right);\t\t\n\n\t\t\t\t// Current screen goes out from left. \t\t\n\t\t\t\tviewFlipper.setOutAnimation(this, R.anim.slide_out_to_left);\t\t\n\n\t\t\t\t// Display previous screen.\t\t\n\t\t\t\tviewFlipper.showPrevious();\t\t\n\t\t\t}\t\t\t\n\t\t\tbreak;\t\t\t\n\t\t}\t\t\t\t\n\t\treturn false;\t\t\t\t\n\t}", "public boolean isFacingMirrored() {\n return mIsMirrored;\n }", "public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }", "public boolean isChildOf(Loop child, Loop parent) {\n\t\treturn ((parent.start <= child.start) && (parent.stop >= child.stop) && (parent != child));\n\t}", "final public boolean isPerspective()\n {\n return ComponentUtils.resolveBoolean(getProperty(PERSPECTIVE_KEY), true);\n }", "public boolean isChild(){\n return false;\n }", "public boolean isChild() {\n\t\treturn false;\n\t}", "public boolean canFlipToNextPage();", "public boolean mo4564a(View child) {\n return child instanceof C0313f;\n }", "public Boolean isThisParent(Flow f){\n\t\treturn false;\n\t}", "public boolean isChildOf( InteractionClass other )\n\t{\n\t\t// look up our tree to see if the given class is one of our parents\n\t\tInteractionClass currentParent = this;\n\t\twhile( currentParent != null )\n\t\t{\n\t\t\tif( currentParent == other )\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public static boolean switchViews(ViewSwitchDirection dir) {\n if (dir == null) {\n return false;\n } else {\n if (dir == ViewSwitchDirection.CANVAS_TO_DRAW) {\n drawViewFrame.setLocation(canvasViewFrame.getLocation());\n drawViewFrame.setVisible(true);\n canvasViewFrame.setVisible(false);\n } else {\n canvasViewFrame.setLocation(drawViewFrame.getLocation());\n canvasViewFrame.setVisible(true);\n drawViewFrame.setVisible(false);\n }\n return true;\n }\n }", "boolean isCrouching();", "@Override\n public boolean dispatchTouchEvent(final MotionEvent ev) {\n final boolean superRes = super.dispatchTouchEvent(ev);\n\n boolean childRes = false;\n final FragmentManager fragmentManager = getSupportFragmentManager();\n final List<Fragment> children = fragmentManager.getFragments();\n if (children != null) {\n for (final Fragment child : children) {\n if (child != null && child.getView() != null &&\n DispatchTouchEventListener.class.isInstance(child)\n && child.getUserVisibleHint()) {\n childRes |= ((DispatchTouchEventListener) child).dispatchTouchEvent(ev);\n }\n }\n }\n\n return childRes || superRes;\n }", "public boolean isFurnace() {\n return this.type == Type.FURNACE;\n }", "public boolean onTouchEvent(MotionEvent touchevent) {\n\n // Seleccionar\n switch (touchevent.getAction()) {\n\n case MotionEvent.ACTION_DOWN:\n // detecta cuando el dedo presiona sobre la pantalla\n\n // obtener la coordenada X cuando se presiona sobre la pantalla\n lastX = touchevent.getX();\n break;\n\n case MotionEvent.ACTION_UP:\n // detecta cuando el dedo deja de presionar sobre la pantalla\n\n // obtener la coordenada X cuando se deja de presionar sobre la pantalla\n float currentX = touchevent.getX();\n\n // Hay que comprobar para donde deslizamos el dedo\n if (lastX < currentX) {\n // Deslizamos de izquierda a derecha\n\n // getDisplayedChild() devuelve el índice de la vista hija (siguiente pantalla)\n // que se muestra actualmente, si es cero no hay pantalla anterior\n // no podemos movernos a la derecha\n if (viewFlipper.getDisplayedChild() == 0)\n break;\n\n // Carga la animación para la pantalla que entra\n // => en en este caso desde la izquierda\n viewFlipper.setInAnimation(this, R.anim.slide_in_from_left);\n\n // Carga la animación para la pantalla que sale\n // => en en este caso hacia la derecha\n viewFlipper.setOutAnimation(this, R.anim.slide_out_to_right);\n\n // Iniciar la animación para moverse a la pantalla anterior\n // viewFlipper.showNext();\n viewFlipper.showPrevious();\n }\n\n // Hay que comprobar para donde deslizamos el dedo\n if (lastX > currentX) {\n // Deslizamos de derecha a izquierda\n\n // getDisplayedChild() devuelve el índice de la vista hija (siguiente pantalla)\n // que se muestra actualmente, si es la última hay pantalla siguiente\n // no podemos movernos a la izquierda\n /* if (viewFlipper.getDisplayedChild() == 1)\n break;*/\n if (viewFlipper.getDisplayedChild()==viewFlipper.getChildCount()-1)\n break;\n\n // Carga la animación para la pantalla que entra\n // => en en este caso desde la derecha\n viewFlipper.setInAnimation(this, R.anim.slide_in_from_right);\n\n // Carga la animación para la pantalla que sale\n // => en en este caso hacia la izquierda\n viewFlipper.setOutAnimation(this, R.anim.slide_out_to_left);\n\n // Iniciar la animación para moverse a la siguiente pantalla\n //viewFlipper.showPrevious();\n viewFlipper.showNext();\n }\n\n break;\n }\n return false;\n }", "public boolean shouldHide(View view, float f) {\n boolean z = true;\n if (this.skipCollapsed) {\n return true;\n }\n if (view.getTop() < this.collapsedOffset) {\n return false;\n }\n if (Math.abs((((float) view.getTop()) + (f * HIDE_FRICTION)) - ((float) this.collapsedOffset)) / ((float) this.peekHeight) <= HIDE_THRESHOLD) {\n z = false;\n }\n return z;\n }", "public boolean percolates() throws Exception {\n if (SIZE != 1 && ufVirtual.connected(0, SIZE - 1))\n return true;\n else if (SIZE == 1 && isOpen(1, 1))\n return true;\n return false;\n }", "private boolean m13643a(int i) {\n if (i == 0 || i == getChildCount() || (this.f9809e & 2) == 0) {\n return false;\n }\n for (int i2 = i - 1; i2 >= 0; i2--) {\n if (getChildAt(i2).getVisibility() != 8) {\n return true;\n }\n }\n return false;\n }", "protected boolean isOnSameScreenAsChildren() {\n return true;\n }", "public boolean isChildOf(FcgLevel other) {\n\t\treturn other.isParentOf(this);\n\t}", "boolean hasParentalStatusView();", "boolean isInview();", "public boolean onPreDraw() {\n\t\t\t\t//Remove the listener after the 1 frame\n\t\t\t\tobserver.removeOnPreDrawListener(this);\n\t\t\t\tboolean firstAnimation = true;\n\t\t\t\tint firstVisiblePosition = listview.getFirstVisiblePosition();\n\t\t\t\t//Cycle through all current children of the list frame\n\t\t\t\tfor (int i = 0; i < listview.getChildCount(); ++i) {\n\t\t\t\t\tfinal View child = listview.getChildAt(i);\n\t\t\t\t\tint position = firstVisiblePosition + i;\n\t\t\t\t\tlong itemId = mAdapter.getItemId(position);\n\t\t\t\t\tInteger startTop = mItemIdTopMap.get(itemId);\n\t\t\t\t\t//Where is the child now, get the top position\n\t\t\t\t\tint top = child.getTop();\n\t\t\t\t\tif (startTop != null) { //This means the view used to be somewhere else in the container\n\t\t\t\t\t\t//If the child was somewhere else in the container, run an animation to move it\n\t\t\t\t\t\tif (startTop != top) {\n\t\t\t\t\t\t\t//Set a Y Value and animate to it\n\t\t\t\t\t\t\tint delta = startTop - top;\n\t\t\t\t\t\t\tchild.setTranslationY(delta);\n\t\t\t\t\t\t\tchild.animate().setDuration(MOVE_DURATION).translationY(0);\n\t\t\t\t\t\t\t//If this is the first time it's been run, restore values\n\t\t\t\t\t\t\tif (firstAnimation) {\n\t\t\t\t\t\t\t\tchild.animate().withEndAction(new Runnable() {\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tmBackgroundContainer.hideBackground();\n\t\t\t\t\t\t\t\t\t\tmSwiping = false;\n\t\t\t\t\t\t\t\t\t\tmListView.setEnabled(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tfirstAnimation = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Animate new views along with the others. The catch is that they did not\n\t\t\t\t\t\t// exist in the start state, so we must calculate their starting position\n\t\t\t\t\t\t// based on neighboring views.\n\t\t\t\t\t\tint childHeight = child.getHeight() + listview.getDividerHeight();\n\t\t\t\t\t\tstartTop = top + (i > 0 ? childHeight : -childHeight);\n\t\t\t\t\t\tint delta = startTop - top;\n\t\t\t\t\t\tchild.setTranslationY(delta); //Again, set Y value to where it is going\n\t\t\t\t\t\tchild.animate().setDuration(MOVE_DURATION).translationY(0);\n\t\t\t\t\t\tif (firstAnimation) {\n\t\t\t\t\t\t\tchild.animate().withEndAction(new Runnable() {\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tmBackgroundContainer.hideBackground();\n\t\t\t\t\t\t\t\t\tmSwiping = false;\n\t\t\t\t\t\t\t\t\tmListView.setEnabled(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tfirstAnimation = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//When finished, clear the item IDs associated with positions\n\t\t\t\tmItemIdTopMap.clear();\n\t\t\t\treturn true;\n\t\t\t}", "public boolean percolates() {\n\t\tint top = uf.find(0);\n\t\tint bottom = uf.find(size * size + 1);\n\t\treturn top == bottom;\n\t}", "private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}", "boolean isSliceParent();", "public Boolean getIsChild() {\n return isChild;\n }", "@Override\n public boolean isTransforming() {\n return super.isTransforming() || desiredWorldPosition != null;\n }", "public boolean isChildChanged() {\n return CHILDCHANGED.equals(message);\n }", "private boolean isInTwoPaneMode() {\n\t\t\n Log.i(TAG, \"DailySelfieMainActivity.isInTwoPaneMode entered\");\n\n\t\treturn findViewById(R.id.selfie_list) != null;\n\t}", "public void setFlipped() {\n\t\thasFlipped = true;\n\t}", "boolean hasDirection();", "public boolean isDrooping() {\n return ((((this.leftTheta % 360) + 360) % 360) > 180)\n || ((((this.rightTheta % 360) + 360) % 360) > 180) \n || this.left.isDrooping()\n || this.right.isDrooping(); \n }", "public final boolean isAbsoluteActive() {\n if (parent == this) {\n return active;\n }\n return (active && parent.isAbsoluteActive());\n }", "private boolean m87319a(View view) {\n this.f61231x.set(0, 0, view.getWidth(), view.getHeight());\n offsetDescendantRectToMyCoords(view, this.f61231x);\n if (view.getParent() != this) {\n ViewParent parent = view.getParent();\n while (parent != this) {\n view = (View) parent;\n parent = view.getParent();\n }\n }\n int height = getHeight() - getPaddingBottom();\n int childCount = getChildCount();\n for (int indexOfChild = indexOfChild(view) + 1; indexOfChild < childCount; indexOfChild++) {\n View childAt = getChildAt(indexOfChild);\n if (childAt.getVisibility() != 8) {\n height = Math.min(height, childAt.getTop());\n }\n }\n if (this.f61231x.bottom > height) {\n return true;\n }\n return false;\n }", "public boolean mo4276a(CoordinatorLayout parent, C0313f child, MotionEvent event) {\n int actionMasked = event.getActionMasked();\n if (actionMasked != 0) {\n if (actionMasked == 1 || actionMasked == 3) {\n C0269T.m1643a().mo4576e(C0307r.this.f1124j);\n }\n } else if (parent.mo4367a((View) child, (int) event.getX(), (int) event.getY())) {\n C0269T.m1643a().mo4575d(C0307r.this.f1124j);\n }\n return super.mo4276a(parent, child, event);\n }", "@Override // com.android.server.wm.WindowContainer\n public boolean handlesOrientationChangeFromDescendant() {\n return getDisplayRotation().respectAppRequestedOrientation();\n }", "public boolean isFloatingBoxActive()\n {\n return false;\n }", "public boolean onTouch(View view, MotionEvent event) {\n \tswitch (mViewFlipper.getDisplayedChild()) {\n \tcase 0:\n \t\treturn mMainPage.getGestureDetector().onTouchEvent(event);\n \tcase 1:\n \t\treturn mBrowPage.getGestureDetector().onTouchEvent(event);\n \tcase 2:\n \t\tbreak;\n \t}\n \t\treturn true;\n }", "void flip() {\n _flipped = !_flipped;\n }", "boolean hasSide();", "public boolean isParent();", "boolean hasGroupPlacementView();", "public boolean isBackward()\n {\n return (state == AnimationState.BACKWARD);\n }", "public boolean percolates() {\n if (wuf.connected(virtTop, virtBottom)) {\n hasPercolated = true;\n return true;\n }\n \n return false;\n }", "public boolean canBeSwappedOut();", "private boolean isOtherPhone() {\n File file = new File(mParentFolderPath);\n BackupFilePreview preview = new BackupFilePreview(file);\n MyLogger.logD(CLASS_TAG, \"[isOtherPhone]====otherPhone?===\" +\n preview.isOtherDeviceBackup());\n return preview.isOtherDeviceBackup();\n }", "public boolean isChildOf(Xcode opcode) {\n Xnode crt = this;\n while(crt != null) {\n if(crt.ancestor().opcode() == opcode) {\n return true;\n }\n // Stop searching when FfunctionDefinition is reached\n if(crt.ancestor().opcode() == Xcode.F_FUNCTION_DEFINITION) {\n return false;\n }\n crt = crt.ancestor();\n }\n return false;\n }", "boolean hasDetailPlacementView();", "private void isTwoPane() {\n FrameLayout fragmentItemDetail = (FrameLayout) findViewById(R.id.DetailFragment);\n if (fragmentItemDetail != null) {\n isTwoPane = true;\n }\n }", "boolean onViewSwipedToLeft(int position);", "boolean isFocused() {\n\t\tif (state != State.ROTATE)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isPerdu() {\n\t\tassert(f.getLevel() != null);\n\t\t\n\t\tLevel l = f.getLevel();\n\t\t\n\t\tif(l.getBall() == null) {//pour le menu principal -> pas de balle\n\t\t\treturn false;\n\t\t}\n\t\tif(l.getType() == Type.INVERSE) {\n\t\t\treturn l.getBall().getPosY()<50;//en haut de l'ecran\n\t\t}else {\n\t\t\treturn l.getBall().getPosY()>f.getHauteurFenetre()-50;//en bas de l'ecran\n\t\t}\n\t}", "public boolean percolates(){\n return uf.connected(ufSize - 2, ufSize - 1);\n }", "public boolean percolates() {\n // The system percolates if top and bottom are connected\n return UF.connected(top, bottom);\n }", "public boolean isCastOverLayShown() {\n if (currentContext != null) {\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(CASTING_OVERLAY_PREF_NAME, 0);\n return sharedPrefs.getBoolean(CAST_SHARED_PREF_NAME, false);\n }\n return false;\n }", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public boolean isDrawingViews() {\n return drawViews;\n }", "public boolean isPortrait() {\n return mState.isPortrait;\n }", "boolean hasParent();", "boolean hasParent();", "public boolean isChildLayoutAnimated() {\n return mAnimateChildLayout;\n }", "public boolean isParent(File child) {\n\t\tboolean result = false;\n\t\t\n\t\tif (child != null && this != null) {\n\t\t\tif (child.getParentFile() == null) {\n\t\t\t\tresult = false;\n\t\t\t} else {\n\t\t\t\tif (child.getParentFile().getAbsolutePath().equals(this.getAbsolutePath())) {\n\t\t\t\t\tresult = true;\n\t\t\t\t} else {\n\t\t\t\t\tresult = isParent((File) child.getParentFile());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void testChildIsHidden() throws Exception\n {\n VFSContext context = getVFSContext(\"simple\");\n VirtualFileHandler root = context.getRoot();\n VirtualFileHandler child = context.getChild(root, \"child\");\n assertFalse(child.isHidden());\n }", "public boolean isParent() { return _file.isDir(); }", "public boolean isParentOf(FcgLevel other) {\n\t\tif (isSource()) {\n\t\t\treturn other.getDistance() == 1;\n\t\t}\n\n\t\tif (direction != other.direction) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// e.g., row 2 - row 1 = 1\n\t\treturn other.getDistance() - getDistance() == 1;\n\t}", "boolean isAllOnDestination(){\n\n if(player.getCurrentX()-player.getDestinationX()!=0 || player.getCurrentY()-player.getDestinationY()!=0)\n return false;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()-item.getDestinationX()!=0 || item.getCurrentY()-item.getDestinationY()!=0)\n return false;\n }\n return true;\n }", "public boolean isFacingUp()\n {\n return facingUp;\n }", "public boolean isParent(AppFile anItem) { return anItem.isParent(); }", "boolean onChildClick(int childPosition) {\n return false;\n }", "@Override\n public boolean onNestedPreFling(View target, float velocityX, float velocityY) {\n return mCaptured;\n }", "public boolean isConicalView();", "private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }", "boolean reachedEdge() {\n\t\treturn this.x > parent.width - 30;// screen width including the size of\n\t\t\t\t\t\t\t\t\t\t\t// the image\n\t}", "private boolean multiview(){\n\t\treturn this.LOCAL_PIECE != null;\n\t}", "public boolean wantsView(T aView, View aView2) { return aView2 instanceof ColView; }", "public boolean shouldExecute() {\n\t\t\tEntityMoveHelper entitymovehelper = this.parentEntity.getMoveHelper();\n\n\t\t\tif (!entitymovehelper.isUpdating()) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tdouble d0 = entitymovehelper.getX() - this.parentEntity.posX;\n\t\t\t\tdouble d1 = entitymovehelper.getY() - this.parentEntity.posY;\n\t\t\t\tdouble d2 = entitymovehelper.getZ() - this.parentEntity.posZ;\n\t\t\t\tdouble d3 = d0 * d0 + d1 * d1 + d2 * d2;\n\t\t\t\treturn d3 < 1.0D || d3 > 3600.0D;\n\t\t\t}\n\t\t}", "public boolean testTraversal() {\n if (parent == null){\n return false;\n }\n return testTraversalComponent(parent);\n }", "public boolean isDrooping() {\n return (((this.theta % 360) + 360) % 360) > 180\n || tree.isDrooping();\n }", "boolean hasManagedPlacementView();", "boolean hasFaceUp();", "public boolean isRiptiding ( ) {\n\t\treturn extract ( handle -> handle.isRiptiding ( ) );\n\t}", "public boolean percolates() {\n return mainUnion.connected(virtualTopId, virtualBottomId);\n }", "public boolean hasFront();", "protected static boolean outOfFrame(@NotNull Shape shape) {\n\t\tif (shape.position.x + shape.size.x / 2 < Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.x - shape.size.x / 2 > Display.getWidth() + Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.y - shape.size.y / 2 > Display.getHeight() + Camera.getPosition().y)\n\t\t\treturn (true);\n\t\treturn shape.position.y + shape.size.y / 2 < Camera.getPosition().y;\n\t}", "boolean isTurnedFaceUp();", "public boolean justMoved() {\n\n\t\tdouble[] scores = compareFrames(length-1, length-2);\n\n\t\tSystem.out.println(scores[0]);\n\n\t\treturn scores[0] > MOVEMENT_THRESHOLD; // || scores[1] > ROTATION_THRESHOLD;\n\t}", "public abstract boolean facingRight();", "boolean hasFloatButtonPermission(Context context);", "public boolean isFaceUp(){return faceUp;}" ]
[ "0.6422571", "0.63261735", "0.55772054", "0.555346", "0.55243486", "0.55243486", "0.5518759", "0.54312134", "0.5426817", "0.54029787", "0.5336901", "0.53071254", "0.5306316", "0.5305871", "0.52667683", "0.52632207", "0.52338487", "0.52324057", "0.52058697", "0.52012736", "0.5156874", "0.51495266", "0.5119416", "0.5114162", "0.5114125", "0.51106685", "0.51024544", "0.5091172", "0.50896716", "0.50815266", "0.50796306", "0.50758195", "0.50747937", "0.5073167", "0.5072244", "0.5059241", "0.5045638", "0.50437814", "0.50414723", "0.50407064", "0.50353134", "0.50347817", "0.5029134", "0.5022449", "0.5013801", "0.49998003", "0.4999493", "0.4985864", "0.49763793", "0.4975084", "0.49686694", "0.49663", "0.49638158", "0.4957782", "0.49575245", "0.49573585", "0.49505618", "0.4946373", "0.49264252", "0.49261793", "0.49218515", "0.49191833", "0.4916332", "0.4902558", "0.48992407", "0.48982257", "0.4897672", "0.48872966", "0.48829535", "0.48810142", "0.48810142", "0.4877138", "0.48746598", "0.48740888", "0.4862366", "0.48615906", "0.4857785", "0.48577413", "0.48506504", "0.48501572", "0.48480228", "0.48412687", "0.48382285", "0.48360848", "0.48336357", "0.4825144", "0.48218563", "0.48135385", "0.4809453", "0.48047775", "0.48020962", "0.47978145", "0.4792135", "0.478739", "0.4785197", "0.47848293", "0.47842714", "0.4776225", "0.47695476", "0.47694993" ]
0.67075205
0
Use this factory method to create a new instance of this fragment using the provided parameters.
public static ProfileInsuranceInfoFragment newInstance(String param1, String param2) { ProfileInsuranceInfoFragment fragment = new ProfileInsuranceInfoFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
Inflate the layout for this fragment Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_profile_insurance_info, container, false); inflateView(view); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Nullable\r\n @Override\r\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_up_del_work_type, container, false);\r\n\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.fragment_nhiemvu, container, false);\n // set Context\n context = view.getContext();\n // get connect database\n conectDatabase = new ConectDatabase(context);\n\n arrayList = conectDatabase.getAllMission();\n\n // find ID\n btAdd = (Button) view.findViewById(R.id.btAdd);\n listMission = (ListView) view.findViewById(R.id.listViewMission);\n finishList = (ListView) view.findViewById(R.id.finistList);\n linearLayout = view.findViewById(R.id.formIPMission);\n btAddFinish = view.findViewById(R.id.btAddMission);\n edtIpMission = view.findViewById(R.id.edtIPMission);\n btTime = view.findViewById(R.id.btTime);\n bottomsheet = view.findViewById(R.id.bottom_sheet);\n sheetBehavior = BottomSheetBehavior.from((bottomsheet));\n //set Layout\n setLayout();\n // set Action;\n setAction();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_products, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_contacts, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_common_skill, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n context = getActivity().getApplicationContext();\n View inflaterview = inflater.inflate(R.layout.fragment_order_detail, container, false);\n collectName = (TextView)inflaterview.findViewById(R.id.txtResName);\n collectAddress = (TextView)inflaterview.findViewById(R.id.txtResAddress);\n collectPhone = (TextView)inflaterview.findViewById(R.id.txtResPhone);\n deliverAddress = (TextView)inflaterview.findViewById(R.id.txtDeliverAddress);\n deliverPhone = (TextView)inflaterview.findViewById(R.id.txtDeliverPhone);\n layItem = (LinearLayout)inflaterview.findViewById(R.id.layoutItem);\n btnRequest = (Button)inflaterview.findViewById(R.id.btnRequest);\n btnMap = (Button)inflaterview.findViewById(R.id.btnMap);\n txtordercode = (TextView)inflaterview.findViewById(R.id.txtOrderCode);\n txtdelicharge = (TextView)inflaterview.findViewById(R.id.txtDelivcharge);\n txttotalamount = (TextView)inflaterview.findViewById(R.id.txtTotalAmount);\n return inflaterview;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_goods_detail, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_employee_adress_detail, container, false);\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_plant_selection, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_personal_infomation, container, false);\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_frag_community_contact_management_room, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_upload_new, container, false);\n findViewByIds(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sesion3, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_eatery_detail, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n return inflater.inflate(R.layout.frag_product, container, false);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n\n return inflater.inflate(R.layout.model_detail_layout, container, false);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container , savedInstanceState);\n View rootView = inflater.inflate(R.layout.fragment_info_, container, false);\n //return inflater.inflate(R.layout.fragment_info_, container, false);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_last_askitem, container, false);\n }\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_listing_step2, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_audio_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bar__manuell, container, false);\n refreshAll(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_goods, container, false);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_form,container,false);\n nameEditText=view.findViewById(R.id.nameEditText);\n progressSeekBar=view.findViewById(R.id.progressSeekBar);\n threadButton = view.findViewById(R.id.threadButton);\n saveButton = view.findViewById(R.id.saveButton);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rent, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@NonNull\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_warehouse, container, false);\n }", "private int setLayoutResId(){\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mod_image, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_wo_de, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_detail_post, container, false);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.blood_types, container, false);\n fragmentManager = getActivity().getSupportFragmentManager();\n\n //For Navigation Bar\n if (((MainActivity) getActivity()).getSupportActionBar() != null) {\n ((MainActivity) getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n ((MainActivity) getActivity()).getSupportActionBar().setDisplayShowHomeEnabled(true);\n ((MainActivity) getActivity()).drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);\n }\n\n getActivity().setTitle(\"Blood Types\");\n\n initComponents();\n setListners();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n parent_view = inflater.inflate(R.layout.fragment_medals, container, false);\n initComponent(parent_view);\n\n return parent_view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_detail_jadwal_dokter, container, false);\n initView();\n tampilDataDetail();\n return view;\n }", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_product_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_admin_stations, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sell, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_about_sarkari_job, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_task_info, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_subcategory_details, container, false);\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_main4, container, false);\n return view;\n }" ]
[ "0.685214", "0.6803351", "0.67748415", "0.67409474", "0.6735214", "0.67227083", "0.671929", "0.6713345", "0.67067665", "0.6702749", "0.6695068", "0.66896886", "0.66870844", "0.66784394", "0.6671157", "0.666992", "0.666846", "0.6668084", "0.666806", "0.6663189", "0.66624117", "0.6662086", "0.6655869", "0.6649863", "0.66420496", "0.6641612", "0.66358596", "0.66317254", "0.6628343", "0.66278994", "0.6624103", "0.662213", "0.66187835", "0.66182077", "0.6615298", "0.661322", "0.66064495", "0.66058177", "0.660478", "0.6603265", "0.65934795", "0.6585818", "0.6581907", "0.65813386", "0.6577549", "0.65754604", "0.65754384", "0.6575262", "0.6574121", "0.6573341", "0.6569691", "0.656947", "0.65628195", "0.65598214", "0.65589327", "0.6558174", "0.65571374", "0.6554592", "0.6553292", "0.6552909", "0.65524894", "0.65508574", "0.65472806", "0.65424645", "0.6541422", "0.65356266", "0.6534958", "0.65337116", "0.6531825", "0.6530821", "0.65292174", "0.6527621", "0.652415", "0.6521692", "0.6521553", "0.65199095", "0.65187657", "0.6516054", "0.65157855", "0.6514111", "0.6513146", "0.6511092", "0.65110517", "0.65081143", "0.6507619", "0.65055937", "0.6503709", "0.65031487", "0.64996964", "0.6499112", "0.64985126", "0.6498374", "0.6497756", "0.6497754", "0.64951396", "0.6494672", "0.649444", "0.6492967", "0.6492799", "0.6492121", "0.6490881" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onImagesSelected(Uri uri, int selectedImageView, Bitmap bitmapImage, String base64Path) { if (mListener != null) { mListener.onInsuranceFragmentInteraction(uri, selectedImageView, bitmapImage, base64Path); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }", "void onArgumentsChanged();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "void eventChanged();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }" ]
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037", "0.59848183", "0.59776366", "0.59587413", "0.5940049", "0.5925668", "0.5925668", "0.59208333", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915554", "0.5909643", "0.5895144", "0.58947057", "0.589277", "0.58885247", "0.58885247", "0.58885247", "0.58671176", "0.58671176", "0.58671176", "0.58636886", "0.5862447", "0.5862447", "0.58613557", "0.5855828", "0.5846504", "0.5846504", "0.5846504", "0.5846504", "0.5837475", "0.58366984", "0.5820788", "0.58068436", "0.58022934", "0.5772422", "0.57714665", "0.5770862", "0.5765655", "0.5763872", "0.57544947", "0.57542855", "0.57542855", "0.57450074", "0.57441026", "0.57441026", "0.57441026", "0.5741053", "0.574037", "0.5739314", "0.57367086", "0.57367086", "0.57367086", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57235956", "0.57232994", "0.5721006", "0.571978", "0.571978", "0.57187414", "0.57177836", "0.57133436", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.5707859", "0.5707546", "0.5704973", "0.57016516" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name public void onInsuranceFragmentInteraction(Uri uri, int selectedImageView, Bitmap croppedBitmapImage, String base64Path); public void getCroppedImageBitmapForIsurance(Bitmap bitmap, int selectedImageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void onFragmentInteraction(int position);", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}" ]
[ "0.7324869", "0.7207734", "0.7135081", "0.71245605", "0.71223444", "0.7015339", "0.6975947", "0.6975947", "0.6975947", "0.6974237", "0.69678", "0.69657534", "0.6961255", "0.6953781", "0.69433004", "0.6934407", "0.6929365", "0.69274956", "0.6922845", "0.6909957", "0.69027823", "0.6897004", "0.6894347", "0.68828857", "0.68813187", "0.687551", "0.6864592", "0.68613374", "0.6860566", "0.68586874", "0.6855835", "0.6843956", "0.6839869", "0.6830362", "0.68178993", "0.681684", "0.6810412", "0.6786258", "0.67694485", "0.67694485", "0.67694485", "0.67694485", "0.67694485", "0.67694485", "0.67694485", "0.67694485", "0.67694485", "0.6768974", "0.67667216", "0.67615473", "0.6755425", "0.67539924", "0.6698668", "0.6681908", "0.66738796", "0.6670201", "0.6670028", "0.6661347", "0.66613054", "0.6655465", "0.6651997", "0.6644771", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.6643113", "0.66384375", "0.66363496", "0.6631786", "0.6625766", "0.6625323", "0.6618439", "0.6610282", "0.6609774", "0.66092706", "0.6605589", "0.65974724", "0.6597176", "0.65866524", "0.65725225", "0.6569557", "0.6560739", "0.6560406", "0.6555217", "0.65498644", "0.6548054", "0.6543221", "0.6538836", "0.6534266", "0.6534266", "0.6534266", "0.651965", "0.65175897", "0.65171194" ]
0.0
-1